* regenerated files from updating 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP 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 NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927   # Omit some internal or obsolete options to make the list less imposing.
928   # This message is too long to be a string in the A/UX 3.1 sh.
929   cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940   -h, --help              display this help and exit
941       --help=short        display options specific to this package
942       --help=recursive    display the short help of all the included packages
943   -V, --version           display version information and exit
944   -q, --quiet, --silent   do not print \`checking...' messages
945       --cache-file=FILE   cache test results in FILE [disabled]
946   -C, --config-cache      alias for \`--cache-file=config.cache'
947   -n, --no-create         do not create output files
948       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952   cat <<_ACEOF
953 Installation directories:
954   --prefix=PREFIX         install architecture-independent files in PREFIX
955                           [$ac_default_prefix]
956   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957                           [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967   --bindir=DIR           user executables [EPREFIX/bin]
968   --sbindir=DIR          system admin executables [EPREFIX/sbin]
969   --libexecdir=DIR       program executables [EPREFIX/libexec]
970   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974   --libdir=DIR           object code libraries [EPREFIX/lib]
975   --includedir=DIR       C header files [PREFIX/include]
976   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977   --infodir=DIR          info documentation [PREFIX/info]
978   --mandir=DIR           man documentation [PREFIX/man]
979 _ACEOF
980
981   cat <<\_ACEOF
982
983 Program names:
984   --program-prefix=PREFIX            prepend PREFIX to installed program names
985   --program-suffix=SUFFIX            append SUFFIX to installed program names
986   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988 System types:
989   --build=BUILD     configure for building on BUILD [guessed]
990   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991   --target=TARGET   configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996
997   cat <<\_ACEOF
998
999 Optional Features:
1000   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002   --disable-dependency-tracking  speeds up one-time build
1003   --enable-dependency-tracking   do not reject slow dependency extractors
1004   --enable-shared[=PKGS]
1005                           build shared libraries [default=yes]
1006   --enable-static[=PKGS]
1007                           build static libraries [default=yes]
1008   --enable-fast-install[=PKGS]
1009                           optimize for fast installation [default=yes]
1010   --disable-libtool-lock  avoid locking (might break parallel builds)
1011   --enable-targets        alternative target configurations
1012   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1013   --enable-werror         treat compile warnings as errors
1014   --enable-build-warnings enable build-time compiler warnings
1015   --disable-nls           do not use Native Language Support
1016   --enable-maintainer-mode  enable make rules and dependencies not useful
1017                           (and sometimes confusing) to the casual installer
1018
1019 Optional Packages:
1020   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1021   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1022   --with-pic              try to use only PIC/non-PIC objects [default=use
1023                           both]
1024   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1025
1026 Some influential environment variables:
1027   CC          C compiler command
1028   CFLAGS      C compiler flags
1029   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1030               nonstandard directory <lib dir>
1031   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1032               headers in a nonstandard directory <include dir>
1033   CPP         C preprocessor
1034
1035 Use these variables to override the choices made by `configure' or to help
1036 it to find libraries and programs with nonstandard names/locations.
1037
1038 _ACEOF
1039 fi
1040
1041 if test "$ac_init_help" = "recursive"; then
1042   # If there are subdirs, report their specific --help.
1043   ac_popdir=`pwd`
1044   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1045     test -d $ac_dir || continue
1046     ac_builddir=.
1047
1048 if test "$ac_dir" != .; then
1049   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1050   # A "../" for each directory in $ac_dir_suffix.
1051   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1052 else
1053   ac_dir_suffix= ac_top_builddir=
1054 fi
1055
1056 case $srcdir in
1057   .)  # No --srcdir option.  We are building in place.
1058     ac_srcdir=.
1059     if test -z "$ac_top_builddir"; then
1060        ac_top_srcdir=.
1061     else
1062        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1063     fi ;;
1064   [\\/]* | ?:[\\/]* )  # Absolute path.
1065     ac_srcdir=$srcdir$ac_dir_suffix;
1066     ac_top_srcdir=$srcdir ;;
1067   *) # Relative path.
1068     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1069     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1070 esac
1071
1072 # Do not use `cd foo && pwd` to compute absolute paths, because
1073 # the directories may not exist.
1074 case `pwd` in
1075 .) ac_abs_builddir="$ac_dir";;
1076 *)
1077   case "$ac_dir" in
1078   .) ac_abs_builddir=`pwd`;;
1079   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1080   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1081   esac;;
1082 esac
1083 case $ac_abs_builddir in
1084 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *)
1086   case ${ac_top_builddir}. in
1087   .) ac_abs_top_builddir=$ac_abs_builddir;;
1088   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1089   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1090   esac;;
1091 esac
1092 case $ac_abs_builddir in
1093 .) ac_abs_srcdir=$ac_srcdir;;
1094 *)
1095   case $ac_srcdir in
1096   .) ac_abs_srcdir=$ac_abs_builddir;;
1097   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1098   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1099   esac;;
1100 esac
1101 case $ac_abs_builddir in
1102 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *)
1104   case $ac_top_srcdir in
1105   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1106   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1107   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1108   esac;;
1109 esac
1110
1111     cd $ac_dir
1112     # Check for guested configure; otherwise get Cygnus style configure.
1113     if test -f $ac_srcdir/configure.gnu; then
1114       echo
1115       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1116     elif test -f $ac_srcdir/configure; then
1117       echo
1118       $SHELL $ac_srcdir/configure  --help=recursive
1119     elif test -f $ac_srcdir/configure.ac ||
1120            test -f $ac_srcdir/configure.in; then
1121       echo
1122       $ac_configure --help
1123     else
1124       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125     fi
1126     cd $ac_popdir
1127   done
1128 fi
1129
1130 test -n "$ac_init_help" && exit 0
1131 if $ac_init_version; then
1132   cat <<\_ACEOF
1133
1134 Copyright (C) 2003 Free Software Foundation, Inc.
1135 This configure script is free software; the Free Software Foundation
1136 gives unlimited permission to copy, distribute and modify it.
1137 _ACEOF
1138   exit 0
1139 fi
1140 exec 5>config.log
1141 cat >&5 <<_ACEOF
1142 This file contains any messages produced by compilers while
1143 running configure, to aid debugging if configure makes a mistake.
1144
1145 It was created by $as_me, which was
1146 generated by GNU Autoconf 2.59.  Invocation command line was
1147
1148   $ $0 $@
1149
1150 _ACEOF
1151 {
1152 cat <<_ASUNAME
1153 ## --------- ##
1154 ## Platform. ##
1155 ## --------- ##
1156
1157 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162
1163 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1165
1166 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1167 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1168 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1170 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1171 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1172 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1173
1174 _ASUNAME
1175
1176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177 for as_dir in $PATH
1178 do
1179   IFS=$as_save_IFS
1180   test -z "$as_dir" && as_dir=.
1181   echo "PATH: $as_dir"
1182 done
1183
1184 } >&5
1185
1186 cat >&5 <<_ACEOF
1187
1188
1189 ## ----------- ##
1190 ## Core tests. ##
1191 ## ----------- ##
1192
1193 _ACEOF
1194
1195
1196 # Keep a trace of the command line.
1197 # Strip out --no-create and --no-recursion so they do not pile up.
1198 # Strip out --silent because we don't want to record it for future runs.
1199 # Also quote any args containing shell meta-characters.
1200 # Make two passes to allow for proper duplicate-argument suppression.
1201 ac_configure_args=
1202 ac_configure_args0=
1203 ac_configure_args1=
1204 ac_sep=
1205 ac_must_keep_next=false
1206 for ac_pass in 1 2
1207 do
1208   for ac_arg
1209   do
1210     case $ac_arg in
1211     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1212     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213     | -silent | --silent | --silen | --sile | --sil)
1214       continue ;;
1215     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1216       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1217     esac
1218     case $ac_pass in
1219     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220     2)
1221       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1222       if test $ac_must_keep_next = true; then
1223         ac_must_keep_next=false # Got value, back to normal.
1224       else
1225         case $ac_arg in
1226           *=* | --config-cache | -C | -disable-* | --disable-* \
1227           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1228           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1229           | -with-* | --with-* | -without-* | --without-* | --x)
1230             case "$ac_configure_args0 " in
1231               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1232             esac
1233             ;;
1234           -* ) ac_must_keep_next=true ;;
1235         esac
1236       fi
1237       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1238       # Get rid of the leading space.
1239       ac_sep=" "
1240       ;;
1241     esac
1242   done
1243 done
1244 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1245 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246
1247 # When interrupted or exit'd, cleanup temporary files, and complete
1248 # config.log.  We remove comments because anyway the quotes in there
1249 # would cause problems or look ugly.
1250 # WARNING: Be sure not to use single quotes in there, as some shells,
1251 # such as our DU 5.0 friend, will then `close' the trap.
1252 trap 'exit_status=$?
1253   # Save into config.log some information that might help in debugging.
1254   {
1255     echo
1256
1257     cat <<\_ASBOX
1258 ## ---------------- ##
1259 ## Cache variables. ##
1260 ## ---------------- ##
1261 _ASBOX
1262     echo
1263     # The following way of writing the cache mishandles newlines in values,
1264 {
1265   (set) 2>&1 |
1266     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1267     *ac_space=\ *)
1268       sed -n \
1269         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1270           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1271       ;;
1272     *)
1273       sed -n \
1274         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275       ;;
1276     esac;
1277 }
1278     echo
1279
1280     cat <<\_ASBOX
1281 ## ----------------- ##
1282 ## Output variables. ##
1283 ## ----------------- ##
1284 _ASBOX
1285     echo
1286     for ac_var in $ac_subst_vars
1287     do
1288       eval ac_val=$`echo $ac_var`
1289       echo "$ac_var='"'"'$ac_val'"'"'"
1290     done | sort
1291     echo
1292
1293     if test -n "$ac_subst_files"; then
1294       cat <<\_ASBOX
1295 ## ------------- ##
1296 ## Output files. ##
1297 ## ------------- ##
1298 _ASBOX
1299       echo
1300       for ac_var in $ac_subst_files
1301       do
1302         eval ac_val=$`echo $ac_var`
1303         echo "$ac_var='"'"'$ac_val'"'"'"
1304       done | sort
1305       echo
1306     fi
1307
1308     if test -s confdefs.h; then
1309       cat <<\_ASBOX
1310 ## ----------- ##
1311 ## confdefs.h. ##
1312 ## ----------- ##
1313 _ASBOX
1314       echo
1315       sed "/^$/d" confdefs.h | sort
1316       echo
1317     fi
1318     test "$ac_signal" != 0 &&
1319       echo "$as_me: caught signal $ac_signal"
1320     echo "$as_me: exit $exit_status"
1321   } >&5
1322   rm -f core *.core &&
1323   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1324     exit $exit_status
1325      ' 0
1326 for ac_signal in 1 2 13 15; do
1327   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1328 done
1329 ac_signal=0
1330
1331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1332 rm -rf conftest* confdefs.h
1333 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1334 echo >confdefs.h
1335
1336 # Predefined preprocessor variables.
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_NAME "$PACKAGE_NAME"
1340 _ACEOF
1341
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_STRING "$PACKAGE_STRING"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1360 _ACEOF
1361
1362
1363 # Let the site file select an alternate cache file if it wants to.
1364 # Prefer explicitly selected file to automatically selected ones.
1365 if test -z "$CONFIG_SITE"; then
1366   if test "x$prefix" != xNONE; then
1367     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1368   else
1369     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1370   fi
1371 fi
1372 for ac_site_file in $CONFIG_SITE; do
1373   if test -r "$ac_site_file"; then
1374     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1375 echo "$as_me: loading site script $ac_site_file" >&6;}
1376     sed 's/^/| /' "$ac_site_file" >&5
1377     . "$ac_site_file"
1378   fi
1379 done
1380
1381 if test -r "$cache_file"; then
1382   # Some versions of bash will fail to source /dev/null (special
1383   # files actually), so we avoid doing that.
1384   if test -f "$cache_file"; then
1385     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1386 echo "$as_me: loading cache $cache_file" >&6;}
1387     case $cache_file in
1388       [\\/]* | ?:[\\/]* ) . $cache_file;;
1389       *)                      . ./$cache_file;;
1390     esac
1391   fi
1392 else
1393   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1394 echo "$as_me: creating cache $cache_file" >&6;}
1395   >$cache_file
1396 fi
1397
1398 # Check that the precious variables saved in the cache have kept the same
1399 # value.
1400 ac_cache_corrupted=false
1401 for ac_var in `(set) 2>&1 |
1402                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1403   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1404   eval ac_new_set=\$ac_env_${ac_var}_set
1405   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1406   eval ac_new_val="\$ac_env_${ac_var}_value"
1407   case $ac_old_set,$ac_new_set in
1408     set,)
1409       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1410 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1411       ac_cache_corrupted=: ;;
1412     ,set)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,);;
1417     *)
1418       if test "x$ac_old_val" != "x$ac_new_val"; then
1419         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1420 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1421         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1422 echo "$as_me:   former value:  $ac_old_val" >&2;}
1423         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1424 echo "$as_me:   current value: $ac_new_val" >&2;}
1425         ac_cache_corrupted=:
1426       fi;;
1427   esac
1428   # Pass precious variables to config.status.
1429   if test "$ac_new_set" = set; then
1430     case $ac_new_val in
1431     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1432       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1433     *) ac_arg=$ac_var=$ac_new_val ;;
1434     esac
1435     case " $ac_configure_args " in
1436       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1437       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1438     esac
1439   fi
1440 done
1441 if $ac_cache_corrupted; then
1442   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1443 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1444   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1445 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1446    { (exit 1); exit 1; }; }
1447 fi
1448
1449 ac_ext=c
1450 ac_cpp='$CPP $CPPFLAGS'
1451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474 ac_aux_dir=
1475 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1476   if test -f $ac_dir/install-sh; then
1477     ac_aux_dir=$ac_dir
1478     ac_install_sh="$ac_aux_dir/install-sh -c"
1479     break
1480   elif test -f $ac_dir/install.sh; then
1481     ac_aux_dir=$ac_dir
1482     ac_install_sh="$ac_aux_dir/install.sh -c"
1483     break
1484   elif test -f $ac_dir/shtool; then
1485     ac_aux_dir=$ac_dir
1486     ac_install_sh="$ac_aux_dir/shtool install -c"
1487     break
1488   fi
1489 done
1490 if test -z "$ac_aux_dir"; then
1491   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1492 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1493    { (exit 1); exit 1; }; }
1494 fi
1495 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1498
1499 # Make sure we can run config.sub.
1500 $ac_config_sub sun4 >/dev/null 2>&1 ||
1501   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1502 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1503    { (exit 1); exit 1; }; }
1504
1505 echo "$as_me:$LINENO: checking build system type" >&5
1506 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1507 if test "${ac_cv_build+set}" = set; then
1508   echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510   ac_cv_build_alias=$build_alias
1511 test -z "$ac_cv_build_alias" &&
1512   ac_cv_build_alias=`$ac_config_guess`
1513 test -z "$ac_cv_build_alias" &&
1514   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1516    { (exit 1); exit 1; }; }
1517 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1518   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1519 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1520    { (exit 1); exit 1; }; }
1521
1522 fi
1523 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1524 echo "${ECHO_T}$ac_cv_build" >&6
1525 build=$ac_cv_build
1526 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1527 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1528 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529
1530
1531 echo "$as_me:$LINENO: checking host system type" >&5
1532 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1533 if test "${ac_cv_host+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   ac_cv_host_alias=$host_alias
1537 test -z "$ac_cv_host_alias" &&
1538   ac_cv_host_alias=$ac_cv_build_alias
1539 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1540   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1541 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1542    { (exit 1); exit 1; }; }
1543
1544 fi
1545 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1546 echo "${ECHO_T}$ac_cv_host" >&6
1547 host=$ac_cv_host
1548 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1549 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1550 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551
1552
1553 echo "$as_me:$LINENO: checking target system type" >&5
1554 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1555 if test "${ac_cv_target+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   ac_cv_target_alias=$target_alias
1559 test "x$ac_cv_target_alias" = "x" &&
1560   ac_cv_target_alias=$ac_cv_host_alias
1561 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1562   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1564    { (exit 1); exit 1; }; }
1565
1566 fi
1567 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1568 echo "${ECHO_T}$ac_cv_target" >&6
1569 target=$ac_cv_target
1570 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573
1574
1575 # The aliases save the names the user supplied, while $host etc.
1576 # will get canonicalized.
1577 test -n "$target_alias" &&
1578   test "$program_prefix$program_suffix$program_transform_name" = \
1579     NONENONEs,x,x, &&
1580   program_prefix=${target_alias}-
1581 ac_ext=c
1582 ac_cpp='$CPP $CPPFLAGS'
1583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1586 if test -n "$ac_tool_prefix"; then
1587   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1588 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591 if test "${ac_cv_prog_CC+set}" = set; then
1592   echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594   if test -n "$CC"; then
1595   ac_cv_prog_CC="$CC" # Let the user override the test.
1596 else
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1599 do
1600   IFS=$as_save_IFS
1601   test -z "$as_dir" && as_dir=.
1602   for ac_exec_ext in '' $ac_executable_extensions; do
1603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606     break 2
1607   fi
1608 done
1609 done
1610
1611 fi
1612 fi
1613 CC=$ac_cv_prog_CC
1614 if test -n "$CC"; then
1615   echo "$as_me:$LINENO: result: $CC" >&5
1616 echo "${ECHO_T}$CC" >&6
1617 else
1618   echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1620 fi
1621
1622 fi
1623 if test -z "$ac_cv_prog_CC"; then
1624   ac_ct_CC=$CC
1625   # Extract the first word of "gcc", so it can be a program name with args.
1626 set dummy gcc; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1630   echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632   if test -n "$ac_ct_CC"; then
1633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1634 else
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638   IFS=$as_save_IFS
1639   test -z "$as_dir" && as_dir=.
1640   for ac_exec_ext in '' $ac_executable_extensions; do
1641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642     ac_cv_prog_ac_ct_CC="gcc"
1643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644     break 2
1645   fi
1646 done
1647 done
1648
1649 fi
1650 fi
1651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1652 if test -n "$ac_ct_CC"; then
1653   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1654 echo "${ECHO_T}$ac_ct_CC" >&6
1655 else
1656   echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1658 fi
1659
1660   CC=$ac_ct_CC
1661 else
1662   CC="$ac_cv_prog_CC"
1663 fi
1664
1665 if test -z "$CC"; then
1666   if test -n "$ac_tool_prefix"; then
1667   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1668 set dummy ${ac_tool_prefix}cc; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_CC+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   if test -n "$CC"; then
1675   ac_cv_prog_CC="$CC" # Let the user override the test.
1676 else
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680   IFS=$as_save_IFS
1681   test -z "$as_dir" && as_dir=.
1682   for ac_exec_ext in '' $ac_executable_extensions; do
1683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684     ac_cv_prog_CC="${ac_tool_prefix}cc"
1685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686     break 2
1687   fi
1688 done
1689 done
1690
1691 fi
1692 fi
1693 CC=$ac_cv_prog_CC
1694 if test -n "$CC"; then
1695   echo "$as_me:$LINENO: result: $CC" >&5
1696 echo "${ECHO_T}$CC" >&6
1697 else
1698   echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 fi
1701
1702 fi
1703 if test -z "$ac_cv_prog_CC"; then
1704   ac_ct_CC=$CC
1705   # Extract the first word of "cc", so it can be a program name with args.
1706 set dummy cc; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   if test -n "$ac_ct_CC"; then
1713   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   for ac_exec_ext in '' $ac_executable_extensions; do
1721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722     ac_cv_prog_ac_ct_CC="cc"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729 fi
1730 fi
1731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1732 if test -n "$ac_ct_CC"; then
1733   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1734 echo "${ECHO_T}$ac_ct_CC" >&6
1735 else
1736   echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1738 fi
1739
1740   CC=$ac_ct_CC
1741 else
1742   CC="$ac_cv_prog_CC"
1743 fi
1744
1745 fi
1746 if test -z "$CC"; then
1747   # Extract the first word of "cc", so it can be a program name with args.
1748 set dummy cc; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_CC+set}" = set; then
1752   echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754   if test -n "$CC"; then
1755   ac_cv_prog_CC="$CC" # Let the user override the test.
1756 else
1757   ac_prog_rejected=no
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761   IFS=$as_save_IFS
1762   test -z "$as_dir" && as_dir=.
1763   for ac_exec_ext in '' $ac_executable_extensions; do
1764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1766        ac_prog_rejected=yes
1767        continue
1768      fi
1769     ac_cv_prog_CC="cc"
1770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771     break 2
1772   fi
1773 done
1774 done
1775
1776 if test $ac_prog_rejected = yes; then
1777   # We found a bogon in the path, so make sure we never use it.
1778   set dummy $ac_cv_prog_CC
1779   shift
1780   if test $# != 0; then
1781     # We chose a different compiler from the bogus one.
1782     # However, it has the same basename, so the bogon will be chosen
1783     # first if we set CC to just the basename; use the full file name.
1784     shift
1785     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1786   fi
1787 fi
1788 fi
1789 fi
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792   echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799 fi
1800 if test -z "$CC"; then
1801   if test -n "$ac_tool_prefix"; then
1802   for ac_prog in cl
1803   do
1804     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_CC+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$CC"; then
1812   ac_cv_prog_CC="$CC" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 CC=$ac_cv_prog_CC
1831 if test -n "$CC"; then
1832   echo "$as_me:$LINENO: result: $CC" >&5
1833 echo "${ECHO_T}$CC" >&6
1834 else
1835   echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839     test -n "$CC" && break
1840   done
1841 fi
1842 if test -z "$CC"; then
1843   ac_ct_CC=$CC
1844   for ac_prog in cl
1845 do
1846   # Extract the first word of "$ac_prog", so it can be a program name with args.
1847 set dummy $ac_prog; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1851   echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853   if test -n "$ac_ct_CC"; then
1854   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859   IFS=$as_save_IFS
1860   test -z "$as_dir" && as_dir=.
1861   for ac_exec_ext in '' $ac_executable_extensions; do
1862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863     ac_cv_prog_ac_ct_CC="$ac_prog"
1864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865     break 2
1866   fi
1867 done
1868 done
1869
1870 fi
1871 fi
1872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1873 if test -n "$ac_ct_CC"; then
1874   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1875 echo "${ECHO_T}$ac_ct_CC" >&6
1876 else
1877   echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1879 fi
1880
1881   test -n "$ac_ct_CC" && break
1882 done
1883
1884   CC=$ac_ct_CC
1885 fi
1886
1887 fi
1888
1889
1890 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1891 See \`config.log' for more details." >&5
1892 echo "$as_me: error: no acceptable C compiler found in \$PATH
1893 See \`config.log' for more details." >&2;}
1894    { (exit 1); exit 1; }; }
1895
1896 # Provide some information about the compiler.
1897 echo "$as_me:$LINENO:" \
1898      "checking for C compiler version" >&5
1899 ac_compiler=`set X $ac_compile; echo $2`
1900 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1901   (eval $ac_compiler --version </dev/null >&5) 2>&5
1902   ac_status=$?
1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904   (exit $ac_status); }
1905 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1906   (eval $ac_compiler -v </dev/null >&5) 2>&5
1907   ac_status=$?
1908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909   (exit $ac_status); }
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1911   (eval $ac_compiler -V </dev/null >&5) 2>&5
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); }
1915
1916 cat >conftest.$ac_ext <<_ACEOF
1917 /* confdefs.h.  */
1918 _ACEOF
1919 cat confdefs.h >>conftest.$ac_ext
1920 cat >>conftest.$ac_ext <<_ACEOF
1921 /* end confdefs.h.  */
1922
1923 int
1924 main ()
1925 {
1926
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 ac_clean_files_save=$ac_clean_files
1932 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1933 # Try to create an executable without -o first, disregard a.out.
1934 # It will help us diagnose broken compilers, and finding out an intuition
1935 # of exeext.
1936 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1937 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1938 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1939 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1940   (eval $ac_link_default) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; then
1944   # Find the output, starting from the most likely.  This scheme is
1945 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1946 # resort.
1947
1948 # Be careful to initialize this variable, since it used to be cached.
1949 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1950 ac_cv_exeext=
1951 # b.out is created by i960 compilers.
1952 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1953 do
1954   test -f "$ac_file" || continue
1955   case $ac_file in
1956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1957         ;;
1958     conftest.$ac_ext )
1959         # This is the source file.
1960         ;;
1961     [ab].out )
1962         # We found the default executable, but exeext='' is most
1963         # certainly right.
1964         break;;
1965     *.* )
1966         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1967         # FIXME: I believe we export ac_cv_exeext for Libtool,
1968         # but it would be cool to find out if it's true.  Does anybody
1969         # maintain Libtool? --akim.
1970         export ac_cv_exeext
1971         break;;
1972     * )
1973         break;;
1974   esac
1975 done
1976 else
1977   echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: C compiler cannot create executables
1983 See \`config.log' for more details." >&2;}
1984    { (exit 77); exit 77; }; }
1985 fi
1986
1987 ac_exeext=$ac_cv_exeext
1988 echo "$as_me:$LINENO: result: $ac_file" >&5
1989 echo "${ECHO_T}$ac_file" >&6
1990
1991 # Check the compiler produces executables we can run.  If not, either
1992 # the compiler is broken, or we cross compile.
1993 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1994 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1995 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1996 # If not cross compiling, check that we can run a simple program.
1997 if test "$cross_compiling" != yes; then
1998   if { ac_try='./$ac_file'
1999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000   (eval $ac_try) 2>&5
2001   ac_status=$?
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); }; }; then
2004     cross_compiling=no
2005   else
2006     if test "$cross_compiling" = maybe; then
2007         cross_compiling=yes
2008     else
2009         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2010 If you meant to cross compile, use \`--host'.
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: cannot run C compiled programs.
2013 If you meant to cross compile, use \`--host'.
2014 See \`config.log' for more details." >&2;}
2015    { (exit 1); exit 1; }; }
2016     fi
2017   fi
2018 fi
2019 echo "$as_me:$LINENO: result: yes" >&5
2020 echo "${ECHO_T}yes" >&6
2021
2022 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2023 ac_clean_files=$ac_clean_files_save
2024 # Check the compiler produces executables we can run.  If not, either
2025 # the compiler is broken, or we cross compile.
2026 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2027 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2028 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2029 echo "${ECHO_T}$cross_compiling" >&6
2030
2031 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2032 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2034   (eval $ac_link) 2>&5
2035   ac_status=$?
2036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037   (exit $ac_status); }; then
2038   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2039 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2040 # work properly (i.e., refer to `conftest.exe'), while it won't with
2041 # `rm'.
2042 for ac_file in conftest.exe conftest conftest.*; do
2043   test -f "$ac_file" || continue
2044   case $ac_file in
2045     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2046     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2047           export ac_cv_exeext
2048           break;;
2049     * ) break;;
2050   esac
2051 done
2052 else
2053   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2056 See \`config.log' for more details." >&2;}
2057    { (exit 1); exit 1; }; }
2058 fi
2059
2060 rm -f conftest$ac_cv_exeext
2061 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2062 echo "${ECHO_T}$ac_cv_exeext" >&6
2063
2064 rm -f conftest.$ac_ext
2065 EXEEXT=$ac_cv_exeext
2066 ac_exeext=$EXEEXT
2067 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2068 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2069 if test "${ac_cv_objext+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   cat >conftest.$ac_ext <<_ACEOF
2073 /* confdefs.h.  */
2074 _ACEOF
2075 cat confdefs.h >>conftest.$ac_ext
2076 cat >>conftest.$ac_ext <<_ACEOF
2077 /* end confdefs.h.  */
2078
2079 int
2080 main ()
2081 {
2082
2083   ;
2084   return 0;
2085 }
2086 _ACEOF
2087 rm -f conftest.o conftest.obj
2088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2089   (eval $ac_compile) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; then
2093   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2094   case $ac_file in
2095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2096     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2097        break;;
2098   esac
2099 done
2100 else
2101   echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2103
2104 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2107 See \`config.log' for more details." >&2;}
2108    { (exit 1); exit 1; }; }
2109 fi
2110
2111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2112 fi
2113 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2114 echo "${ECHO_T}$ac_cv_objext" >&6
2115 OBJEXT=$ac_cv_objext
2116 ac_objext=$OBJEXT
2117 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2118 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2119 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132 #ifndef __GNUC__
2133        choke me
2134 #endif
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>conftest.er1
2143   ac_status=$?
2144   grep -v '^ *+' conftest.er1 >conftest.err
2145   rm -f conftest.er1
2146   cat conftest.err >&5
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); } &&
2149          { ac_try='test -z "$ac_c_werror_flag"
2150                          || test ! -s conftest.err'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; } &&
2156          { ac_try='test -s conftest.$ac_objext'
2157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; }; then
2162   ac_compiler_gnu=yes
2163 else
2164   echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 ac_compiler_gnu=no
2168 fi
2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2171
2172 fi
2173 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2174 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2175 GCC=`test $ac_compiler_gnu = yes && echo yes`
2176 ac_test_CFLAGS=${CFLAGS+set}
2177 ac_save_CFLAGS=$CFLAGS
2178 CFLAGS="-g"
2179 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2180 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2181 if test "${ac_cv_prog_cc_g+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   cat >conftest.$ac_ext <<_ACEOF
2185 /* confdefs.h.  */
2186 _ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h.  */
2190
2191 int
2192 main ()
2193 {
2194
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201   (eval $ac_compile) 2>conftest.er1
2202   ac_status=$?
2203   grep -v '^ *+' conftest.er1 >conftest.err
2204   rm -f conftest.er1
2205   cat conftest.err >&5
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); } &&
2208          { ac_try='test -z "$ac_c_werror_flag"
2209                          || test ! -s conftest.err'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; } &&
2215          { ac_try='test -s conftest.$ac_objext'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221   ac_cv_prog_cc_g=yes
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 ac_cv_prog_cc_g=no
2227 fi
2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229 fi
2230 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2231 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2232 if test "$ac_test_CFLAGS" = set; then
2233   CFLAGS=$ac_save_CFLAGS
2234 elif test $ac_cv_prog_cc_g = yes; then
2235   if test "$GCC" = yes; then
2236     CFLAGS="-g -O2"
2237   else
2238     CFLAGS="-g"
2239   fi
2240 else
2241   if test "$GCC" = yes; then
2242     CFLAGS="-O2"
2243   else
2244     CFLAGS=
2245   fi
2246 fi
2247 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2248 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2249 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   ac_cv_prog_cc_stdc=no
2253 ac_save_CC=$CC
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h.  */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h.  */
2260 #include <stdarg.h>
2261 #include <stdio.h>
2262 #include <sys/types.h>
2263 #include <sys/stat.h>
2264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2265 struct buf { int x; };
2266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2267 static char *e (p, i)
2268      char **p;
2269      int i;
2270 {
2271   return p[i];
2272 }
2273 static char *f (char * (*g) (char **, int), char **p, ...)
2274 {
2275   char *s;
2276   va_list v;
2277   va_start (v,p);
2278   s = g (p, va_arg (v,int));
2279   va_end (v);
2280   return s;
2281 }
2282
2283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2284    function prototypes and stuff, but not '\xHH' hex character constants.
2285    These don't provoke an error unfortunately, instead are silently treated
2286    as 'x'.  The following induces an error, until -std1 is added to get
2287    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2288    array size at least.  It's necessary to write '\x00'==0 to get something
2289    that's true only with -std1.  */
2290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2291
2292 int test (int i, double x);
2293 struct s1 {int (*f) (int a);};
2294 struct s2 {int (*f) (double a);};
2295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2296 int argc;
2297 char **argv;
2298 int
2299 main ()
2300 {
2301 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2302   ;
2303   return 0;
2304 }
2305 _ACEOF
2306 # Don't try gcc -ansi; that turns off useful extensions and
2307 # breaks some systems' header files.
2308 # AIX                   -qlanglvl=ansi
2309 # Ultrix and OSF/1      -std1
2310 # HP-UX 10.20 and later -Ae
2311 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2312 # SVR4                  -Xc -D__EXTENSIONS__
2313 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2314 do
2315   CC="$ac_save_CC $ac_arg"
2316   rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318   (eval $ac_compile) 2>conftest.er1
2319   ac_status=$?
2320   grep -v '^ *+' conftest.er1 >conftest.err
2321   rm -f conftest.er1
2322   cat conftest.err >&5
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); } &&
2325          { ac_try='test -z "$ac_c_werror_flag"
2326                          || test ! -s conftest.err'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; } &&
2332          { ac_try='test -s conftest.$ac_objext'
2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; }; then
2338   ac_cv_prog_cc_stdc=$ac_arg
2339 break
2340 else
2341   echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 fi
2345 rm -f conftest.err conftest.$ac_objext
2346 done
2347 rm -f conftest.$ac_ext conftest.$ac_objext
2348 CC=$ac_save_CC
2349
2350 fi
2351
2352 case "x$ac_cv_prog_cc_stdc" in
2353   x|xno)
2354     echo "$as_me:$LINENO: result: none needed" >&5
2355 echo "${ECHO_T}none needed" >&6 ;;
2356   *)
2357     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2358 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2359     CC="$CC $ac_cv_prog_cc_stdc" ;;
2360 esac
2361
2362 # Some people use a C++ compiler to compile C.  Since we use `exit',
2363 # in C++ we need to declare it.  In case someone uses the same compiler
2364 # for both compiling C and C++ we need to have the C++ compiler decide
2365 # the declaration of exit, since it's the most demanding environment.
2366 cat >conftest.$ac_ext <<_ACEOF
2367 #ifndef __cplusplus
2368   choke me
2369 #endif
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373   (eval $ac_compile) 2>conftest.er1
2374   ac_status=$?
2375   grep -v '^ *+' conftest.er1 >conftest.err
2376   rm -f conftest.er1
2377   cat conftest.err >&5
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } &&
2380          { ac_try='test -z "$ac_c_werror_flag"
2381                          || test ! -s conftest.err'
2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383   (eval $ac_try) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; } &&
2387          { ac_try='test -s conftest.$ac_objext'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; }; then
2393   for ac_declaration in \
2394    '' \
2395    'extern "C" void std::exit (int) throw (); using std::exit;' \
2396    'extern "C" void std::exit (int); using std::exit;' \
2397    'extern "C" void exit (int) throw ();' \
2398    'extern "C" void exit (int);' \
2399    'void exit (int);'
2400 do
2401   cat >conftest.$ac_ext <<_ACEOF
2402 /* confdefs.h.  */
2403 _ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h.  */
2407 $ac_declaration
2408 #include <stdlib.h>
2409 int
2410 main ()
2411 {
2412 exit (42);
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 rm -f conftest.$ac_objext
2418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419   (eval $ac_compile) 2>conftest.er1
2420   ac_status=$?
2421   grep -v '^ *+' conftest.er1 >conftest.err
2422   rm -f conftest.er1
2423   cat conftest.err >&5
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } &&
2426          { ac_try='test -z "$ac_c_werror_flag"
2427                          || test ! -s conftest.err'
2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   :
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 continue
2445 fi
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447   cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h.  */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h.  */
2453 $ac_declaration
2454 int
2455 main ()
2456 {
2457 exit (42);
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464   (eval $ac_compile) 2>conftest.er1
2465   ac_status=$?
2466   grep -v '^ *+' conftest.er1 >conftest.err
2467   rm -f conftest.er1
2468   cat conftest.err >&5
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -z "$ac_c_werror_flag"
2472                          || test ! -s conftest.err'
2473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474   (eval $ac_try) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }; } &&
2478          { ac_try='test -s conftest.$ac_objext'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; }; then
2484   break
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 fi
2490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2491 done
2492 rm -f conftest*
2493 if test -n "$ac_declaration"; then
2494   echo '#ifdef __cplusplus' >>confdefs.h
2495   echo $ac_declaration      >>confdefs.h
2496   echo '#endif'             >>confdefs.h
2497 fi
2498
2499 else
2500   echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2502
2503 fi
2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
2511
2512 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2513 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2514 if test "${ac_cv_search_strerror+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   ac_func_search_save_LIBS=$LIBS
2518 ac_cv_search_strerror=no
2519 cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h.  */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h.  */
2525
2526 /* Override any gcc2 internal prototype to avoid an error.  */
2527 #ifdef __cplusplus
2528 extern "C"
2529 #endif
2530 /* We use char because int might match the return type of a gcc2
2531    builtin and then its argument prototype would still apply.  */
2532 char strerror ();
2533 int
2534 main ()
2535 {
2536 strerror ();
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.$ac_objext conftest$ac_exeext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2543   (eval $ac_link) 2>conftest.er1
2544   ac_status=$?
2545   grep -v '^ *+' conftest.er1 >conftest.err
2546   rm -f conftest.er1
2547   cat conftest.err >&5
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } &&
2550          { ac_try='test -z "$ac_c_werror_flag"
2551                          || test ! -s conftest.err'
2552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553   (eval $ac_try) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; } &&
2557          { ac_try='test -s conftest$ac_exeext'
2558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559   (eval $ac_try) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; }; then
2563   ac_cv_search_strerror="none required"
2564 else
2565   echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 fi
2569 rm -f conftest.err conftest.$ac_objext \
2570       conftest$ac_exeext conftest.$ac_ext
2571 if test "$ac_cv_search_strerror" = no; then
2572   for ac_lib in cposix; do
2573     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2574     cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580
2581 /* Override any gcc2 internal prototype to avoid an error.  */
2582 #ifdef __cplusplus
2583 extern "C"
2584 #endif
2585 /* We use char because int might match the return type of a gcc2
2586    builtin and then its argument prototype would still apply.  */
2587 char strerror ();
2588 int
2589 main ()
2590 {
2591 strerror ();
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext conftest$ac_exeext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2598   (eval $ac_link) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest$ac_exeext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_cv_search_strerror="-l$ac_lib"
2619 break
2620 else
2621   echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624 fi
2625 rm -f conftest.err conftest.$ac_objext \
2626       conftest$ac_exeext conftest.$ac_ext
2627   done
2628 fi
2629 LIBS=$ac_func_search_save_LIBS
2630 fi
2631 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2632 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2633 if test "$ac_cv_search_strerror" != no; then
2634   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2635
2636 fi
2637
2638
2639 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2640 am__api_version="1.9"
2641 # Find a good install program.  We prefer a C program (faster),
2642 # so one script is as good as another.  But avoid the broken or
2643 # incompatible versions:
2644 # SysV /etc/install, /usr/sbin/install
2645 # SunOS /usr/etc/install
2646 # IRIX /sbin/install
2647 # AIX /bin/install
2648 # AmigaOS /C/install, which installs bootblocks on floppy discs
2649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2652 # OS/2's system install, which has a completely different semantic
2653 # ./install, which can be erroneously created by make from ./install.sh.
2654 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2655 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2656 if test -z "$INSTALL"; then
2657 if test "${ac_cv_path_install+set}" = set; then
2658   echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665   # Account for people who put trailing slashes in PATH elements.
2666 case $as_dir/ in
2667   ./ | .// | /cC/* | \
2668   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2669   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2670   /usr/ucb/* ) ;;
2671   *)
2672     # OSF1 and SCO ODT 3.0 have their own names for install.
2673     # Don't use installbsd from OSF since it installs stuff as root
2674     # by default.
2675     for ac_prog in ginstall scoinst install; do
2676       for ac_exec_ext in '' $ac_executable_extensions; do
2677         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2678           if test $ac_prog = install &&
2679             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680             # AIX install.  It has an incompatible calling convention.
2681             :
2682           elif test $ac_prog = install &&
2683             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2684             # program-specific install script used by HP pwplus--don't use.
2685             :
2686           else
2687             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2688             break 3
2689           fi
2690         fi
2691       done
2692     done
2693     ;;
2694 esac
2695 done
2696
2697
2698 fi
2699   if test "${ac_cv_path_install+set}" = set; then
2700     INSTALL=$ac_cv_path_install
2701   else
2702     # As a last resort, use the slow shell script.  We don't cache a
2703     # path for INSTALL within a source directory, because that will
2704     # break other packages using the cache if that directory is
2705     # removed, or if the path is relative.
2706     INSTALL=$ac_install_sh
2707   fi
2708 fi
2709 echo "$as_me:$LINENO: result: $INSTALL" >&5
2710 echo "${ECHO_T}$INSTALL" >&6
2711
2712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2713 # It thinks the first close brace ends the variable substitution.
2714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2715
2716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2717
2718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2719
2720 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2721 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2722 # Just in case
2723 sleep 1
2724 echo timestamp > conftest.file
2725 # Do `set' in a subshell so we don't clobber the current shell's
2726 # arguments.  Must try -L first in case configure is actually a
2727 # symlink; some systems play weird games with the mod time of symlinks
2728 # (eg FreeBSD returns the mod time of the symlink's containing
2729 # directory).
2730 if (
2731    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2732    if test "$*" = "X"; then
2733       # -L didn't work.
2734       set X `ls -t $srcdir/configure conftest.file`
2735    fi
2736    rm -f conftest.file
2737    if test "$*" != "X $srcdir/configure conftest.file" \
2738       && test "$*" != "X conftest.file $srcdir/configure"; then
2739
2740       # If neither matched, then we have a broken ls.  This can happen
2741       # if, for instance, CONFIG_SHELL is bash and it inherits a
2742       # broken ls alias from the environment.  This has actually
2743       # happened.  Such a system could not be considered "sane".
2744       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2745 alias in your environment" >&5
2746 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2747 alias in your environment" >&2;}
2748    { (exit 1); exit 1; }; }
2749    fi
2750
2751    test "$2" = conftest.file
2752    )
2753 then
2754    # Ok.
2755    :
2756 else
2757    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2758 Check your system clock" >&5
2759 echo "$as_me: error: newly created file is older than distributed files!
2760 Check your system clock" >&2;}
2761    { (exit 1); exit 1; }; }
2762 fi
2763 echo "$as_me:$LINENO: result: yes" >&5
2764 echo "${ECHO_T}yes" >&6
2765 test "$program_prefix" != NONE &&
2766   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2767 # Use a double $ so make ignores it.
2768 test "$program_suffix" != NONE &&
2769   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2770 # Double any \ or $.  echo might interpret backslashes.
2771 # By default was `s,x,x', remove it if useless.
2772 cat <<\_ACEOF >conftest.sed
2773 s/[\\$]/&&/g;s/;s,x,x,$//
2774 _ACEOF
2775 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2776 rm conftest.sed
2777
2778 # expand $ac_aux_dir to an absolute path
2779 am_aux_dir=`cd $ac_aux_dir && pwd`
2780
2781 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2782 # Use eval to expand $SHELL
2783 if eval "$MISSING --run true"; then
2784   am_missing_run="$MISSING --run "
2785 else
2786   am_missing_run=
2787   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2788 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2789 fi
2790
2791 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2792   # We used to keeping the `.' as first argument, in order to
2793   # allow $(mkdir_p) to be used without argument.  As in
2794   #   $(mkdir_p) $(somedir)
2795   # where $(somedir) is conditionally defined.  However this is wrong
2796   # for two reasons:
2797   #  1. if the package is installed by a user who cannot write `.'
2798   #     make install will fail,
2799   #  2. the above comment should most certainly read
2800   #     $(mkdir_p) $(DESTDIR)$(somedir)
2801   #     so it does not work when $(somedir) is undefined and
2802   #     $(DESTDIR) is not.
2803   #  To support the latter case, we have to write
2804   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2805   #  so the `.' trick is pointless.
2806   mkdir_p='mkdir -p --'
2807 else
2808   # On NextStep and OpenStep, the `mkdir' command does not
2809   # recognize any option.  It will interpret all options as
2810   # directories to create, and then abort because `.' already
2811   # exists.
2812   for d in ./-p ./--version;
2813   do
2814     test -d $d && rmdir $d
2815   done
2816   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2817   if test -f "$ac_aux_dir/mkinstalldirs"; then
2818     mkdir_p='$(mkinstalldirs)'
2819   else
2820     mkdir_p='$(install_sh) -d'
2821   fi
2822 fi
2823
2824 for ac_prog in gawk mawk nawk awk
2825 do
2826   # Extract the first word of "$ac_prog", so it can be a program name with args.
2827 set dummy $ac_prog; ac_word=$2
2828 echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2830 if test "${ac_cv_prog_AWK+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833   if test -n "$AWK"; then
2834   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839   IFS=$as_save_IFS
2840   test -z "$as_dir" && as_dir=.
2841   for ac_exec_ext in '' $ac_executable_extensions; do
2842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843     ac_cv_prog_AWK="$ac_prog"
2844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845     break 2
2846   fi
2847 done
2848 done
2849
2850 fi
2851 fi
2852 AWK=$ac_cv_prog_AWK
2853 if test -n "$AWK"; then
2854   echo "$as_me:$LINENO: result: $AWK" >&5
2855 echo "${ECHO_T}$AWK" >&6
2856 else
2857   echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2859 fi
2860
2861   test -n "$AWK" && break
2862 done
2863
2864 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2865 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2866 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2867 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2868   echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870   cat >conftest.make <<\_ACEOF
2871 all:
2872         @echo 'ac_maketemp="$(MAKE)"'
2873 _ACEOF
2874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2875 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2876 if test -n "$ac_maketemp"; then
2877   eval ac_cv_prog_make_${ac_make}_set=yes
2878 else
2879   eval ac_cv_prog_make_${ac_make}_set=no
2880 fi
2881 rm -f conftest.make
2882 fi
2883 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2884   echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6
2886   SET_MAKE=
2887 else
2888   echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6
2890   SET_MAKE="MAKE=${MAKE-make}"
2891 fi
2892
2893 rm -rf .tst 2>/dev/null
2894 mkdir .tst 2>/dev/null
2895 if test -d .tst; then
2896   am__leading_dot=.
2897 else
2898   am__leading_dot=_
2899 fi
2900 rmdir .tst 2>/dev/null
2901
2902 DEPDIR="${am__leading_dot}deps"
2903
2904           ac_config_commands="$ac_config_commands depfiles"
2905
2906
2907 am_make=${MAKE-make}
2908 cat > confinc << 'END'
2909 am__doit:
2910         @echo done
2911 .PHONY: am__doit
2912 END
2913 # If we don't find an include directive, just comment out the code.
2914 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2915 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2916 am__include="#"
2917 am__quote=
2918 _am_result=none
2919 # First try GNU make style include.
2920 echo "include confinc" > confmf
2921 # We grep out `Entering directory' and `Leaving directory'
2922 # messages which can occur if `w' ends up in MAKEFLAGS.
2923 # In particular we don't look at `^make:' because GNU make might
2924 # be invoked under some other name (usually "gmake"), in which
2925 # case it prints its new name instead of `make'.
2926 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2927    am__include=include
2928    am__quote=
2929    _am_result=GNU
2930 fi
2931 # Now try BSD make style include.
2932 if test "$am__include" = "#"; then
2933    echo '.include "confinc"' > confmf
2934    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2935       am__include=.include
2936       am__quote="\""
2937       _am_result=BSD
2938    fi
2939 fi
2940
2941
2942 echo "$as_me:$LINENO: result: $_am_result" >&5
2943 echo "${ECHO_T}$_am_result" >&6
2944 rm -f confinc confmf
2945
2946 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2947 if test "${enable_dependency_tracking+set}" = set; then
2948   enableval="$enable_dependency_tracking"
2949
2950 fi;
2951 if test "x$enable_dependency_tracking" != xno; then
2952   am_depcomp="$ac_aux_dir/depcomp"
2953   AMDEPBACKSLASH='\'
2954 fi
2955
2956
2957 if test "x$enable_dependency_tracking" != xno; then
2958   AMDEP_TRUE=
2959   AMDEP_FALSE='#'
2960 else
2961   AMDEP_TRUE='#'
2962   AMDEP_FALSE=
2963 fi
2964
2965
2966
2967 # test to see if srcdir already configured
2968 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2969    test -f $srcdir/config.status; then
2970   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2971 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 # test whether we have cygpath
2976 if test -z "$CYGPATH_W"; then
2977   if (cygpath --version) >/dev/null 2>/dev/null; then
2978     CYGPATH_W='cygpath -w'
2979   else
2980     CYGPATH_W=echo
2981   fi
2982 fi
2983
2984
2985 # Define the identity of the package.
2986  PACKAGE=binutils
2987  VERSION=${BFD_VERSION}
2988
2989
2990 cat >>confdefs.h <<_ACEOF
2991 #define PACKAGE "$PACKAGE"
2992 _ACEOF
2993
2994
2995 cat >>confdefs.h <<_ACEOF
2996 #define VERSION "$VERSION"
2997 _ACEOF
2998
2999 # Some tools Automake needs.
3000
3001 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3002
3003
3004 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3005
3006
3007 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3008
3009
3010 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3011
3012
3013 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3014
3015 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3016
3017 # Installed binaries are usually stripped using `strip' when the user
3018 # run `make install-strip'.  However `strip' might not be the right
3019 # tool to use in cross-compilation environments, therefore Automake
3020 # will honor the `STRIP' environment variable to overrule this program.
3021 if test "$cross_compiling" != no; then
3022   if test -n "$ac_tool_prefix"; then
3023   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}strip; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_prog_STRIP+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   if test -n "$STRIP"; then
3031   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036   IFS=$as_save_IFS
3037   test -z "$as_dir" && as_dir=.
3038   for ac_exec_ext in '' $ac_executable_extensions; do
3039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042     break 2
3043   fi
3044 done
3045 done
3046
3047 fi
3048 fi
3049 STRIP=$ac_cv_prog_STRIP
3050 if test -n "$STRIP"; then
3051   echo "$as_me:$LINENO: result: $STRIP" >&5
3052 echo "${ECHO_T}$STRIP" >&6
3053 else
3054   echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3056 fi
3057
3058 fi
3059 if test -z "$ac_cv_prog_STRIP"; then
3060   ac_ct_STRIP=$STRIP
3061   # Extract the first word of "strip", so it can be a program name with args.
3062 set dummy strip; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3066   echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068   if test -n "$ac_ct_STRIP"; then
3069   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076   for ac_exec_ext in '' $ac_executable_extensions; do
3077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078     ac_cv_prog_ac_ct_STRIP="strip"
3079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083 done
3084
3085   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3086 fi
3087 fi
3088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3089 if test -n "$ac_ct_STRIP"; then
3090   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3091 echo "${ECHO_T}$ac_ct_STRIP" >&6
3092 else
3093   echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3095 fi
3096
3097   STRIP=$ac_ct_STRIP
3098 else
3099   STRIP="$ac_cv_prog_STRIP"
3100 fi
3101
3102 fi
3103 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3104
3105 # We need awk for the "check" target.  The system "awk" is bad on
3106 # some platforms.
3107 # Always define AMTAR for backward compatibility.
3108
3109 AMTAR=${AMTAR-"${am_missing_run}tar"}
3110
3111 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3112
3113
3114
3115
3116 depcc="$CC"   am_compiler_list=
3117
3118 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3119 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3120 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3124   # We make a subdir and do the tests there.  Otherwise we can end up
3125   # making bogus files that we don't know about and never remove.  For
3126   # instance it was reported that on HP-UX the gcc test will end up
3127   # making a dummy file named `D' -- because `-MD' means `put the output
3128   # in D'.
3129   mkdir conftest.dir
3130   # Copy depcomp to subdir because otherwise we won't find it if we're
3131   # using a relative directory.
3132   cp "$am_depcomp" conftest.dir
3133   cd conftest.dir
3134   # We will build objects and dependencies in a subdirectory because
3135   # it helps to detect inapplicable dependency modes.  For instance
3136   # both Tru64's cc and ICC support -MD to output dependencies as a
3137   # side effect of compilation, but ICC will put the dependencies in
3138   # the current directory while Tru64 will put them in the object
3139   # directory.
3140   mkdir sub
3141
3142   am_cv_CC_dependencies_compiler_type=none
3143   if test "$am_compiler_list" = ""; then
3144      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3145   fi
3146   for depmode in $am_compiler_list; do
3147     # Setup a source with many dependencies, because some compilers
3148     # like to wrap large dependency lists on column 80 (with \), and
3149     # we should not choose a depcomp mode which is confused by this.
3150     #
3151     # We need to recreate these files for each test, as the compiler may
3152     # overwrite some of them when testing with obscure command lines.
3153     # This happens at least with the AIX C compiler.
3154     : > sub/conftest.c
3155     for i in 1 2 3 4 5 6; do
3156       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3157       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3158       # Solaris 8's {/usr,}/bin/sh.
3159       touch sub/conftst$i.h
3160     done
3161     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3162
3163     case $depmode in
3164     nosideeffect)
3165       # after this tag, mechanisms are not by side-effect, so they'll
3166       # only be used when explicitly requested
3167       if test "x$enable_dependency_tracking" = xyes; then
3168         continue
3169       else
3170         break
3171       fi
3172       ;;
3173     none) break ;;
3174     esac
3175     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3176     # mode.  It turns out that the SunPro C++ compiler does not properly
3177     # handle `-M -o', and we need to detect this.
3178     if depmode=$depmode \
3179        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3180        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3181        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3182          >/dev/null 2>conftest.err &&
3183        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3184        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3185        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3186       # icc doesn't choke on unknown options, it will just issue warnings
3187       # or remarks (even with -Werror).  So we grep stderr for any message
3188       # that says an option was ignored or not supported.
3189       # When given -MP, icc 7.0 and 7.1 complain thusly:
3190       #   icc: Command line warning: ignoring option '-M'; no argument required
3191       # The diagnosis changed in icc 8.0:
3192       #   icc: Command line remark: option '-MP' not supported
3193       if (grep 'ignoring option' conftest.err ||
3194           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3195         am_cv_CC_dependencies_compiler_type=$depmode
3196         break
3197       fi
3198     fi
3199   done
3200
3201   cd ..
3202   rm -rf conftest.dir
3203 else
3204   am_cv_CC_dependencies_compiler_type=none
3205 fi
3206
3207 fi
3208 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3209 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3210 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3211
3212
3213
3214 if
3215   test "x$enable_dependency_tracking" != xno \
3216   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3217   am__fastdepCC_TRUE=
3218   am__fastdepCC_FALSE='#'
3219 else
3220   am__fastdepCC_TRUE='#'
3221   am__fastdepCC_FALSE=
3222 fi
3223
3224
3225
3226
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 if test -n "$ac_tool_prefix"; then
3233   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3235 echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3237 if test "${ac_cv_prog_CC+set}" = set; then
3238   echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240   if test -n "$CC"; then
3241   ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246   IFS=$as_save_IFS
3247   test -z "$as_dir" && as_dir=.
3248   for ac_exec_ext in '' $ac_executable_extensions; do
3249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252     break 2
3253   fi
3254 done
3255 done
3256
3257 fi
3258 fi
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261   echo "$as_me:$LINENO: result: $CC" >&5
3262 echo "${ECHO_T}$CC" >&6
3263 else
3264   echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3266 fi
3267
3268 fi
3269 if test -z "$ac_cv_prog_CC"; then
3270   ac_ct_CC=$CC
3271   # Extract the first word of "gcc", so it can be a program name with args.
3272 set dummy gcc; ac_word=$2
3273 echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   if test -n "$ac_ct_CC"; then
3279   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286   for ac_exec_ext in '' $ac_executable_extensions; do
3287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288     ac_cv_prog_ac_ct_CC="gcc"
3289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293 done
3294
3295 fi
3296 fi
3297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3298 if test -n "$ac_ct_CC"; then
3299   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3300 echo "${ECHO_T}$ac_ct_CC" >&6
3301 else
3302   echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3304 fi
3305
3306   CC=$ac_ct_CC
3307 else
3308   CC="$ac_cv_prog_CC"
3309 fi
3310
3311 if test -z "$CC"; then
3312   if test -n "$ac_tool_prefix"; then
3313   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}cc; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_CC+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   if test -n "$CC"; then
3321   ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328   for ac_exec_ext in '' $ac_executable_extensions; do
3329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330     ac_cv_prog_CC="${ac_tool_prefix}cc"
3331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332     break 2
3333   fi
3334 done
3335 done
3336
3337 fi
3338 fi
3339 CC=$ac_cv_prog_CC
3340 if test -n "$CC"; then
3341   echo "$as_me:$LINENO: result: $CC" >&5
3342 echo "${ECHO_T}$CC" >&6
3343 else
3344   echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi
3347
3348 fi
3349 if test -z "$ac_cv_prog_CC"; then
3350   ac_ct_CC=$CC
3351   # Extract the first word of "cc", so it can be a program name with args.
3352 set dummy cc; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358   if test -n "$ac_ct_CC"; then
3359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366   for ac_exec_ext in '' $ac_executable_extensions; do
3367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_prog_ac_ct_CC="cc"
3369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373 done
3374
3375 fi
3376 fi
3377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3378 if test -n "$ac_ct_CC"; then
3379   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3380 echo "${ECHO_T}$ac_ct_CC" >&6
3381 else
3382   echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385
3386   CC=$ac_ct_CC
3387 else
3388   CC="$ac_cv_prog_CC"
3389 fi
3390
3391 fi
3392 if test -z "$CC"; then
3393   # Extract the first word of "cc", so it can be a program name with args.
3394 set dummy cc; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400   if test -n "$CC"; then
3401   ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403   ac_prog_rejected=no
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     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3412        ac_prog_rejected=yes
3413        continue
3414      fi
3415     ac_cv_prog_CC="cc"
3416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417     break 2
3418   fi
3419 done
3420 done
3421
3422 if test $ac_prog_rejected = yes; then
3423   # We found a bogon in the path, so make sure we never use it.
3424   set dummy $ac_cv_prog_CC
3425   shift
3426   if test $# != 0; then
3427     # We chose a different compiler from the bogus one.
3428     # However, it has the same basename, so the bogon will be chosen
3429     # first if we set CC to just the basename; use the full file name.
3430     shift
3431     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3432   fi
3433 fi
3434 fi
3435 fi
3436 CC=$ac_cv_prog_CC
3437 if test -n "$CC"; then
3438   echo "$as_me:$LINENO: result: $CC" >&5
3439 echo "${ECHO_T}$CC" >&6
3440 else
3441   echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 fi
3444
3445 fi
3446 if test -z "$CC"; then
3447   if test -n "$ac_tool_prefix"; then
3448   for ac_prog in cl
3449   do
3450     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3452 echo "$as_me:$LINENO: checking for $ac_word" >&5
3453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3454 if test "${ac_cv_prog_CC+set}" = set; then
3455   echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457   if test -n "$CC"; then
3458   ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463   IFS=$as_save_IFS
3464   test -z "$as_dir" && as_dir=.
3465   for ac_exec_ext in '' $ac_executable_extensions; do
3466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469     break 2
3470   fi
3471 done
3472 done
3473
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478   echo "$as_me:$LINENO: result: $CC" >&5
3479 echo "${ECHO_T}$CC" >&6
3480 else
3481   echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3483 fi
3484
3485     test -n "$CC" && break
3486   done
3487 fi
3488 if test -z "$CC"; then
3489   ac_ct_CC=$CC
3490   for ac_prog in cl
3491 do
3492   # Extract the first word of "$ac_prog", so it can be a program name with args.
3493 set dummy $ac_prog; ac_word=$2
3494 echo "$as_me:$LINENO: checking for $ac_word" >&5
3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3497   echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499   if test -n "$ac_ct_CC"; then
3500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505   IFS=$as_save_IFS
3506   test -z "$as_dir" && as_dir=.
3507   for ac_exec_ext in '' $ac_executable_extensions; do
3508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509     ac_cv_prog_ac_ct_CC="$ac_prog"
3510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511     break 2
3512   fi
3513 done
3514 done
3515
3516 fi
3517 fi
3518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3519 if test -n "$ac_ct_CC"; then
3520   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3521 echo "${ECHO_T}$ac_ct_CC" >&6
3522 else
3523   echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6
3525 fi
3526
3527   test -n "$ac_ct_CC" && break
3528 done
3529
3530   CC=$ac_ct_CC
3531 fi
3532
3533 fi
3534
3535
3536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3537 See \`config.log' for more details." >&5
3538 echo "$as_me: error: no acceptable C compiler found in \$PATH
3539 See \`config.log' for more details." >&2;}
3540    { (exit 1); exit 1; }; }
3541
3542 # Provide some information about the compiler.
3543 echo "$as_me:$LINENO:" \
3544      "checking for C compiler version" >&5
3545 ac_compiler=`set X $ac_compile; echo $2`
3546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3547   (eval $ac_compiler --version </dev/null >&5) 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }
3551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3552   (eval $ac_compiler -v </dev/null >&5) 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }
3556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3557   (eval $ac_compiler -V </dev/null >&5) 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }
3561
3562 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3563 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3564 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3565   echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567   cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h.  */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h.  */
3573
3574 int
3575 main ()
3576 {
3577 #ifndef __GNUC__
3578        choke me
3579 #endif
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 rm -f conftest.$ac_objext
3586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3587   (eval $ac_compile) 2>conftest.er1
3588   ac_status=$?
3589   grep -v '^ *+' conftest.er1 >conftest.err
3590   rm -f conftest.er1
3591   cat conftest.err >&5
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } &&
3594          { ac_try='test -z "$ac_c_werror_flag"
3595                          || test ! -s conftest.err'
3596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597   (eval $ac_try) 2>&5
3598   ac_status=$?
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); }; } &&
3601          { ac_try='test -s conftest.$ac_objext'
3602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603   (eval $ac_try) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; }; then
3607   ac_compiler_gnu=yes
3608 else
3609   echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612 ac_compiler_gnu=no
3613 fi
3614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3616
3617 fi
3618 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3619 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3620 GCC=`test $ac_compiler_gnu = yes && echo yes`
3621 ac_test_CFLAGS=${CFLAGS+set}
3622 ac_save_CFLAGS=$CFLAGS
3623 CFLAGS="-g"
3624 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3625 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3626 if test "${ac_cv_prog_cc_g+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 rm -f conftest.$ac_objext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646   (eval $ac_compile) 2>conftest.er1
3647   ac_status=$?
3648   grep -v '^ *+' conftest.er1 >conftest.err
3649   rm -f conftest.er1
3650   cat conftest.err >&5
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); } &&
3653          { ac_try='test -z "$ac_c_werror_flag"
3654                          || test ! -s conftest.err'
3655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656   (eval $ac_try) 2>&5
3657   ac_status=$?
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); }; } &&
3660          { ac_try='test -s conftest.$ac_objext'
3661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662   (eval $ac_try) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; }; then
3666   ac_cv_prog_cc_g=yes
3667 else
3668   echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 ac_cv_prog_cc_g=no
3672 fi
3673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3674 fi
3675 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3676 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3677 if test "$ac_test_CFLAGS" = set; then
3678   CFLAGS=$ac_save_CFLAGS
3679 elif test $ac_cv_prog_cc_g = yes; then
3680   if test "$GCC" = yes; then
3681     CFLAGS="-g -O2"
3682   else
3683     CFLAGS="-g"
3684   fi
3685 else
3686   if test "$GCC" = yes; then
3687     CFLAGS="-O2"
3688   else
3689     CFLAGS=
3690   fi
3691 fi
3692 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3693 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3694 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   ac_cv_prog_cc_stdc=no
3698 ac_save_CC=$CC
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 #include <stdarg.h>
3706 #include <stdio.h>
3707 #include <sys/types.h>
3708 #include <sys/stat.h>
3709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3710 struct buf { int x; };
3711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3712 static char *e (p, i)
3713      char **p;
3714      int i;
3715 {
3716   return p[i];
3717 }
3718 static char *f (char * (*g) (char **, int), char **p, ...)
3719 {
3720   char *s;
3721   va_list v;
3722   va_start (v,p);
3723   s = g (p, va_arg (v,int));
3724   va_end (v);
3725   return s;
3726 }
3727
3728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3729    function prototypes and stuff, but not '\xHH' hex character constants.
3730    These don't provoke an error unfortunately, instead are silently treated
3731    as 'x'.  The following induces an error, until -std1 is added to get
3732    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3733    array size at least.  It's necessary to write '\x00'==0 to get something
3734    that's true only with -std1.  */
3735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3736
3737 int test (int i, double x);
3738 struct s1 {int (*f) (int a);};
3739 struct s2 {int (*f) (double a);};
3740 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3741 int argc;
3742 char **argv;
3743 int
3744 main ()
3745 {
3746 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3747   ;
3748   return 0;
3749 }
3750 _ACEOF
3751 # Don't try gcc -ansi; that turns off useful extensions and
3752 # breaks some systems' header files.
3753 # AIX                   -qlanglvl=ansi
3754 # Ultrix and OSF/1      -std1
3755 # HP-UX 10.20 and later -Ae
3756 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3757 # SVR4                  -Xc -D__EXTENSIONS__
3758 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3759 do
3760   CC="$ac_save_CC $ac_arg"
3761   rm -f conftest.$ac_objext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763   (eval $ac_compile) 2>conftest.er1
3764   ac_status=$?
3765   grep -v '^ *+' conftest.er1 >conftest.err
3766   rm -f conftest.er1
3767   cat conftest.err >&5
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770          { ac_try='test -z "$ac_c_werror_flag"
3771                          || test ! -s conftest.err'
3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773   (eval $ac_try) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; } &&
3777          { ac_try='test -s conftest.$ac_objext'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; }; then
3783   ac_cv_prog_cc_stdc=$ac_arg
3784 break
3785 else
3786   echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3788
3789 fi
3790 rm -f conftest.err conftest.$ac_objext
3791 done
3792 rm -f conftest.$ac_ext conftest.$ac_objext
3793 CC=$ac_save_CC
3794
3795 fi
3796
3797 case "x$ac_cv_prog_cc_stdc" in
3798   x|xno)
3799     echo "$as_me:$LINENO: result: none needed" >&5
3800 echo "${ECHO_T}none needed" >&6 ;;
3801   *)
3802     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3803 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3804     CC="$CC $ac_cv_prog_cc_stdc" ;;
3805 esac
3806
3807 # Some people use a C++ compiler to compile C.  Since we use `exit',
3808 # in C++ we need to declare it.  In case someone uses the same compiler
3809 # for both compiling C and C++ we need to have the C++ compiler decide
3810 # the declaration of exit, since it's the most demanding environment.
3811 cat >conftest.$ac_ext <<_ACEOF
3812 #ifndef __cplusplus
3813   choke me
3814 #endif
3815 _ACEOF
3816 rm -f conftest.$ac_objext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3818   (eval $ac_compile) 2>conftest.er1
3819   ac_status=$?
3820   grep -v '^ *+' conftest.er1 >conftest.err
3821   rm -f conftest.er1
3822   cat conftest.err >&5
3823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824   (exit $ac_status); } &&
3825          { ac_try='test -z "$ac_c_werror_flag"
3826                          || test ! -s conftest.err'
3827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828   (eval $ac_try) 2>&5
3829   ac_status=$?
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); }; } &&
3832          { ac_try='test -s conftest.$ac_objext'
3833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834   (eval $ac_try) 2>&5
3835   ac_status=$?
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); }; }; then
3838   for ac_declaration in \
3839    '' \
3840    'extern "C" void std::exit (int) throw (); using std::exit;' \
3841    'extern "C" void std::exit (int); using std::exit;' \
3842    'extern "C" void exit (int) throw ();' \
3843    'extern "C" void exit (int);' \
3844    'void exit (int);'
3845 do
3846   cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852 $ac_declaration
3853 #include <stdlib.h>
3854 int
3855 main ()
3856 {
3857 exit (42);
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864   (eval $ac_compile) 2>conftest.er1
3865   ac_status=$?
3866   grep -v '^ *+' conftest.er1 >conftest.err
3867   rm -f conftest.er1
3868   cat conftest.err >&5
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); } &&
3871          { ac_try='test -z "$ac_c_werror_flag"
3872                          || test ! -s conftest.err'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; } &&
3878          { ac_try='test -s conftest.$ac_objext'
3879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880   (eval $ac_try) 2>&5
3881   ac_status=$?
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); }; }; then
3884   :
3885 else
3886   echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889 continue
3890 fi
3891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3892   cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898 $ac_declaration
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   break
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 fi
3935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936 done
3937 rm -f conftest*
3938 if test -n "$ac_declaration"; then
3939   echo '#ifdef __cplusplus' >>confdefs.h
3940   echo $ac_declaration      >>confdefs.h
3941   echo '#endif'             >>confdefs.h
3942 fi
3943
3944 else
3945   echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 fi
3949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956
3957 cat >>confdefs.h <<\_ACEOF
3958 #define _GNU_SOURCE 1
3959 _ACEOF
3960
3961
3962
3963
3964 macro_version='2.1a'
3965 macro_revision='1.2435'
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978 ltmain="$ac_aux_dir/ltmain.sh"
3979
3980 # Set options
3981
3982 enable_dlopen=no
3983
3984
3985 enable_win32_dll=no
3986
3987
3988 # Check whether --enable-shared or --disable-shared was given.
3989 if test "${enable_shared+set}" = set; then
3990   enableval="$enable_shared"
3991   p=${PACKAGE-default}
3992     case $enableval in
3993     yes) enable_shared=yes ;;
3994     no) enable_shared=no ;;
3995     *)
3996       enable_shared=no
3997       # Look at the argument we got.  We use all the common list separators.
3998       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3999       for pkg in $enableval; do
4000         IFS="$lt_save_ifs"
4001         if test "X$pkg" = "X$p"; then
4002           enable_shared=yes
4003         fi
4004       done
4005       IFS="$lt_save_ifs"
4006       ;;
4007     esac
4008 else
4009   enable_shared=yes
4010 fi;
4011
4012
4013
4014
4015
4016
4017
4018
4019 # Check whether --enable-static or --disable-static was given.
4020 if test "${enable_static+set}" = set; then
4021   enableval="$enable_static"
4022   p=${PACKAGE-default}
4023     case $enableval in
4024     yes) enable_static=yes ;;
4025     no) enable_static=no ;;
4026     *)
4027      enable_static=no
4028       # Look at the argument we got.  We use all the common list separators.
4029       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4030       for pkg in $enableval; do
4031         IFS="$lt_save_ifs"
4032         if test "X$pkg" = "X$p"; then
4033           enable_static=yes
4034         fi
4035       done
4036       IFS="$lt_save_ifs"
4037       ;;
4038     esac
4039 else
4040   enable_static=yes
4041 fi;
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051 # Check whether --with-pic or --without-pic was given.
4052 if test "${with_pic+set}" = set; then
4053   withval="$with_pic"
4054   pic_mode="$withval"
4055 else
4056   pic_mode=default
4057 fi;
4058
4059 test -z "$pic_mode" && pic_mode=default
4060
4061
4062
4063
4064
4065
4066
4067 # Check whether --enable-fast-install or --disable-fast-install was given.
4068 if test "${enable_fast_install+set}" = set; then
4069   enableval="$enable_fast_install"
4070   p=${PACKAGE-default}
4071     case $enableval in
4072     yes) enable_fast_install=yes ;;
4073     no) enable_fast_install=no ;;
4074     *)
4075       enable_fast_install=no
4076       # Look at the argument we got.  We use all the common list separators.
4077       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4078       for pkg in $enableval; do
4079         IFS="$lt_save_ifs"
4080         if test "X$pkg" = "X$p"; then
4081           enable_fast_install=yes
4082         fi
4083       done
4084       IFS="$lt_save_ifs"
4085       ;;
4086     esac
4087 else
4088   enable_fast_install=yes
4089 fi;
4090
4091
4092
4093
4094
4095
4096
4097
4098 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4099 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4100 if test "${lt_cv_path_SED+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   # Loop through the user's path and test for sed and gsed.
4104 # Then use that list of sed's as ones to test for truncation.
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   test -z "$as_dir" && as_dir=.
4110   for lt_ac_prog in sed gsed; do
4111     for ac_exec_ext in '' $ac_executable_extensions; do
4112       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4113         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4114       fi
4115     done
4116   done
4117 done
4118 IFS=$as_save_IFS
4119 lt_ac_max=0
4120 lt_ac_count=0
4121 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4122 # along with /bin/sed that truncates output.
4123 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4124   test ! -f $lt_ac_sed && continue
4125   cat /dev/null > conftest.in
4126   lt_ac_count=0
4127   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4128   # Check for GNU sed and select it if it is found.
4129   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4130     lt_cv_path_SED=$lt_ac_sed
4131     break
4132   fi
4133   while true; do
4134     cat conftest.in conftest.in >conftest.tmp
4135     mv conftest.tmp conftest.in
4136     cp conftest.in conftest.nl
4137     echo >>conftest.nl
4138     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4139     cmp -s conftest.out conftest.nl || break
4140     # 10000 chars as input seems more than enough
4141     test $lt_ac_count -gt 10 && break
4142     lt_ac_count=`expr $lt_ac_count + 1`
4143     if test $lt_ac_count -gt $lt_ac_max; then
4144       lt_ac_max=$lt_ac_count
4145       lt_cv_path_SED=$lt_ac_sed
4146     fi
4147   done
4148 done
4149
4150 fi
4151
4152 SED=$lt_cv_path_SED
4153
4154 echo "$as_me:$LINENO: result: $SED" >&5
4155 echo "${ECHO_T}$SED" >&6
4156
4157 test -z "$SED" && SED=sed
4158 Xsed="$SED -e 1s/^X//"
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170 echo "$as_me:$LINENO: checking for egrep" >&5
4171 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4172 if test "${ac_cv_prog_egrep+set}" = set; then
4173   echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4176     then ac_cv_prog_egrep='grep -E'
4177     else ac_cv_prog_egrep='egrep'
4178     fi
4179 fi
4180 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4181 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4182  EGREP=$ac_cv_prog_egrep
4183
4184
4185 echo "$as_me:$LINENO: checking for fgrep" >&5
4186 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4187 if test "${ac_cv_prog_fgrep+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4191     then ac_cv_prog_fgrep='grep -F'
4192     else ac_cv_prog_fgrep='fgrep'
4193     fi
4194 fi
4195 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4196 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4197  FGREP=$ac_cv_prog_fgrep
4198
4199
4200 test -z "$GREP" && GREP=grep
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4221 if test "${with_gnu_ld+set}" = set; then
4222   withval="$with_gnu_ld"
4223   test "$withval" = no || with_gnu_ld=yes
4224 else
4225   with_gnu_ld=no
4226 fi;
4227 ac_prog=ld
4228 if test "$GCC" = yes; then
4229   # Check if gcc -print-prog-name=ld gives a path.
4230   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4231 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4232   case $host in
4233   *-*-mingw*)
4234     # gcc leaves a trailing carriage return which upsets mingw
4235     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4236   *)
4237     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4238   esac
4239   case $ac_prog in
4240     # Accept absolute paths.
4241     [\\/]* | ?:[\\/]*)
4242       re_direlt='/[^/][^/]*/\.\./'
4243       # Canonicalize the pathname of ld
4244       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4245       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4246         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4247       done
4248       test -z "$LD" && LD="$ac_prog"
4249       ;;
4250   "")
4251     # If it fails, then pretend we aren't using GCC.
4252     ac_prog=ld
4253     ;;
4254   *)
4255     # If it is relative, then search for the first ld in PATH.
4256     with_gnu_ld=unknown
4257     ;;
4258   esac
4259 elif test "$with_gnu_ld" = yes; then
4260   echo "$as_me:$LINENO: checking for GNU ld" >&5
4261 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4262 else
4263   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4264 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4265 fi
4266 if test "${lt_cv_path_LD+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   if test -z "$LD"; then
4270   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4271   for ac_dir in $PATH; do
4272     IFS="$lt_save_ifs"
4273     test -z "$ac_dir" && ac_dir=.
4274     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4275       lt_cv_path_LD="$ac_dir/$ac_prog"
4276       # Check to see if the program is GNU ld.  I'd rather use --version,
4277       # but apparently some variants of GNU ld only accept -v.
4278       # Break only if it was the GNU/non-GNU ld that we prefer.
4279       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4280       *GNU* | *'with BFD'*)
4281         test "$with_gnu_ld" != no && break
4282         ;;
4283       *)
4284         test "$with_gnu_ld" != yes && break
4285         ;;
4286       esac
4287     fi
4288   done
4289   IFS="$lt_save_ifs"
4290 else
4291   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4292 fi
4293 fi
4294
4295 LD="$lt_cv_path_LD"
4296 if test -n "$LD"; then
4297   echo "$as_me:$LINENO: result: $LD" >&5
4298 echo "${ECHO_T}$LD" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4304 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4305    { (exit 1); exit 1; }; }
4306 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4307 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4308 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4312 case `$LD -v 2>&1 </dev/null` in
4313 *GNU* | *'with BFD'*)
4314   lt_cv_prog_gnu_ld=yes
4315   ;;
4316 *)
4317   lt_cv_prog_gnu_ld=no
4318   ;;
4319 esac
4320 fi
4321 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4322 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4323 with_gnu_ld=$lt_cv_prog_gnu_ld
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4335 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4336 if test "${lt_cv_path_NM+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   if test -n "$NM"; then
4340   # Let the user override the test.
4341   lt_cv_path_NM="$NM"
4342 else
4343   lt_nm_to_check="${ac_tool_prefix}nm"
4344   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4345     lt_nm_to_check="$lt_nm_to_check nm"
4346   fi
4347   for lt_tmp_nm in $lt_nm_to_check; do
4348     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4349     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4350       IFS="$lt_save_ifs"
4351       test -z "$ac_dir" && ac_dir=.
4352       tmp_nm="$ac_dir/$lt_tmp_nm"
4353       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4354         # Check to see if the nm accepts a BSD-compat flag.
4355         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4356         #   nm: unknown option "B" ignored
4357         # Tru64's nm complains that /dev/null is an invalid object file
4358         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4359         */dev/null* | *'Invalid file or object type'*)
4360           lt_cv_path_NM="$tmp_nm -B"
4361           break
4362           ;;
4363         *)
4364           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4365           */dev/null*)
4366             lt_cv_path_NM="$tmp_nm -p"
4367             break
4368             ;;
4369           *)
4370             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4371             continue # so that we can try to find one that supports BSD flags
4372             ;;
4373           esac
4374           ;;
4375         esac
4376       fi
4377     done
4378     IFS="$lt_save_ifs"
4379   done
4380   : ${lt_cv_path_NM=no}
4381 fi
4382 fi
4383 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4384 echo "${ECHO_T}$lt_cv_path_NM" >&6
4385 if test "$lt_cv_path_NM" != "no"; then
4386   NM="$lt_cv_path_NM"
4387 else
4388   # Didn't find any BSD compatible name lister, look for dumpbin.
4389   if test -n "$ac_tool_prefix"; then
4390   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4391   do
4392     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test -n "$DUMPBIN"; then
4400   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411     break 2
4412   fi
4413 done
4414 done
4415
4416 fi
4417 fi
4418 DUMPBIN=$ac_cv_prog_DUMPBIN
4419 if test -n "$DUMPBIN"; then
4420   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4421 echo "${ECHO_T}$DUMPBIN" >&6
4422 else
4423   echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4425 fi
4426
4427     test -n "$DUMPBIN" && break
4428   done
4429 fi
4430 if test -z "$DUMPBIN"; then
4431   ac_ct_DUMPBIN=$DUMPBIN
4432   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4433 do
4434   # Extract the first word of "$ac_prog", so it can be a program name with args.
4435 set dummy $ac_prog; ac_word=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   if test -n "$ac_ct_DUMPBIN"; then
4442   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457
4458 fi
4459 fi
4460 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4461 if test -n "$ac_ct_DUMPBIN"; then
4462   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4463 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4464 else
4465   echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6
4467 fi
4468
4469   test -n "$ac_ct_DUMPBIN" && break
4470 done
4471 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4472
4473   DUMPBIN=$ac_ct_DUMPBIN
4474 fi
4475
4476
4477   if test "$DUMPBIN" != ":"; then
4478     NM="$DUMPBIN"
4479   fi
4480 fi
4481 test -z "$NM" && NM=nm
4482
4483
4484
4485
4486
4487
4488 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4489 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4490 if test "${lt_cv_nm_interface+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   lt_cv_nm_interface="BSD nm"
4494   echo "int some_variable = 0;" > conftest.$ac_ext
4495   (eval echo "\"\$as_me:4495: $ac_compile\"" >&5)
4496   (eval "$ac_compile" 2>conftest.err)
4497   cat conftest.err >&5
4498   (eval echo "\"\$as_me:4498: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4499   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4500   cat conftest.err >&5
4501   (eval echo "\"\$as_me:4501: output\"" >&5)
4502   cat conftest.out >&5
4503   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4504     lt_cv_nm_interface="MS dumpbin"
4505   fi
4506   rm -f conftest*
4507 fi
4508 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4509 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4510
4511 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4512 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4513 LN_S=$as_ln_s
4514 if test "$LN_S" = "ln -s"; then
4515   echo "$as_me:$LINENO: result: yes" >&5
4516 echo "${ECHO_T}yes" >&6
4517 else
4518   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4519 echo "${ECHO_T}no, using $LN_S" >&6
4520 fi
4521
4522 # find the maximum length of command line arguments
4523 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4524 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4525 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528     i=0
4529   teststring="ABCD"
4530
4531   case $build_os in
4532   msdosdjgpp*)
4533     # On DJGPP, this test can blow up pretty badly due to problems in libc
4534     # (any single argument exceeding 2000 bytes causes a buffer overrun
4535     # during glob expansion).  Even if it were fixed, the result of this
4536     # check would be larger than it should be.
4537     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4538     ;;
4539
4540   gnu*)
4541     # Under GNU Hurd, this test is not required because there is
4542     # no limit to the length of command line arguments.
4543     # Libtool will interpret -1 as no limit whatsoever
4544     lt_cv_sys_max_cmd_len=-1;
4545     ;;
4546
4547   cygwin* | mingw*)
4548     # On Win9x/ME, this test blows up -- it succeeds, but takes
4549     # about 5 minutes as the teststring grows exponentially.
4550     # Worse, since 9x/ME are not pre-emptively multitasking,
4551     # you end up with a "frozen" computer, even though with patience
4552     # the test eventually succeeds (with a max line length of 256k).
4553     # Instead, let's just punt: use the minimum linelength reported by
4554     # all of the supported platforms: 8192 (on NT/2K/XP).
4555     lt_cv_sys_max_cmd_len=8192;
4556     ;;
4557
4558   amigaos*)
4559     # On AmigaOS with pdksh, this test takes hours, literally.
4560     # So we just punt and use a minimum line length of 8192.
4561     lt_cv_sys_max_cmd_len=8192;
4562     ;;
4563
4564   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4565     # This has been around since 386BSD, at least.  Likely further.
4566     if test -x /sbin/sysctl; then
4567       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4568     elif test -x /usr/sbin/sysctl; then
4569       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4570     else
4571       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4572     fi
4573     # And add a safety zone
4574     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4575     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4576     ;;
4577
4578   interix*)
4579     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4580     lt_cv_sys_max_cmd_len=196608
4581     ;;
4582
4583   osf*)
4584     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4585     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4586     # nice to cause kernel panics so lets avoid the loop below.
4587     # First set a reasonable default.
4588     lt_cv_sys_max_cmd_len=16384
4589     #
4590     if test -x /sbin/sysconfig; then
4591       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4592         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4593       esac
4594     fi
4595     ;;
4596   sco3.2v5*)
4597     lt_cv_sys_max_cmd_len=102400
4598     ;;
4599   sysv5* | sco5v6* | sysv4.2uw2*)
4600     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4601     if test -n "$kargmax"; then
4602       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4603     else
4604       lt_cv_sys_max_cmd_len=32768
4605     fi
4606     ;;
4607   *)
4608     # Make teststring a little bigger before we do anything with it.
4609     # a 1K string should be a reasonable start.
4610     for i in 1 2 3 4 5 6 7 8 ; do
4611       teststring=$teststring$teststring
4612     done
4613     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4614     # If test is not a shell built-in, we'll probably end up computing a
4615     # maximum length that is only half of the actual maximum length, but
4616     # we can't tell.
4617     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4618                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4619             test $i != 17 # 1/2 MB should be enough
4620     do
4621       i=`expr $i + 1`
4622       teststring=$teststring$teststring
4623     done
4624     # Only check the string length outside the loop.
4625     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4626     teststring=
4627     # Add a significant safety factor because C++ compilers can tack on massive
4628     # amounts of additional arguments before passing them to the linker.
4629     # It appears as though 1/2 is a usable value.
4630     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4631     ;;
4632   esac
4633
4634 fi
4635
4636 if test -n $lt_cv_sys_max_cmd_len ; then
4637   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4638 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4639 else
4640   echo "$as_me:$LINENO: result: none" >&5
4641 echo "${ECHO_T}none" >&6
4642 fi
4643 max_cmd_len=$lt_cv_sys_max_cmd_len
4644
4645
4646
4647
4648
4649
4650
4651 : ${CP="cp -f"}
4652 : ${MV="mv -f"}
4653 : ${RM="rm -f"}
4654
4655 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4656 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4657 # Try some XSI features
4658 xsi_shell=no
4659 ( _lt_dummy="a/b/c"
4660   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4661       = c,a/b,, ) >/dev/null 2>&1 \
4662   && xsi_shell=yes
4663 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4664 echo "${ECHO_T}$xsi_shell" >&6
4665
4666
4667 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4668 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4669 lt_shell_append=no
4670 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4671     >/dev/null 2>&1 \
4672   && lt_shell_append=yes
4673 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4674 echo "${ECHO_T}$lt_shell_append" >&6
4675
4676
4677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4678   lt_unset=unset
4679 else
4680   lt_unset=false
4681 fi
4682
4683
4684
4685
4686
4687 # test EBCDIC or ASCII
4688 case `echo X|tr X '\101'` in
4689  A) # ASCII based system
4690     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4691   lt_SP2NL='tr \040 \012'
4692   lt_NL2SP='tr \015\012 \040\040'
4693   ;;
4694  *) # EBCDIC based system
4695   lt_SP2NL='tr \100 \n'
4696   lt_NL2SP='tr \r\n \100\100'
4697   ;;
4698 esac
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4709 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4710 if test "${lt_cv_ld_reload_flag+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   lt_cv_ld_reload_flag='-r'
4714 fi
4715 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4716 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4717 reload_flag=$lt_cv_ld_reload_flag
4718 case $reload_flag in
4719 "" | " "*) ;;
4720 *) reload_flag=" $reload_flag" ;;
4721 esac
4722 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4723 case $host_os in
4724   darwin*)
4725     if test "$GCC" = yes; then
4726       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4727     else
4728       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4729     fi
4730     ;;
4731 esac
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4743 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4744 if test "${lt_cv_deplibs_check_method+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   lt_cv_file_magic_cmd='$MAGIC_CMD'
4748 lt_cv_file_magic_test_file=
4749 lt_cv_deplibs_check_method='unknown'
4750 # Need to set the preceding variable on all platforms that support
4751 # interlibrary dependencies.
4752 # 'none' -- dependencies not supported.
4753 # `unknown' -- same as none, but documents that we really don't know.
4754 # 'pass_all' -- all dependencies passed with no checks.
4755 # 'test_compile' -- check by making test program.
4756 # 'file_magic [[regex]]' -- check by looking for files in library path
4757 # which responds to the $file_magic_cmd with a given extended regex.
4758 # If you have `file' or equivalent on your system and you're not sure
4759 # whether `pass_all' will *always* work, you probably want this one.
4760
4761 case $host_os in
4762 aix4* | aix5*)
4763   lt_cv_deplibs_check_method=pass_all
4764   ;;
4765
4766 beos*)
4767   lt_cv_deplibs_check_method=pass_all
4768   ;;
4769
4770 bsdi[45]*)
4771   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4772   lt_cv_file_magic_cmd='/usr/bin/file -L'
4773   lt_cv_file_magic_test_file=/shlib/libc.so
4774   ;;
4775
4776 cygwin*)
4777   # func_win32_libid is a shell function defined in ltmain.sh
4778   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4779   lt_cv_file_magic_cmd='func_win32_libid'
4780   ;;
4781
4782 mingw* | pw32*)
4783   # Base MSYS/MinGW do not provide the 'file' command needed by
4784   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4785   # unless we find 'file', for example because we are cross-compiling.
4786   if ( file / ) >/dev/null 2>&1; then
4787     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4788     lt_cv_file_magic_cmd='func_win32_libid'
4789   else
4790     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4791     lt_cv_file_magic_cmd='$OBJDUMP -f'
4792   fi
4793   ;;
4794
4795 darwin* | rhapsody*)
4796   lt_cv_deplibs_check_method=pass_all
4797   ;;
4798
4799 freebsd* | dragonfly*)
4800   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4801     case $host_cpu in
4802     i*86 )
4803       # Not sure whether the presence of OpenBSD here was a mistake.
4804       # Let's accept both of them until this is cleared up.
4805       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4806       lt_cv_file_magic_cmd=/usr/bin/file
4807       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4808       ;;
4809     esac
4810   else
4811     lt_cv_deplibs_check_method=pass_all
4812   fi
4813   ;;
4814
4815 gnu*)
4816   lt_cv_deplibs_check_method=pass_all
4817   ;;
4818
4819 hpux10.20* | hpux11*)
4820   lt_cv_file_magic_cmd=/usr/bin/file
4821   case $host_cpu in
4822   ia64*)
4823     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4824     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4825     ;;
4826   hppa*64*)
4827     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]'
4828     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4829     ;;
4830   *)
4831     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4832     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4833     ;;
4834   esac
4835   ;;
4836
4837 interix[3-9]*)
4838   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4839   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4840   ;;
4841
4842 irix5* | irix6* | nonstopux*)
4843   case $LD in
4844   *-32|*"-32 ") libmagic=32-bit;;
4845   *-n32|*"-n32 ") libmagic=N32;;
4846   *-64|*"-64 ") libmagic=64-bit;;
4847   *) libmagic=never-match;;
4848   esac
4849   lt_cv_deplibs_check_method=pass_all
4850   ;;
4851
4852 # This must be Linux ELF.
4853 linux* | k*bsd*-gnu)
4854   lt_cv_deplibs_check_method=pass_all
4855   ;;
4856
4857 netbsd*)
4858   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4859     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4860   else
4861     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4862   fi
4863   ;;
4864
4865 newos6*)
4866   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4867   lt_cv_file_magic_cmd=/usr/bin/file
4868   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4869   ;;
4870
4871 *nto* | *qnx*)
4872   lt_cv_deplibs_check_method=pass_all
4873   ;;
4874
4875 openbsd*)
4876   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4877     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4878   else
4879     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4880   fi
4881   ;;
4882
4883 osf3* | osf4* | osf5*)
4884   lt_cv_deplibs_check_method=pass_all
4885   ;;
4886
4887 rdos*)
4888   lt_cv_deplibs_check_method=pass_all
4889   ;;
4890
4891 solaris*)
4892   lt_cv_deplibs_check_method=pass_all
4893   ;;
4894
4895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4896   lt_cv_deplibs_check_method=pass_all
4897   ;;
4898
4899 sysv4 | sysv4.3*)
4900   case $host_vendor in
4901   motorola)
4902     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]'
4903     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4904     ;;
4905   ncr)
4906     lt_cv_deplibs_check_method=pass_all
4907     ;;
4908   sequent)
4909     lt_cv_file_magic_cmd='/bin/file'
4910     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4911     ;;
4912   sni)
4913     lt_cv_file_magic_cmd='/bin/file'
4914     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4915     lt_cv_file_magic_test_file=/lib/libc.so
4916     ;;
4917   siemens)
4918     lt_cv_deplibs_check_method=pass_all
4919     ;;
4920   pc)
4921     lt_cv_deplibs_check_method=pass_all
4922     ;;
4923   esac
4924   ;;
4925
4926 tpf*)
4927   lt_cv_deplibs_check_method=pass_all
4928   ;;
4929 esac
4930
4931 fi
4932 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4933 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4934 file_magic_cmd=$lt_cv_file_magic_cmd
4935 deplibs_check_method=$lt_cv_deplibs_check_method
4936 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949 if test -n "$ac_tool_prefix"; then
4950   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4951 set dummy ${ac_tool_prefix}ar; ac_word=$2
4952 echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954 if test "${ac_cv_prog_AR+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   if test -n "$AR"; then
4958   ac_cv_prog_AR="$AR" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965   for ac_exec_ext in '' $ac_executable_extensions; do
4966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967     ac_cv_prog_AR="${ac_tool_prefix}ar"
4968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972 done
4973
4974 fi
4975 fi
4976 AR=$ac_cv_prog_AR
4977 if test -n "$AR"; then
4978   echo "$as_me:$LINENO: result: $AR" >&5
4979 echo "${ECHO_T}$AR" >&6
4980 else
4981   echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6
4983 fi
4984
4985 fi
4986 if test -z "$ac_cv_prog_AR"; then
4987   ac_ct_AR=$AR
4988   # Extract the first word of "ar", so it can be a program name with args.
4989 set dummy ar; ac_word=$2
4990 echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4992 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4993   echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995   if test -n "$ac_ct_AR"; then
4996   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003   for ac_exec_ext in '' $ac_executable_extensions; do
5004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005     ac_cv_prog_ac_ct_AR="ar"
5006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010 done
5011
5012   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5013 fi
5014 fi
5015 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5016 if test -n "$ac_ct_AR"; then
5017   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5018 echo "${ECHO_T}$ac_ct_AR" >&6
5019 else
5020   echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6
5022 fi
5023
5024   AR=$ac_ct_AR
5025 else
5026   AR="$ac_cv_prog_AR"
5027 fi
5028
5029 test -z "$AR" && AR=ar
5030 test -z "$AR_FLAGS" && AR_FLAGS=cru
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 if test -n "$ac_tool_prefix"; then
5043   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}strip; ac_word=$2
5045 echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5047 if test "${ac_cv_prog_STRIP+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   if test -n "$STRIP"; then
5051   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058   for ac_exec_ext in '' $ac_executable_extensions; do
5059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062     break 2
5063   fi
5064 done
5065 done
5066
5067 fi
5068 fi
5069 STRIP=$ac_cv_prog_STRIP
5070 if test -n "$STRIP"; then
5071   echo "$as_me:$LINENO: result: $STRIP" >&5
5072 echo "${ECHO_T}$STRIP" >&6
5073 else
5074   echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6
5076 fi
5077
5078 fi
5079 if test -z "$ac_cv_prog_STRIP"; then
5080   ac_ct_STRIP=$STRIP
5081   # Extract the first word of "strip", so it can be a program name with args.
5082 set dummy strip; ac_word=$2
5083 echo "$as_me:$LINENO: checking for $ac_word" >&5
5084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088   if test -n "$ac_ct_STRIP"; then
5089   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094   IFS=$as_save_IFS
5095   test -z "$as_dir" && as_dir=.
5096   for ac_exec_ext in '' $ac_executable_extensions; do
5097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098     ac_cv_prog_ac_ct_STRIP="strip"
5099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100     break 2
5101   fi
5102 done
5103 done
5104
5105   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5106 fi
5107 fi
5108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5109 if test -n "$ac_ct_STRIP"; then
5110   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5111 echo "${ECHO_T}$ac_ct_STRIP" >&6
5112 else
5113   echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5115 fi
5116
5117   STRIP=$ac_ct_STRIP
5118 else
5119   STRIP="$ac_cv_prog_STRIP"
5120 fi
5121
5122 test -z "$STRIP" && STRIP=:
5123
5124
5125
5126
5127
5128
5129 if test -n "$ac_tool_prefix"; then
5130   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_prog_RANLIB+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   if test -n "$RANLIB"; then
5138   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143   IFS=$as_save_IFS
5144   test -z "$as_dir" && as_dir=.
5145   for ac_exec_ext in '' $ac_executable_extensions; do
5146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149     break 2
5150   fi
5151 done
5152 done
5153
5154 fi
5155 fi
5156 RANLIB=$ac_cv_prog_RANLIB
5157 if test -n "$RANLIB"; then
5158   echo "$as_me:$LINENO: result: $RANLIB" >&5
5159 echo "${ECHO_T}$RANLIB" >&6
5160 else
5161   echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5163 fi
5164
5165 fi
5166 if test -z "$ac_cv_prog_RANLIB"; then
5167   ac_ct_RANLIB=$RANLIB
5168   # Extract the first word of "ranlib", so it can be a program name with args.
5169 set dummy ranlib; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   if test -n "$ac_ct_RANLIB"; then
5176   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183   for ac_exec_ext in '' $ac_executable_extensions; do
5184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185     ac_cv_prog_ac_ct_RANLIB="ranlib"
5186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190 done
5191
5192   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5193 fi
5194 fi
5195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5196 if test -n "$ac_ct_RANLIB"; then
5197   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5198 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5199 else
5200   echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202 fi
5203
5204   RANLIB=$ac_ct_RANLIB
5205 else
5206   RANLIB="$ac_cv_prog_RANLIB"
5207 fi
5208
5209 test -z "$RANLIB" && RANLIB=:
5210
5211
5212
5213
5214
5215
5216 # Determine commands to create old-style static archives.
5217 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5218 old_postinstall_cmds='chmod 644 $oldlib'
5219 old_postuninstall_cmds=
5220
5221 if test -n "$RANLIB"; then
5222   case $host_os in
5223   openbsd*)
5224     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5225     ;;
5226   *)
5227     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5228     ;;
5229   esac
5230   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5231 fi
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266 # If no C compiler was specified, use CC.
5267 LTCC=${LTCC-"$CC"}
5268
5269 # If no C compiler flags were specified, use CFLAGS.
5270 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5271
5272 # Allow CC to be a program name with arguments.
5273 compiler=$CC
5274
5275
5276 # Check for command to grab the raw symbol name followed by C symbol from nm.
5277 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5278 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5279 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282
5283 # These are sane defaults that work on at least a few old systems.
5284 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5285
5286 # Character class describing NM global symbol codes.
5287 symcode='[BCDEGRST]'
5288
5289 # Regexp to match symbols that can be accessed directly from C.
5290 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5291
5292 # Define system-specific variables.
5293 case $host_os in
5294 aix*)
5295   symcode='[BCDT]'
5296   ;;
5297 cygwin* | mingw* | pw32*)
5298   symcode='[ABCDGISTW]'
5299   ;;
5300 hpux*)
5301   if test "$host_cpu" = ia64; then
5302     symcode='[ABCDEGRST]'
5303   fi
5304   ;;
5305 irix* | nonstopux*)
5306   symcode='[BCDEGRST]'
5307   ;;
5308 osf*)
5309   symcode='[BCDEGQRST]'
5310   ;;
5311 solaris*)
5312   symcode='[BDRT]'
5313   ;;
5314 sco3.2v5*)
5315   symcode='[DT]'
5316   ;;
5317 sysv4.2uw2*)
5318   symcode='[DT]'
5319   ;;
5320 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5321   symcode='[ABDT]'
5322   ;;
5323 sysv4)
5324   symcode='[DFNSTU]'
5325   ;;
5326 esac
5327
5328 # If we're using GNU nm, then use its standard symbol codes.
5329 case `$NM -V 2>&1` in
5330 *GNU* | *'with BFD'*)
5331   symcode='[ABCDGIRSTW]' ;;
5332 esac
5333
5334 # Transform an extracted symbol line into a proper C declaration.
5335 # Some systems (esp. on ia64) link data and code symbols differently,
5336 # so use this general approach.
5337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5338
5339 # Transform an extracted symbol line into symbol name and symbol address
5340 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5341
5342 # Handle CRLF in mingw tool chain
5343 opt_cr=
5344 case $build_os in
5345 mingw*)
5346   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5347   ;;
5348 esac
5349
5350 # Try without a prefix underscore, then with it.
5351 for ac_symprfx in "" "_"; do
5352
5353   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5354   symxfrm="\\1 $ac_symprfx\\2 \\2"
5355
5356   # Write the raw and C identifiers.
5357   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5358     # Fake it for dumpbin and say T for any non-static function
5359     # and D for any global variable.
5360     # Also find C++ and __fastcall symbols from MSVC++,
5361     # which start with @ or ?.
5362     lt_cv_sys_global_symbol_pipe="$AWK '"\
5363 "     {last_section=section; section=\$ 3};"\
5364 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5365 "     \$ 0!~/External *\|/{next};"\
5366 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5367 "     {if(hide[section]) next};"\
5368 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5369 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5370 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5371 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5372 "     ' prfx=^$ac_symprfx"
5373   else
5374     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5375   fi
5376
5377   # Check to see that the pipe works correctly.
5378   pipe_works=no
5379
5380   rm -f conftest*
5381   cat > conftest.$ac_ext <<_LT_EOF
5382 #ifdef __cplusplus
5383 extern "C" {
5384 #endif
5385 char nm_test_var;
5386 void nm_test_func(void);
5387 void nm_test_func(void){}
5388 #ifdef __cplusplus
5389 }
5390 #endif
5391 int main(){nm_test_var='a';nm_test_func();return(0);}
5392 _LT_EOF
5393
5394   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395   (eval $ac_compile) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; then
5399     # Now try to grab the symbols.
5400     nlist=conftest.nm
5401     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5402   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } && test -s "$nlist"; then
5406       # Try sorting and uniquifying the output.
5407       if sort "$nlist" | uniq > "$nlist"T; then
5408         mv -f "$nlist"T "$nlist"
5409       else
5410         rm -f "$nlist"T
5411       fi
5412
5413       # Make sure that we snagged all the symbols we need.
5414       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5415         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5416           cat <<_LT_EOF > conftest.$ac_ext
5417 #ifdef __cplusplus
5418 extern "C" {
5419 #endif
5420
5421 _LT_EOF
5422           # Now generate the symbol file.
5423           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5424
5425           cat <<_LT_EOF >> conftest.$ac_ext
5426
5427 /* The mapping between symbol names and symbols.  */
5428 const struct {
5429   const char *name;
5430   void       *address;
5431 }
5432 lt__PROGRAM__LTX_preloaded_symbols[] =
5433 {
5434   { "@PROGRAM@", (void *) 0 },
5435 _LT_EOF
5436           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5437           cat <<\_LT_EOF >> conftest.$ac_ext
5438   {0, (void *) 0}
5439 };
5440
5441 /* This works around a problem in FreeBSD linker */
5442 #ifdef FREEBSD_WORKAROUND
5443 static const void *lt_preloaded_setup() {
5444   return lt__PROGRAM__LTX_preloaded_symbols;
5445 }
5446 #endif
5447
5448 #ifdef __cplusplus
5449 }
5450 #endif
5451 _LT_EOF
5452           # Now try linking the two files.
5453           mv conftest.$ac_objext conftstm.$ac_objext
5454           lt_save_LIBS="$LIBS"
5455           lt_save_CFLAGS="$CFLAGS"
5456           LIBS="conftstm.$ac_objext"
5457           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5458           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5459   (eval $ac_link) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5463             pipe_works=yes
5464           fi
5465           LIBS="$lt_save_LIBS"
5466           CFLAGS="$lt_save_CFLAGS"
5467         else
5468           echo "cannot find nm_test_func in $nlist" >&5
5469         fi
5470       else
5471         echo "cannot find nm_test_var in $nlist" >&5
5472       fi
5473     else
5474       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5475     fi
5476   else
5477     echo "$progname: failed program was:" >&5
5478     cat conftest.$ac_ext >&5
5479   fi
5480   rm -f conftest* conftst*
5481
5482   # Do not use the global_symbol_pipe unless it works.
5483   if test "$pipe_works" = yes; then
5484     break
5485   else
5486     lt_cv_sys_global_symbol_pipe=
5487   fi
5488 done
5489
5490 fi
5491
5492 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5493   lt_cv_sys_global_symbol_to_cdecl=
5494 fi
5495 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5496   echo "$as_me:$LINENO: result: failed" >&5
5497 echo "${ECHO_T}failed" >&6
5498 else
5499   echo "$as_me:$LINENO: result: ok" >&5
5500 echo "${ECHO_T}ok" >&6
5501 fi
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5520 if test "${enable_libtool_lock+set}" = set; then
5521   enableval="$enable_libtool_lock"
5522
5523 fi;
5524 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5525
5526 # Some flags need to be propagated to the compiler or linker for good
5527 # libtool support.
5528 case $host in
5529 ia64-*-hpux*)
5530   # Find out which ABI we are using.
5531   echo 'int i;' > conftest.$ac_ext
5532   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533   (eval $ac_compile) 2>&5
5534   ac_status=$?
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); }; then
5537     case `/usr/bin/file conftest.$ac_objext` in
5538       *ELF-32*)
5539         HPUX_IA64_MODE="32"
5540         ;;
5541       *ELF-64*)
5542         HPUX_IA64_MODE="64"
5543         ;;
5544     esac
5545   fi
5546   rm -rf conftest*
5547   ;;
5548 *-*-irix6*)
5549   # Find out which ABI we are using.
5550   echo '#line 5550 "configure"' > conftest.$ac_ext
5551   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552   (eval $ac_compile) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; then
5556     if test "$lt_cv_prog_gnu_ld" = yes; then
5557       case `/usr/bin/file conftest.$ac_objext` in
5558         *32-bit*)
5559           LD="${LD-ld} -melf32bsmip"
5560           ;;
5561         *N32*)
5562           LD="${LD-ld} -melf32bmipn32"
5563           ;;
5564         *64-bit*)
5565           LD="${LD-ld} -melf64bmip"
5566         ;;
5567       esac
5568     else
5569       case `/usr/bin/file conftest.$ac_objext` in
5570         *32-bit*)
5571           LD="${LD-ld} -32"
5572           ;;
5573         *N32*)
5574           LD="${LD-ld} -n32"
5575           ;;
5576         *64-bit*)
5577           LD="${LD-ld} -64"
5578           ;;
5579       esac
5580     fi
5581   fi
5582   rm -rf conftest*
5583   ;;
5584
5585 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5586 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5587   # Find out which ABI we are using.
5588   echo 'int i;' > conftest.$ac_ext
5589   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590   (eval $ac_compile) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; then
5594     case `/usr/bin/file conftest.o` in
5595       *32-bit*)
5596         case $host in
5597           x86_64-*kfreebsd*-gnu)
5598             LD="${LD-ld} -m elf_i386_fbsd"
5599             ;;
5600           x86_64-*linux*)
5601             LD="${LD-ld} -m elf_i386"
5602             ;;
5603           ppc64-*linux*|powerpc64-*linux*)
5604             LD="${LD-ld} -m elf32ppclinux"
5605             ;;
5606           s390x-*linux*)
5607             LD="${LD-ld} -m elf_s390"
5608             ;;
5609           sparc64-*linux*)
5610             LD="${LD-ld} -m elf32_sparc"
5611             ;;
5612         esac
5613         ;;
5614       *64-bit*)
5615         case $host in
5616           x86_64-*kfreebsd*-gnu)
5617             LD="${LD-ld} -m elf_x86_64_fbsd"
5618             ;;
5619           x86_64-*linux*)
5620             LD="${LD-ld} -m elf_x86_64"
5621             ;;
5622           ppc*-*linux*|powerpc*-*linux*)
5623             LD="${LD-ld} -m elf64ppc"
5624             ;;
5625           s390*-*linux*|s390*-*tpf*)
5626             LD="${LD-ld} -m elf64_s390"
5627             ;;
5628           sparc*-*linux*)
5629             LD="${LD-ld} -m elf64_sparc"
5630             ;;
5631         esac
5632         ;;
5633     esac
5634   fi
5635   rm -rf conftest*
5636   ;;
5637
5638 *-*-sco3.2v5*)
5639   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5640   SAVE_CFLAGS="$CFLAGS"
5641   CFLAGS="$CFLAGS -belf"
5642   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5643 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5644 if test "${lt_cv_cc_needs_belf+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   ac_ext=c
5648 ac_cpp='$CPP $CPPFLAGS'
5649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652
5653      cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659
5660 int
5661 main ()
5662 {
5663
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670   (eval $ac_link) 2>conftest.er1
5671   ac_status=$?
5672   grep -v '^ *+' conftest.er1 >conftest.err
5673   rm -f conftest.er1
5674   cat conftest.err >&5
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); } &&
5677          { ac_try='test -z "$ac_c_werror_flag"
5678                          || test ! -s conftest.err'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; } &&
5684          { ac_try='test -s conftest$ac_exeext'
5685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686   (eval $ac_try) 2>&5
5687   ac_status=$?
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); }; }; then
5690   lt_cv_cc_needs_belf=yes
5691 else
5692   echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5694
5695 lt_cv_cc_needs_belf=no
5696 fi
5697 rm -f conftest.err conftest.$ac_objext \
5698       conftest$ac_exeext conftest.$ac_ext
5699      ac_ext=c
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704
5705 fi
5706 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5707 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5708   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5709     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5710     CFLAGS="$SAVE_CFLAGS"
5711   fi
5712   ;;
5713 sparc*-*solaris*)
5714   # Find out which ABI we are using.
5715   echo 'int i;' > conftest.$ac_ext
5716   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717   (eval $ac_compile) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); }; then
5721     case `/usr/bin/file conftest.o` in
5722     *64-bit*)
5723       case $lt_cv_prog_gnu_ld in
5724       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5725       *)    LD="${LD-ld} -64" ;;
5726       esac
5727       ;;
5728     esac
5729   fi
5730   rm -rf conftest*
5731   ;;
5732 esac
5733
5734 need_locks="$enable_libtool_lock"
5735
5736 ac_ext=c
5737 ac_cpp='$CPP $CPPFLAGS'
5738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5741 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5742 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5743 # On Suns, sometimes $CPP names a directory.
5744 if test -n "$CPP" && test -d "$CPP"; then
5745   CPP=
5746 fi
5747 if test -z "$CPP"; then
5748   if test "${ac_cv_prog_CPP+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751       # Double quotes because CPP needs to be expanded
5752     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5753     do
5754       ac_preproc_ok=false
5755 for ac_c_preproc_warn_flag in '' yes
5756 do
5757   # Use a header file that comes with gcc, so configuring glibc
5758   # with a fresh cross-compiler works.
5759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760   # <limits.h> exists even on freestanding compilers.
5761   # On the NeXT, cc -E runs the code through the compiler's parser,
5762   # not just through cpp. "Syntax error" is here to catch this case.
5763   cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 #ifdef __STDC__
5770 # include <limits.h>
5771 #else
5772 # include <assert.h>
5773 #endif
5774                      Syntax error
5775 _ACEOF
5776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5778   ac_status=$?
5779   grep -v '^ *+' conftest.er1 >conftest.err
5780   rm -f conftest.er1
5781   cat conftest.err >&5
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); } >/dev/null; then
5784   if test -s conftest.err; then
5785     ac_cpp_err=$ac_c_preproc_warn_flag
5786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5787   else
5788     ac_cpp_err=
5789   fi
5790 else
5791   ac_cpp_err=yes
5792 fi
5793 if test -z "$ac_cpp_err"; then
5794   :
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799   # Broken: fails on valid input.
5800 continue
5801 fi
5802 rm -f conftest.err conftest.$ac_ext
5803
5804   # OK, works on sane cases.  Now check whether non-existent headers
5805   # can be detected and how.
5806   cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h.  */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812 #include <ac_nonexistent.h>
5813 _ACEOF
5814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5816   ac_status=$?
5817   grep -v '^ *+' conftest.er1 >conftest.err
5818   rm -f conftest.er1
5819   cat conftest.err >&5
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); } >/dev/null; then
5822   if test -s conftest.err; then
5823     ac_cpp_err=$ac_c_preproc_warn_flag
5824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5825   else
5826     ac_cpp_err=
5827   fi
5828 else
5829   ac_cpp_err=yes
5830 fi
5831 if test -z "$ac_cpp_err"; then
5832   # Broken: success on invalid input.
5833 continue
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838   # Passes both tests.
5839 ac_preproc_ok=:
5840 break
5841 fi
5842 rm -f conftest.err conftest.$ac_ext
5843
5844 done
5845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5846 rm -f conftest.err conftest.$ac_ext
5847 if $ac_preproc_ok; then
5848   break
5849 fi
5850
5851     done
5852     ac_cv_prog_CPP=$CPP
5853
5854 fi
5855   CPP=$ac_cv_prog_CPP
5856 else
5857   ac_cv_prog_CPP=$CPP
5858 fi
5859 echo "$as_me:$LINENO: result: $CPP" >&5
5860 echo "${ECHO_T}$CPP" >&6
5861 ac_preproc_ok=false
5862 for ac_c_preproc_warn_flag in '' yes
5863 do
5864   # Use a header file that comes with gcc, so configuring glibc
5865   # with a fresh cross-compiler works.
5866   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5867   # <limits.h> exists even on freestanding compilers.
5868   # On the NeXT, cc -E runs the code through the compiler's parser,
5869   # not just through cpp. "Syntax error" is here to catch this case.
5870   cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h.  */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h.  */
5876 #ifdef __STDC__
5877 # include <limits.h>
5878 #else
5879 # include <assert.h>
5880 #endif
5881                      Syntax error
5882 _ACEOF
5883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5885   ac_status=$?
5886   grep -v '^ *+' conftest.er1 >conftest.err
5887   rm -f conftest.er1
5888   cat conftest.err >&5
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); } >/dev/null; then
5891   if test -s conftest.err; then
5892     ac_cpp_err=$ac_c_preproc_warn_flag
5893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5894   else
5895     ac_cpp_err=
5896   fi
5897 else
5898   ac_cpp_err=yes
5899 fi
5900 if test -z "$ac_cpp_err"; then
5901   :
5902 else
5903   echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906   # Broken: fails on valid input.
5907 continue
5908 fi
5909 rm -f conftest.err conftest.$ac_ext
5910
5911   # OK, works on sane cases.  Now check whether non-existent headers
5912   # can be detected and how.
5913   cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h.  */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h.  */
5919 #include <ac_nonexistent.h>
5920 _ACEOF
5921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5923   ac_status=$?
5924   grep -v '^ *+' conftest.er1 >conftest.err
5925   rm -f conftest.er1
5926   cat conftest.err >&5
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } >/dev/null; then
5929   if test -s conftest.err; then
5930     ac_cpp_err=$ac_c_preproc_warn_flag
5931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5932   else
5933     ac_cpp_err=
5934   fi
5935 else
5936   ac_cpp_err=yes
5937 fi
5938 if test -z "$ac_cpp_err"; then
5939   # Broken: success on invalid input.
5940 continue
5941 else
5942   echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945   # Passes both tests.
5946 ac_preproc_ok=:
5947 break
5948 fi
5949 rm -f conftest.err conftest.$ac_ext
5950
5951 done
5952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5953 rm -f conftest.err conftest.$ac_ext
5954 if $ac_preproc_ok; then
5955   :
5956 else
5957   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5958 See \`config.log' for more details." >&5
5959 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5960 See \`config.log' for more details." >&2;}
5961    { (exit 1); exit 1; }; }
5962 fi
5963
5964 ac_ext=c
5965 ac_cpp='$CPP $CPPFLAGS'
5966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969
5970
5971 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5972 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5973 if test "${ac_cv_header_stdc+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982 #include <stdlib.h>
5983 #include <stdarg.h>
5984 #include <string.h>
5985 #include <float.h>
5986
5987 int
5988 main ()
5989 {
5990
5991   ;
5992   return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997   (eval $ac_compile) 2>conftest.er1
5998   ac_status=$?
5999   grep -v '^ *+' conftest.er1 >conftest.err
6000   rm -f conftest.er1
6001   cat conftest.err >&5
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } &&
6004          { ac_try='test -z "$ac_c_werror_flag"
6005                          || test ! -s conftest.err'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; } &&
6011          { ac_try='test -s conftest.$ac_objext'
6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013   (eval $ac_try) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; }; then
6017   ac_cv_header_stdc=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 ac_cv_header_stdc=no
6023 fi
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025
6026 if test $ac_cv_header_stdc = yes; then
6027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6028   cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h.  */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h.  */
6034 #include <string.h>
6035
6036 _ACEOF
6037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038   $EGREP "memchr" >/dev/null 2>&1; then
6039   :
6040 else
6041   ac_cv_header_stdc=no
6042 fi
6043 rm -f conftest*
6044
6045 fi
6046
6047 if test $ac_cv_header_stdc = yes; then
6048   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6049   cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055 #include <stdlib.h>
6056
6057 _ACEOF
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059   $EGREP "free" >/dev/null 2>&1; then
6060   :
6061 else
6062   ac_cv_header_stdc=no
6063 fi
6064 rm -f conftest*
6065
6066 fi
6067
6068 if test $ac_cv_header_stdc = yes; then
6069   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6070   if test "$cross_compiling" = yes; then
6071   :
6072 else
6073   cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h.  */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h.  */
6079 #include <ctype.h>
6080 #if ((' ' & 0x0FF) == 0x020)
6081 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6082 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6083 #else
6084 # define ISLOWER(c) \
6085                    (('a' <= (c) && (c) <= 'i') \
6086                      || ('j' <= (c) && (c) <= 'r') \
6087                      || ('s' <= (c) && (c) <= 'z'))
6088 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6089 #endif
6090
6091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6092 int
6093 main ()
6094 {
6095   int i;
6096   for (i = 0; i < 256; i++)
6097     if (XOR (islower (i), ISLOWER (i))
6098         || toupper (i) != TOUPPER (i))
6099       exit(2);
6100   exit (0);
6101 }
6102 _ACEOF
6103 rm -f conftest$ac_exeext
6104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105   (eval $ac_link) 2>&5
6106   ac_status=$?
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; }; then
6114   :
6115 else
6116   echo "$as_me: program exited with status $ac_status" >&5
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 ( exit $ac_status )
6121 ac_cv_header_stdc=no
6122 fi
6123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 fi
6126 fi
6127 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6128 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6129 if test $ac_cv_header_stdc = yes; then
6130
6131 cat >>confdefs.h <<\_ACEOF
6132 #define STDC_HEADERS 1
6133 _ACEOF
6134
6135 fi
6136
6137 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6148                   inttypes.h stdint.h unistd.h
6149 do
6150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6151 echo "$as_me:$LINENO: checking for $ac_header" >&5
6152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162 $ac_includes_default
6163
6164 #include <$ac_header>
6165 _ACEOF
6166 rm -f conftest.$ac_objext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168   (eval $ac_compile) 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } &&
6175          { ac_try='test -z "$ac_c_werror_flag"
6176                          || test ! -s conftest.err'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; } &&
6182          { ac_try='test -s conftest.$ac_objext'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; }; then
6188   eval "$as_ac_Header=yes"
6189 else
6190   echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 eval "$as_ac_Header=no"
6194 fi
6195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6196 fi
6197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6200   cat >>confdefs.h <<_ACEOF
6201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6202 _ACEOF
6203
6204 fi
6205
6206 done
6207
6208
6209
6210 for ac_header in dlfcn.h
6211 do
6212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213 echo "$as_me:$LINENO: checking for $ac_header" >&5
6214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 $ac_includes_default
6225
6226 #include <$ac_header>
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230   (eval $ac_compile) 2>conftest.er1
6231   ac_status=$?
6232   grep -v '^ *+' conftest.er1 >conftest.err
6233   rm -f conftest.er1
6234   cat conftest.err >&5
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } &&
6237          { ac_try='test -z "$ac_c_werror_flag"
6238                          || test ! -s conftest.err'
6239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240   (eval $ac_try) 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); }; } &&
6244          { ac_try='test -s conftest.$ac_objext'
6245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246   (eval $ac_try) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); }; }; then
6250   eval "$as_ac_Header=yes"
6251 else
6252   echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 eval "$as_ac_Header=no"
6256 fi
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258 fi
6259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6262   cat >>confdefs.h <<_ACEOF
6263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264 _ACEOF
6265
6266 fi
6267
6268 done
6269
6270
6271
6272 # This can be used to rebuild libtool when needed
6273 LIBTOOL_DEPS="$ltmain"
6274
6275 # Always use our own libtool.
6276 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 test -z "$LN_S" && LN_S="ln -s"
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 if test -n "${ZSH_VERSION+set}" ; then
6318    setopt NO_GLOB_SUBST
6319 fi
6320
6321 echo "$as_me:$LINENO: checking for objdir" >&5
6322 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6323 if test "${lt_cv_objdir+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   rm -f .libs 2>/dev/null
6327 mkdir .libs 2>/dev/null
6328 if test -d .libs; then
6329   lt_cv_objdir=.libs
6330 else
6331   # MS-DOS does not allow filenames that begin with a dot.
6332   lt_cv_objdir=_libs
6333 fi
6334 rmdir .libs 2>/dev/null
6335 fi
6336 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6337 echo "${ECHO_T}$lt_cv_objdir" >&6
6338 objdir=$lt_cv_objdir
6339
6340
6341
6342
6343
6344 cat >>confdefs.h <<_ACEOF
6345 #define LT_OBJDIR "$lt_cv_objdir/"
6346 _ACEOF
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364 case $host_os in
6365 aix3*)
6366   # AIX sometimes has problems with the GCC collect2 program.  For some
6367   # reason, if we set the COLLECT_NAMES environment variable, the problems
6368   # vanish in a puff of smoke.
6369   if test "X${COLLECT_NAMES+set}" != Xset; then
6370     COLLECT_NAMES=
6371     export COLLECT_NAMES
6372   fi
6373   ;;
6374 esac
6375
6376 # Sed substitution that helps us do robust quoting.  It backslashifies
6377 # metacharacters that are still active within double-quoted strings.
6378 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6379
6380 # Same as above, but do not quote variable references.
6381 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6382
6383 # Sed substitution to delay expansion of an escaped shell variable in a
6384 # double_quote_subst'ed string.
6385 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6386
6387 # Sed substitution to delay expansion of an escaped single quote.
6388 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6389
6390 # Sed substitution to avoid accidental globbing in evaled expressions
6391 no_glob_subst='s/\*/\\\*/g'
6392
6393 # Global variables:
6394 ofile=libtool
6395 can_build_shared=yes
6396
6397 # All known linkers require a `.a' archive for static linking (except MSVC,
6398 # which needs '.lib').
6399 libext=a
6400
6401 with_gnu_ld="$lt_cv_prog_gnu_ld"
6402
6403 old_CC="$CC"
6404 old_CFLAGS="$CFLAGS"
6405
6406 # Set sane defaults for various variables
6407 test -z "$CC" && CC=cc
6408 test -z "$LTCC" && LTCC=$CC
6409 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6410 test -z "$LD" && LD=ld
6411 test -z "$ac_objext" && ac_objext=o
6412
6413 for cc_temp in $compiler""; do
6414   case $cc_temp in
6415     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6416     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6417     \-*) ;;
6418     *) break;;
6419   esac
6420 done
6421 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6422
6423
6424 # Only perform the check for file, if the check method requires it
6425 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6426 case $deplibs_check_method in
6427 file_magic*)
6428   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6429     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6430 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   case $MAGIC_CMD in
6435 [\\/*] |  ?:[\\/]*)
6436   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6437   ;;
6438 *)
6439   lt_save_MAGIC_CMD="$MAGIC_CMD"
6440   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6441   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6442   for ac_dir in $ac_dummy; do
6443     IFS="$lt_save_ifs"
6444     test -z "$ac_dir" && ac_dir=.
6445     if test -f $ac_dir/${ac_tool_prefix}file; then
6446       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6447       if test -n "$file_magic_test_file"; then
6448         case $deplibs_check_method in
6449         "file_magic "*)
6450           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6451           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6452           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6453             $EGREP "$file_magic_regex" > /dev/null; then
6454             :
6455           else
6456             cat <<_LT_EOF 1>&2
6457
6458 *** Warning: the command libtool uses to detect shared libraries,
6459 *** $file_magic_cmd, produces output that libtool cannot recognize.
6460 *** The result is that libtool may fail to recognize shared libraries
6461 *** as such.  This will affect the creation of libtool libraries that
6462 *** depend on shared libraries, but programs linked with such libtool
6463 *** libraries will work regardless of this problem.  Nevertheless, you
6464 *** may want to report the problem to your system manager and/or to
6465 *** bug-libtool@gnu.org
6466
6467 _LT_EOF
6468           fi ;;
6469         esac
6470       fi
6471       break
6472     fi
6473   done
6474   IFS="$lt_save_ifs"
6475   MAGIC_CMD="$lt_save_MAGIC_CMD"
6476   ;;
6477 esac
6478 fi
6479
6480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481 if test -n "$MAGIC_CMD"; then
6482   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6483 echo "${ECHO_T}$MAGIC_CMD" >&6
6484 else
6485   echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6
6487 fi
6488
6489
6490
6491
6492
6493 if test -z "$lt_cv_path_MAGIC_CMD"; then
6494   if test -n "$ac_tool_prefix"; then
6495     echo "$as_me:$LINENO: checking for file" >&5
6496 echo $ECHO_N "checking for file... $ECHO_C" >&6
6497 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6498   echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500   case $MAGIC_CMD in
6501 [\\/*] |  ?:[\\/]*)
6502   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6503   ;;
6504 *)
6505   lt_save_MAGIC_CMD="$MAGIC_CMD"
6506   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6507   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6508   for ac_dir in $ac_dummy; do
6509     IFS="$lt_save_ifs"
6510     test -z "$ac_dir" && ac_dir=.
6511     if test -f $ac_dir/file; then
6512       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6513       if test -n "$file_magic_test_file"; then
6514         case $deplibs_check_method in
6515         "file_magic "*)
6516           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6517           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6518           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6519             $EGREP "$file_magic_regex" > /dev/null; then
6520             :
6521           else
6522             cat <<_LT_EOF 1>&2
6523
6524 *** Warning: the command libtool uses to detect shared libraries,
6525 *** $file_magic_cmd, produces output that libtool cannot recognize.
6526 *** The result is that libtool may fail to recognize shared libraries
6527 *** as such.  This will affect the creation of libtool libraries that
6528 *** depend on shared libraries, but programs linked with such libtool
6529 *** libraries will work regardless of this problem.  Nevertheless, you
6530 *** may want to report the problem to your system manager and/or to
6531 *** bug-libtool@gnu.org
6532
6533 _LT_EOF
6534           fi ;;
6535         esac
6536       fi
6537       break
6538     fi
6539   done
6540   IFS="$lt_save_ifs"
6541   MAGIC_CMD="$lt_save_MAGIC_CMD"
6542   ;;
6543 esac
6544 fi
6545
6546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6547 if test -n "$MAGIC_CMD"; then
6548   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6549 echo "${ECHO_T}$MAGIC_CMD" >&6
6550 else
6551   echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6
6553 fi
6554
6555
6556   else
6557     MAGIC_CMD=:
6558   fi
6559 fi
6560
6561   fi
6562   ;;
6563 esac
6564
6565 # Use C for the default configuration in the libtool script
6566
6567 lt_save_CC="$CC"
6568 ac_ext=c
6569 ac_cpp='$CPP $CPPFLAGS'
6570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6573
6574
6575 # Source file extension for C test sources.
6576 ac_ext=c
6577
6578 # Object file extension for compiled C test sources.
6579 objext=o
6580 objext=$objext
6581
6582 # Code to be used in simple compile tests
6583 lt_simple_compile_test_code="int some_variable = 0;"
6584
6585 # Code to be used in simple link tests
6586 lt_simple_link_test_code='int main(){return(0);}'
6587
6588
6589
6590
6591
6592
6593
6594 # If no C compiler was specified, use CC.
6595 LTCC=${LTCC-"$CC"}
6596
6597 # If no C compiler flags were specified, use CFLAGS.
6598 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6599
6600 # Allow CC to be a program name with arguments.
6601 compiler=$CC
6602
6603 # Save the default compiler, since it gets overwritten when the other
6604 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6605 compiler_DEFAULT=$CC
6606
6607 # save warnings/boilerplate of simple test code
6608 ac_outfile=conftest.$ac_objext
6609 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6610 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6611 _lt_compiler_boilerplate=`cat conftest.err`
6612 $RM conftest*
6613
6614 ac_outfile=conftest.$ac_objext
6615 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6616 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6617 _lt_linker_boilerplate=`cat conftest.err`
6618 $RM conftest*
6619
6620
6621 ## CAVEAT EMPTOR:
6622 ## There is no encapsulation within the following macros, do not change
6623 ## the running order or otherwise move them around unless you know exactly
6624 ## what you are doing...
6625 if test -n "$compiler"; then
6626
6627 lt_prog_compiler_no_builtin_flag=
6628
6629 if test "$GCC" = yes; then
6630   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6631
6632   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6633 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6634 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6635   echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637   lt_cv_prog_compiler_rtti_exceptions=no
6638    ac_outfile=conftest.$ac_objext
6639    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6640    lt_compiler_flag="-fno-rtti -fno-exceptions"
6641    # Insert the option either (1) after the last *FLAGS variable, or
6642    # (2) before a word containing "conftest.", or (3) at the end.
6643    # Note that $ac_compile itself does not contain backslashes and begins
6644    # with a dollar sign (not a hyphen), so the echo should work correctly.
6645    # The option is referenced via a variable to avoid confusing sed.
6646    lt_compile=`echo "$ac_compile" | $SED \
6647    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6648    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6649    -e 's:$: $lt_compiler_flag:'`
6650    (eval echo "\"\$as_me:6650: $lt_compile\"" >&5)
6651    (eval "$lt_compile" 2>conftest.err)
6652    ac_status=$?
6653    cat conftest.err >&5
6654    echo "$as_me:6654: \$? = $ac_status" >&5
6655    if (exit $ac_status) && test -s "$ac_outfile"; then
6656      # The compiler can only warn and ignore the option if not recognized
6657      # So say no if there are warnings other than the usual output.
6658      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6659      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6660      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6661        lt_cv_prog_compiler_rtti_exceptions=yes
6662      fi
6663    fi
6664    $RM conftest*
6665
6666 fi
6667 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6668 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6669
6670 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6671     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6672 else
6673     :
6674 fi
6675
6676 fi
6677
6678
6679
6680
6681
6682
6683   lt_prog_compiler_wl=
6684 lt_prog_compiler_pic=
6685 lt_prog_compiler_static=
6686
6687 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6689
6690   if test "$GCC" = yes; then
6691     lt_prog_compiler_wl='-Wl,'
6692     lt_prog_compiler_static='-static'
6693
6694     case $host_os in
6695       aix*)
6696       # All AIX code is PIC.
6697       if test "$host_cpu" = ia64; then
6698         # AIX 5 now supports IA64 processor
6699         lt_prog_compiler_static='-Bstatic'
6700       fi
6701       ;;
6702
6703     amigaos*)
6704       if test "$host_cpu" = m68k; then
6705         # FIXME: we need at least 68020 code to build shared libraries, but
6706         # adding the `-m68020' flag to GCC prevents building anything better,
6707         # like `-m68040'.
6708         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6709       fi
6710       ;;
6711
6712     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6713       # PIC is the default for these OSes.
6714       ;;
6715
6716     mingw* | cygwin* | pw32* | os2*)
6717       # This hack is so that the source file can tell whether it is being
6718       # built for inclusion in a dll (and should export symbols for example).
6719       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6720       # (--disable-auto-import) libraries
6721       lt_prog_compiler_pic='-DDLL_EXPORT'
6722       ;;
6723
6724     darwin* | rhapsody*)
6725       # PIC is the default on this platform
6726       # Common symbols not allowed in MH_DYLIB files
6727       lt_prog_compiler_pic='-fno-common'
6728       ;;
6729
6730     hpux*)
6731       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6732       # not for PA HP-UX.
6733       case $host_cpu in
6734       hppa*64*|ia64*)
6735         # +Z the default
6736         ;;
6737       *)
6738         lt_prog_compiler_pic='-fPIC'
6739         ;;
6740       esac
6741       ;;
6742
6743     interix[3-9]*)
6744       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6745       # Instead, we relocate shared libraries at runtime.
6746       ;;
6747
6748     msdosdjgpp*)
6749       # Just because we use GCC doesn't mean we suddenly get shared libraries
6750       # on systems that don't support them.
6751       lt_prog_compiler_can_build_shared=no
6752       enable_shared=no
6753       ;;
6754
6755     *nto* | *qnx*)
6756       # QNX uses GNU C++, but need to define -shared option too, otherwise
6757       # it will coredump.
6758       lt_prog_compiler_pic='-fPIC -shared'
6759       ;;
6760
6761     sysv4*MP*)
6762       if test -d /usr/nec; then
6763         lt_prog_compiler_pic=-Kconform_pic
6764       fi
6765       ;;
6766
6767     *)
6768       lt_prog_compiler_pic='-fPIC'
6769       ;;
6770     esac
6771   else
6772     # PORTME Check for flag to pass linker flags through the system compiler.
6773     case $host_os in
6774     aix*)
6775       lt_prog_compiler_wl='-Wl,'
6776       if test "$host_cpu" = ia64; then
6777         # AIX 5 now supports IA64 processor
6778         lt_prog_compiler_static='-Bstatic'
6779       else
6780         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6781       fi
6782       ;;
6783     darwin*)
6784       # PIC is the default on this platform
6785       # Common symbols not allowed in MH_DYLIB files
6786       case $cc_basename in
6787       xlc*)
6788         lt_prog_compiler_pic='-qnocommon'
6789         lt_prog_compiler_wl='-Wl,'
6790         ;;
6791       esac
6792       ;;
6793
6794     mingw* | cygwin* | pw32* | os2*)
6795       # This hack is so that the source file can tell whether it is being
6796       # built for inclusion in a dll (and should export symbols for example).
6797       lt_prog_compiler_pic='-DDLL_EXPORT'
6798       ;;
6799
6800     hpux9* | hpux10* | hpux11*)
6801       lt_prog_compiler_wl='-Wl,'
6802       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6803       # not for PA HP-UX.
6804       case $host_cpu in
6805       hppa*64*|ia64*)
6806         # +Z the default
6807         ;;
6808       *)
6809         lt_prog_compiler_pic='+Z'
6810         ;;
6811       esac
6812       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6813       lt_prog_compiler_static='${wl}-a ${wl}archive'
6814       ;;
6815
6816     irix5* | irix6* | nonstopux*)
6817       lt_prog_compiler_wl='-Wl,'
6818       # PIC (with -KPIC) is the default.
6819       lt_prog_compiler_static='-non_shared'
6820       ;;
6821
6822     linux* | k*bsd*-gnu)
6823       case $cc_basename in
6824       icc* | ecc*)
6825         lt_prog_compiler_wl='-Wl,'
6826         lt_prog_compiler_pic='-KPIC'
6827         lt_prog_compiler_static='-static'
6828         ;;
6829       pgcc* | pgf77* | pgf90* | pgf95*)
6830         # Portland Group compilers (*not* the Pentium gcc compiler,
6831         # which looks to be a dead project)
6832         lt_prog_compiler_wl='-Wl,'
6833         lt_prog_compiler_pic='-fpic'
6834         lt_prog_compiler_static='-Bstatic'
6835         ;;
6836       ccc*)
6837         lt_prog_compiler_wl='-Wl,'
6838         # All Alpha code is PIC.
6839         lt_prog_compiler_static='-non_shared'
6840         ;;
6841       *)
6842         case `$CC -V 2>&1 | sed 5q` in
6843         *Sun\ C*)
6844           # Sun C 5.9
6845           lt_prog_compiler_pic='-KPIC'
6846           lt_prog_compiler_static='-Bstatic'
6847           lt_prog_compiler_wl='-Wl,'
6848           ;;
6849         *Sun\ F*)
6850           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6851           lt_prog_compiler_pic='-KPIC'
6852           lt_prog_compiler_static='-Bstatic'
6853           lt_prog_compiler_wl=''
6854           ;;
6855         esac
6856         ;;
6857       esac
6858       ;;
6859
6860     newsos6)
6861       lt_prog_compiler_pic='-KPIC'
6862       lt_prog_compiler_static='-Bstatic'
6863       ;;
6864
6865     *nto* | *qnx*)
6866       # QNX uses GNU C++, but need to define -shared option too, otherwise
6867       # it will coredump.
6868       lt_prog_compiler_pic='-fPIC -shared'
6869       ;;
6870
6871     osf3* | osf4* | osf5*)
6872       lt_prog_compiler_wl='-Wl,'
6873       # All OSF/1 code is PIC.
6874       lt_prog_compiler_static='-non_shared'
6875       ;;
6876
6877     rdos*)
6878       lt_prog_compiler_static='-non_shared'
6879       ;;
6880
6881     solaris*)
6882       lt_prog_compiler_pic='-KPIC'
6883       lt_prog_compiler_static='-Bstatic'
6884       case $cc_basename in
6885       f77* | f90* | f95*)
6886         lt_prog_compiler_wl='-Qoption ld ';;
6887       *)
6888         lt_prog_compiler_wl='-Wl,';;
6889       esac
6890       ;;
6891
6892     sunos4*)
6893       lt_prog_compiler_wl='-Qoption ld '
6894       lt_prog_compiler_pic='-PIC'
6895       lt_prog_compiler_static='-Bstatic'
6896       ;;
6897
6898     sysv4 | sysv4.2uw2* | sysv4.3*)
6899       lt_prog_compiler_wl='-Wl,'
6900       lt_prog_compiler_pic='-KPIC'
6901       lt_prog_compiler_static='-Bstatic'
6902       ;;
6903
6904     sysv4*MP*)
6905       if test -d /usr/nec ;then
6906         lt_prog_compiler_pic='-Kconform_pic'
6907         lt_prog_compiler_static='-Bstatic'
6908       fi
6909       ;;
6910
6911     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6912       lt_prog_compiler_wl='-Wl,'
6913       lt_prog_compiler_pic='-KPIC'
6914       lt_prog_compiler_static='-Bstatic'
6915       ;;
6916
6917     unicos*)
6918       lt_prog_compiler_wl='-Wl,'
6919       lt_prog_compiler_can_build_shared=no
6920       ;;
6921
6922     uts4*)
6923       lt_prog_compiler_pic='-pic'
6924       lt_prog_compiler_static='-Bstatic'
6925       ;;
6926
6927     *)
6928       lt_prog_compiler_can_build_shared=no
6929       ;;
6930     esac
6931   fi
6932
6933 case $host_os in
6934   # For platforms which do not support PIC, -DPIC is meaningless:
6935   *djgpp*)
6936     lt_prog_compiler_pic=
6937     ;;
6938   *)
6939     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6940     ;;
6941 esac
6942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6943 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6944
6945
6946
6947
6948
6949
6950 #
6951 # Check to make sure the PIC flag actually works.
6952 #
6953 if test -n "$lt_prog_compiler_pic"; then
6954   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6955 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6956 if test "${lt_prog_compiler_pic_works+set}" = set; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   lt_prog_compiler_pic_works=no
6960    ac_outfile=conftest.$ac_objext
6961    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6962    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6963    # Insert the option either (1) after the last *FLAGS variable, or
6964    # (2) before a word containing "conftest.", or (3) at the end.
6965    # Note that $ac_compile itself does not contain backslashes and begins
6966    # with a dollar sign (not a hyphen), so the echo should work correctly.
6967    # The option is referenced via a variable to avoid confusing sed.
6968    lt_compile=`echo "$ac_compile" | $SED \
6969    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6970    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6971    -e 's:$: $lt_compiler_flag:'`
6972    (eval echo "\"\$as_me:6972: $lt_compile\"" >&5)
6973    (eval "$lt_compile" 2>conftest.err)
6974    ac_status=$?
6975    cat conftest.err >&5
6976    echo "$as_me:6976: \$? = $ac_status" >&5
6977    if (exit $ac_status) && test -s "$ac_outfile"; then
6978      # The compiler can only warn and ignore the option if not recognized
6979      # So say no if there are warnings other than the usual output.
6980      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6981      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6982      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6983        lt_prog_compiler_pic_works=yes
6984      fi
6985    fi
6986    $RM conftest*
6987
6988 fi
6989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6990 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6991
6992 if test x"$lt_prog_compiler_pic_works" = xyes; then
6993     case $lt_prog_compiler_pic in
6994      "" | " "*) ;;
6995      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6996      esac
6997 else
6998     lt_prog_compiler_pic=
6999      lt_prog_compiler_can_build_shared=no
7000 fi
7001
7002 fi
7003
7004
7005
7006
7007
7008
7009 #
7010 # Check to make sure the static flag actually works.
7011 #
7012 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7013 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7014 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7015 if test "${lt_prog_compiler_static_works+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   lt_prog_compiler_static_works=no
7019    save_LDFLAGS="$LDFLAGS"
7020    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7021    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7022    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7023      # The linker can only warn and ignore the option if not recognized
7024      # So say no if there are warnings
7025      if test -s conftest.err; then
7026        # Append any errors to the config.log.
7027        cat conftest.err 1>&5
7028        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7029        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7030        if diff conftest.exp conftest.er2 >/dev/null; then
7031          lt_prog_compiler_static_works=yes
7032        fi
7033      else
7034        lt_prog_compiler_static_works=yes
7035      fi
7036    fi
7037    $RM conftest*
7038    LDFLAGS="$save_LDFLAGS"
7039
7040 fi
7041 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7042 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7043
7044 if test x"$lt_prog_compiler_static_works" = xyes; then
7045     :
7046 else
7047     lt_prog_compiler_static=
7048 fi
7049
7050
7051
7052
7053
7054
7055
7056   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7057 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7058 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   lt_cv_prog_compiler_c_o=no
7062    $RM -r conftest 2>/dev/null
7063    mkdir conftest
7064    cd conftest
7065    mkdir out
7066    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7067
7068    lt_compiler_flag="-o out/conftest2.$ac_objext"
7069    # Insert the option either (1) after the last *FLAGS variable, or
7070    # (2) before a word containing "conftest.", or (3) at the end.
7071    # Note that $ac_compile itself does not contain backslashes and begins
7072    # with a dollar sign (not a hyphen), so the echo should work correctly.
7073    lt_compile=`echo "$ac_compile" | $SED \
7074    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7075    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7076    -e 's:$: $lt_compiler_flag:'`
7077    (eval echo "\"\$as_me:7077: $lt_compile\"" >&5)
7078    (eval "$lt_compile" 2>out/conftest.err)
7079    ac_status=$?
7080    cat out/conftest.err >&5
7081    echo "$as_me:7081: \$? = $ac_status" >&5
7082    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7083    then
7084      # The compiler can only warn and ignore the option if not recognized
7085      # So say no if there are warnings
7086      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7087      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7088      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7089        lt_cv_prog_compiler_c_o=yes
7090      fi
7091    fi
7092    chmod u+w . 2>&5
7093    $RM conftest*
7094    # SGI C++ compiler will create directory out/ii_files/ for
7095    # template instantiation
7096    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7097    $RM out/* && rmdir out
7098    cd ..
7099    $RM -r conftest
7100    $RM conftest*
7101
7102 fi
7103 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7105
7106
7107
7108
7109
7110
7111   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7112 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7113 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7114   echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116   lt_cv_prog_compiler_c_o=no
7117    $RM -r conftest 2>/dev/null
7118    mkdir conftest
7119    cd conftest
7120    mkdir out
7121    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7122
7123    lt_compiler_flag="-o out/conftest2.$ac_objext"
7124    # Insert the option either (1) after the last *FLAGS variable, or
7125    # (2) before a word containing "conftest.", or (3) at the end.
7126    # Note that $ac_compile itself does not contain backslashes and begins
7127    # with a dollar sign (not a hyphen), so the echo should work correctly.
7128    lt_compile=`echo "$ac_compile" | $SED \
7129    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7130    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7131    -e 's:$: $lt_compiler_flag:'`
7132    (eval echo "\"\$as_me:7132: $lt_compile\"" >&5)
7133    (eval "$lt_compile" 2>out/conftest.err)
7134    ac_status=$?
7135    cat out/conftest.err >&5
7136    echo "$as_me:7136: \$? = $ac_status" >&5
7137    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7138    then
7139      # The compiler can only warn and ignore the option if not recognized
7140      # So say no if there are warnings
7141      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7142      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7143      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7144        lt_cv_prog_compiler_c_o=yes
7145      fi
7146    fi
7147    chmod u+w . 2>&5
7148    $RM conftest*
7149    # SGI C++ compiler will create directory out/ii_files/ for
7150    # template instantiation
7151    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7152    $RM out/* && rmdir out
7153    cd ..
7154    $RM -r conftest
7155    $RM conftest*
7156
7157 fi
7158 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7159 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7160
7161
7162
7163
7164 hard_links="nottested"
7165 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7166   # do not overwrite the value of need_locks provided by the user
7167   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7168 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7169   hard_links=yes
7170   $RM conftest*
7171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7172   touch conftest.a
7173   ln conftest.a conftest.b 2>&5 || hard_links=no
7174   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7175   echo "$as_me:$LINENO: result: $hard_links" >&5
7176 echo "${ECHO_T}$hard_links" >&6
7177   if test "$hard_links" = no; then
7178     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7179 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7180     need_locks=warn
7181   fi
7182 else
7183   need_locks=no
7184 fi
7185
7186
7187
7188
7189
7190
7191   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7193
7194   runpath_var=
7195   allow_undefined_flag=
7196   always_export_symbols=no
7197   archive_cmds=
7198   archive_expsym_cmds=
7199   compiler_needs_object=no
7200   enable_shared_with_static_runtimes=no
7201   export_dynamic_flag_spec=
7202   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7203   hardcode_automatic=no
7204   hardcode_direct=no
7205   hardcode_direct_absolute=no
7206   hardcode_libdir_flag_spec=
7207   hardcode_libdir_flag_spec_ld=
7208   hardcode_libdir_separator=
7209   hardcode_minus_L=no
7210   hardcode_shlibpath_var=unsupported
7211   inherit_rpath=no
7212   link_all_deplibs=unknown
7213   module_cmds=
7214   module_expsym_cmds=
7215   old_archive_from_new_cmds=
7216   old_archive_from_expsyms_cmds=
7217   thread_safe_flag_spec=
7218   whole_archive_flag_spec=
7219   # include_expsyms should be a list of space-separated symbols to be *always*
7220   # included in the symbol list
7221   include_expsyms=
7222   # exclude_expsyms can be an extended regexp of symbols to exclude
7223   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7224   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7225   # as well as any symbol that contains `d'.
7226   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7227   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7228   # platforms (ab)use it in PIC code, but their linkers get confused if
7229   # the symbol is explicitly referenced.  Since portable code cannot
7230   # rely on this symbol name, it's probably fine to never include it in
7231   # preloaded symbol tables.
7232   extract_expsyms_cmds=
7233
7234   case $host_os in
7235   cygwin* | mingw* | pw32*)
7236     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7237     # When not using gcc, we currently assume that we are using
7238     # Microsoft Visual C++.
7239     if test "$GCC" != yes; then
7240       with_gnu_ld=no
7241     fi
7242     ;;
7243   interix*)
7244     # we just hope/assume this is gcc and not c89 (= MSVC++)
7245     with_gnu_ld=yes
7246     ;;
7247   openbsd*)
7248     with_gnu_ld=no
7249     ;;
7250   esac
7251
7252   ld_shlibs=yes
7253   if test "$with_gnu_ld" = yes; then
7254     # If archive_cmds runs LD, not CC, wlarc should be empty
7255     wlarc='${wl}'
7256
7257     # Set some defaults for GNU ld with shared library support. These
7258     # are reset later if shared libraries are not supported. Putting them
7259     # here allows them to be overridden if necessary.
7260     runpath_var=LD_RUN_PATH
7261     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7262     export_dynamic_flag_spec='${wl}--export-dynamic'
7263     # ancient GNU ld didn't support --whole-archive et. al.
7264     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7265       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7266     else
7267       whole_archive_flag_spec=
7268     fi
7269     supports_anon_versioning=no
7270     case `$LD -v 2>&1` in
7271       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7272       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7273       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7274       *\ 2.11.*) ;; # other 2.11 versions
7275       *) supports_anon_versioning=yes ;;
7276     esac
7277
7278     # See if GNU ld supports shared libraries.
7279     case $host_os in
7280     aix3* | aix4* | aix5*)
7281       # On AIX/PPC, the GNU linker is very broken
7282       if test "$host_cpu" != ia64; then
7283         ld_shlibs=no
7284         cat <<_LT_EOF 1>&2
7285
7286 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7287 *** to be unable to reliably create shared libraries on AIX.
7288 *** Therefore, libtool is disabling shared libraries support.  If you
7289 *** really care for shared libraries, you may want to modify your PATH
7290 *** so that a non-GNU linker is found, and then restart.
7291
7292 _LT_EOF
7293       fi
7294       ;;
7295
7296     amigaos*)
7297       if test "$host_cpu" = m68k; then
7298         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)'
7299         hardcode_libdir_flag_spec='-L$libdir'
7300         hardcode_minus_L=yes
7301       fi
7302
7303       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7304       # that the semantics of dynamic libraries on AmigaOS, at least up
7305       # to version 4, is to share data among multiple programs linked
7306       # with the same dynamic library.  Since this doesn't match the
7307       # behavior of shared libraries on other platforms, we can't use
7308       # them.
7309       ld_shlibs=no
7310       ;;
7311
7312     beos*)
7313       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7314         allow_undefined_flag=unsupported
7315         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7316         # support --undefined.  This deserves some investigation.  FIXME
7317         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7318       else
7319         ld_shlibs=no
7320       fi
7321       ;;
7322
7323     cygwin* | mingw* | pw32*)
7324       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7325       # as there is no search path for DLLs.
7326       hardcode_libdir_flag_spec='-L$libdir'
7327       allow_undefined_flag=unsupported
7328       always_export_symbols=no
7329       enable_shared_with_static_runtimes=yes
7330       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7331
7332       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7333         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7334         # If the export-symbols file already is a .def file (1st line
7335         # is EXPORTS), use it as is; otherwise, prepend...
7336         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7337           cp $export_symbols $output_objdir/$soname.def;
7338         else
7339           echo EXPORTS > $output_objdir/$soname.def;
7340           cat $export_symbols >> $output_objdir/$soname.def;
7341         fi~
7342         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7343       else
7344         ld_shlibs=no
7345       fi
7346       ;;
7347
7348     interix[3-9]*)
7349       hardcode_direct=no
7350       hardcode_shlibpath_var=no
7351       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7352       export_dynamic_flag_spec='${wl}-E'
7353       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7354       # Instead, shared libraries are loaded at an image base (0x10000000 by
7355       # default) and relocated if they conflict, which is a slow very memory
7356       # consuming and fragmenting process.  To avoid this, we pick a random,
7357       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7358       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7359       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7360       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'
7361       ;;
7362
7363     gnu* | linux* | tpf* | k*bsd*-gnu)
7364       tmp_diet=no
7365       if test "$host_os" = linux-dietlibc; then
7366         case $cc_basename in
7367           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7368         esac
7369       fi
7370       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7371          && test "$tmp_diet" = no
7372       then
7373         tmp_addflag=
7374         case $cc_basename,$host_cpu in
7375         pgcc*)                          # Portland Group C compiler
7376           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'
7377           tmp_addflag=' $pic_flag'
7378           ;;
7379         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7380           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'
7381           tmp_addflag=' $pic_flag -Mnomain' ;;
7382         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7383           tmp_addflag=' -i_dynamic' ;;
7384         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7385           tmp_addflag=' -i_dynamic -nofor_main' ;;
7386         ifc* | ifort*)                  # Intel Fortran compiler
7387           tmp_addflag=' -nofor_main' ;;
7388         esac
7389         case `$CC -V 2>&1 | sed 5q` in
7390         *Sun\ C*)                       # Sun C 5.9
7391           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'
7392           compiler_needs_object=yes
7393           tmp_sharedflag='-G' ;;
7394         *Sun\ F*)                       # Sun Fortran 8.3
7395           tmp_sharedflag='-G' ;;
7396         *)
7397           tmp_sharedflag='-shared' ;;
7398         esac
7399         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7400
7401         if test "x$supports_anon_versioning" = xyes; then
7402           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7403             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7404             echo "local: *; };" >> $output_objdir/$libname.ver~
7405             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7406         fi
7407       else
7408         ld_shlibs=no
7409       fi
7410       ;;
7411
7412     netbsd*)
7413       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7414         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7415         wlarc=
7416       else
7417         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7418         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7419       fi
7420       ;;
7421
7422     solaris*)
7423       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7424         ld_shlibs=no
7425         cat <<_LT_EOF 1>&2
7426
7427 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7428 *** create shared libraries on Solaris systems.  Therefore, libtool
7429 *** is disabling shared libraries support.  We urge you to upgrade GNU
7430 *** binutils to release 2.9.1 or newer.  Another option is to modify
7431 *** your PATH or compiler configuration so that the native linker is
7432 *** used, and then restart.
7433
7434 _LT_EOF
7435       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7436         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7437         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7438       else
7439         ld_shlibs=no
7440       fi
7441       ;;
7442
7443     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7444       case `$LD -v 2>&1` in
7445         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7446         ld_shlibs=no
7447         cat <<_LT_EOF 1>&2
7448
7449 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7450 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7451 *** is disabling shared libraries support.  We urge you to upgrade GNU
7452 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7453 *** your PATH or compiler configuration so that the native linker is
7454 *** used, and then restart.
7455
7456 _LT_EOF
7457         ;;
7458         *)
7459           # For security reasons, it is highly recommended that you always
7460           # use absolute paths for naming shared libraries, and exclude the
7461           # DT_RUNPATH tag from executables and libraries.  But doing so
7462           # requires that you compile everything twice, which is a pain.
7463           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7464             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7465             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7466             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7467           else
7468             ld_shlibs=no
7469           fi
7470         ;;
7471       esac
7472       ;;
7473
7474     sunos4*)
7475       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7476       wlarc=
7477       hardcode_direct=yes
7478       hardcode_shlibpath_var=no
7479       ;;
7480
7481     *)
7482       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7483         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7484         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7485       else
7486         ld_shlibs=no
7487       fi
7488       ;;
7489     esac
7490
7491     if test "$ld_shlibs" = no; then
7492       runpath_var=
7493       hardcode_libdir_flag_spec=
7494       export_dynamic_flag_spec=
7495       whole_archive_flag_spec=
7496     fi
7497   else
7498     # PORTME fill in a description of your system's linker (not GNU ld)
7499     case $host_os in
7500     aix3*)
7501       allow_undefined_flag=unsupported
7502       always_export_symbols=yes
7503       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'
7504       # Note: this linker hardcodes the directories in LIBPATH if there
7505       # are no directories specified by -L.
7506       hardcode_minus_L=yes
7507       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7508         # Neither direct hardcoding nor static linking is supported with a
7509         # broken collect2.
7510         hardcode_direct=unsupported
7511       fi
7512       ;;
7513
7514     aix4* | aix5*)
7515       if test "$host_cpu" = ia64; then
7516         # On IA64, the linker does run time linking by default, so we don't
7517         # have to do anything special.
7518         aix_use_runtimelinking=no
7519         exp_sym_flag='-Bexport'
7520         no_entry_flag=""
7521       else
7522         # If we're using GNU nm, then we don't want the "-C" option.
7523         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7524         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7525           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'
7526         else
7527           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'
7528         fi
7529         aix_use_runtimelinking=no
7530
7531         # Test if we are trying to use run time linking or normal
7532         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7533         # need to do runtime linking.
7534         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7535           for ld_flag in $LDFLAGS; do
7536           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7537             aix_use_runtimelinking=yes
7538             break
7539           fi
7540           done
7541           ;;
7542         esac
7543
7544         exp_sym_flag='-bexport'
7545         no_entry_flag='-bnoentry'
7546       fi
7547
7548       # When large executables or shared objects are built, AIX ld can
7549       # have problems creating the table of contents.  If linking a library
7550       # or program results in "error TOC overflow" add -mminimal-toc to
7551       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7552       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7553
7554       archive_cmds=''
7555       hardcode_direct=yes
7556       hardcode_direct_absolute=yes
7557       hardcode_libdir_separator=':'
7558       link_all_deplibs=yes
7559       file_list_spec='${wl}-f,'
7560
7561       if test "$GCC" = yes; then
7562         case $host_os in aix4.[012]|aix4.[012].*)
7563         # We only want to do this on AIX 4.2 and lower, the check
7564         # below for broken collect2 doesn't work under 4.3+
7565           collect2name=`${CC} -print-prog-name=collect2`
7566           if test -f "$collect2name" &&
7567            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7568           then
7569           # We have reworked collect2
7570           :
7571           else
7572           # We have old collect2
7573           hardcode_direct=unsupported
7574           # It fails to find uninstalled libraries when the uninstalled
7575           # path is not listed in the libpath.  Setting hardcode_minus_L
7576           # to unsupported forces relinking
7577           hardcode_minus_L=yes
7578           hardcode_libdir_flag_spec='-L$libdir'
7579           hardcode_libdir_separator=
7580           fi
7581           ;;
7582         esac
7583         shared_flag='-shared'
7584         if test "$aix_use_runtimelinking" = yes; then
7585           shared_flag="$shared_flag "'${wl}-G'
7586         fi
7587       else
7588         # not using gcc
7589         if test "$host_cpu" = ia64; then
7590         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7591         # chokes on -Wl,-G. The following line is correct:
7592           shared_flag='-G'
7593         else
7594           if test "$aix_use_runtimelinking" = yes; then
7595             shared_flag='${wl}-G'
7596           else
7597             shared_flag='${wl}-bM:SRE'
7598           fi
7599         fi
7600       fi
7601
7602       # It seems that -bexpall does not export symbols beginning with
7603       # underscore (_), so it is better to generate a list of symbols to export.
7604       always_export_symbols=yes
7605       if test "$aix_use_runtimelinking" = yes; then
7606         # Warning - without using the other runtime loading flags (-brtl),
7607         # -berok will link without error, but may produce a broken library.
7608         allow_undefined_flag='-berok'
7609         # Determine the default libpath from the value encoded in an
7610         # empty executable.
7611         cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617
7618 int
7619 main ()
7620 {
7621
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 rm -f conftest.$ac_objext conftest$ac_exeext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7628   (eval $ac_link) 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } &&
7635          { ac_try='test -z "$ac_c_werror_flag"
7636                          || test ! -s conftest.err'
7637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638   (eval $ac_try) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; } &&
7642          { ac_try='test -s conftest$ac_exeext'
7643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644   (eval $ac_try) 2>&5
7645   ac_status=$?
7646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); }; }; then
7648
7649 lt_aix_libpath_sed='
7650     /Import File Strings/,/^$/ {
7651         /^0/ {
7652             s/^0  *\(.*\)$/\1/
7653             p
7654         }
7655     }'
7656 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7657 # Check for a 64-bit object if we didn't find anything.
7658 if test -z "$aix_libpath"; then
7659   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7660 fi
7661 else
7662   echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 fi
7666 rm -f conftest.err conftest.$ac_objext \
7667       conftest$ac_exeext conftest.$ac_ext
7668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7669
7670         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7671         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"
7672       else
7673         if test "$host_cpu" = ia64; then
7674           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7675           allow_undefined_flag="-z nodefs"
7676           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"
7677         else
7678          # Determine the default libpath from the value encoded in an
7679          # empty executable.
7680          cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h.  */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h.  */
7686
7687 int
7688 main ()
7689 {
7690
7691   ;
7692   return 0;
7693 }
7694 _ACEOF
7695 rm -f conftest.$ac_objext conftest$ac_exeext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697   (eval $ac_link) 2>conftest.er1
7698   ac_status=$?
7699   grep -v '^ *+' conftest.er1 >conftest.err
7700   rm -f conftest.er1
7701   cat conftest.err >&5
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); } &&
7704          { ac_try='test -z "$ac_c_werror_flag"
7705                          || test ! -s conftest.err'
7706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707   (eval $ac_try) 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); }; } &&
7711          { ac_try='test -s conftest$ac_exeext'
7712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713   (eval $ac_try) 2>&5
7714   ac_status=$?
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); }; }; then
7717
7718 lt_aix_libpath_sed='
7719     /Import File Strings/,/^$/ {
7720         /^0/ {
7721             s/^0  *\(.*\)$/\1/
7722             p
7723         }
7724     }'
7725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7726 # Check for a 64-bit object if we didn't find anything.
7727 if test -z "$aix_libpath"; then
7728   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7729 fi
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 fi
7735 rm -f conftest.err conftest.$ac_objext \
7736       conftest$ac_exeext conftest.$ac_ext
7737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7738
7739          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7740           # Warning - without using the other run time loading flags,
7741           # -berok will link without error, but may produce a broken library.
7742           no_undefined_flag=' ${wl}-bernotok'
7743           allow_undefined_flag=' ${wl}-berok'
7744           # Exported symbols can be pulled into shared objects from archives
7745           whole_archive_flag_spec='$convenience'
7746           archive_cmds_need_lc=yes
7747           # This is similar to how AIX traditionally builds its shared libraries.
7748           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'
7749         fi
7750       fi
7751       ;;
7752
7753     amigaos*)
7754       if test "$host_cpu" = m68k; then
7755         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)'
7756         hardcode_libdir_flag_spec='-L$libdir'
7757         hardcode_minus_L=yes
7758       fi
7759       # see comment about different semantics on the GNU ld section
7760       ld_shlibs=no
7761       ;;
7762
7763     bsdi[45]*)
7764       export_dynamic_flag_spec=-rdynamic
7765       ;;
7766
7767     cygwin* | mingw* | pw32*)
7768       # When not using gcc, we currently assume that we are using
7769       # Microsoft Visual C++.
7770       # hardcode_libdir_flag_spec is actually meaningless, as there is
7771       # no search path for DLLs.
7772       hardcode_libdir_flag_spec=' '
7773       allow_undefined_flag=unsupported
7774       # Tell ltmain to make .lib files, not .a files.
7775       libext=lib
7776       # Tell ltmain to make .dll files, not .so files.
7777       shrext_cmds=".dll"
7778       # FIXME: Setting linknames here is a bad hack.
7779       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7780       # The linker will automatically build a .lib file if we build a DLL.
7781       old_archive_from_new_cmds='true'
7782       # FIXME: Should let the user specify the lib program.
7783       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7784       fix_srcfile_path='`cygpath -w "$srcfile"`'
7785       enable_shared_with_static_runtimes=yes
7786       ;;
7787
7788     darwin* | rhapsody*)
7789       case $host_os in
7790       rhapsody* | darwin1.[012])
7791         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7792         ;;
7793       *) # Darwin 1.3 on
7794         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7795         10.[012])
7796           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7797           ;;
7798         10.*)
7799           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7800           ;;
7801         esac
7802         ;;
7803       esac
7804       archive_cmds_need_lc=no
7805       hardcode_direct=no
7806       hardcode_automatic=yes
7807       hardcode_shlibpath_var=unsupported
7808       whole_archive_flag_spec=''
7809       link_all_deplibs=yes
7810       if test "$GCC" = yes ; then
7811         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   lt_cv_apple_cc_single_mod=no
7815         if test -z "${LT_MULTI_MODULE}"; then
7816           # By default we will add the -single_module flag. You can override
7817           # by either setting the environment variable LT_MULTI_MODULE
7818           # non-empty at configure time, or by adding -multi-module to the
7819           # link flags.
7820           echo "int foo(void){return 1;}" > conftest.c
7821           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7822               -dynamiclib ${wl}-single_module conftest.c
7823           if test -f libconftest.dylib; then
7824               lt_cv_apple_cc_single_mod=yes
7825               rm libconftest.dylib
7826           fi
7827           rm conftest.$ac_ext
7828         fi
7829 fi
7830
7831         output_verbose_link_cmd=echo
7832         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7833           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7834           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7835         else
7836           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7837           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7838         fi
7839         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7840         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7841       else
7842         case $cc_basename in
7843         xlc*)
7844           output_verbose_link_cmd=echo
7845           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7846           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7847           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7848           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7849           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7850           ;;
7851         *)
7852           ld_shlibs=no
7853           ;;
7854         esac
7855       fi
7856       ;;
7857
7858     dgux*)
7859       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7860       hardcode_libdir_flag_spec='-L$libdir'
7861       hardcode_shlibpath_var=no
7862       ;;
7863
7864     freebsd1*)
7865       ld_shlibs=no
7866       ;;
7867
7868     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7869     # support.  Future versions do this automatically, but an explicit c++rt0.o
7870     # does not break anything, and helps significantly (at the cost of a little
7871     # extra space).
7872     freebsd2.2*)
7873       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7874       hardcode_libdir_flag_spec='-R$libdir'
7875       hardcode_direct=yes
7876       hardcode_shlibpath_var=no
7877       ;;
7878
7879     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7880     freebsd2*)
7881       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7882       hardcode_direct=yes
7883       hardcode_minus_L=yes
7884       hardcode_shlibpath_var=no
7885       ;;
7886
7887     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7888     freebsd* | dragonfly*)
7889       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7890       hardcode_libdir_flag_spec='-R$libdir'
7891       hardcode_direct=yes
7892       hardcode_shlibpath_var=no
7893       ;;
7894
7895     hpux9*)
7896       if test "$GCC" = yes; then
7897         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'
7898       else
7899         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'
7900       fi
7901       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7902       hardcode_libdir_separator=:
7903       hardcode_direct=yes
7904
7905       # hardcode_minus_L: Not really in the search PATH,
7906       # but as the default location of the library.
7907       hardcode_minus_L=yes
7908       export_dynamic_flag_spec='${wl}-E'
7909       ;;
7910
7911     hpux10*)
7912       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7913         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7914       else
7915         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7916       fi
7917       if test "$with_gnu_ld" = no; then
7918         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7919         hardcode_libdir_flag_spec_ld='+b $libdir'
7920         hardcode_libdir_separator=:
7921         hardcode_direct=yes
7922         hardcode_direct_absolute=yes
7923         export_dynamic_flag_spec='${wl}-E'
7924         # hardcode_minus_L: Not really in the search PATH,
7925         # but as the default location of the library.
7926         hardcode_minus_L=yes
7927       fi
7928       ;;
7929
7930     hpux11*)
7931       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7932         case $host_cpu in
7933         hppa*64*)
7934           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7935           ;;
7936         ia64*)
7937           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7938           ;;
7939         *)
7940           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7941           ;;
7942         esac
7943       else
7944         case $host_cpu in
7945         hppa*64*)
7946           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7947           ;;
7948         ia64*)
7949           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7950           ;;
7951         *)
7952           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7953           ;;
7954         esac
7955       fi
7956       if test "$with_gnu_ld" = no; then
7957         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7958         hardcode_libdir_separator=:
7959
7960         case $host_cpu in
7961         hppa*64*|ia64*)
7962           hardcode_direct=no
7963           hardcode_shlibpath_var=no
7964           ;;
7965         *)
7966           hardcode_direct=yes
7967           hardcode_direct_absolute=yes
7968           export_dynamic_flag_spec='${wl}-E'
7969
7970           # hardcode_minus_L: Not really in the search PATH,
7971           # but as the default location of the library.
7972           hardcode_minus_L=yes
7973           ;;
7974         esac
7975       fi
7976       ;;
7977
7978     irix5* | irix6* | nonstopux*)
7979       if test "$GCC" = yes; then
7980         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'
7981         # Try to use the -exported_symbol ld option, if it does not
7982         # work, assume that -exports_file does not work either and
7983         # implicitly export all symbols.
7984         save_LDFLAGS="$LDFLAGS"
7985         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7986         cat >conftest.$ac_ext <<_ACEOF
7987 int foo(void) {}
7988 _ACEOF
7989 rm -f conftest.$ac_objext conftest$ac_exeext
7990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7991   (eval $ac_link) 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } &&
7998          { ac_try='test -z "$ac_c_werror_flag"
7999                          || test ! -s conftest.err'
8000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001   (eval $ac_try) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; } &&
8005          { ac_try='test -s conftest$ac_exeext'
8006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007   (eval $ac_try) 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; }; then
8011   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'
8012
8013 else
8014   echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017 fi
8018 rm -f conftest.err conftest.$ac_objext \
8019       conftest$ac_exeext conftest.$ac_ext
8020         LDFLAGS="$save_LDFLAGS"
8021       else
8022         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'
8023         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'
8024       fi
8025       archive_cmds_need_lc='no'
8026       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8027       hardcode_libdir_separator=:
8028       inherit_rpath=yes
8029       link_all_deplibs=yes
8030       ;;
8031
8032     netbsd*)
8033       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8034         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8035       else
8036         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8037       fi
8038       hardcode_libdir_flag_spec='-R$libdir'
8039       hardcode_direct=yes
8040       hardcode_shlibpath_var=no
8041       ;;
8042
8043     newsos6)
8044       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8045       hardcode_direct=yes
8046       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8047       hardcode_libdir_separator=:
8048       hardcode_shlibpath_var=no
8049       ;;
8050
8051     *nto* | *qnx*)
8052       ;;
8053
8054     openbsd*)
8055       hardcode_direct=yes
8056       hardcode_shlibpath_var=no
8057       hardcode_direct_absolute=yes
8058       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8059         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8060         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8061         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8062         export_dynamic_flag_spec='${wl}-E'
8063       else
8064         case $host_os in
8065         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8066           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8067           hardcode_libdir_flag_spec='-R$libdir'
8068           ;;
8069         *)
8070           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8071           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8072           ;;
8073         esac
8074       fi
8075       ;;
8076
8077     os2*)
8078       hardcode_libdir_flag_spec='-L$libdir'
8079       hardcode_minus_L=yes
8080       allow_undefined_flag=unsupported
8081       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'
8082       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8083       ;;
8084
8085     osf3*)
8086       if test "$GCC" = yes; then
8087         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8088         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'
8089       else
8090         allow_undefined_flag=' -expect_unresolved \*'
8091         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'
8092       fi
8093       archive_cmds_need_lc='no'
8094       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8095       hardcode_libdir_separator=:
8096       ;;
8097
8098     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8099       if test "$GCC" = yes; then
8100         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8101         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'
8102         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8103       else
8104         allow_undefined_flag=' -expect_unresolved \*'
8105         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'
8106         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~
8107         $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'
8108
8109         # Both c and cxx compiler support -rpath directly
8110         hardcode_libdir_flag_spec='-rpath $libdir'
8111       fi
8112       archive_cmds_need_lc='no'
8113       hardcode_libdir_separator=:
8114       ;;
8115
8116     solaris*)
8117       no_undefined_flag=' -z defs'
8118       if test "$GCC" = yes; then
8119         wlarc='${wl}'
8120         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8121         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8122           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8123       else
8124         case `$CC -V 2>&1` in
8125         *"Compilers 5.0"*)
8126           wlarc=''
8127           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8128           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8129           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8130           ;;
8131         *)
8132           wlarc='${wl}'
8133           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8134           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8135           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8136           ;;
8137         esac
8138       fi
8139       hardcode_libdir_flag_spec='-R$libdir'
8140       hardcode_shlibpath_var=no
8141       case $host_os in
8142       solaris2.[0-5] | solaris2.[0-5].*) ;;
8143       *)
8144         # The compiler driver will combine and reorder linker options,
8145         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8146         # but is careful enough not to reorder.
8147         # Supported since Solaris 2.6 (maybe 2.5.1?)
8148         if test "$GCC" = yes; then
8149           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8150         else
8151           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8152         fi
8153         ;;
8154       esac
8155       link_all_deplibs=yes
8156       ;;
8157
8158     sunos4*)
8159       if test "x$host_vendor" = xsequent; then
8160         # Use $CC to link under sequent, because it throws in some extra .o
8161         # files that make .init and .fini sections work.
8162         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8163       else
8164         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8165       fi
8166       hardcode_libdir_flag_spec='-L$libdir'
8167       hardcode_direct=yes
8168       hardcode_minus_L=yes
8169       hardcode_shlibpath_var=no
8170       ;;
8171
8172     sysv4)
8173       case $host_vendor in
8174         sni)
8175           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8176           hardcode_direct=yes # is this really true???
8177         ;;
8178         siemens)
8179           ## LD is ld it makes a PLAMLIB
8180           ## CC just makes a GrossModule.
8181           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8182           reload_cmds='$CC -r -o $output$reload_objs'
8183           hardcode_direct=no
8184         ;;
8185         motorola)
8186           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8187           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8188         ;;
8189       esac
8190       runpath_var='LD_RUN_PATH'
8191       hardcode_shlibpath_var=no
8192       ;;
8193
8194     sysv4.3*)
8195       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8196       hardcode_shlibpath_var=no
8197       export_dynamic_flag_spec='-Bexport'
8198       ;;
8199
8200     sysv4*MP*)
8201       if test -d /usr/nec; then
8202         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8203         hardcode_shlibpath_var=no
8204         runpath_var=LD_RUN_PATH
8205         hardcode_runpath_var=yes
8206         ld_shlibs=yes
8207       fi
8208       ;;
8209
8210     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8211       no_undefined_flag='${wl}-z,text'
8212       archive_cmds_need_lc=no
8213       hardcode_shlibpath_var=no
8214       runpath_var='LD_RUN_PATH'
8215
8216       if test "$GCC" = yes; then
8217         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8218         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8219       else
8220         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8221         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8222       fi
8223       ;;
8224
8225     sysv5* | sco3.2v5* | sco5v6*)
8226       # Note: We can NOT use -z defs as we might desire, because we do not
8227       # link with -lc, and that would cause any symbols used from libc to
8228       # always be unresolved, which means just about no library would
8229       # ever link correctly.  If we're not using GNU ld we use -z text
8230       # though, which does catch some bad symbols but isn't as heavy-handed
8231       # as -z defs.
8232       no_undefined_flag='${wl}-z,text'
8233       allow_undefined_flag='${wl}-z,nodefs'
8234       archive_cmds_need_lc=no
8235       hardcode_shlibpath_var=no
8236       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8237       hardcode_libdir_separator=':'
8238       link_all_deplibs=yes
8239       export_dynamic_flag_spec='${wl}-Bexport'
8240       runpath_var='LD_RUN_PATH'
8241
8242       if test "$GCC" = yes; then
8243         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8244         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8245       else
8246         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8247         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8248       fi
8249       ;;
8250
8251     uts4*)
8252       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8253       hardcode_libdir_flag_spec='-L$libdir'
8254       hardcode_shlibpath_var=no
8255       ;;
8256
8257     *)
8258       ld_shlibs=no
8259       ;;
8260     esac
8261
8262     if test x$host_vendor = xsni; then
8263       case $host in
8264       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8265         export_dynamic_flag_spec='${wl}-Blargedynsym'
8266         ;;
8267       esac
8268     fi
8269   fi
8270
8271 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8272 echo "${ECHO_T}$ld_shlibs" >&6
8273 test "$ld_shlibs" = no && can_build_shared=no
8274
8275 with_gnu_ld=$with_gnu_ld
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 #
8292 # Do we need to explicitly link libc?
8293 #
8294 case "x$archive_cmds_need_lc" in
8295 x|xyes)
8296   # Assume -lc should be added
8297   archive_cmds_need_lc=yes
8298
8299   if test "$enable_shared" = yes && test "$GCC" = yes; then
8300     case $archive_cmds in
8301     *'~'*)
8302       # FIXME: we may have to deal with multi-command sequences.
8303       ;;
8304     '$CC '*)
8305       # Test whether the compiler implicitly links with -lc since on some
8306       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8307       # to ld, don't add -lc before -lgcc.
8308       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8309 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8310       $RM conftest*
8311       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312
8313       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8314   (eval $ac_compile) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } 2>conftest.err; then
8318         soname=conftest
8319         lib=conftest
8320         libobjs=conftest.$ac_objext
8321         deplibs=
8322         wl=$lt_prog_compiler_wl
8323         pic_flag=$lt_prog_compiler_pic
8324         compiler_flags=-v
8325         linker_flags=-v
8326         verstring=
8327         output_objdir=.
8328         libname=conftest
8329         lt_save_allow_undefined_flag=$allow_undefined_flag
8330         allow_undefined_flag=
8331         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8332   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); }
8336         then
8337           archive_cmds_need_lc=no
8338         else
8339           archive_cmds_need_lc=yes
8340         fi
8341         allow_undefined_flag=$lt_save_allow_undefined_flag
8342       else
8343         cat conftest.err 1>&5
8344       fi
8345       $RM conftest*
8346       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8347 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8348       ;;
8349     esac
8350   fi
8351   ;;
8352 esac
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8511 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8512 withGCC=$GCC
8513 if test "$withGCC" = yes; then
8514   case $host_os in
8515     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8516     *) lt_awk_arg="/^libraries:/" ;;
8517   esac
8518   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8519   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8520     # if the path contains ";" then we assume it to be the separator
8521     # otherwise default to the standard path separator (i.e. ":") - it is
8522     # assumed that no part of a normal pathname contains ";" but that should
8523     # okay in the real world where ";" in dirpaths is itself problematic.
8524     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8525   else
8526     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8527   fi
8528   # Ok, now we have the path, separated by spaces, we can step through it
8529   # and add multilib dir if necessary.
8530   lt_tmp_lt_search_path_spec=
8531   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8532   for lt_sys_path in $lt_search_path_spec; do
8533     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8534       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8535     else
8536       test -d "$lt_sys_path" && \
8537         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8538     fi
8539   done
8540   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8541 BEGIN {RS=" "; FS="/|\n";} {
8542   lt_foo="";
8543   lt_count=0;
8544   for (lt_i = NF; lt_i > 0; lt_i--) {
8545     if ($lt_i != "" && $lt_i != ".") {
8546       if ($lt_i == "..") {
8547         lt_count++;
8548       } else {
8549         if (lt_count == 0) {
8550           lt_foo="/" $lt_i lt_foo;
8551         } else {
8552           lt_count--;
8553         }
8554       }
8555     }
8556   }
8557   if (lt_foo != "") { lt_freq[lt_foo]++; }
8558   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8559 }'`
8560   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8561 else
8562   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8563 fi
8564 library_names_spec=
8565 libname_spec='lib$name'
8566 soname_spec=
8567 shrext_cmds=".so"
8568 postinstall_cmds=
8569 postuninstall_cmds=
8570 finish_cmds=
8571 finish_eval=
8572 shlibpath_var=
8573 shlibpath_overrides_runpath=unknown
8574 version_type=none
8575 dynamic_linker="$host_os ld.so"
8576 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8577 need_lib_prefix=unknown
8578 hardcode_into_libs=no
8579
8580 # when you set need_version to no, make sure it does not cause -set_version
8581 # flags to be left without arguments
8582 need_version=unknown
8583
8584 case $host_os in
8585 aix3*)
8586   version_type=linux
8587   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8588   shlibpath_var=LIBPATH
8589
8590   # AIX 3 has no versioning support, so we append a major version to the name.
8591   soname_spec='${libname}${release}${shared_ext}$major'
8592   ;;
8593
8594 aix4* | aix5*)
8595   version_type=linux
8596   need_lib_prefix=no
8597   need_version=no
8598   hardcode_into_libs=yes
8599   if test "$host_cpu" = ia64; then
8600     # AIX 5 supports IA64
8601     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8602     shlibpath_var=LD_LIBRARY_PATH
8603   else
8604     # With GCC up to 2.95.x, collect2 would create an import file
8605     # for dependence libraries.  The import file would start with
8606     # the line `#! .'.  This would cause the generated library to
8607     # depend on `.', always an invalid library.  This was fixed in
8608     # development snapshots of GCC prior to 3.0.
8609     case $host_os in
8610       aix4 | aix4.[01] | aix4.[01].*)
8611       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8612            echo ' yes '
8613            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8614         :
8615       else
8616         can_build_shared=no
8617       fi
8618       ;;
8619     esac
8620     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8621     # soname into executable. Probably we can add versioning support to
8622     # collect2, so additional links can be useful in future.
8623     if test "$aix_use_runtimelinking" = yes; then
8624       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8625       # instead of lib<name>.a to let people know that these are not
8626       # typical AIX shared libraries.
8627       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8628     else
8629       # We preserve .a as extension for shared libraries through AIX4.2
8630       # and later when we are not doing run time linking.
8631       library_names_spec='${libname}${release}.a $libname.a'
8632       soname_spec='${libname}${release}${shared_ext}$major'
8633     fi
8634     shlibpath_var=LIBPATH
8635   fi
8636   ;;
8637
8638 amigaos*)
8639   if test "$host_cpu" = m68k; then
8640     library_names_spec='$libname.ixlibrary $libname.a'
8641     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8642     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'
8643   else
8644     dynamic_linker=no
8645   fi
8646   ;;
8647
8648 beos*)
8649   library_names_spec='${libname}${shared_ext}'
8650   dynamic_linker="$host_os ld.so"
8651   shlibpath_var=LIBRARY_PATH
8652   ;;
8653
8654 bsdi[45]*)
8655   version_type=linux
8656   need_version=no
8657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8658   soname_spec='${libname}${release}${shared_ext}$major'
8659   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8660   shlibpath_var=LD_LIBRARY_PATH
8661   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8662   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8663   # the default ld.so.conf also contains /usr/contrib/lib and
8664   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8665   # libtool to hard-code these into programs
8666   ;;
8667
8668 cygwin* | mingw* | pw32*)
8669   version_type=windows
8670   shrext_cmds=".dll"
8671   need_version=no
8672   need_lib_prefix=no
8673
8674   case $withGCC,$host_os in
8675   yes,cygwin* | yes,mingw* | yes,pw32*)
8676     library_names_spec='$libname.dll.a'
8677     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8678     postinstall_cmds='base_file=`basename \${file}`~
8679       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8680       dldir=$destdir/`dirname \$dlpath`~
8681       test -d \$dldir || mkdir -p \$dldir~
8682       $install_prog $dir/$dlname \$dldir/$dlname~
8683       chmod a+x \$dldir/$dlname~
8684       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8685         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8686       fi'
8687     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8688       dlpath=$dir/\$dldll~
8689        $RM \$dlpath'
8690     shlibpath_overrides_runpath=yes
8691
8692     case $host_os in
8693     cygwin*)
8694       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8695       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8696       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8697       ;;
8698     mingw*)
8699       # MinGW DLLs use traditional 'lib' prefix
8700       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8702       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8703         # It is most probably a Windows format PATH printed by
8704         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8705         # path with ; separators, and with drive letters. We can handle the
8706         # drive letters (cygwin fileutils understands them), so leave them,
8707         # especially as we might pass files found there to a mingw objdump,
8708         # which wouldn't understand a cygwinified path. Ahh.
8709         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8710       else
8711         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8712       fi
8713       ;;
8714     pw32*)
8715       # pw32 DLLs use 'pw' prefix rather than 'lib'
8716       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8717       ;;
8718     esac
8719     ;;
8720
8721   *)
8722     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8723     ;;
8724   esac
8725   dynamic_linker='Win32 ld.exe'
8726   # FIXME: first we should search . and the directory the executable is in
8727   shlibpath_var=PATH
8728   ;;
8729
8730 darwin* | rhapsody*)
8731   dynamic_linker="$host_os dyld"
8732   version_type=darwin
8733   need_lib_prefix=no
8734   need_version=no
8735   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8736   soname_spec='${libname}${release}${major}$shared_ext'
8737   shlibpath_overrides_runpath=yes
8738   shlibpath_var=DYLD_LIBRARY_PATH
8739   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8740
8741   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8742   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8743   ;;
8744
8745 dgux*)
8746   version_type=linux
8747   need_lib_prefix=no
8748   need_version=no
8749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8750   soname_spec='${libname}${release}${shared_ext}$major'
8751   shlibpath_var=LD_LIBRARY_PATH
8752   ;;
8753
8754 freebsd1*)
8755   dynamic_linker=no
8756   ;;
8757
8758 freebsd* | dragonfly*)
8759   # DragonFly does not have aout.  When/if they implement a new
8760   # versioning mechanism, adjust this.
8761   if test -x /usr/bin/objformat; then
8762     objformat=`/usr/bin/objformat`
8763   else
8764     case $host_os in
8765     freebsd[123]*) objformat=aout ;;
8766     *) objformat=elf ;;
8767     esac
8768   fi
8769   version_type=freebsd-$objformat
8770   case $version_type in
8771     freebsd-elf*)
8772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8773       need_version=no
8774       need_lib_prefix=no
8775       ;;
8776     freebsd-*)
8777       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8778       need_version=yes
8779       ;;
8780   esac
8781   shlibpath_var=LD_LIBRARY_PATH
8782   case $host_os in
8783   freebsd2*)
8784     shlibpath_overrides_runpath=yes
8785     ;;
8786   freebsd3.[01]* | freebsdelf3.[01]*)
8787     shlibpath_overrides_runpath=yes
8788     hardcode_into_libs=yes
8789     ;;
8790   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8791   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8792     shlibpath_overrides_runpath=no
8793     hardcode_into_libs=yes
8794     ;;
8795   *) # from 4.6 on, and DragonFly
8796     shlibpath_overrides_runpath=yes
8797     hardcode_into_libs=yes
8798     ;;
8799   esac
8800   ;;
8801
8802 gnu*)
8803   version_type=linux
8804   need_lib_prefix=no
8805   need_version=no
8806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8807   soname_spec='${libname}${release}${shared_ext}$major'
8808   shlibpath_var=LD_LIBRARY_PATH
8809   hardcode_into_libs=yes
8810   ;;
8811
8812 hpux9* | hpux10* | hpux11*)
8813   # Give a soname corresponding to the major version so that dld.sl refuses to
8814   # link against other versions.
8815   version_type=sunos
8816   need_lib_prefix=no
8817   need_version=no
8818   case $host_cpu in
8819   ia64*)
8820     shrext_cmds='.so'
8821     hardcode_into_libs=yes
8822     dynamic_linker="$host_os dld.so"
8823     shlibpath_var=LD_LIBRARY_PATH
8824     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826     soname_spec='${libname}${release}${shared_ext}$major'
8827     if test "X$HPUX_IA64_MODE" = X32; then
8828       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8829     else
8830       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8831     fi
8832     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8833     ;;
8834   hppa*64*)
8835     shrext_cmds='.sl'
8836     hardcode_into_libs=yes
8837     dynamic_linker="$host_os dld.sl"
8838     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8839     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841     soname_spec='${libname}${release}${shared_ext}$major'
8842     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8843     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8844     ;;
8845   *)
8846     shrext_cmds='.sl'
8847     dynamic_linker="$host_os dld.sl"
8848     shlibpath_var=SHLIB_PATH
8849     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851     soname_spec='${libname}${release}${shared_ext}$major'
8852     ;;
8853   esac
8854   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8855   postinstall_cmds='chmod 555 $lib'
8856   ;;
8857
8858 interix[3-9]*)
8859   version_type=linux
8860   need_lib_prefix=no
8861   need_version=no
8862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863   soname_spec='${libname}${release}${shared_ext}$major'
8864   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8865   shlibpath_var=LD_LIBRARY_PATH
8866   shlibpath_overrides_runpath=no
8867   hardcode_into_libs=yes
8868   ;;
8869
8870 irix5* | irix6* | nonstopux*)
8871   case $host_os in
8872     nonstopux*) version_type=nonstopux ;;
8873     *)
8874         if test "$lt_cv_prog_gnu_ld" = yes; then
8875                 version_type=linux
8876         else
8877                 version_type=irix
8878         fi ;;
8879   esac
8880   need_lib_prefix=no
8881   need_version=no
8882   soname_spec='${libname}${release}${shared_ext}$major'
8883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8884   case $host_os in
8885   irix5* | nonstopux*)
8886     libsuff= shlibsuff=
8887     ;;
8888   *)
8889     case $LD in # libtool.m4 will add one of these switches to LD
8890     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8891       libsuff= shlibsuff= libmagic=32-bit;;
8892     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8893       libsuff=32 shlibsuff=N32 libmagic=N32;;
8894     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8895       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8896     *) libsuff= shlibsuff= libmagic=never-match;;
8897     esac
8898     ;;
8899   esac
8900   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8901   shlibpath_overrides_runpath=no
8902   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8903   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8904   hardcode_into_libs=yes
8905   ;;
8906
8907 # No shared lib support for Linux oldld, aout, or coff.
8908 linux*oldld* | linux*aout* | linux*coff*)
8909   dynamic_linker=no
8910   ;;
8911
8912 # This must be Linux ELF.
8913 linux* | k*bsd*-gnu)
8914   version_type=linux
8915   need_lib_prefix=no
8916   need_version=no
8917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8918   soname_spec='${libname}${release}${shared_ext}$major'
8919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8920   shlibpath_var=LD_LIBRARY_PATH
8921   shlibpath_overrides_runpath=no
8922   # Some binutils ld are patched to set DT_RUNPATH
8923   save_LDFLAGS=$LDFLAGS
8924   save_libdir=$libdir
8925   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8926        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8927   cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h.  */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h.  */
8933
8934 int
8935 main ()
8936 {
8937
8938   ;
8939   return 0;
8940 }
8941 _ACEOF
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944   (eval $ac_link) 2>conftest.er1
8945   ac_status=$?
8946   grep -v '^ *+' conftest.er1 >conftest.err
8947   rm -f conftest.er1
8948   cat conftest.err >&5
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); } &&
8951          { ac_try='test -z "$ac_c_werror_flag"
8952                          || test ! -s conftest.err'
8953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954   (eval $ac_try) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; } &&
8958          { ac_try='test -s conftest$ac_exeext'
8959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960   (eval $ac_try) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; }; then
8964   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8965   shlibpath_overrides_runpath=yes
8966 fi
8967
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 fi
8973 rm -f conftest.err conftest.$ac_objext \
8974       conftest$ac_exeext conftest.$ac_ext
8975   LDFLAGS=$save_LDFLAGS
8976   libdir=$save_libdir
8977
8978   # This implies no fast_install, which is unacceptable.
8979   # Some rework will be needed to allow for fast_install
8980   # before this can be enabled.
8981   hardcode_into_libs=yes
8982
8983   # Append ld.so.conf contents to the search path
8984   if test -f /etc/ld.so.conf; then
8985     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8986     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8987   fi
8988
8989   # We used to test for /lib/ld.so.1 and disable shared libraries on
8990   # powerpc, because MkLinux only supported shared libraries with the
8991   # GNU dynamic linker.  Since this was broken with cross compilers,
8992   # most powerpc-linux boxes support dynamic linking these days and
8993   # people can always --disable-shared, the test was removed, and we
8994   # assume the GNU/Linux dynamic linker is in use.
8995   dynamic_linker='GNU/Linux ld.so'
8996   ;;
8997
8998 netbsd*)
8999   version_type=sunos
9000   need_lib_prefix=no
9001   need_version=no
9002   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9004     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9005     dynamic_linker='NetBSD (a.out) ld.so'
9006   else
9007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9008     soname_spec='${libname}${release}${shared_ext}$major'
9009     dynamic_linker='NetBSD ld.elf_so'
9010   fi
9011   shlibpath_var=LD_LIBRARY_PATH
9012   shlibpath_overrides_runpath=yes
9013   hardcode_into_libs=yes
9014   ;;
9015
9016 newsos6)
9017   version_type=linux
9018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019   shlibpath_var=LD_LIBRARY_PATH
9020   shlibpath_overrides_runpath=yes
9021   ;;
9022
9023 *nto* | *qnx*)
9024   version_type=qnx
9025   need_lib_prefix=no
9026   need_version=no
9027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028   soname_spec='${libname}${release}${shared_ext}$major'
9029   shlibpath_var=LD_LIBRARY_PATH
9030   shlibpath_overrides_runpath=no
9031   hardcode_into_libs=yes
9032   dynamic_linker='ldqnx.so'
9033   ;;
9034
9035 openbsd*)
9036   version_type=sunos
9037   sys_lib_dlsearch_path_spec="/usr/lib"
9038   need_lib_prefix=no
9039   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9040   case $host_os in
9041     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9042     *)                          need_version=no  ;;
9043   esac
9044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9045   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9046   shlibpath_var=LD_LIBRARY_PATH
9047   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9048     case $host_os in
9049       openbsd2.[89] | openbsd2.[89].*)
9050         shlibpath_overrides_runpath=no
9051         ;;
9052       *)
9053         shlibpath_overrides_runpath=yes
9054         ;;
9055       esac
9056   else
9057     shlibpath_overrides_runpath=yes
9058   fi
9059   ;;
9060
9061 os2*)
9062   libname_spec='$name'
9063   shrext_cmds=".dll"
9064   need_lib_prefix=no
9065   library_names_spec='$libname${shared_ext} $libname.a'
9066   dynamic_linker='OS/2 ld.exe'
9067   shlibpath_var=LIBPATH
9068   ;;
9069
9070 osf3* | osf4* | osf5*)
9071   version_type=osf
9072   need_lib_prefix=no
9073   need_version=no
9074   soname_spec='${libname}${release}${shared_ext}$major'
9075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076   shlibpath_var=LD_LIBRARY_PATH
9077   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9078   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9079   ;;
9080
9081 rdos*)
9082   dynamic_linker=no
9083   ;;
9084
9085 solaris*)
9086   version_type=linux
9087   need_lib_prefix=no
9088   need_version=no
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090   soname_spec='${libname}${release}${shared_ext}$major'
9091   shlibpath_var=LD_LIBRARY_PATH
9092   shlibpath_overrides_runpath=yes
9093   hardcode_into_libs=yes
9094   # ldd complains unless libraries are executable
9095   postinstall_cmds='chmod +x $lib'
9096   ;;
9097
9098 sunos4*)
9099   version_type=sunos
9100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9101   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9102   shlibpath_var=LD_LIBRARY_PATH
9103   shlibpath_overrides_runpath=yes
9104   if test "$with_gnu_ld" = yes; then
9105     need_lib_prefix=no
9106   fi
9107   need_version=yes
9108   ;;
9109
9110 sysv4 | sysv4.3*)
9111   version_type=linux
9112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113   soname_spec='${libname}${release}${shared_ext}$major'
9114   shlibpath_var=LD_LIBRARY_PATH
9115   case $host_vendor in
9116     sni)
9117       shlibpath_overrides_runpath=no
9118       need_lib_prefix=no
9119       runpath_var=LD_RUN_PATH
9120       ;;
9121     siemens)
9122       need_lib_prefix=no
9123       ;;
9124     motorola)
9125       need_lib_prefix=no
9126       need_version=no
9127       shlibpath_overrides_runpath=no
9128       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9129       ;;
9130   esac
9131   ;;
9132
9133 sysv4*MP*)
9134   if test -d /usr/nec ;then
9135     version_type=linux
9136     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9137     soname_spec='$libname${shared_ext}.$major'
9138     shlibpath_var=LD_LIBRARY_PATH
9139   fi
9140   ;;
9141
9142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9143   version_type=freebsd-elf
9144   need_lib_prefix=no
9145   need_version=no
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9147   soname_spec='${libname}${release}${shared_ext}$major'
9148   shlibpath_var=LD_LIBRARY_PATH
9149   shlibpath_overrides_runpath=yes
9150   hardcode_into_libs=yes
9151   if test "$with_gnu_ld" = yes; then
9152     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9153   else
9154     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9155     case $host_os in
9156       sco3.2v5*)
9157         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9158         ;;
9159     esac
9160   fi
9161   sys_lib_dlsearch_path_spec='/usr/lib'
9162   ;;
9163
9164 tpf*)
9165   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9166   version_type=linux
9167   need_lib_prefix=no
9168   need_version=no
9169   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170   shlibpath_var=LD_LIBRARY_PATH
9171   shlibpath_overrides_runpath=no
9172   hardcode_into_libs=yes
9173   ;;
9174
9175 uts4*)
9176   version_type=linux
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178   soname_spec='${libname}${release}${shared_ext}$major'
9179   shlibpath_var=LD_LIBRARY_PATH
9180   ;;
9181
9182 *)
9183   dynamic_linker=no
9184   ;;
9185 esac
9186 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9187 echo "${ECHO_T}$dynamic_linker" >&6
9188 test "$dynamic_linker" = no && can_build_shared=no
9189
9190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9191 if test "$GCC" = yes; then
9192   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9193 fi
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9282 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9283 hardcode_action=
9284 if test -n "$hardcode_libdir_flag_spec" ||
9285    test -n "$runpath_var" ||
9286    test "X$hardcode_automatic" = "Xyes" ; then
9287
9288   # We can hardcode non-existent directories.
9289   if test "$hardcode_direct" != no &&
9290      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9291      # have to relink, otherwise we might link with an installed library
9292      # when we should be linking with a yet-to-be-installed one
9293      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9294      test "$hardcode_minus_L" != no; then
9295     # Linking always hardcodes the temporary library directory.
9296     hardcode_action=relink
9297   else
9298     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9299     hardcode_action=immediate
9300   fi
9301 else
9302   # We cannot hardcode anything, or else we can only hardcode existing
9303   # directories.
9304   hardcode_action=unsupported
9305 fi
9306 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9307 echo "${ECHO_T}$hardcode_action" >&6
9308
9309 if test "$hardcode_action" = relink ||
9310    test "$inherit_rpath" = yes; then
9311   # Fast installation is not supported
9312   enable_fast_install=no
9313 elif test "$shlibpath_overrides_runpath" = yes ||
9314      test "$enable_shared" = no; then
9315   # Fast installation is not necessary
9316   enable_fast_install=needless
9317 fi
9318
9319
9320
9321
9322
9323
9324   if test "x$enable_dlopen" != xyes; then
9325   enable_dlopen=unknown
9326   enable_dlopen_self=unknown
9327   enable_dlopen_self_static=unknown
9328 else
9329   lt_cv_dlopen=no
9330   lt_cv_dlopen_libs=
9331
9332   case $host_os in
9333   beos*)
9334     lt_cv_dlopen="load_add_on"
9335     lt_cv_dlopen_libs=
9336     lt_cv_dlopen_self=yes
9337     ;;
9338
9339   mingw* | pw32*)
9340     lt_cv_dlopen="LoadLibrary"
9341     lt_cv_dlopen_libs=
9342     ;;
9343
9344   cygwin*)
9345     lt_cv_dlopen="dlopen"
9346     lt_cv_dlopen_libs=
9347     ;;
9348
9349   darwin*)
9350   # if libdl is installed we need to link against it
9351     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9352 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9353 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   ac_check_lib_save_LIBS=$LIBS
9357 LIBS="-ldl  $LIBS"
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h.  */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h.  */
9364
9365 /* Override any gcc2 internal prototype to avoid an error.  */
9366 #ifdef __cplusplus
9367 extern "C"
9368 #endif
9369 /* We use char because int might match the return type of a gcc2
9370    builtin and then its argument prototype would still apply.  */
9371 char dlopen ();
9372 int
9373 main ()
9374 {
9375 dlopen ();
9376   ;
9377   return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382   (eval $ac_link) 2>conftest.er1
9383   ac_status=$?
9384   grep -v '^ *+' conftest.er1 >conftest.err
9385   rm -f conftest.er1
9386   cat conftest.err >&5
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); } &&
9389          { ac_try='test -z "$ac_c_werror_flag"
9390                          || test ! -s conftest.err'
9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392   (eval $ac_try) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; } &&
9396          { ac_try='test -s conftest$ac_exeext'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   ac_cv_lib_dl_dlopen=yes
9403 else
9404   echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 ac_cv_lib_dl_dlopen=no
9408 fi
9409 rm -f conftest.err conftest.$ac_objext \
9410       conftest$ac_exeext conftest.$ac_ext
9411 LIBS=$ac_check_lib_save_LIBS
9412 fi
9413 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9414 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9415 if test $ac_cv_lib_dl_dlopen = yes; then
9416   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9417 else
9418
9419     lt_cv_dlopen="dyld"
9420     lt_cv_dlopen_libs=
9421     lt_cv_dlopen_self=yes
9422
9423 fi
9424
9425     ;;
9426
9427   *)
9428     echo "$as_me:$LINENO: checking for shl_load" >&5
9429 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9430 if test "${ac_cv_func_shl_load+set}" = set; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433   cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9441 #define shl_load innocuous_shl_load
9442
9443 /* System header to define __stub macros and hopefully few prototypes,
9444     which can conflict with char shl_load (); below.
9445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446     <limits.h> exists even on freestanding compilers.  */
9447
9448 #ifdef __STDC__
9449 # include <limits.h>
9450 #else
9451 # include <assert.h>
9452 #endif
9453
9454 #undef shl_load
9455
9456 /* Override any gcc2 internal prototype to avoid an error.  */
9457 #ifdef __cplusplus
9458 extern "C"
9459 {
9460 #endif
9461 /* We use char because int might match the return type of a gcc2
9462    builtin and then its argument prototype would still apply.  */
9463 char shl_load ();
9464 /* The GNU C library defines this for functions which it implements
9465     to always fail with ENOSYS.  Some functions are actually named
9466     something starting with __ and the normal name is an alias.  */
9467 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9468 choke me
9469 #else
9470 char (*f) () = shl_load;
9471 #endif
9472 #ifdef __cplusplus
9473 }
9474 #endif
9475
9476 int
9477 main ()
9478 {
9479 return f != shl_load;
9480   ;
9481   return 0;
9482 }
9483 _ACEOF
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9486   (eval $ac_link) 2>conftest.er1
9487   ac_status=$?
9488   grep -v '^ *+' conftest.er1 >conftest.err
9489   rm -f conftest.er1
9490   cat conftest.err >&5
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); } &&
9493          { ac_try='test -z "$ac_c_werror_flag"
9494                          || test ! -s conftest.err'
9495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496   (eval $ac_try) 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); }; } &&
9500          { ac_try='test -s conftest$ac_exeext'
9501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502   (eval $ac_try) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); }; }; then
9506   ac_cv_func_shl_load=yes
9507 else
9508   echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9510
9511 ac_cv_func_shl_load=no
9512 fi
9513 rm -f conftest.err conftest.$ac_objext \
9514       conftest$ac_exeext conftest.$ac_ext
9515 fi
9516 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9517 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9518 if test $ac_cv_func_shl_load = yes; then
9519   lt_cv_dlopen="shl_load"
9520 else
9521   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9522 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9523 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526   ac_check_lib_save_LIBS=$LIBS
9527 LIBS="-ldld  $LIBS"
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h.  */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h.  */
9534
9535 /* Override any gcc2 internal prototype to avoid an error.  */
9536 #ifdef __cplusplus
9537 extern "C"
9538 #endif
9539 /* We use char because int might match the return type of a gcc2
9540    builtin and then its argument prototype would still apply.  */
9541 char shl_load ();
9542 int
9543 main ()
9544 {
9545 shl_load ();
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552   (eval $ac_link) 2>conftest.er1
9553   ac_status=$?
9554   grep -v '^ *+' conftest.er1 >conftest.err
9555   rm -f conftest.er1
9556   cat conftest.err >&5
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); } &&
9559          { ac_try='test -z "$ac_c_werror_flag"
9560                          || test ! -s conftest.err'
9561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562   (eval $ac_try) 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; } &&
9566          { ac_try='test -s conftest$ac_exeext'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; }; then
9572   ac_cv_lib_dld_shl_load=yes
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 ac_cv_lib_dld_shl_load=no
9578 fi
9579 rm -f conftest.err conftest.$ac_objext \
9580       conftest$ac_exeext conftest.$ac_ext
9581 LIBS=$ac_check_lib_save_LIBS
9582 fi
9583 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9584 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9585 if test $ac_cv_lib_dld_shl_load = yes; then
9586   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9587 else
9588   echo "$as_me:$LINENO: checking for dlopen" >&5
9589 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9590 if test "${ac_cv_func_dlopen+set}" = set; then
9591   echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593   cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h.  */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h.  */
9599 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9601 #define dlopen innocuous_dlopen
9602
9603 /* System header to define __stub macros and hopefully few prototypes,
9604     which can conflict with char dlopen (); below.
9605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9606     <limits.h> exists even on freestanding compilers.  */
9607
9608 #ifdef __STDC__
9609 # include <limits.h>
9610 #else
9611 # include <assert.h>
9612 #endif
9613
9614 #undef dlopen
9615
9616 /* Override any gcc2 internal prototype to avoid an error.  */
9617 #ifdef __cplusplus
9618 extern "C"
9619 {
9620 #endif
9621 /* We use char because int might match the return type of a gcc2
9622    builtin and then its argument prototype would still apply.  */
9623 char dlopen ();
9624 /* The GNU C library defines this for functions which it implements
9625     to always fail with ENOSYS.  Some functions are actually named
9626     something starting with __ and the normal name is an alias.  */
9627 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9628 choke me
9629 #else
9630 char (*f) () = dlopen;
9631 #endif
9632 #ifdef __cplusplus
9633 }
9634 #endif
9635
9636 int
9637 main ()
9638 {
9639 return f != dlopen;
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646   (eval $ac_link) 2>conftest.er1
9647   ac_status=$?
9648   grep -v '^ *+' conftest.er1 >conftest.err
9649   rm -f conftest.er1
9650   cat conftest.err >&5
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); } &&
9653          { ac_try='test -z "$ac_c_werror_flag"
9654                          || test ! -s conftest.err'
9655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656   (eval $ac_try) 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; } &&
9660          { ac_try='test -s conftest$ac_exeext'
9661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662   (eval $ac_try) 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); }; }; then
9666   ac_cv_func_dlopen=yes
9667 else
9668   echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 ac_cv_func_dlopen=no
9672 fi
9673 rm -f conftest.err conftest.$ac_objext \
9674       conftest$ac_exeext conftest.$ac_ext
9675 fi
9676 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9677 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9678 if test $ac_cv_func_dlopen = yes; then
9679   lt_cv_dlopen="dlopen"
9680 else
9681   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9682 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9683 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9684   echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686   ac_check_lib_save_LIBS=$LIBS
9687 LIBS="-ldl  $LIBS"
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694
9695 /* Override any gcc2 internal prototype to avoid an error.  */
9696 #ifdef __cplusplus
9697 extern "C"
9698 #endif
9699 /* We use char because int might match the return type of a gcc2
9700    builtin and then its argument prototype would still apply.  */
9701 char dlopen ();
9702 int
9703 main ()
9704 {
9705 dlopen ();
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712   (eval $ac_link) 2>conftest.er1
9713   ac_status=$?
9714   grep -v '^ *+' conftest.er1 >conftest.err
9715   rm -f conftest.er1
9716   cat conftest.err >&5
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } &&
9719          { ac_try='test -z "$ac_c_werror_flag"
9720                          || test ! -s conftest.err'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; } &&
9726          { ac_try='test -s conftest$ac_exeext'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732   ac_cv_lib_dl_dlopen=yes
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 ac_cv_lib_dl_dlopen=no
9738 fi
9739 rm -f conftest.err conftest.$ac_objext \
9740       conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9742 fi
9743 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9744 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9745 if test $ac_cv_lib_dl_dlopen = yes; then
9746   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9747 else
9748   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9749 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9750 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9751   echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753   ac_check_lib_save_LIBS=$LIBS
9754 LIBS="-lsvld  $LIBS"
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761
9762 /* Override any gcc2 internal prototype to avoid an error.  */
9763 #ifdef __cplusplus
9764 extern "C"
9765 #endif
9766 /* We use char because int might match the return type of a gcc2
9767    builtin and then its argument prototype would still apply.  */
9768 char dlopen ();
9769 int
9770 main ()
9771 {
9772 dlopen ();
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779   (eval $ac_link) 2>conftest.er1
9780   ac_status=$?
9781   grep -v '^ *+' conftest.er1 >conftest.err
9782   rm -f conftest.er1
9783   cat conftest.err >&5
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } &&
9786          { ac_try='test -z "$ac_c_werror_flag"
9787                          || test ! -s conftest.err'
9788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789   (eval $ac_try) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); }; } &&
9793          { ac_try='test -s conftest$ac_exeext'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799   ac_cv_lib_svld_dlopen=yes
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 ac_cv_lib_svld_dlopen=no
9805 fi
9806 rm -f conftest.err conftest.$ac_objext \
9807       conftest$ac_exeext conftest.$ac_ext
9808 LIBS=$ac_check_lib_save_LIBS
9809 fi
9810 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9811 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9812 if test $ac_cv_lib_svld_dlopen = yes; then
9813   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9814 else
9815   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9816 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9817 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   ac_check_lib_save_LIBS=$LIBS
9821 LIBS="-ldld  $LIBS"
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828
9829 /* Override any gcc2 internal prototype to avoid an error.  */
9830 #ifdef __cplusplus
9831 extern "C"
9832 #endif
9833 /* We use char because int might match the return type of a gcc2
9834    builtin and then its argument prototype would still apply.  */
9835 char dld_link ();
9836 int
9837 main ()
9838 {
9839 dld_link ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846   (eval $ac_link) 2>conftest.er1
9847   ac_status=$?
9848   grep -v '^ *+' conftest.er1 >conftest.err
9849   rm -f conftest.er1
9850   cat conftest.err >&5
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); } &&
9853          { ac_try='test -z "$ac_c_werror_flag"
9854                          || test ! -s conftest.err'
9855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856   (eval $ac_try) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; } &&
9860          { ac_try='test -s conftest$ac_exeext'
9861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; }; then
9866   ac_cv_lib_dld_dld_link=yes
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 ac_cv_lib_dld_dld_link=no
9872 fi
9873 rm -f conftest.err conftest.$ac_objext \
9874       conftest$ac_exeext conftest.$ac_ext
9875 LIBS=$ac_check_lib_save_LIBS
9876 fi
9877 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9878 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9879 if test $ac_cv_lib_dld_dld_link = yes; then
9880   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9881 fi
9882
9883
9884 fi
9885
9886
9887 fi
9888
9889
9890 fi
9891
9892
9893 fi
9894
9895
9896 fi
9897
9898     ;;
9899   esac
9900
9901   if test "x$lt_cv_dlopen" != xno; then
9902     enable_dlopen=yes
9903   else
9904     enable_dlopen=no
9905   fi
9906
9907   case $lt_cv_dlopen in
9908   dlopen)
9909     save_CPPFLAGS="$CPPFLAGS"
9910     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9911
9912     save_LDFLAGS="$LDFLAGS"
9913     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9914
9915     save_LIBS="$LIBS"
9916     LIBS="$lt_cv_dlopen_libs $LIBS"
9917
9918     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9919 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9920 if test "${lt_cv_dlopen_self+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923           if test "$cross_compiling" = yes; then :
9924   lt_cv_dlopen_self=cross
9925 else
9926   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9927   lt_status=$lt_dlunknown
9928   cat > conftest.$ac_ext <<_LT_EOF
9929 #line 9929 "configure"
9930 #include "confdefs.h"
9931
9932 #if HAVE_DLFCN_H
9933 #include <dlfcn.h>
9934 #endif
9935
9936 #include <stdio.h>
9937
9938 #ifdef RTLD_GLOBAL
9939 #  define LT_DLGLOBAL           RTLD_GLOBAL
9940 #else
9941 #  ifdef DL_GLOBAL
9942 #    define LT_DLGLOBAL         DL_GLOBAL
9943 #  else
9944 #    define LT_DLGLOBAL         0
9945 #  endif
9946 #endif
9947
9948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9949    find out it does not work in some platform. */
9950 #ifndef LT_DLLAZY_OR_NOW
9951 #  ifdef RTLD_LAZY
9952 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9953 #  else
9954 #    ifdef DL_LAZY
9955 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9956 #    else
9957 #      ifdef RTLD_NOW
9958 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9959 #      else
9960 #        ifdef DL_NOW
9961 #          define LT_DLLAZY_OR_NOW      DL_NOW
9962 #        else
9963 #          define LT_DLLAZY_OR_NOW      0
9964 #        endif
9965 #      endif
9966 #    endif
9967 #  endif
9968 #endif
9969
9970 #ifdef __cplusplus
9971 extern "C" void exit (int);
9972 #endif
9973
9974 void fnord() { int i=42;}
9975 int main ()
9976 {
9977   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9978   int status = $lt_dlunknown;
9979
9980   if (self)
9981     {
9982       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9983       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9984       /* dlclose (self); */
9985     }
9986   else
9987     puts (dlerror ());
9988
9989     exit (status);
9990 }
9991 _LT_EOF
9992   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993   (eval $ac_link) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9997     (./conftest; exit; ) >&5 2>/dev/null
9998     lt_status=$?
9999     case x$lt_status in
10000       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10001       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10002       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10003     esac
10004   else :
10005     # compilation failed
10006     lt_cv_dlopen_self=no
10007   fi
10008 fi
10009 rm -fr conftest*
10010
10011
10012 fi
10013 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10014 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10015
10016     if test "x$lt_cv_dlopen_self" = xyes; then
10017       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10018       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10019 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10020 if test "${lt_cv_dlopen_self_static+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023           if test "$cross_compiling" = yes; then :
10024   lt_cv_dlopen_self_static=cross
10025 else
10026   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10027   lt_status=$lt_dlunknown
10028   cat > conftest.$ac_ext <<_LT_EOF
10029 #line 10029 "configure"
10030 #include "confdefs.h"
10031
10032 #if HAVE_DLFCN_H
10033 #include <dlfcn.h>
10034 #endif
10035
10036 #include <stdio.h>
10037
10038 #ifdef RTLD_GLOBAL
10039 #  define LT_DLGLOBAL           RTLD_GLOBAL
10040 #else
10041 #  ifdef DL_GLOBAL
10042 #    define LT_DLGLOBAL         DL_GLOBAL
10043 #  else
10044 #    define LT_DLGLOBAL         0
10045 #  endif
10046 #endif
10047
10048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10049    find out it does not work in some platform. */
10050 #ifndef LT_DLLAZY_OR_NOW
10051 #  ifdef RTLD_LAZY
10052 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10053 #  else
10054 #    ifdef DL_LAZY
10055 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10056 #    else
10057 #      ifdef RTLD_NOW
10058 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10059 #      else
10060 #        ifdef DL_NOW
10061 #          define LT_DLLAZY_OR_NOW      DL_NOW
10062 #        else
10063 #          define LT_DLLAZY_OR_NOW      0
10064 #        endif
10065 #      endif
10066 #    endif
10067 #  endif
10068 #endif
10069
10070 #ifdef __cplusplus
10071 extern "C" void exit (int);
10072 #endif
10073
10074 void fnord() { int i=42;}
10075 int main ()
10076 {
10077   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10078   int status = $lt_dlunknown;
10079
10080   if (self)
10081     {
10082       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10083       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10084       /* dlclose (self); */
10085     }
10086   else
10087     puts (dlerror ());
10088
10089     exit (status);
10090 }
10091 _LT_EOF
10092   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093   (eval $ac_link) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10097     (./conftest; exit; ) >&5 2>/dev/null
10098     lt_status=$?
10099     case x$lt_status in
10100       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10101       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10102       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10103     esac
10104   else :
10105     # compilation failed
10106     lt_cv_dlopen_self_static=no
10107   fi
10108 fi
10109 rm -fr conftest*
10110
10111
10112 fi
10113 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10114 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10115     fi
10116
10117     CPPFLAGS="$save_CPPFLAGS"
10118     LDFLAGS="$save_LDFLAGS"
10119     LIBS="$save_LIBS"
10120     ;;
10121   esac
10122
10123   case $lt_cv_dlopen_self in
10124   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10125   *) enable_dlopen_self=unknown ;;
10126   esac
10127
10128   case $lt_cv_dlopen_self_static in
10129   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10130   *) enable_dlopen_self_static=unknown ;;
10131   esac
10132 fi
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150 striplib=
10151 old_striplib=
10152 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10153 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10154 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10155   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10156   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10157   echo "$as_me:$LINENO: result: yes" >&5
10158 echo "${ECHO_T}yes" >&6
10159 else
10160 # FIXME - insert some real tests, host_os isn't really good enough
10161   case $host_os in
10162   darwin*)
10163     if test -n "$STRIP" ; then
10164       striplib="$STRIP -x"
10165       old_striplib="$STRIP -S"
10166       echo "$as_me:$LINENO: result: yes" >&5
10167 echo "${ECHO_T}yes" >&6
10168     else
10169       echo "$as_me:$LINENO: result: no" >&5
10170 echo "${ECHO_T}no" >&6
10171     fi
10172     ;;
10173   *)
10174     echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6
10176     ;;
10177   esac
10178 fi
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191   # Report which library types will actually be built
10192   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10193 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10194   echo "$as_me:$LINENO: result: $can_build_shared" >&5
10195 echo "${ECHO_T}$can_build_shared" >&6
10196
10197   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10198 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10199   test "$can_build_shared" = "no" && enable_shared=no
10200
10201   # On AIX, shared libraries and static libraries use the same namespace, and
10202   # are all built from PIC.
10203   case $host_os in
10204   aix3*)
10205     test "$enable_shared" = yes && enable_static=no
10206     if test -n "$RANLIB"; then
10207       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10208       postinstall_cmds='$RANLIB $lib'
10209     fi
10210     ;;
10211
10212   aix4* | aix5*)
10213     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10214       test "$enable_shared" = yes && enable_static=no
10215     fi
10216     ;;
10217   esac
10218   echo "$as_me:$LINENO: result: $enable_shared" >&5
10219 echo "${ECHO_T}$enable_shared" >&6
10220
10221   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10222 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10223   # Make sure either enable_shared or enable_static is yes.
10224   test "$enable_shared" = yes || enable_static=yes
10225   echo "$as_me:$LINENO: result: $enable_static" >&5
10226 echo "${ECHO_T}$enable_static" >&6
10227
10228
10229
10230
10231 fi
10232 ac_ext=c
10233 ac_cpp='$CPP $CPPFLAGS'
10234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10237
10238 CC="$lt_save_CC"
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252                   ac_config_commands="$ac_config_commands libtool"
10253
10254
10255
10256
10257 # Only expand once:
10258
10259
10260
10261 # Check whether --enable-targets or --disable-targets was given.
10262 if test "${enable_targets+set}" = set; then
10263   enableval="$enable_targets"
10264   case "${enableval}" in
10265   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10266 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10267    { (exit 1); exit 1; }; }
10268             ;;
10269   no)       enable_targets= ;;
10270   *)        enable_targets=$enableval ;;
10271 esac
10272 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10273 if test "${enable_commonbfdlib+set}" = set; then
10274   enableval="$enable_commonbfdlib"
10275   case "${enableval}" in
10276   yes) commonbfdlib=true ;;
10277   no)  commonbfdlib=false ;;
10278   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10279 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10280    { (exit 1); exit 1; }; } ;;
10281 esac
10282 fi;
10283
10284 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10285
10286 # Check whether --enable-werror or --disable-werror was given.
10287 if test "${enable_werror+set}" = set; then
10288   enableval="$enable_werror"
10289   case "${enableval}" in
10290      yes | y) ERROR_ON_WARNING="yes" ;;
10291      no | n)  ERROR_ON_WARNING="no" ;;
10292      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10293 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10294    { (exit 1); exit 1; }; } ;;
10295    esac
10296 fi;
10297
10298 # Enable -Werror by default when using gcc
10299 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10300     ERROR_ON_WARNING=yes
10301 fi
10302
10303 NO_WERROR=
10304 if test "${ERROR_ON_WARNING}" = yes ; then
10305     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10306     NO_WERROR="-Wno-error"
10307 fi
10308
10309 if test "${GCC}" = yes ; then
10310   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10311 fi
10312
10313 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10314 if test "${enable_build_warnings+set}" = set; then
10315   enableval="$enable_build_warnings"
10316   case "${enableval}" in
10317   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10318   no)   if test "${GCC}" = yes ; then
10319           WARN_CFLAGS="-w"
10320         fi;;
10321   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10322         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10323   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10324         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10325   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10326 esac
10327 fi;
10328
10329 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10330   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10331 fi
10332
10333
10334
10335
10336
10337           ac_config_headers="$ac_config_headers config.h:config.in"
10338
10339
10340 if test -z "$target" ; then
10341     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10342 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10343    { (exit 1); exit 1; }; }
10344 fi
10345 if test -z "$host" ; then
10346     { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10347 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10348    { (exit 1); exit 1; }; }
10349 fi
10350
10351 for ac_prog in 'bison -y' byacc
10352 do
10353   # Extract the first word of "$ac_prog", so it can be a program name with args.
10354 set dummy $ac_prog; ac_word=$2
10355 echo "$as_me:$LINENO: checking for $ac_word" >&5
10356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10357 if test "${ac_cv_prog_YACC+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   if test -n "$YACC"; then
10361   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10362 else
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10365 do
10366   IFS=$as_save_IFS
10367   test -z "$as_dir" && as_dir=.
10368   for ac_exec_ext in '' $ac_executable_extensions; do
10369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370     ac_cv_prog_YACC="$ac_prog"
10371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10372     break 2
10373   fi
10374 done
10375 done
10376
10377 fi
10378 fi
10379 YACC=$ac_cv_prog_YACC
10380 if test -n "$YACC"; then
10381   echo "$as_me:$LINENO: result: $YACC" >&5
10382 echo "${ECHO_T}$YACC" >&6
10383 else
10384   echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6
10386 fi
10387
10388   test -n "$YACC" && break
10389 done
10390 test -n "$YACC" || YACC="yacc"
10391
10392 for ac_prog in flex lex
10393 do
10394   # Extract the first word of "$ac_prog", so it can be a program name with args.
10395 set dummy $ac_prog; ac_word=$2
10396 echo "$as_me:$LINENO: checking for $ac_word" >&5
10397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10398 if test "${ac_cv_prog_LEX+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   if test -n "$LEX"; then
10402   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10403 else
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10406 do
10407   IFS=$as_save_IFS
10408   test -z "$as_dir" && as_dir=.
10409   for ac_exec_ext in '' $ac_executable_extensions; do
10410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411     ac_cv_prog_LEX="$ac_prog"
10412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10413     break 2
10414   fi
10415 done
10416 done
10417
10418 fi
10419 fi
10420 LEX=$ac_cv_prog_LEX
10421 if test -n "$LEX"; then
10422   echo "$as_me:$LINENO: result: $LEX" >&5
10423 echo "${ECHO_T}$LEX" >&6
10424 else
10425   echo "$as_me:$LINENO: result: no" >&5
10426 echo "${ECHO_T}no" >&6
10427 fi
10428
10429   test -n "$LEX" && break
10430 done
10431 test -n "$LEX" || LEX=":"
10432
10433 if test -z "$LEXLIB"
10434 then
10435   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10436 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10437 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10438   echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440   ac_check_lib_save_LIBS=$LIBS
10441 LIBS="-lfl  $LIBS"
10442 cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h.  */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h.  */
10448
10449 /* Override any gcc2 internal prototype to avoid an error.  */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 /* We use char because int might match the return type of a gcc2
10454    builtin and then its argument prototype would still apply.  */
10455 char yywrap ();
10456 int
10457 main ()
10458 {
10459 yywrap ();
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466   (eval $ac_link) 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } &&
10473          { ac_try='test -z "$ac_c_werror_flag"
10474                          || test ! -s conftest.err'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; } &&
10480          { ac_try='test -s conftest$ac_exeext'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; }; then
10486   ac_cv_lib_fl_yywrap=yes
10487 else
10488   echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 ac_cv_lib_fl_yywrap=no
10492 fi
10493 rm -f conftest.err conftest.$ac_objext \
10494       conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10496 fi
10497 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10498 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10499 if test $ac_cv_lib_fl_yywrap = yes; then
10500   LEXLIB="-lfl"
10501 else
10502   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10503 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10504 if test "${ac_cv_lib_l_yywrap+set}" = set; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   ac_check_lib_save_LIBS=$LIBS
10508 LIBS="-ll  $LIBS"
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515
10516 /* Override any gcc2 internal prototype to avoid an error.  */
10517 #ifdef __cplusplus
10518 extern "C"
10519 #endif
10520 /* We use char because int might match the return type of a gcc2
10521    builtin and then its argument prototype would still apply.  */
10522 char yywrap ();
10523 int
10524 main ()
10525 {
10526 yywrap ();
10527   ;
10528   return 0;
10529 }
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533   (eval $ac_link) 2>conftest.er1
10534   ac_status=$?
10535   grep -v '^ *+' conftest.er1 >conftest.err
10536   rm -f conftest.er1
10537   cat conftest.err >&5
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); } &&
10540          { ac_try='test -z "$ac_c_werror_flag"
10541                          || test ! -s conftest.err'
10542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543   (eval $ac_try) 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); }; } &&
10547          { ac_try='test -s conftest$ac_exeext'
10548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549   (eval $ac_try) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; }; then
10553   ac_cv_lib_l_yywrap=yes
10554 else
10555   echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558 ac_cv_lib_l_yywrap=no
10559 fi
10560 rm -f conftest.err conftest.$ac_objext \
10561       conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10563 fi
10564 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10565 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10566 if test $ac_cv_lib_l_yywrap = yes; then
10567   LEXLIB="-ll"
10568 fi
10569
10570 fi
10571
10572 fi
10573
10574 if test "x$LEX" != "x:"; then
10575   echo "$as_me:$LINENO: checking lex output file root" >&5
10576 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10577 if test "${ac_cv_prog_lex_root+set}" = set; then
10578   echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580   # The minimal lex program is just a single line: %%.  But some broken lexes
10581 # (Solaris, I think it was) want two %% lines, so accommodate them.
10582 cat >conftest.l <<_ACEOF
10583 %%
10584 %%
10585 _ACEOF
10586 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10587   (eval $LEX conftest.l) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }
10591 if test -f lex.yy.c; then
10592   ac_cv_prog_lex_root=lex.yy
10593 elif test -f lexyy.c; then
10594   ac_cv_prog_lex_root=lexyy
10595 else
10596   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10597 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10598    { (exit 1); exit 1; }; }
10599 fi
10600 fi
10601 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10602 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10603 rm -f conftest.l
10604 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10605
10606 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10607 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10608 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10609   echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611   # POSIX says lex can declare yytext either as a pointer or an array; the
10612 # default is implementation-dependent. Figure out which it is, since
10613 # not all implementations provide the %pointer and %array declarations.
10614 ac_cv_prog_lex_yytext_pointer=no
10615 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10616 ac_save_LIBS=$LIBS
10617 LIBS="$LIBS $LEXLIB"
10618 cat >conftest.$ac_ext <<_ACEOF
10619 `cat $LEX_OUTPUT_ROOT.c`
10620 _ACEOF
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623   (eval $ac_link) 2>conftest.er1
10624   ac_status=$?
10625   grep -v '^ *+' conftest.er1 >conftest.err
10626   rm -f conftest.er1
10627   cat conftest.err >&5
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } &&
10630          { ac_try='test -z "$ac_c_werror_flag"
10631                          || test ! -s conftest.err'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; } &&
10637          { ac_try='test -s conftest$ac_exeext'
10638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639   (eval $ac_try) 2>&5
10640   ac_status=$?
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); }; }; then
10643   ac_cv_prog_lex_yytext_pointer=yes
10644 else
10645   echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10647
10648 fi
10649 rm -f conftest.err conftest.$ac_objext \
10650       conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_save_LIBS
10652 rm -f "${LEX_OUTPUT_ROOT}.c"
10653
10654 fi
10655 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10656 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10657 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10658
10659 cat >>confdefs.h <<\_ACEOF
10660 #define YYTEXT_POINTER 1
10661 _ACEOF
10662
10663 fi
10664
10665 fi
10666 if test "$LEX" = :; then
10667   LEX=${am_missing_run}flex
10668 fi
10669
10670 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
10671 # If we haven't got the data from the intl directory,
10672 # assume NLS is disabled.
10673 USE_NLS=no
10674 LIBINTL=
10675 LIBINTL_DEP=
10676 INCINTL=
10677 XGETTEXT=
10678 GMSGFMT=
10679 POSUB=
10680
10681 if test -f  ../intl/config.intl; then
10682   .  ../intl/config.intl
10683 fi
10684 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10685 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10686 if test x"$USE_NLS" != xyes; then
10687   echo "$as_me:$LINENO: result: no" >&5
10688 echo "${ECHO_T}no" >&6
10689 else
10690   echo "$as_me:$LINENO: result: yes" >&5
10691 echo "${ECHO_T}yes" >&6
10692
10693 cat >>confdefs.h <<\_ACEOF
10694 #define ENABLE_NLS 1
10695 _ACEOF
10696
10697
10698   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10699 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10700   # Look for .po and .gmo files in the source directory.
10701   CATALOGS=
10702   XLINGUAS=
10703   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10704     # If there aren't any .gmo files the shell will give us the
10705     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10706     # weeded out.
10707     case "$cat" in *\**)
10708       continue;;
10709     esac
10710     # The quadruple backslash is collapsed to a double backslash
10711     # by the backticks, then collapsed again by the double quotes,
10712     # leaving us with one backslash in the sed expression (right
10713     # before the dot that mustn't act as a wildcard).
10714     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10715     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10716     # The user is allowed to set LINGUAS to a list of languages to
10717     # install catalogs for.  If it's empty that means "all of them."
10718     if test "x$LINGUAS" = x; then
10719       CATALOGS="$CATALOGS $cat"
10720       XLINGUAS="$XLINGUAS $lang"
10721     else
10722       case "$LINGUAS" in *$lang*)
10723         CATALOGS="$CATALOGS $cat"
10724         XLINGUAS="$XLINGUAS $lang"
10725         ;;
10726       esac
10727     fi
10728   done
10729   LINGUAS="$XLINGUAS"
10730   echo "$as_me:$LINENO: result: $LINGUAS" >&5
10731 echo "${ECHO_T}$LINGUAS" >&6
10732
10733
10734     DATADIRNAME=share
10735
10736   INSTOBJEXT=.mo
10737
10738   GENCAT=gencat
10739
10740   CATOBJEXT=.gmo
10741
10742 fi
10743
10744         MKINSTALLDIRS=
10745   if test -n "$ac_aux_dir"; then
10746     case "$ac_aux_dir" in
10747       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10748       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10749     esac
10750   fi
10751   if test -z "$MKINSTALLDIRS"; then
10752     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10753   fi
10754
10755
10756
10757   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10758 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10759     # Check whether --enable-nls or --disable-nls was given.
10760 if test "${enable_nls+set}" = set; then
10761   enableval="$enable_nls"
10762   USE_NLS=$enableval
10763 else
10764   USE_NLS=yes
10765 fi;
10766   echo "$as_me:$LINENO: result: $USE_NLS" >&5
10767 echo "${ECHO_T}$USE_NLS" >&6
10768
10769
10770
10771
10772
10773
10774 # Prepare PATH_SEPARATOR.
10775 # The user is always right.
10776 if test "${PATH_SEPARATOR+set}" != set; then
10777   echo "#! /bin/sh" >conf$$.sh
10778   echo  "exit 0"   >>conf$$.sh
10779   chmod +x conf$$.sh
10780   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10781     PATH_SEPARATOR=';'
10782   else
10783     PATH_SEPARATOR=:
10784   fi
10785   rm -f conf$$.sh
10786 fi
10787
10788 # Find out how to test for executable files. Don't use a zero-byte file,
10789 # as systems may use methods other than mode bits to determine executability.
10790 cat >conf$$.file <<_ASEOF
10791 #! /bin/sh
10792 exit 0
10793 _ASEOF
10794 chmod +x conf$$.file
10795 if test -x conf$$.file >/dev/null 2>&1; then
10796   ac_executable_p="test -x"
10797 else
10798   ac_executable_p="test -f"
10799 fi
10800 rm -f conf$$.file
10801
10802 # Extract the first word of "msgfmt", so it can be a program name with args.
10803 set dummy msgfmt; ac_word=$2
10804 echo "$as_me:$LINENO: checking for $ac_word" >&5
10805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10806 if test "${ac_cv_path_MSGFMT+set}" = set; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809   case "$MSGFMT" in
10810   [\\/]* | ?:[\\/]*)
10811     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10812     ;;
10813   *)
10814     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10815     for ac_dir in $PATH; do
10816       IFS="$ac_save_IFS"
10817       test -z "$ac_dir" && ac_dir=.
10818       for ac_exec_ext in '' $ac_executable_extensions; do
10819         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10820           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10821      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10822             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10823             break 2
10824           fi
10825         fi
10826       done
10827     done
10828     IFS="$ac_save_IFS"
10829   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10830     ;;
10831 esac
10832 fi
10833 MSGFMT="$ac_cv_path_MSGFMT"
10834 if test "$MSGFMT" != ":"; then
10835   echo "$as_me:$LINENO: result: $MSGFMT" >&5
10836 echo "${ECHO_T}$MSGFMT" >&6
10837 else
10838   echo "$as_me:$LINENO: result: no" >&5
10839 echo "${ECHO_T}no" >&6
10840 fi
10841
10842   # Extract the first word of "gmsgfmt", so it can be a program name with args.
10843 set dummy gmsgfmt; ac_word=$2
10844 echo "$as_me:$LINENO: checking for $ac_word" >&5
10845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10846 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10847   echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849   case $GMSGFMT in
10850   [\\/]* | ?:[\\/]*)
10851   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10852   ;;
10853   *)
10854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH
10856 do
10857   IFS=$as_save_IFS
10858   test -z "$as_dir" && as_dir=.
10859   for ac_exec_ext in '' $ac_executable_extensions; do
10860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10861     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10863     break 2
10864   fi
10865 done
10866 done
10867
10868   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10869   ;;
10870 esac
10871 fi
10872 GMSGFMT=$ac_cv_path_GMSGFMT
10873
10874 if test -n "$GMSGFMT"; then
10875   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10876 echo "${ECHO_T}$GMSGFMT" >&6
10877 else
10878   echo "$as_me:$LINENO: result: no" >&5
10879 echo "${ECHO_T}no" >&6
10880 fi
10881
10882
10883
10884 # Prepare PATH_SEPARATOR.
10885 # The user is always right.
10886 if test "${PATH_SEPARATOR+set}" != set; then
10887   echo "#! /bin/sh" >conf$$.sh
10888   echo  "exit 0"   >>conf$$.sh
10889   chmod +x conf$$.sh
10890   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10891     PATH_SEPARATOR=';'
10892   else
10893     PATH_SEPARATOR=:
10894   fi
10895   rm -f conf$$.sh
10896 fi
10897
10898 # Find out how to test for executable files. Don't use a zero-byte file,
10899 # as systems may use methods other than mode bits to determine executability.
10900 cat >conf$$.file <<_ASEOF
10901 #! /bin/sh
10902 exit 0
10903 _ASEOF
10904 chmod +x conf$$.file
10905 if test -x conf$$.file >/dev/null 2>&1; then
10906   ac_executable_p="test -x"
10907 else
10908   ac_executable_p="test -f"
10909 fi
10910 rm -f conf$$.file
10911
10912 # Extract the first word of "xgettext", so it can be a program name with args.
10913 set dummy xgettext; ac_word=$2
10914 echo "$as_me:$LINENO: checking for $ac_word" >&5
10915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10916 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10917   echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919   case "$XGETTEXT" in
10920   [\\/]* | ?:[\\/]*)
10921     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10922     ;;
10923   *)
10924     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10925     for ac_dir in $PATH; do
10926       IFS="$ac_save_IFS"
10927       test -z "$ac_dir" && ac_dir=.
10928       for ac_exec_ext in '' $ac_executable_extensions; do
10929         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10930           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10931      (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
10932             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10933             break 2
10934           fi
10935         fi
10936       done
10937     done
10938     IFS="$ac_save_IFS"
10939   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10940     ;;
10941 esac
10942 fi
10943 XGETTEXT="$ac_cv_path_XGETTEXT"
10944 if test "$XGETTEXT" != ":"; then
10945   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10946 echo "${ECHO_T}$XGETTEXT" >&6
10947 else
10948   echo "$as_me:$LINENO: result: no" >&5
10949 echo "${ECHO_T}no" >&6
10950 fi
10951
10952     rm -f messages.po
10953
10954
10955 # Prepare PATH_SEPARATOR.
10956 # The user is always right.
10957 if test "${PATH_SEPARATOR+set}" != set; then
10958   echo "#! /bin/sh" >conf$$.sh
10959   echo  "exit 0"   >>conf$$.sh
10960   chmod +x conf$$.sh
10961   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10962     PATH_SEPARATOR=';'
10963   else
10964     PATH_SEPARATOR=:
10965   fi
10966   rm -f conf$$.sh
10967 fi
10968
10969 # Find out how to test for executable files. Don't use a zero-byte file,
10970 # as systems may use methods other than mode bits to determine executability.
10971 cat >conf$$.file <<_ASEOF
10972 #! /bin/sh
10973 exit 0
10974 _ASEOF
10975 chmod +x conf$$.file
10976 if test -x conf$$.file >/dev/null 2>&1; then
10977   ac_executable_p="test -x"
10978 else
10979   ac_executable_p="test -f"
10980 fi
10981 rm -f conf$$.file
10982
10983 # Extract the first word of "msgmerge", so it can be a program name with args.
10984 set dummy msgmerge; ac_word=$2
10985 echo "$as_me:$LINENO: checking for $ac_word" >&5
10986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10987 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10988   echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990   case "$MSGMERGE" in
10991   [\\/]* | ?:[\\/]*)
10992     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10993     ;;
10994   *)
10995     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10996     for ac_dir in $PATH; do
10997       IFS="$ac_save_IFS"
10998       test -z "$ac_dir" && ac_dir=.
10999       for ac_exec_ext in '' $ac_executable_extensions; do
11000         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11001           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11002             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11003             break 2
11004           fi
11005         fi
11006       done
11007     done
11008     IFS="$ac_save_IFS"
11009   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11010     ;;
11011 esac
11012 fi
11013 MSGMERGE="$ac_cv_path_MSGMERGE"
11014 if test "$MSGMERGE" != ":"; then
11015   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11016 echo "${ECHO_T}$MSGMERGE" >&6
11017 else
11018   echo "$as_me:$LINENO: result: no" >&5
11019 echo "${ECHO_T}no" >&6
11020 fi
11021
11022
11023       if test "$GMSGFMT" != ":"; then
11024             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11025        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11026       : ;
11027     else
11028       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11029       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11030 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11031       GMSGFMT=":"
11032     fi
11033   fi
11034
11035       if test "$XGETTEXT" != ":"; then
11036             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11037        (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
11038       : ;
11039     else
11040       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11041 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11042       XGETTEXT=":"
11043     fi
11044         rm -f messages.po
11045   fi
11046
11047             ac_config_commands="$ac_config_commands default-1"
11048
11049
11050
11051 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11052 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11053     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11054 if test "${enable_maintainer_mode+set}" = set; then
11055   enableval="$enable_maintainer_mode"
11056   USE_MAINTAINER_MODE=$enableval
11057 else
11058   USE_MAINTAINER_MODE=no
11059 fi;
11060   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11061 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11062
11063
11064 if test $USE_MAINTAINER_MODE = yes; then
11065   MAINTAINER_MODE_TRUE=
11066   MAINTAINER_MODE_FALSE='#'
11067 else
11068   MAINTAINER_MODE_TRUE='#'
11069   MAINTAINER_MODE_FALSE=
11070 fi
11071
11072   MAINT=$MAINTAINER_MODE_TRUE
11073
11074
11075
11076
11077 if false; then
11078   GENINSRC_NEVER_TRUE=
11079   GENINSRC_NEVER_FALSE='#'
11080 else
11081   GENINSRC_NEVER_TRUE='#'
11082   GENINSRC_NEVER_FALSE=
11083 fi
11084
11085
11086 if test -n "$EXEEXT"; then
11087
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_EXECUTABLE_SUFFIX 1
11090 _ACEOF
11091
11092 fi
11093
11094 cat >>confdefs.h <<_ACEOF
11095 #define EXECUTABLE_SUFFIX "${EXEEXT}"
11096 _ACEOF
11097
11098
11099 # host-specific stuff:
11100
11101 HDEFINES=
11102
11103 . ${srcdir}/../bfd/configure.host
11104
11105
11106 AR=${AR-ar}
11107
11108 if test -n "$ac_tool_prefix"; then
11109   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11111 echo "$as_me:$LINENO: checking for $ac_word" >&5
11112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11113 if test "${ac_cv_prog_RANLIB+set}" = set; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   if test -n "$RANLIB"; then
11117   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11118 else
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120 for as_dir in $PATH
11121 do
11122   IFS=$as_save_IFS
11123   test -z "$as_dir" && as_dir=.
11124   for ac_exec_ext in '' $ac_executable_extensions; do
11125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11126     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11128     break 2
11129   fi
11130 done
11131 done
11132
11133 fi
11134 fi
11135 RANLIB=$ac_cv_prog_RANLIB
11136 if test -n "$RANLIB"; then
11137   echo "$as_me:$LINENO: result: $RANLIB" >&5
11138 echo "${ECHO_T}$RANLIB" >&6
11139 else
11140   echo "$as_me:$LINENO: result: no" >&5
11141 echo "${ECHO_T}no" >&6
11142 fi
11143
11144 fi
11145 if test -z "$ac_cv_prog_RANLIB"; then
11146   ac_ct_RANLIB=$RANLIB
11147   # Extract the first word of "ranlib", so it can be a program name with args.
11148 set dummy ranlib; ac_word=$2
11149 echo "$as_me:$LINENO: checking for $ac_word" >&5
11150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11151 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   if test -n "$ac_ct_RANLIB"; then
11155   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11156 else
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11159 do
11160   IFS=$as_save_IFS
11161   test -z "$as_dir" && as_dir=.
11162   for ac_exec_ext in '' $ac_executable_extensions; do
11163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11164     ac_cv_prog_ac_ct_RANLIB="ranlib"
11165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11166     break 2
11167   fi
11168 done
11169 done
11170
11171   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11172 fi
11173 fi
11174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11175 if test -n "$ac_ct_RANLIB"; then
11176   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11177 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11178 else
11179   echo "$as_me:$LINENO: result: no" >&5
11180 echo "${ECHO_T}no" >&6
11181 fi
11182
11183   RANLIB=$ac_ct_RANLIB
11184 else
11185   RANLIB="$ac_cv_prog_RANLIB"
11186 fi
11187
11188 # Find a good install program.  We prefer a C program (faster),
11189 # so one script is as good as another.  But avoid the broken or
11190 # incompatible versions:
11191 # SysV /etc/install, /usr/sbin/install
11192 # SunOS /usr/etc/install
11193 # IRIX /sbin/install
11194 # AIX /bin/install
11195 # AmigaOS /C/install, which installs bootblocks on floppy discs
11196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11199 # OS/2's system install, which has a completely different semantic
11200 # ./install, which can be erroneously created by make from ./install.sh.
11201 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11202 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11203 if test -z "$INSTALL"; then
11204 if test "${ac_cv_path_install+set}" = set; then
11205   echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11209 do
11210   IFS=$as_save_IFS
11211   test -z "$as_dir" && as_dir=.
11212   # Account for people who put trailing slashes in PATH elements.
11213 case $as_dir/ in
11214   ./ | .// | /cC/* | \
11215   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11216   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11217   /usr/ucb/* ) ;;
11218   *)
11219     # OSF1 and SCO ODT 3.0 have their own names for install.
11220     # Don't use installbsd from OSF since it installs stuff as root
11221     # by default.
11222     for ac_prog in ginstall scoinst install; do
11223       for ac_exec_ext in '' $ac_executable_extensions; do
11224         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11225           if test $ac_prog = install &&
11226             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11227             # AIX install.  It has an incompatible calling convention.
11228             :
11229           elif test $ac_prog = install &&
11230             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11231             # program-specific install script used by HP pwplus--don't use.
11232             :
11233           else
11234             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11235             break 3
11236           fi
11237         fi
11238       done
11239     done
11240     ;;
11241 esac
11242 done
11243
11244
11245 fi
11246   if test "${ac_cv_path_install+set}" = set; then
11247     INSTALL=$ac_cv_path_install
11248   else
11249     # As a last resort, use the slow shell script.  We don't cache a
11250     # path for INSTALL within a source directory, because that will
11251     # break other packages using the cache if that directory is
11252     # removed, or if the path is relative.
11253     INSTALL=$ac_install_sh
11254   fi
11255 fi
11256 echo "$as_me:$LINENO: result: $INSTALL" >&5
11257 echo "${ECHO_T}$INSTALL" >&6
11258
11259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11260 # It thinks the first close brace ends the variable substitution.
11261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11262
11263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11264
11265 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11266
11267
11268 # Put a plausible default for CC_FOR_BUILD in Makefile.
11269 if test -z "$CC_FOR_BUILD"; then
11270   if test "x$cross_compiling" = "xno"; then
11271     CC_FOR_BUILD='$(CC)'
11272   else
11273     CC_FOR_BUILD=gcc
11274   fi
11275 fi
11276
11277 # Also set EXEEXT_FOR_BUILD.
11278 if test "x$cross_compiling" = "xno"; then
11279   EXEEXT_FOR_BUILD='$(EXEEXT)'
11280 else
11281   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11282 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11283 if test "${bfd_cv_build_exeext+set}" = set; then
11284   echo $ECHO_N "(cached) $ECHO_C" >&6
11285 else
11286   rm -f conftest*
11287      echo 'int main () { return 0; }' > conftest.c
11288      bfd_cv_build_exeext=
11289      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11290      for file in conftest.*; do
11291        case $file in
11292        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11293        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11294        esac
11295      done
11296      rm -f conftest*
11297      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11298 fi
11299 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11300 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11301   EXEEXT_FOR_BUILD=""
11302   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11303 fi
11304
11305
11306 DEMANGLER_NAME=c++filt
11307 case "${host}" in
11308   *-*-go32* | *-*-msdos*)
11309     DEMANGLER_NAME=cxxfilt
11310 esac
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
11322 do
11323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325   echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 fi
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332 else
11333   # Is the header compilable?
11334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h.  */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h.  */
11342 $ac_includes_default
11343 #include <$ac_header>
11344 _ACEOF
11345 rm -f conftest.$ac_objext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347   (eval $ac_compile) 2>conftest.er1
11348   ac_status=$?
11349   grep -v '^ *+' conftest.er1 >conftest.err
11350   rm -f conftest.er1
11351   cat conftest.err >&5
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); } &&
11354          { ac_try='test -z "$ac_c_werror_flag"
11355                          || test ! -s conftest.err'
11356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357   (eval $ac_try) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; } &&
11361          { ac_try='test -s conftest.$ac_objext'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; }; then
11367   ac_header_compiler=yes
11368 else
11369   echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 ac_header_compiler=no
11373 fi
11374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11376 echo "${ECHO_T}$ac_header_compiler" >&6
11377
11378 # Is the header present?
11379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h.  */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h.  */
11387 #include <$ac_header>
11388 _ACEOF
11389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } >/dev/null; then
11397   if test -s conftest.err; then
11398     ac_cpp_err=$ac_c_preproc_warn_flag
11399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400   else
11401     ac_cpp_err=
11402   fi
11403 else
11404   ac_cpp_err=yes
11405 fi
11406 if test -z "$ac_cpp_err"; then
11407   ac_header_preproc=yes
11408 else
11409   echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412   ac_header_preproc=no
11413 fi
11414 rm -f conftest.err conftest.$ac_ext
11415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 echo "${ECHO_T}$ac_header_preproc" >&6
11417
11418 # So?  What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420   yes:no: )
11421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425     ac_header_preproc=yes
11426     ;;
11427   no:yes:* )
11428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440     (
11441       cat <<\_ASBOX
11442 ## ------------------------------------------ ##
11443 ## Report this to the AC_PACKAGE_NAME lists.  ##
11444 ## ------------------------------------------ ##
11445 _ASBOX
11446     ) |
11447       sed "s/^/$as_me: WARNING:     /" >&2
11448     ;;
11449 esac
11450 echo "$as_me:$LINENO: checking for $ac_header" >&5
11451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   eval "$as_ac_Header=\$ac_header_preproc"
11456 fi
11457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11459
11460 fi
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462   cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464 _ACEOF
11465
11466 fi
11467
11468 done
11469
11470 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11471 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11472 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475   cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h.  */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h.  */
11481 #include <sys/types.h>
11482 #include <sys/wait.h>
11483 #ifndef WEXITSTATUS
11484 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11485 #endif
11486 #ifndef WIFEXITED
11487 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11488 #endif
11489
11490 int
11491 main ()
11492 {
11493   int s;
11494   wait (&s);
11495   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502   (eval $ac_compile) 2>conftest.er1
11503   ac_status=$?
11504   grep -v '^ *+' conftest.er1 >conftest.err
11505   rm -f conftest.er1
11506   cat conftest.err >&5
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); } &&
11509          { ac_try='test -z "$ac_c_werror_flag"
11510                          || test ! -s conftest.err'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; } &&
11516          { ac_try='test -s conftest.$ac_objext'
11517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518   (eval $ac_try) 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; }; then
11522   ac_cv_header_sys_wait_h=yes
11523 else
11524   echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527 ac_cv_header_sys_wait_h=no
11528 fi
11529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11530 fi
11531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11532 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11533 if test $ac_cv_header_sys_wait_h = yes; then
11534
11535 cat >>confdefs.h <<\_ACEOF
11536 #define HAVE_SYS_WAIT_H 1
11537 _ACEOF
11538
11539 fi
11540
11541 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11542 # for constant arguments.  Useless!
11543 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11544 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11545 if test "${ac_cv_working_alloca_h+set}" = set; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554 #include <alloca.h>
11555 int
11556 main ()
11557 {
11558 char *p = (char *) alloca (2 * sizeof (int));
11559   ;
11560   return 0;
11561 }
11562 _ACEOF
11563 rm -f conftest.$ac_objext conftest$ac_exeext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565   (eval $ac_link) 2>conftest.er1
11566   ac_status=$?
11567   grep -v '^ *+' conftest.er1 >conftest.err
11568   rm -f conftest.er1
11569   cat conftest.err >&5
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); } &&
11572          { ac_try='test -z "$ac_c_werror_flag"
11573                          || test ! -s conftest.err'
11574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575   (eval $ac_try) 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); }; } &&
11579          { ac_try='test -s conftest$ac_exeext'
11580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581   (eval $ac_try) 2>&5
11582   ac_status=$?
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); }; }; then
11585   ac_cv_working_alloca_h=yes
11586 else
11587   echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_cv_working_alloca_h=no
11591 fi
11592 rm -f conftest.err conftest.$ac_objext \
11593       conftest$ac_exeext conftest.$ac_ext
11594 fi
11595 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11596 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11597 if test $ac_cv_working_alloca_h = yes; then
11598
11599 cat >>confdefs.h <<\_ACEOF
11600 #define HAVE_ALLOCA_H 1
11601 _ACEOF
11602
11603 fi
11604
11605 echo "$as_me:$LINENO: checking for alloca" >&5
11606 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11607 if test "${ac_cv_func_alloca_works+set}" = set; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610   cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h.  */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h.  */
11616 #ifdef __GNUC__
11617 # define alloca __builtin_alloca
11618 #else
11619 # ifdef _MSC_VER
11620 #  include <malloc.h>
11621 #  define alloca _alloca
11622 # else
11623 #  if HAVE_ALLOCA_H
11624 #   include <alloca.h>
11625 #  else
11626 #   ifdef _AIX
11627  #pragma alloca
11628 #   else
11629 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11630 char *alloca ();
11631 #    endif
11632 #   endif
11633 #  endif
11634 # endif
11635 #endif
11636
11637 int
11638 main ()
11639 {
11640 char *p = (char *) alloca (1);
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647   (eval $ac_link) 2>conftest.er1
11648   ac_status=$?
11649   grep -v '^ *+' conftest.er1 >conftest.err
11650   rm -f conftest.er1
11651   cat conftest.err >&5
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } &&
11654          { ac_try='test -z "$ac_c_werror_flag"
11655                          || test ! -s conftest.err'
11656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657   (eval $ac_try) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; } &&
11661          { ac_try='test -s conftest$ac_exeext'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; }; then
11667   ac_cv_func_alloca_works=yes
11668 else
11669   echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 ac_cv_func_alloca_works=no
11673 fi
11674 rm -f conftest.err conftest.$ac_objext \
11675       conftest$ac_exeext conftest.$ac_ext
11676 fi
11677 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11678 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11679
11680 if test $ac_cv_func_alloca_works = yes; then
11681
11682 cat >>confdefs.h <<\_ACEOF
11683 #define HAVE_ALLOCA 1
11684 _ACEOF
11685
11686 else
11687   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11688 # that cause trouble.  Some versions do not even contain alloca or
11689 # contain a buggy version.  If you still want to use their alloca,
11690 # use ar to extract alloca.o from them instead of compiling alloca.c.
11691
11692 ALLOCA=alloca.$ac_objext
11693
11694 cat >>confdefs.h <<\_ACEOF
11695 #define C_ALLOCA 1
11696 _ACEOF
11697
11698
11699 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11700 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11701 if test "${ac_cv_os_cray+set}" = set; then
11702   echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704   cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h.  */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h.  */
11710 #if defined(CRAY) && ! defined(CRAY2)
11711 webecray
11712 #else
11713 wenotbecray
11714 #endif
11715
11716 _ACEOF
11717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11718   $EGREP "webecray" >/dev/null 2>&1; then
11719   ac_cv_os_cray=yes
11720 else
11721   ac_cv_os_cray=no
11722 fi
11723 rm -f conftest*
11724
11725 fi
11726 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11727 echo "${ECHO_T}$ac_cv_os_cray" >&6
11728 if test $ac_cv_os_cray = yes; then
11729   for ac_func in _getb67 GETB67 getb67; do
11730     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11731 echo "$as_me:$LINENO: checking for $ac_func" >&5
11732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11733 if eval "test \"\${$as_ac_var+set}\" = set"; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736   cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11744 #define $ac_func innocuous_$ac_func
11745
11746 /* System header to define __stub macros and hopefully few prototypes,
11747     which can conflict with char $ac_func (); below.
11748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11749     <limits.h> exists even on freestanding compilers.  */
11750
11751 #ifdef __STDC__
11752 # include <limits.h>
11753 #else
11754 # include <assert.h>
11755 #endif
11756
11757 #undef $ac_func
11758
11759 /* Override any gcc2 internal prototype to avoid an error.  */
11760 #ifdef __cplusplus
11761 extern "C"
11762 {
11763 #endif
11764 /* We use char because int might match the return type of a gcc2
11765    builtin and then its argument prototype would still apply.  */
11766 char $ac_func ();
11767 /* The GNU C library defines this for functions which it implements
11768     to always fail with ENOSYS.  Some functions are actually named
11769     something starting with __ and the normal name is an alias.  */
11770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11771 choke me
11772 #else
11773 char (*f) () = $ac_func;
11774 #endif
11775 #ifdef __cplusplus
11776 }
11777 #endif
11778
11779 int
11780 main ()
11781 {
11782 return f != $ac_func;
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789   (eval $ac_link) 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -z "$ac_c_werror_flag"
11797                          || test ! -s conftest.err'
11798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799   (eval $ac_try) 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); }; } &&
11803          { ac_try='test -s conftest$ac_exeext'
11804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805   (eval $ac_try) 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; }; then
11809   eval "$as_ac_var=yes"
11810 else
11811   echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 eval "$as_ac_var=no"
11815 fi
11816 rm -f conftest.err conftest.$ac_objext \
11817       conftest$ac_exeext conftest.$ac_ext
11818 fi
11819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822
11823 cat >>confdefs.h <<_ACEOF
11824 #define CRAY_STACKSEG_END $ac_func
11825 _ACEOF
11826
11827     break
11828 fi
11829
11830   done
11831 fi
11832
11833 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11834 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11835 if test "${ac_cv_c_stack_direction+set}" = set; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   if test "$cross_compiling" = yes; then
11839   ac_cv_c_stack_direction=0
11840 else
11841   cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h.  */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h.  */
11847 int
11848 find_stack_direction ()
11849 {
11850   static char *addr = 0;
11851   auto char dummy;
11852   if (addr == 0)
11853     {
11854       addr = &dummy;
11855       return find_stack_direction ();
11856     }
11857   else
11858     return (&dummy > addr) ? 1 : -1;
11859 }
11860
11861 int
11862 main ()
11863 {
11864   exit (find_stack_direction () < 0);
11865 }
11866 _ACEOF
11867 rm -f conftest$ac_exeext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869   (eval $ac_link) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874   (eval $ac_try) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; }; then
11878   ac_cv_c_stack_direction=1
11879 else
11880   echo "$as_me: program exited with status $ac_status" >&5
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 ( exit $ac_status )
11885 ac_cv_c_stack_direction=-1
11886 fi
11887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11888 fi
11889 fi
11890 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11891 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11892
11893 cat >>confdefs.h <<_ACEOF
11894 #define STACK_DIRECTION $ac_cv_c_stack_direction
11895 _ACEOF
11896
11897
11898 fi
11899
11900
11901
11902
11903
11904
11905 for ac_func in sbrk utimes setmode getc_unlocked strcoll
11906 do
11907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11910 if eval "test \"\${$as_ac_var+set}\" = set"; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h.  */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h.  */
11919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11921 #define $ac_func innocuous_$ac_func
11922
11923 /* System header to define __stub macros and hopefully few prototypes,
11924     which can conflict with char $ac_func (); below.
11925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11926     <limits.h> exists even on freestanding compilers.  */
11927
11928 #ifdef __STDC__
11929 # include <limits.h>
11930 #else
11931 # include <assert.h>
11932 #endif
11933
11934 #undef $ac_func
11935
11936 /* Override any gcc2 internal prototype to avoid an error.  */
11937 #ifdef __cplusplus
11938 extern "C"
11939 {
11940 #endif
11941 /* We use char because int might match the return type of a gcc2
11942    builtin and then its argument prototype would still apply.  */
11943 char $ac_func ();
11944 /* The GNU C library defines this for functions which it implements
11945     to always fail with ENOSYS.  Some functions are actually named
11946     something starting with __ and the normal name is an alias.  */
11947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11948 choke me
11949 #else
11950 char (*f) () = $ac_func;
11951 #endif
11952 #ifdef __cplusplus
11953 }
11954 #endif
11955
11956 int
11957 main ()
11958 {
11959 return f != $ac_func;
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966   (eval $ac_link) 2>conftest.er1
11967   ac_status=$?
11968   grep -v '^ *+' conftest.er1 >conftest.err
11969   rm -f conftest.er1
11970   cat conftest.err >&5
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -z "$ac_c_werror_flag"
11974                          || test ! -s conftest.err'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; } &&
11980          { ac_try='test -s conftest$ac_exeext'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986   eval "$as_ac_var=yes"
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 eval "$as_ac_var=no"
11992 fi
11993 rm -f conftest.err conftest.$ac_objext \
11994       conftest$ac_exeext conftest.$ac_ext
11995 fi
11996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11998 if test `eval echo '${'$as_ac_var'}'` = yes; then
11999   cat >>confdefs.h <<_ACEOF
12000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12001 _ACEOF
12002
12003 fi
12004 done
12005
12006 echo "$as_me:$LINENO: checking for mkstemp" >&5
12007 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12008 if test "${ac_cv_func_mkstemp+set}" = set; then
12009   echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011   cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12019 #define mkstemp innocuous_mkstemp
12020
12021 /* System header to define __stub macros and hopefully few prototypes,
12022     which can conflict with char mkstemp (); below.
12023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12024     <limits.h> exists even on freestanding compilers.  */
12025
12026 #ifdef __STDC__
12027 # include <limits.h>
12028 #else
12029 # include <assert.h>
12030 #endif
12031
12032 #undef mkstemp
12033
12034 /* Override any gcc2 internal prototype to avoid an error.  */
12035 #ifdef __cplusplus
12036 extern "C"
12037 {
12038 #endif
12039 /* We use char because int might match the return type of a gcc2
12040    builtin and then its argument prototype would still apply.  */
12041 char mkstemp ();
12042 /* The GNU C library defines this for functions which it implements
12043     to always fail with ENOSYS.  Some functions are actually named
12044     something starting with __ and the normal name is an alias.  */
12045 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12046 choke me
12047 #else
12048 char (*f) () = mkstemp;
12049 #endif
12050 #ifdef __cplusplus
12051 }
12052 #endif
12053
12054 int
12055 main ()
12056 {
12057 return f != mkstemp;
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 rm -f conftest.$ac_objext conftest$ac_exeext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12064   (eval $ac_link) 2>conftest.er1
12065   ac_status=$?
12066   grep -v '^ *+' conftest.er1 >conftest.err
12067   rm -f conftest.er1
12068   cat conftest.err >&5
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } &&
12071          { ac_try='test -z "$ac_c_werror_flag"
12072                          || test ! -s conftest.err'
12073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074   (eval $ac_try) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; } &&
12078          { ac_try='test -s conftest$ac_exeext'
12079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080   (eval $ac_try) 2>&5
12081   ac_status=$?
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); }; }; then
12084   ac_cv_func_mkstemp=yes
12085 else
12086   echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089 ac_cv_func_mkstemp=no
12090 fi
12091 rm -f conftest.err conftest.$ac_objext \
12092       conftest$ac_exeext conftest.$ac_ext
12093 fi
12094 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12095 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12096 if test $ac_cv_func_mkstemp = yes; then
12097
12098 cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_MKSTEMP 1
12100 _ACEOF
12101
12102 fi
12103
12104 echo "$as_me:$LINENO: checking for mkdtemp" >&5
12105 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12106 if test "${ac_cv_func_mkdtemp+set}" = set; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109   cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h.  */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h.  */
12115 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12117 #define mkdtemp innocuous_mkdtemp
12118
12119 /* System header to define __stub macros and hopefully few prototypes,
12120     which can conflict with char mkdtemp (); below.
12121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122     <limits.h> exists even on freestanding compilers.  */
12123
12124 #ifdef __STDC__
12125 # include <limits.h>
12126 #else
12127 # include <assert.h>
12128 #endif
12129
12130 #undef mkdtemp
12131
12132 /* Override any gcc2 internal prototype to avoid an error.  */
12133 #ifdef __cplusplus
12134 extern "C"
12135 {
12136 #endif
12137 /* We use char because int might match the return type of a gcc2
12138    builtin and then its argument prototype would still apply.  */
12139 char mkdtemp ();
12140 /* The GNU C library defines this for functions which it implements
12141     to always fail with ENOSYS.  Some functions are actually named
12142     something starting with __ and the normal name is an alias.  */
12143 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12144 choke me
12145 #else
12146 char (*f) () = mkdtemp;
12147 #endif
12148 #ifdef __cplusplus
12149 }
12150 #endif
12151
12152 int
12153 main ()
12154 {
12155 return f != mkdtemp;
12156   ;
12157   return 0;
12158 }
12159 _ACEOF
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12162   (eval $ac_link) 2>conftest.er1
12163   ac_status=$?
12164   grep -v '^ *+' conftest.er1 >conftest.err
12165   rm -f conftest.er1
12166   cat conftest.err >&5
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); } &&
12169          { ac_try='test -z "$ac_c_werror_flag"
12170                          || test ! -s conftest.err'
12171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172   (eval $ac_try) 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); }; } &&
12176          { ac_try='test -s conftest$ac_exeext'
12177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178   (eval $ac_try) 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); }; }; then
12182   ac_cv_func_mkdtemp=yes
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 ac_cv_func_mkdtemp=no
12188 fi
12189 rm -f conftest.err conftest.$ac_objext \
12190       conftest$ac_exeext conftest.$ac_ext
12191 fi
12192 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12193 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12194 if test $ac_cv_func_mkdtemp = yes; then
12195
12196 cat >>confdefs.h <<\_ACEOF
12197 #define HAVE_MKDTEMP 1
12198 _ACEOF
12199
12200 fi
12201
12202
12203 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12204 # needs to be defined for it
12205 echo "$as_me:$LINENO: checking for fopen64" >&5
12206 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12207 if test "${bu_cv_have_fopen64+set}" = set; then
12208   echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210   cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h.  */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h.  */
12216 #include <stdio.h>
12217 int
12218 main ()
12219 {
12220 FILE *f = fopen64 ("/tmp/foo","r");
12221   ;
12222   return 0;
12223 }
12224 _ACEOF
12225 rm -f conftest.$ac_objext conftest$ac_exeext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12227   (eval $ac_link) 2>conftest.er1
12228   ac_status=$?
12229   grep -v '^ *+' conftest.er1 >conftest.err
12230   rm -f conftest.er1
12231   cat conftest.err >&5
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); } &&
12234          { ac_try='test -z "$ac_c_werror_flag"
12235                          || test ! -s conftest.err'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; } &&
12241          { ac_try='test -s conftest$ac_exeext'
12242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243   (eval $ac_try) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; }; then
12247   bu_cv_have_fopen64=yes
12248 else
12249   echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 saved_CPPFLAGS=$CPPFLAGS
12253  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12254  cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260 #include <stdio.h>
12261 int
12262 main ()
12263 {
12264 FILE *f = fopen64 ("/tmp/foo","r");
12265   ;
12266   return 0;
12267 }
12268 _ACEOF
12269 rm -f conftest.$ac_objext conftest$ac_exeext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271   (eval $ac_link) 2>conftest.er1
12272   ac_status=$?
12273   grep -v '^ *+' conftest.er1 >conftest.err
12274   rm -f conftest.er1
12275   cat conftest.err >&5
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } &&
12278          { ac_try='test -z "$ac_c_werror_flag"
12279                          || test ! -s conftest.err'
12280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281   (eval $ac_try) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; } &&
12285          { ac_try='test -s conftest$ac_exeext'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; }; then
12291   bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296 bu_cv_have_fopen64=no
12297 fi
12298 rm -f conftest.err conftest.$ac_objext \
12299       conftest$ac_exeext conftest.$ac_ext
12300  CPPFLAGS=$saved_CPPFLAGS
12301 fi
12302 rm -f conftest.err conftest.$ac_objext \
12303       conftest$ac_exeext conftest.$ac_ext
12304 fi
12305
12306 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12307 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
12308 if test "$bu_cv_have_fopen64" != no; then
12309
12310 cat >>confdefs.h <<\_ACEOF
12311 #define HAVE_FOPEN64 1
12312 _ACEOF
12313
12314 fi
12315 echo "$as_me:$LINENO: checking for stat64" >&5
12316 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12317 if test "${bu_cv_have_stat64+set}" = set; then
12318   echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320   cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h.  */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h.  */
12326 #include <sys/stat.h>
12327 int
12328 main ()
12329 {
12330 struct stat64 st; stat64 ("/tmp/foo", &st);
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337   (eval $ac_link) 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } &&
12344          { ac_try='test -z "$ac_c_werror_flag"
12345                          || test ! -s conftest.err'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; } &&
12351          { ac_try='test -s conftest$ac_exeext'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; }; then
12357   bu_cv_have_stat64=yes
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 saved_CPPFLAGS=$CPPFLAGS
12363  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12364  cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370 #include <sys/stat.h>
12371 int
12372 main ()
12373 {
12374 struct stat64 st; stat64 ("/tmp/foo", &st);
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381   (eval $ac_link) 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -z "$ac_c_werror_flag"
12389                          || test ! -s conftest.err'
12390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391   (eval $ac_try) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; } &&
12395          { ac_try='test -s conftest$ac_exeext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 bu_cv_have_stat64=no
12407 fi
12408 rm -f conftest.err conftest.$ac_objext \
12409       conftest$ac_exeext conftest.$ac_ext
12410  CPPFLAGS=$saved_CPPFLAGS
12411 fi
12412 rm -f conftest.err conftest.$ac_objext \
12413       conftest$ac_exeext conftest.$ac_ext
12414 fi
12415
12416 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12417 echo "${ECHO_T}$bu_cv_have_stat64" >&6
12418 if test "$bu_cv_have_stat64" != no; then
12419
12420 cat >>confdefs.h <<\_ACEOF
12421 #define HAVE_STAT64 1
12422 _ACEOF
12423
12424 fi
12425 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12426    || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12427
12428 cat >>confdefs.h <<\_ACEOF
12429 #define _LARGEFILE64_SOURCE 1
12430 _ACEOF
12431
12432   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12433 fi
12434
12435 # Some systems have frexp only in -lm, not in -lc.
12436 echo "$as_me:$LINENO: checking for library containing frexp" >&5
12437 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12438 if test "${ac_cv_search_frexp+set}" = set; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   ac_func_search_save_LIBS=$LIBS
12442 ac_cv_search_frexp=no
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h.  */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h.  */
12449
12450 /* Override any gcc2 internal prototype to avoid an error.  */
12451 #ifdef __cplusplus
12452 extern "C"
12453 #endif
12454 /* We use char because int might match the return type of a gcc2
12455    builtin and then its argument prototype would still apply.  */
12456 char frexp ();
12457 int
12458 main ()
12459 {
12460 frexp ();
12461   ;
12462   return 0;
12463 }
12464 _ACEOF
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467   (eval $ac_link) 2>conftest.er1
12468   ac_status=$?
12469   grep -v '^ *+' conftest.er1 >conftest.err
12470   rm -f conftest.er1
12471   cat conftest.err >&5
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } &&
12474          { ac_try='test -z "$ac_c_werror_flag"
12475                          || test ! -s conftest.err'
12476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477   (eval $ac_try) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; } &&
12481          { ac_try='test -s conftest$ac_exeext'
12482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483   (eval $ac_try) 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; }; then
12487   ac_cv_search_frexp="none required"
12488 else
12489   echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12491
12492 fi
12493 rm -f conftest.err conftest.$ac_objext \
12494       conftest$ac_exeext conftest.$ac_ext
12495 if test "$ac_cv_search_frexp" = no; then
12496   for ac_lib in m; do
12497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12498     cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h.  */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h.  */
12504
12505 /* Override any gcc2 internal prototype to avoid an error.  */
12506 #ifdef __cplusplus
12507 extern "C"
12508 #endif
12509 /* We use char because int might match the return type of a gcc2
12510    builtin and then its argument prototype would still apply.  */
12511 char frexp ();
12512 int
12513 main ()
12514 {
12515 frexp ();
12516   ;
12517   return 0;
12518 }
12519 _ACEOF
12520 rm -f conftest.$ac_objext conftest$ac_exeext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522   (eval $ac_link) 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } &&
12529          { ac_try='test -z "$ac_c_werror_flag"
12530                          || test ! -s conftest.err'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; } &&
12536          { ac_try='test -s conftest$ac_exeext'
12537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538   (eval $ac_try) 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; }; then
12542   ac_cv_search_frexp="-l$ac_lib"
12543 break
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 fi
12549 rm -f conftest.err conftest.$ac_objext \
12550       conftest$ac_exeext conftest.$ac_ext
12551   done
12552 fi
12553 LIBS=$ac_func_search_save_LIBS
12554 fi
12555 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12556 echo "${ECHO_T}$ac_cv_search_frexp" >&6
12557 if test "$ac_cv_search_frexp" != no; then
12558   test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
12559
12560 fi
12561
12562
12563 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12564 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12565 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12566   echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568   cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h.  */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h.  */
12574 #include <time.h>
12575 int
12576 main ()
12577 {
12578 time_t i;
12579   ;
12580   return 0;
12581 }
12582 _ACEOF
12583 rm -f conftest.$ac_objext
12584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12585   (eval $ac_compile) 2>conftest.er1
12586   ac_status=$?
12587   grep -v '^ *+' conftest.er1 >conftest.err
12588   rm -f conftest.er1
12589   cat conftest.err >&5
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); } &&
12592          { ac_try='test -z "$ac_c_werror_flag"
12593                          || test ! -s conftest.err'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; } &&
12599          { ac_try='test -s conftest.$ac_objext'
12600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601   (eval $ac_try) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; }; then
12605   bu_cv_decl_time_t_time_h=yes
12606 else
12607   echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12609
12610 bu_cv_decl_time_t_time_h=no
12611 fi
12612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613 fi
12614
12615 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12616 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
12617 if test $bu_cv_decl_time_t_time_h = yes; then
12618
12619 cat >>confdefs.h <<\_ACEOF
12620 #define HAVE_TIME_T_IN_TIME_H 1
12621 _ACEOF
12622
12623 fi
12624
12625 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12626 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12627 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12628   echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630   cat >conftest.$ac_ext <<_ACEOF
12631 /* confdefs.h.  */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h.  */
12636 #include <sys/types.h>
12637 int
12638 main ()
12639 {
12640 time_t i;
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 rm -f conftest.$ac_objext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647   (eval $ac_compile) 2>conftest.er1
12648   ac_status=$?
12649   grep -v '^ *+' conftest.er1 >conftest.err
12650   rm -f conftest.er1
12651   cat conftest.err >&5
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); } &&
12654          { ac_try='test -z "$ac_c_werror_flag"
12655                          || test ! -s conftest.err'
12656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657   (eval $ac_try) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; } &&
12661          { ac_try='test -s conftest.$ac_objext'
12662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663   (eval $ac_try) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; }; then
12667   bu_cv_decl_time_t_types_h=yes
12668 else
12669   echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12671
12672 bu_cv_decl_time_t_types_h=no
12673 fi
12674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12675 fi
12676
12677 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12678 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
12679 if test $bu_cv_decl_time_t_types_h = yes; then
12680
12681 cat >>confdefs.h <<\_ACEOF
12682 #define HAVE_TIME_T_IN_TYPES_H 1
12683 _ACEOF
12684
12685 fi
12686
12687 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12688 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12689 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698 #include <unistd.h>
12699 int
12700 main ()
12701 {
12702 extern int getopt (int, char *const*, const char *);
12703   ;
12704   return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709   (eval $ac_compile) 2>conftest.er1
12710   ac_status=$?
12711   grep -v '^ *+' conftest.er1 >conftest.err
12712   rm -f conftest.er1
12713   cat conftest.err >&5
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); } &&
12716          { ac_try='test -z "$ac_c_werror_flag"
12717                          || test ! -s conftest.err'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; } &&
12723          { ac_try='test -s conftest.$ac_objext'
12724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725   (eval $ac_try) 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); }; }; then
12729   bu_cv_decl_getopt_unistd_h=yes
12730 else
12731   echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734 bu_cv_decl_getopt_unistd_h=no
12735 fi
12736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12737 fi
12738
12739 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12740 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
12741 if test $bu_cv_decl_getopt_unistd_h = yes; then
12742
12743 cat >>confdefs.h <<\_ACEOF
12744 #define HAVE_DECL_GETOPT 1
12745 _ACEOF
12746
12747 fi
12748
12749 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12750 # by default.
12751 echo "$as_me:$LINENO: checking for utime.h" >&5
12752 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12753 if test "${bu_cv_header_utime_h+set}" = set; then
12754   echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756   cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h.  */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h.  */
12762 #include <sys/types.h>
12763 #ifdef HAVE_TIME_H
12764 #include <time.h>
12765 #endif
12766 #include <utime.h>
12767 int
12768 main ()
12769 {
12770 struct utimbuf s;
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777   (eval $ac_compile) 2>conftest.er1
12778   ac_status=$?
12779   grep -v '^ *+' conftest.er1 >conftest.err
12780   rm -f conftest.er1
12781   cat conftest.err >&5
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); } &&
12784          { ac_try='test -z "$ac_c_werror_flag"
12785                          || test ! -s conftest.err'
12786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787   (eval $ac_try) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; } &&
12791          { ac_try='test -s conftest.$ac_objext'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; }; then
12797   bu_cv_header_utime_h=yes
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 bu_cv_header_utime_h=no
12803 fi
12804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12805 fi
12806
12807 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12808 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
12809 if test $bu_cv_header_utime_h = yes; then
12810
12811 cat >>confdefs.h <<\_ACEOF
12812 #define HAVE_GOOD_UTIME_H 1
12813 _ACEOF
12814
12815 fi
12816
12817 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
12818 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12819 if test "${ac_cv_have_decl_fprintf+set}" = set; then
12820   echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822   cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h.  */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h.  */
12828 $ac_includes_default
12829 int
12830 main ()
12831 {
12832 #ifndef fprintf
12833   char *p = (char *) fprintf;
12834 #endif
12835
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 rm -f conftest.$ac_objext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12842   (eval $ac_compile) 2>conftest.er1
12843   ac_status=$?
12844   grep -v '^ *+' conftest.er1 >conftest.err
12845   rm -f conftest.er1
12846   cat conftest.err >&5
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } &&
12849          { ac_try='test -z "$ac_c_werror_flag"
12850                          || test ! -s conftest.err'
12851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852   (eval $ac_try) 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; } &&
12856          { ac_try='test -s conftest.$ac_objext'
12857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858   (eval $ac_try) 2>&5
12859   ac_status=$?
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); }; }; then
12862   ac_cv_have_decl_fprintf=yes
12863 else
12864   echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 ac_cv_have_decl_fprintf=no
12868 fi
12869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12870 fi
12871 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12872 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12873 if test $ac_cv_have_decl_fprintf = yes; then
12874
12875 cat >>confdefs.h <<_ACEOF
12876 #define HAVE_DECL_FPRINTF 1
12877 _ACEOF
12878
12879
12880 else
12881   cat >>confdefs.h <<_ACEOF
12882 #define HAVE_DECL_FPRINTF 0
12883 _ACEOF
12884
12885
12886 fi
12887 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12888 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12889 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12890   echo $ECHO_N "(cached) $ECHO_C" >&6
12891 else
12892   cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h.  */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h.  */
12898 $ac_includes_default
12899 int
12900 main ()
12901 {
12902 #ifndef stpcpy
12903   char *p = (char *) stpcpy;
12904 #endif
12905
12906   ;
12907   return 0;
12908 }
12909 _ACEOF
12910 rm -f conftest.$ac_objext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912   (eval $ac_compile) 2>conftest.er1
12913   ac_status=$?
12914   grep -v '^ *+' conftest.er1 >conftest.err
12915   rm -f conftest.er1
12916   cat conftest.err >&5
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } &&
12919          { ac_try='test -z "$ac_c_werror_flag"
12920                          || test ! -s conftest.err'
12921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922   (eval $ac_try) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; } &&
12926          { ac_try='test -s conftest.$ac_objext'
12927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928   (eval $ac_try) 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; }; then
12932   ac_cv_have_decl_stpcpy=yes
12933 else
12934   echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12936
12937 ac_cv_have_decl_stpcpy=no
12938 fi
12939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12940 fi
12941 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12942 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12943 if test $ac_cv_have_decl_stpcpy = yes; then
12944
12945 cat >>confdefs.h <<_ACEOF
12946 #define HAVE_DECL_STPCPY 1
12947 _ACEOF
12948
12949
12950 else
12951   cat >>confdefs.h <<_ACEOF
12952 #define HAVE_DECL_STPCPY 0
12953 _ACEOF
12954
12955
12956 fi
12957 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12958 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12959 if test "${ac_cv_have_decl_strstr+set}" = set; then
12960   echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962   cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h.  */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h.  */
12968 $ac_includes_default
12969 int
12970 main ()
12971 {
12972 #ifndef strstr
12973   char *p = (char *) strstr;
12974 #endif
12975
12976   ;
12977   return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982   (eval $ac_compile) 2>conftest.er1
12983   ac_status=$?
12984   grep -v '^ *+' conftest.er1 >conftest.err
12985   rm -f conftest.er1
12986   cat conftest.err >&5
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -z "$ac_c_werror_flag"
12990                          || test ! -s conftest.err'
12991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992   (eval $ac_try) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; } &&
12996          { ac_try='test -s conftest.$ac_objext'
12997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998   (eval $ac_try) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; }; then
13002   ac_cv_have_decl_strstr=yes
13003 else
13004   echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13006
13007 ac_cv_have_decl_strstr=no
13008 fi
13009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13010 fi
13011 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13012 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13013 if test $ac_cv_have_decl_strstr = yes; then
13014
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_DECL_STRSTR 1
13017 _ACEOF
13018
13019
13020 else
13021   cat >>confdefs.h <<_ACEOF
13022 #define HAVE_DECL_STRSTR 0
13023 _ACEOF
13024
13025
13026 fi
13027 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13028 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13029 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13030   echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032   cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h.  */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h.  */
13038 $ac_includes_default
13039 int
13040 main ()
13041 {
13042 #ifndef sbrk
13043   char *p = (char *) sbrk;
13044 #endif
13045
13046   ;
13047   return 0;
13048 }
13049 _ACEOF
13050 rm -f conftest.$ac_objext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052   (eval $ac_compile) 2>conftest.er1
13053   ac_status=$?
13054   grep -v '^ *+' conftest.er1 >conftest.err
13055   rm -f conftest.er1
13056   cat conftest.err >&5
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); } &&
13059          { ac_try='test -z "$ac_c_werror_flag"
13060                          || test ! -s conftest.err'
13061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062   (eval $ac_try) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; } &&
13066          { ac_try='test -s conftest.$ac_objext'
13067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068   (eval $ac_try) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }; }; then
13072   ac_cv_have_decl_sbrk=yes
13073 else
13074   echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 ac_cv_have_decl_sbrk=no
13078 fi
13079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080 fi
13081 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13082 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13083 if test $ac_cv_have_decl_sbrk = yes; then
13084
13085 cat >>confdefs.h <<_ACEOF
13086 #define HAVE_DECL_SBRK 1
13087 _ACEOF
13088
13089
13090 else
13091   cat >>confdefs.h <<_ACEOF
13092 #define HAVE_DECL_SBRK 0
13093 _ACEOF
13094
13095
13096 fi
13097 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13098 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13099 if test "${ac_cv_have_decl_getenv+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h.  */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h.  */
13108 $ac_includes_default
13109 int
13110 main ()
13111 {
13112 #ifndef getenv
13113   char *p = (char *) getenv;
13114 #endif
13115
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13122   (eval $ac_compile) 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } &&
13129          { ac_try='test -z "$ac_c_werror_flag"
13130                          || test ! -s conftest.err'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; } &&
13136          { ac_try='test -s conftest.$ac_objext'
13137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138   (eval $ac_try) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   ac_cv_have_decl_getenv=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 ac_cv_have_decl_getenv=no
13148 fi
13149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13150 fi
13151 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13152 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13153 if test $ac_cv_have_decl_getenv = yes; then
13154
13155 cat >>confdefs.h <<_ACEOF
13156 #define HAVE_DECL_GETENV 1
13157 _ACEOF
13158
13159
13160 else
13161   cat >>confdefs.h <<_ACEOF
13162 #define HAVE_DECL_GETENV 0
13163 _ACEOF
13164
13165
13166 fi
13167 echo "$as_me:$LINENO: checking whether environ is declared" >&5
13168 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13169 if test "${ac_cv_have_decl_environ+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h.  */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h.  */
13178 $ac_includes_default
13179 int
13180 main ()
13181 {
13182 #ifndef environ
13183   char *p = (char *) environ;
13184 #endif
13185
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192   (eval $ac_compile) 2>conftest.er1
13193   ac_status=$?
13194   grep -v '^ *+' conftest.er1 >conftest.err
13195   rm -f conftest.er1
13196   cat conftest.err >&5
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } &&
13199          { ac_try='test -z "$ac_c_werror_flag"
13200                          || test ! -s conftest.err'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; } &&
13206          { ac_try='test -s conftest.$ac_objext'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; }; then
13212   ac_cv_have_decl_environ=yes
13213 else
13214   echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13216
13217 ac_cv_have_decl_environ=no
13218 fi
13219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13222 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13223 if test $ac_cv_have_decl_environ = yes; then
13224
13225 cat >>confdefs.h <<_ACEOF
13226 #define HAVE_DECL_ENVIRON 1
13227 _ACEOF
13228
13229
13230 else
13231   cat >>confdefs.h <<_ACEOF
13232 #define HAVE_DECL_ENVIRON 0
13233 _ACEOF
13234
13235
13236 fi
13237 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13238 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13239 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13240   echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242   cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 $ac_includes_default
13249 int
13250 main ()
13251 {
13252 #ifndef getc_unlocked
13253   char *p = (char *) getc_unlocked;
13254 #endif
13255
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262   (eval $ac_compile) 2>conftest.er1
13263   ac_status=$?
13264   grep -v '^ *+' conftest.er1 >conftest.err
13265   rm -f conftest.er1
13266   cat conftest.err >&5
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } &&
13269          { ac_try='test -z "$ac_c_werror_flag"
13270                          || test ! -s conftest.err'
13271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272   (eval $ac_try) 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); }; } &&
13276          { ac_try='test -s conftest.$ac_objext'
13277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278   (eval $ac_try) 2>&5
13279   ac_status=$?
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); }; }; then
13282   ac_cv_have_decl_getc_unlocked=yes
13283 else
13284   echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287 ac_cv_have_decl_getc_unlocked=no
13288 fi
13289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13290 fi
13291 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13292 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13293 if test $ac_cv_have_decl_getc_unlocked = yes; then
13294
13295 cat >>confdefs.h <<_ACEOF
13296 #define HAVE_DECL_GETC_UNLOCKED 1
13297 _ACEOF
13298
13299
13300 else
13301   cat >>confdefs.h <<_ACEOF
13302 #define HAVE_DECL_GETC_UNLOCKED 0
13303 _ACEOF
13304
13305
13306 fi
13307 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13308 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13309 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13310   echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312   cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318 $ac_includes_default
13319 int
13320 main ()
13321 {
13322 #ifndef snprintf
13323   char *p = (char *) snprintf;
13324 #endif
13325
13326   ;
13327   return 0;
13328 }
13329 _ACEOF
13330 rm -f conftest.$ac_objext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332   (eval $ac_compile) 2>conftest.er1
13333   ac_status=$?
13334   grep -v '^ *+' conftest.er1 >conftest.err
13335   rm -f conftest.er1
13336   cat conftest.err >&5
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); } &&
13339          { ac_try='test -z "$ac_c_werror_flag"
13340                          || test ! -s conftest.err'
13341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342   (eval $ac_try) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; } &&
13346          { ac_try='test -s conftest.$ac_objext'
13347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348   (eval $ac_try) 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; }; then
13352   ac_cv_have_decl_snprintf=yes
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357 ac_cv_have_decl_snprintf=no
13358 fi
13359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13360 fi
13361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13362 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13363 if test $ac_cv_have_decl_snprintf = yes; then
13364
13365 cat >>confdefs.h <<_ACEOF
13366 #define HAVE_DECL_SNPRINTF 1
13367 _ACEOF
13368
13369
13370 else
13371   cat >>confdefs.h <<_ACEOF
13372 #define HAVE_DECL_SNPRINTF 0
13373 _ACEOF
13374
13375
13376 fi
13377 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13378 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13379 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388 $ac_includes_default
13389 int
13390 main ()
13391 {
13392 #ifndef vsnprintf
13393   char *p = (char *) vsnprintf;
13394 #endif
13395
13396   ;
13397   return 0;
13398 }
13399 _ACEOF
13400 rm -f conftest.$ac_objext
13401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13402   (eval $ac_compile) 2>conftest.er1
13403   ac_status=$?
13404   grep -v '^ *+' conftest.er1 >conftest.err
13405   rm -f conftest.er1
13406   cat conftest.err >&5
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } &&
13409          { ac_try='test -z "$ac_c_werror_flag"
13410                          || test ! -s conftest.err'
13411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412   (eval $ac_try) 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; } &&
13416          { ac_try='test -s conftest.$ac_objext'
13417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418   (eval $ac_try) 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; }; then
13422   ac_cv_have_decl_vsnprintf=yes
13423 else
13424   echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13426
13427 ac_cv_have_decl_vsnprintf=no
13428 fi
13429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13430 fi
13431 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13432 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13433 if test $ac_cv_have_decl_vsnprintf = yes; then
13434
13435 cat >>confdefs.h <<_ACEOF
13436 #define HAVE_DECL_VSNPRINTF 1
13437 _ACEOF
13438
13439
13440 else
13441   cat >>confdefs.h <<_ACEOF
13442 #define HAVE_DECL_VSNPRINTF 0
13443 _ACEOF
13444
13445
13446 fi
13447
13448
13449
13450
13451 case "${host}" in
13452 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13453
13454 cat >>confdefs.h <<\_ACEOF
13455 #define USE_BINARY_FOPEN 1
13456 _ACEOF
13457  ;;
13458 esac
13459
13460 # target-specific stuff:
13461
13462 # Canonicalize the secondary target names.
13463 if test -n "$enable_targets"; then
13464     for targ in `echo $enable_targets | sed 's/,/ /g'`
13465     do
13466         result=`$ac_config_sub $targ 2>/dev/null`
13467         if test -n "$result"; then
13468             canon_targets="$canon_targets $result"
13469         else
13470             # Allow targets that config.sub doesn't recognize, like "all".
13471             canon_targets="$canon_targets $targ"
13472         fi
13473     done
13474 fi
13475
13476 all_targets=false
13477 BUILD_NLMCONV=
13478 NLMCONV_DEFS=
13479 BUILD_SRCONV=
13480 BUILD_DLLTOOL=
13481 DLLTOOL_DEFS=
13482 DLLTOOL_DEFAULT=
13483 BUILD_WINDRES=
13484 BUILD_DLLWRAP=
13485 BUILD_MISC=
13486 BUILD_INSTALL_MISC=
13487 OBJDUMP_DEFS=
13488
13489 for targ in $target $canon_targets
13490 do
13491     if test "x$targ" = "xall"; then
13492         all_targets=true
13493         BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13494         BUILD_SRCONV='$(SRCONV_PROG)'
13495         NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
13496         BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
13497     else
13498         case $targ in
13499         i[3-7]86*-*-netware*)
13500           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13501           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
13502           ;;
13503         alpha*-*-netware*)
13504           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13505           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
13506           ;;
13507         powerpc*-*-netware*)
13508           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13509           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
13510           ;;
13511         sparc*-*-netware*)
13512           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13513           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
13514           ;;
13515         esac
13516         case $targ in
13517         *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
13518         esac
13519         case $targ in
13520         arm-epoc-pe*)
13521           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13522           if test -z "$DLLTOOL_DEFAULT"; then
13523             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
13524           fi
13525           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
13526           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13527           ;;
13528         arm-wince-pe* | arm-*-wince)
13529           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13530           if test -z "$DLLTOOL_DEFAULT"; then
13531             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
13532           fi
13533           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
13534           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13535           ;;
13536         arm-*-pe*)
13537           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13538           if test -z "$DLLTOOL_DEFAULT"; then
13539             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13540           fi
13541           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13542           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13543           ;;
13544         thumb-*-pe*)
13545           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13546           if test -z "$DLLTOOL_DEFAULT"; then
13547             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13548           fi
13549           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13550           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13551           ;;
13552         x86_64-*-mingw*)
13553           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13554           if test -z "$DLLTOOL_DEFAULT"; then
13555             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
13556           fi
13557           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
13558           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13559           BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13560           ;;
13561         i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
13562           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13563           if test -z "$DLLTOOL_DEFAULT"; then
13564             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13565           fi
13566           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13567           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13568           BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13569           ;;
13570         i[3-7]86-*-interix)
13571           BUILD_DLLTOOL='$(DLLTOOL_PROG)'
13572           if test -z "$DLLTOOL_DEFAULT"; then
13573             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13574           fi
13575           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13576           ;;
13577         powerpc*-aix5.[01])
13578           ;;
13579         powerpc*-aix5.*)
13580           OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
13581           ;;
13582         powerpc*-*-pe* | powerpc*-*-cygwin*)
13583           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13584           if test -z "$DLLTOOL_DEFAULT"; then
13585             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
13586           fi
13587           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
13588           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13589           ;;
13590         powerpc*-*-linux* | powerpc*-*-elf*)
13591           BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
13592           ;;
13593         sh*-*-pe)
13594           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13595           if test -z "$DLLTOOL_DEFAULT"; then
13596             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
13597           fi
13598           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
13599           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13600           ;;
13601         spu-*-*)
13602           BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
13603           ;;
13604         mips*-*-pe)
13605           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13606           if test -z "$DLLTOOL_DEFAULT"; then
13607             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
13608           fi
13609           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
13610           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13611           ;;
13612         mcore-*-pe)
13613           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13614           if test -z "$DLLTOOL_DEFAULT"; then
13615             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
13616           fi
13617           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
13618           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13619           ;;
13620         mcore-*-elf)
13621           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13622           if test -z "$DLLTOOL_DEFAULT"; then
13623             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
13624           fi
13625           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
13626           ;;
13627         mep-*)
13628           OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
13629           ;;
13630         esac
13631     fi
13632 done
13633
13634 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
13635
13636 if test "${with_windres+set}" = set; then
13637           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13638 fi
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652 cat >>confdefs.h <<_ACEOF
13653 #define TARGET "${target}"
13654 _ACEOF
13655
13656
13657 targ=$target
13658 . $srcdir/../bfd/config.bfd
13659 if test "x$targ_underscore" = "xyes"; then
13660     UNDERSCORE=1
13661 else
13662     UNDERSCORE=0
13663 fi
13664
13665 cat >>confdefs.h <<_ACEOF
13666 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
13667 _ACEOF
13668
13669
13670 # Emulation
13671 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
13672 do
13673   # Canonicalize the secondary target names.
13674  result=`$ac_config_sub $targ_alias 2>/dev/null`
13675  if test -n "$result"; then
13676    targ=$result
13677  else
13678    targ=$targ_alias
13679  fi
13680
13681  . ${srcdir}/configure.tgt
13682
13683   EMULATION=$targ_emul
13684   EMULATION_VECTOR=$targ_emul_vector
13685 done
13686
13687
13688
13689
13690 # Required for html and install-html
13691
13692
13693
13694
13695                               ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13696 cat >confcache <<\_ACEOF
13697 # This file is a shell script that caches the results of configure
13698 # tests run on this system so they can be shared between configure
13699 # scripts and configure runs, see configure's option --config-cache.
13700 # It is not useful on other systems.  If it contains results you don't
13701 # want to keep, you may remove or edit it.
13702 #
13703 # config.status only pays attention to the cache file if you give it
13704 # the --recheck option to rerun configure.
13705 #
13706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13708 # following values.
13709
13710 _ACEOF
13711
13712 # The following way of writing the cache mishandles newlines in values,
13713 # but we know of no workaround that is simple, portable, and efficient.
13714 # So, don't put newlines in cache variables' values.
13715 # Ultrix sh set writes to stderr and can't be redirected directly,
13716 # and sets the high bit in the cache file unless we assign to the vars.
13717 {
13718   (set) 2>&1 |
13719     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13720     *ac_space=\ *)
13721       # `set' does not quote correctly, so add quotes (double-quote
13722       # substitution turns \\\\ into \\, and sed turns \\ into \).
13723       sed -n \
13724         "s/'/'\\\\''/g;
13725           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13726       ;;
13727     *)
13728       # `set' quotes correctly as required by POSIX, so do not add quotes.
13729       sed -n \
13730         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13731       ;;
13732     esac;
13733 } |
13734   sed '
13735      t clear
13736      : clear
13737      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13738      t end
13739      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13740      : end' >>confcache
13741 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13742   if test -w $cache_file; then
13743     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13744     cat confcache >$cache_file
13745   else
13746     echo "not updating unwritable cache $cache_file"
13747   fi
13748 fi
13749 rm -f confcache
13750
13751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13752 # Let make expand exec_prefix.
13753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13754
13755 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13756 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13757 # trailing colons and then remove the whole line if VPATH becomes empty
13758 # (actually we leave an empty line to preserve line numbers).
13759 if test "x$srcdir" = x.; then
13760   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13761 s/:*\$(srcdir):*/:/;
13762 s/:*\${srcdir}:*/:/;
13763 s/:*@srcdir@:*/:/;
13764 s/^\([^=]*=[     ]*\):*/\1/;
13765 s/:*$//;
13766 s/^[^=]*=[       ]*$//;
13767 }'
13768 fi
13769
13770 DEFS=-DHAVE_CONFIG_H
13771
13772 ac_libobjs=
13773 ac_ltlibobjs=
13774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13775   # 1. Remove the extension, and $U if already installed.
13776   ac_i=`echo "$ac_i" |
13777          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13778   # 2. Add them.
13779   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13780   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13781 done
13782 LIBOBJS=$ac_libobjs
13783
13784 LTLIBOBJS=$ac_ltlibobjs
13785
13786
13787 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13788   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13789 Usually this means the macro was only invoked conditionally." >&5
13790 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13791 Usually this means the macro was only invoked conditionally." >&2;}
13792    { (exit 1); exit 1; }; }
13793 fi
13794 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13795   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13796 Usually this means the macro was only invoked conditionally." >&5
13797 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13798 Usually this means the macro was only invoked conditionally." >&2;}
13799    { (exit 1); exit 1; }; }
13800 fi
13801 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13802   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13803 Usually this means the macro was only invoked conditionally." >&5
13804 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13805 Usually this means the macro was only invoked conditionally." >&2;}
13806    { (exit 1); exit 1; }; }
13807 fi
13808 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13809   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13810 Usually this means the macro was only invoked conditionally." >&5
13811 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13812 Usually this means the macro was only invoked conditionally." >&2;}
13813    { (exit 1); exit 1; }; }
13814 fi
13815
13816 : ${CONFIG_STATUS=./config.status}
13817 ac_clean_files_save=$ac_clean_files
13818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13819 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13820 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13821 cat >$CONFIG_STATUS <<_ACEOF
13822 #! $SHELL
13823 # Generated by $as_me.
13824 # Run this file to recreate the current configuration.
13825 # Compiler output produced by configure, useful for debugging
13826 # configure, is in config.log if it exists.
13827
13828 debug=false
13829 ac_cs_recheck=false
13830 ac_cs_silent=false
13831 SHELL=\${CONFIG_SHELL-$SHELL}
13832 _ACEOF
13833
13834 cat >>$CONFIG_STATUS <<\_ACEOF
13835 ## --------------------- ##
13836 ## M4sh Initialization.  ##
13837 ## --------------------- ##
13838
13839 # Be Bourne compatible
13840 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13841   emulate sh
13842   NULLCMD=:
13843   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13844   # is contrary to our usage.  Disable this feature.
13845   alias -g '${1+"$@"}'='"$@"'
13846 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13847   set -o posix
13848 fi
13849 DUALCASE=1; export DUALCASE # for MKS sh
13850
13851 # Support unset when possible.
13852 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13853   as_unset=unset
13854 else
13855   as_unset=false
13856 fi
13857
13858
13859 # Work around bugs in pre-3.0 UWIN ksh.
13860 $as_unset ENV MAIL MAILPATH
13861 PS1='$ '
13862 PS2='> '
13863 PS4='+ '
13864
13865 # NLS nuisances.
13866 for as_var in \
13867   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13868   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13869   LC_TELEPHONE LC_TIME
13870 do
13871   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13872     eval $as_var=C; export $as_var
13873   else
13874     $as_unset $as_var
13875   fi
13876 done
13877
13878 # Required to use basename.
13879 if expr a : '\(a\)' >/dev/null 2>&1; then
13880   as_expr=expr
13881 else
13882   as_expr=false
13883 fi
13884
13885 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13886   as_basename=basename
13887 else
13888   as_basename=false
13889 fi
13890
13891
13892 # Name of the executable.
13893 as_me=`$as_basename "$0" ||
13894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13895          X"$0" : 'X\(//\)$' \| \
13896          X"$0" : 'X\(/\)$' \| \
13897          .     : '\(.\)' 2>/dev/null ||
13898 echo X/"$0" |
13899     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13900           /^X\/\(\/\/\)$/{ s//\1/; q; }
13901           /^X\/\(\/\).*/{ s//\1/; q; }
13902           s/.*/./; q'`
13903
13904
13905 # PATH needs CR, and LINENO needs CR and PATH.
13906 # Avoid depending upon Character Ranges.
13907 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13908 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13909 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13910 as_cr_digits='0123456789'
13911 as_cr_alnum=$as_cr_Letters$as_cr_digits
13912
13913 # The user is always right.
13914 if test "${PATH_SEPARATOR+set}" != set; then
13915   echo "#! /bin/sh" >conf$$.sh
13916   echo  "exit 0"   >>conf$$.sh
13917   chmod +x conf$$.sh
13918   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13919     PATH_SEPARATOR=';'
13920   else
13921     PATH_SEPARATOR=:
13922   fi
13923   rm -f conf$$.sh
13924 fi
13925
13926
13927   as_lineno_1=$LINENO
13928   as_lineno_2=$LINENO
13929   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13930   test "x$as_lineno_1" != "x$as_lineno_2" &&
13931   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13932   # Find who we are.  Look in the path if we contain no path at all
13933   # relative or not.
13934   case $0 in
13935     *[\\/]* ) as_myself=$0 ;;
13936     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13937 for as_dir in $PATH
13938 do
13939   IFS=$as_save_IFS
13940   test -z "$as_dir" && as_dir=.
13941   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13942 done
13943
13944        ;;
13945   esac
13946   # We did not find ourselves, most probably we were run as `sh COMMAND'
13947   # in which case we are not to be found in the path.
13948   if test "x$as_myself" = x; then
13949     as_myself=$0
13950   fi
13951   if test ! -f "$as_myself"; then
13952     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13953 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13954    { (exit 1); exit 1; }; }
13955   fi
13956   case $CONFIG_SHELL in
13957   '')
13958     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13960 do
13961   IFS=$as_save_IFS
13962   test -z "$as_dir" && as_dir=.
13963   for as_base in sh bash ksh sh5; do
13964          case $as_dir in
13965          /*)
13966            if ("$as_dir/$as_base" -c '
13967   as_lineno_1=$LINENO
13968   as_lineno_2=$LINENO
13969   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13970   test "x$as_lineno_1" != "x$as_lineno_2" &&
13971   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13972              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13973              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13974              CONFIG_SHELL=$as_dir/$as_base
13975              export CONFIG_SHELL
13976              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13977            fi;;
13978          esac
13979        done
13980 done
13981 ;;
13982   esac
13983
13984   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13985   # uniformly replaced by the line number.  The first 'sed' inserts a
13986   # line-number line before each line; the second 'sed' does the real
13987   # work.  The second script uses 'N' to pair each line-number line
13988   # with the numbered line, and appends trailing '-' during
13989   # substitution so that $LINENO is not a special case at line end.
13990   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13991   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13992   sed '=' <$as_myself |
13993     sed '
13994       N
13995       s,$,-,
13996       : loop
13997       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13998       t loop
13999       s,-$,,
14000       s,^['$as_cr_digits']*\n,,
14001     ' >$as_me.lineno &&
14002   chmod +x $as_me.lineno ||
14003     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14004 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14005    { (exit 1); exit 1; }; }
14006
14007   # Don't try to exec as it changes $[0], causing all sort of problems
14008   # (the dirname of $[0] is not the place where we might find the
14009   # original and so on.  Autoconf is especially sensible to this).
14010   . ./$as_me.lineno
14011   # Exit status is that of the last command.
14012   exit
14013 }
14014
14015
14016 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14017   *c*,-n*) ECHO_N= ECHO_C='
14018 ' ECHO_T='      ' ;;
14019   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14020   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14021 esac
14022
14023 if expr a : '\(a\)' >/dev/null 2>&1; then
14024   as_expr=expr
14025 else
14026   as_expr=false
14027 fi
14028
14029 rm -f conf$$ conf$$.exe conf$$.file
14030 echo >conf$$.file
14031 if ln -s conf$$.file conf$$ 2>/dev/null; then
14032   # We could just check for DJGPP; but this test a) works b) is more generic
14033   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14034   if test -f conf$$.exe; then
14035     # Don't use ln at all; we don't have any links
14036     as_ln_s='cp -p'
14037   else
14038     as_ln_s='ln -s'
14039   fi
14040 elif ln conf$$.file conf$$ 2>/dev/null; then
14041   as_ln_s=ln
14042 else
14043   as_ln_s='cp -p'
14044 fi
14045 rm -f conf$$ conf$$.exe conf$$.file
14046
14047 if mkdir -p . 2>/dev/null; then
14048   as_mkdir_p=:
14049 else
14050   test -d ./-p && rmdir ./-p
14051   as_mkdir_p=false
14052 fi
14053
14054 as_executable_p="test -f"
14055
14056 # Sed expression to map a string onto a valid CPP name.
14057 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14058
14059 # Sed expression to map a string onto a valid variable name.
14060 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14061
14062
14063 # IFS
14064 # We need space, tab and new line, in precisely that order.
14065 as_nl='
14066 '
14067 IFS="   $as_nl"
14068
14069 # CDPATH.
14070 $as_unset CDPATH
14071
14072 exec 6>&1
14073
14074 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14075 # report actual input values of CONFIG_FILES etc. instead of their
14076 # values after options handling.  Logging --version etc. is OK.
14077 exec 5>>config.log
14078 {
14079   echo
14080   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14081 ## Running $as_me. ##
14082 _ASBOX
14083 } >&5
14084 cat >&5 <<_CSEOF
14085
14086 This file was extended by $as_me, which was
14087 generated by GNU Autoconf 2.59.  Invocation command line was
14088
14089   CONFIG_FILES    = $CONFIG_FILES
14090   CONFIG_HEADERS  = $CONFIG_HEADERS
14091   CONFIG_LINKS    = $CONFIG_LINKS
14092   CONFIG_COMMANDS = $CONFIG_COMMANDS
14093   $ $0 $@
14094
14095 _CSEOF
14096 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14097 echo >&5
14098 _ACEOF
14099
14100 # Files that config.status was made for.
14101 if test -n "$ac_config_files"; then
14102   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14103 fi
14104
14105 if test -n "$ac_config_headers"; then
14106   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14107 fi
14108
14109 if test -n "$ac_config_links"; then
14110   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14111 fi
14112
14113 if test -n "$ac_config_commands"; then
14114   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14115 fi
14116
14117 cat >>$CONFIG_STATUS <<\_ACEOF
14118
14119 ac_cs_usage="\
14120 \`$as_me' instantiates files from templates according to the
14121 current configuration.
14122
14123 Usage: $0 [OPTIONS] [FILE]...
14124
14125   -h, --help       print this help, then exit
14126   -V, --version    print version number, then exit
14127   -q, --quiet      do not print progress messages
14128   -d, --debug      don't remove temporary files
14129       --recheck    update $as_me by reconfiguring in the same conditions
14130   --file=FILE[:TEMPLATE]
14131                    instantiate the configuration file FILE
14132   --header=FILE[:TEMPLATE]
14133                    instantiate the configuration header FILE
14134
14135 Configuration files:
14136 $config_files
14137
14138 Configuration headers:
14139 $config_headers
14140
14141 Configuration commands:
14142 $config_commands
14143
14144 Report bugs to <bug-autoconf@gnu.org>."
14145 _ACEOF
14146
14147 cat >>$CONFIG_STATUS <<_ACEOF
14148 ac_cs_version="\\
14149 config.status
14150 configured by $0, generated by GNU Autoconf 2.59,
14151   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14152
14153 Copyright (C) 2003 Free Software Foundation, Inc.
14154 This config.status script is free software; the Free Software Foundation
14155 gives unlimited permission to copy, distribute and modify it."
14156 srcdir=$srcdir
14157 INSTALL="$INSTALL"
14158 _ACEOF
14159
14160 cat >>$CONFIG_STATUS <<\_ACEOF
14161 # If no file are specified by the user, then we need to provide default
14162 # value.  By we need to know if files were specified by the user.
14163 ac_need_defaults=:
14164 while test $# != 0
14165 do
14166   case $1 in
14167   --*=*)
14168     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14169     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14170     ac_shift=:
14171     ;;
14172   -*)
14173     ac_option=$1
14174     ac_optarg=$2
14175     ac_shift=shift
14176     ;;
14177   *) # This is not an option, so the user has probably given explicit
14178      # arguments.
14179      ac_option=$1
14180      ac_need_defaults=false;;
14181   esac
14182
14183   case $ac_option in
14184   # Handling of the options.
14185 _ACEOF
14186 cat >>$CONFIG_STATUS <<\_ACEOF
14187   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14188     ac_cs_recheck=: ;;
14189   --version | --vers* | -V )
14190     echo "$ac_cs_version"; exit 0 ;;
14191   --he | --h)
14192     # Conflict between --help and --header
14193     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14194 Try \`$0 --help' for more information." >&5
14195 echo "$as_me: error: ambiguous option: $1
14196 Try \`$0 --help' for more information." >&2;}
14197    { (exit 1); exit 1; }; };;
14198   --help | --hel | -h )
14199     echo "$ac_cs_usage"; exit 0 ;;
14200   --debug | --d* | -d )
14201     debug=: ;;
14202   --file | --fil | --fi | --f )
14203     $ac_shift
14204     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14205     ac_need_defaults=false;;
14206   --header | --heade | --head | --hea )
14207     $ac_shift
14208     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14209     ac_need_defaults=false;;
14210   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14211   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14212     ac_cs_silent=: ;;
14213
14214   # This is an error.
14215   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14216 Try \`$0 --help' for more information." >&5
14217 echo "$as_me: error: unrecognized option: $1
14218 Try \`$0 --help' for more information." >&2;}
14219    { (exit 1); exit 1; }; } ;;
14220
14221   *) ac_config_targets="$ac_config_targets $1" ;;
14222
14223   esac
14224   shift
14225 done
14226
14227 ac_configure_extra_args=
14228
14229 if $ac_cs_silent; then
14230   exec 6>/dev/null
14231   ac_configure_extra_args="$ac_configure_extra_args --silent"
14232 fi
14233
14234 _ACEOF
14235 cat >>$CONFIG_STATUS <<_ACEOF
14236 if \$ac_cs_recheck; then
14237   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14238   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14239 fi
14240
14241 _ACEOF
14242
14243 cat >>$CONFIG_STATUS <<_ACEOF
14244 #
14245 # INIT-COMMANDS section.
14246 #
14247
14248 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14249
14250
14251 # The HP-UX ksh and POSIX shell print the target directory to stdout
14252 # if CDPATH is set.
14253 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14254
14255 sed_quote_subst='$sed_quote_subst'
14256 double_quote_subst='$double_quote_subst'
14257 delay_variable_subst='$delay_variable_subst'
14258 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14259 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14260 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14261 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14262 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14263 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14264 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14265 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14266 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14267 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14268 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14269 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14270 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14271 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14272 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14273 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14274 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14275 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14276 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14277 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14278 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14279 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14280 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14281 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14282 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14283 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14284 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14285 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14286 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14287 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14288 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14289 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14290 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14291 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14292 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14293 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14294 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14295 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14296 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14297 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14298 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14299 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14300 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14301 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"`'
14302 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14303 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14304 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14305 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14306 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14307 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14308 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14309 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14310 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14311 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14312 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14313 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14314 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14315 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14316 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14317 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14318 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14319 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14320 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14321 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14322 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14323 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14324 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14325 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14326 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14327 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14328 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14329 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14330 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14331 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14332 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14333 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14334 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14335 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14336 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14337 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14338 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14339 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14340 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14341 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14342 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14343 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14344 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14345 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14346 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14347 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14348 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14349 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14350 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14351 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14352 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14353 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14354 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14355 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14356 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14357 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14358 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14359 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14360 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14361 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14362 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14363 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14364 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14365 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14366 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14367 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14368 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14369
14370 LTCC='$LTCC'
14371 LTCFLAGS='$LTCFLAGS'
14372 compiler='$compiler_DEFAULT'
14373
14374 # Quote evaled strings.
14375 for var in SED \
14376 GREP \
14377 EGREP \
14378 FGREP \
14379 LD \
14380 NM \
14381 LN_S \
14382 lt_SP2NL \
14383 lt_NL2SP \
14384 reload_flag \
14385 deplibs_check_method \
14386 file_magic_cmd \
14387 AR \
14388 AR_FLAGS \
14389 STRIP \
14390 RANLIB \
14391 CC \
14392 CFLAGS \
14393 compiler \
14394 lt_cv_sys_global_symbol_pipe \
14395 lt_cv_sys_global_symbol_to_cdecl \
14396 lt_cv_sys_global_symbol_to_c_name_address \
14397 SHELL \
14398 ECHO \
14399 lt_prog_compiler_no_builtin_flag \
14400 lt_prog_compiler_wl \
14401 lt_prog_compiler_pic \
14402 lt_prog_compiler_static \
14403 lt_cv_prog_compiler_c_o \
14404 need_locks \
14405 shrext_cmds \
14406 export_dynamic_flag_spec \
14407 whole_archive_flag_spec \
14408 compiler_needs_object \
14409 with_gnu_ld \
14410 allow_undefined_flag \
14411 no_undefined_flag \
14412 hardcode_libdir_flag_spec \
14413 hardcode_libdir_flag_spec_ld \
14414 hardcode_libdir_separator \
14415 fix_srcfile_path \
14416 exclude_expsyms \
14417 include_expsyms \
14418 file_list_spec \
14419 variables_saved_for_relink \
14420 libname_spec \
14421 library_names_spec \
14422 soname_spec \
14423 finish_eval \
14424 old_striplib \
14425 striplib; do
14426     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14427     *[\\\\\\\`\\"\\\$]*)
14428       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14429       ;;
14430     *)
14431       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14432       ;;
14433     esac
14434 done
14435
14436 # Double-quote double-evaled strings.
14437 for var in reload_cmds \
14438 old_postinstall_cmds \
14439 old_postuninstall_cmds \
14440 old_archive_cmds \
14441 extract_expsyms_cmds \
14442 old_archive_from_new_cmds \
14443 old_archive_from_expsyms_cmds \
14444 archive_cmds \
14445 archive_expsym_cmds \
14446 module_cmds \
14447 module_expsym_cmds \
14448 export_symbols_cmds \
14449 prelink_cmds \
14450 postinstall_cmds \
14451 postuninstall_cmds \
14452 finish_cmds \
14453 sys_lib_search_path_spec \
14454 sys_lib_dlsearch_path_spec; do
14455     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14456     *[\\\\\\\`\\"\\\$]*)
14457       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14458       ;;
14459     *)
14460       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14461       ;;
14462     esac
14463 done
14464
14465 # Fix-up fallback echo if it was mangled by the above quoting rules.
14466 case \$lt_ECHO in
14467 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14468   ;;
14469 esac
14470
14471 ac_aux_dir='$ac_aux_dir'
14472 xsi_shell='$xsi_shell'
14473 lt_shell_append='$lt_shell_append'
14474
14475 # See if we are running on zsh, and set the options which allow our
14476 # commands through without removal of \ escapes INIT.
14477 if test -n "\${ZSH_VERSION+set}" ; then
14478    setopt NO_GLOB_SUBST
14479 fi
14480
14481
14482     PACKAGE='$PACKAGE'
14483     VERSION='$VERSION'
14484     TIMESTAMP='$TIMESTAMP'
14485     RM='$RM'
14486     ofile='$ofile'
14487
14488
14489
14490 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14491     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14492     # from automake.
14493     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14494     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14495     LINGUAS="${LINGUAS-%UNSET%}"
14496
14497
14498 _ACEOF
14499
14500
14501
14502 cat >>$CONFIG_STATUS <<\_ACEOF
14503 for ac_config_target in $ac_config_targets
14504 do
14505   case "$ac_config_target" in
14506   # Handling of arguments.
14507   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14508   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14509   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14510   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14511   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14512   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14513   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14514   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14515 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14516    { (exit 1); exit 1; }; };;
14517   esac
14518 done
14519
14520 # If the user did not use the arguments to specify the items to instantiate,
14521 # then the envvar interface is used.  Set only those that are not.
14522 # We use the long form for the default assignment because of an extremely
14523 # bizarre bug on SunOS 4.1.3.
14524 if $ac_need_defaults; then
14525   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14526   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14527   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14528 fi
14529
14530 # Have a temporary directory for convenience.  Make it in the build tree
14531 # simply because there is no reason to put it here, and in addition,
14532 # creating and moving files from /tmp can sometimes cause problems.
14533 # Create a temporary directory, and hook for its removal unless debugging.
14534 $debug ||
14535 {
14536   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14537   trap '{ (exit 1); exit 1; }' 1 2 13 15
14538 }
14539
14540 # Create a (secure) tmp directory for tmp files.
14541
14542 {
14543   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14544   test -n "$tmp" && test -d "$tmp"
14545 }  ||
14546 {
14547   tmp=./confstat$$-$RANDOM
14548   (umask 077 && mkdir $tmp)
14549 } ||
14550 {
14551    echo "$me: cannot create a temporary directory in ." >&2
14552    { (exit 1); exit 1; }
14553 }
14554
14555 _ACEOF
14556
14557 cat >>$CONFIG_STATUS <<_ACEOF
14558
14559 #
14560 # CONFIG_FILES section.
14561 #
14562
14563 # No need to generate the scripts if there are no CONFIG_FILES.
14564 # This happens for instance when ./config.status config.h
14565 if test -n "\$CONFIG_FILES"; then
14566   # Protect against being on the right side of a sed subst in config.status.
14567   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14568    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14569 s,@SHELL@,$SHELL,;t t
14570 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14571 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14572 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14573 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14574 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14575 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14576 s,@exec_prefix@,$exec_prefix,;t t
14577 s,@prefix@,$prefix,;t t
14578 s,@program_transform_name@,$program_transform_name,;t t
14579 s,@bindir@,$bindir,;t t
14580 s,@sbindir@,$sbindir,;t t
14581 s,@libexecdir@,$libexecdir,;t t
14582 s,@datadir@,$datadir,;t t
14583 s,@sysconfdir@,$sysconfdir,;t t
14584 s,@sharedstatedir@,$sharedstatedir,;t t
14585 s,@localstatedir@,$localstatedir,;t t
14586 s,@libdir@,$libdir,;t t
14587 s,@includedir@,$includedir,;t t
14588 s,@oldincludedir@,$oldincludedir,;t t
14589 s,@infodir@,$infodir,;t t
14590 s,@mandir@,$mandir,;t t
14591 s,@build_alias@,$build_alias,;t t
14592 s,@host_alias@,$host_alias,;t t
14593 s,@target_alias@,$target_alias,;t t
14594 s,@DEFS@,$DEFS,;t t
14595 s,@ECHO_C@,$ECHO_C,;t t
14596 s,@ECHO_N@,$ECHO_N,;t t
14597 s,@ECHO_T@,$ECHO_T,;t t
14598 s,@LIBS@,$LIBS,;t t
14599 s,@build@,$build,;t t
14600 s,@build_cpu@,$build_cpu,;t t
14601 s,@build_vendor@,$build_vendor,;t t
14602 s,@build_os@,$build_os,;t t
14603 s,@host@,$host,;t t
14604 s,@host_cpu@,$host_cpu,;t t
14605 s,@host_vendor@,$host_vendor,;t t
14606 s,@host_os@,$host_os,;t t
14607 s,@target@,$target,;t t
14608 s,@target_cpu@,$target_cpu,;t t
14609 s,@target_vendor@,$target_vendor,;t t
14610 s,@target_os@,$target_os,;t t
14611 s,@CC@,$CC,;t t
14612 s,@CFLAGS@,$CFLAGS,;t t
14613 s,@LDFLAGS@,$LDFLAGS,;t t
14614 s,@CPPFLAGS@,$CPPFLAGS,;t t
14615 s,@ac_ct_CC@,$ac_ct_CC,;t t
14616 s,@EXEEXT@,$EXEEXT,;t t
14617 s,@OBJEXT@,$OBJEXT,;t t
14618 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14619 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14620 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14621 s,@CYGPATH_W@,$CYGPATH_W,;t t
14622 s,@PACKAGE@,$PACKAGE,;t t
14623 s,@VERSION@,$VERSION,;t t
14624 s,@ACLOCAL@,$ACLOCAL,;t t
14625 s,@AUTOCONF@,$AUTOCONF,;t t
14626 s,@AUTOMAKE@,$AUTOMAKE,;t t
14627 s,@AUTOHEADER@,$AUTOHEADER,;t t
14628 s,@MAKEINFO@,$MAKEINFO,;t t
14629 s,@install_sh@,$install_sh,;t t
14630 s,@STRIP@,$STRIP,;t t
14631 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14632 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14633 s,@mkdir_p@,$mkdir_p,;t t
14634 s,@AWK@,$AWK,;t t
14635 s,@SET_MAKE@,$SET_MAKE,;t t
14636 s,@am__leading_dot@,$am__leading_dot,;t t
14637 s,@AMTAR@,$AMTAR,;t t
14638 s,@am__tar@,$am__tar,;t t
14639 s,@am__untar@,$am__untar,;t t
14640 s,@DEPDIR@,$DEPDIR,;t t
14641 s,@am__include@,$am__include,;t t
14642 s,@am__quote@,$am__quote,;t t
14643 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14644 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14645 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14646 s,@CCDEPMODE@,$CCDEPMODE,;t t
14647 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14648 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14649 s,@LIBTOOL@,$LIBTOOL,;t t
14650 s,@SED@,$SED,;t t
14651 s,@EGREP@,$EGREP,;t t
14652 s,@FGREP@,$FGREP,;t t
14653 s,@GREP@,$GREP,;t t
14654 s,@LD@,$LD,;t t
14655 s,@DUMPBIN@,$DUMPBIN,;t t
14656 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14657 s,@NM@,$NM,;t t
14658 s,@LN_S@,$LN_S,;t t
14659 s,@AR@,$AR,;t t
14660 s,@ac_ct_AR@,$ac_ct_AR,;t t
14661 s,@RANLIB@,$RANLIB,;t t
14662 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14663 s,@lt_ECHO@,$lt_ECHO,;t t
14664 s,@CPP@,$CPP,;t t
14665 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
14666 s,@NO_WERROR@,$NO_WERROR,;t t
14667 s,@YACC@,$YACC,;t t
14668 s,@LEX@,$LEX,;t t
14669 s,@LEXLIB@,$LEXLIB,;t t
14670 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14671 s,@USE_NLS@,$USE_NLS,;t t
14672 s,@LIBINTL@,$LIBINTL,;t t
14673 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14674 s,@INCINTL@,$INCINTL,;t t
14675 s,@XGETTEXT@,$XGETTEXT,;t t
14676 s,@GMSGFMT@,$GMSGFMT,;t t
14677 s,@POSUB@,$POSUB,;t t
14678 s,@CATALOGS@,$CATALOGS,;t t
14679 s,@DATADIRNAME@,$DATADIRNAME,;t t
14680 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14681 s,@GENCAT@,$GENCAT,;t t
14682 s,@CATOBJEXT@,$CATOBJEXT,;t t
14683 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14684 s,@MSGFMT@,$MSGFMT,;t t
14685 s,@MSGMERGE@,$MSGMERGE,;t t
14686 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14687 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14688 s,@MAINT@,$MAINT,;t t
14689 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14690 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
14691 s,@HDEFINES@,$HDEFINES,;t t
14692 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
14693 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
14694 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
14695 s,@ALLOCA@,$ALLOCA,;t t
14696 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
14697 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
14698 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
14699 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
14700 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
14701 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
14702 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
14703 s,@BUILD_MISC@,$BUILD_MISC,;t t
14704 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
14705 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
14706 s,@EMULATION@,$EMULATION,;t t
14707 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
14708 s,@datarootdir@,$datarootdir,;t t
14709 s,@docdir@,$docdir,;t t
14710 s,@htmldir@,$htmldir,;t t
14711 s,@LIBOBJS@,$LIBOBJS,;t t
14712 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14713 CEOF
14714
14715 _ACEOF
14716
14717   cat >>$CONFIG_STATUS <<\_ACEOF
14718   # Split the substitutions into bite-sized pieces for seds with
14719   # small command number limits, like on Digital OSF/1 and HP-UX.
14720   ac_max_sed_lines=48
14721   ac_sed_frag=1 # Number of current file.
14722   ac_beg=1 # First line for current file.
14723   ac_end=$ac_max_sed_lines # Line after last line for current file.
14724   ac_more_lines=:
14725   ac_sed_cmds=
14726   while $ac_more_lines; do
14727     if test $ac_beg -gt 1; then
14728       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14729     else
14730       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14731     fi
14732     if test ! -s $tmp/subs.frag; then
14733       ac_more_lines=false
14734     else
14735       # The purpose of the label and of the branching condition is to
14736       # speed up the sed processing (if there are no `@' at all, there
14737       # is no need to browse any of the substitutions).
14738       # These are the two extra sed commands mentioned above.
14739       (echo ':t
14740   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14741       if test -z "$ac_sed_cmds"; then
14742         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14743       else
14744         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14745       fi
14746       ac_sed_frag=`expr $ac_sed_frag + 1`
14747       ac_beg=$ac_end
14748       ac_end=`expr $ac_end + $ac_max_sed_lines`
14749     fi
14750   done
14751   if test -z "$ac_sed_cmds"; then
14752     ac_sed_cmds=cat
14753   fi
14754 fi # test -n "$CONFIG_FILES"
14755
14756 _ACEOF
14757 cat >>$CONFIG_STATUS <<\_ACEOF
14758 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14759   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14760   case $ac_file in
14761   - | *:- | *:-:* ) # input from stdin
14762         cat >$tmp/stdin
14763         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14764         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14765   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14766         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14767   * )   ac_file_in=$ac_file.in ;;
14768   esac
14769
14770   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14771   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14772 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14773          X"$ac_file" : 'X\(//\)[^/]' \| \
14774          X"$ac_file" : 'X\(//\)$' \| \
14775          X"$ac_file" : 'X\(/\)' \| \
14776          .     : '\(.\)' 2>/dev/null ||
14777 echo X"$ac_file" |
14778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14779           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14780           /^X\(\/\/\)$/{ s//\1/; q; }
14781           /^X\(\/\).*/{ s//\1/; q; }
14782           s/.*/./; q'`
14783   { if $as_mkdir_p; then
14784     mkdir -p "$ac_dir"
14785   else
14786     as_dir="$ac_dir"
14787     as_dirs=
14788     while test ! -d "$as_dir"; do
14789       as_dirs="$as_dir $as_dirs"
14790       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14792          X"$as_dir" : 'X\(//\)[^/]' \| \
14793          X"$as_dir" : 'X\(//\)$' \| \
14794          X"$as_dir" : 'X\(/\)' \| \
14795          .     : '\(.\)' 2>/dev/null ||
14796 echo X"$as_dir" |
14797     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14798           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14799           /^X\(\/\/\)$/{ s//\1/; q; }
14800           /^X\(\/\).*/{ s//\1/; q; }
14801           s/.*/./; q'`
14802     done
14803     test ! -n "$as_dirs" || mkdir $as_dirs
14804   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14805 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14806    { (exit 1); exit 1; }; }; }
14807
14808   ac_builddir=.
14809
14810 if test "$ac_dir" != .; then
14811   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14812   # A "../" for each directory in $ac_dir_suffix.
14813   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14814 else
14815   ac_dir_suffix= ac_top_builddir=
14816 fi
14817
14818 case $srcdir in
14819   .)  # No --srcdir option.  We are building in place.
14820     ac_srcdir=.
14821     if test -z "$ac_top_builddir"; then
14822        ac_top_srcdir=.
14823     else
14824        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14825     fi ;;
14826   [\\/]* | ?:[\\/]* )  # Absolute path.
14827     ac_srcdir=$srcdir$ac_dir_suffix;
14828     ac_top_srcdir=$srcdir ;;
14829   *) # Relative path.
14830     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14831     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14832 esac
14833
14834 # Do not use `cd foo && pwd` to compute absolute paths, because
14835 # the directories may not exist.
14836 case `pwd` in
14837 .) ac_abs_builddir="$ac_dir";;
14838 *)
14839   case "$ac_dir" in
14840   .) ac_abs_builddir=`pwd`;;
14841   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14842   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14843   esac;;
14844 esac
14845 case $ac_abs_builddir in
14846 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14847 *)
14848   case ${ac_top_builddir}. in
14849   .) ac_abs_top_builddir=$ac_abs_builddir;;
14850   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14851   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14852   esac;;
14853 esac
14854 case $ac_abs_builddir in
14855 .) ac_abs_srcdir=$ac_srcdir;;
14856 *)
14857   case $ac_srcdir in
14858   .) ac_abs_srcdir=$ac_abs_builddir;;
14859   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14860   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14861   esac;;
14862 esac
14863 case $ac_abs_builddir in
14864 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14865 *)
14866   case $ac_top_srcdir in
14867   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14868   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14869   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14870   esac;;
14871 esac
14872
14873
14874   case $INSTALL in
14875   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14876   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14877   esac
14878
14879   if test x"$ac_file" != x-; then
14880     { echo "$as_me:$LINENO: creating $ac_file" >&5
14881 echo "$as_me: creating $ac_file" >&6;}
14882     rm -f "$ac_file"
14883   fi
14884   # Let's still pretend it is `configure' which instantiates (i.e., don't
14885   # use $as_me), people would be surprised to read:
14886   #    /* config.h.  Generated by config.status.  */
14887   if test x"$ac_file" = x-; then
14888     configure_input=
14889   else
14890     configure_input="$ac_file.  "
14891   fi
14892   configure_input=$configure_input"Generated from `echo $ac_file_in |
14893                                      sed 's,.*/,,'` by configure."
14894
14895   # First look for the input files in the build tree, otherwise in the
14896   # src tree.
14897   ac_file_inputs=`IFS=:
14898     for f in $ac_file_in; do
14899       case $f in
14900       -) echo $tmp/stdin ;;
14901       [\\/$]*)
14902          # Absolute (can't be DOS-style, as IFS=:)
14903          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14904 echo "$as_me: error: cannot find input file: $f" >&2;}
14905    { (exit 1); exit 1; }; }
14906          echo "$f";;
14907       *) # Relative
14908          if test -f "$f"; then
14909            # Build tree
14910            echo "$f"
14911          elif test -f "$srcdir/$f"; then
14912            # Source tree
14913            echo "$srcdir/$f"
14914          else
14915            # /dev/null tree
14916            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14917 echo "$as_me: error: cannot find input file: $f" >&2;}
14918    { (exit 1); exit 1; }; }
14919          fi;;
14920       esac
14921     done` || { (exit 1); exit 1; }
14922 _ACEOF
14923 cat >>$CONFIG_STATUS <<_ACEOF
14924   sed "$ac_vpsub
14925 $extrasub
14926 _ACEOF
14927 cat >>$CONFIG_STATUS <<\_ACEOF
14928 :t
14929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14930 s,@configure_input@,$configure_input,;t t
14931 s,@srcdir@,$ac_srcdir,;t t
14932 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14933 s,@top_srcdir@,$ac_top_srcdir,;t t
14934 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14935 s,@builddir@,$ac_builddir,;t t
14936 s,@abs_builddir@,$ac_abs_builddir,;t t
14937 s,@top_builddir@,$ac_top_builddir,;t t
14938 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14939 s,@INSTALL@,$ac_INSTALL,;t t
14940 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14941   rm -f $tmp/stdin
14942   if test x"$ac_file" != x-; then
14943     mv $tmp/out $ac_file
14944   else
14945     cat $tmp/out
14946     rm -f $tmp/out
14947   fi
14948
14949 done
14950 _ACEOF
14951 cat >>$CONFIG_STATUS <<\_ACEOF
14952
14953 #
14954 # CONFIG_HEADER section.
14955 #
14956
14957 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14958 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14959 #
14960 # ac_d sets the value in "#define NAME VALUE" lines.
14961 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14962 ac_dB='[         ].*$,\1#\2'
14963 ac_dC=' '
14964 ac_dD=',;t'
14965 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14966 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14967 ac_uB='$,\1#\2define\3'
14968 ac_uC=' '
14969 ac_uD=',;t'
14970
14971 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14972   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14973   case $ac_file in
14974   - | *:- | *:-:* ) # input from stdin
14975         cat >$tmp/stdin
14976         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14977         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14978   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14979         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14980   * )   ac_file_in=$ac_file.in ;;
14981   esac
14982
14983   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14984 echo "$as_me: creating $ac_file" >&6;}
14985
14986   # First look for the input files in the build tree, otherwise in the
14987   # src tree.
14988   ac_file_inputs=`IFS=:
14989     for f in $ac_file_in; do
14990       case $f in
14991       -) echo $tmp/stdin ;;
14992       [\\/$]*)
14993          # Absolute (can't be DOS-style, as IFS=:)
14994          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14995 echo "$as_me: error: cannot find input file: $f" >&2;}
14996    { (exit 1); exit 1; }; }
14997          # Do quote $f, to prevent DOS paths from being IFS'd.
14998          echo "$f";;
14999       *) # Relative
15000          if test -f "$f"; then
15001            # Build tree
15002            echo "$f"
15003          elif test -f "$srcdir/$f"; then
15004            # Source tree
15005            echo "$srcdir/$f"
15006          else
15007            # /dev/null tree
15008            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15009 echo "$as_me: error: cannot find input file: $f" >&2;}
15010    { (exit 1); exit 1; }; }
15011          fi;;
15012       esac
15013     done` || { (exit 1); exit 1; }
15014   # Remove the trailing spaces.
15015   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15016
15017 _ACEOF
15018
15019 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15020 # `conftest.undefs', that substitutes the proper values into
15021 # config.h.in to produce config.h.  The first handles `#define'
15022 # templates, and the second `#undef' templates.
15023 # And first: Protect against being on the right side of a sed subst in
15024 # config.status.  Protect against being in an unquoted here document
15025 # in config.status.
15026 rm -f conftest.defines conftest.undefs
15027 # Using a here document instead of a string reduces the quoting nightmare.
15028 # Putting comments in sed scripts is not portable.
15029 #
15030 # `end' is used to avoid that the second main sed command (meant for
15031 # 0-ary CPP macros) applies to n-ary macro definitions.
15032 # See the Autoconf documentation for `clear'.
15033 cat >confdef2sed.sed <<\_ACEOF
15034 s/[\\&,]/\\&/g
15035 s,[\\$`],\\&,g
15036 t clear
15037 : clear
15038 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15039 t end
15040 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15041 : end
15042 _ACEOF
15043 # If some macros were called several times there might be several times
15044 # the same #defines, which is useless.  Nevertheless, we may not want to
15045 # sort them, since we want the *last* AC-DEFINE to be honored.
15046 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15047 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15048 rm -f confdef2sed.sed
15049
15050 # This sed command replaces #undef with comments.  This is necessary, for
15051 # example, in the case of _POSIX_SOURCE, which is predefined and required
15052 # on some systems where configure will not decide to define it.
15053 cat >>conftest.undefs <<\_ACEOF
15054 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15055 _ACEOF
15056
15057 # Break up conftest.defines because some shells have a limit on the size
15058 # of here documents, and old seds have small limits too (100 cmds).
15059 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15060 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15061 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15062 echo '  :' >>$CONFIG_STATUS
15063 rm -f conftest.tail
15064 while grep . conftest.defines >/dev/null
15065 do
15066   # Write a limited-size here document to $tmp/defines.sed.
15067   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15068   # Speed up: don't consider the non `#define' lines.
15069   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15070   # Work around the forget-to-reset-the-flag bug.
15071   echo 't clr' >>$CONFIG_STATUS
15072   echo ': clr' >>$CONFIG_STATUS
15073   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15074   echo 'CEOF
15075   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15076   rm -f $tmp/in
15077   mv $tmp/out $tmp/in
15078 ' >>$CONFIG_STATUS
15079   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15080   rm -f conftest.defines
15081   mv conftest.tail conftest.defines
15082 done
15083 rm -f conftest.defines
15084 echo '  fi # grep' >>$CONFIG_STATUS
15085 echo >>$CONFIG_STATUS
15086
15087 # Break up conftest.undefs because some shells have a limit on the size
15088 # of here documents, and old seds have small limits too (100 cmds).
15089 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15090 rm -f conftest.tail
15091 while grep . conftest.undefs >/dev/null
15092 do
15093   # Write a limited-size here document to $tmp/undefs.sed.
15094   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15095   # Speed up: don't consider the non `#undef'
15096   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15097   # Work around the forget-to-reset-the-flag bug.
15098   echo 't clr' >>$CONFIG_STATUS
15099   echo ': clr' >>$CONFIG_STATUS
15100   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15101   echo 'CEOF
15102   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15103   rm -f $tmp/in
15104   mv $tmp/out $tmp/in
15105 ' >>$CONFIG_STATUS
15106   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15107   rm -f conftest.undefs
15108   mv conftest.tail conftest.undefs
15109 done
15110 rm -f conftest.undefs
15111
15112 cat >>$CONFIG_STATUS <<\_ACEOF
15113   # Let's still pretend it is `configure' which instantiates (i.e., don't
15114   # use $as_me), people would be surprised to read:
15115   #    /* config.h.  Generated by config.status.  */
15116   if test x"$ac_file" = x-; then
15117     echo "/* Generated by configure.  */" >$tmp/config.h
15118   else
15119     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15120   fi
15121   cat $tmp/in >>$tmp/config.h
15122   rm -f $tmp/in
15123   if test x"$ac_file" != x-; then
15124     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15125       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15126 echo "$as_me: $ac_file is unchanged" >&6;}
15127     else
15128       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15130          X"$ac_file" : 'X\(//\)[^/]' \| \
15131          X"$ac_file" : 'X\(//\)$' \| \
15132          X"$ac_file" : 'X\(/\)' \| \
15133          .     : '\(.\)' 2>/dev/null ||
15134 echo X"$ac_file" |
15135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15136           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15137           /^X\(\/\/\)$/{ s//\1/; q; }
15138           /^X\(\/\).*/{ s//\1/; q; }
15139           s/.*/./; q'`
15140       { if $as_mkdir_p; then
15141     mkdir -p "$ac_dir"
15142   else
15143     as_dir="$ac_dir"
15144     as_dirs=
15145     while test ! -d "$as_dir"; do
15146       as_dirs="$as_dir $as_dirs"
15147       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15149          X"$as_dir" : 'X\(//\)[^/]' \| \
15150          X"$as_dir" : 'X\(//\)$' \| \
15151          X"$as_dir" : 'X\(/\)' \| \
15152          .     : '\(.\)' 2>/dev/null ||
15153 echo X"$as_dir" |
15154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15155           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15156           /^X\(\/\/\)$/{ s//\1/; q; }
15157           /^X\(\/\).*/{ s//\1/; q; }
15158           s/.*/./; q'`
15159     done
15160     test ! -n "$as_dirs" || mkdir $as_dirs
15161   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15162 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15163    { (exit 1); exit 1; }; }; }
15164
15165       rm -f $ac_file
15166       mv $tmp/config.h $ac_file
15167     fi
15168   else
15169     cat $tmp/config.h
15170     rm -f $tmp/config.h
15171   fi
15172 # Compute $ac_file's index in $config_headers.
15173 _am_stamp_count=1
15174 for _am_header in $config_headers :; do
15175   case $_am_header in
15176     $ac_file | $ac_file:* )
15177       break ;;
15178     * )
15179       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15180   esac
15181 done
15182 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15183 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15184          X$ac_file : 'X\(//\)[^/]' \| \
15185          X$ac_file : 'X\(//\)$' \| \
15186          X$ac_file : 'X\(/\)' \| \
15187          .     : '\(.\)' 2>/dev/null ||
15188 echo X$ac_file |
15189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15190           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15191           /^X\(\/\/\)$/{ s//\1/; q; }
15192           /^X\(\/\).*/{ s//\1/; q; }
15193           s/.*/./; q'`/stamp-h$_am_stamp_count
15194 done
15195 _ACEOF
15196 cat >>$CONFIG_STATUS <<\_ACEOF
15197
15198 #
15199 # CONFIG_COMMANDS section.
15200 #
15201 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15202   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15203   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15204   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15205 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15206          X"$ac_dest" : 'X\(//\)[^/]' \| \
15207          X"$ac_dest" : 'X\(//\)$' \| \
15208          X"$ac_dest" : 'X\(/\)' \| \
15209          .     : '\(.\)' 2>/dev/null ||
15210 echo X"$ac_dest" |
15211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15212           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15213           /^X\(\/\/\)$/{ s//\1/; q; }
15214           /^X\(\/\).*/{ s//\1/; q; }
15215           s/.*/./; q'`
15216   { if $as_mkdir_p; then
15217     mkdir -p "$ac_dir"
15218   else
15219     as_dir="$ac_dir"
15220     as_dirs=
15221     while test ! -d "$as_dir"; do
15222       as_dirs="$as_dir $as_dirs"
15223       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15225          X"$as_dir" : 'X\(//\)[^/]' \| \
15226          X"$as_dir" : 'X\(//\)$' \| \
15227          X"$as_dir" : 'X\(/\)' \| \
15228          .     : '\(.\)' 2>/dev/null ||
15229 echo X"$as_dir" |
15230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15231           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15232           /^X\(\/\/\)$/{ s//\1/; q; }
15233           /^X\(\/\).*/{ s//\1/; q; }
15234           s/.*/./; q'`
15235     done
15236     test ! -n "$as_dirs" || mkdir $as_dirs
15237   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15238 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15239    { (exit 1); exit 1; }; }; }
15240
15241   ac_builddir=.
15242
15243 if test "$ac_dir" != .; then
15244   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15245   # A "../" for each directory in $ac_dir_suffix.
15246   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15247 else
15248   ac_dir_suffix= ac_top_builddir=
15249 fi
15250
15251 case $srcdir in
15252   .)  # No --srcdir option.  We are building in place.
15253     ac_srcdir=.
15254     if test -z "$ac_top_builddir"; then
15255        ac_top_srcdir=.
15256     else
15257        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15258     fi ;;
15259   [\\/]* | ?:[\\/]* )  # Absolute path.
15260     ac_srcdir=$srcdir$ac_dir_suffix;
15261     ac_top_srcdir=$srcdir ;;
15262   *) # Relative path.
15263     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15264     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15265 esac
15266
15267 # Do not use `cd foo && pwd` to compute absolute paths, because
15268 # the directories may not exist.
15269 case `pwd` in
15270 .) ac_abs_builddir="$ac_dir";;
15271 *)
15272   case "$ac_dir" in
15273   .) ac_abs_builddir=`pwd`;;
15274   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15275   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15276   esac;;
15277 esac
15278 case $ac_abs_builddir in
15279 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15280 *)
15281   case ${ac_top_builddir}. in
15282   .) ac_abs_top_builddir=$ac_abs_builddir;;
15283   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15284   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15285   esac;;
15286 esac
15287 case $ac_abs_builddir in
15288 .) ac_abs_srcdir=$ac_srcdir;;
15289 *)
15290   case $ac_srcdir in
15291   .) ac_abs_srcdir=$ac_abs_builddir;;
15292   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15293   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15294   esac;;
15295 esac
15296 case $ac_abs_builddir in
15297 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15298 *)
15299   case $ac_top_srcdir in
15300   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15301   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15302   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15303   esac;;
15304 esac
15305
15306
15307   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15308 echo "$as_me: executing $ac_dest commands" >&6;}
15309   case $ac_dest in
15310     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15311   # Strip MF so we end up with the name of the file.
15312   mf=`echo "$mf" | sed -e 's/:.*$//'`
15313   # Check whether this is an Automake generated Makefile or not.
15314   # We used to match only the files named `Makefile.in', but
15315   # some people rename them; so instead we look at the file content.
15316   # Grep'ing the first line is not enough: some people post-process
15317   # each Makefile.in and add a new line on top of each file to say so.
15318   # So let's grep whole file.
15319   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15320     dirpart=`(dirname "$mf") 2>/dev/null ||
15321 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15322          X"$mf" : 'X\(//\)[^/]' \| \
15323          X"$mf" : 'X\(//\)$' \| \
15324          X"$mf" : 'X\(/\)' \| \
15325          .     : '\(.\)' 2>/dev/null ||
15326 echo X"$mf" |
15327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15328           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15329           /^X\(\/\/\)$/{ s//\1/; q; }
15330           /^X\(\/\).*/{ s//\1/; q; }
15331           s/.*/./; q'`
15332   else
15333     continue
15334   fi
15335   # Extract the definition of DEPDIR, am__include, and am__quote
15336   # from the Makefile without running `make'.
15337   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15338   test -z "$DEPDIR" && continue
15339   am__include=`sed -n 's/^am__include = //p' < "$mf"`
15340   test -z "am__include" && continue
15341   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15342   # When using ansi2knr, U may be empty or an underscore; expand it
15343   U=`sed -n 's/^U = //p' < "$mf"`
15344   # Find all dependency output files, they are included files with
15345   # $(DEPDIR) in their names.  We invoke sed twice because it is the
15346   # simplest approach to changing $(DEPDIR) to its actual value in the
15347   # expansion.
15348   for file in `sed -n "
15349     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15350        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15351     # Make sure the directory exists.
15352     test -f "$dirpart/$file" && continue
15353     fdir=`(dirname "$file") 2>/dev/null ||
15354 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15355          X"$file" : 'X\(//\)[^/]' \| \
15356          X"$file" : 'X\(//\)$' \| \
15357          X"$file" : 'X\(/\)' \| \
15358          .     : '\(.\)' 2>/dev/null ||
15359 echo X"$file" |
15360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15361           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15362           /^X\(\/\/\)$/{ s//\1/; q; }
15363           /^X\(\/\).*/{ s//\1/; q; }
15364           s/.*/./; q'`
15365     { if $as_mkdir_p; then
15366     mkdir -p $dirpart/$fdir
15367   else
15368     as_dir=$dirpart/$fdir
15369     as_dirs=
15370     while test ! -d "$as_dir"; do
15371       as_dirs="$as_dir $as_dirs"
15372       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15374          X"$as_dir" : 'X\(//\)[^/]' \| \
15375          X"$as_dir" : 'X\(//\)$' \| \
15376          X"$as_dir" : 'X\(/\)' \| \
15377          .     : '\(.\)' 2>/dev/null ||
15378 echo X"$as_dir" |
15379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15380           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15381           /^X\(\/\/\)$/{ s//\1/; q; }
15382           /^X\(\/\).*/{ s//\1/; q; }
15383           s/.*/./; q'`
15384     done
15385     test ! -n "$as_dirs" || mkdir $as_dirs
15386   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15387 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15388    { (exit 1); exit 1; }; }; }
15389
15390     # echo "creating $dirpart/$file"
15391     echo '# dummy' > "$dirpart/$file"
15392   done
15393 done
15394  ;;
15395     libtool )
15396
15397     # See if we are running on zsh, and set the options which allow our
15398     # commands through without removal of \ escapes.
15399     if test -n "${ZSH_VERSION+set}" ; then
15400       setopt NO_GLOB_SUBST
15401     fi
15402
15403     cfgfile="${ofile}T"
15404     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15405     $RM "$cfgfile"
15406
15407     cat <<_LT_EOF >> "$cfgfile"
15408 #! $SHELL
15409
15410 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15411 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15413 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15414 #
15415 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15416 # 2006, 2007 Free Software Foundation, Inc.
15417 #
15418 # This file is part of GNU Libtool:
15419 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15420 #
15421 # This program is free software; you can redistribute it and/or modify
15422 # it under the terms of the GNU General Public License as published by
15423 # the Free Software Foundation; either version 2 of the License, or
15424 # (at your option) any later version.
15425 #
15426 # This program is distributed in the hope that it will be useful, but
15427 # WITHOUT ANY WARRANTY; without even the implied warranty of
15428 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15429 # General Public License for more details.
15430 #
15431 # You should have received a copy of the GNU General Public License
15432 # along with this program; if not, a copy can be downloaded from
15433 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15434 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15435 # MA 02110-1301, USA.
15436 #
15437 # As a special exception to the GNU General Public License, if you
15438 # distribute this file as part of a program that contains a
15439 # configuration script generated by Autoconf, you may include it under
15440 # the same distribution terms that you use for the rest of that program.
15441
15442
15443 # The names of the tagged configurations supported by this script.
15444 available_tags=""
15445
15446 # ### BEGIN LIBTOOL CONFIG
15447
15448 # Which release of libtool.m4 was used?
15449 macro_version=$macro_version
15450 macro_revision=$macro_revision
15451
15452 # Whether or not to build shared libraries.
15453 build_libtool_libs=$enable_shared
15454
15455 # Whether or not to build static libraries.
15456 build_old_libs=$enable_static
15457
15458 # What type of objects to build.
15459 pic_mode=$pic_mode
15460
15461 # Whether or not to optimize for fast installation.
15462 fast_install=$enable_fast_install
15463
15464 # The host system.
15465 host_alias=$host_alias
15466 host=$host
15467 host_os=$host_os
15468
15469 # The build system.
15470 build_alias=$build_alias
15471 build=$build
15472 build_os=$build_os
15473
15474 # A sed program that does not truncate output.
15475 SED=$lt_SED
15476
15477 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15478 Xsed="\$SED -e 1s/^X//"
15479
15480 # A grep program that handles long lines.
15481 GREP=$lt_GREP
15482
15483 # An ERE matcher.
15484 EGREP=$lt_EGREP
15485
15486 # A literal string matcher.
15487 FGREP=$lt_FGREP
15488
15489 # A BSD- or MS-compatible name lister.
15490 NM=$lt_NM
15491
15492 # Whether we need soft or hard links.
15493 LN_S=$lt_LN_S
15494
15495 # What is the maximum length of a command?
15496 max_cmd_len=$max_cmd_len
15497
15498 # Object file suffix (normally "o").
15499 objext=$ac_objext
15500
15501 # Executable file suffix (normally "").
15502 exeext=$exeext
15503
15504 # whether the shell understands "unset".
15505 lt_unset=$lt_unset
15506
15507 # turn spaces into newlines.
15508 SP2NL=$lt_lt_SP2NL
15509
15510 # turn newlines into spaces.
15511 NL2SP=$lt_lt_NL2SP
15512
15513 # How to create reloadable object files.
15514 reload_flag=$lt_reload_flag
15515 reload_cmds=$lt_reload_cmds
15516
15517 # Method to check whether dependent libraries are shared objects.
15518 deplibs_check_method=$lt_deplibs_check_method
15519
15520 # Command to use when deplibs_check_method == "file_magic".
15521 file_magic_cmd=$lt_file_magic_cmd
15522
15523 # The archiver.
15524 AR=$lt_AR
15525 AR_FLAGS=$lt_AR_FLAGS
15526
15527 # A symbol stripping program.
15528 STRIP=$lt_STRIP
15529
15530 # Commands used to install an old-style archive.
15531 RANLIB=$lt_RANLIB
15532 old_postinstall_cmds=$lt_old_postinstall_cmds
15533 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15534
15535 # A C compiler.
15536 LTCC=$lt_CC
15537
15538 # LTCC compiler flags.
15539 LTCFLAGS=$lt_CFLAGS
15540
15541 # Take the output of nm and produce a listing of raw symbols and C names.
15542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15543
15544 # Transform the output of nm in a proper C declaration.
15545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15546
15547 # Transform the output of nm in a C name address pair.
15548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15549
15550 # The name of the directory that contains temporary libtool files.
15551 objdir=$objdir
15552
15553 # Shell to use when invoking shell scripts.
15554 SHELL=$lt_SHELL
15555
15556 # An echo program that does not interpret backslashes.
15557 ECHO=$lt_ECHO
15558
15559 # Used to examine libraries when file_magic_cmd begins with "file".
15560 MAGIC_CMD=$MAGIC_CMD
15561
15562 # Must we lock files when doing compilation?
15563 need_locks=$lt_need_locks
15564
15565 # Old archive suffix (normally "a").
15566 libext=$libext
15567
15568 # Shared library suffix (normally ".so").
15569 shrext_cmds=$lt_shrext_cmds
15570
15571 # The commands to extract the exported symbol list from a shared archive.
15572 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15573
15574 # Variables whose values should be saved in libtool wrapper scripts and
15575 # restored at link time.
15576 variables_saved_for_relink=$lt_variables_saved_for_relink
15577
15578 # Do we need the "lib" prefix for modules?
15579 need_lib_prefix=$need_lib_prefix
15580
15581 # Do we need a version for libraries?
15582 need_version=$need_version
15583
15584 # Library versioning type.
15585 version_type=$version_type
15586
15587 # Shared library runtime path variable.
15588 runpath_var=$runpath_var
15589
15590 # Shared library path variable.
15591 shlibpath_var=$shlibpath_var
15592
15593 # Is shlibpath searched before the hard-coded library search path?
15594 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15595
15596 # Format of library name prefix.
15597 libname_spec=$lt_libname_spec
15598
15599 # List of archive names.  First name is the real one, the rest are links.
15600 # The last name is the one that the linker finds with -lNAME
15601 library_names_spec=$lt_library_names_spec
15602
15603 # The coded name of the library, if different from the real name.
15604 soname_spec=$lt_soname_spec
15605
15606 # Command to use after installation of a shared archive.
15607 postinstall_cmds=$lt_postinstall_cmds
15608
15609 # Command to use after uninstallation of a shared archive.
15610 postuninstall_cmds=$lt_postuninstall_cmds
15611
15612 # Commands used to finish a libtool library installation in a directory.
15613 finish_cmds=$lt_finish_cmds
15614
15615 # As "finish_cmds", except a single script fragment to be evaled but
15616 # not shown.
15617 finish_eval=$lt_finish_eval
15618
15619 # Whether we should hardcode library paths into libraries.
15620 hardcode_into_libs=$hardcode_into_libs
15621
15622 # Compile-time system search path for libraries.
15623 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15624
15625 # Run-time system search path for libraries.
15626 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15627
15628 # Whether dlopen is supported.
15629 dlopen_support=$enable_dlopen
15630
15631 # Whether dlopen of programs is supported.
15632 dlopen_self=$enable_dlopen_self
15633
15634 # Whether dlopen of statically linked programs is supported.
15635 dlopen_self_static=$enable_dlopen_self_static
15636
15637 # Commands to strip libraries.
15638 old_striplib=$lt_old_striplib
15639 striplib=$lt_striplib
15640
15641
15642 # The linker used to build libraries.
15643 LD=$lt_LD
15644
15645 # Commands used to build an old-style archive.
15646 old_archive_cmds=$lt_old_archive_cmds
15647
15648 # A language specific compiler.
15649 CC=$lt_compiler
15650
15651 # Is the compiler the GNU compiler?
15652 with_gcc=$GCC
15653
15654 # Compiler flag to turn off builtin functions.
15655 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15656
15657 # How to pass a linker flag through the compiler.
15658 wl=$lt_lt_prog_compiler_wl
15659
15660 # Additional compiler flags for building library objects.
15661 pic_flag=$lt_lt_prog_compiler_pic
15662
15663 # Compiler flag to prevent dynamic linking.
15664 link_static_flag=$lt_lt_prog_compiler_static
15665
15666 # Does compiler simultaneously support -c and -o options?
15667 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15668
15669 # Whether or not to add -lc for building shared libraries.
15670 build_libtool_need_lc=$archive_cmds_need_lc
15671
15672 # Whether or not to disallow shared libs when runtime libs are static.
15673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15674
15675 # Compiler flag to allow reflexive dlopens.
15676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15677
15678 # Compiler flag to generate shared objects directly from archives.
15679 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15680
15681 # Whether the compiler copes with passing no objects directly.
15682 compiler_needs_object=$lt_compiler_needs_object
15683
15684 # Create an old-style archive from a shared archive.
15685 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15686
15687 # Create a temporary old-style archive to link instead of a shared archive.
15688 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15689
15690 # Commands used to build a shared archive.
15691 archive_cmds=$lt_archive_cmds
15692 archive_expsym_cmds=$lt_archive_expsym_cmds
15693
15694 # Commands used to build a loadable module if different from building
15695 # a shared archive.
15696 module_cmds=$lt_module_cmds
15697 module_expsym_cmds=$lt_module_expsym_cmds
15698
15699 # Whether we are building with GNU ld or not.
15700 with_gnu_ld=$lt_with_gnu_ld
15701
15702 # Flag that allows shared libraries with undefined symbols to be built.
15703 allow_undefined_flag=$lt_allow_undefined_flag
15704
15705 # Flag that enforces no undefined symbols.
15706 no_undefined_flag=$lt_no_undefined_flag
15707
15708 # Flag to hardcode \$libdir into a binary during linking.
15709 # This must work even if \$libdir does not exist
15710 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15711
15712 # If ld is used when linking, flag to hardcode \$libdir into a binary
15713 # during linking.  This must work even if \$libdir does not exist.
15714 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15715
15716 # Whether we need a single "-rpath" flag with a separated argument.
15717 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15718
15719 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15720 # DIR into the resulting binary.
15721 hardcode_direct=$hardcode_direct
15722
15723 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15724 # DIR into the resulting binary and the resulting library dependency is
15725 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15726 # library is relocated.
15727 hardcode_direct_absolute=$hardcode_direct_absolute
15728
15729 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15730 # into the resulting binary.
15731 hardcode_minus_L=$hardcode_minus_L
15732
15733 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15734 # into the resulting binary.
15735 hardcode_shlibpath_var=$hardcode_shlibpath_var
15736
15737 # Set to "yes" if building a shared library automatically hardcodes DIR
15738 # into the library and all subsequent libraries and executables linked
15739 # against it.
15740 hardcode_automatic=$hardcode_automatic
15741
15742 # Set to yes if linker adds runtime paths of dependent libraries
15743 # to runtime path list.
15744 inherit_rpath=$inherit_rpath
15745
15746 # Whether libtool must link a program against all its dependency libraries.
15747 link_all_deplibs=$link_all_deplibs
15748
15749 # Fix the shell variable \$srcfile for the compiler.
15750 fix_srcfile_path=$lt_fix_srcfile_path
15751
15752 # Set to "yes" if exported symbols are required.
15753 always_export_symbols=$always_export_symbols
15754
15755 # The commands to list exported symbols.
15756 export_symbols_cmds=$lt_export_symbols_cmds
15757
15758 # Symbols that should not be listed in the preloaded symbols.
15759 exclude_expsyms=$lt_exclude_expsyms
15760
15761 # Symbols that must always be exported.
15762 include_expsyms=$lt_include_expsyms
15763
15764 # Commands necessary for linking programs (against libraries) with templates.
15765 prelink_cmds=$lt_prelink_cmds
15766
15767 # Specify filename containing input files.
15768 file_list_spec=$lt_file_list_spec
15769
15770 # How to hardcode a shared library path into an executable.
15771 hardcode_action=$hardcode_action
15772
15773 # ### END LIBTOOL CONFIG
15774
15775 _LT_EOF
15776
15777   case $host_os in
15778   aix3*)
15779     cat <<\_LT_EOF >> "$cfgfile"
15780 # AIX sometimes has problems with the GCC collect2 program.  For some
15781 # reason, if we set the COLLECT_NAMES environment variable, the problems
15782 # vanish in a puff of smoke.
15783 if test "X${COLLECT_NAMES+set}" != Xset; then
15784   COLLECT_NAMES=
15785   export COLLECT_NAMES
15786 fi
15787 _LT_EOF
15788     ;;
15789   esac
15790
15791
15792 ltmain="$ac_aux_dir/ltmain.sh"
15793
15794
15795   # We use sed instead of cat because bash on DJGPP gets confused if
15796   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15797   # text mode, it properly converts lines to CR/LF.  This bash problem
15798   # is reportedly fixed, but why not run on old versions too?
15799   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15800     || (rm -f "$cfgfile"; exit 1)
15801
15802   case $xsi_shell in
15803   yes)
15804     cat << \_LT_EOF >> "$cfgfile"
15805 # func_dirname file append nondir_replacement
15806 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15807 # otherwise set result to NONDIR_REPLACEMENT.
15808 func_dirname ()
15809 {
15810   case ${1} in
15811     */*) func_dirname_result="${1%/*}${2}" ;;
15812     *  ) func_dirname_result="${3}" ;;
15813   esac
15814 }
15815
15816 # func_basename file
15817 func_basename ()
15818 {
15819   func_basename_result="${1##*/}"
15820 }
15821
15822 # func_stripname prefix suffix name
15823 # strip PREFIX and SUFFIX off of NAME.
15824 # PREFIX and SUFFIX must not contain globbing or regex special
15825 # characters, hashes, percent signs, but SUFFIX may contain a leading
15826 # dot (in which case that matches only a dot).
15827 func_stripname ()
15828 {
15829   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15830   # positional parameters, so assign one to ordinary parameter first.
15831   func_stripname_result=${3}
15832   func_stripname_result=${func_stripname_result#"${1}"}
15833   func_stripname_result=${func_stripname_result%"${2}"}
15834 }
15835
15836 # func_opt_split
15837 func_opt_split ()
15838 {
15839   func_opt_split_opt=${1%%=*}
15840   func_opt_split_arg=${1#*=}
15841 }
15842
15843 # func_lo2o object
15844 func_lo2o ()
15845 {
15846   case ${1} in
15847     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15848     *)    func_lo2o_result=${1} ;;
15849   esac
15850 }
15851 _LT_EOF
15852     ;;
15853   *) # Bourne compatible functions.
15854     cat << \_LT_EOF >> "$cfgfile"
15855 # func_dirname file append nondir_replacement
15856 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15857 # otherwise set result to NONDIR_REPLACEMENT.
15858 func_dirname ()
15859 {
15860   # Extract subdirectory from the argument.
15861   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15862   if test "X$func_dirname_result" = "X${1}"; then
15863     func_dirname_result="${3}"
15864   else
15865     func_dirname_result="$func_dirname_result${2}"
15866   fi
15867 }
15868
15869 # func_basename file
15870 func_basename ()
15871 {
15872   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15873 }
15874
15875 # func_stripname prefix suffix name
15876 # strip PREFIX and SUFFIX off of NAME.
15877 # PREFIX and SUFFIX must not contain globbing or regex special
15878 # characters, hashes, percent signs, but SUFFIX may contain a leading
15879 # dot (in which case that matches only a dot).
15880 # func_strip_suffix prefix name
15881 func_stripname ()
15882 {
15883   case ${2} in
15884     .*) func_stripname_result=`$ECHO "X${3}" \
15885            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15886     *)  func_stripname_result=`$ECHO "X${3}" \
15887            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15888   esac
15889 }
15890
15891 # sed scripts:
15892 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15893 my_sed_long_arg='1s/^-[^=]*=//'
15894
15895 # func_opt_split
15896 func_opt_split ()
15897 {
15898   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15899   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15900 }
15901
15902 # func_lo2o object
15903 func_lo2o ()
15904 {
15905   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15906 }
15907 _LT_EOF
15908 esac
15909
15910 case $lt_shell_append in
15911   yes)
15912     cat << \_LT_EOF >> "$cfgfile"
15913
15914 # func_append var value
15915 # Append VALUE to the end of shell variable VAR.
15916 func_append ()
15917 {
15918   eval "$1+=\$2"
15919 }
15920 _LT_EOF
15921     ;;
15922   *)
15923     cat << \_LT_EOF >> "$cfgfile"
15924
15925 # func_append var value
15926 # Append VALUE to the end of shell variable VAR.
15927 func_append ()
15928 {
15929   eval "$1=\$$1\$2"
15930 }
15931 _LT_EOF
15932     ;;
15933   esac
15934
15935
15936   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15937     || (rm -f "$cfgfile"; exit 1)
15938
15939   mv -f "$cfgfile" "$ofile" ||
15940     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15941   chmod +x "$ofile"
15942
15943  ;;
15944     default-1 )
15945     for ac_file in $CONFIG_FILES; do
15946       # Support "outfile[:infile[:infile...]]"
15947       case "$ac_file" in
15948         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15949       esac
15950       # PO directories have a Makefile.in generated from Makefile.in.in.
15951       case "$ac_file" in */Makefile.in)
15952         # Adjust a relative srcdir.
15953         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15954         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15955         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15956         # In autoconf-2.13 it is called $ac_given_srcdir.
15957         # In autoconf-2.50 it is called $srcdir.
15958         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15959         case "$ac_given_srcdir" in
15960           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15961           /*) top_srcdir="$ac_given_srcdir" ;;
15962           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15963         esac
15964         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15965           rm -f "$ac_dir/POTFILES"
15966           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15967           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15968           POMAKEFILEDEPS="POTFILES.in"
15969           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15970           # on $ac_dir but don't depend on user-specified configuration
15971           # parameters.
15972           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15973             # The LINGUAS file contains the set of available languages.
15974             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15975               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15976             fi
15977             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15978             # Hide the ALL_LINGUAS assigment from automake.
15979             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15980             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15981           else
15982             # The set of available languages was given in configure.in.
15983             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15984           fi
15985           case "$ac_given_srcdir" in
15986             .) srcdirpre= ;;
15987             *) srcdirpre='$(srcdir)/' ;;
15988           esac
15989           POFILES=
15990           GMOFILES=
15991           UPDATEPOFILES=
15992           DUMMYPOFILES=
15993           for lang in $ALL_LINGUAS; do
15994             POFILES="$POFILES $srcdirpre$lang.po"
15995             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15996             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15997             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15998           done
15999           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16000           # environment variable.
16001           INST_LINGUAS=
16002           if test -n "$ALL_LINGUAS"; then
16003             for presentlang in $ALL_LINGUAS; do
16004               useit=no
16005               if test "%UNSET%" != "$LINGUAS"; then
16006                 desiredlanguages="$LINGUAS"
16007               else
16008                 desiredlanguages="$ALL_LINGUAS"
16009               fi
16010               for desiredlang in $desiredlanguages; do
16011                 # Use the presentlang catalog if desiredlang is
16012                 #   a. equal to presentlang, or
16013                 #   b. a variant of presentlang (because in this case,
16014                 #      presentlang can be used as a fallback for messages
16015                 #      which are not translated in the desiredlang catalog).
16016                 case "$desiredlang" in
16017                   "$presentlang"*) useit=yes;;
16018                 esac
16019               done
16020               if test $useit = yes; then
16021                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16022               fi
16023             done
16024           fi
16025           CATALOGS=
16026           if test -n "$INST_LINGUAS"; then
16027             for lang in $INST_LINGUAS; do
16028               CATALOGS="$CATALOGS $lang.gmo"
16029             done
16030           fi
16031           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16032           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"
16033           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16034             if test -f "$f"; then
16035               case "$f" in
16036                 *.orig | *.bak | *~) ;;
16037                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16038               esac
16039             fi
16040           done
16041         fi
16042         ;;
16043       esac
16044     done ;;
16045   esac
16046 done
16047 _ACEOF
16048
16049 cat >>$CONFIG_STATUS <<\_ACEOF
16050
16051 { (exit 0); exit 0; }
16052 _ACEOF
16053 chmod +x $CONFIG_STATUS
16054 ac_clean_files=$ac_clean_files_save
16055
16056
16057 # configure is writing to config.log, and then calls config.status.
16058 # config.status does its own redirection, appending to config.log.
16059 # Unfortunately, on DOS this fails, as config.log is still kept open
16060 # by configure, so config.status won't be able to write to it; its
16061 # output is simply discarded.  So we exec the FD to /dev/null,
16062 # effectively closing config.log, so it can be properly (re)opened and
16063 # appended to by config.status.  When coming back to configure, we
16064 # need to make the FD available again.
16065 if test "$no_create" != yes; then
16066   ac_cs_success=:
16067   ac_config_status_args=
16068   test "$silent" = yes &&
16069     ac_config_status_args="$ac_config_status_args --quiet"
16070   exec 5>/dev/null
16071   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16072   exec 5>>config.log
16073   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16074   # would make configure fail if this is the last instruction.
16075   $ac_cs_success || { (exit 1); exit 1; }
16076 fi
16077