Backport link test fix from upstream Libtool:
[external/binutils.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="ar.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923
924 #
925 # Report the --help message.
926 #
927 if test "$ac_init_help" = "long"; then
928   # Omit some internal or obsolete options to make the list less imposing.
929   # This message is too long to be a string in the A/UX 3.1 sh.
930   cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
932
933 Usage: $0 [OPTION]... [VAR=VALUE]...
934
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE.  See below for descriptions of some of the useful variables.
937
938 Defaults for the options are specified in brackets.
939
940 Configuration:
941   -h, --help              display this help and exit
942       --help=short        display options specific to this package
943       --help=recursive    display the short help of all the included packages
944   -V, --version           display version information and exit
945   -q, --quiet, --silent   do not print \`checking...' messages
946       --cache-file=FILE   cache test results in FILE [disabled]
947   -C, --config-cache      alias for \`--cache-file=config.cache'
948   -n, --no-create         do not create output files
949       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
950
951 _ACEOF
952
953   cat <<_ACEOF
954 Installation directories:
955   --prefix=PREFIX         install architecture-independent files in PREFIX
956                           [$ac_default_prefix]
957   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
958                           [PREFIX]
959
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
964
965 For better control, use the options below.
966
967 Fine tuning of the installation directories:
968   --bindir=DIR           user executables [EPREFIX/bin]
969   --sbindir=DIR          system admin executables [EPREFIX/sbin]
970   --libexecdir=DIR       program executables [EPREFIX/libexec]
971   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
972   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
973   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
974   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
975   --libdir=DIR           object code libraries [EPREFIX/lib]
976   --includedir=DIR       C header files [PREFIX/include]
977   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
978   --infodir=DIR          info documentation [PREFIX/info]
979   --mandir=DIR           man documentation [PREFIX/man]
980 _ACEOF
981
982   cat <<\_ACEOF
983
984 Program names:
985   --program-prefix=PREFIX            prepend PREFIX to installed program names
986   --program-suffix=SUFFIX            append SUFFIX to installed program names
987   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
988
989 System types:
990   --build=BUILD     configure for building on BUILD [guessed]
991   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992   --target=TARGET   configure for building compilers for TARGET [HOST]
993 _ACEOF
994 fi
995
996 if test -n "$ac_init_help"; then
997
998   cat <<\_ACEOF
999
1000 Optional Features:
1001   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003   --disable-dependency-tracking  speeds up one-time build
1004   --enable-dependency-tracking   do not reject slow dependency extractors
1005   --disable-largefile     omit support for large files
1006   --enable-shared[=PKGS]
1007                           build shared libraries [default=yes]
1008   --enable-static[=PKGS]
1009                           build static libraries [default=yes]
1010   --enable-fast-install[=PKGS]
1011                           optimize for fast installation [default=yes]
1012   --disable-libtool-lock  avoid locking (might break parallel builds)
1013   --enable-targets        alternative target configurations
1014   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1015   --enable-werror         treat compile warnings as errors
1016   --enable-build-warnings enable build-time compiler warnings
1017   --disable-nls           do not use Native Language Support
1018   --enable-maintainer-mode  enable make rules and dependencies not useful
1019                           (and sometimes confusing) to the casual installer
1020   --disable-rpath         do not hardcode runtime library paths
1021
1022 Optional Packages:
1023   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1024   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1025   --with-pic              try to use only PIC/non-PIC objects [default=use
1026                           both]
1027   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1028   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1029   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1030   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1031
1032 Some influential environment variables:
1033   CC          C compiler command
1034   CFLAGS      C compiler flags
1035   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1036               nonstandard directory <lib dir>
1037   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038               headers in a nonstandard directory <include dir>
1039   CPP         C preprocessor
1040
1041 Use these variables to override the choices made by `configure' or to help
1042 it to find libraries and programs with nonstandard names/locations.
1043
1044 _ACEOF
1045 fi
1046
1047 if test "$ac_init_help" = "recursive"; then
1048   # If there are subdirs, report their specific --help.
1049   ac_popdir=`pwd`
1050   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1051     test -d $ac_dir || continue
1052     ac_builddir=.
1053
1054 if test "$ac_dir" != .; then
1055   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1056   # A "../" for each directory in $ac_dir_suffix.
1057   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1058 else
1059   ac_dir_suffix= ac_top_builddir=
1060 fi
1061
1062 case $srcdir in
1063   .)  # No --srcdir option.  We are building in place.
1064     ac_srcdir=.
1065     if test -z "$ac_top_builddir"; then
1066        ac_top_srcdir=.
1067     else
1068        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1069     fi ;;
1070   [\\/]* | ?:[\\/]* )  # Absolute path.
1071     ac_srcdir=$srcdir$ac_dir_suffix;
1072     ac_top_srcdir=$srcdir ;;
1073   *) # Relative path.
1074     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1075     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1076 esac
1077
1078 # Do not use `cd foo && pwd` to compute absolute paths, because
1079 # the directories may not exist.
1080 case `pwd` in
1081 .) ac_abs_builddir="$ac_dir";;
1082 *)
1083   case "$ac_dir" in
1084   .) ac_abs_builddir=`pwd`;;
1085   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1086   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1087   esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *)
1092   case ${ac_top_builddir}. in
1093   .) ac_abs_top_builddir=$ac_abs_builddir;;
1094   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1095   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1096   esac;;
1097 esac
1098 case $ac_abs_builddir in
1099 .) ac_abs_srcdir=$ac_srcdir;;
1100 *)
1101   case $ac_srcdir in
1102   .) ac_abs_srcdir=$ac_abs_builddir;;
1103   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1104   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1105   esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *)
1110   case $ac_top_srcdir in
1111   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1112   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1113   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114   esac;;
1115 esac
1116
1117     cd $ac_dir
1118     # Check for guested configure; otherwise get Cygnus style configure.
1119     if test -f $ac_srcdir/configure.gnu; then
1120       echo
1121       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1122     elif test -f $ac_srcdir/configure; then
1123       echo
1124       $SHELL $ac_srcdir/configure  --help=recursive
1125     elif test -f $ac_srcdir/configure.ac ||
1126            test -f $ac_srcdir/configure.in; then
1127       echo
1128       $ac_configure --help
1129     else
1130       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131     fi
1132     cd $ac_popdir
1133   done
1134 fi
1135
1136 test -n "$ac_init_help" && exit 0
1137 if $ac_init_version; then
1138   cat <<\_ACEOF
1139
1140 Copyright (C) 2003 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by $as_me, which was
1152 generated by GNU Autoconf 2.59.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         # differences in whitespace do not lead to failure.
1426         ac_old_val_w=`echo x $ac_old_val`
1427         ac_new_val_w=`echo x $ac_new_val`
1428         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1429           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431           ac_cache_corrupted=:
1432         else
1433           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1434 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1435           eval $ac_var=\$ac_old_val
1436         fi
1437         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1438 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1439         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1440 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1441       fi;;
1442   esac
1443   # Pass precious variables to config.status.
1444   if test "$ac_new_set" = set; then
1445     case $ac_new_val in
1446     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1447       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1448     *) ac_arg=$ac_var=$ac_new_val ;;
1449     esac
1450     case " $ac_configure_args " in
1451       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1452       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1453     esac
1454   fi
1455 done
1456 if $ac_cache_corrupted; then
1457   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1458 echo "$as_me: error: in \`$ac_pwd':" >&2;}
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 ac_aux_dir=
1496 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1497   if test -f $ac_dir/install-sh; then
1498     ac_aux_dir=$ac_dir
1499     ac_install_sh="$ac_aux_dir/install-sh -c"
1500     break
1501   elif test -f $ac_dir/install.sh; then
1502     ac_aux_dir=$ac_dir
1503     ac_install_sh="$ac_aux_dir/install.sh -c"
1504     break
1505   elif test -f $ac_dir/shtool; then
1506     ac_aux_dir=$ac_dir
1507     ac_install_sh="$ac_aux_dir/shtool install -c"
1508     break
1509   fi
1510 done
1511 if test -z "$ac_aux_dir"; then
1512   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514    { (exit 1); exit 1; }; }
1515 fi
1516 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519
1520 # Make sure we can run config.sub.
1521 $ac_config_sub sun4 >/dev/null 2>&1 ||
1522   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524    { (exit 1); exit 1; }; }
1525
1526 echo "$as_me:$LINENO: checking build system type" >&5
1527 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528 if test "${ac_cv_build+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   ac_cv_build_alias=$build_alias
1532 test -z "$ac_cv_build_alias" &&
1533   ac_cv_build_alias=`$ac_config_guess`
1534 test -z "$ac_cv_build_alias" &&
1535   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537    { (exit 1); exit 1; }; }
1538 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541    { (exit 1); exit 1; }; }
1542
1543 fi
1544 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545 echo "${ECHO_T}$ac_cv_build" >&6
1546 build=$ac_cv_build
1547 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552 echo "$as_me:$LINENO: checking host system type" >&5
1553 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554 if test "${ac_cv_host+set}" = set; then
1555   echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557   ac_cv_host_alias=$host_alias
1558 test -z "$ac_cv_host_alias" &&
1559   ac_cv_host_alias=$ac_cv_build_alias
1560 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563    { (exit 1); exit 1; }; }
1564
1565 fi
1566 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567 echo "${ECHO_T}$ac_cv_host" >&6
1568 host=$ac_cv_host
1569 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574 echo "$as_me:$LINENO: checking target system type" >&5
1575 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576 if test "${ac_cv_target+set}" = set; then
1577   echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579   ac_cv_target_alias=$target_alias
1580 test "x$ac_cv_target_alias" = "x" &&
1581   ac_cv_target_alias=$ac_cv_host_alias
1582 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585    { (exit 1); exit 1; }; }
1586
1587 fi
1588 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589 echo "${ECHO_T}$ac_cv_target" >&6
1590 target=$ac_cv_target
1591 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596 # The aliases save the names the user supplied, while $host etc.
1597 # will get canonicalized.
1598 test -n "$target_alias" &&
1599   test "$program_prefix$program_suffix$program_transform_name" = \
1600     NONENONEs,x,x, &&
1601   program_prefix=${target_alias}-
1602 ac_ext=c
1603 ac_cpp='$CPP $CPPFLAGS'
1604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607 if test -n "$ac_tool_prefix"; then
1608   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   if test -n "$CC"; then
1616   ac_cv_prog_CC="$CC" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621   IFS=$as_save_IFS
1622   test -z "$as_dir" && as_dir=.
1623   for ac_exec_ext in '' $ac_executable_extensions; do
1624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627     break 2
1628   fi
1629 done
1630 done
1631
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636   echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639   echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$ac_cv_prog_CC"; then
1645   ac_ct_CC=$CC
1646   # Extract the first word of "gcc", so it can be a program name with args.
1647 set dummy gcc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   if test -n "$ac_ct_CC"; then
1654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   for ac_exec_ext in '' $ac_executable_extensions; do
1662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663     ac_cv_prog_ac_ct_CC="gcc"
1664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665     break 2
1666   fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1676 else
1677   echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681   CC=$ac_ct_CC
1682 else
1683   CC="$ac_cv_prog_CC"
1684 fi
1685
1686 if test -z "$CC"; then
1687   if test -n "$ac_tool_prefix"; then
1688   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1689 set dummy ${ac_tool_prefix}cc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   if test -n "$CC"; then
1696   ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     ac_cv_prog_CC="${ac_tool_prefix}cc"
1706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707     break 2
1708   fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 CC=$ac_cv_prog_CC
1715 if test -n "$CC"; then
1716   echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 fi
1724 if test -z "$ac_cv_prog_CC"; then
1725   ac_ct_CC=$CC
1726   # Extract the first word of "cc", so it can be a program name with args.
1727 set dummy cc; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731   echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733   if test -n "$ac_ct_CC"; then
1734   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735 else
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1738 do
1739   IFS=$as_save_IFS
1740   test -z "$as_dir" && as_dir=.
1741   for ac_exec_ext in '' $ac_executable_extensions; do
1742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743     ac_cv_prog_ac_ct_CC="cc"
1744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745     break 2
1746   fi
1747 done
1748 done
1749
1750 fi
1751 fi
1752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753 if test -n "$ac_ct_CC"; then
1754   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755 echo "${ECHO_T}$ac_ct_CC" >&6
1756 else
1757   echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759 fi
1760
1761   CC=$ac_ct_CC
1762 else
1763   CC="$ac_cv_prog_CC"
1764 fi
1765
1766 fi
1767 if test -z "$CC"; then
1768   # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   if test -n "$CC"; then
1776   ac_cv_prog_CC="$CC" # Let the user override the test.
1777 else
1778   ac_prog_rejected=no
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   for ac_exec_ext in '' $ac_executable_extensions; do
1785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1787        ac_prog_rejected=yes
1788        continue
1789      fi
1790     ac_cv_prog_CC="cc"
1791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792     break 2
1793   fi
1794 done
1795 done
1796
1797 if test $ac_prog_rejected = yes; then
1798   # We found a bogon in the path, so make sure we never use it.
1799   set dummy $ac_cv_prog_CC
1800   shift
1801   if test $# != 0; then
1802     # We chose a different compiler from the bogus one.
1803     # However, it has the same basename, so the bogon will be chosen
1804     # first if we set CC to just the basename; use the full file name.
1805     shift
1806     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807   fi
1808 fi
1809 fi
1810 fi
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813   echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1815 else
1816   echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820 fi
1821 if test -z "$CC"; then
1822   if test -n "$ac_tool_prefix"; then
1823   for ac_prog in cl
1824   do
1825     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830   echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832   if test -n "$CC"; then
1833   ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838   IFS=$as_save_IFS
1839   test -z "$as_dir" && as_dir=.
1840   for ac_exec_ext in '' $ac_executable_extensions; do
1841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844     break 2
1845   fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853   echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856   echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860     test -n "$CC" && break
1861   done
1862 fi
1863 if test -z "$CC"; then
1864   ac_ct_CC=$CC
1865   for ac_prog in cl
1866 do
1867   # Extract the first word of "$ac_prog", so it can be a program name with args.
1868 set dummy $ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   if test -n "$ac_ct_CC"; then
1875   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880   IFS=$as_save_IFS
1881   test -z "$as_dir" && as_dir=.
1882   for ac_exec_ext in '' $ac_executable_extensions; do
1883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884     ac_cv_prog_ac_ct_CC="$ac_prog"
1885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886     break 2
1887   fi
1888 done
1889 done
1890
1891 fi
1892 fi
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898   echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902   test -n "$ac_ct_CC" && break
1903 done
1904
1905   CC=$ac_ct_CC
1906 fi
1907
1908 fi
1909
1910
1911 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1912 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: no acceptable C compiler found in \$PATH
1916 See \`config.log' for more details." >&2;}
1917    { (exit 1); exit 1; }; }; }
1918
1919 # Provide some information about the compiler.
1920 echo "$as_me:$LINENO:" \
1921      "checking for C compiler version" >&5
1922 ac_compiler=`set X $ac_compile; echo $2`
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1924   (eval $ac_compiler --version </dev/null >&5) 2>&5
1925   ac_status=$?
1926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927   (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1929   (eval $ac_compiler -v </dev/null >&5) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1934   (eval $ac_compiler -V </dev/null >&5) 2>&5
1935   ac_status=$?
1936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937   (exit $ac_status); }
1938
1939 cat >conftest.$ac_ext <<_ACEOF
1940 /* confdefs.h.  */
1941 _ACEOF
1942 cat confdefs.h >>conftest.$ac_ext
1943 cat >>conftest.$ac_ext <<_ACEOF
1944 /* end confdefs.h.  */
1945
1946 int
1947 main ()
1948 {
1949
1950   ;
1951   return 0;
1952 }
1953 _ACEOF
1954 ac_clean_files_save=$ac_clean_files
1955 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1956 # Try to create an executable without -o first, disregard a.out.
1957 # It will help us diagnose broken compilers, and finding out an intuition
1958 # of exeext.
1959 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1960 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1961 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1963   (eval $ac_link_default) 2>&5
1964   ac_status=$?
1965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966   (exit $ac_status); }; then
1967   # Find the output, starting from the most likely.  This scheme is
1968 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969 # resort.
1970
1971 # Be careful to initialize this variable, since it used to be cached.
1972 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1973 ac_cv_exeext=
1974 # b.out is created by i960 compilers.
1975 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1976 do
1977   test -f "$ac_file" || continue
1978   case $ac_file in
1979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1980         ;;
1981     conftest.$ac_ext )
1982         # This is the source file.
1983         ;;
1984     [ab].out )
1985         # We found the default executable, but exeext='' is most
1986         # certainly right.
1987         break;;
1988     *.* )
1989         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990         # FIXME: I believe we export ac_cv_exeext for Libtool,
1991         # but it would be cool to find out if it's true.  Does anybody
1992         # maintain Libtool? --akim.
1993         export ac_cv_exeext
1994         break;;
1995     * )
1996         break;;
1997   esac
1998 done
1999 else
2000   echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2002
2003 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2004 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2005 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2006 See \`config.log' for more details." >&5
2007 echo "$as_me: error: C compiler cannot create executables
2008 See \`config.log' for more details." >&2;}
2009    { (exit 77); exit 77; }; }; }
2010 fi
2011
2012 ac_exeext=$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_file" >&5
2014 echo "${ECHO_T}$ac_file" >&6
2015
2016 # Check the compiler produces executables we can run.  If not, either
2017 # the compiler is broken, or we cross compile.
2018 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2019 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2020 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2021 # If not cross compiling, check that we can run a simple program.
2022 if test "$cross_compiling" != yes; then
2023   if { ac_try='./$ac_file'
2024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025   (eval $ac_try) 2>&5
2026   ac_status=$?
2027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028   (exit $ac_status); }; }; then
2029     cross_compiling=no
2030   else
2031     if test "$cross_compiling" = maybe; then
2032         cross_compiling=yes
2033     else
2034         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2037 If you meant to cross compile, use \`--host'.
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot run C compiled programs.
2040 If you meant to cross compile, use \`--host'.
2041 See \`config.log' for more details." >&2;}
2042    { (exit 1); exit 1; }; }; }
2043     fi
2044   fi
2045 fi
2046 echo "$as_me:$LINENO: result: yes" >&5
2047 echo "${ECHO_T}yes" >&6
2048
2049 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2050 ac_clean_files=$ac_clean_files_save
2051 # Check the compiler produces executables we can run.  If not, either
2052 # the compiler is broken, or we cross compile.
2053 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2055 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2056 echo "${ECHO_T}$cross_compiling" >&6
2057
2058 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2061   (eval $ac_link) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); }; then
2065   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2066 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2067 # work properly (i.e., refer to `conftest.exe'), while it won't with
2068 # `rm'.
2069 for ac_file in conftest.exe conftest conftest.*; do
2070   test -f "$ac_file" || continue
2071   case $ac_file in
2072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2073     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074           export ac_cv_exeext
2075           break;;
2076     * ) break;;
2077   esac
2078 done
2079 else
2080   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2081 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2085 See \`config.log' for more details." >&2;}
2086    { (exit 1); exit 1; }; }; }
2087 fi
2088
2089 rm -f conftest$ac_cv_exeext
2090 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2091 echo "${ECHO_T}$ac_cv_exeext" >&6
2092
2093 rm -f conftest.$ac_ext
2094 EXEEXT=$ac_cv_exeext
2095 ac_exeext=$EXEEXT
2096 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2097 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2098 if test "${ac_cv_objext+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h.  */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h.  */
2107
2108 int
2109 main ()
2110 {
2111
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 rm -f conftest.o conftest.obj
2117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118   (eval $ac_compile) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }; then
2122   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2123   case $ac_file in
2124     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2125     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2126        break;;
2127   esac
2128 done
2129 else
2130   echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2132
2133 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2134 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2138 See \`config.log' for more details." >&2;}
2139    { (exit 1); exit 1; }; }; }
2140 fi
2141
2142 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2143 fi
2144 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2145 echo "${ECHO_T}$ac_cv_objext" >&6
2146 OBJEXT=$ac_cv_objext
2147 ac_objext=$OBJEXT
2148 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2149 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2150 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h.  */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h.  */
2159
2160 int
2161 main ()
2162 {
2163 #ifndef __GNUC__
2164        choke me
2165 #endif
2166
2167   ;
2168   return 0;
2169 }
2170 _ACEOF
2171 rm -f conftest.$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173   (eval $ac_compile) 2>conftest.er1
2174   ac_status=$?
2175   grep -v '^ *+' conftest.er1 >conftest.err
2176   rm -f conftest.er1
2177   cat conftest.err >&5
2178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179   (exit $ac_status); } &&
2180          { ac_try='test -z "$ac_c_werror_flag"
2181                          || test ! -s conftest.err'
2182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183   (eval $ac_try) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; } &&
2187          { ac_try='test -s conftest.$ac_objext'
2188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189   (eval $ac_try) 2>&5
2190   ac_status=$?
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); }; }; then
2193   ac_compiler_gnu=yes
2194 else
2195   echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2197
2198 ac_compiler_gnu=no
2199 fi
2200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2202
2203 fi
2204 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206 GCC=`test $ac_compiler_gnu = yes && echo yes`
2207 ac_test_CFLAGS=${CFLAGS+set}
2208 ac_save_CFLAGS=$CFLAGS
2209 CFLAGS="-g"
2210 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212 if test "${ac_cv_prog_cc_g+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   cat >conftest.$ac_ext <<_ACEOF
2216 /* confdefs.h.  */
2217 _ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h.  */
2221
2222 int
2223 main ()
2224 {
2225
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232   (eval $ac_compile) 2>conftest.er1
2233   ac_status=$?
2234   grep -v '^ *+' conftest.er1 >conftest.err
2235   rm -f conftest.er1
2236   cat conftest.err >&5
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); } &&
2239          { ac_try='test -z "$ac_c_werror_flag"
2240                          || test ! -s conftest.err'
2241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242   (eval $ac_try) 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); }; } &&
2246          { ac_try='test -s conftest.$ac_objext'
2247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248   (eval $ac_try) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; }; then
2252   ac_cv_prog_cc_g=yes
2253 else
2254   echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_cv_prog_cc_g=no
2258 fi
2259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2263 if test "$ac_test_CFLAGS" = set; then
2264   CFLAGS=$ac_save_CFLAGS
2265 elif test $ac_cv_prog_cc_g = yes; then
2266   if test "$GCC" = yes; then
2267     CFLAGS="-g -O2"
2268   else
2269     CFLAGS="-g"
2270   fi
2271 else
2272   if test "$GCC" = yes; then
2273     CFLAGS="-O2"
2274   else
2275     CFLAGS=
2276   fi
2277 fi
2278 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2279 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2280 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   ac_cv_prog_cc_stdc=no
2284 ac_save_CC=$CC
2285 cat >conftest.$ac_ext <<_ACEOF
2286 /* confdefs.h.  */
2287 _ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h.  */
2291 #include <stdarg.h>
2292 #include <stdio.h>
2293 #include <sys/types.h>
2294 #include <sys/stat.h>
2295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2296 struct buf { int x; };
2297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2298 static char *e (p, i)
2299      char **p;
2300      int i;
2301 {
2302   return p[i];
2303 }
2304 static char *f (char * (*g) (char **, int), char **p, ...)
2305 {
2306   char *s;
2307   va_list v;
2308   va_start (v,p);
2309   s = g (p, va_arg (v,int));
2310   va_end (v);
2311   return s;
2312 }
2313
2314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2315    function prototypes and stuff, but not '\xHH' hex character constants.
2316    These don't provoke an error unfortunately, instead are silently treated
2317    as 'x'.  The following induces an error, until -std1 is added to get
2318    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2319    array size at least.  It's necessary to write '\x00'==0 to get something
2320    that's true only with -std1.  */
2321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2322
2323 int test (int i, double x);
2324 struct s1 {int (*f) (int a);};
2325 struct s2 {int (*f) (double a);};
2326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2327 int argc;
2328 char **argv;
2329 int
2330 main ()
2331 {
2332 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 # Don't try gcc -ansi; that turns off useful extensions and
2338 # breaks some systems' header files.
2339 # AIX                   -qlanglvl=ansi
2340 # Ultrix and OSF/1      -std1
2341 # HP-UX 10.20 and later -Ae
2342 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2343 # SVR4                  -Xc -D__EXTENSIONS__
2344 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2345 do
2346   CC="$ac_save_CC $ac_arg"
2347   rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349   (eval $ac_compile) 2>conftest.er1
2350   ac_status=$?
2351   grep -v '^ *+' conftest.er1 >conftest.err
2352   rm -f conftest.er1
2353   cat conftest.err >&5
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); } &&
2356          { ac_try='test -z "$ac_c_werror_flag"
2357                          || test ! -s conftest.err'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; } &&
2363          { ac_try='test -s conftest.$ac_objext'
2364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365   (eval $ac_try) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }; }; then
2369   ac_cv_prog_cc_stdc=$ac_arg
2370 break
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 fi
2376 rm -f conftest.err conftest.$ac_objext
2377 done
2378 rm -f conftest.$ac_ext conftest.$ac_objext
2379 CC=$ac_save_CC
2380
2381 fi
2382
2383 case "x$ac_cv_prog_cc_stdc" in
2384   x|xno)
2385     echo "$as_me:$LINENO: result: none needed" >&5
2386 echo "${ECHO_T}none needed" >&6 ;;
2387   *)
2388     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2389 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2390     CC="$CC $ac_cv_prog_cc_stdc" ;;
2391 esac
2392
2393 # Some people use a C++ compiler to compile C.  Since we use `exit',
2394 # in C++ we need to declare it.  In case someone uses the same compiler
2395 # for both compiling C and C++ we need to have the C++ compiler decide
2396 # the declaration of exit, since it's the most demanding environment.
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #ifndef __cplusplus
2399   choke me
2400 #endif
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404   (eval $ac_compile) 2>conftest.er1
2405   ac_status=$?
2406   grep -v '^ *+' conftest.er1 >conftest.err
2407   rm -f conftest.er1
2408   cat conftest.err >&5
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); } &&
2411          { ac_try='test -z "$ac_c_werror_flag"
2412                          || test ! -s conftest.err'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; } &&
2418          { ac_try='test -s conftest.$ac_objext'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   for ac_declaration in \
2425    '' \
2426    'extern "C" void std::exit (int) throw (); using std::exit;' \
2427    'extern "C" void std::exit (int); using std::exit;' \
2428    'extern "C" void exit (int) throw ();' \
2429    'extern "C" void exit (int);' \
2430    'void exit (int);'
2431 do
2432   cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h.  */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h.  */
2438 $ac_declaration
2439 #include <stdlib.h>
2440 int
2441 main ()
2442 {
2443 exit (42);
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450   (eval $ac_compile) 2>conftest.er1
2451   ac_status=$?
2452   grep -v '^ *+' conftest.er1 >conftest.err
2453   rm -f conftest.er1
2454   cat conftest.err >&5
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } &&
2457          { ac_try='test -z "$ac_c_werror_flag"
2458                          || test ! -s conftest.err'
2459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; } &&
2464          { ac_try='test -s conftest.$ac_objext'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; }; then
2470   :
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 continue
2476 fi
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484 $ac_declaration
2485 int
2486 main ()
2487 {
2488 exit (42);
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495   (eval $ac_compile) 2>conftest.er1
2496   ac_status=$?
2497   grep -v '^ *+' conftest.er1 >conftest.err
2498   rm -f conftest.er1
2499   cat conftest.err >&5
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } &&
2502          { ac_try='test -z "$ac_c_werror_flag"
2503                          || test ! -s conftest.err'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; } &&
2509          { ac_try='test -s conftest.$ac_objext'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   break
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 fi
2521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522 done
2523 rm -f conftest*
2524 if test -n "$ac_declaration"; then
2525   echo '#ifdef __cplusplus' >>confdefs.h
2526   echo $ac_declaration      >>confdefs.h
2527   echo '#endif'             >>confdefs.h
2528 fi
2529
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 fi
2535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541
2542
2543 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2544 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2545 if test "${ac_cv_search_strerror+set}" = set; then
2546   echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548   ac_func_search_save_LIBS=$LIBS
2549 ac_cv_search_strerror=no
2550 cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556
2557 /* Override any gcc2 internal prototype to avoid an error.  */
2558 #ifdef __cplusplus
2559 extern "C"
2560 #endif
2561 /* We use char because int might match the return type of a gcc2
2562    builtin and then its argument prototype would still apply.  */
2563 char strerror ();
2564 int
2565 main ()
2566 {
2567 strerror ();
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2574   (eval $ac_link) 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag"
2582                          || test ! -s conftest.err'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; } &&
2588          { ac_try='test -s conftest$ac_exeext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   ac_cv_search_strerror="none required"
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 fi
2600 rm -f conftest.err conftest.$ac_objext \
2601       conftest$ac_exeext conftest.$ac_ext
2602 if test "$ac_cv_search_strerror" = no; then
2603   for ac_lib in cposix; do
2604     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2605     cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h.  */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h.  */
2611
2612 /* Override any gcc2 internal prototype to avoid an error.  */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 /* We use char because int might match the return type of a gcc2
2617    builtin and then its argument prototype would still apply.  */
2618 char strerror ();
2619 int
2620 main ()
2621 {
2622 strerror ();
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629   (eval $ac_link) 2>conftest.er1
2630   ac_status=$?
2631   grep -v '^ *+' conftest.er1 >conftest.err
2632   rm -f conftest.er1
2633   cat conftest.err >&5
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); } &&
2636          { ac_try='test -z "$ac_c_werror_flag"
2637                          || test ! -s conftest.err'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; } &&
2643          { ac_try='test -s conftest$ac_exeext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   ac_cv_search_strerror="-l$ac_lib"
2650 break
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 fi
2656 rm -f conftest.err conftest.$ac_objext \
2657       conftest$ac_exeext conftest.$ac_ext
2658   done
2659 fi
2660 LIBS=$ac_func_search_save_LIBS
2661 fi
2662 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2663 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2664 if test "$ac_cv_search_strerror" != no; then
2665   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2666
2667 fi
2668
2669
2670 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2671 am__api_version="1.9"
2672 # Find a good install program.  We prefer a C program (faster),
2673 # so one script is as good as another.  But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2678 # AIX /bin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2687 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then
2690   echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695   IFS=$as_save_IFS
2696   test -z "$as_dir" && as_dir=.
2697   # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in
2699   ./ | .// | /cC/* | \
2700   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2702   /usr/ucb/* ) ;;
2703   *)
2704     # OSF1 and SCO ODT 3.0 have their own names for install.
2705     # Don't use installbsd from OSF since it installs stuff as root
2706     # by default.
2707     for ac_prog in ginstall scoinst install; do
2708       for ac_exec_ext in '' $ac_executable_extensions; do
2709         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2710           if test $ac_prog = install &&
2711             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712             # AIX install.  It has an incompatible calling convention.
2713             :
2714           elif test $ac_prog = install &&
2715             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716             # program-specific install script used by HP pwplus--don't use.
2717             :
2718           else
2719             rm -rf conftest.one conftest.two conftest.dir
2720             echo one > conftest.one
2721             echo two > conftest.two
2722             mkdir conftest.dir
2723             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724               test -s conftest.one && test -s conftest.two &&
2725               test -s conftest.dir/conftest.one &&
2726               test -s conftest.dir/conftest.two
2727             then
2728               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729               break 3
2730             fi
2731           fi
2732         fi
2733       done
2734     done
2735     ;;
2736 esac
2737 done
2738
2739 rm -rf conftest.one conftest.two conftest.dir
2740
2741 fi
2742   if test "${ac_cv_path_install+set}" = set; then
2743     INSTALL=$ac_cv_path_install
2744   else
2745     # As a last resort, use the slow shell script.  Don't cache a
2746     # value for INSTALL within a source directory, because that will
2747     # break other packages using the cache if that directory is
2748     # removed, or if the value is a relative name.
2749     INSTALL=$ac_install_sh
2750   fi
2751 fi
2752 echo "$as_me:$LINENO: result: $INSTALL" >&5
2753 echo "${ECHO_T}$INSTALL" >&6
2754
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2760
2761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
2763 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2764 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2765 # Just in case
2766 sleep 1
2767 echo timestamp > conftest.file
2768 # Do `set' in a subshell so we don't clobber the current shell's
2769 # arguments.  Must try -L first in case configure is actually a
2770 # symlink; some systems play weird games with the mod time of symlinks
2771 # (eg FreeBSD returns the mod time of the symlink's containing
2772 # directory).
2773 if (
2774    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2775    if test "$*" = "X"; then
2776       # -L didn't work.
2777       set X `ls -t $srcdir/configure conftest.file`
2778    fi
2779    rm -f conftest.file
2780    if test "$*" != "X $srcdir/configure conftest.file" \
2781       && test "$*" != "X conftest.file $srcdir/configure"; then
2782
2783       # If neither matched, then we have a broken ls.  This can happen
2784       # if, for instance, CONFIG_SHELL is bash and it inherits a
2785       # broken ls alias from the environment.  This has actually
2786       # happened.  Such a system could not be considered "sane".
2787       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2788 alias in your environment" >&5
2789 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2790 alias in your environment" >&2;}
2791    { (exit 1); exit 1; }; }
2792    fi
2793
2794    test "$2" = conftest.file
2795    )
2796 then
2797    # Ok.
2798    :
2799 else
2800    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2801 Check your system clock" >&5
2802 echo "$as_me: error: newly created file is older than distributed files!
2803 Check your system clock" >&2;}
2804    { (exit 1); exit 1; }; }
2805 fi
2806 echo "$as_me:$LINENO: result: yes" >&5
2807 echo "${ECHO_T}yes" >&6
2808 test "$program_prefix" != NONE &&
2809   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2810 # Use a double $ so make ignores it.
2811 test "$program_suffix" != NONE &&
2812   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2813 # Double any \ or $.  echo might interpret backslashes.
2814 # By default was `s,x,x', remove it if useless.
2815 cat <<\_ACEOF >conftest.sed
2816 s/[\\$]/&&/g;s/;s,x,x,$//
2817 _ACEOF
2818 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2819 rm conftest.sed
2820
2821 # expand $ac_aux_dir to an absolute path
2822 am_aux_dir=`cd $ac_aux_dir && pwd`
2823
2824 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --run true"; then
2827   am_missing_run="$MISSING --run "
2828 else
2829   am_missing_run=
2830   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2831 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2832 fi
2833
2834 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2835   # We used to keeping the `.' as first argument, in order to
2836   # allow $(mkdir_p) to be used without argument.  As in
2837   #   $(mkdir_p) $(somedir)
2838   # where $(somedir) is conditionally defined.  However this is wrong
2839   # for two reasons:
2840   #  1. if the package is installed by a user who cannot write `.'
2841   #     make install will fail,
2842   #  2. the above comment should most certainly read
2843   #     $(mkdir_p) $(DESTDIR)$(somedir)
2844   #     so it does not work when $(somedir) is undefined and
2845   #     $(DESTDIR) is not.
2846   #  To support the latter case, we have to write
2847   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2848   #  so the `.' trick is pointless.
2849   mkdir_p='mkdir -p --'
2850 else
2851   # On NextStep and OpenStep, the `mkdir' command does not
2852   # recognize any option.  It will interpret all options as
2853   # directories to create, and then abort because `.' already
2854   # exists.
2855   for d in ./-p ./--version;
2856   do
2857     test -d $d && rmdir $d
2858   done
2859   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2860   if test -f "$ac_aux_dir/mkinstalldirs"; then
2861     mkdir_p='$(mkinstalldirs)'
2862   else
2863     mkdir_p='$(install_sh) -d'
2864   fi
2865 fi
2866
2867 for ac_prog in gawk mawk nawk awk
2868 do
2869   # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_AWK+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   if test -n "$AWK"; then
2877   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884   for ac_exec_ext in '' $ac_executable_extensions; do
2885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886     ac_cv_prog_AWK="$ac_prog"
2887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891 done
2892
2893 fi
2894 fi
2895 AWK=$ac_cv_prog_AWK
2896 if test -n "$AWK"; then
2897   echo "$as_me:$LINENO: result: $AWK" >&5
2898 echo "${ECHO_T}$AWK" >&6
2899 else
2900   echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902 fi
2903
2904   test -n "$AWK" && break
2905 done
2906
2907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   cat >conftest.make <<\_ACEOF
2914 all:
2915         @echo 'ac_maketemp="$(MAKE)"'
2916 _ACEOF
2917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2919 if test -n "$ac_maketemp"; then
2920   eval ac_cv_prog_make_${ac_make}_set=yes
2921 else
2922   eval ac_cv_prog_make_${ac_make}_set=no
2923 fi
2924 rm -f conftest.make
2925 fi
2926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2927   echo "$as_me:$LINENO: result: yes" >&5
2928 echo "${ECHO_T}yes" >&6
2929   SET_MAKE=
2930 else
2931   echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2933   SET_MAKE="MAKE=${MAKE-make}"
2934 fi
2935
2936 rm -rf .tst 2>/dev/null
2937 mkdir .tst 2>/dev/null
2938 if test -d .tst; then
2939   am__leading_dot=.
2940 else
2941   am__leading_dot=_
2942 fi
2943 rmdir .tst 2>/dev/null
2944
2945 DEPDIR="${am__leading_dot}deps"
2946
2947           ac_config_commands="$ac_config_commands depfiles"
2948
2949
2950 am_make=${MAKE-make}
2951 cat > confinc << 'END'
2952 am__doit:
2953         @echo done
2954 .PHONY: am__doit
2955 END
2956 # If we don't find an include directive, just comment out the code.
2957 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2958 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2959 am__include="#"
2960 am__quote=
2961 _am_result=none
2962 # First try GNU make style include.
2963 echo "include confinc" > confmf
2964 # We grep out `Entering directory' and `Leaving directory'
2965 # messages which can occur if `w' ends up in MAKEFLAGS.
2966 # In particular we don't look at `^make:' because GNU make might
2967 # be invoked under some other name (usually "gmake"), in which
2968 # case it prints its new name instead of `make'.
2969 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2970    am__include=include
2971    am__quote=
2972    _am_result=GNU
2973 fi
2974 # Now try BSD make style include.
2975 if test "$am__include" = "#"; then
2976    echo '.include "confinc"' > confmf
2977    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2978       am__include=.include
2979       am__quote="\""
2980       _am_result=BSD
2981    fi
2982 fi
2983
2984
2985 echo "$as_me:$LINENO: result: $_am_result" >&5
2986 echo "${ECHO_T}$_am_result" >&6
2987 rm -f confinc confmf
2988
2989 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2990 if test "${enable_dependency_tracking+set}" = set; then
2991   enableval="$enable_dependency_tracking"
2992
2993 fi;
2994 if test "x$enable_dependency_tracking" != xno; then
2995   am_depcomp="$ac_aux_dir/depcomp"
2996   AMDEPBACKSLASH='\'
2997 fi
2998
2999
3000 if test "x$enable_dependency_tracking" != xno; then
3001   AMDEP_TRUE=
3002   AMDEP_FALSE='#'
3003 else
3004   AMDEP_TRUE='#'
3005   AMDEP_FALSE=
3006 fi
3007
3008
3009
3010 # test to see if srcdir already configured
3011 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3012    test -f $srcdir/config.status; then
3013   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3014 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3015    { (exit 1); exit 1; }; }
3016 fi
3017
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020   if (cygpath --version) >/dev/null 2>/dev/null; then
3021     CYGPATH_W='cygpath -w'
3022   else
3023     CYGPATH_W=echo
3024   fi
3025 fi
3026
3027
3028 # Define the identity of the package.
3029  PACKAGE=binutils
3030  VERSION=${BFD_VERSION}
3031
3032
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3035 _ACEOF
3036
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3040 _ACEOF
3041
3042 # Some tools Automake needs.
3043
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045
3046
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
3055
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
3058 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3059
3060 # Installed binaries are usually stripped using `strip' when the user
3061 # run `make install-strip'.  However `strip' might not be the right
3062 # tool to use in cross-compilation environments, therefore Automake
3063 # will honor the `STRIP' environment variable to overrule this program.
3064 if test "$cross_compiling" != no; then
3065   if test -n "$ac_tool_prefix"; then
3066   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}strip; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_STRIP+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   if test -n "$STRIP"; then
3074   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081   for ac_exec_ext in '' $ac_executable_extensions; do
3082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088 done
3089
3090 fi
3091 fi
3092 STRIP=$ac_cv_prog_STRIP
3093 if test -n "$STRIP"; then
3094   echo "$as_me:$LINENO: result: $STRIP" >&5
3095 echo "${ECHO_T}$STRIP" >&6
3096 else
3097   echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3099 fi
3100
3101 fi
3102 if test -z "$ac_cv_prog_STRIP"; then
3103   ac_ct_STRIP=$STRIP
3104   # Extract the first word of "strip", so it can be a program name with args.
3105 set dummy strip; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   if test -n "$ac_ct_STRIP"; then
3112   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119   for ac_exec_ext in '' $ac_executable_extensions; do
3120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121     ac_cv_prog_ac_ct_STRIP="strip"
3122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126 done
3127
3128   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3129 fi
3130 fi
3131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132 if test -n "$ac_ct_STRIP"; then
3133   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3134 echo "${ECHO_T}$ac_ct_STRIP" >&6
3135 else
3136   echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3138 fi
3139
3140   STRIP=$ac_ct_STRIP
3141 else
3142   STRIP="$ac_cv_prog_STRIP"
3143 fi
3144
3145 fi
3146 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3147
3148 # We need awk for the "check" target.  The system "awk" is bad on
3149 # some platforms.
3150 # Always define AMTAR for backward compatibility.
3151
3152 AMTAR=${AMTAR-"${am_missing_run}tar"}
3153
3154 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3155
3156
3157
3158
3159 depcc="$CC"   am_compiler_list=
3160
3161 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3164   echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3167   # We make a subdir and do the tests there.  Otherwise we can end up
3168   # making bogus files that we don't know about and never remove.  For
3169   # instance it was reported that on HP-UX the gcc test will end up
3170   # making a dummy file named `D' -- because `-MD' means `put the output
3171   # in D'.
3172   mkdir conftest.dir
3173   # Copy depcomp to subdir because otherwise we won't find it if we're
3174   # using a relative directory.
3175   cp "$am_depcomp" conftest.dir
3176   cd conftest.dir
3177   # We will build objects and dependencies in a subdirectory because
3178   # it helps to detect inapplicable dependency modes.  For instance
3179   # both Tru64's cc and ICC support -MD to output dependencies as a
3180   # side effect of compilation, but ICC will put the dependencies in
3181   # the current directory while Tru64 will put them in the object
3182   # directory.
3183   mkdir sub
3184
3185   am_cv_CC_dependencies_compiler_type=none
3186   if test "$am_compiler_list" = ""; then
3187      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3188   fi
3189   for depmode in $am_compiler_list; do
3190     # Setup a source with many dependencies, because some compilers
3191     # like to wrap large dependency lists on column 80 (with \), and
3192     # we should not choose a depcomp mode which is confused by this.
3193     #
3194     # We need to recreate these files for each test, as the compiler may
3195     # overwrite some of them when testing with obscure command lines.
3196     # This happens at least with the AIX C compiler.
3197     : > sub/conftest.c
3198     for i in 1 2 3 4 5 6; do
3199       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3200       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3201       # Solaris 8's {/usr,}/bin/sh.
3202       touch sub/conftst$i.h
3203     done
3204     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3205
3206     case $depmode in
3207     nosideeffect)
3208       # after this tag, mechanisms are not by side-effect, so they'll
3209       # only be used when explicitly requested
3210       if test "x$enable_dependency_tracking" = xyes; then
3211         continue
3212       else
3213         break
3214       fi
3215       ;;
3216     none) break ;;
3217     esac
3218     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3219     # mode.  It turns out that the SunPro C++ compiler does not properly
3220     # handle `-M -o', and we need to detect this.
3221     if depmode=$depmode \
3222        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3223        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3224        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3225          >/dev/null 2>conftest.err &&
3226        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3227        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3228        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3229       # icc doesn't choke on unknown options, it will just issue warnings
3230       # or remarks (even with -Werror).  So we grep stderr for any message
3231       # that says an option was ignored or not supported.
3232       # When given -MP, icc 7.0 and 7.1 complain thusly:
3233       #   icc: Command line warning: ignoring option '-M'; no argument required
3234       # The diagnosis changed in icc 8.0:
3235       #   icc: Command line remark: option '-MP' not supported
3236       if (grep 'ignoring option' conftest.err ||
3237           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3238         am_cv_CC_dependencies_compiler_type=$depmode
3239         break
3240       fi
3241     fi
3242   done
3243
3244   cd ..
3245   rm -rf conftest.dir
3246 else
3247   am_cv_CC_dependencies_compiler_type=none
3248 fi
3249
3250 fi
3251 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3254
3255
3256
3257 if
3258   test "x$enable_dependency_tracking" != xno \
3259   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3260   am__fastdepCC_TRUE=
3261   am__fastdepCC_FALSE='#'
3262 else
3263   am__fastdepCC_TRUE='#'
3264   am__fastdepCC_FALSE=
3265 fi
3266
3267
3268
3269
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 if test -n "$ac_tool_prefix"; then
3276   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283   if test -n "$CC"; then
3284   ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291   for ac_exec_ext in '' $ac_executable_extensions; do
3292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298 done
3299
3300 fi
3301 fi
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304   echo "$as_me:$LINENO: result: $CC" >&5
3305 echo "${ECHO_T}$CC" >&6
3306 else
3307   echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3309 fi
3310
3311 fi
3312 if test -z "$ac_cv_prog_CC"; then
3313   ac_ct_CC=$CC
3314   # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if test -n "$ac_ct_CC"; then
3322   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327   IFS=$as_save_IFS
3328   test -z "$as_dir" && as_dir=.
3329   for ac_exec_ext in '' $ac_executable_extensions; do
3330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331     ac_cv_prog_ac_ct_CC="gcc"
3332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333     break 2
3334   fi
3335 done
3336 done
3337
3338 fi
3339 fi
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6
3344 else
3345   echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349   CC=$ac_ct_CC
3350 else
3351   CC="$ac_cv_prog_CC"
3352 fi
3353
3354 if test -z "$CC"; then
3355   if test -n "$ac_tool_prefix"; then
3356   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}cc; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_CC+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   if test -n "$CC"; then
3364   ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369   IFS=$as_save_IFS
3370   test -z "$as_dir" && as_dir=.
3371   for ac_exec_ext in '' $ac_executable_extensions; do
3372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373     ac_cv_prog_CC="${ac_tool_prefix}cc"
3374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375     break 2
3376   fi
3377 done
3378 done
3379
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384   echo "$as_me:$LINENO: result: $CC" >&5
3385 echo "${ECHO_T}$CC" >&6
3386 else
3387   echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3389 fi
3390
3391 fi
3392 if test -z "$ac_cv_prog_CC"; then
3393   ac_ct_CC=$CC
3394   # Extract the first word of "cc", so it can be a program name with args.
3395 set dummy cc; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401   if test -n "$ac_ct_CC"; then
3402   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407   IFS=$as_save_IFS
3408   test -z "$as_dir" && as_dir=.
3409   for ac_exec_ext in '' $ac_executable_extensions; do
3410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411     ac_cv_prog_ac_ct_CC="cc"
3412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413     break 2
3414   fi
3415 done
3416 done
3417
3418 fi
3419 fi
3420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421 if test -n "$ac_ct_CC"; then
3422   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423 echo "${ECHO_T}$ac_ct_CC" >&6
3424 else
3425   echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3427 fi
3428
3429   CC=$ac_ct_CC
3430 else
3431   CC="$ac_cv_prog_CC"
3432 fi
3433
3434 fi
3435 if test -z "$CC"; then
3436   # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_CC+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   if test -n "$CC"; then
3444   ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446   ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450   IFS=$as_save_IFS
3451   test -z "$as_dir" && as_dir=.
3452   for ac_exec_ext in '' $ac_executable_extensions; do
3453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455        ac_prog_rejected=yes
3456        continue
3457      fi
3458     ac_cv_prog_CC="cc"
3459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460     break 2
3461   fi
3462 done
3463 done
3464
3465 if test $ac_prog_rejected = yes; then
3466   # We found a bogon in the path, so make sure we never use it.
3467   set dummy $ac_cv_prog_CC
3468   shift
3469   if test $# != 0; then
3470     # We chose a different compiler from the bogus one.
3471     # However, it has the same basename, so the bogon will be chosen
3472     # first if we set CC to just the basename; use the full file name.
3473     shift
3474     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475   fi
3476 fi
3477 fi
3478 fi
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481   echo "$as_me:$LINENO: result: $CC" >&5
3482 echo "${ECHO_T}$CC" >&6
3483 else
3484   echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3486 fi
3487
3488 fi
3489 if test -z "$CC"; then
3490   if test -n "$ac_tool_prefix"; then
3491   for ac_prog in cl
3492   do
3493     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_prog_CC+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   if test -n "$CC"; then
3501   ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508   for ac_exec_ext in '' $ac_executable_extensions; do
3509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512     break 2
3513   fi
3514 done
3515 done
3516
3517 fi
3518 fi
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521   echo "$as_me:$LINENO: result: $CC" >&5
3522 echo "${ECHO_T}$CC" >&6
3523 else
3524   echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3526 fi
3527
3528     test -n "$CC" && break
3529   done
3530 fi
3531 if test -z "$CC"; then
3532   ac_ct_CC=$CC
3533   for ac_prog in cl
3534 do
3535   # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   if test -n "$ac_ct_CC"; then
3543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550   for ac_exec_ext in '' $ac_executable_extensions; do
3551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552     ac_cv_prog_ac_ct_CC="$ac_prog"
3553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557 done
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3564 echo "${ECHO_T}$ac_ct_CC" >&6
3565 else
3566   echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3568 fi
3569
3570   test -n "$ac_ct_CC" && break
3571 done
3572
3573   CC=$ac_ct_CC
3574 fi
3575
3576 fi
3577
3578
3579 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&5
3583 echo "$as_me: error: no acceptable C compiler found in \$PATH
3584 See \`config.log' for more details." >&2;}
3585    { (exit 1); exit 1; }; }; }
3586
3587 # Provide some information about the compiler.
3588 echo "$as_me:$LINENO:" \
3589      "checking for C compiler version" >&5
3590 ac_compiler=`set X $ac_compile; echo $2`
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3592   (eval $ac_compiler --version </dev/null >&5) 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3597   (eval $ac_compiler -v </dev/null >&5) 2>&5
3598   ac_status=$?
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); }
3601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3602   (eval $ac_compiler -V </dev/null >&5) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }
3606
3607 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3608 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3609 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h.  */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h.  */
3618
3619 int
3620 main ()
3621 {
3622 #ifndef __GNUC__
3623        choke me
3624 #endif
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632   (eval $ac_compile) 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } &&
3639          { ac_try='test -z "$ac_c_werror_flag"
3640                          || test ! -s conftest.err'
3641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642   (eval $ac_try) 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); }; } &&
3646          { ac_try='test -s conftest.$ac_objext'
3647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648   (eval $ac_try) 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); }; }; then
3652   ac_compiler_gnu=yes
3653 else
3654   echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657 ac_compiler_gnu=no
3658 fi
3659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3661
3662 fi
3663 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3664 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3665 GCC=`test $ac_compiler_gnu = yes && echo yes`
3666 ac_test_CFLAGS=${CFLAGS+set}
3667 ac_save_CFLAGS=$CFLAGS
3668 CFLAGS="-g"
3669 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3670 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3671 if test "${ac_cv_prog_cc_g+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680
3681 int
3682 main ()
3683 {
3684
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691   (eval $ac_compile) 2>conftest.er1
3692   ac_status=$?
3693   grep -v '^ *+' conftest.er1 >conftest.err
3694   rm -f conftest.er1
3695   cat conftest.err >&5
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); } &&
3698          { ac_try='test -z "$ac_c_werror_flag"
3699                          || test ! -s conftest.err'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; } &&
3705          { ac_try='test -s conftest.$ac_objext'
3706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707   (eval $ac_try) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; }; then
3711   ac_cv_prog_cc_g=yes
3712 else
3713   echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 ac_cv_prog_cc_g=no
3717 fi
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3721 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3722 if test "$ac_test_CFLAGS" = set; then
3723   CFLAGS=$ac_save_CFLAGS
3724 elif test $ac_cv_prog_cc_g = yes; then
3725   if test "$GCC" = yes; then
3726     CFLAGS="-g -O2"
3727   else
3728     CFLAGS="-g"
3729   fi
3730 else
3731   if test "$GCC" = yes; then
3732     CFLAGS="-O2"
3733   else
3734     CFLAGS=
3735   fi
3736 fi
3737 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3738 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3739 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   ac_cv_prog_cc_stdc=no
3743 ac_save_CC=$CC
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h.  */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h.  */
3750 #include <stdarg.h>
3751 #include <stdio.h>
3752 #include <sys/types.h>
3753 #include <sys/stat.h>
3754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3755 struct buf { int x; };
3756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757 static char *e (p, i)
3758      char **p;
3759      int i;
3760 {
3761   return p[i];
3762 }
3763 static char *f (char * (*g) (char **, int), char **p, ...)
3764 {
3765   char *s;
3766   va_list v;
3767   va_start (v,p);
3768   s = g (p, va_arg (v,int));
3769   va_end (v);
3770   return s;
3771 }
3772
3773 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3774    function prototypes and stuff, but not '\xHH' hex character constants.
3775    These don't provoke an error unfortunately, instead are silently treated
3776    as 'x'.  The following induces an error, until -std1 is added to get
3777    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3778    array size at least.  It's necessary to write '\x00'==0 to get something
3779    that's true only with -std1.  */
3780 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3781
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 int argc;
3787 char **argv;
3788 int
3789 main ()
3790 {
3791 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 # Don't try gcc -ansi; that turns off useful extensions and
3797 # breaks some systems' header files.
3798 # AIX                   -qlanglvl=ansi
3799 # Ultrix and OSF/1      -std1
3800 # HP-UX 10.20 and later -Ae
3801 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3802 # SVR4                  -Xc -D__EXTENSIONS__
3803 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3804 do
3805   CC="$ac_save_CC $ac_arg"
3806   rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808   (eval $ac_compile) 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } &&
3815          { ac_try='test -z "$ac_c_werror_flag"
3816                          || test ! -s conftest.err'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; } &&
3822          { ac_try='test -s conftest.$ac_objext'
3823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824   (eval $ac_try) 2>&5
3825   ac_status=$?
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); }; }; then
3828   ac_cv_prog_cc_stdc=$ac_arg
3829 break
3830 else
3831   echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 fi
3835 rm -f conftest.err conftest.$ac_objext
3836 done
3837 rm -f conftest.$ac_ext conftest.$ac_objext
3838 CC=$ac_save_CC
3839
3840 fi
3841
3842 case "x$ac_cv_prog_cc_stdc" in
3843   x|xno)
3844     echo "$as_me:$LINENO: result: none needed" >&5
3845 echo "${ECHO_T}none needed" >&6 ;;
3846   *)
3847     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3848 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3849     CC="$CC $ac_cv_prog_cc_stdc" ;;
3850 esac
3851
3852 # Some people use a C++ compiler to compile C.  Since we use `exit',
3853 # in C++ we need to declare it.  In case someone uses the same compiler
3854 # for both compiling C and C++ we need to have the C++ compiler decide
3855 # the declaration of exit, since it's the most demanding environment.
3856 cat >conftest.$ac_ext <<_ACEOF
3857 #ifndef __cplusplus
3858   choke me
3859 #endif
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863   (eval $ac_compile) 2>conftest.er1
3864   ac_status=$?
3865   grep -v '^ *+' conftest.er1 >conftest.err
3866   rm -f conftest.er1
3867   cat conftest.err >&5
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } &&
3870          { ac_try='test -z "$ac_c_werror_flag"
3871                          || test ! -s conftest.err'
3872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873   (eval $ac_try) 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; } &&
3877          { ac_try='test -s conftest.$ac_objext'
3878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879   (eval $ac_try) 2>&5
3880   ac_status=$?
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); }; }; then
3883   for ac_declaration in \
3884    '' \
3885    'extern "C" void std::exit (int) throw (); using std::exit;' \
3886    'extern "C" void std::exit (int); using std::exit;' \
3887    'extern "C" void exit (int) throw ();' \
3888    'extern "C" void exit (int);' \
3889    'void exit (int);'
3890 do
3891   cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 $ac_declaration
3898 #include <stdlib.h>
3899 int
3900 main ()
3901 {
3902 exit (42);
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909   (eval $ac_compile) 2>conftest.er1
3910   ac_status=$?
3911   grep -v '^ *+' conftest.er1 >conftest.err
3912   rm -f conftest.er1
3913   cat conftest.err >&5
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } &&
3916          { ac_try='test -z "$ac_c_werror_flag"
3917                          || test ! -s conftest.err'
3918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919   (eval $ac_try) 2>&5
3920   ac_status=$?
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); }; } &&
3923          { ac_try='test -s conftest.$ac_objext'
3924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925   (eval $ac_try) 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); }; }; then
3929   :
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 continue
3935 fi
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937   cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 $ac_declaration
3944 int
3945 main ()
3946 {
3947 exit (42);
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954   (eval $ac_compile) 2>conftest.er1
3955   ac_status=$?
3956   grep -v '^ *+' conftest.er1 >conftest.err
3957   rm -f conftest.er1
3958   cat conftest.err >&5
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } &&
3961          { ac_try='test -z "$ac_c_werror_flag"
3962                          || test ! -s conftest.err'
3963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964   (eval $ac_try) 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); }; } &&
3968          { ac_try='test -s conftest.$ac_objext'
3969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970   (eval $ac_try) 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }; }; then
3974   break
3975 else
3976   echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 fi
3980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 done
3982 rm -f conftest*
3983 if test -n "$ac_declaration"; then
3984   echo '#ifdef __cplusplus' >>confdefs.h
3985   echo $ac_declaration      >>confdefs.h
3986   echo '#endif'             >>confdefs.h
3987 fi
3988
3989 else
3990   echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 fi
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001
4002 cat >>confdefs.h <<\_ACEOF
4003 #define _GNU_SOURCE 1
4004 _ACEOF
4005
4006
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4014 # On Suns, sometimes $CPP names a directory.
4015 if test -n "$CPP" && test -d "$CPP"; then
4016   CPP=
4017 fi
4018 if test -z "$CPP"; then
4019   if test "${ac_cv_prog_CPP+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022       # Double quotes because CPP needs to be expanded
4023     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024     do
4025       ac_preproc_ok=false
4026 for ac_c_preproc_warn_flag in '' yes
4027 do
4028   # Use a header file that comes with gcc, so configuring glibc
4029   # with a fresh cross-compiler works.
4030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031   # <limits.h> exists even on freestanding compilers.
4032   # On the NeXT, cc -E runs the code through the compiler's parser,
4033   # not just through cpp. "Syntax error" is here to catch this case.
4034   cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 #ifdef __STDC__
4041 # include <limits.h>
4042 #else
4043 # include <assert.h>
4044 #endif
4045                      Syntax error
4046 _ACEOF
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049   ac_status=$?
4050   grep -v '^ *+' conftest.er1 >conftest.err
4051   rm -f conftest.er1
4052   cat conftest.err >&5
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); } >/dev/null; then
4055   if test -s conftest.err; then
4056     ac_cpp_err=$ac_c_preproc_warn_flag
4057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058   else
4059     ac_cpp_err=
4060   fi
4061 else
4062   ac_cpp_err=yes
4063 fi
4064 if test -z "$ac_cpp_err"; then
4065   :
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070   # Broken: fails on valid input.
4071 continue
4072 fi
4073 rm -f conftest.err conftest.$ac_ext
4074
4075   # OK, works on sane cases.  Now check whether non-existent headers
4076   # can be detected and how.
4077   cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083 #include <ac_nonexistent.h>
4084 _ACEOF
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } >/dev/null; then
4093   if test -s conftest.err; then
4094     ac_cpp_err=$ac_c_preproc_warn_flag
4095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096   else
4097     ac_cpp_err=
4098   fi
4099 else
4100   ac_cpp_err=yes
4101 fi
4102 if test -z "$ac_cpp_err"; then
4103   # Broken: success on invalid input.
4104 continue
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109   # Passes both tests.
4110 ac_preproc_ok=:
4111 break
4112 fi
4113 rm -f conftest.err conftest.$ac_ext
4114
4115 done
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4119   break
4120 fi
4121
4122     done
4123     ac_cv_prog_CPP=$CPP
4124
4125 fi
4126   CPP=$ac_cv_prog_CPP
4127 else
4128   ac_cv_prog_CPP=$CPP
4129 fi
4130 echo "$as_me:$LINENO: result: $CPP" >&5
4131 echo "${ECHO_T}$CPP" >&6
4132 ac_preproc_ok=false
4133 for ac_c_preproc_warn_flag in '' yes
4134 do
4135   # Use a header file that comes with gcc, so configuring glibc
4136   # with a fresh cross-compiler works.
4137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138   # <limits.h> exists even on freestanding compilers.
4139   # On the NeXT, cc -E runs the code through the compiler's parser,
4140   # not just through cpp. "Syntax error" is here to catch this case.
4141   cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #ifdef __STDC__
4148 # include <limits.h>
4149 #else
4150 # include <assert.h>
4151 #endif
4152                      Syntax error
4153 _ACEOF
4154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156   ac_status=$?
4157   grep -v '^ *+' conftest.er1 >conftest.err
4158   rm -f conftest.er1
4159   cat conftest.err >&5
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } >/dev/null; then
4162   if test -s conftest.err; then
4163     ac_cpp_err=$ac_c_preproc_warn_flag
4164     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165   else
4166     ac_cpp_err=
4167   fi
4168 else
4169   ac_cpp_err=yes
4170 fi
4171 if test -z "$ac_cpp_err"; then
4172   :
4173 else
4174   echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177   # Broken: fails on valid input.
4178 continue
4179 fi
4180 rm -f conftest.err conftest.$ac_ext
4181
4182   # OK, works on sane cases.  Now check whether non-existent headers
4183   # can be detected and how.
4184   cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h.  */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h.  */
4190 #include <ac_nonexistent.h>
4191 _ACEOF
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194   ac_status=$?
4195   grep -v '^ *+' conftest.er1 >conftest.err
4196   rm -f conftest.er1
4197   cat conftest.err >&5
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); } >/dev/null; then
4200   if test -s conftest.err; then
4201     ac_cpp_err=$ac_c_preproc_warn_flag
4202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203   else
4204     ac_cpp_err=
4205   fi
4206 else
4207   ac_cpp_err=yes
4208 fi
4209 if test -z "$ac_cpp_err"; then
4210   # Broken: success on invalid input.
4211 continue
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216   # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then
4226   :
4227 else
4228   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4229 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233 See \`config.log' for more details." >&2;}
4234    { (exit 1); exit 1; }; }; }
4235 fi
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242
4243
4244 echo "$as_me:$LINENO: checking for egrep" >&5
4245 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4246 if test "${ac_cv_prog_egrep+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4250     then ac_cv_prog_egrep='grep -E'
4251     else ac_cv_prog_egrep='egrep'
4252     fi
4253 fi
4254 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4255 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4256  EGREP=$ac_cv_prog_egrep
4257
4258
4259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4261 if test "${ac_cv_header_stdc+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270 #include <stdlib.h>
4271 #include <stdarg.h>
4272 #include <string.h>
4273 #include <float.h>
4274
4275 int
4276 main ()
4277 {
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285   (eval $ac_compile) 2>conftest.er1
4286   ac_status=$?
4287   grep -v '^ *+' conftest.er1 >conftest.err
4288   rm -f conftest.er1
4289   cat conftest.err >&5
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } &&
4292          { ac_try='test -z "$ac_c_werror_flag"
4293                          || test ! -s conftest.err'
4294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295   (eval $ac_try) 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }; } &&
4299          { ac_try='test -s conftest.$ac_objext'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   ac_cv_header_stdc=yes
4306 else
4307   echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ac_cv_header_stdc=no
4311 fi
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313
4314 if test $ac_cv_header_stdc = yes; then
4315   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316   cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322 #include <string.h>
4323
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326   $EGREP "memchr" >/dev/null 2>&1; then
4327   :
4328 else
4329   ac_cv_header_stdc=no
4330 fi
4331 rm -f conftest*
4332
4333 fi
4334
4335 if test $ac_cv_header_stdc = yes; then
4336   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337   cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h.  */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h.  */
4343 #include <stdlib.h>
4344
4345 _ACEOF
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347   $EGREP "free" >/dev/null 2>&1; then
4348   :
4349 else
4350   ac_cv_header_stdc=no
4351 fi
4352 rm -f conftest*
4353
4354 fi
4355
4356 if test $ac_cv_header_stdc = yes; then
4357   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358   if test "$cross_compiling" = yes; then
4359   :
4360 else
4361   cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367 #include <ctype.h>
4368 #if ((' ' & 0x0FF) == 0x020)
4369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4371 #else
4372 # define ISLOWER(c) \
4373                    (('a' <= (c) && (c) <= 'i') \
4374                      || ('j' <= (c) && (c) <= 'r') \
4375                      || ('s' <= (c) && (c) <= 'z'))
4376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377 #endif
4378
4379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380 int
4381 main ()
4382 {
4383   int i;
4384   for (i = 0; i < 256; i++)
4385     if (XOR (islower (i), ISLOWER (i))
4386         || toupper (i) != TOUPPER (i))
4387       exit(2);
4388   exit (0);
4389 }
4390 _ACEOF
4391 rm -f conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393   (eval $ac_link) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; }; then
4402   :
4403 else
4404   echo "$as_me: program exited with status $ac_status" >&5
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 ( exit $ac_status )
4409 ac_cv_header_stdc=no
4410 fi
4411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4412 fi
4413 fi
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417 if test $ac_cv_header_stdc = yes; then
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4421 _ACEOF
4422
4423 fi
4424
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436                   inttypes.h stdint.h unistd.h
4437 do
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 $ac_includes_default
4451
4452 #include <$ac_header>
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456   (eval $ac_compile) 2>conftest.er1
4457   ac_status=$?
4458   grep -v '^ *+' conftest.er1 >conftest.err
4459   rm -f conftest.er1
4460   cat conftest.err >&5
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); } &&
4463          { ac_try='test -z "$ac_c_werror_flag"
4464                          || test ! -s conftest.err'
4465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466   (eval $ac_try) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; } &&
4470          { ac_try='test -s conftest.$ac_objext'
4471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472   (eval $ac_try) 2>&5
4473   ac_status=$?
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); }; }; then
4476   eval "$as_ac_Header=yes"
4477 else
4478   echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 eval "$as_ac_Header=no"
4482 fi
4483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484 fi
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488   cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 _ACEOF
4491
4492 fi
4493
4494 done
4495
4496
4497
4498   if test "${ac_cv_header_minix_config_h+set}" = set; then
4499   echo "$as_me:$LINENO: checking for minix/config.h" >&5
4500 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4501 if test "${ac_cv_header_minix_config_h+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 fi
4504 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4505 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4506 else
4507   # Is the header compilable?
4508 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4509 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516 $ac_includes_default
4517 #include <minix/config.h>
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521   (eval $ac_compile) 2>conftest.er1
4522   ac_status=$?
4523   grep -v '^ *+' conftest.er1 >conftest.err
4524   rm -f conftest.er1
4525   cat conftest.err >&5
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); } &&
4528          { ac_try='test -z "$ac_c_werror_flag"
4529                          || test ! -s conftest.err'
4530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531   (eval $ac_try) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; } &&
4535          { ac_try='test -s conftest.$ac_objext'
4536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537   (eval $ac_try) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; }; then
4541   ac_header_compiler=yes
4542 else
4543   echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 ac_header_compiler=no
4547 fi
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550 echo "${ECHO_T}$ac_header_compiler" >&6
4551
4552 # Is the header present?
4553 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4554 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h.  */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h.  */
4561 #include <minix/config.h>
4562 _ACEOF
4563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565   ac_status=$?
4566   grep -v '^ *+' conftest.er1 >conftest.err
4567   rm -f conftest.er1
4568   cat conftest.err >&5
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); } >/dev/null; then
4571   if test -s conftest.err; then
4572     ac_cpp_err=$ac_c_preproc_warn_flag
4573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574   else
4575     ac_cpp_err=
4576   fi
4577 else
4578   ac_cpp_err=yes
4579 fi
4580 if test -z "$ac_cpp_err"; then
4581   ac_header_preproc=yes
4582 else
4583   echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586   ac_header_preproc=no
4587 fi
4588 rm -f conftest.err conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590 echo "${ECHO_T}$ac_header_preproc" >&6
4591
4592 # So?  What about this header?
4593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594   yes:no: )
4595     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4596 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4598 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4599     ac_header_preproc=yes
4600     ;;
4601   no:yes:* )
4602     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4603 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4604     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4605 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4606     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4607 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4608     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4609 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4610     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4611 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4612     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4613 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4614     (
4615       cat <<\_ASBOX
4616 ## ------------------------------------------ ##
4617 ## Report this to the AC_PACKAGE_NAME lists.  ##
4618 ## ------------------------------------------ ##
4619 _ASBOX
4620     ) |
4621       sed "s/^/$as_me: WARNING:     /" >&2
4622     ;;
4623 esac
4624 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4625 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4626 if test "${ac_cv_header_minix_config_h+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   ac_cv_header_minix_config_h=$ac_header_preproc
4630 fi
4631 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4632 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4633
4634 fi
4635 if test $ac_cv_header_minix_config_h = yes; then
4636   MINIX=yes
4637 else
4638   MINIX=
4639 fi
4640
4641
4642   if test "$MINIX" = yes; then
4643
4644 cat >>confdefs.h <<\_ACEOF
4645 #define _POSIX_SOURCE 1
4646 _ACEOF
4647
4648
4649 cat >>confdefs.h <<\_ACEOF
4650 #define _POSIX_1_SOURCE 2
4651 _ACEOF
4652
4653
4654 cat >>confdefs.h <<\_ACEOF
4655 #define _MINIX 1
4656 _ACEOF
4657
4658   fi
4659
4660
4661
4662   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4663 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4664 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673
4674 #         define __EXTENSIONS__ 1
4675           $ac_includes_default
4676 int
4677 main ()
4678 {
4679
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686   (eval $ac_compile) 2>conftest.er1
4687   ac_status=$?
4688   grep -v '^ *+' conftest.er1 >conftest.err
4689   rm -f conftest.er1
4690   cat conftest.err >&5
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } &&
4693          { ac_try='test -z "$ac_c_werror_flag"
4694                          || test ! -s conftest.err'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; } &&
4700          { ac_try='test -s conftest.$ac_objext'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; }; then
4706   ac_cv_safe_to_define___extensions__=yes
4707 else
4708   echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 ac_cv_safe_to_define___extensions__=no
4712 fi
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714 fi
4715 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4716 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4717   test $ac_cv_safe_to_define___extensions__ = yes &&
4718     cat >>confdefs.h <<\_ACEOF
4719 #define __EXTENSIONS__ 1
4720 _ACEOF
4721
4722   cat >>confdefs.h <<\_ACEOF
4723 #define _ALL_SOURCE 1
4724 _ACEOF
4725
4726   cat >>confdefs.h <<\_ACEOF
4727 #define _GNU_SOURCE 1
4728 _ACEOF
4729
4730   cat >>confdefs.h <<\_ACEOF
4731 #define _POSIX_PTHREAD_SEMANTICS 1
4732 _ACEOF
4733
4734   cat >>confdefs.h <<\_ACEOF
4735 #define _TANDEM_SOURCE 1
4736 _ACEOF
4737
4738
4739 # Check whether --enable-largefile or --disable-largefile was given.
4740 if test "${enable_largefile+set}" = set; then
4741   enableval="$enable_largefile"
4742
4743 fi;
4744 if test "$enable_largefile" != no; then
4745
4746   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4747 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4748 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4749   echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751   ac_cv_sys_largefile_CC=no
4752      if test "$GCC" != yes; then
4753        ac_save_CC=$CC
4754        while :; do
4755          # IRIX 6.2 and later do not support large files by default,
4756          # so use the C compiler's -n32 option if that helps.
4757          cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h.  */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h.  */
4763 #include <sys/types.h>
4764  /* Check that off_t can represent 2**63 - 1 correctly.
4765     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4766     since some C++ compilers masquerading as C compilers
4767     incorrectly reject 9223372036854775807.  */
4768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4769   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4770                        && LARGE_OFF_T % 2147483647 == 1)
4771                       ? 1 : -1];
4772 int
4773 main ()
4774 {
4775
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780          rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782   (eval $ac_compile) 2>conftest.er1
4783   ac_status=$?
4784   grep -v '^ *+' conftest.er1 >conftest.err
4785   rm -f conftest.er1
4786   cat conftest.err >&5
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); } &&
4789          { ac_try='test -z "$ac_c_werror_flag"
4790                          || test ! -s conftest.err'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; } &&
4796          { ac_try='test -s conftest.$ac_objext'
4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798   (eval $ac_try) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; }; then
4802   break
4803 else
4804   echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 fi
4808 rm -f conftest.err conftest.$ac_objext
4809          CC="$CC -n32"
4810          rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -z "$ac_c_werror_flag"
4820                          || test ! -s conftest.err'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; } &&
4826          { ac_try='test -s conftest.$ac_objext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   ac_cv_sys_largefile_CC=' -n32'; break
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 fi
4838 rm -f conftest.err conftest.$ac_objext
4839          break
4840        done
4841        CC=$ac_save_CC
4842        rm -f conftest.$ac_ext
4843     fi
4844 fi
4845 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4846 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4847   if test "$ac_cv_sys_largefile_CC" != no; then
4848     CC=$CC$ac_cv_sys_largefile_CC
4849   fi
4850
4851   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4852 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4853 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   while :; do
4857   ac_cv_sys_file_offset_bits=no
4858   cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h.  */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h.  */
4864 #include <sys/types.h>
4865  /* Check that off_t can represent 2**63 - 1 correctly.
4866     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867     since some C++ compilers masquerading as C compilers
4868     incorrectly reject 9223372036854775807.  */
4869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871                        && LARGE_OFF_T % 2147483647 == 1)
4872                       ? 1 : -1];
4873 int
4874 main ()
4875 {
4876
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883   (eval $ac_compile) 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } &&
4890          { ac_try='test -z "$ac_c_werror_flag"
4891                          || test ! -s conftest.err'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; } &&
4897          { ac_try='test -s conftest.$ac_objext'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; }; then
4903   break
4904 else
4905   echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 fi
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910   cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h.  */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h.  */
4916 #define _FILE_OFFSET_BITS 64
4917 #include <sys/types.h>
4918  /* Check that off_t can represent 2**63 - 1 correctly.
4919     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4920     since some C++ compilers masquerading as C compilers
4921     incorrectly reject 9223372036854775807.  */
4922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4923   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4924                        && LARGE_OFF_T % 2147483647 == 1)
4925                       ? 1 : -1];
4926 int
4927 main ()
4928 {
4929
4930   ;
4931   return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936   (eval $ac_compile) 2>conftest.er1
4937   ac_status=$?
4938   grep -v '^ *+' conftest.er1 >conftest.err
4939   rm -f conftest.er1
4940   cat conftest.err >&5
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); } &&
4943          { ac_try='test -z "$ac_c_werror_flag"
4944                          || test ! -s conftest.err'
4945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946   (eval $ac_try) 2>&5
4947   ac_status=$?
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); }; } &&
4950          { ac_try='test -s conftest.$ac_objext'
4951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952   (eval $ac_try) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); }; }; then
4956   ac_cv_sys_file_offset_bits=64; break
4957 else
4958   echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 fi
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963   break
4964 done
4965 fi
4966 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4967 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4968 if test "$ac_cv_sys_file_offset_bits" != no; then
4969
4970 cat >>confdefs.h <<_ACEOF
4971 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4972 _ACEOF
4973
4974 fi
4975 rm -f conftest*
4976   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4977 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4978 if test "${ac_cv_sys_large_files+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   while :; do
4982   ac_cv_sys_large_files=no
4983   cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 #include <sys/types.h>
4990  /* Check that off_t can represent 2**63 - 1 correctly.
4991     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4992     since some C++ compilers masquerading as C compilers
4993     incorrectly reject 9223372036854775807.  */
4994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4995   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4996                        && LARGE_OFF_T % 2147483647 == 1)
4997                       ? 1 : -1];
4998 int
4999 main ()
5000 {
5001
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008   (eval $ac_compile) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -z "$ac_c_werror_flag"
5016                          || test ! -s conftest.err'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   break
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 fi
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035   cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 #define _LARGE_FILES 1
5042 #include <sys/types.h>
5043  /* Check that off_t can represent 2**63 - 1 correctly.
5044     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5045     since some C++ compilers masquerading as C compilers
5046     incorrectly reject 9223372036854775807.  */
5047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5048   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5049                        && LARGE_OFF_T % 2147483647 == 1)
5050                       ? 1 : -1];
5051 int
5052 main ()
5053 {
5054
5055   ;
5056   return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061   (eval $ac_compile) 2>conftest.er1
5062   ac_status=$?
5063   grep -v '^ *+' conftest.er1 >conftest.err
5064   rm -f conftest.er1
5065   cat conftest.err >&5
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); } &&
5068          { ac_try='test -z "$ac_c_werror_flag"
5069                          || test ! -s conftest.err'
5070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071   (eval $ac_try) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; } &&
5075          { ac_try='test -s conftest.$ac_objext'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; }; then
5081   ac_cv_sys_large_files=1; break
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 fi
5087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5088   break
5089 done
5090 fi
5091 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5092 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5093 if test "$ac_cv_sys_large_files" != no; then
5094
5095 cat >>confdefs.h <<_ACEOF
5096 #define _LARGE_FILES $ac_cv_sys_large_files
5097 _ACEOF
5098
5099 fi
5100 rm -f conftest*
5101 fi
5102
5103 case `pwd` in
5104   *\ * | *\     *)
5105     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5106 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5107 esac
5108
5109
5110
5111 macro_version='2.2.6'
5112 macro_revision='1.3012'
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126 ltmain="$ac_aux_dir/ltmain.sh"
5127
5128 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5129 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5130 if test "${lt_cv_path_SED+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   # Loop through the user's path and test for sed and gsed.
5134 # Then use that list of sed's as ones to test for truncation.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140   for lt_ac_prog in sed gsed; do
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5143         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5144       fi
5145     done
5146   done
5147 done
5148 IFS=$as_save_IFS
5149 lt_ac_max=0
5150 lt_ac_count=0
5151 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5152 # along with /bin/sed that truncates output.
5153 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5154   test ! -f $lt_ac_sed && continue
5155   cat /dev/null > conftest.in
5156   lt_ac_count=0
5157   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5158   # Check for GNU sed and select it if it is found.
5159   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5160     lt_cv_path_SED=$lt_ac_sed
5161     break
5162   fi
5163   while true; do
5164     cat conftest.in conftest.in >conftest.tmp
5165     mv conftest.tmp conftest.in
5166     cp conftest.in conftest.nl
5167     echo >>conftest.nl
5168     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5169     cmp -s conftest.out conftest.nl || break
5170     # 10000 chars as input seems more than enough
5171     test $lt_ac_count -gt 10 && break
5172     lt_ac_count=`expr $lt_ac_count + 1`
5173     if test $lt_ac_count -gt $lt_ac_max; then
5174       lt_ac_max=$lt_ac_count
5175       lt_cv_path_SED=$lt_ac_sed
5176     fi
5177   done
5178 done
5179
5180 fi
5181
5182 SED=$lt_cv_path_SED
5183
5184 echo "$as_me:$LINENO: result: $SED" >&5
5185 echo "${ECHO_T}$SED" >&6
5186
5187 test -z "$SED" && SED=sed
5188 Xsed="$SED -e 1s/^X//"
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 echo "$as_me:$LINENO: checking for fgrep" >&5
5201 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5202 if test "${ac_cv_prog_fgrep+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5206     then ac_cv_prog_fgrep='grep -F'
5207     else ac_cv_prog_fgrep='fgrep'
5208     fi
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5211 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5212  FGREP=$ac_cv_prog_fgrep
5213
5214
5215 test -z "$GREP" && GREP=grep
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5236 if test "${with_gnu_ld+set}" = set; then
5237   withval="$with_gnu_ld"
5238   test "$withval" = no || with_gnu_ld=yes
5239 else
5240   with_gnu_ld=no
5241 fi;
5242 ac_prog=ld
5243 if test "$GCC" = yes; then
5244   # Check if gcc -print-prog-name=ld gives a path.
5245   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5246 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5247   case $host in
5248   *-*-mingw*)
5249     # gcc leaves a trailing carriage return which upsets mingw
5250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5251   *)
5252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5253   esac
5254   case $ac_prog in
5255     # Accept absolute paths.
5256     [\\/]* | ?:[\\/]*)
5257       re_direlt='/[^/][^/]*/\.\./'
5258       # Canonicalize the pathname of ld
5259       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5260       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5261         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5262       done
5263       test -z "$LD" && LD="$ac_prog"
5264       ;;
5265   "")
5266     # If it fails, then pretend we aren't using GCC.
5267     ac_prog=ld
5268     ;;
5269   *)
5270     # If it is relative, then search for the first ld in PATH.
5271     with_gnu_ld=unknown
5272     ;;
5273   esac
5274 elif test "$with_gnu_ld" = yes; then
5275   echo "$as_me:$LINENO: checking for GNU ld" >&5
5276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5277 else
5278   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5280 fi
5281 if test "${lt_cv_path_LD+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   if test -z "$LD"; then
5285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5286   for ac_dir in $PATH; do
5287     IFS="$lt_save_ifs"
5288     test -z "$ac_dir" && ac_dir=.
5289     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5290       lt_cv_path_LD="$ac_dir/$ac_prog"
5291       # Check to see if the program is GNU ld.  I'd rather use --version,
5292       # but apparently some variants of GNU ld only accept -v.
5293       # Break only if it was the GNU/non-GNU ld that we prefer.
5294       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5295       *GNU* | *'with BFD'*)
5296         test "$with_gnu_ld" != no && break
5297         ;;
5298       *)
5299         test "$with_gnu_ld" != yes && break
5300         ;;
5301       esac
5302     fi
5303   done
5304   IFS="$lt_save_ifs"
5305 else
5306   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5307 fi
5308 fi
5309
5310 LD="$lt_cv_path_LD"
5311 if test -n "$LD"; then
5312   echo "$as_me:$LINENO: result: $LD" >&5
5313 echo "${ECHO_T}$LD" >&6
5314 else
5315   echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5317 fi
5318 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5319 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5320    { (exit 1); exit 1; }; }
5321 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5322 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5323 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5327 case `$LD -v 2>&1 </dev/null` in
5328 *GNU* | *'with BFD'*)
5329   lt_cv_prog_gnu_ld=yes
5330   ;;
5331 *)
5332   lt_cv_prog_gnu_ld=no
5333   ;;
5334 esac
5335 fi
5336 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5337 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5338 with_gnu_ld=$lt_cv_prog_gnu_ld
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5349 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5350 if test "${lt_cv_path_NM+set}" = set; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353   if test -n "$NM"; then
5354   # Let the user override the test.
5355   lt_cv_path_NM="$NM"
5356 else
5357   lt_nm_to_check="${ac_tool_prefix}nm"
5358   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5359     lt_nm_to_check="$lt_nm_to_check nm"
5360   fi
5361   for lt_tmp_nm in $lt_nm_to_check; do
5362     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5363     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5364       IFS="$lt_save_ifs"
5365       test -z "$ac_dir" && ac_dir=.
5366       tmp_nm="$ac_dir/$lt_tmp_nm"
5367       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5368         # Check to see if the nm accepts a BSD-compat flag.
5369         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5370         #   nm: unknown option "B" ignored
5371         # Tru64's nm complains that /dev/null is an invalid object file
5372         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5373         */dev/null* | *'Invalid file or object type'*)
5374           lt_cv_path_NM="$tmp_nm -B"
5375           break
5376           ;;
5377         *)
5378           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5379           */dev/null*)
5380             lt_cv_path_NM="$tmp_nm -p"
5381             break
5382             ;;
5383           *)
5384             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5385             continue # so that we can try to find one that supports BSD flags
5386             ;;
5387           esac
5388           ;;
5389         esac
5390       fi
5391     done
5392     IFS="$lt_save_ifs"
5393   done
5394   : ${lt_cv_path_NM=no}
5395 fi
5396 fi
5397 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5398 echo "${ECHO_T}$lt_cv_path_NM" >&6
5399 if test "$lt_cv_path_NM" != "no"; then
5400   NM="$lt_cv_path_NM"
5401 else
5402   # Didn't find any BSD compatible name lister, look for dumpbin.
5403   if test -n "$ac_tool_prefix"; then
5404   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5405   do
5406     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5408 echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   if test -n "$DUMPBIN"; then
5414   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421   for ac_exec_ext in '' $ac_executable_extensions; do
5422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428 done
5429
5430 fi
5431 fi
5432 DUMPBIN=$ac_cv_prog_DUMPBIN
5433 if test -n "$DUMPBIN"; then
5434   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5435 echo "${ECHO_T}$DUMPBIN" >&6
5436 else
5437   echo "$as_me:$LINENO: result: no" >&5
5438 echo "${ECHO_T}no" >&6
5439 fi
5440
5441     test -n "$DUMPBIN" && break
5442   done
5443 fi
5444 if test -z "$DUMPBIN"; then
5445   ac_ct_DUMPBIN=$DUMPBIN
5446   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5447 do
5448   # Extract the first word of "$ac_prog", so it can be a program name with args.
5449 set dummy $ac_prog; ac_word=$2
5450 echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5452 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455   if test -n "$ac_ct_DUMPBIN"; then
5456   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461   IFS=$as_save_IFS
5462   test -z "$as_dir" && as_dir=.
5463   for ac_exec_ext in '' $ac_executable_extensions; do
5464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467     break 2
5468   fi
5469 done
5470 done
5471
5472 fi
5473 fi
5474 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5475 if test -n "$ac_ct_DUMPBIN"; then
5476   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5477 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5478 else
5479   echo "$as_me:$LINENO: result: no" >&5
5480 echo "${ECHO_T}no" >&6
5481 fi
5482
5483   test -n "$ac_ct_DUMPBIN" && break
5484 done
5485 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5486
5487   DUMPBIN=$ac_ct_DUMPBIN
5488 fi
5489
5490
5491   if test "$DUMPBIN" != ":"; then
5492     NM="$DUMPBIN"
5493   fi
5494 fi
5495 test -z "$NM" && NM=nm
5496
5497
5498
5499
5500
5501
5502 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5503 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5504 if test "${lt_cv_nm_interface+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   lt_cv_nm_interface="BSD nm"
5508   echo "int some_variable = 0;" > conftest.$ac_ext
5509   (eval echo "\"\$as_me:5509: $ac_compile\"" >&5)
5510   (eval "$ac_compile" 2>conftest.err)
5511   cat conftest.err >&5
5512   (eval echo "\"\$as_me:5512: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5513   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5514   cat conftest.err >&5
5515   (eval echo "\"\$as_me:5515: output\"" >&5)
5516   cat conftest.out >&5
5517   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5518     lt_cv_nm_interface="MS dumpbin"
5519   fi
5520   rm -f conftest*
5521 fi
5522 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5523 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5524
5525 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5526 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5527 LN_S=$as_ln_s
5528 if test "$LN_S" = "ln -s"; then
5529   echo "$as_me:$LINENO: result: yes" >&5
5530 echo "${ECHO_T}yes" >&6
5531 else
5532   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5533 echo "${ECHO_T}no, using $LN_S" >&6
5534 fi
5535
5536 # find the maximum length of command line arguments
5537 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5538 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5539 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5540   echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542     i=0
5543   teststring="ABCD"
5544
5545   case $build_os in
5546   msdosdjgpp*)
5547     # On DJGPP, this test can blow up pretty badly due to problems in libc
5548     # (any single argument exceeding 2000 bytes causes a buffer overrun
5549     # during glob expansion).  Even if it were fixed, the result of this
5550     # check would be larger than it should be.
5551     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5552     ;;
5553
5554   gnu*)
5555     # Under GNU Hurd, this test is not required because there is
5556     # no limit to the length of command line arguments.
5557     # Libtool will interpret -1 as no limit whatsoever
5558     lt_cv_sys_max_cmd_len=-1;
5559     ;;
5560
5561   cygwin* | mingw* | cegcc*)
5562     # On Win9x/ME, this test blows up -- it succeeds, but takes
5563     # about 5 minutes as the teststring grows exponentially.
5564     # Worse, since 9x/ME are not pre-emptively multitasking,
5565     # you end up with a "frozen" computer, even though with patience
5566     # the test eventually succeeds (with a max line length of 256k).
5567     # Instead, let's just punt: use the minimum linelength reported by
5568     # all of the supported platforms: 8192 (on NT/2K/XP).
5569     lt_cv_sys_max_cmd_len=8192;
5570     ;;
5571
5572   amigaos*)
5573     # On AmigaOS with pdksh, this test takes hours, literally.
5574     # So we just punt and use a minimum line length of 8192.
5575     lt_cv_sys_max_cmd_len=8192;
5576     ;;
5577
5578   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5579     # This has been around since 386BSD, at least.  Likely further.
5580     if test -x /sbin/sysctl; then
5581       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5582     elif test -x /usr/sbin/sysctl; then
5583       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5584     else
5585       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5586     fi
5587     # And add a safety zone
5588     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5589     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5590     ;;
5591
5592   interix*)
5593     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5594     lt_cv_sys_max_cmd_len=196608
5595     ;;
5596
5597   osf*)
5598     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5599     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5600     # nice to cause kernel panics so lets avoid the loop below.
5601     # First set a reasonable default.
5602     lt_cv_sys_max_cmd_len=16384
5603     #
5604     if test -x /sbin/sysconfig; then
5605       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5606         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5607       esac
5608     fi
5609     ;;
5610   sco3.2v5*)
5611     lt_cv_sys_max_cmd_len=102400
5612     ;;
5613   sysv5* | sco5v6* | sysv4.2uw2*)
5614     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5615     if test -n "$kargmax"; then
5616       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5617     else
5618       lt_cv_sys_max_cmd_len=32768
5619     fi
5620     ;;
5621   *)
5622     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5623     if test -n "$lt_cv_sys_max_cmd_len"; then
5624       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5625       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5626     else
5627       # Make teststring a little bigger before we do anything with it.
5628       # a 1K string should be a reasonable start.
5629       for i in 1 2 3 4 5 6 7 8 ; do
5630         teststring=$teststring$teststring
5631       done
5632       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5633       # If test is not a shell built-in, we'll probably end up computing a
5634       # maximum length that is only half of the actual maximum length, but
5635       # we can't tell.
5636       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5637                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5638               test $i != 17 # 1/2 MB should be enough
5639       do
5640         i=`expr $i + 1`
5641         teststring=$teststring$teststring
5642       done
5643       # Only check the string length outside the loop.
5644       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5645       teststring=
5646       # Add a significant safety factor because C++ compilers can tack on
5647       # massive amounts of additional arguments before passing them to the
5648       # linker.  It appears as though 1/2 is a usable value.
5649       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5650     fi
5651     ;;
5652   esac
5653
5654 fi
5655
5656 if test -n $lt_cv_sys_max_cmd_len ; then
5657   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5658 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5659 else
5660   echo "$as_me:$LINENO: result: none" >&5
5661 echo "${ECHO_T}none" >&6
5662 fi
5663 max_cmd_len=$lt_cv_sys_max_cmd_len
5664
5665
5666
5667
5668
5669
5670 : ${CP="cp -f"}
5671 : ${MV="mv -f"}
5672 : ${RM="rm -f"}
5673
5674 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5675 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5676 # Try some XSI features
5677 xsi_shell=no
5678 ( _lt_dummy="a/b/c"
5679   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5680       = c,a/b,, \
5681     && eval 'test $(( 1 + 1 )) -eq 2 \
5682     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5683   && xsi_shell=yes
5684 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5685 echo "${ECHO_T}$xsi_shell" >&6
5686
5687
5688 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5689 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5690 lt_shell_append=no
5691 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5692     >/dev/null 2>&1 \
5693   && lt_shell_append=yes
5694 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5695 echo "${ECHO_T}$lt_shell_append" >&6
5696
5697
5698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5699   lt_unset=unset
5700 else
5701   lt_unset=false
5702 fi
5703
5704
5705
5706
5707
5708 # test EBCDIC or ASCII
5709 case `echo X|tr X '\101'` in
5710  A) # ASCII based system
5711     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5712   lt_SP2NL='tr \040 \012'
5713   lt_NL2SP='tr \015\012 \040\040'
5714   ;;
5715  *) # EBCDIC based system
5716   lt_SP2NL='tr \100 \n'
5717   lt_NL2SP='tr \r\n \100\100'
5718   ;;
5719 esac
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5730 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5731 if test "${lt_cv_ld_reload_flag+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   lt_cv_ld_reload_flag='-r'
5735 fi
5736 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5737 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5738 reload_flag=$lt_cv_ld_reload_flag
5739 case $reload_flag in
5740 "" | " "*) ;;
5741 *) reload_flag=" $reload_flag" ;;
5742 esac
5743 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5744 case $host_os in
5745   darwin*)
5746     if test "$GCC" = yes; then
5747       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5748     else
5749       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5750     fi
5751     ;;
5752 esac
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 if test -n "$ac_tool_prefix"; then
5763   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5764 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5765 echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5767 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   if test -n "$OBJDUMP"; then
5771   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778   for ac_exec_ext in '' $ac_executable_extensions; do
5779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785 done
5786
5787 fi
5788 fi
5789 OBJDUMP=$ac_cv_prog_OBJDUMP
5790 if test -n "$OBJDUMP"; then
5791   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5792 echo "${ECHO_T}$OBJDUMP" >&6
5793 else
5794   echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5796 fi
5797
5798 fi
5799 if test -z "$ac_cv_prog_OBJDUMP"; then
5800   ac_ct_OBJDUMP=$OBJDUMP
5801   # Extract the first word of "objdump", so it can be a program name with args.
5802 set dummy objdump; ac_word=$2
5803 echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5805 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   if test -n "$ac_ct_OBJDUMP"; then
5809   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816   for ac_exec_ext in '' $ac_executable_extensions; do
5817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823 done
5824
5825   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5826 fi
5827 fi
5828 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5829 if test -n "$ac_ct_OBJDUMP"; then
5830   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5831 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5832 else
5833   echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5835 fi
5836
5837   OBJDUMP=$ac_ct_OBJDUMP
5838 else
5839   OBJDUMP="$ac_cv_prog_OBJDUMP"
5840 fi
5841
5842 test -z "$OBJDUMP" && OBJDUMP=objdump
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5853 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5854 if test "${lt_cv_deplibs_check_method+set}" = set; then
5855   echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857   lt_cv_file_magic_cmd='$MAGIC_CMD'
5858 lt_cv_file_magic_test_file=
5859 lt_cv_deplibs_check_method='unknown'
5860 # Need to set the preceding variable on all platforms that support
5861 # interlibrary dependencies.
5862 # 'none' -- dependencies not supported.
5863 # `unknown' -- same as none, but documents that we really don't know.
5864 # 'pass_all' -- all dependencies passed with no checks.
5865 # 'test_compile' -- check by making test program.
5866 # 'file_magic [[regex]]' -- check by looking for files in library path
5867 # which responds to the $file_magic_cmd with a given extended regex.
5868 # If you have `file' or equivalent on your system and you're not sure
5869 # whether `pass_all' will *always* work, you probably want this one.
5870
5871 case $host_os in
5872 aix[4-9]*)
5873   lt_cv_deplibs_check_method=pass_all
5874   ;;
5875
5876 beos*)
5877   lt_cv_deplibs_check_method=pass_all
5878   ;;
5879
5880 bsdi[45]*)
5881   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5882   lt_cv_file_magic_cmd='/usr/bin/file -L'
5883   lt_cv_file_magic_test_file=/shlib/libc.so
5884   ;;
5885
5886 cygwin*)
5887   # func_win32_libid is a shell function defined in ltmain.sh
5888   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5889   lt_cv_file_magic_cmd='func_win32_libid'
5890   ;;
5891
5892 mingw* | pw32*)
5893   # Base MSYS/MinGW do not provide the 'file' command needed by
5894   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5895   # unless we find 'file', for example because we are cross-compiling.
5896   if ( file / ) >/dev/null 2>&1; then
5897     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5898     lt_cv_file_magic_cmd='func_win32_libid'
5899   else
5900     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5901     lt_cv_file_magic_cmd='$OBJDUMP -f'
5902   fi
5903   ;;
5904
5905 cegcc)
5906   # use the weaker test based on 'objdump'. See mingw*.
5907   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5908   lt_cv_file_magic_cmd='$OBJDUMP -f'
5909   ;;
5910
5911 darwin* | rhapsody*)
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5914
5915 freebsd* | dragonfly*)
5916   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5917     case $host_cpu in
5918     i*86 )
5919       # Not sure whether the presence of OpenBSD here was a mistake.
5920       # Let's accept both of them until this is cleared up.
5921       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5922       lt_cv_file_magic_cmd=/usr/bin/file
5923       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5924       ;;
5925     esac
5926   else
5927     lt_cv_deplibs_check_method=pass_all
5928   fi
5929   ;;
5930
5931 gnu*)
5932   lt_cv_deplibs_check_method=pass_all
5933   ;;
5934
5935 hpux10.20* | hpux11*)
5936   lt_cv_file_magic_cmd=/usr/bin/file
5937   case $host_cpu in
5938   ia64*)
5939     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5940     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5941     ;;
5942   hppa*64*)
5943     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]'
5944     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5945     ;;
5946   *)
5947     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5948     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5949     ;;
5950   esac
5951   ;;
5952
5953 interix[3-9]*)
5954   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5955   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5956   ;;
5957
5958 irix5* | irix6* | nonstopux*)
5959   case $LD in
5960   *-32|*"-32 ") libmagic=32-bit;;
5961   *-n32|*"-n32 ") libmagic=N32;;
5962   *-64|*"-64 ") libmagic=64-bit;;
5963   *) libmagic=never-match;;
5964   esac
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967
5968 # This must be Linux ELF.
5969 linux* | k*bsd*-gnu)
5970   lt_cv_deplibs_check_method=pass_all
5971   ;;
5972
5973 netbsd*)
5974   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5975     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5976   else
5977     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5978   fi
5979   ;;
5980
5981 newos6*)
5982   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5983   lt_cv_file_magic_cmd=/usr/bin/file
5984   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5985   ;;
5986
5987 *nto* | *qnx*)
5988   lt_cv_deplibs_check_method=pass_all
5989   ;;
5990
5991 openbsd*)
5992   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5993     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5994   else
5995     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5996   fi
5997   ;;
5998
5999 osf3* | osf4* | osf5*)
6000   lt_cv_deplibs_check_method=pass_all
6001   ;;
6002
6003 rdos*)
6004   lt_cv_deplibs_check_method=pass_all
6005   ;;
6006
6007 solaris*)
6008   lt_cv_deplibs_check_method=pass_all
6009   ;;
6010
6011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6012   lt_cv_deplibs_check_method=pass_all
6013   ;;
6014
6015 sysv4 | sysv4.3*)
6016   case $host_vendor in
6017   motorola)
6018     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]'
6019     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6020     ;;
6021   ncr)
6022     lt_cv_deplibs_check_method=pass_all
6023     ;;
6024   sequent)
6025     lt_cv_file_magic_cmd='/bin/file'
6026     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6027     ;;
6028   sni)
6029     lt_cv_file_magic_cmd='/bin/file'
6030     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6031     lt_cv_file_magic_test_file=/lib/libc.so
6032     ;;
6033   siemens)
6034     lt_cv_deplibs_check_method=pass_all
6035     ;;
6036   pc)
6037     lt_cv_deplibs_check_method=pass_all
6038     ;;
6039   esac
6040   ;;
6041
6042 tpf*)
6043   lt_cv_deplibs_check_method=pass_all
6044   ;;
6045 esac
6046
6047 fi
6048 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6049 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6050 file_magic_cmd=$lt_cv_file_magic_cmd
6051 deplibs_check_method=$lt_cv_deplibs_check_method
6052 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065 if test -n "$ac_tool_prefix"; then
6066   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}ar; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_prog_AR+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   if test -n "$AR"; then
6074   ac_cv_prog_AR="$AR" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081   for ac_exec_ext in '' $ac_executable_extensions; do
6082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083     ac_cv_prog_AR="${ac_tool_prefix}ar"
6084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088 done
6089
6090 fi
6091 fi
6092 AR=$ac_cv_prog_AR
6093 if test -n "$AR"; then
6094   echo "$as_me:$LINENO: result: $AR" >&5
6095 echo "${ECHO_T}$AR" >&6
6096 else
6097   echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6099 fi
6100
6101 fi
6102 if test -z "$ac_cv_prog_AR"; then
6103   ac_ct_AR=$AR
6104   # Extract the first word of "ar", so it can be a program name with args.
6105 set dummy ar; ac_word=$2
6106 echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   if test -n "$ac_ct_AR"; then
6112   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119   for ac_exec_ext in '' $ac_executable_extensions; do
6120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121     ac_cv_prog_ac_ct_AR="ar"
6122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126 done
6127
6128   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6129 fi
6130 fi
6131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6132 if test -n "$ac_ct_AR"; then
6133   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6134 echo "${ECHO_T}$ac_ct_AR" >&6
6135 else
6136   echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6
6138 fi
6139
6140   AR=$ac_ct_AR
6141 else
6142   AR="$ac_cv_prog_AR"
6143 fi
6144
6145 test -z "$AR" && AR=ar
6146 test -z "$AR_FLAGS" && AR_FLAGS=cru
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 if test -n "$ac_tool_prefix"; then
6159   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6160 set dummy ${ac_tool_prefix}strip; ac_word=$2
6161 echo "$as_me:$LINENO: checking for $ac_word" >&5
6162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6163 if test "${ac_cv_prog_STRIP+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166   if test -n "$STRIP"; then
6167   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6171 do
6172   IFS=$as_save_IFS
6173   test -z "$as_dir" && as_dir=.
6174   for ac_exec_ext in '' $ac_executable_extensions; do
6175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178     break 2
6179   fi
6180 done
6181 done
6182
6183 fi
6184 fi
6185 STRIP=$ac_cv_prog_STRIP
6186 if test -n "$STRIP"; then
6187   echo "$as_me:$LINENO: result: $STRIP" >&5
6188 echo "${ECHO_T}$STRIP" >&6
6189 else
6190   echo "$as_me:$LINENO: result: no" >&5
6191 echo "${ECHO_T}no" >&6
6192 fi
6193
6194 fi
6195 if test -z "$ac_cv_prog_STRIP"; then
6196   ac_ct_STRIP=$STRIP
6197   # Extract the first word of "strip", so it can be a program name with args.
6198 set dummy strip; ac_word=$2
6199 echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6201 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204   if test -n "$ac_ct_STRIP"; then
6205   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210   IFS=$as_save_IFS
6211   test -z "$as_dir" && as_dir=.
6212   for ac_exec_ext in '' $ac_executable_extensions; do
6213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6214     ac_cv_prog_ac_ct_STRIP="strip"
6215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216     break 2
6217   fi
6218 done
6219 done
6220
6221   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6222 fi
6223 fi
6224 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6225 if test -n "$ac_ct_STRIP"; then
6226   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6227 echo "${ECHO_T}$ac_ct_STRIP" >&6
6228 else
6229   echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6
6231 fi
6232
6233   STRIP=$ac_ct_STRIP
6234 else
6235   STRIP="$ac_cv_prog_STRIP"
6236 fi
6237
6238 test -z "$STRIP" && STRIP=:
6239
6240
6241
6242
6243
6244
6245 if test -n "$ac_tool_prefix"; then
6246   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6248 echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250 if test "${ac_cv_prog_RANLIB+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   if test -n "$RANLIB"; then
6254   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261   for ac_exec_ext in '' $ac_executable_extensions; do
6262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268 done
6269
6270 fi
6271 fi
6272 RANLIB=$ac_cv_prog_RANLIB
6273 if test -n "$RANLIB"; then
6274   echo "$as_me:$LINENO: result: $RANLIB" >&5
6275 echo "${ECHO_T}$RANLIB" >&6
6276 else
6277   echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6
6279 fi
6280
6281 fi
6282 if test -z "$ac_cv_prog_RANLIB"; then
6283   ac_ct_RANLIB=$RANLIB
6284   # Extract the first word of "ranlib", so it can be a program name with args.
6285 set dummy ranlib; ac_word=$2
6286 echo "$as_me:$LINENO: checking for $ac_word" >&5
6287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6288 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6289   echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291   if test -n "$ac_ct_RANLIB"; then
6292   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299   for ac_exec_ext in '' $ac_executable_extensions; do
6300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301     ac_cv_prog_ac_ct_RANLIB="ranlib"
6302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303     break 2
6304   fi
6305 done
6306 done
6307
6308   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6309 fi
6310 fi
6311 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6312 if test -n "$ac_ct_RANLIB"; then
6313   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6314 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6315 else
6316   echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6
6318 fi
6319
6320   RANLIB=$ac_ct_RANLIB
6321 else
6322   RANLIB="$ac_cv_prog_RANLIB"
6323 fi
6324
6325 test -z "$RANLIB" && RANLIB=:
6326
6327
6328
6329
6330
6331
6332 # Determine commands to create old-style static archives.
6333 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6334 old_postinstall_cmds='chmod 644 $oldlib'
6335 old_postuninstall_cmds=
6336
6337 if test -n "$RANLIB"; then
6338   case $host_os in
6339   openbsd*)
6340     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6341     ;;
6342   *)
6343     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6344     ;;
6345   esac
6346   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6347 fi
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 # If no C compiler was specified, use CC.
6383 LTCC=${LTCC-"$CC"}
6384
6385 # If no C compiler flags were specified, use CFLAGS.
6386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6387
6388 # Allow CC to be a program name with arguments.
6389 compiler=$CC
6390
6391
6392 # Check for command to grab the raw symbol name followed by C symbol from nm.
6393 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6394 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6395 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398
6399 # These are sane defaults that work on at least a few old systems.
6400 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6401
6402 # Character class describing NM global symbol codes.
6403 symcode='[BCDEGRST]'
6404
6405 # Regexp to match symbols that can be accessed directly from C.
6406 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6407
6408 # Define system-specific variables.
6409 case $host_os in
6410 aix*)
6411   symcode='[BCDT]'
6412   ;;
6413 cygwin* | mingw* | pw32* | cegcc*)
6414   symcode='[ABCDGISTW]'
6415   ;;
6416 hpux*)
6417   if test "$host_cpu" = ia64; then
6418     symcode='[ABCDEGRST]'
6419   fi
6420   ;;
6421 irix* | nonstopux*)
6422   symcode='[BCDEGRST]'
6423   ;;
6424 osf*)
6425   symcode='[BCDEGQRST]'
6426   ;;
6427 solaris*)
6428   symcode='[BDRT]'
6429   ;;
6430 sco3.2v5*)
6431   symcode='[DT]'
6432   ;;
6433 sysv4.2uw2*)
6434   symcode='[DT]'
6435   ;;
6436 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6437   symcode='[ABDT]'
6438   ;;
6439 sysv4)
6440   symcode='[DFNSTU]'
6441   ;;
6442 esac
6443
6444 # If we're using GNU nm, then use its standard symbol codes.
6445 case `$NM -V 2>&1` in
6446 *GNU* | *'with BFD'*)
6447   symcode='[ABCDGIRSTW]' ;;
6448 esac
6449
6450 # Transform an extracted symbol line into a proper C declaration.
6451 # Some systems (esp. on ia64) link data and code symbols differently,
6452 # so use this general approach.
6453 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6454
6455 # Transform an extracted symbol line into symbol name and symbol address
6456 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6457 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6458
6459 # Handle CRLF in mingw tool chain
6460 opt_cr=
6461 case $build_os in
6462 mingw*)
6463   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6464   ;;
6465 esac
6466
6467 # Try without a prefix underscore, then with it.
6468 for ac_symprfx in "" "_"; do
6469
6470   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6471   symxfrm="\\1 $ac_symprfx\\2 \\2"
6472
6473   # Write the raw and C identifiers.
6474   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6475     # Fake it for dumpbin and say T for any non-static function
6476     # and D for any global variable.
6477     # Also find C++ and __fastcall symbols from MSVC++,
6478     # which start with @ or ?.
6479     lt_cv_sys_global_symbol_pipe="$AWK '"\
6480 "     {last_section=section; section=\$ 3};"\
6481 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6482 "     \$ 0!~/External *\|/{next};"\
6483 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6484 "     {if(hide[section]) next};"\
6485 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6486 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6487 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6488 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6489 "     ' prfx=^$ac_symprfx"
6490   else
6491     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6492   fi
6493
6494   # Check to see that the pipe works correctly.
6495   pipe_works=no
6496
6497   rm -f conftest*
6498   cat > conftest.$ac_ext <<_LT_EOF
6499 #ifdef __cplusplus
6500 extern "C" {
6501 #endif
6502 char nm_test_var;
6503 void nm_test_func(void);
6504 void nm_test_func(void){}
6505 #ifdef __cplusplus
6506 }
6507 #endif
6508 int main(){nm_test_var='a';nm_test_func();return(0);}
6509 _LT_EOF
6510
6511   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512   (eval $ac_compile) 2>&5
6513   ac_status=$?
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); }; then
6516     # Now try to grab the symbols.
6517     nlist=conftest.nm
6518     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6519   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); } && test -s "$nlist"; then
6523       # Try sorting and uniquifying the output.
6524       if sort "$nlist" | uniq > "$nlist"T; then
6525         mv -f "$nlist"T "$nlist"
6526       else
6527         rm -f "$nlist"T
6528       fi
6529
6530       # Make sure that we snagged all the symbols we need.
6531       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6532         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6533           cat <<_LT_EOF > conftest.$ac_ext
6534 #ifdef __cplusplus
6535 extern "C" {
6536 #endif
6537
6538 _LT_EOF
6539           # Now generate the symbol file.
6540           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6541
6542           cat <<_LT_EOF >> conftest.$ac_ext
6543
6544 /* The mapping between symbol names and symbols.  */
6545 const struct {
6546   const char *name;
6547   void       *address;
6548 }
6549 lt__PROGRAM__LTX_preloaded_symbols[] =
6550 {
6551   { "@PROGRAM@", (void *) 0 },
6552 _LT_EOF
6553           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6554           cat <<\_LT_EOF >> conftest.$ac_ext
6555   {0, (void *) 0}
6556 };
6557
6558 /* This works around a problem in FreeBSD linker */
6559 #ifdef FREEBSD_WORKAROUND
6560 static const void *lt_preloaded_setup() {
6561   return lt__PROGRAM__LTX_preloaded_symbols;
6562 }
6563 #endif
6564
6565 #ifdef __cplusplus
6566 }
6567 #endif
6568 _LT_EOF
6569           # Now try linking the two files.
6570           mv conftest.$ac_objext conftstm.$ac_objext
6571           lt_save_LIBS="$LIBS"
6572           lt_save_CFLAGS="$CFLAGS"
6573           LIBS="conftstm.$ac_objext"
6574           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6575           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6576   (eval $ac_link) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6580             pipe_works=yes
6581           fi
6582           LIBS="$lt_save_LIBS"
6583           CFLAGS="$lt_save_CFLAGS"
6584         else
6585           echo "cannot find nm_test_func in $nlist" >&5
6586         fi
6587       else
6588         echo "cannot find nm_test_var in $nlist" >&5
6589       fi
6590     else
6591       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6592     fi
6593   else
6594     echo "$progname: failed program was:" >&5
6595     cat conftest.$ac_ext >&5
6596   fi
6597   rm -rf conftest* conftst*
6598
6599   # Do not use the global_symbol_pipe unless it works.
6600   if test "$pipe_works" = yes; then
6601     break
6602   else
6603     lt_cv_sys_global_symbol_pipe=
6604   fi
6605 done
6606
6607 fi
6608
6609 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6610   lt_cv_sys_global_symbol_to_cdecl=
6611 fi
6612 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6613   echo "$as_me:$LINENO: result: failed" >&5
6614 echo "${ECHO_T}failed" >&6
6615 else
6616   echo "$as_me:$LINENO: result: ok" >&5
6617 echo "${ECHO_T}ok" >&6
6618 fi
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6642 if test "${enable_libtool_lock+set}" = set; then
6643   enableval="$enable_libtool_lock"
6644
6645 fi;
6646 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6647
6648 # Some flags need to be propagated to the compiler or linker for good
6649 # libtool support.
6650 case $host in
6651 ia64-*-hpux*)
6652   # Find out which ABI we are using.
6653   echo 'int i;' > conftest.$ac_ext
6654   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655   (eval $ac_compile) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); }; then
6659     case `/usr/bin/file conftest.$ac_objext` in
6660       *ELF-32*)
6661         HPUX_IA64_MODE="32"
6662         ;;
6663       *ELF-64*)
6664         HPUX_IA64_MODE="64"
6665         ;;
6666     esac
6667   fi
6668   rm -rf conftest*
6669   ;;
6670 *-*-irix6*)
6671   # Find out which ABI we are using.
6672   echo '#line 6672 "configure"' > conftest.$ac_ext
6673   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674   (eval $ac_compile) 2>&5
6675   ac_status=$?
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); }; then
6678     if test "$lt_cv_prog_gnu_ld" = yes; then
6679       case `/usr/bin/file conftest.$ac_objext` in
6680         *32-bit*)
6681           LD="${LD-ld} -melf32bsmip"
6682           ;;
6683         *N32*)
6684           LD="${LD-ld} -melf32bmipn32"
6685           ;;
6686         *64-bit*)
6687           LD="${LD-ld} -melf64bmip"
6688         ;;
6689       esac
6690     else
6691       case `/usr/bin/file conftest.$ac_objext` in
6692         *32-bit*)
6693           LD="${LD-ld} -32"
6694           ;;
6695         *N32*)
6696           LD="${LD-ld} -n32"
6697           ;;
6698         *64-bit*)
6699           LD="${LD-ld} -64"
6700           ;;
6701       esac
6702     fi
6703   fi
6704   rm -rf conftest*
6705   ;;
6706
6707 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6708 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6709   # Find out which ABI we are using.
6710   echo 'int i;' > conftest.$ac_ext
6711   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6712   (eval $ac_compile) 2>&5
6713   ac_status=$?
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); }; then
6716     case `/usr/bin/file conftest.o` in
6717       *32-bit*)
6718         case $host in
6719           x86_64-*kfreebsd*-gnu)
6720             LD="${LD-ld} -m elf_i386_fbsd"
6721             ;;
6722           x86_64-*linux*)
6723             LD="${LD-ld} -m elf_i386"
6724             ;;
6725           ppc64-*linux*|powerpc64-*linux*)
6726             LD="${LD-ld} -m elf32ppclinux"
6727             ;;
6728           s390x-*linux*)
6729             LD="${LD-ld} -m elf_s390"
6730             ;;
6731           sparc64-*linux*)
6732             LD="${LD-ld} -m elf32_sparc"
6733             ;;
6734         esac
6735         ;;
6736       *64-bit*)
6737         case $host in
6738           x86_64-*kfreebsd*-gnu)
6739             LD="${LD-ld} -m elf_x86_64_fbsd"
6740             ;;
6741           x86_64-*linux*)
6742             LD="${LD-ld} -m elf_x86_64"
6743             ;;
6744           ppc*-*linux*|powerpc*-*linux*)
6745             LD="${LD-ld} -m elf64ppc"
6746             ;;
6747           s390*-*linux*|s390*-*tpf*)
6748             LD="${LD-ld} -m elf64_s390"
6749             ;;
6750           sparc*-*linux*)
6751             LD="${LD-ld} -m elf64_sparc"
6752             ;;
6753         esac
6754         ;;
6755     esac
6756   fi
6757   rm -rf conftest*
6758   ;;
6759
6760 *-*-sco3.2v5*)
6761   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6762   SAVE_CFLAGS="$CFLAGS"
6763   CFLAGS="$CFLAGS -belf"
6764   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6766 if test "${lt_cv_cc_needs_belf+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   ac_ext=c
6770 ac_cpp='$CPP $CPPFLAGS'
6771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774
6775      cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h.  */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h.  */
6781
6782 int
6783 main ()
6784 {
6785
6786   ;
6787   return 0;
6788 }
6789 _ACEOF
6790 rm -f conftest.$ac_objext conftest$ac_exeext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6792   (eval $ac_link) 2>conftest.er1
6793   ac_status=$?
6794   grep -v '^ *+' conftest.er1 >conftest.err
6795   rm -f conftest.er1
6796   cat conftest.err >&5
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } &&
6799          { ac_try='test -z "$ac_c_werror_flag"
6800                          || test ! -s conftest.err'
6801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802   (eval $ac_try) 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); }; } &&
6806          { ac_try='test -s conftest$ac_exeext'
6807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808   (eval $ac_try) 2>&5
6809   ac_status=$?
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); }; }; then
6812   lt_cv_cc_needs_belf=yes
6813 else
6814   echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817 lt_cv_cc_needs_belf=no
6818 fi
6819 rm -f conftest.err conftest.$ac_objext \
6820       conftest$ac_exeext conftest.$ac_ext
6821      ac_ext=c
6822 ac_cpp='$CPP $CPPFLAGS'
6823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6826
6827 fi
6828 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6829 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6830   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6831     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6832     CFLAGS="$SAVE_CFLAGS"
6833   fi
6834   ;;
6835 sparc*-*solaris*)
6836   # Find out which ABI we are using.
6837   echo 'int i;' > conftest.$ac_ext
6838   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839   (eval $ac_compile) 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); }; then
6843     case `/usr/bin/file conftest.o` in
6844     *64-bit*)
6845       case $lt_cv_prog_gnu_ld in
6846       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6847       *)
6848         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6849           LD="${LD-ld} -64"
6850         fi
6851         ;;
6852       esac
6853       ;;
6854     esac
6855   fi
6856   rm -rf conftest*
6857   ;;
6858 esac
6859
6860 need_locks="$enable_libtool_lock"
6861
6862
6863   case $host_os in
6864     rhapsody* | darwin*)
6865     if test -n "$ac_tool_prefix"; then
6866   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6867 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6868 echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6870 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   if test -n "$DSYMUTIL"; then
6874   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881   for ac_exec_ext in '' $ac_executable_extensions; do
6882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888 done
6889
6890 fi
6891 fi
6892 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6893 if test -n "$DSYMUTIL"; then
6894   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6895 echo "${ECHO_T}$DSYMUTIL" >&6
6896 else
6897   echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6
6899 fi
6900
6901 fi
6902 if test -z "$ac_cv_prog_DSYMUTIL"; then
6903   ac_ct_DSYMUTIL=$DSYMUTIL
6904   # Extract the first word of "dsymutil", so it can be a program name with args.
6905 set dummy dsymutil; ac_word=$2
6906 echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6908 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   if test -n "$ac_ct_DSYMUTIL"; then
6912   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919   for ac_exec_ext in '' $ac_executable_extensions; do
6920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926 done
6927
6928   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6929 fi
6930 fi
6931 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6932 if test -n "$ac_ct_DSYMUTIL"; then
6933   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6934 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6935 else
6936   echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6
6938 fi
6939
6940   DSYMUTIL=$ac_ct_DSYMUTIL
6941 else
6942   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6943 fi
6944
6945     if test -n "$ac_tool_prefix"; then
6946   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6947 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6948 echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6950 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   if test -n "$NMEDIT"; then
6954   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959   IFS=$as_save_IFS
6960   test -z "$as_dir" && as_dir=.
6961   for ac_exec_ext in '' $ac_executable_extensions; do
6962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965     break 2
6966   fi
6967 done
6968 done
6969
6970 fi
6971 fi
6972 NMEDIT=$ac_cv_prog_NMEDIT
6973 if test -n "$NMEDIT"; then
6974   echo "$as_me:$LINENO: result: $NMEDIT" >&5
6975 echo "${ECHO_T}$NMEDIT" >&6
6976 else
6977   echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6
6979 fi
6980
6981 fi
6982 if test -z "$ac_cv_prog_NMEDIT"; then
6983   ac_ct_NMEDIT=$NMEDIT
6984   # Extract the first word of "nmedit", so it can be a program name with args.
6985 set dummy nmedit; ac_word=$2
6986 echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6988 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   if test -n "$ac_ct_NMEDIT"; then
6992   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999   for ac_exec_ext in '' $ac_executable_extensions; do
7000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003     break 2
7004   fi
7005 done
7006 done
7007
7008   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7009 fi
7010 fi
7011 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7012 if test -n "$ac_ct_NMEDIT"; then
7013   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7014 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7015 else
7016   echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6
7018 fi
7019
7020   NMEDIT=$ac_ct_NMEDIT
7021 else
7022   NMEDIT="$ac_cv_prog_NMEDIT"
7023 fi
7024
7025     if test -n "$ac_tool_prefix"; then
7026   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7027 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7028 echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7030 if test "${ac_cv_prog_LIPO+set}" = set; then
7031   echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033   if test -n "$LIPO"; then
7034   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041   for ac_exec_ext in '' $ac_executable_extensions; do
7042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048 done
7049
7050 fi
7051 fi
7052 LIPO=$ac_cv_prog_LIPO
7053 if test -n "$LIPO"; then
7054   echo "$as_me:$LINENO: result: $LIPO" >&5
7055 echo "${ECHO_T}$LIPO" >&6
7056 else
7057   echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6
7059 fi
7060
7061 fi
7062 if test -z "$ac_cv_prog_LIPO"; then
7063   ac_ct_LIPO=$LIPO
7064   # Extract the first word of "lipo", so it can be a program name with args.
7065 set dummy lipo; ac_word=$2
7066 echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   if test -n "$ac_ct_LIPO"; then
7072   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079   for ac_exec_ext in '' $ac_executable_extensions; do
7080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081     ac_cv_prog_ac_ct_LIPO="lipo"
7082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086 done
7087
7088   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7089 fi
7090 fi
7091 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7092 if test -n "$ac_ct_LIPO"; then
7093   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7094 echo "${ECHO_T}$ac_ct_LIPO" >&6
7095 else
7096   echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6
7098 fi
7099
7100   LIPO=$ac_ct_LIPO
7101 else
7102   LIPO="$ac_cv_prog_LIPO"
7103 fi
7104
7105     if test -n "$ac_tool_prefix"; then
7106   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7107 set dummy ${ac_tool_prefix}otool; ac_word=$2
7108 echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110 if test "${ac_cv_prog_OTOOL+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   if test -n "$OTOOL"; then
7114   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119   IFS=$as_save_IFS
7120   test -z "$as_dir" && as_dir=.
7121   for ac_exec_ext in '' $ac_executable_extensions; do
7122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125     break 2
7126   fi
7127 done
7128 done
7129
7130 fi
7131 fi
7132 OTOOL=$ac_cv_prog_OTOOL
7133 if test -n "$OTOOL"; then
7134   echo "$as_me:$LINENO: result: $OTOOL" >&5
7135 echo "${ECHO_T}$OTOOL" >&6
7136 else
7137   echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6
7139 fi
7140
7141 fi
7142 if test -z "$ac_cv_prog_OTOOL"; then
7143   ac_ct_OTOOL=$OTOOL
7144   # Extract the first word of "otool", so it can be a program name with args.
7145 set dummy otool; ac_word=$2
7146 echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   if test -n "$ac_ct_OTOOL"; then
7152   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159   for ac_exec_ext in '' $ac_executable_extensions; do
7160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161     ac_cv_prog_ac_ct_OTOOL="otool"
7162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166 done
7167
7168   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7169 fi
7170 fi
7171 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7172 if test -n "$ac_ct_OTOOL"; then
7173   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7174 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7175 else
7176   echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7178 fi
7179
7180   OTOOL=$ac_ct_OTOOL
7181 else
7182   OTOOL="$ac_cv_prog_OTOOL"
7183 fi
7184
7185     if test -n "$ac_tool_prefix"; then
7186   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7188 echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   if test -n "$OTOOL64"; then
7194   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201   for ac_exec_ext in '' $ac_executable_extensions; do
7202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208 done
7209
7210 fi
7211 fi
7212 OTOOL64=$ac_cv_prog_OTOOL64
7213 if test -n "$OTOOL64"; then
7214   echo "$as_me:$LINENO: result: $OTOOL64" >&5
7215 echo "${ECHO_T}$OTOOL64" >&6
7216 else
7217   echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7219 fi
7220
7221 fi
7222 if test -z "$ac_cv_prog_OTOOL64"; then
7223   ac_ct_OTOOL64=$OTOOL64
7224   # Extract the first word of "otool64", so it can be a program name with args.
7225 set dummy otool64; ac_word=$2
7226 echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   if test -n "$ac_ct_OTOOL64"; then
7232   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   for ac_exec_ext in '' $ac_executable_extensions; do
7240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241     ac_cv_prog_ac_ct_OTOOL64="otool64"
7242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246 done
7247
7248   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7249 fi
7250 fi
7251 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7252 if test -n "$ac_ct_OTOOL64"; then
7253   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7254 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7255 else
7256   echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7258 fi
7259
7260   OTOOL64=$ac_ct_OTOOL64
7261 else
7262   OTOOL64="$ac_cv_prog_OTOOL64"
7263 fi
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7292 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7293 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   lt_cv_apple_cc_single_mod=no
7297       if test -z "${LT_MULTI_MODULE}"; then
7298         # By default we will add the -single_module flag. You can override
7299         # by either setting the environment variable LT_MULTI_MODULE
7300         # non-empty at configure time, or by adding -multi_module to the
7301         # link flags.
7302         rm -rf libconftest.dylib*
7303         echo "int foo(void){return 1;}" > conftest.c
7304         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7305 -dynamiclib -Wl,-single_module conftest.c" >&5
7306         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7307           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7308         _lt_result=$?
7309         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7310           lt_cv_apple_cc_single_mod=yes
7311         else
7312           cat conftest.err >&5
7313         fi
7314         rm -rf libconftest.dylib*
7315         rm -f conftest.*
7316       fi
7317 fi
7318 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7319 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7320     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7321 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7322 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   lt_cv_ld_exported_symbols_list=no
7326       save_LDFLAGS=$LDFLAGS
7327       echo "_main" > conftest.sym
7328       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7329       cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335
7336 int
7337 main ()
7338 {
7339
7340   ;
7341   return 0;
7342 }
7343 _ACEOF
7344 rm -f conftest.$ac_objext conftest$ac_exeext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7346   (eval $ac_link) 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } &&
7353          { ac_try='test -z "$ac_c_werror_flag"
7354                          || test ! -s conftest.err'
7355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356   (eval $ac_try) 2>&5
7357   ac_status=$?
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); }; } &&
7360          { ac_try='test -s conftest$ac_exeext'
7361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362   (eval $ac_try) 2>&5
7363   ac_status=$?
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); }; }; then
7366   lt_cv_ld_exported_symbols_list=yes
7367 else
7368   echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 lt_cv_ld_exported_symbols_list=no
7372 fi
7373 rm -f conftest.err conftest.$ac_objext \
7374       conftest$ac_exeext conftest.$ac_ext
7375         LDFLAGS="$save_LDFLAGS"
7376
7377 fi
7378 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7379 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7380     case $host_os in
7381     rhapsody* | darwin1.[012])
7382       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7383     darwin1.*)
7384       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7385     darwin*) # darwin 5.x on
7386       # if running on 10.5 or later, the deployment target defaults
7387       # to the OS version, if on x86, and 10.4, the deployment
7388       # target defaults to 10.4. Don't you love it?
7389       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7390         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7391           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7392         10.[012]*)
7393           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7394         10.*)
7395           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7396       esac
7397     ;;
7398   esac
7399     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7400       _lt_dar_single_mod='$single_module'
7401     fi
7402     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7403       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7404     else
7405       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7406     fi
7407     if test "$DSYMUTIL" != ":"; then
7408       _lt_dsymutil='~$DSYMUTIL $lib || :'
7409     else
7410       _lt_dsymutil=
7411     fi
7412     ;;
7413   esac
7414
7415
7416 for ac_header in dlfcn.h
7417 do
7418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7419 echo "$as_me:$LINENO: checking for $ac_header" >&5
7420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7422   echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424   cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h.  */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h.  */
7430 $ac_includes_default
7431
7432 #include <$ac_header>
7433 _ACEOF
7434 rm -f conftest.$ac_objext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436   (eval $ac_compile) 2>conftest.er1
7437   ac_status=$?
7438   grep -v '^ *+' conftest.er1 >conftest.err
7439   rm -f conftest.er1
7440   cat conftest.err >&5
7441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442   (exit $ac_status); } &&
7443          { ac_try='test -z "$ac_c_werror_flag"
7444                          || test ! -s conftest.err'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; } &&
7450          { ac_try='test -s conftest.$ac_objext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   eval "$as_ac_Header=yes"
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 eval "$as_ac_Header=no"
7462 fi
7463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7464 fi
7465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7468   cat >>confdefs.h <<_ACEOF
7469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7470 _ACEOF
7471
7472 fi
7473
7474 done
7475
7476
7477
7478 # Set options
7479
7480
7481
7482         enable_dlopen=no
7483
7484
7485   enable_win32_dll=no
7486
7487
7488             # Check whether --enable-shared or --disable-shared was given.
7489 if test "${enable_shared+set}" = set; then
7490   enableval="$enable_shared"
7491   p=${PACKAGE-default}
7492     case $enableval in
7493     yes) enable_shared=yes ;;
7494     no) enable_shared=no ;;
7495     *)
7496       enable_shared=no
7497       # Look at the argument we got.  We use all the common list separators.
7498       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7499       for pkg in $enableval; do
7500         IFS="$lt_save_ifs"
7501         if test "X$pkg" = "X$p"; then
7502           enable_shared=yes
7503         fi
7504       done
7505       IFS="$lt_save_ifs"
7506       ;;
7507     esac
7508 else
7509   enable_shared=yes
7510 fi;
7511
7512
7513
7514
7515
7516
7517
7518
7519   # Check whether --enable-static or --disable-static was given.
7520 if test "${enable_static+set}" = set; then
7521   enableval="$enable_static"
7522   p=${PACKAGE-default}
7523     case $enableval in
7524     yes) enable_static=yes ;;
7525     no) enable_static=no ;;
7526     *)
7527      enable_static=no
7528       # Look at the argument we got.  We use all the common list separators.
7529       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7530       for pkg in $enableval; do
7531         IFS="$lt_save_ifs"
7532         if test "X$pkg" = "X$p"; then
7533           enable_static=yes
7534         fi
7535       done
7536       IFS="$lt_save_ifs"
7537       ;;
7538     esac
7539 else
7540   enable_static=yes
7541 fi;
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551 # Check whether --with-pic or --without-pic was given.
7552 if test "${with_pic+set}" = set; then
7553   withval="$with_pic"
7554   pic_mode="$withval"
7555 else
7556   pic_mode=default
7557 fi;
7558
7559 test -z "$pic_mode" && pic_mode=default
7560
7561
7562
7563
7564
7565
7566
7567   # Check whether --enable-fast-install or --disable-fast-install was given.
7568 if test "${enable_fast_install+set}" = set; then
7569   enableval="$enable_fast_install"
7570   p=${PACKAGE-default}
7571     case $enableval in
7572     yes) enable_fast_install=yes ;;
7573     no) enable_fast_install=no ;;
7574     *)
7575       enable_fast_install=no
7576       # Look at the argument we got.  We use all the common list separators.
7577       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7578       for pkg in $enableval; do
7579         IFS="$lt_save_ifs"
7580         if test "X$pkg" = "X$p"; then
7581           enable_fast_install=yes
7582         fi
7583       done
7584       IFS="$lt_save_ifs"
7585       ;;
7586     esac
7587 else
7588   enable_fast_install=yes
7589 fi;
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600 # This can be used to rebuild libtool when needed
7601 LIBTOOL_DEPS="$ltmain"
7602
7603 # Always use our own libtool.
7604 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630 test -z "$LN_S" && LN_S="ln -s"
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 if test -n "${ZSH_VERSION+set}" ; then
7646    setopt NO_GLOB_SUBST
7647 fi
7648
7649 echo "$as_me:$LINENO: checking for objdir" >&5
7650 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7651 if test "${lt_cv_objdir+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   rm -f .libs 2>/dev/null
7655 mkdir .libs 2>/dev/null
7656 if test -d .libs; then
7657   lt_cv_objdir=.libs
7658 else
7659   # MS-DOS does not allow filenames that begin with a dot.
7660   lt_cv_objdir=_libs
7661 fi
7662 rmdir .libs 2>/dev/null
7663 fi
7664 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7665 echo "${ECHO_T}$lt_cv_objdir" >&6
7666 objdir=$lt_cv_objdir
7667
7668
7669
7670
7671
7672 cat >>confdefs.h <<_ACEOF
7673 #define LT_OBJDIR "$lt_cv_objdir/"
7674 _ACEOF
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692 case $host_os in
7693 aix3*)
7694   # AIX sometimes has problems with the GCC collect2 program.  For some
7695   # reason, if we set the COLLECT_NAMES environment variable, the problems
7696   # vanish in a puff of smoke.
7697   if test "X${COLLECT_NAMES+set}" != Xset; then
7698     COLLECT_NAMES=
7699     export COLLECT_NAMES
7700   fi
7701   ;;
7702 esac
7703
7704 # Sed substitution that helps us do robust quoting.  It backslashifies
7705 # metacharacters that are still active within double-quoted strings.
7706 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7707
7708 # Same as above, but do not quote variable references.
7709 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7710
7711 # Sed substitution to delay expansion of an escaped shell variable in a
7712 # double_quote_subst'ed string.
7713 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7714
7715 # Sed substitution to delay expansion of an escaped single quote.
7716 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7717
7718 # Sed substitution to avoid accidental globbing in evaled expressions
7719 no_glob_subst='s/\*/\\\*/g'
7720
7721 # Global variables:
7722 ofile=libtool
7723 can_build_shared=yes
7724
7725 # All known linkers require a `.a' archive for static linking (except MSVC,
7726 # which needs '.lib').
7727 libext=a
7728
7729 with_gnu_ld="$lt_cv_prog_gnu_ld"
7730
7731 old_CC="$CC"
7732 old_CFLAGS="$CFLAGS"
7733
7734 # Set sane defaults for various variables
7735 test -z "$CC" && CC=cc
7736 test -z "$LTCC" && LTCC=$CC
7737 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7738 test -z "$LD" && LD=ld
7739 test -z "$ac_objext" && ac_objext=o
7740
7741 for cc_temp in $compiler""; do
7742   case $cc_temp in
7743     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7744     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7745     \-*) ;;
7746     *) break;;
7747   esac
7748 done
7749 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7750
7751
7752 # Only perform the check for file, if the check method requires it
7753 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7754 case $deplibs_check_method in
7755 file_magic*)
7756   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7757     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7758 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762   case $MAGIC_CMD in
7763 [\\/*] |  ?:[\\/]*)
7764   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7765   ;;
7766 *)
7767   lt_save_MAGIC_CMD="$MAGIC_CMD"
7768   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7769   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7770   for ac_dir in $ac_dummy; do
7771     IFS="$lt_save_ifs"
7772     test -z "$ac_dir" && ac_dir=.
7773     if test -f $ac_dir/${ac_tool_prefix}file; then
7774       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7775       if test -n "$file_magic_test_file"; then
7776         case $deplibs_check_method in
7777         "file_magic "*)
7778           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7779           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7781             $EGREP "$file_magic_regex" > /dev/null; then
7782             :
7783           else
7784             cat <<_LT_EOF 1>&2
7785
7786 *** Warning: the command libtool uses to detect shared libraries,
7787 *** $file_magic_cmd, produces output that libtool cannot recognize.
7788 *** The result is that libtool may fail to recognize shared libraries
7789 *** as such.  This will affect the creation of libtool libraries that
7790 *** depend on shared libraries, but programs linked with such libtool
7791 *** libraries will work regardless of this problem.  Nevertheless, you
7792 *** may want to report the problem to your system manager and/or to
7793 *** bug-libtool@gnu.org
7794
7795 _LT_EOF
7796           fi ;;
7797         esac
7798       fi
7799       break
7800     fi
7801   done
7802   IFS="$lt_save_ifs"
7803   MAGIC_CMD="$lt_save_MAGIC_CMD"
7804   ;;
7805 esac
7806 fi
7807
7808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809 if test -n "$MAGIC_CMD"; then
7810   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7811 echo "${ECHO_T}$MAGIC_CMD" >&6
7812 else
7813   echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6
7815 fi
7816
7817
7818
7819
7820
7821 if test -z "$lt_cv_path_MAGIC_CMD"; then
7822   if test -n "$ac_tool_prefix"; then
7823     echo "$as_me:$LINENO: checking for file" >&5
7824 echo $ECHO_N "checking for file... $ECHO_C" >&6
7825 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828   case $MAGIC_CMD in
7829 [\\/*] |  ?:[\\/]*)
7830   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7831   ;;
7832 *)
7833   lt_save_MAGIC_CMD="$MAGIC_CMD"
7834   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7835   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7836   for ac_dir in $ac_dummy; do
7837     IFS="$lt_save_ifs"
7838     test -z "$ac_dir" && ac_dir=.
7839     if test -f $ac_dir/file; then
7840       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7841       if test -n "$file_magic_test_file"; then
7842         case $deplibs_check_method in
7843         "file_magic "*)
7844           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7845           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7847             $EGREP "$file_magic_regex" > /dev/null; then
7848             :
7849           else
7850             cat <<_LT_EOF 1>&2
7851
7852 *** Warning: the command libtool uses to detect shared libraries,
7853 *** $file_magic_cmd, produces output that libtool cannot recognize.
7854 *** The result is that libtool may fail to recognize shared libraries
7855 *** as such.  This will affect the creation of libtool libraries that
7856 *** depend on shared libraries, but programs linked with such libtool
7857 *** libraries will work regardless of this problem.  Nevertheless, you
7858 *** may want to report the problem to your system manager and/or to
7859 *** bug-libtool@gnu.org
7860
7861 _LT_EOF
7862           fi ;;
7863         esac
7864       fi
7865       break
7866     fi
7867   done
7868   IFS="$lt_save_ifs"
7869   MAGIC_CMD="$lt_save_MAGIC_CMD"
7870   ;;
7871 esac
7872 fi
7873
7874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7875 if test -n "$MAGIC_CMD"; then
7876   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7877 echo "${ECHO_T}$MAGIC_CMD" >&6
7878 else
7879   echo "$as_me:$LINENO: result: no" >&5
7880 echo "${ECHO_T}no" >&6
7881 fi
7882
7883
7884   else
7885     MAGIC_CMD=:
7886   fi
7887 fi
7888
7889   fi
7890   ;;
7891 esac
7892
7893 # Use C for the default configuration in the libtool script
7894
7895 lt_save_CC="$CC"
7896 ac_ext=c
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901
7902
7903 # Source file extension for C test sources.
7904 ac_ext=c
7905
7906 # Object file extension for compiled C test sources.
7907 objext=o
7908 objext=$objext
7909
7910 # Code to be used in simple compile tests
7911 lt_simple_compile_test_code="int some_variable = 0;"
7912
7913 # Code to be used in simple link tests
7914 lt_simple_link_test_code='int main(){return(0);}'
7915
7916
7917
7918
7919
7920
7921
7922 # If no C compiler was specified, use CC.
7923 LTCC=${LTCC-"$CC"}
7924
7925 # If no C compiler flags were specified, use CFLAGS.
7926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7927
7928 # Allow CC to be a program name with arguments.
7929 compiler=$CC
7930
7931 # Save the default compiler, since it gets overwritten when the other
7932 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7933 compiler_DEFAULT=$CC
7934
7935 # save warnings/boilerplate of simple test code
7936 ac_outfile=conftest.$ac_objext
7937 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7939 _lt_compiler_boilerplate=`cat conftest.err`
7940 $RM conftest*
7941
7942 ac_outfile=conftest.$ac_objext
7943 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7945 _lt_linker_boilerplate=`cat conftest.err`
7946 $RM -r conftest*
7947
7948
7949 ## CAVEAT EMPTOR:
7950 ## There is no encapsulation within the following macros, do not change
7951 ## the running order or otherwise move them around unless you know exactly
7952 ## what you are doing...
7953 if test -n "$compiler"; then
7954
7955 lt_prog_compiler_no_builtin_flag=
7956
7957 if test "$GCC" = yes; then
7958   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7959
7960   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7961 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7962 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965   lt_cv_prog_compiler_rtti_exceptions=no
7966    ac_outfile=conftest.$ac_objext
7967    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7968    lt_compiler_flag="-fno-rtti -fno-exceptions"
7969    # Insert the option either (1) after the last *FLAGS variable, or
7970    # (2) before a word containing "conftest.", or (3) at the end.
7971    # Note that $ac_compile itself does not contain backslashes and begins
7972    # with a dollar sign (not a hyphen), so the echo should work correctly.
7973    # The option is referenced via a variable to avoid confusing sed.
7974    lt_compile=`echo "$ac_compile" | $SED \
7975    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7976    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7977    -e 's:$: $lt_compiler_flag:'`
7978    (eval echo "\"\$as_me:7978: $lt_compile\"" >&5)
7979    (eval "$lt_compile" 2>conftest.err)
7980    ac_status=$?
7981    cat conftest.err >&5
7982    echo "$as_me:7982: \$? = $ac_status" >&5
7983    if (exit $ac_status) && test -s "$ac_outfile"; then
7984      # The compiler can only warn and ignore the option if not recognized
7985      # So say no if there are warnings other than the usual output.
7986      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7987      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7988      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7989        lt_cv_prog_compiler_rtti_exceptions=yes
7990      fi
7991    fi
7992    $RM conftest*
7993
7994 fi
7995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7996 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7997
7998 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7999     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8000 else
8001     :
8002 fi
8003
8004 fi
8005
8006
8007
8008
8009
8010
8011   lt_prog_compiler_wl=
8012 lt_prog_compiler_pic=
8013 lt_prog_compiler_static=
8014
8015 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8016 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8017
8018   if test "$GCC" = yes; then
8019     lt_prog_compiler_wl='-Wl,'
8020     lt_prog_compiler_static='-static'
8021
8022     case $host_os in
8023       aix*)
8024       # All AIX code is PIC.
8025       if test "$host_cpu" = ia64; then
8026         # AIX 5 now supports IA64 processor
8027         lt_prog_compiler_static='-Bstatic'
8028       fi
8029       ;;
8030
8031     amigaos*)
8032       case $host_cpu in
8033       powerpc)
8034             # see comment about AmigaOS4 .so support
8035             lt_prog_compiler_pic='-fPIC'
8036         ;;
8037       m68k)
8038             # FIXME: we need at least 68020 code to build shared libraries, but
8039             # adding the `-m68020' flag to GCC prevents building anything better,
8040             # like `-m68040'.
8041             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8042         ;;
8043       esac
8044       ;;
8045
8046     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8047       # PIC is the default for these OSes.
8048       ;;
8049
8050     mingw* | cygwin* | pw32* | os2* | cegcc*)
8051       # This hack is so that the source file can tell whether it is being
8052       # built for inclusion in a dll (and should export symbols for example).
8053       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8054       # (--disable-auto-import) libraries
8055       lt_prog_compiler_pic='-DDLL_EXPORT'
8056       ;;
8057
8058     darwin* | rhapsody*)
8059       # PIC is the default on this platform
8060       # Common symbols not allowed in MH_DYLIB files
8061       lt_prog_compiler_pic='-fno-common'
8062       ;;
8063
8064     hpux*)
8065       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8066       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8067       # sets the default TLS model and affects inlining.
8068       case $host_cpu in
8069       hppa*64*)
8070         # +Z the default
8071         ;;
8072       *)
8073         lt_prog_compiler_pic='-fPIC'
8074         ;;
8075       esac
8076       ;;
8077
8078     interix[3-9]*)
8079       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8080       # Instead, we relocate shared libraries at runtime.
8081       ;;
8082
8083     msdosdjgpp*)
8084       # Just because we use GCC doesn't mean we suddenly get shared libraries
8085       # on systems that don't support them.
8086       lt_prog_compiler_can_build_shared=no
8087       enable_shared=no
8088       ;;
8089
8090     *nto* | *qnx*)
8091       # QNX uses GNU C++, but need to define -shared option too, otherwise
8092       # it will coredump.
8093       lt_prog_compiler_pic='-fPIC -shared'
8094       ;;
8095
8096     sysv4*MP*)
8097       if test -d /usr/nec; then
8098         lt_prog_compiler_pic=-Kconform_pic
8099       fi
8100       ;;
8101
8102     *)
8103       lt_prog_compiler_pic='-fPIC'
8104       ;;
8105     esac
8106   else
8107     # PORTME Check for flag to pass linker flags through the system compiler.
8108     case $host_os in
8109     aix*)
8110       lt_prog_compiler_wl='-Wl,'
8111       if test "$host_cpu" = ia64; then
8112         # AIX 5 now supports IA64 processor
8113         lt_prog_compiler_static='-Bstatic'
8114       else
8115         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8116       fi
8117       ;;
8118
8119     mingw* | cygwin* | pw32* | os2* | cegcc*)
8120       # This hack is so that the source file can tell whether it is being
8121       # built for inclusion in a dll (and should export symbols for example).
8122       lt_prog_compiler_pic='-DDLL_EXPORT'
8123       ;;
8124
8125     hpux9* | hpux10* | hpux11*)
8126       lt_prog_compiler_wl='-Wl,'
8127       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8128       # not for PA HP-UX.
8129       case $host_cpu in
8130       hppa*64*|ia64*)
8131         # +Z the default
8132         ;;
8133       *)
8134         lt_prog_compiler_pic='+Z'
8135         ;;
8136       esac
8137       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8138       lt_prog_compiler_static='${wl}-a ${wl}archive'
8139       ;;
8140
8141     irix5* | irix6* | nonstopux*)
8142       lt_prog_compiler_wl='-Wl,'
8143       # PIC (with -KPIC) is the default.
8144       lt_prog_compiler_static='-non_shared'
8145       ;;
8146
8147     linux* | k*bsd*-gnu)
8148       case $cc_basename in
8149       # old Intel for x86_64 which still supported -KPIC.
8150       ecc*)
8151         lt_prog_compiler_wl='-Wl,'
8152         lt_prog_compiler_pic='-KPIC'
8153         lt_prog_compiler_static='-static'
8154         ;;
8155       # icc used to be incompatible with GCC.
8156       # ICC 10 doesn't accept -KPIC any more.
8157       icc* | ifort*)
8158         lt_prog_compiler_wl='-Wl,'
8159         lt_prog_compiler_pic='-fPIC'
8160         lt_prog_compiler_static='-static'
8161         ;;
8162       # Lahey Fortran 8.1.
8163       lf95*)
8164         lt_prog_compiler_wl='-Wl,'
8165         lt_prog_compiler_pic='--shared'
8166         lt_prog_compiler_static='--static'
8167         ;;
8168       pgcc* | pgf77* | pgf90* | pgf95*)
8169         # Portland Group compilers (*not* the Pentium gcc compiler,
8170         # which looks to be a dead project)
8171         lt_prog_compiler_wl='-Wl,'
8172         lt_prog_compiler_pic='-fpic'
8173         lt_prog_compiler_static='-Bstatic'
8174         ;;
8175       ccc*)
8176         lt_prog_compiler_wl='-Wl,'
8177         # All Alpha code is PIC.
8178         lt_prog_compiler_static='-non_shared'
8179         ;;
8180       xl*)
8181         # IBM XL C 8.0/Fortran 10.1 on PPC
8182         lt_prog_compiler_wl='-Wl,'
8183         lt_prog_compiler_pic='-qpic'
8184         lt_prog_compiler_static='-qstaticlink'
8185         ;;
8186       *)
8187         case `$CC -V 2>&1 | sed 5q` in
8188         *Sun\ C*)
8189           # Sun C 5.9
8190           lt_prog_compiler_pic='-KPIC'
8191           lt_prog_compiler_static='-Bstatic'
8192           lt_prog_compiler_wl='-Wl,'
8193           ;;
8194         *Sun\ F*)
8195           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8196           lt_prog_compiler_pic='-KPIC'
8197           lt_prog_compiler_static='-Bstatic'
8198           lt_prog_compiler_wl=''
8199           ;;
8200         esac
8201         ;;
8202       esac
8203       ;;
8204
8205     newsos6)
8206       lt_prog_compiler_pic='-KPIC'
8207       lt_prog_compiler_static='-Bstatic'
8208       ;;
8209
8210     *nto* | *qnx*)
8211       # QNX uses GNU C++, but need to define -shared option too, otherwise
8212       # it will coredump.
8213       lt_prog_compiler_pic='-fPIC -shared'
8214       ;;
8215
8216     osf3* | osf4* | osf5*)
8217       lt_prog_compiler_wl='-Wl,'
8218       # All OSF/1 code is PIC.
8219       lt_prog_compiler_static='-non_shared'
8220       ;;
8221
8222     rdos*)
8223       lt_prog_compiler_static='-non_shared'
8224       ;;
8225
8226     solaris*)
8227       lt_prog_compiler_pic='-KPIC'
8228       lt_prog_compiler_static='-Bstatic'
8229       case $cc_basename in
8230       f77* | f90* | f95*)
8231         lt_prog_compiler_wl='-Qoption ld ';;
8232       *)
8233         lt_prog_compiler_wl='-Wl,';;
8234       esac
8235       ;;
8236
8237     sunos4*)
8238       lt_prog_compiler_wl='-Qoption ld '
8239       lt_prog_compiler_pic='-PIC'
8240       lt_prog_compiler_static='-Bstatic'
8241       ;;
8242
8243     sysv4 | sysv4.2uw2* | sysv4.3*)
8244       lt_prog_compiler_wl='-Wl,'
8245       lt_prog_compiler_pic='-KPIC'
8246       lt_prog_compiler_static='-Bstatic'
8247       ;;
8248
8249     sysv4*MP*)
8250       if test -d /usr/nec ;then
8251         lt_prog_compiler_pic='-Kconform_pic'
8252         lt_prog_compiler_static='-Bstatic'
8253       fi
8254       ;;
8255
8256     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8257       lt_prog_compiler_wl='-Wl,'
8258       lt_prog_compiler_pic='-KPIC'
8259       lt_prog_compiler_static='-Bstatic'
8260       ;;
8261
8262     unicos*)
8263       lt_prog_compiler_wl='-Wl,'
8264       lt_prog_compiler_can_build_shared=no
8265       ;;
8266
8267     uts4*)
8268       lt_prog_compiler_pic='-pic'
8269       lt_prog_compiler_static='-Bstatic'
8270       ;;
8271
8272     *)
8273       lt_prog_compiler_can_build_shared=no
8274       ;;
8275     esac
8276   fi
8277
8278 case $host_os in
8279   # For platforms which do not support PIC, -DPIC is meaningless:
8280   *djgpp*)
8281     lt_prog_compiler_pic=
8282     ;;
8283   *)
8284     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8285     ;;
8286 esac
8287 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8288 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8289
8290
8291
8292
8293
8294
8295 #
8296 # Check to make sure the PIC flag actually works.
8297 #
8298 if test -n "$lt_prog_compiler_pic"; then
8299   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8300 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8301 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   lt_cv_prog_compiler_pic_works=no
8305    ac_outfile=conftest.$ac_objext
8306    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8307    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8308    # Insert the option either (1) after the last *FLAGS variable, or
8309    # (2) before a word containing "conftest.", or (3) at the end.
8310    # Note that $ac_compile itself does not contain backslashes and begins
8311    # with a dollar sign (not a hyphen), so the echo should work correctly.
8312    # The option is referenced via a variable to avoid confusing sed.
8313    lt_compile=`echo "$ac_compile" | $SED \
8314    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8315    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8316    -e 's:$: $lt_compiler_flag:'`
8317    (eval echo "\"\$as_me:8317: $lt_compile\"" >&5)
8318    (eval "$lt_compile" 2>conftest.err)
8319    ac_status=$?
8320    cat conftest.err >&5
8321    echo "$as_me:8321: \$? = $ac_status" >&5
8322    if (exit $ac_status) && test -s "$ac_outfile"; then
8323      # The compiler can only warn and ignore the option if not recognized
8324      # So say no if there are warnings other than the usual output.
8325      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8326      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8327      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8328        lt_cv_prog_compiler_pic_works=yes
8329      fi
8330    fi
8331    $RM conftest*
8332
8333 fi
8334 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8335 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8336
8337 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8338     case $lt_prog_compiler_pic in
8339      "" | " "*) ;;
8340      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8341      esac
8342 else
8343     lt_prog_compiler_pic=
8344      lt_prog_compiler_can_build_shared=no
8345 fi
8346
8347 fi
8348
8349
8350
8351
8352
8353
8354 #
8355 # Check to make sure the static flag actually works.
8356 #
8357 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8358 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8359 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8360 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   lt_cv_prog_compiler_static_works=no
8364    save_LDFLAGS="$LDFLAGS"
8365    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8366    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8367    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8368      # The linker can only warn and ignore the option if not recognized
8369      # So say no if there are warnings
8370      if test -s conftest.err; then
8371        # Append any errors to the config.log.
8372        cat conftest.err 1>&5
8373        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8374        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8375        if diff conftest.exp conftest.er2 >/dev/null; then
8376          lt_cv_prog_compiler_static_works=yes
8377        fi
8378      else
8379        lt_cv_prog_compiler_static_works=yes
8380      fi
8381    fi
8382    $RM -r conftest*
8383    LDFLAGS="$save_LDFLAGS"
8384
8385 fi
8386 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8387 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8388
8389 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8390     :
8391 else
8392     lt_prog_compiler_static=
8393 fi
8394
8395
8396
8397
8398
8399
8400
8401   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8402 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8403 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   lt_cv_prog_compiler_c_o=no
8407    $RM -r conftest 2>/dev/null
8408    mkdir conftest
8409    cd conftest
8410    mkdir out
8411    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8412
8413    lt_compiler_flag="-o out/conftest2.$ac_objext"
8414    # Insert the option either (1) after the last *FLAGS variable, or
8415    # (2) before a word containing "conftest.", or (3) at the end.
8416    # Note that $ac_compile itself does not contain backslashes and begins
8417    # with a dollar sign (not a hyphen), so the echo should work correctly.
8418    lt_compile=`echo "$ac_compile" | $SED \
8419    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8420    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8421    -e 's:$: $lt_compiler_flag:'`
8422    (eval echo "\"\$as_me:8422: $lt_compile\"" >&5)
8423    (eval "$lt_compile" 2>out/conftest.err)
8424    ac_status=$?
8425    cat out/conftest.err >&5
8426    echo "$as_me:8426: \$? = $ac_status" >&5
8427    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8428    then
8429      # The compiler can only warn and ignore the option if not recognized
8430      # So say no if there are warnings
8431      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8432      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8433      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8434        lt_cv_prog_compiler_c_o=yes
8435      fi
8436    fi
8437    chmod u+w . 2>&5
8438    $RM conftest*
8439    # SGI C++ compiler will create directory out/ii_files/ for
8440    # template instantiation
8441    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8442    $RM out/* && rmdir out
8443    cd ..
8444    $RM -r conftest
8445    $RM conftest*
8446
8447 fi
8448 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8449 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8450
8451
8452
8453
8454
8455
8456   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8457 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8458 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   lt_cv_prog_compiler_c_o=no
8462    $RM -r conftest 2>/dev/null
8463    mkdir conftest
8464    cd conftest
8465    mkdir out
8466    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8467
8468    lt_compiler_flag="-o out/conftest2.$ac_objext"
8469    # Insert the option either (1) after the last *FLAGS variable, or
8470    # (2) before a word containing "conftest.", or (3) at the end.
8471    # Note that $ac_compile itself does not contain backslashes and begins
8472    # with a dollar sign (not a hyphen), so the echo should work correctly.
8473    lt_compile=`echo "$ac_compile" | $SED \
8474    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8475    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8476    -e 's:$: $lt_compiler_flag:'`
8477    (eval echo "\"\$as_me:8477: $lt_compile\"" >&5)
8478    (eval "$lt_compile" 2>out/conftest.err)
8479    ac_status=$?
8480    cat out/conftest.err >&5
8481    echo "$as_me:8481: \$? = $ac_status" >&5
8482    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8483    then
8484      # The compiler can only warn and ignore the option if not recognized
8485      # So say no if there are warnings
8486      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8487      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8488      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8489        lt_cv_prog_compiler_c_o=yes
8490      fi
8491    fi
8492    chmod u+w . 2>&5
8493    $RM conftest*
8494    # SGI C++ compiler will create directory out/ii_files/ for
8495    # template instantiation
8496    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8497    $RM out/* && rmdir out
8498    cd ..
8499    $RM -r conftest
8500    $RM conftest*
8501
8502 fi
8503 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8504 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8505
8506
8507
8508
8509 hard_links="nottested"
8510 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8511   # do not overwrite the value of need_locks provided by the user
8512   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8513 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8514   hard_links=yes
8515   $RM conftest*
8516   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8517   touch conftest.a
8518   ln conftest.a conftest.b 2>&5 || hard_links=no
8519   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8520   echo "$as_me:$LINENO: result: $hard_links" >&5
8521 echo "${ECHO_T}$hard_links" >&6
8522   if test "$hard_links" = no; then
8523     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8524 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8525     need_locks=warn
8526   fi
8527 else
8528   need_locks=no
8529 fi
8530
8531
8532
8533
8534
8535
8536   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8537 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8538
8539   runpath_var=
8540   allow_undefined_flag=
8541   always_export_symbols=no
8542   archive_cmds=
8543   archive_expsym_cmds=
8544   compiler_needs_object=no
8545   enable_shared_with_static_runtimes=no
8546   export_dynamic_flag_spec=
8547   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8548   hardcode_automatic=no
8549   hardcode_direct=no
8550   hardcode_direct_absolute=no
8551   hardcode_libdir_flag_spec=
8552   hardcode_libdir_flag_spec_ld=
8553   hardcode_libdir_separator=
8554   hardcode_minus_L=no
8555   hardcode_shlibpath_var=unsupported
8556   inherit_rpath=no
8557   link_all_deplibs=unknown
8558   module_cmds=
8559   module_expsym_cmds=
8560   old_archive_from_new_cmds=
8561   old_archive_from_expsyms_cmds=
8562   thread_safe_flag_spec=
8563   whole_archive_flag_spec=
8564   # include_expsyms should be a list of space-separated symbols to be *always*
8565   # included in the symbol list
8566   include_expsyms=
8567   # exclude_expsyms can be an extended regexp of symbols to exclude
8568   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8569   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8570   # as well as any symbol that contains `d'.
8571   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8572   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8573   # platforms (ab)use it in PIC code, but their linkers get confused if
8574   # the symbol is explicitly referenced.  Since portable code cannot
8575   # rely on this symbol name, it's probably fine to never include it in
8576   # preloaded symbol tables.
8577   # Exclude shared library initialization/finalization symbols.
8578   extract_expsyms_cmds=
8579
8580   case $host_os in
8581   cygwin* | mingw* | pw32* | cegcc*)
8582     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8583     # When not using gcc, we currently assume that we are using
8584     # Microsoft Visual C++.
8585     if test "$GCC" != yes; then
8586       with_gnu_ld=no
8587     fi
8588     ;;
8589   interix*)
8590     # we just hope/assume this is gcc and not c89 (= MSVC++)
8591     with_gnu_ld=yes
8592     ;;
8593   openbsd*)
8594     with_gnu_ld=no
8595     ;;
8596   esac
8597
8598   ld_shlibs=yes
8599   if test "$with_gnu_ld" = yes; then
8600     # If archive_cmds runs LD, not CC, wlarc should be empty
8601     wlarc='${wl}'
8602
8603     # Set some defaults for GNU ld with shared library support. These
8604     # are reset later if shared libraries are not supported. Putting them
8605     # here allows them to be overridden if necessary.
8606     runpath_var=LD_RUN_PATH
8607     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8608     export_dynamic_flag_spec='${wl}--export-dynamic'
8609     # ancient GNU ld didn't support --whole-archive et. al.
8610     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8611       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8612     else
8613       whole_archive_flag_spec=
8614     fi
8615     supports_anon_versioning=no
8616     case `$LD -v 2>&1` in
8617       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8618       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8619       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8620       *\ 2.11.*) ;; # other 2.11 versions
8621       *) supports_anon_versioning=yes ;;
8622     esac
8623
8624     # See if GNU ld supports shared libraries.
8625     case $host_os in
8626     aix[3-9]*)
8627       # On AIX/PPC, the GNU linker is very broken
8628       if test "$host_cpu" != ia64; then
8629         ld_shlibs=no
8630         cat <<_LT_EOF 1>&2
8631
8632 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8633 *** to be unable to reliably create shared libraries on AIX.
8634 *** Therefore, libtool is disabling shared libraries support.  If you
8635 *** really care for shared libraries, you may want to modify your PATH
8636 *** so that a non-GNU linker is found, and then restart.
8637
8638 _LT_EOF
8639       fi
8640       ;;
8641
8642     amigaos*)
8643       case $host_cpu in
8644       powerpc)
8645             # see comment about AmigaOS4 .so support
8646             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8647             archive_expsym_cmds=''
8648         ;;
8649       m68k)
8650             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)'
8651             hardcode_libdir_flag_spec='-L$libdir'
8652             hardcode_minus_L=yes
8653         ;;
8654       esac
8655       ;;
8656
8657     beos*)
8658       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8659         allow_undefined_flag=unsupported
8660         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8661         # support --undefined.  This deserves some investigation.  FIXME
8662         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663       else
8664         ld_shlibs=no
8665       fi
8666       ;;
8667
8668     cygwin* | mingw* | pw32* | cegcc*)
8669       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8670       # as there is no search path for DLLs.
8671       hardcode_libdir_flag_spec='-L$libdir'
8672       allow_undefined_flag=unsupported
8673       always_export_symbols=no
8674       enable_shared_with_static_runtimes=yes
8675       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8676
8677       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8678         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8679         # If the export-symbols file already is a .def file (1st line
8680         # is EXPORTS), use it as is; otherwise, prepend...
8681         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8682           cp $export_symbols $output_objdir/$soname.def;
8683         else
8684           echo EXPORTS > $output_objdir/$soname.def;
8685           cat $export_symbols >> $output_objdir/$soname.def;
8686         fi~
8687         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8688       else
8689         ld_shlibs=no
8690       fi
8691       ;;
8692
8693     interix[3-9]*)
8694       hardcode_direct=no
8695       hardcode_shlibpath_var=no
8696       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8697       export_dynamic_flag_spec='${wl}-E'
8698       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8699       # Instead, shared libraries are loaded at an image base (0x10000000 by
8700       # default) and relocated if they conflict, which is a slow very memory
8701       # consuming and fragmenting process.  To avoid this, we pick a random,
8702       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8703       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8704       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8705       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'
8706       ;;
8707
8708     gnu* | linux* | tpf* | k*bsd*-gnu)
8709       tmp_diet=no
8710       if test "$host_os" = linux-dietlibc; then
8711         case $cc_basename in
8712           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8713         esac
8714       fi
8715       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8716          && test "$tmp_diet" = no
8717       then
8718         tmp_addflag=
8719         tmp_sharedflag='-shared'
8720         case $cc_basename,$host_cpu in
8721         pgcc*)                          # Portland Group C compiler
8722           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'
8723           tmp_addflag=' $pic_flag'
8724           ;;
8725         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8726           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'
8727           tmp_addflag=' $pic_flag -Mnomain' ;;
8728         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8729           tmp_addflag=' -i_dynamic' ;;
8730         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8731           tmp_addflag=' -i_dynamic -nofor_main' ;;
8732         ifc* | ifort*)                  # Intel Fortran compiler
8733           tmp_addflag=' -nofor_main' ;;
8734         lf95*)                          # Lahey Fortran 8.1
8735           whole_archive_flag_spec=
8736           tmp_sharedflag='--shared' ;;
8737         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8738           tmp_sharedflag='-qmkshrobj'
8739           tmp_addflag= ;;
8740         esac
8741         case `$CC -V 2>&1 | sed 5q` in
8742         *Sun\ C*)                       # Sun C 5.9
8743           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'
8744           compiler_needs_object=yes
8745           tmp_sharedflag='-G' ;;
8746         *Sun\ F*)                       # Sun Fortran 8.3
8747           tmp_sharedflag='-G' ;;
8748         esac
8749         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8750
8751         if test "x$supports_anon_versioning" = xyes; then
8752           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8753             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8754             echo "local: *; };" >> $output_objdir/$libname.ver~
8755             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8756         fi
8757
8758         case $cc_basename in
8759         xlf*)
8760           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8761           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8762           hardcode_libdir_flag_spec=
8763           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8764           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8765           if test "x$supports_anon_versioning" = xyes; then
8766             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8767               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8768               echo "local: *; };" >> $output_objdir/$libname.ver~
8769               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8770           fi
8771           ;;
8772         esac
8773       else
8774         ld_shlibs=no
8775       fi
8776       ;;
8777
8778     netbsd*)
8779       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8780         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8781         wlarc=
8782       else
8783         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8785       fi
8786       ;;
8787
8788     solaris*)
8789       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8790         ld_shlibs=no
8791         cat <<_LT_EOF 1>&2
8792
8793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8794 *** create shared libraries on Solaris systems.  Therefore, libtool
8795 *** is disabling shared libraries support.  We urge you to upgrade GNU
8796 *** binutils to release 2.9.1 or newer.  Another option is to modify
8797 *** your PATH or compiler configuration so that the native linker is
8798 *** used, and then restart.
8799
8800 _LT_EOF
8801       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8802         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8804       else
8805         ld_shlibs=no
8806       fi
8807       ;;
8808
8809     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8810       case `$LD -v 2>&1` in
8811         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8812         ld_shlibs=no
8813         cat <<_LT_EOF 1>&2
8814
8815 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8816 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8817 *** is disabling shared libraries support.  We urge you to upgrade GNU
8818 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8819 *** your PATH or compiler configuration so that the native linker is
8820 *** used, and then restart.
8821
8822 _LT_EOF
8823         ;;
8824         *)
8825           # For security reasons, it is highly recommended that you always
8826           # use absolute paths for naming shared libraries, and exclude the
8827           # DT_RUNPATH tag from executables and libraries.  But doing so
8828           # requires that you compile everything twice, which is a pain.
8829           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8830             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8831             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8833           else
8834             ld_shlibs=no
8835           fi
8836         ;;
8837       esac
8838       ;;
8839
8840     sunos4*)
8841       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8842       wlarc=
8843       hardcode_direct=yes
8844       hardcode_shlibpath_var=no
8845       ;;
8846
8847     *)
8848       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8849         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8851       else
8852         ld_shlibs=no
8853       fi
8854       ;;
8855     esac
8856
8857     if test "$ld_shlibs" = no; then
8858       runpath_var=
8859       hardcode_libdir_flag_spec=
8860       export_dynamic_flag_spec=
8861       whole_archive_flag_spec=
8862     fi
8863   else
8864     # PORTME fill in a description of your system's linker (not GNU ld)
8865     case $host_os in
8866     aix3*)
8867       allow_undefined_flag=unsupported
8868       always_export_symbols=yes
8869       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'
8870       # Note: this linker hardcodes the directories in LIBPATH if there
8871       # are no directories specified by -L.
8872       hardcode_minus_L=yes
8873       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8874         # Neither direct hardcoding nor static linking is supported with a
8875         # broken collect2.
8876         hardcode_direct=unsupported
8877       fi
8878       ;;
8879
8880     aix[4-9]*)
8881       if test "$host_cpu" = ia64; then
8882         # On IA64, the linker does run time linking by default, so we don't
8883         # have to do anything special.
8884         aix_use_runtimelinking=no
8885         exp_sym_flag='-Bexport'
8886         no_entry_flag=""
8887       else
8888         # If we're using GNU nm, then we don't want the "-C" option.
8889         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8890         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8891           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'
8892         else
8893           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'
8894         fi
8895         aix_use_runtimelinking=no
8896
8897         # Test if we are trying to use run time linking or normal
8898         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8899         # need to do runtime linking.
8900         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8901           for ld_flag in $LDFLAGS; do
8902           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8903             aix_use_runtimelinking=yes
8904             break
8905           fi
8906           done
8907           ;;
8908         esac
8909
8910         exp_sym_flag='-bexport'
8911         no_entry_flag='-bnoentry'
8912       fi
8913
8914       # When large executables or shared objects are built, AIX ld can
8915       # have problems creating the table of contents.  If linking a library
8916       # or program results in "error TOC overflow" add -mminimal-toc to
8917       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8918       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8919
8920       archive_cmds=''
8921       hardcode_direct=yes
8922       hardcode_direct_absolute=yes
8923       hardcode_libdir_separator=':'
8924       link_all_deplibs=yes
8925       file_list_spec='${wl}-f,'
8926
8927       if test "$GCC" = yes; then
8928         case $host_os in aix4.[012]|aix4.[012].*)
8929         # We only want to do this on AIX 4.2 and lower, the check
8930         # below for broken collect2 doesn't work under 4.3+
8931           collect2name=`${CC} -print-prog-name=collect2`
8932           if test -f "$collect2name" &&
8933            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8934           then
8935           # We have reworked collect2
8936           :
8937           else
8938           # We have old collect2
8939           hardcode_direct=unsupported
8940           # It fails to find uninstalled libraries when the uninstalled
8941           # path is not listed in the libpath.  Setting hardcode_minus_L
8942           # to unsupported forces relinking
8943           hardcode_minus_L=yes
8944           hardcode_libdir_flag_spec='-L$libdir'
8945           hardcode_libdir_separator=
8946           fi
8947           ;;
8948         esac
8949         shared_flag='-shared'
8950         if test "$aix_use_runtimelinking" = yes; then
8951           shared_flag="$shared_flag "'${wl}-G'
8952         fi
8953       else
8954         # not using gcc
8955         if test "$host_cpu" = ia64; then
8956         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8957         # chokes on -Wl,-G. The following line is correct:
8958           shared_flag='-G'
8959         else
8960           if test "$aix_use_runtimelinking" = yes; then
8961             shared_flag='${wl}-G'
8962           else
8963             shared_flag='${wl}-bM:SRE'
8964           fi
8965         fi
8966       fi
8967
8968       export_dynamic_flag_spec='${wl}-bexpall'
8969       # It seems that -bexpall does not export symbols beginning with
8970       # underscore (_), so it is better to generate a list of symbols to export.
8971       always_export_symbols=yes
8972       if test "$aix_use_runtimelinking" = yes; then
8973         # Warning - without using the other runtime loading flags (-brtl),
8974         # -berok will link without error, but may produce a broken library.
8975         allow_undefined_flag='-berok'
8976         # Determine the default libpath from the value encoded in an
8977         # empty executable.
8978         cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984
8985 int
8986 main ()
8987 {
8988
8989   ;
8990   return 0;
8991 }
8992 _ACEOF
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995   (eval $ac_link) 2>conftest.er1
8996   ac_status=$?
8997   grep -v '^ *+' conftest.er1 >conftest.err
8998   rm -f conftest.er1
8999   cat conftest.err >&5
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); } &&
9002          { ac_try='test -z "$ac_c_werror_flag"
9003                          || test ! -s conftest.err'
9004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005   (eval $ac_try) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }; } &&
9009          { ac_try='test -s conftest$ac_exeext'
9010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011   (eval $ac_try) 2>&5
9012   ac_status=$?
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   (exit $ac_status); }; }; then
9015
9016 lt_aix_libpath_sed='
9017     /Import File Strings/,/^$/ {
9018         /^0/ {
9019             s/^0  *\(.*\)$/\1/
9020             p
9021         }
9022     }'
9023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9024 # Check for a 64-bit object if we didn't find anything.
9025 if test -z "$aix_libpath"; then
9026   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9027 fi
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032 fi
9033 rm -f conftest.err conftest.$ac_objext \
9034       conftest$ac_exeext conftest.$ac_ext
9035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9036
9037         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9038         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"
9039       else
9040         if test "$host_cpu" = ia64; then
9041           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9042           allow_undefined_flag="-z nodefs"
9043           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"
9044         else
9045          # Determine the default libpath from the value encoded in an
9046          # empty executable.
9047          cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h.  */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h.  */
9053
9054 int
9055 main ()
9056 {
9057
9058   ;
9059   return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064   (eval $ac_link) 2>conftest.er1
9065   ac_status=$?
9066   grep -v '^ *+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } &&
9071          { ac_try='test -z "$ac_c_werror_flag"
9072                          || test ! -s conftest.err'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; } &&
9078          { ac_try='test -s conftest$ac_exeext'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; }; then
9084
9085 lt_aix_libpath_sed='
9086     /Import File Strings/,/^$/ {
9087         /^0/ {
9088             s/^0  *\(.*\)$/\1/
9089             p
9090         }
9091     }'
9092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9093 # Check for a 64-bit object if we didn't find anything.
9094 if test -z "$aix_libpath"; then
9095   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9096 fi
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101 fi
9102 rm -f conftest.err conftest.$ac_objext \
9103       conftest$ac_exeext conftest.$ac_ext
9104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9105
9106          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9107           # Warning - without using the other run time loading flags,
9108           # -berok will link without error, but may produce a broken library.
9109           no_undefined_flag=' ${wl}-bernotok'
9110           allow_undefined_flag=' ${wl}-berok'
9111           # Exported symbols can be pulled into shared objects from archives
9112           whole_archive_flag_spec='$convenience'
9113           archive_cmds_need_lc=yes
9114           # This is similar to how AIX traditionally builds its shared libraries.
9115           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'
9116         fi
9117       fi
9118       ;;
9119
9120     amigaos*)
9121       case $host_cpu in
9122       powerpc)
9123             # see comment about AmigaOS4 .so support
9124             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125             archive_expsym_cmds=''
9126         ;;
9127       m68k)
9128             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)'
9129             hardcode_libdir_flag_spec='-L$libdir'
9130             hardcode_minus_L=yes
9131         ;;
9132       esac
9133       ;;
9134
9135     bsdi[45]*)
9136       export_dynamic_flag_spec=-rdynamic
9137       ;;
9138
9139     cygwin* | mingw* | pw32* | cegcc*)
9140       # When not using gcc, we currently assume that we are using
9141       # Microsoft Visual C++.
9142       # hardcode_libdir_flag_spec is actually meaningless, as there is
9143       # no search path for DLLs.
9144       hardcode_libdir_flag_spec=' '
9145       allow_undefined_flag=unsupported
9146       # Tell ltmain to make .lib files, not .a files.
9147       libext=lib
9148       # Tell ltmain to make .dll files, not .so files.
9149       shrext_cmds=".dll"
9150       # FIXME: Setting linknames here is a bad hack.
9151       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9152       # The linker will automatically build a .lib file if we build a DLL.
9153       old_archive_from_new_cmds='true'
9154       # FIXME: Should let the user specify the lib program.
9155       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9156       fix_srcfile_path='`cygpath -w "$srcfile"`'
9157       enable_shared_with_static_runtimes=yes
9158       ;;
9159
9160     darwin* | rhapsody*)
9161
9162
9163   archive_cmds_need_lc=no
9164   hardcode_direct=no
9165   hardcode_automatic=yes
9166   hardcode_shlibpath_var=unsupported
9167   whole_archive_flag_spec=''
9168   link_all_deplibs=yes
9169   allow_undefined_flag="$_lt_dar_allow_undefined"
9170   case $cc_basename in
9171      ifort*) _lt_dar_can_shared=yes ;;
9172      *) _lt_dar_can_shared=$GCC ;;
9173   esac
9174   if test "$_lt_dar_can_shared" = "yes"; then
9175     output_verbose_link_cmd=echo
9176     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9177     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9178     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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9179     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9180
9181   else
9182   ld_shlibs=no
9183   fi
9184
9185       ;;
9186
9187     dgux*)
9188       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189       hardcode_libdir_flag_spec='-L$libdir'
9190       hardcode_shlibpath_var=no
9191       ;;
9192
9193     freebsd1*)
9194       ld_shlibs=no
9195       ;;
9196
9197     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9198     # support.  Future versions do this automatically, but an explicit c++rt0.o
9199     # does not break anything, and helps significantly (at the cost of a little
9200     # extra space).
9201     freebsd2.2*)
9202       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9203       hardcode_libdir_flag_spec='-R$libdir'
9204       hardcode_direct=yes
9205       hardcode_shlibpath_var=no
9206       ;;
9207
9208     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9209     freebsd2*)
9210       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9211       hardcode_direct=yes
9212       hardcode_minus_L=yes
9213       hardcode_shlibpath_var=no
9214       ;;
9215
9216     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9217     freebsd* | dragonfly*)
9218       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9219       hardcode_libdir_flag_spec='-R$libdir'
9220       hardcode_direct=yes
9221       hardcode_shlibpath_var=no
9222       ;;
9223
9224     hpux9*)
9225       if test "$GCC" = yes; then
9226         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'
9227       else
9228         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'
9229       fi
9230       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9231       hardcode_libdir_separator=:
9232       hardcode_direct=yes
9233
9234       # hardcode_minus_L: Not really in the search PATH,
9235       # but as the default location of the library.
9236       hardcode_minus_L=yes
9237       export_dynamic_flag_spec='${wl}-E'
9238       ;;
9239
9240     hpux10*)
9241       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9242         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9243       else
9244         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9245       fi
9246       if test "$with_gnu_ld" = no; then
9247         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248         hardcode_libdir_flag_spec_ld='+b $libdir'
9249         hardcode_libdir_separator=:
9250         hardcode_direct=yes
9251         hardcode_direct_absolute=yes
9252         export_dynamic_flag_spec='${wl}-E'
9253         # hardcode_minus_L: Not really in the search PATH,
9254         # but as the default location of the library.
9255         hardcode_minus_L=yes
9256       fi
9257       ;;
9258
9259     hpux11*)
9260       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9261         case $host_cpu in
9262         hppa*64*)
9263           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264           ;;
9265         ia64*)
9266           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9267           ;;
9268         *)
9269           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9270           ;;
9271         esac
9272       else
9273         case $host_cpu in
9274         hppa*64*)
9275           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276           ;;
9277         ia64*)
9278           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9279           ;;
9280         *)
9281           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9282           ;;
9283         esac
9284       fi
9285       if test "$with_gnu_ld" = no; then
9286         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9287         hardcode_libdir_separator=:
9288
9289         case $host_cpu in
9290         hppa*64*|ia64*)
9291           hardcode_direct=no
9292           hardcode_shlibpath_var=no
9293           ;;
9294         *)
9295           hardcode_direct=yes
9296           hardcode_direct_absolute=yes
9297           export_dynamic_flag_spec='${wl}-E'
9298
9299           # hardcode_minus_L: Not really in the search PATH,
9300           # but as the default location of the library.
9301           hardcode_minus_L=yes
9302           ;;
9303         esac
9304       fi
9305       ;;
9306
9307     irix5* | irix6* | nonstopux*)
9308       if test "$GCC" = yes; then
9309         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'
9310         # Try to use the -exported_symbol ld option, if it does not
9311         # work, assume that -exports_file does not work either and
9312         # implicitly export all symbols.
9313         save_LDFLAGS="$LDFLAGS"
9314         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9315         cat >conftest.$ac_ext <<_ACEOF
9316 int foo(void) {}
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320   (eval $ac_link) 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } &&
9327          { ac_try='test -z "$ac_c_werror_flag"
9328                          || test ! -s conftest.err'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; } &&
9334          { ac_try='test -s conftest$ac_exeext'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; }; then
9340   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'
9341
9342 else
9343   echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346 fi
9347 rm -f conftest.err conftest.$ac_objext \
9348       conftest$ac_exeext conftest.$ac_ext
9349         LDFLAGS="$save_LDFLAGS"
9350       else
9351         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'
9352         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'
9353       fi
9354       archive_cmds_need_lc='no'
9355       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9356       hardcode_libdir_separator=:
9357       inherit_rpath=yes
9358       link_all_deplibs=yes
9359       ;;
9360
9361     netbsd*)
9362       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9363         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9364       else
9365         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9366       fi
9367       hardcode_libdir_flag_spec='-R$libdir'
9368       hardcode_direct=yes
9369       hardcode_shlibpath_var=no
9370       ;;
9371
9372     newsos6)
9373       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374       hardcode_direct=yes
9375       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9376       hardcode_libdir_separator=:
9377       hardcode_shlibpath_var=no
9378       ;;
9379
9380     *nto* | *qnx*)
9381       ;;
9382
9383     openbsd*)
9384       if test -f /usr/libexec/ld.so; then
9385         hardcode_direct=yes
9386         hardcode_shlibpath_var=no
9387         hardcode_direct_absolute=yes
9388         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9389           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9390           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9391           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9392           export_dynamic_flag_spec='${wl}-E'
9393         else
9394           case $host_os in
9395            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9396              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397              hardcode_libdir_flag_spec='-R$libdir'
9398              ;;
9399            *)
9400              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9401              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9402              ;;
9403           esac
9404         fi
9405       else
9406         ld_shlibs=no
9407       fi
9408       ;;
9409
9410     os2*)
9411       hardcode_libdir_flag_spec='-L$libdir'
9412       hardcode_minus_L=yes
9413       allow_undefined_flag=unsupported
9414       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'
9415       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9416       ;;
9417
9418     osf3*)
9419       if test "$GCC" = yes; then
9420         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9421         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'
9422       else
9423         allow_undefined_flag=' -expect_unresolved \*'
9424         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'
9425       fi
9426       archive_cmds_need_lc='no'
9427       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9428       hardcode_libdir_separator=:
9429       ;;
9430
9431     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9432       if test "$GCC" = yes; then
9433         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9434         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'
9435         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9436       else
9437         allow_undefined_flag=' -expect_unresolved \*'
9438         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'
9439         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~
9440         $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'
9441
9442         # Both c and cxx compiler support -rpath directly
9443         hardcode_libdir_flag_spec='-rpath $libdir'
9444       fi
9445       archive_cmds_need_lc='no'
9446       hardcode_libdir_separator=:
9447       ;;
9448
9449     solaris*)
9450       no_undefined_flag=' -z defs'
9451       if test "$GCC" = yes; then
9452         wlarc='${wl}'
9453         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9454         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9455           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9456       else
9457         case `$CC -V 2>&1` in
9458         *"Compilers 5.0"*)
9459           wlarc=''
9460           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9462           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9463           ;;
9464         *)
9465           wlarc='${wl}'
9466           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9467           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9468           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9469           ;;
9470         esac
9471       fi
9472       hardcode_libdir_flag_spec='-R$libdir'
9473       hardcode_shlibpath_var=no
9474       case $host_os in
9475       solaris2.[0-5] | solaris2.[0-5].*) ;;
9476       *)
9477         # The compiler driver will combine and reorder linker options,
9478         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9479         # but is careful enough not to reorder.
9480         # Supported since Solaris 2.6 (maybe 2.5.1?)
9481         if test "$GCC" = yes; then
9482           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9483         else
9484           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9485         fi
9486         ;;
9487       esac
9488       link_all_deplibs=yes
9489       ;;
9490
9491     sunos4*)
9492       if test "x$host_vendor" = xsequent; then
9493         # Use $CC to link under sequent, because it throws in some extra .o
9494         # files that make .init and .fini sections work.
9495         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9496       else
9497         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9498       fi
9499       hardcode_libdir_flag_spec='-L$libdir'
9500       hardcode_direct=yes
9501       hardcode_minus_L=yes
9502       hardcode_shlibpath_var=no
9503       ;;
9504
9505     sysv4)
9506       case $host_vendor in
9507         sni)
9508           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9509           hardcode_direct=yes # is this really true???
9510         ;;
9511         siemens)
9512           ## LD is ld it makes a PLAMLIB
9513           ## CC just makes a GrossModule.
9514           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9515           reload_cmds='$CC -r -o $output$reload_objs'
9516           hardcode_direct=no
9517         ;;
9518         motorola)
9519           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9521         ;;
9522       esac
9523       runpath_var='LD_RUN_PATH'
9524       hardcode_shlibpath_var=no
9525       ;;
9526
9527     sysv4.3*)
9528       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529       hardcode_shlibpath_var=no
9530       export_dynamic_flag_spec='-Bexport'
9531       ;;
9532
9533     sysv4*MP*)
9534       if test -d /usr/nec; then
9535         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536         hardcode_shlibpath_var=no
9537         runpath_var=LD_RUN_PATH
9538         hardcode_runpath_var=yes
9539         ld_shlibs=yes
9540       fi
9541       ;;
9542
9543     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9544       no_undefined_flag='${wl}-z,text'
9545       archive_cmds_need_lc=no
9546       hardcode_shlibpath_var=no
9547       runpath_var='LD_RUN_PATH'
9548
9549       if test "$GCC" = yes; then
9550         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552       else
9553         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555       fi
9556       ;;
9557
9558     sysv5* | sco3.2v5* | sco5v6*)
9559       # Note: We can NOT use -z defs as we might desire, because we do not
9560       # link with -lc, and that would cause any symbols used from libc to
9561       # always be unresolved, which means just about no library would
9562       # ever link correctly.  If we're not using GNU ld we use -z text
9563       # though, which does catch some bad symbols but isn't as heavy-handed
9564       # as -z defs.
9565       no_undefined_flag='${wl}-z,text'
9566       allow_undefined_flag='${wl}-z,nodefs'
9567       archive_cmds_need_lc=no
9568       hardcode_shlibpath_var=no
9569       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9570       hardcode_libdir_separator=':'
9571       link_all_deplibs=yes
9572       export_dynamic_flag_spec='${wl}-Bexport'
9573       runpath_var='LD_RUN_PATH'
9574
9575       if test "$GCC" = yes; then
9576         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578       else
9579         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581       fi
9582       ;;
9583
9584     uts4*)
9585       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586       hardcode_libdir_flag_spec='-L$libdir'
9587       hardcode_shlibpath_var=no
9588       ;;
9589
9590     *)
9591       ld_shlibs=no
9592       ;;
9593     esac
9594
9595     if test x$host_vendor = xsni; then
9596       case $host in
9597       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9598         export_dynamic_flag_spec='${wl}-Blargedynsym'
9599         ;;
9600       esac
9601     fi
9602   fi
9603
9604 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9605 echo "${ECHO_T}$ld_shlibs" >&6
9606 test "$ld_shlibs" = no && can_build_shared=no
9607
9608 with_gnu_ld=$with_gnu_ld
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624 #
9625 # Do we need to explicitly link libc?
9626 #
9627 case "x$archive_cmds_need_lc" in
9628 x|xyes)
9629   # Assume -lc should be added
9630   archive_cmds_need_lc=yes
9631
9632   if test "$enable_shared" = yes && test "$GCC" = yes; then
9633     case $archive_cmds in
9634     *'~'*)
9635       # FIXME: we may have to deal with multi-command sequences.
9636       ;;
9637     '$CC '*)
9638       # Test whether the compiler implicitly links with -lc since on some
9639       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9640       # to ld, don't add -lc before -lgcc.
9641       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9642 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9643 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   $RM conftest*
9647         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9648
9649         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650   (eval $ac_compile) 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } 2>conftest.err; then
9654           soname=conftest
9655           lib=conftest
9656           libobjs=conftest.$ac_objext
9657           deplibs=
9658           wl=$lt_prog_compiler_wl
9659           pic_flag=$lt_prog_compiler_pic
9660           compiler_flags=-v
9661           linker_flags=-v
9662           verstring=
9663           output_objdir=.
9664           libname=conftest
9665           lt_save_allow_undefined_flag=$allow_undefined_flag
9666           allow_undefined_flag=
9667           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9668   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }
9672           then
9673             lt_cv_archive_cmds_need_lc=no
9674           else
9675             lt_cv_archive_cmds_need_lc=yes
9676           fi
9677           allow_undefined_flag=$lt_save_allow_undefined_flag
9678         else
9679           cat conftest.err 1>&5
9680         fi
9681         $RM conftest*
9682
9683 fi
9684 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9685 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9686       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9687       ;;
9688     esac
9689   fi
9690   ;;
9691 esac
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9850 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9851
9852 if test "$GCC" = yes; then
9853   case $host_os in
9854     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9855     *) lt_awk_arg="/^libraries:/" ;;
9856   esac
9857   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9858   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9859     # if the path contains ";" then we assume it to be the separator
9860     # otherwise default to the standard path separator (i.e. ":") - it is
9861     # assumed that no part of a normal pathname contains ";" but that should
9862     # okay in the real world where ";" in dirpaths is itself problematic.
9863     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9864   else
9865     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9866   fi
9867   # Ok, now we have the path, separated by spaces, we can step through it
9868   # and add multilib dir if necessary.
9869   lt_tmp_lt_search_path_spec=
9870   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9871   for lt_sys_path in $lt_search_path_spec; do
9872     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9873       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9874     else
9875       test -d "$lt_sys_path" && \
9876         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9877     fi
9878   done
9879   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9880 BEGIN {RS=" "; FS="/|\n";} {
9881   lt_foo="";
9882   lt_count=0;
9883   for (lt_i = NF; lt_i > 0; lt_i--) {
9884     if ($lt_i != "" && $lt_i != ".") {
9885       if ($lt_i == "..") {
9886         lt_count++;
9887       } else {
9888         if (lt_count == 0) {
9889           lt_foo="/" $lt_i lt_foo;
9890         } else {
9891           lt_count--;
9892         }
9893       }
9894     }
9895   }
9896   if (lt_foo != "") { lt_freq[lt_foo]++; }
9897   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9898 }'`
9899   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9900 else
9901   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9902 fi
9903 library_names_spec=
9904 libname_spec='lib$name'
9905 soname_spec=
9906 shrext_cmds=".so"
9907 postinstall_cmds=
9908 postuninstall_cmds=
9909 finish_cmds=
9910 finish_eval=
9911 shlibpath_var=
9912 shlibpath_overrides_runpath=unknown
9913 version_type=none
9914 dynamic_linker="$host_os ld.so"
9915 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9916 need_lib_prefix=unknown
9917 hardcode_into_libs=no
9918
9919 # when you set need_version to no, make sure it does not cause -set_version
9920 # flags to be left without arguments
9921 need_version=unknown
9922
9923 case $host_os in
9924 aix3*)
9925   version_type=linux
9926   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9927   shlibpath_var=LIBPATH
9928
9929   # AIX 3 has no versioning support, so we append a major version to the name.
9930   soname_spec='${libname}${release}${shared_ext}$major'
9931   ;;
9932
9933 aix[4-9]*)
9934   version_type=linux
9935   need_lib_prefix=no
9936   need_version=no
9937   hardcode_into_libs=yes
9938   if test "$host_cpu" = ia64; then
9939     # AIX 5 supports IA64
9940     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9941     shlibpath_var=LD_LIBRARY_PATH
9942   else
9943     # With GCC up to 2.95.x, collect2 would create an import file
9944     # for dependence libraries.  The import file would start with
9945     # the line `#! .'.  This would cause the generated library to
9946     # depend on `.', always an invalid library.  This was fixed in
9947     # development snapshots of GCC prior to 3.0.
9948     case $host_os in
9949       aix4 | aix4.[01] | aix4.[01].*)
9950       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9951            echo ' yes '
9952            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9953         :
9954       else
9955         can_build_shared=no
9956       fi
9957       ;;
9958     esac
9959     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9960     # soname into executable. Probably we can add versioning support to
9961     # collect2, so additional links can be useful in future.
9962     if test "$aix_use_runtimelinking" = yes; then
9963       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9964       # instead of lib<name>.a to let people know that these are not
9965       # typical AIX shared libraries.
9966       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967     else
9968       # We preserve .a as extension for shared libraries through AIX4.2
9969       # and later when we are not doing run time linking.
9970       library_names_spec='${libname}${release}.a $libname.a'
9971       soname_spec='${libname}${release}${shared_ext}$major'
9972     fi
9973     shlibpath_var=LIBPATH
9974   fi
9975   ;;
9976
9977 amigaos*)
9978   case $host_cpu in
9979   powerpc)
9980     # Since July 2007 AmigaOS4 officially supports .so libraries.
9981     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983     ;;
9984   m68k)
9985     library_names_spec='$libname.ixlibrary $libname.a'
9986     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9987     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'
9988     ;;
9989   esac
9990   ;;
9991
9992 beos*)
9993   library_names_spec='${libname}${shared_ext}'
9994   dynamic_linker="$host_os ld.so"
9995   shlibpath_var=LIBRARY_PATH
9996   ;;
9997
9998 bsdi[45]*)
9999   version_type=linux
10000   need_version=no
10001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002   soname_spec='${libname}${release}${shared_ext}$major'
10003   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10004   shlibpath_var=LD_LIBRARY_PATH
10005   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10006   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10007   # the default ld.so.conf also contains /usr/contrib/lib and
10008   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10009   # libtool to hard-code these into programs
10010   ;;
10011
10012 cygwin* | mingw* | pw32* | cegcc*)
10013   version_type=windows
10014   shrext_cmds=".dll"
10015   need_version=no
10016   need_lib_prefix=no
10017
10018   case $GCC,$host_os in
10019   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10020     library_names_spec='$libname.dll.a'
10021     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10022     postinstall_cmds='base_file=`basename \${file}`~
10023       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10024       dldir=$destdir/`dirname \$dlpath`~
10025       test -d \$dldir || mkdir -p \$dldir~
10026       $install_prog $dir/$dlname \$dldir/$dlname~
10027       chmod a+x \$dldir/$dlname~
10028       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10029         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10030       fi'
10031     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10032       dlpath=$dir/\$dldll~
10033        $RM \$dlpath'
10034     shlibpath_overrides_runpath=yes
10035
10036     case $host_os in
10037     cygwin*)
10038       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10039       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10041       ;;
10042     mingw* | cegcc*)
10043       # MinGW DLLs use traditional 'lib' prefix
10044       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10045       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10046       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10047         # It is most probably a Windows format PATH printed by
10048         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10049         # path with ; separators, and with drive letters. We can handle the
10050         # drive letters (cygwin fileutils understands them), so leave them,
10051         # especially as we might pass files found there to a mingw objdump,
10052         # which wouldn't understand a cygwinified path. Ahh.
10053         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10054       else
10055         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10056       fi
10057       ;;
10058     pw32*)
10059       # pw32 DLLs use 'pw' prefix rather than 'lib'
10060       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10061       ;;
10062     esac
10063     ;;
10064
10065   *)
10066     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10067     ;;
10068   esac
10069   dynamic_linker='Win32 ld.exe'
10070   # FIXME: first we should search . and the directory the executable is in
10071   shlibpath_var=PATH
10072   ;;
10073
10074 darwin* | rhapsody*)
10075   dynamic_linker="$host_os dyld"
10076   version_type=darwin
10077   need_lib_prefix=no
10078   need_version=no
10079   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10080   soname_spec='${libname}${release}${major}$shared_ext'
10081   shlibpath_overrides_runpath=yes
10082   shlibpath_var=DYLD_LIBRARY_PATH
10083   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10084
10085   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10086   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10087   ;;
10088
10089 dgux*)
10090   version_type=linux
10091   need_lib_prefix=no
10092   need_version=no
10093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10094   soname_spec='${libname}${release}${shared_ext}$major'
10095   shlibpath_var=LD_LIBRARY_PATH
10096   ;;
10097
10098 freebsd1*)
10099   dynamic_linker=no
10100   ;;
10101
10102 freebsd* | dragonfly*)
10103   # DragonFly does not have aout.  When/if they implement a new
10104   # versioning mechanism, adjust this.
10105   if test -x /usr/bin/objformat; then
10106     objformat=`/usr/bin/objformat`
10107   else
10108     case $host_os in
10109     freebsd[123]*) objformat=aout ;;
10110     *) objformat=elf ;;
10111     esac
10112   fi
10113   version_type=freebsd-$objformat
10114   case $version_type in
10115     freebsd-elf*)
10116       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10117       need_version=no
10118       need_lib_prefix=no
10119       ;;
10120     freebsd-*)
10121       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10122       need_version=yes
10123       ;;
10124   esac
10125   shlibpath_var=LD_LIBRARY_PATH
10126   case $host_os in
10127   freebsd2*)
10128     shlibpath_overrides_runpath=yes
10129     ;;
10130   freebsd3.[01]* | freebsdelf3.[01]*)
10131     shlibpath_overrides_runpath=yes
10132     hardcode_into_libs=yes
10133     ;;
10134   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10135   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10136     shlibpath_overrides_runpath=no
10137     hardcode_into_libs=yes
10138     ;;
10139   *) # from 4.6 on, and DragonFly
10140     shlibpath_overrides_runpath=yes
10141     hardcode_into_libs=yes
10142     ;;
10143   esac
10144   ;;
10145
10146 gnu*)
10147   version_type=linux
10148   need_lib_prefix=no
10149   need_version=no
10150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10151   soname_spec='${libname}${release}${shared_ext}$major'
10152   shlibpath_var=LD_LIBRARY_PATH
10153   hardcode_into_libs=yes
10154   ;;
10155
10156 hpux9* | hpux10* | hpux11*)
10157   # Give a soname corresponding to the major version so that dld.sl refuses to
10158   # link against other versions.
10159   version_type=sunos
10160   need_lib_prefix=no
10161   need_version=no
10162   case $host_cpu in
10163   ia64*)
10164     shrext_cmds='.so'
10165     hardcode_into_libs=yes
10166     dynamic_linker="$host_os dld.so"
10167     shlibpath_var=LD_LIBRARY_PATH
10168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170     soname_spec='${libname}${release}${shared_ext}$major'
10171     if test "X$HPUX_IA64_MODE" = X32; then
10172       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10173     else
10174       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10175     fi
10176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10177     ;;
10178   hppa*64*)
10179     shrext_cmds='.sl'
10180     hardcode_into_libs=yes
10181     dynamic_linker="$host_os dld.sl"
10182     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10183     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185     soname_spec='${libname}${release}${shared_ext}$major'
10186     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10188     ;;
10189   *)
10190     shrext_cmds='.sl'
10191     dynamic_linker="$host_os dld.sl"
10192     shlibpath_var=SHLIB_PATH
10193     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195     soname_spec='${libname}${release}${shared_ext}$major'
10196     ;;
10197   esac
10198   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10199   postinstall_cmds='chmod 555 $lib'
10200   ;;
10201
10202 interix[3-9]*)
10203   version_type=linux
10204   need_lib_prefix=no
10205   need_version=no
10206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10207   soname_spec='${libname}${release}${shared_ext}$major'
10208   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10209   shlibpath_var=LD_LIBRARY_PATH
10210   shlibpath_overrides_runpath=no
10211   hardcode_into_libs=yes
10212   ;;
10213
10214 irix5* | irix6* | nonstopux*)
10215   case $host_os in
10216     nonstopux*) version_type=nonstopux ;;
10217     *)
10218         if test "$lt_cv_prog_gnu_ld" = yes; then
10219                 version_type=linux
10220         else
10221                 version_type=irix
10222         fi ;;
10223   esac
10224   need_lib_prefix=no
10225   need_version=no
10226   soname_spec='${libname}${release}${shared_ext}$major'
10227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10228   case $host_os in
10229   irix5* | nonstopux*)
10230     libsuff= shlibsuff=
10231     ;;
10232   *)
10233     case $LD in # libtool.m4 will add one of these switches to LD
10234     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10235       libsuff= shlibsuff= libmagic=32-bit;;
10236     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10237       libsuff=32 shlibsuff=N32 libmagic=N32;;
10238     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10239       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10240     *) libsuff= shlibsuff= libmagic=never-match;;
10241     esac
10242     ;;
10243   esac
10244   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10245   shlibpath_overrides_runpath=no
10246   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10247   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10248   hardcode_into_libs=yes
10249   ;;
10250
10251 # No shared lib support for Linux oldld, aout, or coff.
10252 linux*oldld* | linux*aout* | linux*coff*)
10253   dynamic_linker=no
10254   ;;
10255
10256 # This must be Linux ELF.
10257 linux* | k*bsd*-gnu)
10258   version_type=linux
10259   need_lib_prefix=no
10260   need_version=no
10261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262   soname_spec='${libname}${release}${shared_ext}$major'
10263   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10264   shlibpath_var=LD_LIBRARY_PATH
10265   shlibpath_overrides_runpath=no
10266
10267   # Some binutils ld are patched to set DT_RUNPATH
10268   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   lt_cv_shlibpath_overrides_runpath=no
10272     save_LDFLAGS=$LDFLAGS
10273     save_libdir=$libdir
10274     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10275          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10276     cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h.  */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h.  */
10282
10283 int
10284 main ()
10285 {
10286
10287   ;
10288   return 0;
10289 }
10290 _ACEOF
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10293   (eval $ac_link) 2>conftest.er1
10294   ac_status=$?
10295   grep -v '^ *+' conftest.er1 >conftest.err
10296   rm -f conftest.er1
10297   cat conftest.err >&5
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); } &&
10300          { ac_try='test -z "$ac_c_werror_flag"
10301                          || test ! -s conftest.err'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; } &&
10307          { ac_try='test -s conftest$ac_exeext'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; }; then
10313   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10314   lt_cv_shlibpath_overrides_runpath=yes
10315 fi
10316
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321 fi
10322 rm -f conftest.err conftest.$ac_objext \
10323       conftest$ac_exeext conftest.$ac_ext
10324     LDFLAGS=$save_LDFLAGS
10325     libdir=$save_libdir
10326
10327 fi
10328
10329   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10330
10331   # This implies no fast_install, which is unacceptable.
10332   # Some rework will be needed to allow for fast_install
10333   # before this can be enabled.
10334   hardcode_into_libs=yes
10335
10336   # Append ld.so.conf contents to the search path
10337   if test -f /etc/ld.so.conf; then
10338     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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10339     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10340   fi
10341
10342   # We used to test for /lib/ld.so.1 and disable shared libraries on
10343   # powerpc, because MkLinux only supported shared libraries with the
10344   # GNU dynamic linker.  Since this was broken with cross compilers,
10345   # most powerpc-linux boxes support dynamic linking these days and
10346   # people can always --disable-shared, the test was removed, and we
10347   # assume the GNU/Linux dynamic linker is in use.
10348   dynamic_linker='GNU/Linux ld.so'
10349   ;;
10350
10351 netbsd*)
10352   version_type=sunos
10353   need_lib_prefix=no
10354   need_version=no
10355   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10357     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10358     dynamic_linker='NetBSD (a.out) ld.so'
10359   else
10360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10361     soname_spec='${libname}${release}${shared_ext}$major'
10362     dynamic_linker='NetBSD ld.elf_so'
10363   fi
10364   shlibpath_var=LD_LIBRARY_PATH
10365   shlibpath_overrides_runpath=yes
10366   hardcode_into_libs=yes
10367   ;;
10368
10369 newsos6)
10370   version_type=linux
10371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   shlibpath_overrides_runpath=yes
10374   ;;
10375
10376 *nto* | *qnx*)
10377   version_type=qnx
10378   need_lib_prefix=no
10379   need_version=no
10380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381   soname_spec='${libname}${release}${shared_ext}$major'
10382   shlibpath_var=LD_LIBRARY_PATH
10383   shlibpath_overrides_runpath=no
10384   hardcode_into_libs=yes
10385   dynamic_linker='ldqnx.so'
10386   ;;
10387
10388 openbsd*)
10389   version_type=sunos
10390   sys_lib_dlsearch_path_spec="/usr/lib"
10391   need_lib_prefix=no
10392   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10393   case $host_os in
10394     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10395     *)                          need_version=no  ;;
10396   esac
10397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10398   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10399   shlibpath_var=LD_LIBRARY_PATH
10400   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10401     case $host_os in
10402       openbsd2.[89] | openbsd2.[89].*)
10403         shlibpath_overrides_runpath=no
10404         ;;
10405       *)
10406         shlibpath_overrides_runpath=yes
10407         ;;
10408       esac
10409   else
10410     shlibpath_overrides_runpath=yes
10411   fi
10412   ;;
10413
10414 os2*)
10415   libname_spec='$name'
10416   shrext_cmds=".dll"
10417   need_lib_prefix=no
10418   library_names_spec='$libname${shared_ext} $libname.a'
10419   dynamic_linker='OS/2 ld.exe'
10420   shlibpath_var=LIBPATH
10421   ;;
10422
10423 osf3* | osf4* | osf5*)
10424   version_type=osf
10425   need_lib_prefix=no
10426   need_version=no
10427   soname_spec='${libname}${release}${shared_ext}$major'
10428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429   shlibpath_var=LD_LIBRARY_PATH
10430   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10431   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10432   ;;
10433
10434 rdos*)
10435   dynamic_linker=no
10436   ;;
10437
10438 solaris*)
10439   version_type=linux
10440   need_lib_prefix=no
10441   need_version=no
10442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443   soname_spec='${libname}${release}${shared_ext}$major'
10444   shlibpath_var=LD_LIBRARY_PATH
10445   shlibpath_overrides_runpath=yes
10446   hardcode_into_libs=yes
10447   # ldd complains unless libraries are executable
10448   postinstall_cmds='chmod +x $lib'
10449   ;;
10450
10451 sunos4*)
10452   version_type=sunos
10453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10454   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10455   shlibpath_var=LD_LIBRARY_PATH
10456   shlibpath_overrides_runpath=yes
10457   if test "$with_gnu_ld" = yes; then
10458     need_lib_prefix=no
10459   fi
10460   need_version=yes
10461   ;;
10462
10463 sysv4 | sysv4.3*)
10464   version_type=linux
10465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466   soname_spec='${libname}${release}${shared_ext}$major'
10467   shlibpath_var=LD_LIBRARY_PATH
10468   case $host_vendor in
10469     sni)
10470       shlibpath_overrides_runpath=no
10471       need_lib_prefix=no
10472       runpath_var=LD_RUN_PATH
10473       ;;
10474     siemens)
10475       need_lib_prefix=no
10476       ;;
10477     motorola)
10478       need_lib_prefix=no
10479       need_version=no
10480       shlibpath_overrides_runpath=no
10481       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10482       ;;
10483   esac
10484   ;;
10485
10486 sysv4*MP*)
10487   if test -d /usr/nec ;then
10488     version_type=linux
10489     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10490     soname_spec='$libname${shared_ext}.$major'
10491     shlibpath_var=LD_LIBRARY_PATH
10492   fi
10493   ;;
10494
10495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10496   version_type=freebsd-elf
10497   need_lib_prefix=no
10498   need_version=no
10499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10500   soname_spec='${libname}${release}${shared_ext}$major'
10501   shlibpath_var=LD_LIBRARY_PATH
10502   shlibpath_overrides_runpath=yes
10503   hardcode_into_libs=yes
10504   if test "$with_gnu_ld" = yes; then
10505     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10506   else
10507     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10508     case $host_os in
10509       sco3.2v5*)
10510         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10511         ;;
10512     esac
10513   fi
10514   sys_lib_dlsearch_path_spec='/usr/lib'
10515   ;;
10516
10517 tpf*)
10518   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10519   version_type=linux
10520   need_lib_prefix=no
10521   need_version=no
10522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523   shlibpath_var=LD_LIBRARY_PATH
10524   shlibpath_overrides_runpath=no
10525   hardcode_into_libs=yes
10526   ;;
10527
10528 uts4*)
10529   version_type=linux
10530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531   soname_spec='${libname}${release}${shared_ext}$major'
10532   shlibpath_var=LD_LIBRARY_PATH
10533   ;;
10534
10535 *)
10536   dynamic_linker=no
10537   ;;
10538 esac
10539 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10540 echo "${ECHO_T}$dynamic_linker" >&6
10541 test "$dynamic_linker" = no && can_build_shared=no
10542
10543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10544 if test "$GCC" = yes; then
10545   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10546 fi
10547
10548 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10549   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10550 fi
10551 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10552   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10553 fi
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10643 hardcode_action=
10644 if test -n "$hardcode_libdir_flag_spec" ||
10645    test -n "$runpath_var" ||
10646    test "X$hardcode_automatic" = "Xyes" ; then
10647
10648   # We can hardcode non-existent directories.
10649   if test "$hardcode_direct" != no &&
10650      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10651      # have to relink, otherwise we might link with an installed library
10652      # when we should be linking with a yet-to-be-installed one
10653      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10654      test "$hardcode_minus_L" != no; then
10655     # Linking always hardcodes the temporary library directory.
10656     hardcode_action=relink
10657   else
10658     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10659     hardcode_action=immediate
10660   fi
10661 else
10662   # We cannot hardcode anything, or else we can only hardcode existing
10663   # directories.
10664   hardcode_action=unsupported
10665 fi
10666 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10667 echo "${ECHO_T}$hardcode_action" >&6
10668
10669 if test "$hardcode_action" = relink ||
10670    test "$inherit_rpath" = yes; then
10671   # Fast installation is not supported
10672   enable_fast_install=no
10673 elif test "$shlibpath_overrides_runpath" = yes ||
10674      test "$enable_shared" = no; then
10675   # Fast installation is not necessary
10676   enable_fast_install=needless
10677 fi
10678
10679
10680
10681
10682
10683
10684   if test "x$enable_dlopen" != xyes; then
10685   enable_dlopen=unknown
10686   enable_dlopen_self=unknown
10687   enable_dlopen_self_static=unknown
10688 else
10689   lt_cv_dlopen=no
10690   lt_cv_dlopen_libs=
10691
10692   case $host_os in
10693   beos*)
10694     lt_cv_dlopen="load_add_on"
10695     lt_cv_dlopen_libs=
10696     lt_cv_dlopen_self=yes
10697     ;;
10698
10699   mingw* | pw32* | cegcc*)
10700     lt_cv_dlopen="LoadLibrary"
10701     lt_cv_dlopen_libs=
10702     ;;
10703
10704   cygwin*)
10705     lt_cv_dlopen="dlopen"
10706     lt_cv_dlopen_libs=
10707     ;;
10708
10709   darwin*)
10710   # if libdl is installed we need to link against it
10711     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10712 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10713 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10714   echo $ECHO_N "(cached) $ECHO_C" >&6
10715 else
10716   ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-ldl  $LIBS"
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h.  */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h.  */
10724
10725 /* Override any gcc2 internal prototype to avoid an error.  */
10726 #ifdef __cplusplus
10727 extern "C"
10728 #endif
10729 /* We use char because int might match the return type of a gcc2
10730    builtin and then its argument prototype would still apply.  */
10731 char dlopen ();
10732 int
10733 main ()
10734 {
10735 dlopen ();
10736   ;
10737   return 0;
10738 }
10739 _ACEOF
10740 rm -f conftest.$ac_objext conftest$ac_exeext
10741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10742   (eval $ac_link) 2>conftest.er1
10743   ac_status=$?
10744   grep -v '^ *+' conftest.er1 >conftest.err
10745   rm -f conftest.er1
10746   cat conftest.err >&5
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); } &&
10749          { ac_try='test -z "$ac_c_werror_flag"
10750                          || test ! -s conftest.err'
10751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752   (eval $ac_try) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); }; } &&
10756          { ac_try='test -s conftest$ac_exeext'
10757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758   (eval $ac_try) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); }; }; then
10762   ac_cv_lib_dl_dlopen=yes
10763 else
10764   echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ac_cv_lib_dl_dlopen=no
10768 fi
10769 rm -f conftest.err conftest.$ac_objext \
10770       conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10772 fi
10773 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10774 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10775 if test $ac_cv_lib_dl_dlopen = yes; then
10776   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10777 else
10778
10779     lt_cv_dlopen="dyld"
10780     lt_cv_dlopen_libs=
10781     lt_cv_dlopen_self=yes
10782
10783 fi
10784
10785     ;;
10786
10787   *)
10788     echo "$as_me:$LINENO: checking for shl_load" >&5
10789 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10790 if test "${ac_cv_func_shl_load+set}" = set; then
10791   echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793   cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h.  */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h.  */
10799 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10801 #define shl_load innocuous_shl_load
10802
10803 /* System header to define __stub macros and hopefully few prototypes,
10804     which can conflict with char shl_load (); below.
10805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10806     <limits.h> exists even on freestanding compilers.  */
10807
10808 #ifdef __STDC__
10809 # include <limits.h>
10810 #else
10811 # include <assert.h>
10812 #endif
10813
10814 #undef shl_load
10815
10816 /* Override any gcc2 internal prototype to avoid an error.  */
10817 #ifdef __cplusplus
10818 extern "C"
10819 {
10820 #endif
10821 /* We use char because int might match the return type of a gcc2
10822    builtin and then its argument prototype would still apply.  */
10823 char shl_load ();
10824 /* The GNU C library defines this for functions which it implements
10825     to always fail with ENOSYS.  Some functions are actually named
10826     something starting with __ and the normal name is an alias.  */
10827 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10828 choke me
10829 #else
10830 char (*f) () = shl_load;
10831 #endif
10832 #ifdef __cplusplus
10833 }
10834 #endif
10835
10836 int
10837 main ()
10838 {
10839 return f != shl_load;
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846   (eval $ac_link) 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } &&
10853          { ac_try='test -z "$ac_c_werror_flag"
10854                          || test ! -s conftest.err'
10855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856   (eval $ac_try) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; } &&
10860          { ac_try='test -s conftest$ac_exeext'
10861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862   (eval $ac_try) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; }; then
10866   ac_cv_func_shl_load=yes
10867 else
10868   echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10870
10871 ac_cv_func_shl_load=no
10872 fi
10873 rm -f conftest.err conftest.$ac_objext \
10874       conftest$ac_exeext conftest.$ac_ext
10875 fi
10876 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10877 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10878 if test $ac_cv_func_shl_load = yes; then
10879   lt_cv_dlopen="shl_load"
10880 else
10881   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10882 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10883 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10884   echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886   ac_check_lib_save_LIBS=$LIBS
10887 LIBS="-ldld  $LIBS"
10888 cat >conftest.$ac_ext <<_ACEOF
10889 /* confdefs.h.  */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h.  */
10894
10895 /* Override any gcc2 internal prototype to avoid an error.  */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 /* We use char because int might match the return type of a gcc2
10900    builtin and then its argument prototype would still apply.  */
10901 char shl_load ();
10902 int
10903 main ()
10904 {
10905 shl_load ();
10906   ;
10907   return 0;
10908 }
10909 _ACEOF
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10912   (eval $ac_link) 2>conftest.er1
10913   ac_status=$?
10914   grep -v '^ *+' conftest.er1 >conftest.err
10915   rm -f conftest.er1
10916   cat conftest.err >&5
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); } &&
10919          { ac_try='test -z "$ac_c_werror_flag"
10920                          || test ! -s conftest.err'
10921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922   (eval $ac_try) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }; } &&
10926          { ac_try='test -s conftest$ac_exeext'
10927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928   (eval $ac_try) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }; }; then
10932   ac_cv_lib_dld_shl_load=yes
10933 else
10934   echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10936
10937 ac_cv_lib_dld_shl_load=no
10938 fi
10939 rm -f conftest.err conftest.$ac_objext \
10940       conftest$ac_exeext conftest.$ac_ext
10941 LIBS=$ac_check_lib_save_LIBS
10942 fi
10943 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10944 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10945 if test $ac_cv_lib_dld_shl_load = yes; then
10946   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10947 else
10948   echo "$as_me:$LINENO: checking for dlopen" >&5
10949 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10950 if test "${ac_cv_func_dlopen+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953   cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h.  */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h.  */
10959 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10961 #define dlopen innocuous_dlopen
10962
10963 /* System header to define __stub macros and hopefully few prototypes,
10964     which can conflict with char dlopen (); below.
10965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10966     <limits.h> exists even on freestanding compilers.  */
10967
10968 #ifdef __STDC__
10969 # include <limits.h>
10970 #else
10971 # include <assert.h>
10972 #endif
10973
10974 #undef dlopen
10975
10976 /* Override any gcc2 internal prototype to avoid an error.  */
10977 #ifdef __cplusplus
10978 extern "C"
10979 {
10980 #endif
10981 /* We use char because int might match the return type of a gcc2
10982    builtin and then its argument prototype would still apply.  */
10983 char dlopen ();
10984 /* The GNU C library defines this for functions which it implements
10985     to always fail with ENOSYS.  Some functions are actually named
10986     something starting with __ and the normal name is an alias.  */
10987 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10988 choke me
10989 #else
10990 char (*f) () = dlopen;
10991 #endif
10992 #ifdef __cplusplus
10993 }
10994 #endif
10995
10996 int
10997 main ()
10998 {
10999 return f != dlopen;
11000   ;
11001   return 0;
11002 }
11003 _ACEOF
11004 rm -f conftest.$ac_objext conftest$ac_exeext
11005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11006   (eval $ac_link) 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -z "$ac_c_werror_flag"
11014                          || test ! -s conftest.err'
11015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016   (eval $ac_try) 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; } &&
11020          { ac_try='test -s conftest$ac_exeext'
11021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022   (eval $ac_try) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; }; then
11026   ac_cv_func_dlopen=yes
11027 else
11028   echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031 ac_cv_func_dlopen=no
11032 fi
11033 rm -f conftest.err conftest.$ac_objext \
11034       conftest$ac_exeext conftest.$ac_ext
11035 fi
11036 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11037 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11038 if test $ac_cv_func_dlopen = yes; then
11039   lt_cv_dlopen="dlopen"
11040 else
11041   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11042 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11043 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   ac_check_lib_save_LIBS=$LIBS
11047 LIBS="-ldl  $LIBS"
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h.  */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h.  */
11054
11055 /* Override any gcc2 internal prototype to avoid an error.  */
11056 #ifdef __cplusplus
11057 extern "C"
11058 #endif
11059 /* We use char because int might match the return type of a gcc2
11060    builtin and then its argument prototype would still apply.  */
11061 char dlopen ();
11062 int
11063 main ()
11064 {
11065 dlopen ();
11066   ;
11067   return 0;
11068 }
11069 _ACEOF
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11072   (eval $ac_link) 2>conftest.er1
11073   ac_status=$?
11074   grep -v '^ *+' conftest.er1 >conftest.err
11075   rm -f conftest.er1
11076   cat conftest.err >&5
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); } &&
11079          { ac_try='test -z "$ac_c_werror_flag"
11080                          || test ! -s conftest.err'
11081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082   (eval $ac_try) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; } &&
11086          { ac_try='test -s conftest$ac_exeext'
11087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088   (eval $ac_try) 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); }; }; then
11092   ac_cv_lib_dl_dlopen=yes
11093 else
11094   echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097 ac_cv_lib_dl_dlopen=no
11098 fi
11099 rm -f conftest.err conftest.$ac_objext \
11100       conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11102 fi
11103 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11104 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11105 if test $ac_cv_lib_dl_dlopen = yes; then
11106   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11107 else
11108   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11109 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11110 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11111   echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113   ac_check_lib_save_LIBS=$LIBS
11114 LIBS="-lsvld  $LIBS"
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h.  */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h.  */
11121
11122 /* Override any gcc2 internal prototype to avoid an error.  */
11123 #ifdef __cplusplus
11124 extern "C"
11125 #endif
11126 /* We use char because int might match the return type of a gcc2
11127    builtin and then its argument prototype would still apply.  */
11128 char dlopen ();
11129 int
11130 main ()
11131 {
11132 dlopen ();
11133   ;
11134   return 0;
11135 }
11136 _ACEOF
11137 rm -f conftest.$ac_objext conftest$ac_exeext
11138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11139   (eval $ac_link) 2>conftest.er1
11140   ac_status=$?
11141   grep -v '^ *+' conftest.er1 >conftest.err
11142   rm -f conftest.er1
11143   cat conftest.err >&5
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); } &&
11146          { ac_try='test -z "$ac_c_werror_flag"
11147                          || test ! -s conftest.err'
11148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149   (eval $ac_try) 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; } &&
11153          { ac_try='test -s conftest$ac_exeext'
11154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155   (eval $ac_try) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); }; }; then
11159   ac_cv_lib_svld_dlopen=yes
11160 else
11161   echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164 ac_cv_lib_svld_dlopen=no
11165 fi
11166 rm -f conftest.err conftest.$ac_objext \
11167       conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11169 fi
11170 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11171 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11172 if test $ac_cv_lib_svld_dlopen = yes; then
11173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11174 else
11175   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11176 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11177 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   ac_check_lib_save_LIBS=$LIBS
11181 LIBS="-ldld  $LIBS"
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h.  */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h.  */
11188
11189 /* Override any gcc2 internal prototype to avoid an error.  */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 /* We use char because int might match the return type of a gcc2
11194    builtin and then its argument prototype would still apply.  */
11195 char dld_link ();
11196 int
11197 main ()
11198 {
11199 dld_link ();
11200   ;
11201   return 0;
11202 }
11203 _ACEOF
11204 rm -f conftest.$ac_objext conftest$ac_exeext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11206   (eval $ac_link) 2>conftest.er1
11207   ac_status=$?
11208   grep -v '^ *+' conftest.er1 >conftest.err
11209   rm -f conftest.er1
11210   cat conftest.err >&5
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } &&
11213          { ac_try='test -z "$ac_c_werror_flag"
11214                          || test ! -s conftest.err'
11215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216   (eval $ac_try) 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; } &&
11220          { ac_try='test -s conftest$ac_exeext'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; }; then
11226   ac_cv_lib_dld_dld_link=yes
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 ac_cv_lib_dld_dld_link=no
11232 fi
11233 rm -f conftest.err conftest.$ac_objext \
11234       conftest$ac_exeext conftest.$ac_ext
11235 LIBS=$ac_check_lib_save_LIBS
11236 fi
11237 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11238 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11239 if test $ac_cv_lib_dld_dld_link = yes; then
11240   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11241 fi
11242
11243
11244 fi
11245
11246
11247 fi
11248
11249
11250 fi
11251
11252
11253 fi
11254
11255
11256 fi
11257
11258     ;;
11259   esac
11260
11261   if test "x$lt_cv_dlopen" != xno; then
11262     enable_dlopen=yes
11263   else
11264     enable_dlopen=no
11265   fi
11266
11267   case $lt_cv_dlopen in
11268   dlopen)
11269     save_CPPFLAGS="$CPPFLAGS"
11270     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11271
11272     save_LDFLAGS="$LDFLAGS"
11273     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11274
11275     save_LIBS="$LIBS"
11276     LIBS="$lt_cv_dlopen_libs $LIBS"
11277
11278     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11279 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11280 if test "${lt_cv_dlopen_self+set}" = set; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283           if test "$cross_compiling" = yes; then :
11284   lt_cv_dlopen_self=cross
11285 else
11286   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11287   lt_status=$lt_dlunknown
11288   cat > conftest.$ac_ext <<_LT_EOF
11289 #line 11289 "configure"
11290 #include "confdefs.h"
11291
11292 #if HAVE_DLFCN_H
11293 #include <dlfcn.h>
11294 #endif
11295
11296 #include <stdio.h>
11297
11298 #ifdef RTLD_GLOBAL
11299 #  define LT_DLGLOBAL           RTLD_GLOBAL
11300 #else
11301 #  ifdef DL_GLOBAL
11302 #    define LT_DLGLOBAL         DL_GLOBAL
11303 #  else
11304 #    define LT_DLGLOBAL         0
11305 #  endif
11306 #endif
11307
11308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11309    find out it does not work in some platform. */
11310 #ifndef LT_DLLAZY_OR_NOW
11311 #  ifdef RTLD_LAZY
11312 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11313 #  else
11314 #    ifdef DL_LAZY
11315 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11316 #    else
11317 #      ifdef RTLD_NOW
11318 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11319 #      else
11320 #        ifdef DL_NOW
11321 #          define LT_DLLAZY_OR_NOW      DL_NOW
11322 #        else
11323 #          define LT_DLLAZY_OR_NOW      0
11324 #        endif
11325 #      endif
11326 #    endif
11327 #  endif
11328 #endif
11329
11330 void fnord() { int i=42;}
11331 int main ()
11332 {
11333   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11334   int status = $lt_dlunknown;
11335
11336   if (self)
11337     {
11338       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11339       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11340       /* dlclose (self); */
11341     }
11342   else
11343     puts (dlerror ());
11344
11345   return status;
11346 }
11347 _LT_EOF
11348   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349   (eval $ac_link) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11353     (./conftest; exit; ) >&5 2>/dev/null
11354     lt_status=$?
11355     case x$lt_status in
11356       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11357       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11358       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11359     esac
11360   else :
11361     # compilation failed
11362     lt_cv_dlopen_self=no
11363   fi
11364 fi
11365 rm -fr conftest*
11366
11367
11368 fi
11369 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11370 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11371
11372     if test "x$lt_cv_dlopen_self" = xyes; then
11373       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11374       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11375 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11376 if test "${lt_cv_dlopen_self_static+set}" = set; then
11377   echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379           if test "$cross_compiling" = yes; then :
11380   lt_cv_dlopen_self_static=cross
11381 else
11382   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11383   lt_status=$lt_dlunknown
11384   cat > conftest.$ac_ext <<_LT_EOF
11385 #line 11385 "configure"
11386 #include "confdefs.h"
11387
11388 #if HAVE_DLFCN_H
11389 #include <dlfcn.h>
11390 #endif
11391
11392 #include <stdio.h>
11393
11394 #ifdef RTLD_GLOBAL
11395 #  define LT_DLGLOBAL           RTLD_GLOBAL
11396 #else
11397 #  ifdef DL_GLOBAL
11398 #    define LT_DLGLOBAL         DL_GLOBAL
11399 #  else
11400 #    define LT_DLGLOBAL         0
11401 #  endif
11402 #endif
11403
11404 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11405    find out it does not work in some platform. */
11406 #ifndef LT_DLLAZY_OR_NOW
11407 #  ifdef RTLD_LAZY
11408 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11409 #  else
11410 #    ifdef DL_LAZY
11411 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11412 #    else
11413 #      ifdef RTLD_NOW
11414 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11415 #      else
11416 #        ifdef DL_NOW
11417 #          define LT_DLLAZY_OR_NOW      DL_NOW
11418 #        else
11419 #          define LT_DLLAZY_OR_NOW      0
11420 #        endif
11421 #      endif
11422 #    endif
11423 #  endif
11424 #endif
11425
11426 void fnord() { int i=42;}
11427 int main ()
11428 {
11429   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11430   int status = $lt_dlunknown;
11431
11432   if (self)
11433     {
11434       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11435       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11436       /* dlclose (self); */
11437     }
11438   else
11439     puts (dlerror ());
11440
11441   return status;
11442 }
11443 _LT_EOF
11444   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11445   (eval $ac_link) 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11449     (./conftest; exit; ) >&5 2>/dev/null
11450     lt_status=$?
11451     case x$lt_status in
11452       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11453       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11454       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11455     esac
11456   else :
11457     # compilation failed
11458     lt_cv_dlopen_self_static=no
11459   fi
11460 fi
11461 rm -fr conftest*
11462
11463
11464 fi
11465 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11466 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11467     fi
11468
11469     CPPFLAGS="$save_CPPFLAGS"
11470     LDFLAGS="$save_LDFLAGS"
11471     LIBS="$save_LIBS"
11472     ;;
11473   esac
11474
11475   case $lt_cv_dlopen_self in
11476   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11477   *) enable_dlopen_self=unknown ;;
11478   esac
11479
11480   case $lt_cv_dlopen_self_static in
11481   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11482   *) enable_dlopen_self_static=unknown ;;
11483   esac
11484 fi
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502 striplib=
11503 old_striplib=
11504 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11505 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11506 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11507   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11508   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11509   echo "$as_me:$LINENO: result: yes" >&5
11510 echo "${ECHO_T}yes" >&6
11511 else
11512 # FIXME - insert some real tests, host_os isn't really good enough
11513   case $host_os in
11514   darwin*)
11515     if test -n "$STRIP" ; then
11516       striplib="$STRIP -x"
11517       old_striplib="$STRIP -S"
11518       echo "$as_me:$LINENO: result: yes" >&5
11519 echo "${ECHO_T}yes" >&6
11520     else
11521       echo "$as_me:$LINENO: result: no" >&5
11522 echo "${ECHO_T}no" >&6
11523     fi
11524     ;;
11525   *)
11526     echo "$as_me:$LINENO: result: no" >&5
11527 echo "${ECHO_T}no" >&6
11528     ;;
11529   esac
11530 fi
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543   # Report which library types will actually be built
11544   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11545 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11546   echo "$as_me:$LINENO: result: $can_build_shared" >&5
11547 echo "${ECHO_T}$can_build_shared" >&6
11548
11549   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11550 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11551   test "$can_build_shared" = "no" && enable_shared=no
11552
11553   # On AIX, shared libraries and static libraries use the same namespace, and
11554   # are all built from PIC.
11555   case $host_os in
11556   aix3*)
11557     test "$enable_shared" = yes && enable_static=no
11558     if test -n "$RANLIB"; then
11559       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11560       postinstall_cmds='$RANLIB $lib'
11561     fi
11562     ;;
11563
11564   aix[4-9]*)
11565     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11566       test "$enable_shared" = yes && enable_static=no
11567     fi
11568     ;;
11569   esac
11570   echo "$as_me:$LINENO: result: $enable_shared" >&5
11571 echo "${ECHO_T}$enable_shared" >&6
11572
11573   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11574 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11575   # Make sure either enable_shared or enable_static is yes.
11576   test "$enable_shared" = yes || enable_static=yes
11577   echo "$as_me:$LINENO: result: $enable_static" >&5
11578 echo "${ECHO_T}$enable_static" >&6
11579
11580
11581
11582
11583 fi
11584 ac_ext=c
11585 ac_cpp='$CPP $CPPFLAGS'
11586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11589
11590 CC="$lt_save_CC"
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604                   ac_config_commands="$ac_config_commands libtool"
11605
11606
11607
11608
11609 # Only expand once:
11610
11611
11612
11613 # Check whether --enable-targets or --disable-targets was given.
11614 if test "${enable_targets+set}" = set; then
11615   enableval="$enable_targets"
11616   case "${enableval}" in
11617   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11618 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11619    { (exit 1); exit 1; }; }
11620             ;;
11621   no)       enable_targets= ;;
11622   *)        enable_targets=$enableval ;;
11623 esac
11624 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11625 if test "${enable_commonbfdlib+set}" = set; then
11626   enableval="$enable_commonbfdlib"
11627   case "${enableval}" in
11628   yes) commonbfdlib=true ;;
11629   no)  commonbfdlib=false ;;
11630   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11631 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11632    { (exit 1); exit 1; }; } ;;
11633 esac
11634 fi;
11635
11636 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11637
11638 # Check whether --enable-werror or --disable-werror was given.
11639 if test "${enable_werror+set}" = set; then
11640   enableval="$enable_werror"
11641   case "${enableval}" in
11642      yes | y) ERROR_ON_WARNING="yes" ;;
11643      no | n)  ERROR_ON_WARNING="no" ;;
11644      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11645 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11646    { (exit 1); exit 1; }; } ;;
11647    esac
11648 fi;
11649
11650 # Enable -Wno-format by default when using gcc on mingw
11651 case "${host}" in
11652   *-*-mingw32*)
11653     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11654       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11655     fi
11656     ;;
11657   *) ;;
11658 esac
11659
11660 # Enable -Werror by default when using gcc
11661 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11662     ERROR_ON_WARNING=yes
11663 fi
11664
11665 NO_WERROR=
11666 if test "${ERROR_ON_WARNING}" = yes ; then
11667     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11668     NO_WERROR="-Wno-error"
11669 fi
11670
11671 if test "${GCC}" = yes ; then
11672   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11673 fi
11674
11675 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11676 if test "${enable_build_warnings+set}" = set; then
11677   enableval="$enable_build_warnings"
11678   case "${enableval}" in
11679   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11680   no)   if test "${GCC}" = yes ; then
11681           WARN_CFLAGS="-w"
11682         fi;;
11683   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11684         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11685   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11686         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11687   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11688 esac
11689 fi;
11690
11691 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11692   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11693 fi
11694
11695
11696
11697
11698
11699           ac_config_headers="$ac_config_headers config.h:config.in"
11700
11701
11702 if test -z "$target" ; then
11703     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11704 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11705    { (exit 1); exit 1; }; }
11706 fi
11707 if test -z "$host" ; then
11708     { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
11709 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
11710    { (exit 1); exit 1; }; }
11711 fi
11712
11713 for ac_prog in 'bison -y' byacc
11714 do
11715   # Extract the first word of "$ac_prog", so it can be a program name with args.
11716 set dummy $ac_prog; ac_word=$2
11717 echo "$as_me:$LINENO: checking for $ac_word" >&5
11718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11719 if test "${ac_cv_prog_YACC+set}" = set; then
11720   echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722   if test -n "$YACC"; then
11723   ac_cv_prog_YACC="$YACC" # Let the user override the test.
11724 else
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11727 do
11728   IFS=$as_save_IFS
11729   test -z "$as_dir" && as_dir=.
11730   for ac_exec_ext in '' $ac_executable_extensions; do
11731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11732     ac_cv_prog_YACC="$ac_prog"
11733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11734     break 2
11735   fi
11736 done
11737 done
11738
11739 fi
11740 fi
11741 YACC=$ac_cv_prog_YACC
11742 if test -n "$YACC"; then
11743   echo "$as_me:$LINENO: result: $YACC" >&5
11744 echo "${ECHO_T}$YACC" >&6
11745 else
11746   echo "$as_me:$LINENO: result: no" >&5
11747 echo "${ECHO_T}no" >&6
11748 fi
11749
11750   test -n "$YACC" && break
11751 done
11752 test -n "$YACC" || YACC="yacc"
11753
11754 for ac_prog in flex lex
11755 do
11756   # Extract the first word of "$ac_prog", so it can be a program name with args.
11757 set dummy $ac_prog; ac_word=$2
11758 echo "$as_me:$LINENO: checking for $ac_word" >&5
11759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11760 if test "${ac_cv_prog_LEX+set}" = set; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763   if test -n "$LEX"; then
11764   ac_cv_prog_LEX="$LEX" # Let the user override the test.
11765 else
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767 for as_dir in $PATH
11768 do
11769   IFS=$as_save_IFS
11770   test -z "$as_dir" && as_dir=.
11771   for ac_exec_ext in '' $ac_executable_extensions; do
11772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11773     ac_cv_prog_LEX="$ac_prog"
11774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11775     break 2
11776   fi
11777 done
11778 done
11779
11780 fi
11781 fi
11782 LEX=$ac_cv_prog_LEX
11783 if test -n "$LEX"; then
11784   echo "$as_me:$LINENO: result: $LEX" >&5
11785 echo "${ECHO_T}$LEX" >&6
11786 else
11787   echo "$as_me:$LINENO: result: no" >&5
11788 echo "${ECHO_T}no" >&6
11789 fi
11790
11791   test -n "$LEX" && break
11792 done
11793 test -n "$LEX" || LEX=":"
11794
11795 if test -z "$LEXLIB"
11796 then
11797   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11798 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11799 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-lfl  $LIBS"
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810
11811 /* Override any gcc2 internal prototype to avoid an error.  */
11812 #ifdef __cplusplus
11813 extern "C"
11814 #endif
11815 /* We use char because int might match the return type of a gcc2
11816    builtin and then its argument prototype would still apply.  */
11817 char yywrap ();
11818 int
11819 main ()
11820 {
11821 yywrap ();
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11828   (eval $ac_link) 2>conftest.er1
11829   ac_status=$?
11830   grep -v '^ *+' conftest.er1 >conftest.err
11831   rm -f conftest.er1
11832   cat conftest.err >&5
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } &&
11835          { ac_try='test -z "$ac_c_werror_flag"
11836                          || test ! -s conftest.err'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; } &&
11842          { ac_try='test -s conftest$ac_exeext'
11843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844   (eval $ac_try) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; }; then
11848   ac_cv_lib_fl_yywrap=yes
11849 else
11850   echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 ac_cv_lib_fl_yywrap=no
11854 fi
11855 rm -f conftest.err conftest.$ac_objext \
11856       conftest$ac_exeext conftest.$ac_ext
11857 LIBS=$ac_check_lib_save_LIBS
11858 fi
11859 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11860 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11861 if test $ac_cv_lib_fl_yywrap = yes; then
11862   LEXLIB="-lfl"
11863 else
11864   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11865 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11866 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11867   echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869   ac_check_lib_save_LIBS=$LIBS
11870 LIBS="-ll  $LIBS"
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h.  */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h.  */
11877
11878 /* Override any gcc2 internal prototype to avoid an error.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 /* We use char because int might match the return type of a gcc2
11883    builtin and then its argument prototype would still apply.  */
11884 char yywrap ();
11885 int
11886 main ()
11887 {
11888 yywrap ();
11889   ;
11890   return 0;
11891 }
11892 _ACEOF
11893 rm -f conftest.$ac_objext conftest$ac_exeext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895   (eval $ac_link) 2>conftest.er1
11896   ac_status=$?
11897   grep -v '^ *+' conftest.er1 >conftest.err
11898   rm -f conftest.er1
11899   cat conftest.err >&5
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); } &&
11902          { ac_try='test -z "$ac_c_werror_flag"
11903                          || test ! -s conftest.err'
11904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905   (eval $ac_try) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; } &&
11909          { ac_try='test -s conftest$ac_exeext'
11910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911   (eval $ac_try) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; }; then
11915   ac_cv_lib_l_yywrap=yes
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 ac_cv_lib_l_yywrap=no
11921 fi
11922 rm -f conftest.err conftest.$ac_objext \
11923       conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11925 fi
11926 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11927 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11928 if test $ac_cv_lib_l_yywrap = yes; then
11929   LEXLIB="-ll"
11930 fi
11931
11932 fi
11933
11934 fi
11935
11936 if test "x$LEX" != "x:"; then
11937   echo "$as_me:$LINENO: checking lex output file root" >&5
11938 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11939 if test "${ac_cv_prog_lex_root+set}" = set; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   # The minimal lex program is just a single line: %%.  But some broken lexes
11943 # (Solaris, I think it was) want two %% lines, so accommodate them.
11944 cat >conftest.l <<_ACEOF
11945 %%
11946 %%
11947 _ACEOF
11948 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11949   (eval $LEX conftest.l) 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }
11953 if test -f lex.yy.c; then
11954   ac_cv_prog_lex_root=lex.yy
11955 elif test -f lexyy.c; then
11956   ac_cv_prog_lex_root=lexyy
11957 else
11958   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11959 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11960    { (exit 1); exit 1; }; }
11961 fi
11962 fi
11963 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11964 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11965 rm -f conftest.l
11966 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11967
11968 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11969 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11970 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11971   echo $ECHO_N "(cached) $ECHO_C" >&6
11972 else
11973   # POSIX says lex can declare yytext either as a pointer or an array; the
11974 # default is implementation-dependent. Figure out which it is, since
11975 # not all implementations provide the %pointer and %array declarations.
11976 ac_cv_prog_lex_yytext_pointer=no
11977 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11978 ac_save_LIBS=$LIBS
11979 LIBS="$LIBS $LEXLIB"
11980 cat >conftest.$ac_ext <<_ACEOF
11981 `cat $LEX_OUTPUT_ROOT.c`
11982 _ACEOF
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11985   (eval $ac_link) 2>conftest.er1
11986   ac_status=$?
11987   grep -v '^ *+' conftest.er1 >conftest.err
11988   rm -f conftest.er1
11989   cat conftest.err >&5
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } &&
11992          { ac_try='test -z "$ac_c_werror_flag"
11993                          || test ! -s conftest.err'
11994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995   (eval $ac_try) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); }; } &&
11999          { ac_try='test -s conftest$ac_exeext'
12000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001   (eval $ac_try) 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); }; }; then
12005   ac_cv_prog_lex_yytext_pointer=yes
12006 else
12007   echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12009
12010 fi
12011 rm -f conftest.err conftest.$ac_objext \
12012       conftest$ac_exeext conftest.$ac_ext
12013 LIBS=$ac_save_LIBS
12014 rm -f "${LEX_OUTPUT_ROOT}.c"
12015
12016 fi
12017 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12018 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12019 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12020
12021 cat >>confdefs.h <<\_ACEOF
12022 #define YYTEXT_POINTER 1
12023 _ACEOF
12024
12025 fi
12026
12027 fi
12028 if test "$LEX" = :; then
12029   LEX=${am_missing_run}flex
12030 fi
12031
12032 ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
12033 # If we haven't got the data from the intl directory,
12034 # assume NLS is disabled.
12035 USE_NLS=no
12036 LIBINTL=
12037 LIBINTL_DEP=
12038 INCINTL=
12039 XGETTEXT=
12040 GMSGFMT=
12041 POSUB=
12042
12043 if test -f  ../intl/config.intl; then
12044   .  ../intl/config.intl
12045 fi
12046 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12047 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12048 if test x"$USE_NLS" != xyes; then
12049   echo "$as_me:$LINENO: result: no" >&5
12050 echo "${ECHO_T}no" >&6
12051 else
12052   echo "$as_me:$LINENO: result: yes" >&5
12053 echo "${ECHO_T}yes" >&6
12054
12055 cat >>confdefs.h <<\_ACEOF
12056 #define ENABLE_NLS 1
12057 _ACEOF
12058
12059
12060   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12061 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12062   # Look for .po and .gmo files in the source directory.
12063   CATALOGS=
12064   XLINGUAS=
12065   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12066     # If there aren't any .gmo files the shell will give us the
12067     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12068     # weeded out.
12069     case "$cat" in *\**)
12070       continue;;
12071     esac
12072     # The quadruple backslash is collapsed to a double backslash
12073     # by the backticks, then collapsed again by the double quotes,
12074     # leaving us with one backslash in the sed expression (right
12075     # before the dot that mustn't act as a wildcard).
12076     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12077     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12078     # The user is allowed to set LINGUAS to a list of languages to
12079     # install catalogs for.  If it's empty that means "all of them."
12080     if test "x$LINGUAS" = x; then
12081       CATALOGS="$CATALOGS $cat"
12082       XLINGUAS="$XLINGUAS $lang"
12083     else
12084       case "$LINGUAS" in *$lang*)
12085         CATALOGS="$CATALOGS $cat"
12086         XLINGUAS="$XLINGUAS $lang"
12087         ;;
12088       esac
12089     fi
12090   done
12091   LINGUAS="$XLINGUAS"
12092   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12093 echo "${ECHO_T}$LINGUAS" >&6
12094
12095
12096     DATADIRNAME=share
12097
12098   INSTOBJEXT=.mo
12099
12100   GENCAT=gencat
12101
12102   CATOBJEXT=.gmo
12103
12104 fi
12105
12106         MKINSTALLDIRS=
12107   if test -n "$ac_aux_dir"; then
12108     case "$ac_aux_dir" in
12109       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12110       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12111     esac
12112   fi
12113   if test -z "$MKINSTALLDIRS"; then
12114     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12115   fi
12116
12117
12118
12119   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12120 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12121     # Check whether --enable-nls or --disable-nls was given.
12122 if test "${enable_nls+set}" = set; then
12123   enableval="$enable_nls"
12124   USE_NLS=$enableval
12125 else
12126   USE_NLS=yes
12127 fi;
12128   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12129 echo "${ECHO_T}$USE_NLS" >&6
12130
12131
12132
12133
12134
12135
12136 # Prepare PATH_SEPARATOR.
12137 # The user is always right.
12138 if test "${PATH_SEPARATOR+set}" != set; then
12139   echo "#! /bin/sh" >conf$$.sh
12140   echo  "exit 0"   >>conf$$.sh
12141   chmod +x conf$$.sh
12142   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12143     PATH_SEPARATOR=';'
12144   else
12145     PATH_SEPARATOR=:
12146   fi
12147   rm -f conf$$.sh
12148 fi
12149
12150 # Find out how to test for executable files. Don't use a zero-byte file,
12151 # as systems may use methods other than mode bits to determine executability.
12152 cat >conf$$.file <<_ASEOF
12153 #! /bin/sh
12154 exit 0
12155 _ASEOF
12156 chmod +x conf$$.file
12157 if test -x conf$$.file >/dev/null 2>&1; then
12158   ac_executable_p="test -x"
12159 else
12160   ac_executable_p="test -f"
12161 fi
12162 rm -f conf$$.file
12163
12164 # Extract the first word of "msgfmt", so it can be a program name with args.
12165 set dummy msgfmt; ac_word=$2
12166 echo "$as_me:$LINENO: checking for $ac_word" >&5
12167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12168 if test "${ac_cv_path_MSGFMT+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   case "$MSGFMT" in
12172   [\\/]* | ?:[\\/]*)
12173     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12174     ;;
12175   *)
12176     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12177     for ac_dir in $PATH; do
12178       IFS="$ac_save_IFS"
12179       test -z "$ac_dir" && ac_dir=.
12180       for ac_exec_ext in '' $ac_executable_extensions; do
12181         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12182           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12183      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12184             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12185             break 2
12186           fi
12187         fi
12188       done
12189     done
12190     IFS="$ac_save_IFS"
12191   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12192     ;;
12193 esac
12194 fi
12195 MSGFMT="$ac_cv_path_MSGFMT"
12196 if test "$MSGFMT" != ":"; then
12197   echo "$as_me:$LINENO: result: $MSGFMT" >&5
12198 echo "${ECHO_T}$MSGFMT" >&6
12199 else
12200   echo "$as_me:$LINENO: result: no" >&5
12201 echo "${ECHO_T}no" >&6
12202 fi
12203
12204   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12205 set dummy gmsgfmt; ac_word=$2
12206 echo "$as_me:$LINENO: checking for $ac_word" >&5
12207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12208 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   case $GMSGFMT in
12212   [\\/]* | ?:[\\/]*)
12213   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12214   ;;
12215   *)
12216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217 for as_dir in $PATH
12218 do
12219   IFS=$as_save_IFS
12220   test -z "$as_dir" && as_dir=.
12221   for ac_exec_ext in '' $ac_executable_extensions; do
12222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12223     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12225     break 2
12226   fi
12227 done
12228 done
12229
12230   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12231   ;;
12232 esac
12233 fi
12234 GMSGFMT=$ac_cv_path_GMSGFMT
12235
12236 if test -n "$GMSGFMT"; then
12237   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12238 echo "${ECHO_T}$GMSGFMT" >&6
12239 else
12240   echo "$as_me:$LINENO: result: no" >&5
12241 echo "${ECHO_T}no" >&6
12242 fi
12243
12244
12245
12246 # Prepare PATH_SEPARATOR.
12247 # The user is always right.
12248 if test "${PATH_SEPARATOR+set}" != set; then
12249   echo "#! /bin/sh" >conf$$.sh
12250   echo  "exit 0"   >>conf$$.sh
12251   chmod +x conf$$.sh
12252   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12253     PATH_SEPARATOR=';'
12254   else
12255     PATH_SEPARATOR=:
12256   fi
12257   rm -f conf$$.sh
12258 fi
12259
12260 # Find out how to test for executable files. Don't use a zero-byte file,
12261 # as systems may use methods other than mode bits to determine executability.
12262 cat >conf$$.file <<_ASEOF
12263 #! /bin/sh
12264 exit 0
12265 _ASEOF
12266 chmod +x conf$$.file
12267 if test -x conf$$.file >/dev/null 2>&1; then
12268   ac_executable_p="test -x"
12269 else
12270   ac_executable_p="test -f"
12271 fi
12272 rm -f conf$$.file
12273
12274 # Extract the first word of "xgettext", so it can be a program name with args.
12275 set dummy xgettext; ac_word=$2
12276 echo "$as_me:$LINENO: checking for $ac_word" >&5
12277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12278 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12279   echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281   case "$XGETTEXT" in
12282   [\\/]* | ?:[\\/]*)
12283     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12284     ;;
12285   *)
12286     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12287     for ac_dir in $PATH; do
12288       IFS="$ac_save_IFS"
12289       test -z "$ac_dir" && ac_dir=.
12290       for ac_exec_ext in '' $ac_executable_extensions; do
12291         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12292           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12293      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12294             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12295             break 2
12296           fi
12297         fi
12298       done
12299     done
12300     IFS="$ac_save_IFS"
12301   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12302     ;;
12303 esac
12304 fi
12305 XGETTEXT="$ac_cv_path_XGETTEXT"
12306 if test "$XGETTEXT" != ":"; then
12307   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12308 echo "${ECHO_T}$XGETTEXT" >&6
12309 else
12310   echo "$as_me:$LINENO: result: no" >&5
12311 echo "${ECHO_T}no" >&6
12312 fi
12313
12314     rm -f messages.po
12315
12316
12317 # Prepare PATH_SEPARATOR.
12318 # The user is always right.
12319 if test "${PATH_SEPARATOR+set}" != set; then
12320   echo "#! /bin/sh" >conf$$.sh
12321   echo  "exit 0"   >>conf$$.sh
12322   chmod +x conf$$.sh
12323   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12324     PATH_SEPARATOR=';'
12325   else
12326     PATH_SEPARATOR=:
12327   fi
12328   rm -f conf$$.sh
12329 fi
12330
12331 # Find out how to test for executable files. Don't use a zero-byte file,
12332 # as systems may use methods other than mode bits to determine executability.
12333 cat >conf$$.file <<_ASEOF
12334 #! /bin/sh
12335 exit 0
12336 _ASEOF
12337 chmod +x conf$$.file
12338 if test -x conf$$.file >/dev/null 2>&1; then
12339   ac_executable_p="test -x"
12340 else
12341   ac_executable_p="test -f"
12342 fi
12343 rm -f conf$$.file
12344
12345 # Extract the first word of "msgmerge", so it can be a program name with args.
12346 set dummy msgmerge; ac_word=$2
12347 echo "$as_me:$LINENO: checking for $ac_word" >&5
12348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12349 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12350   echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352   case "$MSGMERGE" in
12353   [\\/]* | ?:[\\/]*)
12354     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12355     ;;
12356   *)
12357     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12358     for ac_dir in $PATH; do
12359       IFS="$ac_save_IFS"
12360       test -z "$ac_dir" && ac_dir=.
12361       for ac_exec_ext in '' $ac_executable_extensions; do
12362         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12363           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12364             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12365             break 2
12366           fi
12367         fi
12368       done
12369     done
12370     IFS="$ac_save_IFS"
12371   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12372     ;;
12373 esac
12374 fi
12375 MSGMERGE="$ac_cv_path_MSGMERGE"
12376 if test "$MSGMERGE" != ":"; then
12377   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12378 echo "${ECHO_T}$MSGMERGE" >&6
12379 else
12380   echo "$as_me:$LINENO: result: no" >&5
12381 echo "${ECHO_T}no" >&6
12382 fi
12383
12384
12385       if test "$GMSGFMT" != ":"; then
12386             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12387        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12388       : ;
12389     else
12390       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12391       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12392 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12393       GMSGFMT=":"
12394     fi
12395   fi
12396
12397       if test "$XGETTEXT" != ":"; then
12398             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12399        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12400       : ;
12401     else
12402       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12403 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12404       XGETTEXT=":"
12405     fi
12406         rm -f messages.po
12407   fi
12408
12409             ac_config_commands="$ac_config_commands default-1"
12410
12411
12412
12413 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12414 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12415     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12416 if test "${enable_maintainer_mode+set}" = set; then
12417   enableval="$enable_maintainer_mode"
12418   USE_MAINTAINER_MODE=$enableval
12419 else
12420   USE_MAINTAINER_MODE=no
12421 fi;
12422   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12423 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12424
12425
12426 if test $USE_MAINTAINER_MODE = yes; then
12427   MAINTAINER_MODE_TRUE=
12428   MAINTAINER_MODE_FALSE='#'
12429 else
12430   MAINTAINER_MODE_TRUE='#'
12431   MAINTAINER_MODE_FALSE=
12432 fi
12433
12434   MAINT=$MAINTAINER_MODE_TRUE
12435
12436
12437
12438
12439 if false; then
12440   GENINSRC_NEVER_TRUE=
12441   GENINSRC_NEVER_FALSE='#'
12442 else
12443   GENINSRC_NEVER_TRUE='#'
12444   GENINSRC_NEVER_FALSE=
12445 fi
12446
12447
12448 if test -n "$EXEEXT"; then
12449
12450 cat >>confdefs.h <<\_ACEOF
12451 #define HAVE_EXECUTABLE_SUFFIX 1
12452 _ACEOF
12453
12454 fi
12455
12456 cat >>confdefs.h <<_ACEOF
12457 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12458 _ACEOF
12459
12460
12461 # host-specific stuff:
12462
12463 HDEFINES=
12464
12465 . ${srcdir}/../bfd/configure.host
12466
12467
12468 AR=${AR-ar}
12469
12470 if test -n "$ac_tool_prefix"; then
12471   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12472 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12473 echo "$as_me:$LINENO: checking for $ac_word" >&5
12474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12475 if test "${ac_cv_prog_RANLIB+set}" = set; then
12476   echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478   if test -n "$RANLIB"; then
12479   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12480 else
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12483 do
12484   IFS=$as_save_IFS
12485   test -z "$as_dir" && as_dir=.
12486   for ac_exec_ext in '' $ac_executable_extensions; do
12487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12490     break 2
12491   fi
12492 done
12493 done
12494
12495 fi
12496 fi
12497 RANLIB=$ac_cv_prog_RANLIB
12498 if test -n "$RANLIB"; then
12499   echo "$as_me:$LINENO: result: $RANLIB" >&5
12500 echo "${ECHO_T}$RANLIB" >&6
12501 else
12502   echo "$as_me:$LINENO: result: no" >&5
12503 echo "${ECHO_T}no" >&6
12504 fi
12505
12506 fi
12507 if test -z "$ac_cv_prog_RANLIB"; then
12508   ac_ct_RANLIB=$RANLIB
12509   # Extract the first word of "ranlib", so it can be a program name with args.
12510 set dummy ranlib; ac_word=$2
12511 echo "$as_me:$LINENO: checking for $ac_word" >&5
12512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12513 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12514   echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516   if test -n "$ac_ct_RANLIB"; then
12517   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12518 else
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12521 do
12522   IFS=$as_save_IFS
12523   test -z "$as_dir" && as_dir=.
12524   for ac_exec_ext in '' $ac_executable_extensions; do
12525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12526     ac_cv_prog_ac_ct_RANLIB="ranlib"
12527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12528     break 2
12529   fi
12530 done
12531 done
12532
12533   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12534 fi
12535 fi
12536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12537 if test -n "$ac_ct_RANLIB"; then
12538   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12539 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12540 else
12541   echo "$as_me:$LINENO: result: no" >&5
12542 echo "${ECHO_T}no" >&6
12543 fi
12544
12545   RANLIB=$ac_ct_RANLIB
12546 else
12547   RANLIB="$ac_cv_prog_RANLIB"
12548 fi
12549
12550 # Find a good install program.  We prefer a C program (faster),
12551 # so one script is as good as another.  But avoid the broken or
12552 # incompatible versions:
12553 # SysV /etc/install, /usr/sbin/install
12554 # SunOS /usr/etc/install
12555 # IRIX /sbin/install
12556 # AIX /bin/install
12557 # AmigaOS /C/install, which installs bootblocks on floppy discs
12558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12561 # OS/2's system install, which has a completely different semantic
12562 # ./install, which can be erroneously created by make from ./install.sh.
12563 # Reject install programs that cannot install multiple files.
12564 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12565 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12566 if test -z "$INSTALL"; then
12567 if test "${ac_cv_path_install+set}" = set; then
12568   echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12572 do
12573   IFS=$as_save_IFS
12574   test -z "$as_dir" && as_dir=.
12575   # Account for people who put trailing slashes in PATH elements.
12576 case $as_dir/ in
12577   ./ | .// | /cC/* | \
12578   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12579   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12580   /usr/ucb/* ) ;;
12581   *)
12582     # OSF1 and SCO ODT 3.0 have their own names for install.
12583     # Don't use installbsd from OSF since it installs stuff as root
12584     # by default.
12585     for ac_prog in ginstall scoinst install; do
12586       for ac_exec_ext in '' $ac_executable_extensions; do
12587         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12588           if test $ac_prog = install &&
12589             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12590             # AIX install.  It has an incompatible calling convention.
12591             :
12592           elif test $ac_prog = install &&
12593             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12594             # program-specific install script used by HP pwplus--don't use.
12595             :
12596           else
12597             rm -rf conftest.one conftest.two conftest.dir
12598             echo one > conftest.one
12599             echo two > conftest.two
12600             mkdir conftest.dir
12601             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12602               test -s conftest.one && test -s conftest.two &&
12603               test -s conftest.dir/conftest.one &&
12604               test -s conftest.dir/conftest.two
12605             then
12606               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12607               break 3
12608             fi
12609           fi
12610         fi
12611       done
12612     done
12613     ;;
12614 esac
12615 done
12616
12617 rm -rf conftest.one conftest.two conftest.dir
12618
12619 fi
12620   if test "${ac_cv_path_install+set}" = set; then
12621     INSTALL=$ac_cv_path_install
12622   else
12623     # As a last resort, use the slow shell script.  Don't cache a
12624     # value for INSTALL within a source directory, because that will
12625     # break other packages using the cache if that directory is
12626     # removed, or if the value is a relative name.
12627     INSTALL=$ac_install_sh
12628   fi
12629 fi
12630 echo "$as_me:$LINENO: result: $INSTALL" >&5
12631 echo "${ECHO_T}$INSTALL" >&6
12632
12633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12634 # It thinks the first close brace ends the variable substitution.
12635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12636
12637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12638
12639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12640
12641
12642 # Put a plausible default for CC_FOR_BUILD in Makefile.
12643 if test -z "$CC_FOR_BUILD"; then
12644   if test "x$cross_compiling" = "xno"; then
12645     CC_FOR_BUILD='$(CC)'
12646   else
12647     CC_FOR_BUILD=gcc
12648   fi
12649 fi
12650
12651 # Also set EXEEXT_FOR_BUILD.
12652 if test "x$cross_compiling" = "xno"; then
12653   EXEEXT_FOR_BUILD='$(EXEEXT)'
12654 else
12655   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12656 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12657 if test "${bfd_cv_build_exeext+set}" = set; then
12658   echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660   rm -f conftest*
12661      echo 'int main () { return 0; }' > conftest.c
12662      bfd_cv_build_exeext=
12663      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12664      for file in conftest.*; do
12665        case $file in
12666        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12667        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12668        esac
12669      done
12670      rm -f conftest*
12671      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12672 fi
12673 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12674 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12675   EXEEXT_FOR_BUILD=""
12676   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12677 fi
12678
12679
12680 DEMANGLER_NAME=c++filt
12681 case "${host}" in
12682   *-*-go32* | *-*-msdos*)
12683     DEMANGLER_NAME=cxxfilt
12684 esac
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
12696 do
12697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12699   echo "$as_me:$LINENO: checking for $ac_header" >&5
12700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 fi
12704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12706 else
12707   # Is the header compilable?
12708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h.  */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h.  */
12716 $ac_includes_default
12717 #include <$ac_header>
12718 _ACEOF
12719 rm -f conftest.$ac_objext
12720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12721   (eval $ac_compile) 2>conftest.er1
12722   ac_status=$?
12723   grep -v '^ *+' conftest.er1 >conftest.err
12724   rm -f conftest.er1
12725   cat conftest.err >&5
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); } &&
12728          { ac_try='test -z "$ac_c_werror_flag"
12729                          || test ! -s conftest.err'
12730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731   (eval $ac_try) 2>&5
12732   ac_status=$?
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); }; } &&
12735          { ac_try='test -s conftest.$ac_objext'
12736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737   (eval $ac_try) 2>&5
12738   ac_status=$?
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); }; }; then
12741   ac_header_compiler=yes
12742 else
12743   echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746 ac_header_compiler=no
12747 fi
12748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12750 echo "${ECHO_T}$ac_header_compiler" >&6
12751
12752 # Is the header present?
12753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h.  */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h.  */
12761 #include <$ac_header>
12762 _ACEOF
12763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12765   ac_status=$?
12766   grep -v '^ *+' conftest.er1 >conftest.err
12767   rm -f conftest.er1
12768   cat conftest.err >&5
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); } >/dev/null; then
12771   if test -s conftest.err; then
12772     ac_cpp_err=$ac_c_preproc_warn_flag
12773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12774   else
12775     ac_cpp_err=
12776   fi
12777 else
12778   ac_cpp_err=yes
12779 fi
12780 if test -z "$ac_cpp_err"; then
12781   ac_header_preproc=yes
12782 else
12783   echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12785
12786   ac_header_preproc=no
12787 fi
12788 rm -f conftest.err conftest.$ac_ext
12789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12790 echo "${ECHO_T}$ac_header_preproc" >&6
12791
12792 # So?  What about this header?
12793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12794   yes:no: )
12795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12799     ac_header_preproc=yes
12800     ;;
12801   no:yes:* )
12802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12804     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12806     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12808     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12812     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12814     (
12815       cat <<\_ASBOX
12816 ## ------------------------------------------ ##
12817 ## Report this to the AC_PACKAGE_NAME lists.  ##
12818 ## ------------------------------------------ ##
12819 _ASBOX
12820     ) |
12821       sed "s/^/$as_me: WARNING:     /" >&2
12822     ;;
12823 esac
12824 echo "$as_me:$LINENO: checking for $ac_header" >&5
12825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12827   echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829   eval "$as_ac_Header=\$ac_header_preproc"
12830 fi
12831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12833
12834 fi
12835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12836   cat >>confdefs.h <<_ACEOF
12837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12838 _ACEOF
12839
12840 fi
12841
12842 done
12843
12844 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12845 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12846 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12847   echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849   cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h.  */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h.  */
12855 #include <sys/types.h>
12856 #include <sys/wait.h>
12857 #ifndef WEXITSTATUS
12858 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12859 #endif
12860 #ifndef WIFEXITED
12861 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12862 #endif
12863
12864 int
12865 main ()
12866 {
12867   int s;
12868   wait (&s);
12869   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12870   ;
12871   return 0;
12872 }
12873 _ACEOF
12874 rm -f conftest.$ac_objext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12876   (eval $ac_compile) 2>conftest.er1
12877   ac_status=$?
12878   grep -v '^ *+' conftest.er1 >conftest.err
12879   rm -f conftest.er1
12880   cat conftest.err >&5
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); } &&
12883          { ac_try='test -z "$ac_c_werror_flag"
12884                          || test ! -s conftest.err'
12885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886   (eval $ac_try) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; } &&
12890          { ac_try='test -s conftest.$ac_objext'
12891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892   (eval $ac_try) 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; }; then
12896   ac_cv_header_sys_wait_h=yes
12897 else
12898   echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 ac_cv_header_sys_wait_h=no
12902 fi
12903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904 fi
12905 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12906 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12907 if test $ac_cv_header_sys_wait_h = yes; then
12908
12909 cat >>confdefs.h <<\_ACEOF
12910 #define HAVE_SYS_WAIT_H 1
12911 _ACEOF
12912
12913 fi
12914
12915 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12916 # for constant arguments.  Useless!
12917 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12918 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12919 if test "${ac_cv_working_alloca_h+set}" = set; then
12920   echo $ECHO_N "(cached) $ECHO_C" >&6
12921 else
12922   cat >conftest.$ac_ext <<_ACEOF
12923 /* confdefs.h.  */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h.  */
12928 #include <alloca.h>
12929 int
12930 main ()
12931 {
12932 char *p = (char *) alloca (2 * sizeof (int));
12933   ;
12934   return 0;
12935 }
12936 _ACEOF
12937 rm -f conftest.$ac_objext conftest$ac_exeext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12939   (eval $ac_link) 2>conftest.er1
12940   ac_status=$?
12941   grep -v '^ *+' conftest.er1 >conftest.err
12942   rm -f conftest.er1
12943   cat conftest.err >&5
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); } &&
12946          { ac_try='test -z "$ac_c_werror_flag"
12947                          || test ! -s conftest.err'
12948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949   (eval $ac_try) 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; } &&
12953          { ac_try='test -s conftest$ac_exeext'
12954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955   (eval $ac_try) 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }; }; then
12959   ac_cv_working_alloca_h=yes
12960 else
12961   echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964 ac_cv_working_alloca_h=no
12965 fi
12966 rm -f conftest.err conftest.$ac_objext \
12967       conftest$ac_exeext conftest.$ac_ext
12968 fi
12969 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12970 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12971 if test $ac_cv_working_alloca_h = yes; then
12972
12973 cat >>confdefs.h <<\_ACEOF
12974 #define HAVE_ALLOCA_H 1
12975 _ACEOF
12976
12977 fi
12978
12979 echo "$as_me:$LINENO: checking for alloca" >&5
12980 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12981 if test "${ac_cv_func_alloca_works+set}" = set; then
12982   echo $ECHO_N "(cached) $ECHO_C" >&6
12983 else
12984   cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h.  */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h.  */
12990 #ifdef __GNUC__
12991 # define alloca __builtin_alloca
12992 #else
12993 # ifdef _MSC_VER
12994 #  include <malloc.h>
12995 #  define alloca _alloca
12996 # else
12997 #  if HAVE_ALLOCA_H
12998 #   include <alloca.h>
12999 #  else
13000 #   ifdef _AIX
13001  #pragma alloca
13002 #   else
13003 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13004 char *alloca ();
13005 #    endif
13006 #   endif
13007 #  endif
13008 # endif
13009 #endif
13010
13011 int
13012 main ()
13013 {
13014 char *p = (char *) alloca (1);
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13021   (eval $ac_link) 2>conftest.er1
13022   ac_status=$?
13023   grep -v '^ *+' conftest.er1 >conftest.err
13024   rm -f conftest.er1
13025   cat conftest.err >&5
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); } &&
13028          { ac_try='test -z "$ac_c_werror_flag"
13029                          || test ! -s conftest.err'
13030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031   (eval $ac_try) 2>&5
13032   ac_status=$?
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); }; } &&
13035          { ac_try='test -s conftest$ac_exeext'
13036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037   (eval $ac_try) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; }; then
13041   ac_cv_func_alloca_works=yes
13042 else
13043   echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 ac_cv_func_alloca_works=no
13047 fi
13048 rm -f conftest.err conftest.$ac_objext \
13049       conftest$ac_exeext conftest.$ac_ext
13050 fi
13051 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13052 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13053
13054 if test $ac_cv_func_alloca_works = yes; then
13055
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_ALLOCA 1
13058 _ACEOF
13059
13060 else
13061   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13062 # that cause trouble.  Some versions do not even contain alloca or
13063 # contain a buggy version.  If you still want to use their alloca,
13064 # use ar to extract alloca.o from them instead of compiling alloca.c.
13065
13066 ALLOCA=alloca.$ac_objext
13067
13068 cat >>confdefs.h <<\_ACEOF
13069 #define C_ALLOCA 1
13070 _ACEOF
13071
13072
13073 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13074 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13075 if test "${ac_cv_os_cray+set}" = set; then
13076   echo $ECHO_N "(cached) $ECHO_C" >&6
13077 else
13078   cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084 #if defined(CRAY) && ! defined(CRAY2)
13085 webecray
13086 #else
13087 wenotbecray
13088 #endif
13089
13090 _ACEOF
13091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13092   $EGREP "webecray" >/dev/null 2>&1; then
13093   ac_cv_os_cray=yes
13094 else
13095   ac_cv_os_cray=no
13096 fi
13097 rm -f conftest*
13098
13099 fi
13100 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13101 echo "${ECHO_T}$ac_cv_os_cray" >&6
13102 if test $ac_cv_os_cray = yes; then
13103   for ac_func in _getb67 GETB67 getb67; do
13104     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13105 echo "$as_me:$LINENO: checking for $ac_func" >&5
13106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13107 if eval "test \"\${$as_ac_var+set}\" = set"; then
13108   echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110   cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h.  */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h.  */
13116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13118 #define $ac_func innocuous_$ac_func
13119
13120 /* System header to define __stub macros and hopefully few prototypes,
13121     which can conflict with char $ac_func (); below.
13122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13123     <limits.h> exists even on freestanding compilers.  */
13124
13125 #ifdef __STDC__
13126 # include <limits.h>
13127 #else
13128 # include <assert.h>
13129 #endif
13130
13131 #undef $ac_func
13132
13133 /* Override any gcc2 internal prototype to avoid an error.  */
13134 #ifdef __cplusplus
13135 extern "C"
13136 {
13137 #endif
13138 /* We use char because int might match the return type of a gcc2
13139    builtin and then its argument prototype would still apply.  */
13140 char $ac_func ();
13141 /* The GNU C library defines this for functions which it implements
13142     to always fail with ENOSYS.  Some functions are actually named
13143     something starting with __ and the normal name is an alias.  */
13144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13145 choke me
13146 #else
13147 char (*f) () = $ac_func;
13148 #endif
13149 #ifdef __cplusplus
13150 }
13151 #endif
13152
13153 int
13154 main ()
13155 {
13156 return f != $ac_func;
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163   (eval $ac_link) 2>conftest.er1
13164   ac_status=$?
13165   grep -v '^ *+' conftest.er1 >conftest.err
13166   rm -f conftest.er1
13167   cat conftest.err >&5
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } &&
13170          { ac_try='test -z "$ac_c_werror_flag"
13171                          || test ! -s conftest.err'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; } &&
13177          { ac_try='test -s conftest$ac_exeext'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; }; then
13183   eval "$as_ac_var=yes"
13184 else
13185   echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188 eval "$as_ac_var=no"
13189 fi
13190 rm -f conftest.err conftest.$ac_objext \
13191       conftest$ac_exeext conftest.$ac_ext
13192 fi
13193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13195 if test `eval echo '${'$as_ac_var'}'` = yes; then
13196
13197 cat >>confdefs.h <<_ACEOF
13198 #define CRAY_STACKSEG_END $ac_func
13199 _ACEOF
13200
13201     break
13202 fi
13203
13204   done
13205 fi
13206
13207 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13208 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13209 if test "${ac_cv_c_stack_direction+set}" = set; then
13210   echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13212   if test "$cross_compiling" = yes; then
13213   ac_cv_c_stack_direction=0
13214 else
13215   cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h.  */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h.  */
13221 int
13222 find_stack_direction ()
13223 {
13224   static char *addr = 0;
13225   auto char dummy;
13226   if (addr == 0)
13227     {
13228       addr = &dummy;
13229       return find_stack_direction ();
13230     }
13231   else
13232     return (&dummy > addr) ? 1 : -1;
13233 }
13234
13235 int
13236 main ()
13237 {
13238   exit (find_stack_direction () < 0);
13239 }
13240 _ACEOF
13241 rm -f conftest$ac_exeext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13243   (eval $ac_link) 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248   (eval $ac_try) 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; }; then
13252   ac_cv_c_stack_direction=1
13253 else
13254   echo "$as_me: program exited with status $ac_status" >&5
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 ( exit $ac_status )
13259 ac_cv_c_stack_direction=-1
13260 fi
13261 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13262 fi
13263 fi
13264 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13265 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13266
13267 cat >>confdefs.h <<_ACEOF
13268 #define STACK_DIRECTION $ac_cv_c_stack_direction
13269 _ACEOF
13270
13271
13272 fi
13273
13274
13275
13276
13277
13278
13279 for ac_func in sbrk utimes setmode getc_unlocked strcoll
13280 do
13281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13282 echo "$as_me:$LINENO: checking for $ac_func" >&5
13283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13284 if eval "test \"\${$as_ac_var+set}\" = set"; then
13285   echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287   cat >conftest.$ac_ext <<_ACEOF
13288 /* confdefs.h.  */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h.  */
13293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13295 #define $ac_func innocuous_$ac_func
13296
13297 /* System header to define __stub macros and hopefully few prototypes,
13298     which can conflict with char $ac_func (); below.
13299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13300     <limits.h> exists even on freestanding compilers.  */
13301
13302 #ifdef __STDC__
13303 # include <limits.h>
13304 #else
13305 # include <assert.h>
13306 #endif
13307
13308 #undef $ac_func
13309
13310 /* Override any gcc2 internal prototype to avoid an error.  */
13311 #ifdef __cplusplus
13312 extern "C"
13313 {
13314 #endif
13315 /* We use char because int might match the return type of a gcc2
13316    builtin and then its argument prototype would still apply.  */
13317 char $ac_func ();
13318 /* The GNU C library defines this for functions which it implements
13319     to always fail with ENOSYS.  Some functions are actually named
13320     something starting with __ and the normal name is an alias.  */
13321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13322 choke me
13323 #else
13324 char (*f) () = $ac_func;
13325 #endif
13326 #ifdef __cplusplus
13327 }
13328 #endif
13329
13330 int
13331 main ()
13332 {
13333 return f != $ac_func;
13334   ;
13335   return 0;
13336 }
13337 _ACEOF
13338 rm -f conftest.$ac_objext conftest$ac_exeext
13339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13340   (eval $ac_link) 2>conftest.er1
13341   ac_status=$?
13342   grep -v '^ *+' conftest.er1 >conftest.err
13343   rm -f conftest.er1
13344   cat conftest.err >&5
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); } &&
13347          { ac_try='test -z "$ac_c_werror_flag"
13348                          || test ! -s conftest.err'
13349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350   (eval $ac_try) 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; } &&
13354          { ac_try='test -s conftest$ac_exeext'
13355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356   (eval $ac_try) 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); }; }; then
13360   eval "$as_ac_var=yes"
13361 else
13362   echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13364
13365 eval "$as_ac_var=no"
13366 fi
13367 rm -f conftest.err conftest.$ac_objext \
13368       conftest$ac_exeext conftest.$ac_ext
13369 fi
13370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13372 if test `eval echo '${'$as_ac_var'}'` = yes; then
13373   cat >>confdefs.h <<_ACEOF
13374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13375 _ACEOF
13376
13377 fi
13378 done
13379
13380 echo "$as_me:$LINENO: checking for mkstemp" >&5
13381 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13382 if test "${ac_cv_func_mkstemp+set}" = set; then
13383   echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385   cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h.  */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h.  */
13391 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
13392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13393 #define mkstemp innocuous_mkstemp
13394
13395 /* System header to define __stub macros and hopefully few prototypes,
13396     which can conflict with char mkstemp (); below.
13397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13398     <limits.h> exists even on freestanding compilers.  */
13399
13400 #ifdef __STDC__
13401 # include <limits.h>
13402 #else
13403 # include <assert.h>
13404 #endif
13405
13406 #undef mkstemp
13407
13408 /* Override any gcc2 internal prototype to avoid an error.  */
13409 #ifdef __cplusplus
13410 extern "C"
13411 {
13412 #endif
13413 /* We use char because int might match the return type of a gcc2
13414    builtin and then its argument prototype would still apply.  */
13415 char mkstemp ();
13416 /* The GNU C library defines this for functions which it implements
13417     to always fail with ENOSYS.  Some functions are actually named
13418     something starting with __ and the normal name is an alias.  */
13419 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
13420 choke me
13421 #else
13422 char (*f) () = mkstemp;
13423 #endif
13424 #ifdef __cplusplus
13425 }
13426 #endif
13427
13428 int
13429 main ()
13430 {
13431 return f != mkstemp;
13432   ;
13433   return 0;
13434 }
13435 _ACEOF
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13438   (eval $ac_link) 2>conftest.er1
13439   ac_status=$?
13440   grep -v '^ *+' conftest.er1 >conftest.err
13441   rm -f conftest.er1
13442   cat conftest.err >&5
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); } &&
13445          { ac_try='test -z "$ac_c_werror_flag"
13446                          || test ! -s conftest.err'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; } &&
13452          { ac_try='test -s conftest$ac_exeext'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; }; then
13458   ac_cv_func_mkstemp=yes
13459 else
13460   echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13462
13463 ac_cv_func_mkstemp=no
13464 fi
13465 rm -f conftest.err conftest.$ac_objext \
13466       conftest$ac_exeext conftest.$ac_ext
13467 fi
13468 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
13469 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
13470 if test $ac_cv_func_mkstemp = yes; then
13471
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_MKSTEMP 1
13474 _ACEOF
13475
13476 fi
13477
13478 echo "$as_me:$LINENO: checking for mkdtemp" >&5
13479 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
13480 if test "${ac_cv_func_mkdtemp+set}" = set; then
13481   echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483   cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h.  */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h.  */
13489 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
13490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13491 #define mkdtemp innocuous_mkdtemp
13492
13493 /* System header to define __stub macros and hopefully few prototypes,
13494     which can conflict with char mkdtemp (); below.
13495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13496     <limits.h> exists even on freestanding compilers.  */
13497
13498 #ifdef __STDC__
13499 # include <limits.h>
13500 #else
13501 # include <assert.h>
13502 #endif
13503
13504 #undef mkdtemp
13505
13506 /* Override any gcc2 internal prototype to avoid an error.  */
13507 #ifdef __cplusplus
13508 extern "C"
13509 {
13510 #endif
13511 /* We use char because int might match the return type of a gcc2
13512    builtin and then its argument prototype would still apply.  */
13513 char mkdtemp ();
13514 /* The GNU C library defines this for functions which it implements
13515     to always fail with ENOSYS.  Some functions are actually named
13516     something starting with __ and the normal name is an alias.  */
13517 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
13518 choke me
13519 #else
13520 char (*f) () = mkdtemp;
13521 #endif
13522 #ifdef __cplusplus
13523 }
13524 #endif
13525
13526 int
13527 main ()
13528 {
13529 return f != mkdtemp;
13530   ;
13531   return 0;
13532 }
13533 _ACEOF
13534 rm -f conftest.$ac_objext conftest$ac_exeext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13536   (eval $ac_link) 2>conftest.er1
13537   ac_status=$?
13538   grep -v '^ *+' conftest.er1 >conftest.err
13539   rm -f conftest.er1
13540   cat conftest.err >&5
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); } &&
13543          { ac_try='test -z "$ac_c_werror_flag"
13544                          || test ! -s conftest.err'
13545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546   (eval $ac_try) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; } &&
13550          { ac_try='test -s conftest$ac_exeext'
13551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552   (eval $ac_try) 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; }; then
13556   ac_cv_func_mkdtemp=yes
13557 else
13558   echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561 ac_cv_func_mkdtemp=no
13562 fi
13563 rm -f conftest.err conftest.$ac_objext \
13564       conftest$ac_exeext conftest.$ac_ext
13565 fi
13566 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
13567 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
13568 if test $ac_cv_func_mkdtemp = yes; then
13569
13570 cat >>confdefs.h <<\_ACEOF
13571 #define HAVE_MKDTEMP 1
13572 _ACEOF
13573
13574 fi
13575
13576
13577 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
13578 # needs to be defined for it
13579 echo "$as_me:$LINENO: checking for fopen64" >&5
13580 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
13581 if test "${bu_cv_have_fopen64+set}" = set; then
13582   echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584   cat >conftest.$ac_ext <<_ACEOF
13585 /* confdefs.h.  */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h.  */
13590 #include <stdio.h>
13591 int
13592 main ()
13593 {
13594 FILE *f = fopen64 ("/tmp/foo","r");
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13601   (eval $ac_link) 2>conftest.er1
13602   ac_status=$?
13603   grep -v '^ *+' conftest.er1 >conftest.err
13604   rm -f conftest.er1
13605   cat conftest.err >&5
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } &&
13608          { ac_try='test -z "$ac_c_werror_flag"
13609                          || test ! -s conftest.err'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; } &&
13615          { ac_try='test -s conftest$ac_exeext'
13616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617   (eval $ac_try) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; }; then
13621   bu_cv_have_fopen64=yes
13622 else
13623   echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 saved_CPPFLAGS=$CPPFLAGS
13627  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13628  cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 #include <stdio.h>
13635 int
13636 main ()
13637 {
13638 FILE *f = fopen64 ("/tmp/foo","r");
13639   ;
13640   return 0;
13641 }
13642 _ACEOF
13643 rm -f conftest.$ac_objext conftest$ac_exeext
13644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13645   (eval $ac_link) 2>conftest.er1
13646   ac_status=$?
13647   grep -v '^ *+' conftest.er1 >conftest.err
13648   rm -f conftest.er1
13649   cat conftest.err >&5
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } &&
13652          { ac_try='test -z "$ac_c_werror_flag"
13653                          || test ! -s conftest.err'
13654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655   (eval $ac_try) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; } &&
13659          { ac_try='test -s conftest$ac_exeext'
13660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661   (eval $ac_try) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }; }; then
13665   bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
13666 else
13667   echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670 bu_cv_have_fopen64=no
13671 fi
13672 rm -f conftest.err conftest.$ac_objext \
13673       conftest$ac_exeext conftest.$ac_ext
13674  CPPFLAGS=$saved_CPPFLAGS
13675 fi
13676 rm -f conftest.err conftest.$ac_objext \
13677       conftest$ac_exeext conftest.$ac_ext
13678 fi
13679
13680 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
13681 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
13682 if test "$bu_cv_have_fopen64" != no; then
13683
13684 cat >>confdefs.h <<\_ACEOF
13685 #define HAVE_FOPEN64 1
13686 _ACEOF
13687
13688 fi
13689 echo "$as_me:$LINENO: checking for stat64" >&5
13690 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
13691 if test "${bu_cv_have_stat64+set}" = set; then
13692   echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694   cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h.  */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h.  */
13700 #include <sys/stat.h>
13701 int
13702 main ()
13703 {
13704 struct stat64 st; stat64 ("/tmp/foo", &st);
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711   (eval $ac_link) 2>conftest.er1
13712   ac_status=$?
13713   grep -v '^ *+' conftest.er1 >conftest.err
13714   rm -f conftest.er1
13715   cat conftest.err >&5
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } &&
13718          { ac_try='test -z "$ac_c_werror_flag"
13719                          || test ! -s conftest.err'
13720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721   (eval $ac_try) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; } &&
13725          { ac_try='test -s conftest$ac_exeext'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731   bu_cv_have_stat64=yes
13732 else
13733   echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 saved_CPPFLAGS=$CPPFLAGS
13737  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13738  cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h.  */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h.  */
13744 #include <sys/stat.h>
13745 int
13746 main ()
13747 {
13748 struct stat64 st; stat64 ("/tmp/foo", &st);
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13755   (eval $ac_link) 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } &&
13762          { ac_try='test -z "$ac_c_werror_flag"
13763                          || test ! -s conftest.err'
13764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765   (eval $ac_try) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; } &&
13769          { ac_try='test -s conftest$ac_exeext'
13770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771   (eval $ac_try) 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; }; then
13775   bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 bu_cv_have_stat64=no
13781 fi
13782 rm -f conftest.err conftest.$ac_objext \
13783       conftest$ac_exeext conftest.$ac_ext
13784  CPPFLAGS=$saved_CPPFLAGS
13785 fi
13786 rm -f conftest.err conftest.$ac_objext \
13787       conftest$ac_exeext conftest.$ac_ext
13788 fi
13789
13790 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
13791 echo "${ECHO_T}$bu_cv_have_stat64" >&6
13792 if test "$bu_cv_have_stat64" != no; then
13793
13794 cat >>confdefs.h <<\_ACEOF
13795 #define HAVE_STAT64 1
13796 _ACEOF
13797
13798 fi
13799 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
13800    || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
13801
13802 cat >>confdefs.h <<\_ACEOF
13803 #define _LARGEFILE64_SOURCE 1
13804 _ACEOF
13805
13806   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13807 fi
13808
13809 # Some systems have frexp only in -lm, not in -lc.
13810 echo "$as_me:$LINENO: checking for library containing frexp" >&5
13811 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
13812 if test "${ac_cv_search_frexp+set}" = set; then
13813   echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815   ac_func_search_save_LIBS=$LIBS
13816 ac_cv_search_frexp=no
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h.  */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h.  */
13823
13824 /* Override any gcc2 internal prototype to avoid an error.  */
13825 #ifdef __cplusplus
13826 extern "C"
13827 #endif
13828 /* We use char because int might match the return type of a gcc2
13829    builtin and then its argument prototype would still apply.  */
13830 char frexp ();
13831 int
13832 main ()
13833 {
13834 frexp ();
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841   (eval $ac_link) 2>conftest.er1
13842   ac_status=$?
13843   grep -v '^ *+' conftest.er1 >conftest.err
13844   rm -f conftest.er1
13845   cat conftest.err >&5
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); } &&
13848          { ac_try='test -z "$ac_c_werror_flag"
13849                          || test ! -s conftest.err'
13850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851   (eval $ac_try) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; } &&
13855          { ac_try='test -s conftest$ac_exeext'
13856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857   (eval $ac_try) 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; }; then
13861   ac_cv_search_frexp="none required"
13862 else
13863   echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 fi
13867 rm -f conftest.err conftest.$ac_objext \
13868       conftest$ac_exeext conftest.$ac_ext
13869 if test "$ac_cv_search_frexp" = no; then
13870   for ac_lib in m; do
13871     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13872     cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878
13879 /* Override any gcc2 internal prototype to avoid an error.  */
13880 #ifdef __cplusplus
13881 extern "C"
13882 #endif
13883 /* We use char because int might match the return type of a gcc2
13884    builtin and then its argument prototype would still apply.  */
13885 char frexp ();
13886 int
13887 main ()
13888 {
13889 frexp ();
13890   ;
13891   return 0;
13892 }
13893 _ACEOF
13894 rm -f conftest.$ac_objext conftest$ac_exeext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13896   (eval $ac_link) 2>conftest.er1
13897   ac_status=$?
13898   grep -v '^ *+' conftest.er1 >conftest.err
13899   rm -f conftest.er1
13900   cat conftest.err >&5
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); } &&
13903          { ac_try='test -z "$ac_c_werror_flag"
13904                          || test ! -s conftest.err'
13905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906   (eval $ac_try) 2>&5
13907   ac_status=$?
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); }; } &&
13910          { ac_try='test -s conftest$ac_exeext'
13911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912   (eval $ac_try) 2>&5
13913   ac_status=$?
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); }; }; then
13916   ac_cv_search_frexp="-l$ac_lib"
13917 break
13918 else
13919   echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13921
13922 fi
13923 rm -f conftest.err conftest.$ac_objext \
13924       conftest$ac_exeext conftest.$ac_ext
13925   done
13926 fi
13927 LIBS=$ac_func_search_save_LIBS
13928 fi
13929 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
13930 echo "${ECHO_T}$ac_cv_search_frexp" >&6
13931 if test "$ac_cv_search_frexp" != no; then
13932   test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
13933
13934 fi
13935
13936
13937 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
13938 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
13939 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
13940   echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942   cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h.  */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h.  */
13948 #include <time.h>
13949 int
13950 main ()
13951 {
13952 time_t i;
13953   ;
13954   return 0;
13955 }
13956 _ACEOF
13957 rm -f conftest.$ac_objext
13958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13959   (eval $ac_compile) 2>conftest.er1
13960   ac_status=$?
13961   grep -v '^ *+' conftest.er1 >conftest.err
13962   rm -f conftest.er1
13963   cat conftest.err >&5
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); } &&
13966          { ac_try='test -z "$ac_c_werror_flag"
13967                          || test ! -s conftest.err'
13968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969   (eval $ac_try) 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); }; } &&
13973          { ac_try='test -s conftest.$ac_objext'
13974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975   (eval $ac_try) 2>&5
13976   ac_status=$?
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); }; }; then
13979   bu_cv_decl_time_t_time_h=yes
13980 else
13981   echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13983
13984 bu_cv_decl_time_t_time_h=no
13985 fi
13986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13987 fi
13988
13989 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
13990 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
13991 if test $bu_cv_decl_time_t_time_h = yes; then
13992
13993 cat >>confdefs.h <<\_ACEOF
13994 #define HAVE_TIME_T_IN_TIME_H 1
13995 _ACEOF
13996
13997 fi
13998
13999 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
14000 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
14001 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
14002   echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004   cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 #include <sys/types.h>
14011 int
14012 main ()
14013 {
14014 time_t i;
14015   ;
14016   return 0;
14017 }
14018 _ACEOF
14019 rm -f conftest.$ac_objext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021   (eval $ac_compile) 2>conftest.er1
14022   ac_status=$?
14023   grep -v '^ *+' conftest.er1 >conftest.err
14024   rm -f conftest.er1
14025   cat conftest.err >&5
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } &&
14028          { ac_try='test -z "$ac_c_werror_flag"
14029                          || test ! -s conftest.err'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; } &&
14035          { ac_try='test -s conftest.$ac_objext'
14036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037   (eval $ac_try) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; }; then
14041   bu_cv_decl_time_t_types_h=yes
14042 else
14043   echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 bu_cv_decl_time_t_types_h=no
14047 fi
14048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14049 fi
14050
14051 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
14052 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
14053 if test $bu_cv_decl_time_t_types_h = yes; then
14054
14055 cat >>confdefs.h <<\_ACEOF
14056 #define HAVE_TIME_T_IN_TYPES_H 1
14057 _ACEOF
14058
14059 fi
14060
14061 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
14062 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
14063 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066   cat >conftest.$ac_ext <<_ACEOF
14067 /* confdefs.h.  */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h.  */
14072 #include <unistd.h>
14073 int
14074 main ()
14075 {
14076 extern int getopt (int, char *const*, const char *);
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083   (eval $ac_compile) 2>conftest.er1
14084   ac_status=$?
14085   grep -v '^ *+' conftest.er1 >conftest.err
14086   rm -f conftest.er1
14087   cat conftest.err >&5
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } &&
14090          { ac_try='test -z "$ac_c_werror_flag"
14091                          || test ! -s conftest.err'
14092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093   (eval $ac_try) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; } &&
14097          { ac_try='test -s conftest.$ac_objext'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; }; then
14103   bu_cv_decl_getopt_unistd_h=yes
14104 else
14105   echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 bu_cv_decl_getopt_unistd_h=no
14109 fi
14110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14111 fi
14112
14113 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
14114 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
14115 if test $bu_cv_decl_getopt_unistd_h = yes; then
14116
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_DECL_GETOPT 1
14119 _ACEOF
14120
14121 fi
14122
14123 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14124 # by default.
14125 echo "$as_me:$LINENO: checking for utime.h" >&5
14126 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14127 if test "${bu_cv_header_utime_h+set}" = set; then
14128   echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130   cat >conftest.$ac_ext <<_ACEOF
14131 /* confdefs.h.  */
14132 _ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h.  */
14136 #include <sys/types.h>
14137 #ifdef HAVE_TIME_H
14138 #include <time.h>
14139 #endif
14140 #include <utime.h>
14141 int
14142 main ()
14143 {
14144 struct utimbuf s;
14145   ;
14146   return 0;
14147 }
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14151   (eval $ac_compile) 2>conftest.er1
14152   ac_status=$?
14153   grep -v '^ *+' conftest.er1 >conftest.err
14154   rm -f conftest.er1
14155   cat conftest.err >&5
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); } &&
14158          { ac_try='test -z "$ac_c_werror_flag"
14159                          || test ! -s conftest.err'
14160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161   (eval $ac_try) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; } &&
14165          { ac_try='test -s conftest.$ac_objext'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; }; then
14171   bu_cv_header_utime_h=yes
14172 else
14173   echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176 bu_cv_header_utime_h=no
14177 fi
14178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14179 fi
14180
14181 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
14182 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
14183 if test $bu_cv_header_utime_h = yes; then
14184
14185 cat >>confdefs.h <<\_ACEOF
14186 #define HAVE_GOOD_UTIME_H 1
14187 _ACEOF
14188
14189 fi
14190
14191 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
14192 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
14193 if test "${ac_cv_have_decl_fprintf+set}" = set; then
14194   echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196   cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h.  */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h.  */
14202 $ac_includes_default
14203 int
14204 main ()
14205 {
14206 #ifndef fprintf
14207   char *p = (char *) fprintf;
14208 #endif
14209
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 rm -f conftest.$ac_objext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216   (eval $ac_compile) 2>conftest.er1
14217   ac_status=$?
14218   grep -v '^ *+' conftest.er1 >conftest.err
14219   rm -f conftest.er1
14220   cat conftest.err >&5
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); } &&
14223          { ac_try='test -z "$ac_c_werror_flag"
14224                          || test ! -s conftest.err'
14225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226   (eval $ac_try) 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest.$ac_objext'
14231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232   (eval $ac_try) 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; }; then
14236   ac_cv_have_decl_fprintf=yes
14237 else
14238   echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14240
14241 ac_cv_have_decl_fprintf=no
14242 fi
14243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
14246 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
14247 if test $ac_cv_have_decl_fprintf = yes; then
14248
14249 cat >>confdefs.h <<_ACEOF
14250 #define HAVE_DECL_FPRINTF 1
14251 _ACEOF
14252
14253
14254 else
14255   cat >>confdefs.h <<_ACEOF
14256 #define HAVE_DECL_FPRINTF 0
14257 _ACEOF
14258
14259
14260 fi
14261 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
14262 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
14263 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
14264   echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266   cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272 $ac_includes_default
14273 int
14274 main ()
14275 {
14276 #ifndef stpcpy
14277   char *p = (char *) stpcpy;
14278 #endif
14279
14280   ;
14281   return 0;
14282 }
14283 _ACEOF
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286   (eval $ac_compile) 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -z "$ac_c_werror_flag"
14294                          || test ! -s conftest.err'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; } &&
14300          { ac_try='test -s conftest.$ac_objext'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   ac_cv_have_decl_stpcpy=yes
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 ac_cv_have_decl_stpcpy=no
14312 fi
14313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14314 fi
14315 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
14316 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
14317 if test $ac_cv_have_decl_stpcpy = yes; then
14318
14319 cat >>confdefs.h <<_ACEOF
14320 #define HAVE_DECL_STPCPY 1
14321 _ACEOF
14322
14323
14324 else
14325   cat >>confdefs.h <<_ACEOF
14326 #define HAVE_DECL_STPCPY 0
14327 _ACEOF
14328
14329
14330 fi
14331 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14332 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14333 if test "${ac_cv_have_decl_strstr+set}" = set; then
14334   echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336   cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 $ac_includes_default
14343 int
14344 main ()
14345 {
14346 #ifndef strstr
14347   char *p = (char *) strstr;
14348 #endif
14349
14350   ;
14351   return 0;
14352 }
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356   (eval $ac_compile) 2>conftest.er1
14357   ac_status=$?
14358   grep -v '^ *+' conftest.er1 >conftest.err
14359   rm -f conftest.er1
14360   cat conftest.err >&5
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); } &&
14363          { ac_try='test -z "$ac_c_werror_flag"
14364                          || test ! -s conftest.err'
14365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366   (eval $ac_try) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); }; } &&
14370          { ac_try='test -s conftest.$ac_objext'
14371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372   (eval $ac_try) 2>&5
14373   ac_status=$?
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); }; }; then
14376   ac_cv_have_decl_strstr=yes
14377 else
14378   echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14380
14381 ac_cv_have_decl_strstr=no
14382 fi
14383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14384 fi
14385 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14386 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14387 if test $ac_cv_have_decl_strstr = yes; then
14388
14389 cat >>confdefs.h <<_ACEOF
14390 #define HAVE_DECL_STRSTR 1
14391 _ACEOF
14392
14393
14394 else
14395   cat >>confdefs.h <<_ACEOF
14396 #define HAVE_DECL_STRSTR 0
14397 _ACEOF
14398
14399
14400 fi
14401 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14402 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
14403 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14404   echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406   cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412 $ac_includes_default
14413 int
14414 main ()
14415 {
14416 #ifndef sbrk
14417   char *p = (char *) sbrk;
14418 #endif
14419
14420   ;
14421   return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14426   (eval $ac_compile) 2>conftest.er1
14427   ac_status=$?
14428   grep -v '^ *+' conftest.er1 >conftest.err
14429   rm -f conftest.er1
14430   cat conftest.err >&5
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); } &&
14433          { ac_try='test -z "$ac_c_werror_flag"
14434                          || test ! -s conftest.err'
14435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436   (eval $ac_try) 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); }; } &&
14440          { ac_try='test -s conftest.$ac_objext'
14441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442   (eval $ac_try) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }; then
14446   ac_cv_have_decl_sbrk=yes
14447 else
14448   echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14450
14451 ac_cv_have_decl_sbrk=no
14452 fi
14453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14454 fi
14455 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14456 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
14457 if test $ac_cv_have_decl_sbrk = yes; then
14458
14459 cat >>confdefs.h <<_ACEOF
14460 #define HAVE_DECL_SBRK 1
14461 _ACEOF
14462
14463
14464 else
14465   cat >>confdefs.h <<_ACEOF
14466 #define HAVE_DECL_SBRK 0
14467 _ACEOF
14468
14469
14470 fi
14471 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14472 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14473 if test "${ac_cv_have_decl_getenv+set}" = set; then
14474   echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476   cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h.  */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h.  */
14482 $ac_includes_default
14483 int
14484 main ()
14485 {
14486 #ifndef getenv
14487   char *p = (char *) getenv;
14488 #endif
14489
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 rm -f conftest.$ac_objext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14496   (eval $ac_compile) 2>conftest.er1
14497   ac_status=$?
14498   grep -v '^ *+' conftest.er1 >conftest.err
14499   rm -f conftest.er1
14500   cat conftest.err >&5
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } &&
14503          { ac_try='test -z "$ac_c_werror_flag"
14504                          || test ! -s conftest.err'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; } &&
14510          { ac_try='test -s conftest.$ac_objext'
14511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512   (eval $ac_try) 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; }; then
14516   ac_cv_have_decl_getenv=yes
14517 else
14518   echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ac_cv_have_decl_getenv=no
14522 fi
14523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14524 fi
14525 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14526 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14527 if test $ac_cv_have_decl_getenv = yes; then
14528
14529 cat >>confdefs.h <<_ACEOF
14530 #define HAVE_DECL_GETENV 1
14531 _ACEOF
14532
14533
14534 else
14535   cat >>confdefs.h <<_ACEOF
14536 #define HAVE_DECL_GETENV 0
14537 _ACEOF
14538
14539
14540 fi
14541 echo "$as_me:$LINENO: checking whether environ is declared" >&5
14542 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
14543 if test "${ac_cv_have_decl_environ+set}" = set; then
14544   echo $ECHO_N "(cached) $ECHO_C" >&6
14545 else
14546   cat >conftest.$ac_ext <<_ACEOF
14547 /* confdefs.h.  */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h.  */
14552 $ac_includes_default
14553 int
14554 main ()
14555 {
14556 #ifndef environ
14557   char *p = (char *) environ;
14558 #endif
14559
14560   ;
14561   return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14566   (eval $ac_compile) 2>conftest.er1
14567   ac_status=$?
14568   grep -v '^ *+' conftest.er1 >conftest.err
14569   rm -f conftest.er1
14570   cat conftest.err >&5
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); } &&
14573          { ac_try='test -z "$ac_c_werror_flag"
14574                          || test ! -s conftest.err'
14575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576   (eval $ac_try) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; } &&
14580          { ac_try='test -s conftest.$ac_objext'
14581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582   (eval $ac_try) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; }; then
14586   ac_cv_have_decl_environ=yes
14587 else
14588   echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14590
14591 ac_cv_have_decl_environ=no
14592 fi
14593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14594 fi
14595 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
14596 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
14597 if test $ac_cv_have_decl_environ = yes; then
14598
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_DECL_ENVIRON 1
14601 _ACEOF
14602
14603
14604 else
14605   cat >>confdefs.h <<_ACEOF
14606 #define HAVE_DECL_ENVIRON 0
14607 _ACEOF
14608
14609
14610 fi
14611 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
14612 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
14613 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622 $ac_includes_default
14623 int
14624 main ()
14625 {
14626 #ifndef getc_unlocked
14627   char *p = (char *) getc_unlocked;
14628 #endif
14629
14630   ;
14631   return 0;
14632 }
14633 _ACEOF
14634 rm -f conftest.$ac_objext
14635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14636   (eval $ac_compile) 2>conftest.er1
14637   ac_status=$?
14638   grep -v '^ *+' conftest.er1 >conftest.err
14639   rm -f conftest.er1
14640   cat conftest.err >&5
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); } &&
14643          { ac_try='test -z "$ac_c_werror_flag"
14644                          || test ! -s conftest.err'
14645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646   (eval $ac_try) 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); }; } &&
14650          { ac_try='test -s conftest.$ac_objext'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; }; then
14656   ac_cv_have_decl_getc_unlocked=yes
14657 else
14658   echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661 ac_cv_have_decl_getc_unlocked=no
14662 fi
14663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14664 fi
14665 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
14666 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
14667 if test $ac_cv_have_decl_getc_unlocked = yes; then
14668
14669 cat >>confdefs.h <<_ACEOF
14670 #define HAVE_DECL_GETC_UNLOCKED 1
14671 _ACEOF
14672
14673
14674 else
14675   cat >>confdefs.h <<_ACEOF
14676 #define HAVE_DECL_GETC_UNLOCKED 0
14677 _ACEOF
14678
14679
14680 fi
14681 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14682 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14683 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686   cat >conftest.$ac_ext <<_ACEOF
14687 /* confdefs.h.  */
14688 _ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h.  */
14692 $ac_includes_default
14693 int
14694 main ()
14695 {
14696 #ifndef snprintf
14697   char *p = (char *) snprintf;
14698 #endif
14699
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706   (eval $ac_compile) 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
14710   cat conftest.err >&5
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -z "$ac_c_werror_flag"
14714                          || test ! -s conftest.err'
14715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716   (eval $ac_try) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); }; } &&
14720          { ac_try='test -s conftest.$ac_objext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ac_cv_have_decl_snprintf=yes
14727 else
14728   echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14730
14731 ac_cv_have_decl_snprintf=no
14732 fi
14733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14734 fi
14735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14736 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14737 if test $ac_cv_have_decl_snprintf = yes; then
14738
14739 cat >>confdefs.h <<_ACEOF
14740 #define HAVE_DECL_SNPRINTF 1
14741 _ACEOF
14742
14743
14744 else
14745   cat >>confdefs.h <<_ACEOF
14746 #define HAVE_DECL_SNPRINTF 0
14747 _ACEOF
14748
14749
14750 fi
14751 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14752 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14753 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14754   echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756   cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h.  */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h.  */
14762 $ac_includes_default
14763 int
14764 main ()
14765 {
14766 #ifndef vsnprintf
14767   char *p = (char *) vsnprintf;
14768 #endif
14769
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776   (eval $ac_compile) 2>conftest.er1
14777   ac_status=$?
14778   grep -v '^ *+' conftest.er1 >conftest.err
14779   rm -f conftest.er1
14780   cat conftest.err >&5
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } &&
14783          { ac_try='test -z "$ac_c_werror_flag"
14784                          || test ! -s conftest.err'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; } &&
14790          { ac_try='test -s conftest.$ac_objext'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; }; then
14796   ac_cv_have_decl_vsnprintf=yes
14797 else
14798   echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 ac_cv_have_decl_vsnprintf=no
14802 fi
14803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14804 fi
14805 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14806 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14807 if test $ac_cv_have_decl_vsnprintf = yes; then
14808
14809 cat >>confdefs.h <<_ACEOF
14810 #define HAVE_DECL_VSNPRINTF 1
14811 _ACEOF
14812
14813
14814 else
14815   cat >>confdefs.h <<_ACEOF
14816 #define HAVE_DECL_VSNPRINTF 0
14817 _ACEOF
14818
14819
14820 fi
14821
14822
14823
14824 # Link in zlib if we can.  This allows us to read compressed debug
14825 # sections.  This is used only by readelf.c (objdump uses bfd for
14826 # reading compressed sections).
14827 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
14828 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
14829 if test "${ac_cv_search_zlibVersion+set}" = set; then
14830   echo $ECHO_N "(cached) $ECHO_C" >&6
14831 else
14832   ac_func_search_save_LIBS=$LIBS
14833 ac_cv_search_zlibVersion=no
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h.  */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h.  */
14840
14841 /* Override any gcc2 internal prototype to avoid an error.  */
14842 #ifdef __cplusplus
14843 extern "C"
14844 #endif
14845 /* We use char because int might match the return type of a gcc2
14846    builtin and then its argument prototype would still apply.  */
14847 char zlibVersion ();
14848 int
14849 main ()
14850 {
14851 zlibVersion ();
14852   ;
14853   return 0;
14854 }
14855 _ACEOF
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14858   (eval $ac_link) 2>conftest.er1
14859   ac_status=$?
14860   grep -v '^ *+' conftest.er1 >conftest.err
14861   rm -f conftest.er1
14862   cat conftest.err >&5
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); } &&
14865          { ac_try='test -z "$ac_c_werror_flag"
14866                          || test ! -s conftest.err'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; } &&
14872          { ac_try='test -s conftest$ac_exeext'
14873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874   (eval $ac_try) 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); }; }; then
14878   ac_cv_search_zlibVersion="none required"
14879 else
14880   echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883 fi
14884 rm -f conftest.err conftest.$ac_objext \
14885       conftest$ac_exeext conftest.$ac_ext
14886 if test "$ac_cv_search_zlibVersion" = no; then
14887   for ac_lib in z; do
14888     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14889     cat >conftest.$ac_ext <<_ACEOF
14890 /* confdefs.h.  */
14891 _ACEOF
14892 cat confdefs.h >>conftest.$ac_ext
14893 cat >>conftest.$ac_ext <<_ACEOF
14894 /* end confdefs.h.  */
14895
14896 /* Override any gcc2 internal prototype to avoid an error.  */
14897 #ifdef __cplusplus
14898 extern "C"
14899 #endif
14900 /* We use char because int might match the return type of a gcc2
14901    builtin and then its argument prototype would still apply.  */
14902 char zlibVersion ();
14903 int
14904 main ()
14905 {
14906 zlibVersion ();
14907   ;
14908   return 0;
14909 }
14910 _ACEOF
14911 rm -f conftest.$ac_objext conftest$ac_exeext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913   (eval $ac_link) 2>conftest.er1
14914   ac_status=$?
14915   grep -v '^ *+' conftest.er1 >conftest.err
14916   rm -f conftest.er1
14917   cat conftest.err >&5
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); } &&
14920          { ac_try='test -z "$ac_c_werror_flag"
14921                          || test ! -s conftest.err'
14922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923   (eval $ac_try) 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; } &&
14927          { ac_try='test -s conftest$ac_exeext'
14928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929   (eval $ac_try) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; }; then
14933   ac_cv_search_zlibVersion="-l$ac_lib"
14934 break
14935 else
14936   echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14938
14939 fi
14940 rm -f conftest.err conftest.$ac_objext \
14941       conftest$ac_exeext conftest.$ac_ext
14942   done
14943 fi
14944 LIBS=$ac_func_search_save_LIBS
14945 fi
14946 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
14947 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
14948 if test "$ac_cv_search_zlibVersion" != no; then
14949   test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
14950
14951 for ac_header in zlib.h
14952 do
14953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14955   echo "$as_me:$LINENO: checking for $ac_header" >&5
14956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14958   echo $ECHO_N "(cached) $ECHO_C" >&6
14959 fi
14960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14962 else
14963   # Is the header compilable?
14964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14966 cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h.  */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h.  */
14972 $ac_includes_default
14973 #include <$ac_header>
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977   (eval $ac_compile) 2>conftest.er1
14978   ac_status=$?
14979   grep -v '^ *+' conftest.er1 >conftest.err
14980   rm -f conftest.er1
14981   cat conftest.err >&5
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } &&
14984          { ac_try='test -z "$ac_c_werror_flag"
14985                          || test ! -s conftest.err'
14986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987   (eval $ac_try) 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; } &&
14991          { ac_try='test -s conftest.$ac_objext'
14992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993   (eval $ac_try) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; }; then
14997   ac_header_compiler=yes
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002 ac_header_compiler=no
15003 fi
15004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15006 echo "${ECHO_T}$ac_header_compiler" >&6
15007
15008 # Is the header present?
15009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h.  */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h.  */
15017 #include <$ac_header>
15018 _ACEOF
15019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } >/dev/null; then
15027   if test -s conftest.err; then
15028     ac_cpp_err=$ac_c_preproc_warn_flag
15029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15030   else
15031     ac_cpp_err=
15032   fi
15033 else
15034   ac_cpp_err=yes
15035 fi
15036 if test -z "$ac_cpp_err"; then
15037   ac_header_preproc=yes
15038 else
15039   echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042   ac_header_preproc=no
15043 fi
15044 rm -f conftest.err conftest.$ac_ext
15045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15046 echo "${ECHO_T}$ac_header_preproc" >&6
15047
15048 # So?  What about this header?
15049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15050   yes:no: )
15051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15055     ac_header_preproc=yes
15056     ;;
15057   no:yes:* )
15058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15070     (
15071       cat <<\_ASBOX
15072 ## ------------------------------------------ ##
15073 ## Report this to the AC_PACKAGE_NAME lists.  ##
15074 ## ------------------------------------------ ##
15075 _ASBOX
15076     ) |
15077       sed "s/^/$as_me: WARNING:     /" >&2
15078     ;;
15079 esac
15080 echo "$as_me:$LINENO: checking for $ac_header" >&5
15081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15083   echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085   eval "$as_ac_Header=\$ac_header_preproc"
15086 fi
15087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15089
15090 fi
15091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15092   cat >>confdefs.h <<_ACEOF
15093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15094 _ACEOF
15095
15096 fi
15097
15098 done
15099
15100 fi
15101
15102
15103
15104 case "${host}" in
15105 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15106
15107 cat >>confdefs.h <<\_ACEOF
15108 #define USE_BINARY_FOPEN 1
15109 _ACEOF
15110  ;;
15111 esac
15112
15113 # target-specific stuff:
15114
15115 # Canonicalize the secondary target names.
15116 if test -n "$enable_targets"; then
15117     for targ in `echo $enable_targets | sed 's/,/ /g'`
15118     do
15119         result=`$ac_config_sub $targ 2>/dev/null`
15120         if test -n "$result"; then
15121             canon_targets="$canon_targets $result"
15122         else
15123             # Allow targets that config.sub doesn't recognize, like "all".
15124             canon_targets="$canon_targets $targ"
15125         fi
15126     done
15127 fi
15128
15129 if test "${ac_cv_header_iconv_h+set}" = set; then
15130   echo "$as_me:$LINENO: checking for iconv.h" >&5
15131 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15132 if test "${ac_cv_header_iconv_h+set}" = set; then
15133   echo $ECHO_N "(cached) $ECHO_C" >&6
15134 fi
15135 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15136 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15137 else
15138   # Is the header compilable?
15139 echo "$as_me:$LINENO: checking iconv.h usability" >&5
15140 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h.  */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h.  */
15147 $ac_includes_default
15148 #include <iconv.h>
15149 _ACEOF
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152   (eval $ac_compile) 2>conftest.er1
15153   ac_status=$?
15154   grep -v '^ *+' conftest.er1 >conftest.err
15155   rm -f conftest.er1
15156   cat conftest.err >&5
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } &&
15159          { ac_try='test -z "$ac_c_werror_flag"
15160                          || test ! -s conftest.err'
15161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162   (eval $ac_try) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; } &&
15166          { ac_try='test -s conftest.$ac_objext'
15167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168   (eval $ac_try) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; }; then
15172   ac_header_compiler=yes
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177 ac_header_compiler=no
15178 fi
15179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15181 echo "${ECHO_T}$ac_header_compiler" >&6
15182
15183 # Is the header present?
15184 echo "$as_me:$LINENO: checking iconv.h presence" >&5
15185 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 #include <iconv.h>
15193 _ACEOF
15194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } >/dev/null; then
15202   if test -s conftest.err; then
15203     ac_cpp_err=$ac_c_preproc_warn_flag
15204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15205   else
15206     ac_cpp_err=
15207   fi
15208 else
15209   ac_cpp_err=yes
15210 fi
15211 if test -z "$ac_cpp_err"; then
15212   ac_header_preproc=yes
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217   ac_header_preproc=no
15218 fi
15219 rm -f conftest.err conftest.$ac_ext
15220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15221 echo "${ECHO_T}$ac_header_preproc" >&6
15222
15223 # So?  What about this header?
15224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15225   yes:no: )
15226     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
15227 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15228     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
15229 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
15230     ac_header_preproc=yes
15231     ;;
15232   no:yes:* )
15233     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
15234 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
15235     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
15236 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
15238 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
15239     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
15240 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
15242 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
15244 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
15245     (
15246       cat <<\_ASBOX
15247 ## ------------------------------------------ ##
15248 ## Report this to the AC_PACKAGE_NAME lists.  ##
15249 ## ------------------------------------------ ##
15250 _ASBOX
15251     ) |
15252       sed "s/^/$as_me: WARNING:     /" >&2
15253     ;;
15254 esac
15255 echo "$as_me:$LINENO: checking for iconv.h" >&5
15256 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15257 if test "${ac_cv_header_iconv_h+set}" = set; then
15258   echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260   ac_cv_header_iconv_h=$ac_header_preproc
15261 fi
15262 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15263 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15264
15265 fi
15266
15267
15268
15269       if test "X$prefix" = "XNONE"; then
15270     acl_final_prefix="$ac_default_prefix"
15271   else
15272     acl_final_prefix="$prefix"
15273   fi
15274   if test "X$exec_prefix" = "XNONE"; then
15275     acl_final_exec_prefix='${prefix}'
15276   else
15277     acl_final_exec_prefix="$exec_prefix"
15278   fi
15279   acl_save_prefix="$prefix"
15280   prefix="$acl_final_prefix"
15281   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15282   prefix="$acl_save_prefix"
15283
15284
15285 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15286 if test "${with_gnu_ld+set}" = set; then
15287   withval="$with_gnu_ld"
15288   test "$withval" = no || with_gnu_ld=yes
15289 else
15290   with_gnu_ld=no
15291 fi;
15292 # Prepare PATH_SEPARATOR.
15293 # The user is always right.
15294 if test "${PATH_SEPARATOR+set}" != set; then
15295   echo "#! /bin/sh" >conf$$.sh
15296   echo  "exit 0"   >>conf$$.sh
15297   chmod +x conf$$.sh
15298   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15299     PATH_SEPARATOR=';'
15300   else
15301     PATH_SEPARATOR=:
15302   fi
15303   rm -f conf$$.sh
15304 fi
15305 ac_prog=ld
15306 if test "$GCC" = yes; then
15307   # Check if gcc -print-prog-name=ld gives a path.
15308   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15309 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15310   case $host in
15311   *-*-mingw*)
15312     # gcc leaves a trailing carriage return which upsets mingw
15313     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15314   *)
15315     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15316   esac
15317   case $ac_prog in
15318     # Accept absolute paths.
15319     [\\/]* | [A-Za-z]:[\\/]*)
15320       re_direlt='/[^/][^/]*/\.\./'
15321       # Canonicalize the path of ld
15322       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15323       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15324         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15325       done
15326       test -z "$LD" && LD="$ac_prog"
15327       ;;
15328   "")
15329     # If it fails, then pretend we aren't using GCC.
15330     ac_prog=ld
15331     ;;
15332   *)
15333     # If it is relative, then search for the first ld in PATH.
15334     with_gnu_ld=unknown
15335     ;;
15336   esac
15337 elif test "$with_gnu_ld" = yes; then
15338   echo "$as_me:$LINENO: checking for GNU ld" >&5
15339 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15340 else
15341   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15342 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15343 fi
15344 if test "${acl_cv_path_LD+set}" = set; then
15345   echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347   if test -z "$LD"; then
15348   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15349   for ac_dir in $PATH; do
15350     test -z "$ac_dir" && ac_dir=.
15351     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15352       acl_cv_path_LD="$ac_dir/$ac_prog"
15353       # Check to see if the program is GNU ld.  I'd rather use --version,
15354       # but apparently some GNU ld's only accept -v.
15355       # Break only if it was the GNU/non-GNU ld that we prefer.
15356       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15357         test "$with_gnu_ld" != no && break
15358       else
15359         test "$with_gnu_ld" != yes && break
15360       fi
15361     fi
15362   done
15363   IFS="$ac_save_ifs"
15364 else
15365   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15366 fi
15367 fi
15368
15369 LD="$acl_cv_path_LD"
15370 if test -n "$LD"; then
15371   echo "$as_me:$LINENO: result: $LD" >&5
15372 echo "${ECHO_T}$LD" >&6
15373 else
15374   echo "$as_me:$LINENO: result: no" >&5
15375 echo "${ECHO_T}no" >&6
15376 fi
15377 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15378 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15379    { (exit 1); exit 1; }; }
15380 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15381 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15382 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15383   echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15386 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15387   acl_cv_prog_gnu_ld=yes
15388 else
15389   acl_cv_prog_gnu_ld=no
15390 fi
15391 fi
15392 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15393 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15394 with_gnu_ld=$acl_cv_prog_gnu_ld
15395
15396
15397
15398                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15399 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15400 if test "${acl_cv_rpath+set}" = set; then
15401   echo $ECHO_N "(cached) $ECHO_C" >&6
15402 else
15403
15404     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15405     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15406     . ./conftest.sh
15407     rm -f ./conftest.sh
15408     acl_cv_rpath=done
15409
15410 fi
15411 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15412 echo "${ECHO_T}$acl_cv_rpath" >&6
15413   wl="$acl_cv_wl"
15414   libext="$acl_cv_libext"
15415   shlibext="$acl_cv_shlibext"
15416   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15417   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15418   hardcode_direct="$acl_cv_hardcode_direct"
15419   hardcode_minus_L="$acl_cv_hardcode_minus_L"
15420     # Check whether --enable-rpath or --disable-rpath was given.
15421 if test "${enable_rpath+set}" = set; then
15422   enableval="$enable_rpath"
15423   :
15424 else
15425   enable_rpath=yes
15426 fi;
15427
15428
15429
15430
15431
15432
15433
15434     use_additional=yes
15435
15436   acl_save_prefix="$prefix"
15437   prefix="$acl_final_prefix"
15438   acl_save_exec_prefix="$exec_prefix"
15439   exec_prefix="$acl_final_exec_prefix"
15440
15441     eval additional_includedir=\"$includedir\"
15442     eval additional_libdir=\"$libdir\"
15443
15444   exec_prefix="$acl_save_exec_prefix"
15445   prefix="$acl_save_prefix"
15446
15447
15448 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15449 if test "${with_libiconv_prefix+set}" = set; then
15450   withval="$with_libiconv_prefix"
15451
15452     if test "X$withval" = "Xno"; then
15453       use_additional=no
15454     else
15455       if test "X$withval" = "X"; then
15456
15457   acl_save_prefix="$prefix"
15458   prefix="$acl_final_prefix"
15459   acl_save_exec_prefix="$exec_prefix"
15460   exec_prefix="$acl_final_exec_prefix"
15461
15462           eval additional_includedir=\"$includedir\"
15463           eval additional_libdir=\"$libdir\"
15464
15465   exec_prefix="$acl_save_exec_prefix"
15466   prefix="$acl_save_prefix"
15467
15468       else
15469         additional_includedir="$withval/include"
15470         additional_libdir="$withval/lib"
15471       fi
15472     fi
15473
15474 fi;
15475       LIBICONV=
15476   LTLIBICONV=
15477   INCICONV=
15478   rpathdirs=
15479   ltrpathdirs=
15480   names_already_handled=
15481   names_next_round='iconv '
15482   while test -n "$names_next_round"; do
15483     names_this_round="$names_next_round"
15484     names_next_round=
15485     for name in $names_this_round; do
15486       already_handled=
15487       for n in $names_already_handled; do
15488         if test "$n" = "$name"; then
15489           already_handled=yes
15490           break
15491         fi
15492       done
15493       if test -z "$already_handled"; then
15494         names_already_handled="$names_already_handled $name"
15495                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15496         eval value=\"\$HAVE_LIB$uppername\"
15497         if test -n "$value"; then
15498           if test "$value" = yes; then
15499             eval value=\"\$LIB$uppername\"
15500             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15501             eval value=\"\$LTLIB$uppername\"
15502             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15503           else
15504                                     :
15505           fi
15506         else
15507                               found_dir=
15508           found_la=
15509           found_so=
15510           found_a=
15511           if test $use_additional = yes; then
15512             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15513               found_dir="$additional_libdir"
15514               found_so="$additional_libdir/lib$name.$shlibext"
15515               if test -f "$additional_libdir/lib$name.la"; then
15516                 found_la="$additional_libdir/lib$name.la"
15517               fi
15518             else
15519               if test -f "$additional_libdir/lib$name.$libext"; then
15520                 found_dir="$additional_libdir"
15521                 found_a="$additional_libdir/lib$name.$libext"
15522                 if test -f "$additional_libdir/lib$name.la"; then
15523                   found_la="$additional_libdir/lib$name.la"
15524                 fi
15525               fi
15526             fi
15527           fi
15528           if test "X$found_dir" = "X"; then
15529             for x in $LDFLAGS $LTLIBICONV; do
15530
15531   acl_save_prefix="$prefix"
15532   prefix="$acl_final_prefix"
15533   acl_save_exec_prefix="$exec_prefix"
15534   exec_prefix="$acl_final_exec_prefix"
15535   eval x=\"$x\"
15536   exec_prefix="$acl_save_exec_prefix"
15537   prefix="$acl_save_prefix"
15538
15539               case "$x" in
15540                 -L*)
15541                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15542                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15543                     found_dir="$dir"
15544                     found_so="$dir/lib$name.$shlibext"
15545                     if test -f "$dir/lib$name.la"; then
15546                       found_la="$dir/lib$name.la"
15547                     fi
15548                   else
15549                     if test -f "$dir/lib$name.$libext"; then
15550                       found_dir="$dir"
15551                       found_a="$dir/lib$name.$libext"
15552                       if test -f "$dir/lib$name.la"; then
15553                         found_la="$dir/lib$name.la"
15554                       fi
15555                     fi
15556                   fi
15557                   ;;
15558               esac
15559               if test "X$found_dir" != "X"; then
15560                 break
15561               fi
15562             done
15563           fi
15564           if test "X$found_dir" != "X"; then
15565                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15566             if test "X$found_so" != "X"; then
15567                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15568                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15569               else
15570                                                                                 haveit=
15571                 for x in $ltrpathdirs; do
15572                   if test "X$x" = "X$found_dir"; then
15573                     haveit=yes
15574                     break
15575                   fi
15576                 done
15577                 if test -z "$haveit"; then
15578                   ltrpathdirs="$ltrpathdirs $found_dir"
15579                 fi
15580                                 if test "$hardcode_direct" = yes; then
15581                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15582                 else
15583                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15584                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15585                                                             haveit=
15586                     for x in $rpathdirs; do
15587                       if test "X$x" = "X$found_dir"; then
15588                         haveit=yes
15589                         break
15590                       fi
15591                     done
15592                     if test -z "$haveit"; then
15593                       rpathdirs="$rpathdirs $found_dir"
15594                     fi
15595                   else
15596                                                                                 haveit=
15597                     for x in $LDFLAGS $LIBICONV; do
15598
15599   acl_save_prefix="$prefix"
15600   prefix="$acl_final_prefix"
15601   acl_save_exec_prefix="$exec_prefix"
15602   exec_prefix="$acl_final_exec_prefix"
15603   eval x=\"$x\"
15604   exec_prefix="$acl_save_exec_prefix"
15605   prefix="$acl_save_prefix"
15606
15607                       if test "X$x" = "X-L$found_dir"; then
15608                         haveit=yes
15609                         break
15610                       fi
15611                     done
15612                     if test -z "$haveit"; then
15613                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15614                     fi
15615                     if test "$hardcode_minus_L" != no; then
15616                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15617                     else
15618                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15619                     fi
15620                   fi
15621                 fi
15622               fi
15623             else
15624               if test "X$found_a" != "X"; then
15625                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15626               else
15627                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15628               fi
15629             fi
15630                         additional_includedir=
15631             case "$found_dir" in
15632               */lib | */lib/)
15633                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15634                 additional_includedir="$basedir/include"
15635                 ;;
15636             esac
15637             if test "X$additional_includedir" != "X"; then
15638                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15639                 haveit=
15640                 if test "X$additional_includedir" = "X/usr/local/include"; then
15641                   if test -n "$GCC"; then
15642                     case $host_os in
15643                       linux*) haveit=yes;;
15644                     esac
15645                   fi
15646                 fi
15647                 if test -z "$haveit"; then
15648                   for x in $CPPFLAGS $INCICONV; do
15649
15650   acl_save_prefix="$prefix"
15651   prefix="$acl_final_prefix"
15652   acl_save_exec_prefix="$exec_prefix"
15653   exec_prefix="$acl_final_exec_prefix"
15654   eval x=\"$x\"
15655   exec_prefix="$acl_save_exec_prefix"
15656   prefix="$acl_save_prefix"
15657
15658                     if test "X$x" = "X-I$additional_includedir"; then
15659                       haveit=yes
15660                       break
15661                     fi
15662                   done
15663                   if test -z "$haveit"; then
15664                     if test -d "$additional_includedir"; then
15665                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15666                     fi
15667                   fi
15668                 fi
15669               fi
15670             fi
15671                         if test -n "$found_la"; then
15672                                                         save_libdir="$libdir"
15673               case "$found_la" in
15674                 */* | *\\*) . "$found_la" ;;
15675                 *) . "./$found_la" ;;
15676               esac
15677               libdir="$save_libdir"
15678                             for dep in $dependency_libs; do
15679                 case "$dep" in
15680                   -L*)
15681                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15682                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
15683                       haveit=
15684                       if test "X$additional_libdir" = "X/usr/local/lib"; then
15685                         if test -n "$GCC"; then
15686                           case $host_os in
15687                             linux*) haveit=yes;;
15688                           esac
15689                         fi
15690                       fi
15691                       if test -z "$haveit"; then
15692                         haveit=
15693                         for x in $LDFLAGS $LIBICONV; do
15694
15695   acl_save_prefix="$prefix"
15696   prefix="$acl_final_prefix"
15697   acl_save_exec_prefix="$exec_prefix"
15698   exec_prefix="$acl_final_exec_prefix"
15699   eval x=\"$x\"
15700   exec_prefix="$acl_save_exec_prefix"
15701   prefix="$acl_save_prefix"
15702
15703                           if test "X$x" = "X-L$additional_libdir"; then
15704                             haveit=yes
15705                             break
15706                           fi
15707                         done
15708                         if test -z "$haveit"; then
15709                           if test -d "$additional_libdir"; then
15710                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15711                           fi
15712                         fi
15713                         haveit=
15714                         for x in $LDFLAGS $LTLIBICONV; do
15715
15716   acl_save_prefix="$prefix"
15717   prefix="$acl_final_prefix"
15718   acl_save_exec_prefix="$exec_prefix"
15719   exec_prefix="$acl_final_exec_prefix"
15720   eval x=\"$x\"
15721   exec_prefix="$acl_save_exec_prefix"
15722   prefix="$acl_save_prefix"
15723
15724                           if test "X$x" = "X-L$additional_libdir"; then
15725                             haveit=yes
15726                             break
15727                           fi
15728                         done
15729                         if test -z "$haveit"; then
15730                           if test -d "$additional_libdir"; then
15731                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15732                           fi
15733                         fi
15734                       fi
15735                     fi
15736                     ;;
15737                   -R*)
15738                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15739                     if test "$enable_rpath" != no; then
15740                                                                   haveit=
15741                       for x in $rpathdirs; do
15742                         if test "X$x" = "X$dir"; then
15743                           haveit=yes
15744                           break
15745                         fi
15746                       done
15747                       if test -z "$haveit"; then
15748                         rpathdirs="$rpathdirs $dir"
15749                       fi
15750                                                                   haveit=
15751                       for x in $ltrpathdirs; do
15752                         if test "X$x" = "X$dir"; then
15753                           haveit=yes
15754                           break
15755                         fi
15756                       done
15757                       if test -z "$haveit"; then
15758                         ltrpathdirs="$ltrpathdirs $dir"
15759                       fi
15760                     fi
15761                     ;;
15762                   -l*)
15763                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15764                     ;;
15765                   *.la)
15766                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15767                     ;;
15768                   *)
15769                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15770                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15771                     ;;
15772                 esac
15773               done
15774             fi
15775           else
15776                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15777             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15778           fi
15779         fi
15780       fi
15781     done
15782   done
15783   if test "X$rpathdirs" != "X"; then
15784     if test -n "$hardcode_libdir_separator"; then
15785                         alldirs=
15786       for found_dir in $rpathdirs; do
15787         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15788       done
15789             acl_save_libdir="$libdir"
15790       libdir="$alldirs"
15791       eval flag=\"$hardcode_libdir_flag_spec\"
15792       libdir="$acl_save_libdir"
15793       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15794     else
15795             for found_dir in $rpathdirs; do
15796         acl_save_libdir="$libdir"
15797         libdir="$found_dir"
15798         eval flag=\"$hardcode_libdir_flag_spec\"
15799         libdir="$acl_save_libdir"
15800         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15801       done
15802     fi
15803   fi
15804   if test "X$ltrpathdirs" != "X"; then
15805             for found_dir in $ltrpathdirs; do
15806       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15807     done
15808   fi
15809
15810
15811
15812
15813
15814
15815
15816           am_save_CPPFLAGS="$CPPFLAGS"
15817
15818   for element in $INCICONV; do
15819     haveit=
15820     for x in $CPPFLAGS; do
15821
15822   acl_save_prefix="$prefix"
15823   prefix="$acl_final_prefix"
15824   acl_save_exec_prefix="$exec_prefix"
15825   exec_prefix="$acl_final_exec_prefix"
15826   eval x=\"$x\"
15827   exec_prefix="$acl_save_exec_prefix"
15828   prefix="$acl_save_prefix"
15829
15830       if test "X$x" = "X$element"; then
15831         haveit=yes
15832         break
15833       fi
15834     done
15835     if test -z "$haveit"; then
15836       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15837     fi
15838   done
15839
15840
15841   echo "$as_me:$LINENO: checking for iconv" >&5
15842 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15843 if test "${am_cv_func_iconv+set}" = set; then
15844   echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846
15847     am_cv_func_iconv="no, consider installing GNU libiconv"
15848     am_cv_lib_iconv=no
15849     cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h.  */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h.  */
15855 #include <stdlib.h>
15856 #include <iconv.h>
15857 int
15858 main ()
15859 {
15860 iconv_t cd = iconv_open("","");
15861        iconv(cd,NULL,NULL,NULL,NULL);
15862        iconv_close(cd);
15863   ;
15864   return 0;
15865 }
15866 _ACEOF
15867 rm -f conftest.$ac_objext conftest$ac_exeext
15868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15869   (eval $ac_link) 2>conftest.er1
15870   ac_status=$?
15871   grep -v '^ *+' conftest.er1 >conftest.err
15872   rm -f conftest.er1
15873   cat conftest.err >&5
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } &&
15876          { ac_try='test -z "$ac_c_werror_flag"
15877                          || test ! -s conftest.err'
15878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879   (eval $ac_try) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); }; } &&
15883          { ac_try='test -s conftest$ac_exeext'
15884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885   (eval $ac_try) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); }; }; then
15889   am_cv_func_iconv=yes
15890 else
15891   echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 fi
15895 rm -f conftest.err conftest.$ac_objext \
15896       conftest$ac_exeext conftest.$ac_ext
15897     if test "$am_cv_func_iconv" != yes; then
15898       am_save_LIBS="$LIBS"
15899       LIBS="$LIBS $LIBICONV"
15900       cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h.  */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h.  */
15906 #include <stdlib.h>
15907 #include <iconv.h>
15908 int
15909 main ()
15910 {
15911 iconv_t cd = iconv_open("","");
15912          iconv(cd,NULL,NULL,NULL,NULL);
15913          iconv_close(cd);
15914   ;
15915   return 0;
15916 }
15917 _ACEOF
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15920   (eval $ac_link) 2>conftest.er1
15921   ac_status=$?
15922   grep -v '^ *+' conftest.er1 >conftest.err
15923   rm -f conftest.er1
15924   cat conftest.err >&5
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); } &&
15927          { ac_try='test -z "$ac_c_werror_flag"
15928                          || test ! -s conftest.err'
15929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930   (eval $ac_try) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; } &&
15934          { ac_try='test -s conftest$ac_exeext'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; }; then
15940   am_cv_lib_iconv=yes
15941         am_cv_func_iconv=yes
15942 else
15943   echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946 fi
15947 rm -f conftest.err conftest.$ac_objext \
15948       conftest$ac_exeext conftest.$ac_ext
15949       LIBS="$am_save_LIBS"
15950     fi
15951
15952 fi
15953 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15954 echo "${ECHO_T}$am_cv_func_iconv" >&6
15955   if test "$am_cv_func_iconv" = yes; then
15956
15957 cat >>confdefs.h <<\_ACEOF
15958 #define HAVE_ICONV 1
15959 _ACEOF
15960
15961   fi
15962   if test "$am_cv_lib_iconv" = yes; then
15963     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15964 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
15965     echo "$as_me:$LINENO: result: $LIBICONV" >&5
15966 echo "${ECHO_T}$LIBICONV" >&6
15967   else
15968             CPPFLAGS="$am_save_CPPFLAGS"
15969     LIBICONV=
15970     LTLIBICONV=
15971   fi
15972
15973
15974
15975   if test "$am_cv_func_iconv" = yes; then
15976     echo "$as_me:$LINENO: checking for iconv declaration" >&5
15977 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15978     if test "${am_cv_proto_iconv+set}" = set; then
15979   echo $ECHO_N "(cached) $ECHO_C" >&6
15980 else
15981
15982       cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h.  */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h.  */
15988
15989 #include <stdlib.h>
15990 #include <iconv.h>
15991 extern
15992 #ifdef __cplusplus
15993 "C"
15994 #endif
15995 #if defined(__STDC__) || defined(__cplusplus)
15996 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15997 #else
15998 size_t iconv();
15999 #endif
16000
16001 int
16002 main ()
16003 {
16004
16005   ;
16006   return 0;
16007 }
16008 _ACEOF
16009 rm -f conftest.$ac_objext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16011   (eval $ac_compile) 2>conftest.er1
16012   ac_status=$?
16013   grep -v '^ *+' conftest.er1 >conftest.err
16014   rm -f conftest.er1
16015   cat conftest.err >&5
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); } &&
16018          { ac_try='test -z "$ac_c_werror_flag"
16019                          || test ! -s conftest.err'
16020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021   (eval $ac_try) 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; } &&
16025          { ac_try='test -s conftest.$ac_objext'
16026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027   (eval $ac_try) 2>&5
16028   ac_status=$?
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); }; }; then
16031   am_cv_proto_iconv_arg1=""
16032 else
16033   echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16035
16036 am_cv_proto_iconv_arg1="const"
16037 fi
16038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16039       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16040 fi
16041
16042     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16043     echo "$as_me:$LINENO: result: ${ac_t:-
16044          }$am_cv_proto_iconv" >&5
16045 echo "${ECHO_T}${ac_t:-
16046          }$am_cv_proto_iconv" >&6
16047
16048 cat >>confdefs.h <<_ACEOF
16049 #define ICONV_CONST $am_cv_proto_iconv_arg1
16050 _ACEOF
16051
16052   fi
16053
16054
16055 all_targets=false
16056 BUILD_NLMCONV=
16057 NLMCONV_DEFS=
16058 BUILD_SRCONV=
16059 BUILD_DLLTOOL=
16060 DLLTOOL_DEFS=
16061 DLLTOOL_DEFAULT=
16062 BUILD_WINDRES=
16063 BUILD_WINDMC=
16064 BUILD_DLLWRAP=
16065 BUILD_MISC=
16066 BUILD_INSTALL_MISC=
16067 OBJDUMP_DEFS=
16068
16069 for targ in $target $canon_targets
16070 do
16071     if test "x$targ" = "xall"; then
16072         all_targets=true
16073         BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16074         BUILD_SRCONV='$(SRCONV_PROG)'
16075         NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
16076         BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
16077         BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16078         BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16079         BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16080         if test -z "$DLLTOOL_DEFAULT"; then
16081           DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16082         fi
16083         DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16084         BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16085     else
16086         case $targ in
16087         i[3-7]86*-*-netware*)
16088           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16089           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
16090           ;;
16091         alpha*-*-netware*)
16092           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16093           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
16094           ;;
16095         powerpc*-*-netware*)
16096           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16097           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
16098           ;;
16099         sparc*-*-netware*)
16100           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16101           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
16102           ;;
16103         esac
16104         case $targ in
16105         *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
16106         esac
16107         case $targ in
16108         arm-epoc-pe*)
16109           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16110           if test -z "$DLLTOOL_DEFAULT"; then
16111             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
16112           fi
16113           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
16114           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16115           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16116           ;;
16117         arm-wince-pe* | arm-*-wince)
16118           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16119           if test -z "$DLLTOOL_DEFAULT"; then
16120             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
16121           fi
16122           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16123           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16124           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16125           ;;
16126         arm-*-pe*)
16127           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16128           if test -z "$DLLTOOL_DEFAULT"; then
16129             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16130           fi
16131           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16132           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16133           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16134           ;;
16135         thumb-*-pe*)
16136           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16137           if test -z "$DLLTOOL_DEFAULT"; then
16138             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16139           fi
16140           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16141           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16142           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16143           ;;
16144         x86_64-*-mingw*)
16145           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16146           if test -z "$DLLTOOL_DEFAULT"; then
16147             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16148           fi
16149           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16150           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16151           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16152           BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16153           ;;
16154         i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
16155           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16156           if test -z "$DLLTOOL_DEFAULT"; then
16157             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16158           fi
16159           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16160           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16161           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16162           BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16163           ;;
16164         i[3-7]86-*-interix)
16165           BUILD_DLLTOOL='$(DLLTOOL_PROG)'
16166           if test -z "$DLLTOOL_DEFAULT"; then
16167             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16168           fi
16169           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16170           ;;
16171         powerpc*-aix5.[01])
16172           ;;
16173         powerpc*-aix5.*)
16174           OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16175           ;;
16176         powerpc*-*-pe* | powerpc*-*-cygwin*)
16177           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16178           if test -z "$DLLTOOL_DEFAULT"; then
16179             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
16180           fi
16181           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
16182           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16183           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16184           ;;
16185         powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
16186           BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
16187           ;;
16188         sh*-*-pe)
16189           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16190           if test -z "$DLLTOOL_DEFAULT"; then
16191             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16192           fi
16193           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16194           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16195           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16196           ;;
16197         spu-*-*)
16198           BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
16199           ;;
16200         mips*-*-pe)
16201           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16202           if test -z "$DLLTOOL_DEFAULT"; then
16203             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
16204           fi
16205           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
16206           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16207           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16208           ;;
16209         mcore-*-pe)
16210           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16211           if test -z "$DLLTOOL_DEFAULT"; then
16212             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
16213           fi
16214           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16215           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16216           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16217           ;;
16218         mcore-*-elf)
16219           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16220           if test -z "$DLLTOOL_DEFAULT"; then
16221             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
16222           fi
16223           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
16224           ;;
16225         mep-*)
16226           OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16227           ;;
16228         esac
16229     fi
16230 done
16231
16232 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16233
16234 if test "${with_windres+set}" = set; then
16235           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16236 fi
16237
16238 if test "${with_windmc+set}" = set; then
16239           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16240 fi
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255 cat >>confdefs.h <<_ACEOF
16256 #define TARGET "${target}"
16257 _ACEOF
16258
16259
16260 targ=$target
16261 . $srcdir/../bfd/config.bfd
16262 if test "x$targ_underscore" = "xyes"; then
16263     UNDERSCORE=1
16264 else
16265     UNDERSCORE=0
16266 fi
16267
16268 cat >>confdefs.h <<_ACEOF
16269 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16270 _ACEOF
16271
16272
16273 # Emulation
16274 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16275 do
16276   # Canonicalize the secondary target names.
16277  result=`$ac_config_sub $targ_alias 2>/dev/null`
16278  if test -n "$result"; then
16279    targ=$result
16280  else
16281    targ=$targ_alias
16282  fi
16283
16284  . ${srcdir}/configure.tgt
16285
16286   EMULATION=$targ_emul
16287   EMULATION_VECTOR=$targ_emul_vector
16288 done
16289
16290
16291
16292
16293 # Required for html and install-html
16294
16295
16296
16297
16298                               ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
16299
16300 cat >confcache <<\_ACEOF
16301 # This file is a shell script that caches the results of configure
16302 # tests run on this system so they can be shared between configure
16303 # scripts and configure runs, see configure's option --config-cache.
16304 # It is not useful on other systems.  If it contains results you don't
16305 # want to keep, you may remove or edit it.
16306 #
16307 # config.status only pays attention to the cache file if you give it
16308 # the --recheck option to rerun configure.
16309 #
16310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16312 # following values.
16313
16314 _ACEOF
16315
16316 # The following way of writing the cache mishandles newlines in values,
16317 # but we know of no workaround that is simple, portable, and efficient.
16318 # So, don't put newlines in cache variables' values.
16319 # Ultrix sh set writes to stderr and can't be redirected directly,
16320 # and sets the high bit in the cache file unless we assign to the vars.
16321 {
16322   (set) 2>&1 |
16323     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16324     *ac_space=\ *)
16325       # `set' does not quote correctly, so add quotes (double-quote
16326       # substitution turns \\\\ into \\, and sed turns \\ into \).
16327       sed -n \
16328         "s/'/'\\\\''/g;
16329           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16330       ;;
16331     *)
16332       # `set' quotes correctly as required by POSIX, so do not add quotes.
16333       sed -n \
16334         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16335       ;;
16336     esac;
16337 } |
16338   sed '
16339      t clear
16340      : clear
16341      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16342      t end
16343      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16344      : end' >>confcache
16345 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16346   if test -w $cache_file; then
16347     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16348     cat confcache >$cache_file
16349   else
16350     echo "not updating unwritable cache $cache_file"
16351   fi
16352 fi
16353 rm -f confcache
16354
16355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16356 # Let make expand exec_prefix.
16357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16358
16359 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16360 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16361 # trailing colons and then remove the whole line if VPATH becomes empty
16362 # (actually we leave an empty line to preserve line numbers).
16363 if test "x$srcdir" = x.; then
16364   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16365 s/:*\$(srcdir):*/:/;
16366 s/:*\${srcdir}:*/:/;
16367 s/:*@srcdir@:*/:/;
16368 s/^\([^=]*=[     ]*\):*/\1/;
16369 s/:*$//;
16370 s/^[^=]*=[       ]*$//;
16371 }'
16372 fi
16373
16374 DEFS=-DHAVE_CONFIG_H
16375
16376 ac_libobjs=
16377 ac_ltlibobjs=
16378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16379   # 1. Remove the extension, and $U if already installed.
16380   ac_i=`echo "$ac_i" |
16381          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16382   # 2. Add them.
16383   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16384   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16385 done
16386 LIBOBJS=$ac_libobjs
16387
16388 LTLIBOBJS=$ac_ltlibobjs
16389
16390
16391 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16392   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16393 Usually this means the macro was only invoked conditionally." >&5
16394 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16395 Usually this means the macro was only invoked conditionally." >&2;}
16396    { (exit 1); exit 1; }; }
16397 fi
16398 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16399   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16400 Usually this means the macro was only invoked conditionally." >&5
16401 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16402 Usually this means the macro was only invoked conditionally." >&2;}
16403    { (exit 1); exit 1; }; }
16404 fi
16405 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16406   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16407 Usually this means the macro was only invoked conditionally." >&5
16408 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16409 Usually this means the macro was only invoked conditionally." >&2;}
16410    { (exit 1); exit 1; }; }
16411 fi
16412 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16413   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
16414 Usually this means the macro was only invoked conditionally." >&5
16415 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
16416 Usually this means the macro was only invoked conditionally." >&2;}
16417    { (exit 1); exit 1; }; }
16418 fi
16419
16420 : ${CONFIG_STATUS=./config.status}
16421 ac_clean_files_save=$ac_clean_files
16422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16423 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16424 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16425 cat >$CONFIG_STATUS <<_ACEOF
16426 #! $SHELL
16427 # Generated by $as_me.
16428 # Run this file to recreate the current configuration.
16429 # Compiler output produced by configure, useful for debugging
16430 # configure, is in config.log if it exists.
16431
16432 debug=false
16433 ac_cs_recheck=false
16434 ac_cs_silent=false
16435 SHELL=\${CONFIG_SHELL-$SHELL}
16436 _ACEOF
16437
16438 cat >>$CONFIG_STATUS <<\_ACEOF
16439 ## --------------------- ##
16440 ## M4sh Initialization.  ##
16441 ## --------------------- ##
16442
16443 # Be Bourne compatible
16444 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16445   emulate sh
16446   NULLCMD=:
16447   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16448   # is contrary to our usage.  Disable this feature.
16449   alias -g '${1+"$@"}'='"$@"'
16450 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16451   set -o posix
16452 fi
16453 DUALCASE=1; export DUALCASE # for MKS sh
16454
16455 # Support unset when possible.
16456 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16457   as_unset=unset
16458 else
16459   as_unset=false
16460 fi
16461
16462
16463 # Work around bugs in pre-3.0 UWIN ksh.
16464 $as_unset ENV MAIL MAILPATH
16465 PS1='$ '
16466 PS2='> '
16467 PS4='+ '
16468
16469 # NLS nuisances.
16470 for as_var in \
16471   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16472   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16473   LC_TELEPHONE LC_TIME
16474 do
16475   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16476     eval $as_var=C; export $as_var
16477   else
16478     $as_unset $as_var
16479   fi
16480 done
16481
16482 # Required to use basename.
16483 if expr a : '\(a\)' >/dev/null 2>&1; then
16484   as_expr=expr
16485 else
16486   as_expr=false
16487 fi
16488
16489 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16490   as_basename=basename
16491 else
16492   as_basename=false
16493 fi
16494
16495
16496 # Name of the executable.
16497 as_me=`$as_basename "$0" ||
16498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16499          X"$0" : 'X\(//\)$' \| \
16500          X"$0" : 'X\(/\)$' \| \
16501          .     : '\(.\)' 2>/dev/null ||
16502 echo X/"$0" |
16503     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16504           /^X\/\(\/\/\)$/{ s//\1/; q; }
16505           /^X\/\(\/\).*/{ s//\1/; q; }
16506           s/.*/./; q'`
16507
16508
16509 # PATH needs CR, and LINENO needs CR and PATH.
16510 # Avoid depending upon Character Ranges.
16511 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16512 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16513 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16514 as_cr_digits='0123456789'
16515 as_cr_alnum=$as_cr_Letters$as_cr_digits
16516
16517 # The user is always right.
16518 if test "${PATH_SEPARATOR+set}" != set; then
16519   echo "#! /bin/sh" >conf$$.sh
16520   echo  "exit 0"   >>conf$$.sh
16521   chmod +x conf$$.sh
16522   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16523     PATH_SEPARATOR=';'
16524   else
16525     PATH_SEPARATOR=:
16526   fi
16527   rm -f conf$$.sh
16528 fi
16529
16530
16531   as_lineno_1=$LINENO
16532   as_lineno_2=$LINENO
16533   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16534   test "x$as_lineno_1" != "x$as_lineno_2" &&
16535   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16536   # Find who we are.  Look in the path if we contain no path at all
16537   # relative or not.
16538   case $0 in
16539     *[\\/]* ) as_myself=$0 ;;
16540     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16541 for as_dir in $PATH
16542 do
16543   IFS=$as_save_IFS
16544   test -z "$as_dir" && as_dir=.
16545   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16546 done
16547
16548        ;;
16549   esac
16550   # We did not find ourselves, most probably we were run as `sh COMMAND'
16551   # in which case we are not to be found in the path.
16552   if test "x$as_myself" = x; then
16553     as_myself=$0
16554   fi
16555   if test ! -f "$as_myself"; then
16556     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16557 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16558    { (exit 1); exit 1; }; }
16559   fi
16560   case $CONFIG_SHELL in
16561   '')
16562     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16563 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16564 do
16565   IFS=$as_save_IFS
16566   test -z "$as_dir" && as_dir=.
16567   for as_base in sh bash ksh sh5; do
16568          case $as_dir in
16569          /*)
16570            if ("$as_dir/$as_base" -c '
16571   as_lineno_1=$LINENO
16572   as_lineno_2=$LINENO
16573   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16574   test "x$as_lineno_1" != "x$as_lineno_2" &&
16575   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16576              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16577              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16578              CONFIG_SHELL=$as_dir/$as_base
16579              export CONFIG_SHELL
16580              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16581            fi;;
16582          esac
16583        done
16584 done
16585 ;;
16586   esac
16587
16588   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16589   # uniformly replaced by the line number.  The first 'sed' inserts a
16590   # line-number line before each line; the second 'sed' does the real
16591   # work.  The second script uses 'N' to pair each line-number line
16592   # with the numbered line, and appends trailing '-' during
16593   # substitution so that $LINENO is not a special case at line end.
16594   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16595   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16596   sed '=' <$as_myself |
16597     sed '
16598       N
16599       s,$,-,
16600       : loop
16601       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16602       t loop
16603       s,-$,,
16604       s,^['$as_cr_digits']*\n,,
16605     ' >$as_me.lineno &&
16606   chmod +x $as_me.lineno ||
16607     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16608 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16609    { (exit 1); exit 1; }; }
16610
16611   # Don't try to exec as it changes $[0], causing all sort of problems
16612   # (the dirname of $[0] is not the place where we might find the
16613   # original and so on.  Autoconf is especially sensible to this).
16614   . ./$as_me.lineno
16615   # Exit status is that of the last command.
16616   exit
16617 }
16618
16619
16620 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16621   *c*,-n*) ECHO_N= ECHO_C='
16622 ' ECHO_T='      ' ;;
16623   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16624   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16625 esac
16626
16627 if expr a : '\(a\)' >/dev/null 2>&1; then
16628   as_expr=expr
16629 else
16630   as_expr=false
16631 fi
16632
16633 rm -f conf$$ conf$$.exe conf$$.file
16634 echo >conf$$.file
16635 if ln -s conf$$.file conf$$ 2>/dev/null; then
16636   # We could just check for DJGPP; but this test a) works b) is more generic
16637   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16638   if test -f conf$$.exe; then
16639     # Don't use ln at all; we don't have any links
16640     as_ln_s='cp -p'
16641   else
16642     as_ln_s='ln -s'
16643   fi
16644 elif ln conf$$.file conf$$ 2>/dev/null; then
16645   as_ln_s=ln
16646 else
16647   as_ln_s='cp -p'
16648 fi
16649 rm -f conf$$ conf$$.exe conf$$.file
16650
16651 if mkdir -p . 2>/dev/null; then
16652   as_mkdir_p=:
16653 else
16654   test -d ./-p && rmdir ./-p
16655   as_mkdir_p=false
16656 fi
16657
16658 as_executable_p="test -f"
16659
16660 # Sed expression to map a string onto a valid CPP name.
16661 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16662
16663 # Sed expression to map a string onto a valid variable name.
16664 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16665
16666
16667 # IFS
16668 # We need space, tab and new line, in precisely that order.
16669 as_nl='
16670 '
16671 IFS="   $as_nl"
16672
16673 # CDPATH.
16674 $as_unset CDPATH
16675
16676 exec 6>&1
16677
16678 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16679 # report actual input values of CONFIG_FILES etc. instead of their
16680 # values after options handling.  Logging --version etc. is OK.
16681 exec 5>>config.log
16682 {
16683   echo
16684   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16685 ## Running $as_me. ##
16686 _ASBOX
16687 } >&5
16688 cat >&5 <<_CSEOF
16689
16690 This file was extended by $as_me, which was
16691 generated by GNU Autoconf 2.59.  Invocation command line was
16692
16693   CONFIG_FILES    = $CONFIG_FILES
16694   CONFIG_HEADERS  = $CONFIG_HEADERS
16695   CONFIG_LINKS    = $CONFIG_LINKS
16696   CONFIG_COMMANDS = $CONFIG_COMMANDS
16697   $ $0 $@
16698
16699 _CSEOF
16700 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16701 echo >&5
16702 _ACEOF
16703
16704 # Files that config.status was made for.
16705 if test -n "$ac_config_files"; then
16706   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16707 fi
16708
16709 if test -n "$ac_config_headers"; then
16710   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16711 fi
16712
16713 if test -n "$ac_config_links"; then
16714   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16715 fi
16716
16717 if test -n "$ac_config_commands"; then
16718   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16719 fi
16720
16721 cat >>$CONFIG_STATUS <<\_ACEOF
16722
16723 ac_cs_usage="\
16724 \`$as_me' instantiates files from templates according to the
16725 current configuration.
16726
16727 Usage: $0 [OPTIONS] [FILE]...
16728
16729   -h, --help       print this help, then exit
16730   -V, --version    print version number, then exit
16731   -q, --quiet      do not print progress messages
16732   -d, --debug      don't remove temporary files
16733       --recheck    update $as_me by reconfiguring in the same conditions
16734   --file=FILE[:TEMPLATE]
16735                    instantiate the configuration file FILE
16736   --header=FILE[:TEMPLATE]
16737                    instantiate the configuration header FILE
16738
16739 Configuration files:
16740 $config_files
16741
16742 Configuration headers:
16743 $config_headers
16744
16745 Configuration commands:
16746 $config_commands
16747
16748 Report bugs to <bug-autoconf@gnu.org>."
16749 _ACEOF
16750
16751 cat >>$CONFIG_STATUS <<_ACEOF
16752 ac_cs_version="\\
16753 config.status
16754 configured by $0, generated by GNU Autoconf 2.59,
16755   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16756
16757 Copyright (C) 2003 Free Software Foundation, Inc.
16758 This config.status script is free software; the Free Software Foundation
16759 gives unlimited permission to copy, distribute and modify it."
16760 srcdir=$srcdir
16761 INSTALL="$INSTALL"
16762 _ACEOF
16763
16764 cat >>$CONFIG_STATUS <<\_ACEOF
16765 # If no file are specified by the user, then we need to provide default
16766 # value.  By we need to know if files were specified by the user.
16767 ac_need_defaults=:
16768 while test $# != 0
16769 do
16770   case $1 in
16771   --*=*)
16772     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16773     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16774     ac_shift=:
16775     ;;
16776   -*)
16777     ac_option=$1
16778     ac_optarg=$2
16779     ac_shift=shift
16780     ;;
16781   *) # This is not an option, so the user has probably given explicit
16782      # arguments.
16783      ac_option=$1
16784      ac_need_defaults=false;;
16785   esac
16786
16787   case $ac_option in
16788   # Handling of the options.
16789 _ACEOF
16790 cat >>$CONFIG_STATUS <<\_ACEOF
16791   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16792     ac_cs_recheck=: ;;
16793   --version | --vers* | -V )
16794     echo "$ac_cs_version"; exit 0 ;;
16795   --he | --h)
16796     # Conflict between --help and --header
16797     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16798 Try \`$0 --help' for more information." >&5
16799 echo "$as_me: error: ambiguous option: $1
16800 Try \`$0 --help' for more information." >&2;}
16801    { (exit 1); exit 1; }; };;
16802   --help | --hel | -h )
16803     echo "$ac_cs_usage"; exit 0 ;;
16804   --debug | --d* | -d )
16805     debug=: ;;
16806   --file | --fil | --fi | --f )
16807     $ac_shift
16808     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16809     ac_need_defaults=false;;
16810   --header | --heade | --head | --hea )
16811     $ac_shift
16812     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16813     ac_need_defaults=false;;
16814   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16815   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16816     ac_cs_silent=: ;;
16817
16818   # This is an error.
16819   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16820 Try \`$0 --help' for more information." >&5
16821 echo "$as_me: error: unrecognized option: $1
16822 Try \`$0 --help' for more information." >&2;}
16823    { (exit 1); exit 1; }; } ;;
16824
16825   *) ac_config_targets="$ac_config_targets $1" ;;
16826
16827   esac
16828   shift
16829 done
16830
16831 ac_configure_extra_args=
16832
16833 if $ac_cs_silent; then
16834   exec 6>/dev/null
16835   ac_configure_extra_args="$ac_configure_extra_args --silent"
16836 fi
16837
16838 _ACEOF
16839 cat >>$CONFIG_STATUS <<_ACEOF
16840 if \$ac_cs_recheck; then
16841   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16842   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16843 fi
16844
16845 _ACEOF
16846
16847 cat >>$CONFIG_STATUS <<_ACEOF
16848 #
16849 # INIT-COMMANDS section.
16850 #
16851
16852 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16853
16854
16855 # The HP-UX ksh and POSIX shell print the target directory to stdout
16856 # if CDPATH is set.
16857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16858
16859 sed_quote_subst='$sed_quote_subst'
16860 double_quote_subst='$double_quote_subst'
16861 delay_variable_subst='$delay_variable_subst'
16862 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16863 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16864 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16865 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16866 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16867 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16868 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16869 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16870 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16871 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16872 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16873 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16874 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16875 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16876 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16877 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16878 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16879 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16880 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16881 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16882 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16883 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16884 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16885 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16886 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16887 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16888 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16889 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16890 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16891 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16892 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16893 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16894 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16895 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16896 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16897 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16898 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16899 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16900 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16901 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16902 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16903 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16904 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16905 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16906 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"`'
16907 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16908 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16909 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16910 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16911 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16912 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16913 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16914 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16915 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16916 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16917 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16918 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16919 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16920 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16921 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16922 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16923 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16924 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16925 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16926 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16927 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16928 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16929 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16930 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16931 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16932 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16933 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16934 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16935 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16936 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16937 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16938 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16939 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16940 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16941 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16942 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16943 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16944 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16945 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16946 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16947 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16948 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16949 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16950 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16951 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16952 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16953 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16954 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16955 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16956 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16957 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16958 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16959 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16960 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16961 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16962 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16963 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16964 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16965 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16966 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16967 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16968 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16969 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16970 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16971 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16972 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16973 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16974 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16975 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16976 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16977 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16978 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16979 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16980
16981 LTCC='$LTCC'
16982 LTCFLAGS='$LTCFLAGS'
16983 compiler='$compiler_DEFAULT'
16984
16985 # Quote evaled strings.
16986 for var in SED \
16987 GREP \
16988 EGREP \
16989 FGREP \
16990 LD \
16991 NM \
16992 LN_S \
16993 lt_SP2NL \
16994 lt_NL2SP \
16995 reload_flag \
16996 OBJDUMP \
16997 deplibs_check_method \
16998 file_magic_cmd \
16999 AR \
17000 AR_FLAGS \
17001 STRIP \
17002 RANLIB \
17003 CC \
17004 CFLAGS \
17005 compiler \
17006 lt_cv_sys_global_symbol_pipe \
17007 lt_cv_sys_global_symbol_to_cdecl \
17008 lt_cv_sys_global_symbol_to_c_name_address \
17009 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17010 SHELL \
17011 ECHO \
17012 lt_prog_compiler_no_builtin_flag \
17013 lt_prog_compiler_wl \
17014 lt_prog_compiler_pic \
17015 lt_prog_compiler_static \
17016 lt_cv_prog_compiler_c_o \
17017 need_locks \
17018 DSYMUTIL \
17019 NMEDIT \
17020 LIPO \
17021 OTOOL \
17022 OTOOL64 \
17023 shrext_cmds \
17024 export_dynamic_flag_spec \
17025 whole_archive_flag_spec \
17026 compiler_needs_object \
17027 with_gnu_ld \
17028 allow_undefined_flag \
17029 no_undefined_flag \
17030 hardcode_libdir_flag_spec \
17031 hardcode_libdir_flag_spec_ld \
17032 hardcode_libdir_separator \
17033 fix_srcfile_path \
17034 exclude_expsyms \
17035 include_expsyms \
17036 file_list_spec \
17037 variables_saved_for_relink \
17038 libname_spec \
17039 library_names_spec \
17040 soname_spec \
17041 finish_eval \
17042 old_striplib \
17043 striplib; do
17044     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17045     *[\\\\\\\`\\"\\\$]*)
17046       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17047       ;;
17048     *)
17049       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17050       ;;
17051     esac
17052 done
17053
17054 # Double-quote double-evaled strings.
17055 for var in reload_cmds \
17056 old_postinstall_cmds \
17057 old_postuninstall_cmds \
17058 old_archive_cmds \
17059 extract_expsyms_cmds \
17060 old_archive_from_new_cmds \
17061 old_archive_from_expsyms_cmds \
17062 archive_cmds \
17063 archive_expsym_cmds \
17064 module_cmds \
17065 module_expsym_cmds \
17066 export_symbols_cmds \
17067 prelink_cmds \
17068 postinstall_cmds \
17069 postuninstall_cmds \
17070 finish_cmds \
17071 sys_lib_search_path_spec \
17072 sys_lib_dlsearch_path_spec; do
17073     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17074     *[\\\\\\\`\\"\\\$]*)
17075       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17076       ;;
17077     *)
17078       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17079       ;;
17080     esac
17081 done
17082
17083 # Fix-up fallback echo if it was mangled by the above quoting rules.
17084 case \$lt_ECHO in
17085 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17086   ;;
17087 esac
17088
17089 ac_aux_dir='$ac_aux_dir'
17090 xsi_shell='$xsi_shell'
17091 lt_shell_append='$lt_shell_append'
17092
17093 # See if we are running on zsh, and set the options which allow our
17094 # commands through without removal of \ escapes INIT.
17095 if test -n "\${ZSH_VERSION+set}" ; then
17096    setopt NO_GLOB_SUBST
17097 fi
17098
17099
17100     PACKAGE='$PACKAGE'
17101     VERSION='$VERSION'
17102     TIMESTAMP='$TIMESTAMP'
17103     RM='$RM'
17104     ofile='$ofile'
17105
17106
17107
17108 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17109     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17110     # from automake.
17111     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17112     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17113     LINGUAS="${LINGUAS-%UNSET%}"
17114
17115
17116 _ACEOF
17117
17118
17119
17120 cat >>$CONFIG_STATUS <<\_ACEOF
17121 for ac_config_target in $ac_config_targets
17122 do
17123   case "$ac_config_target" in
17124   # Handling of arguments.
17125   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17126   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17127   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17128   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17129   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17130   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17131   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17132   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17134    { (exit 1); exit 1; }; };;
17135   esac
17136 done
17137
17138 # If the user did not use the arguments to specify the items to instantiate,
17139 # then the envvar interface is used.  Set only those that are not.
17140 # We use the long form for the default assignment because of an extremely
17141 # bizarre bug on SunOS 4.1.3.
17142 if $ac_need_defaults; then
17143   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17144   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17145   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17146 fi
17147
17148 # Have a temporary directory for convenience.  Make it in the build tree
17149 # simply because there is no reason to put it here, and in addition,
17150 # creating and moving files from /tmp can sometimes cause problems.
17151 # Create a temporary directory, and hook for its removal unless debugging.
17152 $debug ||
17153 {
17154   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17155   trap '{ (exit 1); exit 1; }' 1 2 13 15
17156 }
17157
17158 # Create a (secure) tmp directory for tmp files.
17159
17160 {
17161   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17162   test -n "$tmp" && test -d "$tmp"
17163 }  ||
17164 {
17165   tmp=./confstat$$-$RANDOM
17166   (umask 077 && mkdir $tmp)
17167 } ||
17168 {
17169    echo "$me: cannot create a temporary directory in ." >&2
17170    { (exit 1); exit 1; }
17171 }
17172
17173 _ACEOF
17174
17175 cat >>$CONFIG_STATUS <<_ACEOF
17176
17177 #
17178 # CONFIG_FILES section.
17179 #
17180
17181 # No need to generate the scripts if there are no CONFIG_FILES.
17182 # This happens for instance when ./config.status config.h
17183 if test -n "\$CONFIG_FILES"; then
17184   # Protect against being on the right side of a sed subst in config.status.
17185   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17186    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17187 s,@SHELL@,$SHELL,;t t
17188 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17189 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17190 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17191 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17192 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17193 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17194 s,@exec_prefix@,$exec_prefix,;t t
17195 s,@prefix@,$prefix,;t t
17196 s,@program_transform_name@,$program_transform_name,;t t
17197 s,@bindir@,$bindir,;t t
17198 s,@sbindir@,$sbindir,;t t
17199 s,@libexecdir@,$libexecdir,;t t
17200 s,@datadir@,$datadir,;t t
17201 s,@sysconfdir@,$sysconfdir,;t t
17202 s,@sharedstatedir@,$sharedstatedir,;t t
17203 s,@localstatedir@,$localstatedir,;t t
17204 s,@libdir@,$libdir,;t t
17205 s,@includedir@,$includedir,;t t
17206 s,@oldincludedir@,$oldincludedir,;t t
17207 s,@infodir@,$infodir,;t t
17208 s,@mandir@,$mandir,;t t
17209 s,@build_alias@,$build_alias,;t t
17210 s,@host_alias@,$host_alias,;t t
17211 s,@target_alias@,$target_alias,;t t
17212 s,@DEFS@,$DEFS,;t t
17213 s,@ECHO_C@,$ECHO_C,;t t
17214 s,@ECHO_N@,$ECHO_N,;t t
17215 s,@ECHO_T@,$ECHO_T,;t t
17216 s,@LIBS@,$LIBS,;t t
17217 s,@build@,$build,;t t
17218 s,@build_cpu@,$build_cpu,;t t
17219 s,@build_vendor@,$build_vendor,;t t
17220 s,@build_os@,$build_os,;t t
17221 s,@host@,$host,;t t
17222 s,@host_cpu@,$host_cpu,;t t
17223 s,@host_vendor@,$host_vendor,;t t
17224 s,@host_os@,$host_os,;t t
17225 s,@target@,$target,;t t
17226 s,@target_cpu@,$target_cpu,;t t
17227 s,@target_vendor@,$target_vendor,;t t
17228 s,@target_os@,$target_os,;t t
17229 s,@CC@,$CC,;t t
17230 s,@CFLAGS@,$CFLAGS,;t t
17231 s,@LDFLAGS@,$LDFLAGS,;t t
17232 s,@CPPFLAGS@,$CPPFLAGS,;t t
17233 s,@ac_ct_CC@,$ac_ct_CC,;t t
17234 s,@EXEEXT@,$EXEEXT,;t t
17235 s,@OBJEXT@,$OBJEXT,;t t
17236 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17237 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17238 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17239 s,@CYGPATH_W@,$CYGPATH_W,;t t
17240 s,@PACKAGE@,$PACKAGE,;t t
17241 s,@VERSION@,$VERSION,;t t
17242 s,@ACLOCAL@,$ACLOCAL,;t t
17243 s,@AUTOCONF@,$AUTOCONF,;t t
17244 s,@AUTOMAKE@,$AUTOMAKE,;t t
17245 s,@AUTOHEADER@,$AUTOHEADER,;t t
17246 s,@MAKEINFO@,$MAKEINFO,;t t
17247 s,@install_sh@,$install_sh,;t t
17248 s,@STRIP@,$STRIP,;t t
17249 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17250 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17251 s,@mkdir_p@,$mkdir_p,;t t
17252 s,@AWK@,$AWK,;t t
17253 s,@SET_MAKE@,$SET_MAKE,;t t
17254 s,@am__leading_dot@,$am__leading_dot,;t t
17255 s,@AMTAR@,$AMTAR,;t t
17256 s,@am__tar@,$am__tar,;t t
17257 s,@am__untar@,$am__untar,;t t
17258 s,@DEPDIR@,$DEPDIR,;t t
17259 s,@am__include@,$am__include,;t t
17260 s,@am__quote@,$am__quote,;t t
17261 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17262 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17263 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17264 s,@CCDEPMODE@,$CCDEPMODE,;t t
17265 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17266 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17267 s,@CPP@,$CPP,;t t
17268 s,@EGREP@,$EGREP,;t t
17269 s,@LIBTOOL@,$LIBTOOL,;t t
17270 s,@SED@,$SED,;t t
17271 s,@FGREP@,$FGREP,;t t
17272 s,@GREP@,$GREP,;t t
17273 s,@LD@,$LD,;t t
17274 s,@DUMPBIN@,$DUMPBIN,;t t
17275 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17276 s,@NM@,$NM,;t t
17277 s,@LN_S@,$LN_S,;t t
17278 s,@OBJDUMP@,$OBJDUMP,;t t
17279 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
17280 s,@AR@,$AR,;t t
17281 s,@ac_ct_AR@,$ac_ct_AR,;t t
17282 s,@RANLIB@,$RANLIB,;t t
17283 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17284 s,@lt_ECHO@,$lt_ECHO,;t t
17285 s,@DSYMUTIL@,$DSYMUTIL,;t t
17286 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17287 s,@NMEDIT@,$NMEDIT,;t t
17288 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17289 s,@LIPO@,$LIPO,;t t
17290 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17291 s,@OTOOL@,$OTOOL,;t t
17292 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17293 s,@OTOOL64@,$OTOOL64,;t t
17294 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
17295 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
17296 s,@NO_WERROR@,$NO_WERROR,;t t
17297 s,@YACC@,$YACC,;t t
17298 s,@LEX@,$LEX,;t t
17299 s,@LEXLIB@,$LEXLIB,;t t
17300 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17301 s,@USE_NLS@,$USE_NLS,;t t
17302 s,@LIBINTL@,$LIBINTL,;t t
17303 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17304 s,@INCINTL@,$INCINTL,;t t
17305 s,@XGETTEXT@,$XGETTEXT,;t t
17306 s,@GMSGFMT@,$GMSGFMT,;t t
17307 s,@POSUB@,$POSUB,;t t
17308 s,@CATALOGS@,$CATALOGS,;t t
17309 s,@DATADIRNAME@,$DATADIRNAME,;t t
17310 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17311 s,@GENCAT@,$GENCAT,;t t
17312 s,@CATOBJEXT@,$CATOBJEXT,;t t
17313 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17314 s,@MSGFMT@,$MSGFMT,;t t
17315 s,@MSGMERGE@,$MSGMERGE,;t t
17316 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17317 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17318 s,@MAINT@,$MAINT,;t t
17319 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
17320 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
17321 s,@HDEFINES@,$HDEFINES,;t t
17322 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17323 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
17324 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
17325 s,@ALLOCA@,$ALLOCA,;t t
17326 s,@LIBICONV@,$LIBICONV,;t t
17327 s,@LTLIBICONV@,$LTLIBICONV,;t t
17328 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
17329 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
17330 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
17331 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
17332 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
17333 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
17334 s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
17335 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
17336 s,@BUILD_MISC@,$BUILD_MISC,;t t
17337 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
17338 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
17339 s,@EMULATION@,$EMULATION,;t t
17340 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
17341 s,@datarootdir@,$datarootdir,;t t
17342 s,@docdir@,$docdir,;t t
17343 s,@htmldir@,$htmldir,;t t
17344 s,@LIBOBJS@,$LIBOBJS,;t t
17345 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17346 CEOF
17347
17348 _ACEOF
17349
17350   cat >>$CONFIG_STATUS <<\_ACEOF
17351   # Split the substitutions into bite-sized pieces for seds with
17352   # small command number limits, like on Digital OSF/1 and HP-UX.
17353   ac_max_sed_lines=48
17354   ac_sed_frag=1 # Number of current file.
17355   ac_beg=1 # First line for current file.
17356   ac_end=$ac_max_sed_lines # Line after last line for current file.
17357   ac_more_lines=:
17358   ac_sed_cmds=
17359   while $ac_more_lines; do
17360     if test $ac_beg -gt 1; then
17361       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17362     else
17363       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17364     fi
17365     if test ! -s $tmp/subs.frag; then
17366       ac_more_lines=false
17367     else
17368       # The purpose of the label and of the branching condition is to
17369       # speed up the sed processing (if there are no `@' at all, there
17370       # is no need to browse any of the substitutions).
17371       # These are the two extra sed commands mentioned above.
17372       (echo ':t
17373   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17374       if test -z "$ac_sed_cmds"; then
17375         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17376       else
17377         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17378       fi
17379       ac_sed_frag=`expr $ac_sed_frag + 1`
17380       ac_beg=$ac_end
17381       ac_end=`expr $ac_end + $ac_max_sed_lines`
17382     fi
17383   done
17384   if test -z "$ac_sed_cmds"; then
17385     ac_sed_cmds=cat
17386   fi
17387 fi # test -n "$CONFIG_FILES"
17388
17389 _ACEOF
17390 cat >>$CONFIG_STATUS <<\_ACEOF
17391 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17392   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17393   case $ac_file in
17394   - | *:- | *:-:* ) # input from stdin
17395         cat >$tmp/stdin
17396         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17397         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17398   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17399         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17400   * )   ac_file_in=$ac_file.in ;;
17401   esac
17402
17403   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17404   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17405 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17406          X"$ac_file" : 'X\(//\)[^/]' \| \
17407          X"$ac_file" : 'X\(//\)$' \| \
17408          X"$ac_file" : 'X\(/\)' \| \
17409          .     : '\(.\)' 2>/dev/null ||
17410 echo X"$ac_file" |
17411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17412           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17413           /^X\(\/\/\)$/{ s//\1/; q; }
17414           /^X\(\/\).*/{ s//\1/; q; }
17415           s/.*/./; q'`
17416   { if $as_mkdir_p; then
17417     mkdir -p "$ac_dir"
17418   else
17419     as_dir="$ac_dir"
17420     as_dirs=
17421     while test ! -d "$as_dir"; do
17422       as_dirs="$as_dir $as_dirs"
17423       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17425          X"$as_dir" : 'X\(//\)[^/]' \| \
17426          X"$as_dir" : 'X\(//\)$' \| \
17427          X"$as_dir" : 'X\(/\)' \| \
17428          .     : '\(.\)' 2>/dev/null ||
17429 echo X"$as_dir" |
17430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17431           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17432           /^X\(\/\/\)$/{ s//\1/; q; }
17433           /^X\(\/\).*/{ s//\1/; q; }
17434           s/.*/./; q'`
17435     done
17436     test ! -n "$as_dirs" || mkdir $as_dirs
17437   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17438 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17439    { (exit 1); exit 1; }; }; }
17440
17441   ac_builddir=.
17442
17443 if test "$ac_dir" != .; then
17444   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17445   # A "../" for each directory in $ac_dir_suffix.
17446   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17447 else
17448   ac_dir_suffix= ac_top_builddir=
17449 fi
17450
17451 case $srcdir in
17452   .)  # No --srcdir option.  We are building in place.
17453     ac_srcdir=.
17454     if test -z "$ac_top_builddir"; then
17455        ac_top_srcdir=.
17456     else
17457        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17458     fi ;;
17459   [\\/]* | ?:[\\/]* )  # Absolute path.
17460     ac_srcdir=$srcdir$ac_dir_suffix;
17461     ac_top_srcdir=$srcdir ;;
17462   *) # Relative path.
17463     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17464     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17465 esac
17466
17467 # Do not use `cd foo && pwd` to compute absolute paths, because
17468 # the directories may not exist.
17469 case `pwd` in
17470 .) ac_abs_builddir="$ac_dir";;
17471 *)
17472   case "$ac_dir" in
17473   .) ac_abs_builddir=`pwd`;;
17474   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17475   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17476   esac;;
17477 esac
17478 case $ac_abs_builddir in
17479 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17480 *)
17481   case ${ac_top_builddir}. in
17482   .) ac_abs_top_builddir=$ac_abs_builddir;;
17483   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17484   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17485   esac;;
17486 esac
17487 case $ac_abs_builddir in
17488 .) ac_abs_srcdir=$ac_srcdir;;
17489 *)
17490   case $ac_srcdir in
17491   .) ac_abs_srcdir=$ac_abs_builddir;;
17492   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17493   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17494   esac;;
17495 esac
17496 case $ac_abs_builddir in
17497 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17498 *)
17499   case $ac_top_srcdir in
17500   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17501   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17502   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17503   esac;;
17504 esac
17505
17506
17507   case $INSTALL in
17508   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17509   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17510   esac
17511
17512   if test x"$ac_file" != x-; then
17513     { echo "$as_me:$LINENO: creating $ac_file" >&5
17514 echo "$as_me: creating $ac_file" >&6;}
17515     rm -f "$ac_file"
17516   fi
17517   # Let's still pretend it is `configure' which instantiates (i.e., don't
17518   # use $as_me), people would be surprised to read:
17519   #    /* config.h.  Generated by config.status.  */
17520   if test x"$ac_file" = x-; then
17521     configure_input=
17522   else
17523     configure_input="$ac_file.  "
17524   fi
17525   configure_input=$configure_input"Generated from `echo $ac_file_in |
17526                                      sed 's,.*/,,'` by configure."
17527
17528   # First look for the input files in the build tree, otherwise in the
17529   # src tree.
17530   ac_file_inputs=`IFS=:
17531     for f in $ac_file_in; do
17532       case $f in
17533       -) echo $tmp/stdin ;;
17534       [\\/$]*)
17535          # Absolute (can't be DOS-style, as IFS=:)
17536          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17537 echo "$as_me: error: cannot find input file: $f" >&2;}
17538    { (exit 1); exit 1; }; }
17539          echo "$f";;
17540       *) # Relative
17541          if test -f "$f"; then
17542            # Build tree
17543            echo "$f"
17544          elif test -f "$srcdir/$f"; then
17545            # Source tree
17546            echo "$srcdir/$f"
17547          else
17548            # /dev/null tree
17549            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17550 echo "$as_me: error: cannot find input file: $f" >&2;}
17551    { (exit 1); exit 1; }; }
17552          fi;;
17553       esac
17554     done` || { (exit 1); exit 1; }
17555 _ACEOF
17556 cat >>$CONFIG_STATUS <<_ACEOF
17557   sed "$ac_vpsub
17558 $extrasub
17559 _ACEOF
17560 cat >>$CONFIG_STATUS <<\_ACEOF
17561 :t
17562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17563 s,@configure_input@,$configure_input,;t t
17564 s,@srcdir@,$ac_srcdir,;t t
17565 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17566 s,@top_srcdir@,$ac_top_srcdir,;t t
17567 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17568 s,@builddir@,$ac_builddir,;t t
17569 s,@abs_builddir@,$ac_abs_builddir,;t t
17570 s,@top_builddir@,$ac_top_builddir,;t t
17571 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17572 s,@INSTALL@,$ac_INSTALL,;t t
17573 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17574   rm -f $tmp/stdin
17575   if test x"$ac_file" != x-; then
17576     mv $tmp/out $ac_file
17577   else
17578     cat $tmp/out
17579     rm -f $tmp/out
17580   fi
17581
17582 done
17583 _ACEOF
17584 cat >>$CONFIG_STATUS <<\_ACEOF
17585
17586 #
17587 # CONFIG_HEADER section.
17588 #
17589
17590 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17591 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17592 #
17593 # ac_d sets the value in "#define NAME VALUE" lines.
17594 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17595 ac_dB='[         ].*$,\1#\2'
17596 ac_dC=' '
17597 ac_dD=',;t'
17598 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17599 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17600 ac_uB='$,\1#\2define\3'
17601 ac_uC=' '
17602 ac_uD=',;t'
17603
17604 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17605   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17606   case $ac_file in
17607   - | *:- | *:-:* ) # input from stdin
17608         cat >$tmp/stdin
17609         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17610         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17611   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17612         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17613   * )   ac_file_in=$ac_file.in ;;
17614   esac
17615
17616   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17617 echo "$as_me: creating $ac_file" >&6;}
17618
17619   # First look for the input files in the build tree, otherwise in the
17620   # src tree.
17621   ac_file_inputs=`IFS=:
17622     for f in $ac_file_in; do
17623       case $f in
17624       -) echo $tmp/stdin ;;
17625       [\\/$]*)
17626          # Absolute (can't be DOS-style, as IFS=:)
17627          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17628 echo "$as_me: error: cannot find input file: $f" >&2;}
17629    { (exit 1); exit 1; }; }
17630          # Do quote $f, to prevent DOS paths from being IFS'd.
17631          echo "$f";;
17632       *) # Relative
17633          if test -f "$f"; then
17634            # Build tree
17635            echo "$f"
17636          elif test -f "$srcdir/$f"; then
17637            # Source tree
17638            echo "$srcdir/$f"
17639          else
17640            # /dev/null tree
17641            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17642 echo "$as_me: error: cannot find input file: $f" >&2;}
17643    { (exit 1); exit 1; }; }
17644          fi;;
17645       esac
17646     done` || { (exit 1); exit 1; }
17647   # Remove the trailing spaces.
17648   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17649
17650 _ACEOF
17651
17652 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17653 # `conftest.undefs', that substitutes the proper values into
17654 # config.h.in to produce config.h.  The first handles `#define'
17655 # templates, and the second `#undef' templates.
17656 # And first: Protect against being on the right side of a sed subst in
17657 # config.status.  Protect against being in an unquoted here document
17658 # in config.status.
17659 rm -f conftest.defines conftest.undefs
17660 # Using a here document instead of a string reduces the quoting nightmare.
17661 # Putting comments in sed scripts is not portable.
17662 #
17663 # `end' is used to avoid that the second main sed command (meant for
17664 # 0-ary CPP macros) applies to n-ary macro definitions.
17665 # See the Autoconf documentation for `clear'.
17666 cat >confdef2sed.sed <<\_ACEOF
17667 s/[\\&,]/\\&/g
17668 s,[\\$`],\\&,g
17669 t clear
17670 : clear
17671 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17672 t end
17673 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17674 : end
17675 _ACEOF
17676 # If some macros were called several times there might be several times
17677 # the same #defines, which is useless.  Nevertheless, we may not want to
17678 # sort them, since we want the *last* AC-DEFINE to be honored.
17679 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17680 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17681 rm -f confdef2sed.sed
17682
17683 # This sed command replaces #undef with comments.  This is necessary, for
17684 # example, in the case of _POSIX_SOURCE, which is predefined and required
17685 # on some systems where configure will not decide to define it.
17686 cat >>conftest.undefs <<\_ACEOF
17687 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17688 _ACEOF
17689
17690 # Break up conftest.defines because some shells have a limit on the size
17691 # of here documents, and old seds have small limits too (100 cmds).
17692 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17693 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17694 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17695 echo '  :' >>$CONFIG_STATUS
17696 rm -f conftest.tail
17697 while grep . conftest.defines >/dev/null
17698 do
17699   # Write a limited-size here document to $tmp/defines.sed.
17700   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17701   # Speed up: don't consider the non `#define' lines.
17702   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17703   # Work around the forget-to-reset-the-flag bug.
17704   echo 't clr' >>$CONFIG_STATUS
17705   echo ': clr' >>$CONFIG_STATUS
17706   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17707   echo 'CEOF
17708   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17709   rm -f $tmp/in
17710   mv $tmp/out $tmp/in
17711 ' >>$CONFIG_STATUS
17712   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17713   rm -f conftest.defines
17714   mv conftest.tail conftest.defines
17715 done
17716 rm -f conftest.defines
17717 echo '  fi # grep' >>$CONFIG_STATUS
17718 echo >>$CONFIG_STATUS
17719
17720 # Break up conftest.undefs because some shells have a limit on the size
17721 # of here documents, and old seds have small limits too (100 cmds).
17722 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17723 rm -f conftest.tail
17724 while grep . conftest.undefs >/dev/null
17725 do
17726   # Write a limited-size here document to $tmp/undefs.sed.
17727   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17728   # Speed up: don't consider the non `#undef'
17729   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17730   # Work around the forget-to-reset-the-flag bug.
17731   echo 't clr' >>$CONFIG_STATUS
17732   echo ': clr' >>$CONFIG_STATUS
17733   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17734   echo 'CEOF
17735   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17736   rm -f $tmp/in
17737   mv $tmp/out $tmp/in
17738 ' >>$CONFIG_STATUS
17739   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17740   rm -f conftest.undefs
17741   mv conftest.tail conftest.undefs
17742 done
17743 rm -f conftest.undefs
17744
17745 cat >>$CONFIG_STATUS <<\_ACEOF
17746   # Let's still pretend it is `configure' which instantiates (i.e., don't
17747   # use $as_me), people would be surprised to read:
17748   #    /* config.h.  Generated by config.status.  */
17749   if test x"$ac_file" = x-; then
17750     echo "/* Generated by configure.  */" >$tmp/config.h
17751   else
17752     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17753   fi
17754   cat $tmp/in >>$tmp/config.h
17755   rm -f $tmp/in
17756   if test x"$ac_file" != x-; then
17757     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17758       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17759 echo "$as_me: $ac_file is unchanged" >&6;}
17760     else
17761       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763          X"$ac_file" : 'X\(//\)[^/]' \| \
17764          X"$ac_file" : 'X\(//\)$' \| \
17765          X"$ac_file" : 'X\(/\)' \| \
17766          .     : '\(.\)' 2>/dev/null ||
17767 echo X"$ac_file" |
17768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17770           /^X\(\/\/\)$/{ s//\1/; q; }
17771           /^X\(\/\).*/{ s//\1/; q; }
17772           s/.*/./; q'`
17773       { if $as_mkdir_p; then
17774     mkdir -p "$ac_dir"
17775   else
17776     as_dir="$ac_dir"
17777     as_dirs=
17778     while test ! -d "$as_dir"; do
17779       as_dirs="$as_dir $as_dirs"
17780       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17782          X"$as_dir" : 'X\(//\)[^/]' \| \
17783          X"$as_dir" : 'X\(//\)$' \| \
17784          X"$as_dir" : 'X\(/\)' \| \
17785          .     : '\(.\)' 2>/dev/null ||
17786 echo X"$as_dir" |
17787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17789           /^X\(\/\/\)$/{ s//\1/; q; }
17790           /^X\(\/\).*/{ s//\1/; q; }
17791           s/.*/./; q'`
17792     done
17793     test ! -n "$as_dirs" || mkdir $as_dirs
17794   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17795 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17796    { (exit 1); exit 1; }; }; }
17797
17798       rm -f $ac_file
17799       mv $tmp/config.h $ac_file
17800     fi
17801   else
17802     cat $tmp/config.h
17803     rm -f $tmp/config.h
17804   fi
17805 # Compute $ac_file's index in $config_headers.
17806 _am_stamp_count=1
17807 for _am_header in $config_headers :; do
17808   case $_am_header in
17809     $ac_file | $ac_file:* )
17810       break ;;
17811     * )
17812       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17813   esac
17814 done
17815 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17816 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17817          X$ac_file : 'X\(//\)[^/]' \| \
17818          X$ac_file : 'X\(//\)$' \| \
17819          X$ac_file : 'X\(/\)' \| \
17820          .     : '\(.\)' 2>/dev/null ||
17821 echo X$ac_file |
17822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17823           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17824           /^X\(\/\/\)$/{ s//\1/; q; }
17825           /^X\(\/\).*/{ s//\1/; q; }
17826           s/.*/./; q'`/stamp-h$_am_stamp_count
17827 done
17828 _ACEOF
17829 cat >>$CONFIG_STATUS <<\_ACEOF
17830
17831 #
17832 # CONFIG_COMMANDS section.
17833 #
17834 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17835   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17836   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17837   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17838 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17839          X"$ac_dest" : 'X\(//\)[^/]' \| \
17840          X"$ac_dest" : 'X\(//\)$' \| \
17841          X"$ac_dest" : 'X\(/\)' \| \
17842          .     : '\(.\)' 2>/dev/null ||
17843 echo X"$ac_dest" |
17844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17846           /^X\(\/\/\)$/{ s//\1/; q; }
17847           /^X\(\/\).*/{ s//\1/; q; }
17848           s/.*/./; q'`
17849   { if $as_mkdir_p; then
17850     mkdir -p "$ac_dir"
17851   else
17852     as_dir="$ac_dir"
17853     as_dirs=
17854     while test ! -d "$as_dir"; do
17855       as_dirs="$as_dir $as_dirs"
17856       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17858          X"$as_dir" : 'X\(//\)[^/]' \| \
17859          X"$as_dir" : 'X\(//\)$' \| \
17860          X"$as_dir" : 'X\(/\)' \| \
17861          .     : '\(.\)' 2>/dev/null ||
17862 echo X"$as_dir" |
17863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17865           /^X\(\/\/\)$/{ s//\1/; q; }
17866           /^X\(\/\).*/{ s//\1/; q; }
17867           s/.*/./; q'`
17868     done
17869     test ! -n "$as_dirs" || mkdir $as_dirs
17870   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17871 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17872    { (exit 1); exit 1; }; }; }
17873
17874   ac_builddir=.
17875
17876 if test "$ac_dir" != .; then
17877   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17878   # A "../" for each directory in $ac_dir_suffix.
17879   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17880 else
17881   ac_dir_suffix= ac_top_builddir=
17882 fi
17883
17884 case $srcdir in
17885   .)  # No --srcdir option.  We are building in place.
17886     ac_srcdir=.
17887     if test -z "$ac_top_builddir"; then
17888        ac_top_srcdir=.
17889     else
17890        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17891     fi ;;
17892   [\\/]* | ?:[\\/]* )  # Absolute path.
17893     ac_srcdir=$srcdir$ac_dir_suffix;
17894     ac_top_srcdir=$srcdir ;;
17895   *) # Relative path.
17896     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17897     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17898 esac
17899
17900 # Do not use `cd foo && pwd` to compute absolute paths, because
17901 # the directories may not exist.
17902 case `pwd` in
17903 .) ac_abs_builddir="$ac_dir";;
17904 *)
17905   case "$ac_dir" in
17906   .) ac_abs_builddir=`pwd`;;
17907   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17908   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17909   esac;;
17910 esac
17911 case $ac_abs_builddir in
17912 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17913 *)
17914   case ${ac_top_builddir}. in
17915   .) ac_abs_top_builddir=$ac_abs_builddir;;
17916   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17917   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17918   esac;;
17919 esac
17920 case $ac_abs_builddir in
17921 .) ac_abs_srcdir=$ac_srcdir;;
17922 *)
17923   case $ac_srcdir in
17924   .) ac_abs_srcdir=$ac_abs_builddir;;
17925   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17926   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17927   esac;;
17928 esac
17929 case $ac_abs_builddir in
17930 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17931 *)
17932   case $ac_top_srcdir in
17933   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17934   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17935   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17936   esac;;
17937 esac
17938
17939
17940   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17941 echo "$as_me: executing $ac_dest commands" >&6;}
17942   case $ac_dest in
17943     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17944   # Strip MF so we end up with the name of the file.
17945   mf=`echo "$mf" | sed -e 's/:.*$//'`
17946   # Check whether this is an Automake generated Makefile or not.
17947   # We used to match only the files named `Makefile.in', but
17948   # some people rename them; so instead we look at the file content.
17949   # Grep'ing the first line is not enough: some people post-process
17950   # each Makefile.in and add a new line on top of each file to say so.
17951   # So let's grep whole file.
17952   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17953     dirpart=`(dirname "$mf") 2>/dev/null ||
17954 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17955          X"$mf" : 'X\(//\)[^/]' \| \
17956          X"$mf" : 'X\(//\)$' \| \
17957          X"$mf" : 'X\(/\)' \| \
17958          .     : '\(.\)' 2>/dev/null ||
17959 echo X"$mf" |
17960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17961           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17962           /^X\(\/\/\)$/{ s//\1/; q; }
17963           /^X\(\/\).*/{ s//\1/; q; }
17964           s/.*/./; q'`
17965   else
17966     continue
17967   fi
17968   # Extract the definition of DEPDIR, am__include, and am__quote
17969   # from the Makefile without running `make'.
17970   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17971   test -z "$DEPDIR" && continue
17972   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17973   test -z "am__include" && continue
17974   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17975   # When using ansi2knr, U may be empty or an underscore; expand it
17976   U=`sed -n 's/^U = //p' < "$mf"`
17977   # Find all dependency output files, they are included files with
17978   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17979   # simplest approach to changing $(DEPDIR) to its actual value in the
17980   # expansion.
17981   for file in `sed -n "
17982     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17983        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17984     # Make sure the directory exists.
17985     test -f "$dirpart/$file" && continue
17986     fdir=`(dirname "$file") 2>/dev/null ||
17987 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17988          X"$file" : 'X\(//\)[^/]' \| \
17989          X"$file" : 'X\(//\)$' \| \
17990          X"$file" : 'X\(/\)' \| \
17991          .     : '\(.\)' 2>/dev/null ||
17992 echo X"$file" |
17993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17995           /^X\(\/\/\)$/{ s//\1/; q; }
17996           /^X\(\/\).*/{ s//\1/; q; }
17997           s/.*/./; q'`
17998     { if $as_mkdir_p; then
17999     mkdir -p $dirpart/$fdir
18000   else
18001     as_dir=$dirpart/$fdir
18002     as_dirs=
18003     while test ! -d "$as_dir"; do
18004       as_dirs="$as_dir $as_dirs"
18005       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18007          X"$as_dir" : 'X\(//\)[^/]' \| \
18008          X"$as_dir" : 'X\(//\)$' \| \
18009          X"$as_dir" : 'X\(/\)' \| \
18010          .     : '\(.\)' 2>/dev/null ||
18011 echo X"$as_dir" |
18012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18014           /^X\(\/\/\)$/{ s//\1/; q; }
18015           /^X\(\/\).*/{ s//\1/; q; }
18016           s/.*/./; q'`
18017     done
18018     test ! -n "$as_dirs" || mkdir $as_dirs
18019   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18020 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18021    { (exit 1); exit 1; }; }; }
18022
18023     # echo "creating $dirpart/$file"
18024     echo '# dummy' > "$dirpart/$file"
18025   done
18026 done
18027  ;;
18028     libtool )
18029
18030     # See if we are running on zsh, and set the options which allow our
18031     # commands through without removal of \ escapes.
18032     if test -n "${ZSH_VERSION+set}" ; then
18033       setopt NO_GLOB_SUBST
18034     fi
18035
18036     cfgfile="${ofile}T"
18037     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18038     $RM "$cfgfile"
18039
18040     cat <<_LT_EOF >> "$cfgfile"
18041 #! $SHELL
18042
18043 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18044 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18045 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18046 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18047 #
18048 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18049 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18050 #   Written by Gordon Matzigkeit, 1996
18051 #
18052 #   This file is part of GNU Libtool.
18053 #
18054 # GNU Libtool is free software; you can redistribute it and/or
18055 # modify it under the terms of the GNU General Public License as
18056 # published by the Free Software Foundation; either version 2 of
18057 # the License, or (at your option) any later version.
18058 #
18059 # As a special exception to the GNU General Public License,
18060 # if you distribute this file as part of a program or library that
18061 # is built using GNU Libtool, you may include this file under the
18062 # same distribution terms that you use for the rest of that program.
18063 #
18064 # GNU Libtool is distributed in the hope that it will be useful,
18065 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18066 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18067 # GNU General Public License for more details.
18068 #
18069 # You should have received a copy of the GNU General Public License
18070 # along with GNU Libtool; see the file COPYING.  If not, a copy
18071 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18072 # obtained by writing to the Free Software Foundation, Inc.,
18073 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18074
18075
18076 # The names of the tagged configurations supported by this script.
18077 available_tags=""
18078
18079 # ### BEGIN LIBTOOL CONFIG
18080
18081 # Which release of libtool.m4 was used?
18082 macro_version=$macro_version
18083 macro_revision=$macro_revision
18084
18085 # Whether or not to build shared libraries.
18086 build_libtool_libs=$enable_shared
18087
18088 # Whether or not to build static libraries.
18089 build_old_libs=$enable_static
18090
18091 # What type of objects to build.
18092 pic_mode=$pic_mode
18093
18094 # Whether or not to optimize for fast installation.
18095 fast_install=$enable_fast_install
18096
18097 # The host system.
18098 host_alias=$host_alias
18099 host=$host
18100 host_os=$host_os
18101
18102 # The build system.
18103 build_alias=$build_alias
18104 build=$build
18105 build_os=$build_os
18106
18107 # A sed program that does not truncate output.
18108 SED=$lt_SED
18109
18110 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18111 Xsed="\$SED -e 1s/^X//"
18112
18113 # A grep program that handles long lines.
18114 GREP=$lt_GREP
18115
18116 # An ERE matcher.
18117 EGREP=$lt_EGREP
18118
18119 # A literal string matcher.
18120 FGREP=$lt_FGREP
18121
18122 # A BSD- or MS-compatible name lister.
18123 NM=$lt_NM
18124
18125 # Whether we need soft or hard links.
18126 LN_S=$lt_LN_S
18127
18128 # What is the maximum length of a command?
18129 max_cmd_len=$max_cmd_len
18130
18131 # Object file suffix (normally "o").
18132 objext=$ac_objext
18133
18134 # Executable file suffix (normally "").
18135 exeext=$exeext
18136
18137 # whether the shell understands "unset".
18138 lt_unset=$lt_unset
18139
18140 # turn spaces into newlines.
18141 SP2NL=$lt_lt_SP2NL
18142
18143 # turn newlines into spaces.
18144 NL2SP=$lt_lt_NL2SP
18145
18146 # How to create reloadable object files.
18147 reload_flag=$lt_reload_flag
18148 reload_cmds=$lt_reload_cmds
18149
18150 # An object symbol dumper.
18151 OBJDUMP=$lt_OBJDUMP
18152
18153 # Method to check whether dependent libraries are shared objects.
18154 deplibs_check_method=$lt_deplibs_check_method
18155
18156 # Command to use when deplibs_check_method == "file_magic".
18157 file_magic_cmd=$lt_file_magic_cmd
18158
18159 # The archiver.
18160 AR=$lt_AR
18161 AR_FLAGS=$lt_AR_FLAGS
18162
18163 # A symbol stripping program.
18164 STRIP=$lt_STRIP
18165
18166 # Commands used to install an old-style archive.
18167 RANLIB=$lt_RANLIB
18168 old_postinstall_cmds=$lt_old_postinstall_cmds
18169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18170
18171 # A C compiler.
18172 LTCC=$lt_CC
18173
18174 # LTCC compiler flags.
18175 LTCFLAGS=$lt_CFLAGS
18176
18177 # Take the output of nm and produce a listing of raw symbols and C names.
18178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18179
18180 # Transform the output of nm in a proper C declaration.
18181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18182
18183 # Transform the output of nm in a C name address pair.
18184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18185
18186 # Transform the output of nm in a C name address pair when lib prefix is needed.
18187 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18188
18189 # The name of the directory that contains temporary libtool files.
18190 objdir=$objdir
18191
18192 # Shell to use when invoking shell scripts.
18193 SHELL=$lt_SHELL
18194
18195 # An echo program that does not interpret backslashes.
18196 ECHO=$lt_ECHO
18197
18198 # Used to examine libraries when file_magic_cmd begins with "file".
18199 MAGIC_CMD=$MAGIC_CMD
18200
18201 # Must we lock files when doing compilation?
18202 need_locks=$lt_need_locks
18203
18204 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18205 DSYMUTIL=$lt_DSYMUTIL
18206
18207 # Tool to change global to local symbols on Mac OS X.
18208 NMEDIT=$lt_NMEDIT
18209
18210 # Tool to manipulate fat objects and archives on Mac OS X.
18211 LIPO=$lt_LIPO
18212
18213 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18214 OTOOL=$lt_OTOOL
18215
18216 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18217 OTOOL64=$lt_OTOOL64
18218
18219 # Old archive suffix (normally "a").
18220 libext=$libext
18221
18222 # Shared library suffix (normally ".so").
18223 shrext_cmds=$lt_shrext_cmds
18224
18225 # The commands to extract the exported symbol list from a shared archive.
18226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18227
18228 # Variables whose values should be saved in libtool wrapper scripts and
18229 # restored at link time.
18230 variables_saved_for_relink=$lt_variables_saved_for_relink
18231
18232 # Do we need the "lib" prefix for modules?
18233 need_lib_prefix=$need_lib_prefix
18234
18235 # Do we need a version for libraries?
18236 need_version=$need_version
18237
18238 # Library versioning type.
18239 version_type=$version_type
18240
18241 # Shared library runtime path variable.
18242 runpath_var=$runpath_var
18243
18244 # Shared library path variable.
18245 shlibpath_var=$shlibpath_var
18246
18247 # Is shlibpath searched before the hard-coded library search path?
18248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18249
18250 # Format of library name prefix.
18251 libname_spec=$lt_libname_spec
18252
18253 # List of archive names.  First name is the real one, the rest are links.
18254 # The last name is the one that the linker finds with -lNAME
18255 library_names_spec=$lt_library_names_spec
18256
18257 # The coded name of the library, if different from the real name.
18258 soname_spec=$lt_soname_spec
18259
18260 # Command to use after installation of a shared archive.
18261 postinstall_cmds=$lt_postinstall_cmds
18262
18263 # Command to use after uninstallation of a shared archive.
18264 postuninstall_cmds=$lt_postuninstall_cmds
18265
18266 # Commands used to finish a libtool library installation in a directory.
18267 finish_cmds=$lt_finish_cmds
18268
18269 # As "finish_cmds", except a single script fragment to be evaled but
18270 # not shown.
18271 finish_eval=$lt_finish_eval
18272
18273 # Whether we should hardcode library paths into libraries.
18274 hardcode_into_libs=$hardcode_into_libs
18275
18276 # Compile-time system search path for libraries.
18277 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18278
18279 # Run-time system search path for libraries.
18280 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18281
18282 # Whether dlopen is supported.
18283 dlopen_support=$enable_dlopen
18284
18285 # Whether dlopen of programs is supported.
18286 dlopen_self=$enable_dlopen_self
18287
18288 # Whether dlopen of statically linked programs is supported.
18289 dlopen_self_static=$enable_dlopen_self_static
18290
18291 # Commands to strip libraries.
18292 old_striplib=$lt_old_striplib
18293 striplib=$lt_striplib
18294
18295
18296 # The linker used to build libraries.
18297 LD=$lt_LD
18298
18299 # Commands used to build an old-style archive.
18300 old_archive_cmds=$lt_old_archive_cmds
18301
18302 # A language specific compiler.
18303 CC=$lt_compiler
18304
18305 # Is the compiler the GNU compiler?
18306 with_gcc=$GCC
18307
18308 # Compiler flag to turn off builtin functions.
18309 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18310
18311 # How to pass a linker flag through the compiler.
18312 wl=$lt_lt_prog_compiler_wl
18313
18314 # Additional compiler flags for building library objects.
18315 pic_flag=$lt_lt_prog_compiler_pic
18316
18317 # Compiler flag to prevent dynamic linking.
18318 link_static_flag=$lt_lt_prog_compiler_static
18319
18320 # Does compiler simultaneously support -c and -o options?
18321 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18322
18323 # Whether or not to add -lc for building shared libraries.
18324 build_libtool_need_lc=$archive_cmds_need_lc
18325
18326 # Whether or not to disallow shared libs when runtime libs are static.
18327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18328
18329 # Compiler flag to allow reflexive dlopens.
18330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18331
18332 # Compiler flag to generate shared objects directly from archives.
18333 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18334
18335 # Whether the compiler copes with passing no objects directly.
18336 compiler_needs_object=$lt_compiler_needs_object
18337
18338 # Create an old-style archive from a shared archive.
18339 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18340
18341 # Create a temporary old-style archive to link instead of a shared archive.
18342 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18343
18344 # Commands used to build a shared archive.
18345 archive_cmds=$lt_archive_cmds
18346 archive_expsym_cmds=$lt_archive_expsym_cmds
18347
18348 # Commands used to build a loadable module if different from building
18349 # a shared archive.
18350 module_cmds=$lt_module_cmds
18351 module_expsym_cmds=$lt_module_expsym_cmds
18352
18353 # Whether we are building with GNU ld or not.
18354 with_gnu_ld=$lt_with_gnu_ld
18355
18356 # Flag that allows shared libraries with undefined symbols to be built.
18357 allow_undefined_flag=$lt_allow_undefined_flag
18358
18359 # Flag that enforces no undefined symbols.
18360 no_undefined_flag=$lt_no_undefined_flag
18361
18362 # Flag to hardcode \$libdir into a binary during linking.
18363 # This must work even if \$libdir does not exist
18364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18365
18366 # If ld is used when linking, flag to hardcode \$libdir into a binary
18367 # during linking.  This must work even if \$libdir does not exist.
18368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18369
18370 # Whether we need a single "-rpath" flag with a separated argument.
18371 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18372
18373 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18374 # DIR into the resulting binary.
18375 hardcode_direct=$hardcode_direct
18376
18377 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18378 # DIR into the resulting binary and the resulting library dependency is
18379 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18380 # library is relocated.
18381 hardcode_direct_absolute=$hardcode_direct_absolute
18382
18383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18384 # into the resulting binary.
18385 hardcode_minus_L=$hardcode_minus_L
18386
18387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18388 # into the resulting binary.
18389 hardcode_shlibpath_var=$hardcode_shlibpath_var
18390
18391 # Set to "yes" if building a shared library automatically hardcodes DIR
18392 # into the library and all subsequent libraries and executables linked
18393 # against it.
18394 hardcode_automatic=$hardcode_automatic
18395
18396 # Set to yes if linker adds runtime paths of dependent libraries
18397 # to runtime path list.
18398 inherit_rpath=$inherit_rpath
18399
18400 # Whether libtool must link a program against all its dependency libraries.
18401 link_all_deplibs=$link_all_deplibs
18402
18403 # Fix the shell variable \$srcfile for the compiler.
18404 fix_srcfile_path=$lt_fix_srcfile_path
18405
18406 # Set to "yes" if exported symbols are required.
18407 always_export_symbols=$always_export_symbols
18408
18409 # The commands to list exported symbols.
18410 export_symbols_cmds=$lt_export_symbols_cmds
18411
18412 # Symbols that should not be listed in the preloaded symbols.
18413 exclude_expsyms=$lt_exclude_expsyms
18414
18415 # Symbols that must always be exported.
18416 include_expsyms=$lt_include_expsyms
18417
18418 # Commands necessary for linking programs (against libraries) with templates.
18419 prelink_cmds=$lt_prelink_cmds
18420
18421 # Specify filename containing input files.
18422 file_list_spec=$lt_file_list_spec
18423
18424 # How to hardcode a shared library path into an executable.
18425 hardcode_action=$hardcode_action
18426
18427 # ### END LIBTOOL CONFIG
18428
18429 _LT_EOF
18430
18431   case $host_os in
18432   aix3*)
18433     cat <<\_LT_EOF >> "$cfgfile"
18434 # AIX sometimes has problems with the GCC collect2 program.  For some
18435 # reason, if we set the COLLECT_NAMES environment variable, the problems
18436 # vanish in a puff of smoke.
18437 if test "X${COLLECT_NAMES+set}" != Xset; then
18438   COLLECT_NAMES=
18439   export COLLECT_NAMES
18440 fi
18441 _LT_EOF
18442     ;;
18443   esac
18444
18445
18446 ltmain="$ac_aux_dir/ltmain.sh"
18447
18448
18449   # We use sed instead of cat because bash on DJGPP gets confused if
18450   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18451   # text mode, it properly converts lines to CR/LF.  This bash problem
18452   # is reportedly fixed, but why not run on old versions too?
18453   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18454     || (rm -f "$cfgfile"; exit 1)
18455
18456   case $xsi_shell in
18457   yes)
18458     cat << \_LT_EOF >> "$cfgfile"
18459
18460 # func_dirname file append nondir_replacement
18461 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18462 # otherwise set result to NONDIR_REPLACEMENT.
18463 func_dirname ()
18464 {
18465   case ${1} in
18466     */*) func_dirname_result="${1%/*}${2}" ;;
18467     *  ) func_dirname_result="${3}" ;;
18468   esac
18469 }
18470
18471 # func_basename file
18472 func_basename ()
18473 {
18474   func_basename_result="${1##*/}"
18475 }
18476
18477 # func_dirname_and_basename file append nondir_replacement
18478 # perform func_basename and func_dirname in a single function
18479 # call:
18480 #   dirname:  Compute the dirname of FILE.  If nonempty,
18481 #             add APPEND to the result, otherwise set result
18482 #             to NONDIR_REPLACEMENT.
18483 #             value returned in "$func_dirname_result"
18484 #   basename: Compute filename of FILE.
18485 #             value retuned in "$func_basename_result"
18486 # Implementation must be kept synchronized with func_dirname
18487 # and func_basename. For efficiency, we do not delegate to
18488 # those functions but instead duplicate the functionality here.
18489 func_dirname_and_basename ()
18490 {
18491   case ${1} in
18492     */*) func_dirname_result="${1%/*}${2}" ;;
18493     *  ) func_dirname_result="${3}" ;;
18494   esac
18495   func_basename_result="${1##*/}"
18496 }
18497
18498 # func_stripname prefix suffix name
18499 # strip PREFIX and SUFFIX off of NAME.
18500 # PREFIX and SUFFIX must not contain globbing or regex special
18501 # characters, hashes, percent signs, but SUFFIX may contain a leading
18502 # dot (in which case that matches only a dot).
18503 func_stripname ()
18504 {
18505   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18506   # positional parameters, so assign one to ordinary parameter first.
18507   func_stripname_result=${3}
18508   func_stripname_result=${func_stripname_result#"${1}"}
18509   func_stripname_result=${func_stripname_result%"${2}"}
18510 }
18511
18512 # func_opt_split
18513 func_opt_split ()
18514 {
18515   func_opt_split_opt=${1%%=*}
18516   func_opt_split_arg=${1#*=}
18517 }
18518
18519 # func_lo2o object
18520 func_lo2o ()
18521 {
18522   case ${1} in
18523     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18524     *)    func_lo2o_result=${1} ;;
18525   esac
18526 }
18527
18528 # func_xform libobj-or-source
18529 func_xform ()
18530 {
18531   func_xform_result=${1%.*}.lo
18532 }
18533
18534 # func_arith arithmetic-term...
18535 func_arith ()
18536 {
18537   func_arith_result=$(( $* ))
18538 }
18539
18540 # func_len string
18541 # STRING may not start with a hyphen.
18542 func_len ()
18543 {
18544   func_len_result=${#1}
18545 }
18546
18547 _LT_EOF
18548     ;;
18549   *) # Bourne compatible functions.
18550     cat << \_LT_EOF >> "$cfgfile"
18551
18552 # func_dirname file append nondir_replacement
18553 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18554 # otherwise set result to NONDIR_REPLACEMENT.
18555 func_dirname ()
18556 {
18557   # Extract subdirectory from the argument.
18558   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18559   if test "X$func_dirname_result" = "X${1}"; then
18560     func_dirname_result="${3}"
18561   else
18562     func_dirname_result="$func_dirname_result${2}"
18563   fi
18564 }
18565
18566 # func_basename file
18567 func_basename ()
18568 {
18569   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18570 }
18571
18572
18573 # func_stripname prefix suffix name
18574 # strip PREFIX and SUFFIX off of NAME.
18575 # PREFIX and SUFFIX must not contain globbing or regex special
18576 # characters, hashes, percent signs, but SUFFIX may contain a leading
18577 # dot (in which case that matches only a dot).
18578 # func_strip_suffix prefix name
18579 func_stripname ()
18580 {
18581   case ${2} in
18582     .*) func_stripname_result=`$ECHO "X${3}" \
18583            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18584     *)  func_stripname_result=`$ECHO "X${3}" \
18585            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18586   esac
18587 }
18588
18589 # sed scripts:
18590 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18591 my_sed_long_arg='1s/^-[^=]*=//'
18592
18593 # func_opt_split
18594 func_opt_split ()
18595 {
18596   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18597   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18598 }
18599
18600 # func_lo2o object
18601 func_lo2o ()
18602 {
18603   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18604 }
18605
18606 # func_xform libobj-or-source
18607 func_xform ()
18608 {
18609   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18610 }
18611
18612 # func_arith arithmetic-term...
18613 func_arith ()
18614 {
18615   func_arith_result=`expr "$@"`
18616 }
18617
18618 # func_len string
18619 # STRING may not start with a hyphen.
18620 func_len ()
18621 {
18622   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18623 }
18624
18625 _LT_EOF
18626 esac
18627
18628 case $lt_shell_append in
18629   yes)
18630     cat << \_LT_EOF >> "$cfgfile"
18631
18632 # func_append var value
18633 # Append VALUE to the end of shell variable VAR.
18634 func_append ()
18635 {
18636   eval "$1+=\$2"
18637 }
18638 _LT_EOF
18639     ;;
18640   *)
18641     cat << \_LT_EOF >> "$cfgfile"
18642
18643 # func_append var value
18644 # Append VALUE to the end of shell variable VAR.
18645 func_append ()
18646 {
18647   eval "$1=\$$1\$2"
18648 }
18649
18650 _LT_EOF
18651     ;;
18652   esac
18653
18654
18655   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18656     || (rm -f "$cfgfile"; exit 1)
18657
18658   mv -f "$cfgfile" "$ofile" ||
18659     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18660   chmod +x "$ofile"
18661
18662  ;;
18663     default-1 )
18664     for ac_file in $CONFIG_FILES; do
18665       # Support "outfile[:infile[:infile...]]"
18666       case "$ac_file" in
18667         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18668       esac
18669       # PO directories have a Makefile.in generated from Makefile.in.in.
18670       case "$ac_file" in */Makefile.in)
18671         # Adjust a relative srcdir.
18672         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18673         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18674         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18675         # In autoconf-2.13 it is called $ac_given_srcdir.
18676         # In autoconf-2.50 it is called $srcdir.
18677         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18678         case "$ac_given_srcdir" in
18679           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18680           /*) top_srcdir="$ac_given_srcdir" ;;
18681           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18682         esac
18683         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18684           rm -f "$ac_dir/POTFILES"
18685           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18686           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18687           POMAKEFILEDEPS="POTFILES.in"
18688           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18689           # on $ac_dir but don't depend on user-specified configuration
18690           # parameters.
18691           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18692             # The LINGUAS file contains the set of available languages.
18693             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18694               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18695             fi
18696             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18697             # Hide the ALL_LINGUAS assigment from automake.
18698             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18699             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18700           else
18701             # The set of available languages was given in configure.in.
18702             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18703           fi
18704           case "$ac_given_srcdir" in
18705             .) srcdirpre= ;;
18706             *) srcdirpre='$(srcdir)/' ;;
18707           esac
18708           POFILES=
18709           GMOFILES=
18710           UPDATEPOFILES=
18711           DUMMYPOFILES=
18712           for lang in $ALL_LINGUAS; do
18713             POFILES="$POFILES $srcdirpre$lang.po"
18714             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18715             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18716             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18717           done
18718           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18719           # environment variable.
18720           INST_LINGUAS=
18721           if test -n "$ALL_LINGUAS"; then
18722             for presentlang in $ALL_LINGUAS; do
18723               useit=no
18724               if test "%UNSET%" != "$LINGUAS"; then
18725                 desiredlanguages="$LINGUAS"
18726               else
18727                 desiredlanguages="$ALL_LINGUAS"
18728               fi
18729               for desiredlang in $desiredlanguages; do
18730                 # Use the presentlang catalog if desiredlang is
18731                 #   a. equal to presentlang, or
18732                 #   b. a variant of presentlang (because in this case,
18733                 #      presentlang can be used as a fallback for messages
18734                 #      which are not translated in the desiredlang catalog).
18735                 case "$desiredlang" in
18736                   "$presentlang"*) useit=yes;;
18737                 esac
18738               done
18739               if test $useit = yes; then
18740                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18741               fi
18742             done
18743           fi
18744           CATALOGS=
18745           if test -n "$INST_LINGUAS"; then
18746             for lang in $INST_LINGUAS; do
18747               CATALOGS="$CATALOGS $lang.gmo"
18748             done
18749           fi
18750           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18751           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18752           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18753             if test -f "$f"; then
18754               case "$f" in
18755                 *.orig | *.bak | *~) ;;
18756                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18757               esac
18758             fi
18759           done
18760         fi
18761         ;;
18762       esac
18763     done ;;
18764   esac
18765 done
18766 _ACEOF
18767
18768 cat >>$CONFIG_STATUS <<\_ACEOF
18769
18770 { (exit 0); exit 0; }
18771 _ACEOF
18772 chmod +x $CONFIG_STATUS
18773 ac_clean_files=$ac_clean_files_save
18774
18775
18776 # configure is writing to config.log, and then calls config.status.
18777 # config.status does its own redirection, appending to config.log.
18778 # Unfortunately, on DOS this fails, as config.log is still kept open
18779 # by configure, so config.status won't be able to write to it; its
18780 # output is simply discarded.  So we exec the FD to /dev/null,
18781 # effectively closing config.log, so it can be properly (re)opened and
18782 # appended to by config.status.  When coming back to configure, we
18783 # need to make the FD available again.
18784 if test "$no_create" != yes; then
18785   ac_cs_success=:
18786   ac_config_status_args=
18787   test "$silent" = yes &&
18788     ac_config_status_args="$ac_config_status_args --quiet"
18789   exec 5>/dev/null
18790   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18791   exec 5>>config.log
18792   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18793   # would make configure fail if this is the last instruction.
18794   $ac_cs_success || { (exit 1); exit 1; }
18795 fi
18796