upload tizen1.0 source
[external/popt.git] / configure.keep
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 # Find the correct PATH separator.  Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247   UNAME=${UNAME-`uname 2>/dev/null`}
248   case X$UNAME in
249     *-DOS) lt_cv_sys_path_separator=';' ;;
250     *)     lt_cv_sys_path_separator=':' ;;
251   esac
252   PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261   # Remove one level of quotation (which was required for Make).
262   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263   ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268   # Discard the --no-reexec flag, and continue.
269   shift
270 elif test "X$1" = X--fallback-echo; then
271   # Avoid inline document here, it may be left over
272   :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274   # Yippee, $echo works!
275   :
276 else
277   # Restart under the correct shell.
278   exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282   # used as fallback echo
283   shift
284   cat <<EOF
285
286 EOF
287   exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300        echo_test_string="`eval $cmd`" &&
301        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302     then
303       break
304     fi
305   done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310    test "X$echo_testing_string" = "X$echo_test_string"; then
311   :
312 else
313   # The Solaris, AIX, and Digital Unix default echo programs unquote
314   # backslashes.  This makes it impossible to quote backslashes using
315   #   echo "$something" | sed 's/\\/\\\\/g'
316   #
317   # So, first we look for a working echo in the user's PATH.
318
319   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320   for dir in $PATH /usr/ucb; do
321     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       echo="$dir/echo"
326       break
327     fi
328   done
329   IFS="$save_ifs"
330
331   if test "X$echo" = Xecho; then
332     # We didn't find a better echo, so look for alternatives.
333     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335        test "X$echo_testing_string" = "X$echo_test_string"; then
336       # This shell has a builtin print -r that does the trick.
337       echo='print -r'
338     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339          test "X$CONFIG_SHELL" != X/bin/ksh; then
340       # If we have ksh, try running configure again with it.
341       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342       export ORIGINAL_CONFIG_SHELL
343       CONFIG_SHELL=/bin/ksh
344       export CONFIG_SHELL
345       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346     else
347       # Try using printf.
348       echo='printf %s\n'
349       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351          test "X$echo_testing_string" = "X$echo_test_string"; then
352         # Cool, printf works
353         :
354       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359         export CONFIG_SHELL
360         SHELL="$CONFIG_SHELL"
361         export SHELL
362         echo="$CONFIG_SHELL $0 --fallback-echo"
363       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364            test "X$echo_testing_string" = 'X\t' &&
365            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366            test "X$echo_testing_string" = "X$echo_test_string"; then
367         echo="$CONFIG_SHELL $0 --fallback-echo"
368       else
369         # maybe with a smaller string...
370         prev=:
371
372         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374           then
375             break
376           fi
377           prev="$cmd"
378         done
379
380         if test "$prev" != 'sed 50q "$0"'; then
381           echo_test_string=`eval $prev`
382           export echo_test_string
383           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384         else
385           # Oops.  We lost completely, so just stick with echo.
386           echo=echo
387         fi
388       fi
389     fi
390   fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete.  It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="popt.h"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP EGREP U ANSI2KNR LN_S ECHO RANLIB ac_ct_RANLIB LIBTOOL TARGET MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB POPT_SOURCE_PATH LIBOBJS LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515   # If the previous option needs an argument, assign it.
516   if test -n "$ac_prev"; then
517     eval "$ac_prev=\$ac_option"
518     ac_prev=
519     continue
520   fi
521
522   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524   # Accept the important Cygnus configure options, so we can diagnose typos.
525
526   case $ac_option in
527
528   -bindir | --bindir | --bindi | --bind | --bin | --bi)
529     ac_prev=bindir ;;
530   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531     bindir=$ac_optarg ;;
532
533   -build | --build | --buil | --bui | --bu)
534     ac_prev=build_alias ;;
535   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536     build_alias=$ac_optarg ;;
537
538   -cache-file | --cache-file | --cache-fil | --cache-fi \
539   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540     ac_prev=cache_file ;;
541   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543     cache_file=$ac_optarg ;;
544
545   --config-cache | -C)
546     cache_file=config.cache ;;
547
548   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549     ac_prev=datadir ;;
550   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551   | --da=*)
552     datadir=$ac_optarg ;;
553
554   -disable-* | --disable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     eval "enable_$ac_feature=no" ;;
562
563   -enable-* | --enable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     case $ac_option in
571       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572       *) ac_optarg=yes ;;
573     esac
574     eval "enable_$ac_feature='$ac_optarg'" ;;
575
576   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578   | --exec | --exe | --ex)
579     ac_prev=exec_prefix ;;
580   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582   | --exec=* | --exe=* | --ex=*)
583     exec_prefix=$ac_optarg ;;
584
585   -gas | --gas | --ga | --g)
586     # Obsolete; use --with-gas.
587     with_gas=yes ;;
588
589   -help | --help | --hel | --he | -h)
590     ac_init_help=long ;;
591   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592     ac_init_help=recursive ;;
593   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594     ac_init_help=short ;;
595
596   -host | --host | --hos | --ho)
597     ac_prev=host_alias ;;
598   -host=* | --host=* | --hos=* | --ho=*)
599     host_alias=$ac_optarg ;;
600
601   -includedir | --includedir | --includedi | --included | --include \
602   | --includ | --inclu | --incl | --inc)
603     ac_prev=includedir ;;
604   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605   | --includ=* | --inclu=* | --incl=* | --inc=*)
606     includedir=$ac_optarg ;;
607
608   -infodir | --infodir | --infodi | --infod | --info | --inf)
609     ac_prev=infodir ;;
610   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611     infodir=$ac_optarg ;;
612
613   -libdir | --libdir | --libdi | --libd)
614     ac_prev=libdir ;;
615   -libdir=* | --libdir=* | --libdi=* | --libd=*)
616     libdir=$ac_optarg ;;
617
618   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619   | --libexe | --libex | --libe)
620     ac_prev=libexecdir ;;
621   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622   | --libexe=* | --libex=* | --libe=*)
623     libexecdir=$ac_optarg ;;
624
625   -localstatedir | --localstatedir | --localstatedi | --localstated \
626   | --localstate | --localstat | --localsta | --localst \
627   | --locals | --local | --loca | --loc | --lo)
628     ac_prev=localstatedir ;;
629   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632     localstatedir=$ac_optarg ;;
633
634   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635     ac_prev=mandir ;;
636   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637     mandir=$ac_optarg ;;
638
639   -nfp | --nfp | --nf)
640     # Obsolete; use --without-fp.
641     with_fp=no ;;
642
643   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644   | --no-cr | --no-c | -n)
645     no_create=yes ;;
646
647   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649     no_recursion=yes ;;
650
651   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653   | --oldin | --oldi | --old | --ol | --o)
654     ac_prev=oldincludedir ;;
655   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658     oldincludedir=$ac_optarg ;;
659
660   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661     ac_prev=prefix ;;
662   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663     prefix=$ac_optarg ;;
664
665   -program-prefix | --program-prefix | --program-prefi | --program-pref \
666   | --program-pre | --program-pr | --program-p)
667     ac_prev=program_prefix ;;
668   -program-prefix=* | --program-prefix=* | --program-prefi=* \
669   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670     program_prefix=$ac_optarg ;;
671
672   -program-suffix | --program-suffix | --program-suffi | --program-suff \
673   | --program-suf | --program-su | --program-s)
674     ac_prev=program_suffix ;;
675   -program-suffix=* | --program-suffix=* | --program-suffi=* \
676   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677     program_suffix=$ac_optarg ;;
678
679   -program-transform-name | --program-transform-name \
680   | --program-transform-nam | --program-transform-na \
681   | --program-transform-n | --program-transform- \
682   | --program-transform | --program-transfor \
683   | --program-transfo | --program-transf \
684   | --program-trans | --program-tran \
685   | --progr-tra | --program-tr | --program-t)
686     ac_prev=program_transform_name ;;
687   -program-transform-name=* | --program-transform-name=* \
688   | --program-transform-nam=* | --program-transform-na=* \
689   | --program-transform-n=* | --program-transform-=* \
690   | --program-transform=* | --program-transfor=* \
691   | --program-transfo=* | --program-transf=* \
692   | --program-trans=* | --program-tran=* \
693   | --progr-tra=* | --program-tr=* | --program-t=*)
694     program_transform_name=$ac_optarg ;;
695
696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697   | -silent | --silent | --silen | --sile | --sil)
698     silent=yes ;;
699
700   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701     ac_prev=sbindir ;;
702   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703   | --sbi=* | --sb=*)
704     sbindir=$ac_optarg ;;
705
706   -sharedstatedir | --sharedstatedir | --sharedstatedi \
707   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708   | --sharedst | --shareds | --shared | --share | --shar \
709   | --sha | --sh)
710     ac_prev=sharedstatedir ;;
711   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714   | --sha=* | --sh=*)
715     sharedstatedir=$ac_optarg ;;
716
717   -site | --site | --sit)
718     ac_prev=site ;;
719   -site=* | --site=* | --sit=*)
720     site=$ac_optarg ;;
721
722   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723     ac_prev=srcdir ;;
724   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725     srcdir=$ac_optarg ;;
726
727   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728   | --syscon | --sysco | --sysc | --sys | --sy)
729     ac_prev=sysconfdir ;;
730   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732     sysconfdir=$ac_optarg ;;
733
734   -target | --target | --targe | --targ | --tar | --ta | --t)
735     ac_prev=target_alias ;;
736   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737     target_alias=$ac_optarg ;;
738
739   -v | -verbose | --verbose | --verbos | --verbo | --verb)
740     verbose=yes ;;
741
742   -version | --version | --versio | --versi | --vers | -V)
743     ac_init_version=: ;;
744
745   -with-* | --with-*)
746     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case $ac_option in
753       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_$ac_package='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760     # Reject names that are not valid shell variable names.
761     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762       { echo "$as_me: error: invalid package name: $ac_package" >&2
763    { (exit 1); exit 1; }; }
764     ac_package=`echo $ac_package | sed 's/-/_/g'`
765     eval "with_$ac_package=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes=$ac_optarg ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries=$ac_optarg ;;
784
785   -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787    { (exit 1); exit 1; }; }
788     ;;
789
790   *=*)
791     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795    { (exit 1); exit 1; }; }
796     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797     eval "$ac_envvar='$ac_optarg'"
798     export $ac_envvar ;;
799
800   *)
801     # FIXME: should be removed in autoconf 3.0.
802     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806     ;;
807
808   esac
809 done
810
811 if test -n "$ac_prev"; then
812   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813   { echo "$as_me: error: missing argument to $ac_option" >&2
814    { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830               localstatedir libdir includedir oldincludedir infodir mandir
831 do
832   eval ac_val=$`echo $ac_var`
833   case $ac_val in
834     [\\/$]* | ?:[\\/]* ) ;;
835     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836    { (exit 1); exit 1; }; };;
837   esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849   if test "x$build_alias" = x; then
850     cross_compiling=maybe
851     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852     If a cross compiler is detected then cross compile mode will be used." >&2
853   elif test "x$build_alias" != "x$host_alias"; then
854     cross_compiling=yes
855   fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866   ac_srcdir_defaulted=yes
867   # Try the directory containing this script, then its parent.
868   ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870          X"$0" : 'X\(//\)[^/]' \| \
871          X"$0" : 'X\(//\)$' \| \
872          X"$0" : 'X\(/\)' \| \
873          .     : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877           /^X\(\/\/\)$/{ s//\1/; q; }
878           /^X\(\/\).*/{ s//\1/; q; }
879           s/.*/./; q'`
880   srcdir=$ac_confdir
881   if test ! -r $srcdir/$ac_unique_file; then
882     srcdir=..
883   fi
884 else
885   ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888   if test "$ac_srcdir_defaulted" = yes; then
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890    { (exit 1); exit 1; }; }
891   else
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893    { (exit 1); exit 1; }; }
894   fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898    { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CPP_set=${CPP+set}
929 ac_env_CPP_value=$CPP
930 ac_cv_env_CPP_set=${CPP+set}
931 ac_cv_env_CPP_value=$CPP
932
933 #
934 # Report the --help message.
935 #
936 if test "$ac_init_help" = "long"; then
937   # Omit some internal or obsolete options to make the list less imposing.
938   # This message is too long to be a string in the A/UX 3.1 sh.
939   cat <<_ACEOF
940 \`configure' configures this package to adapt to many kinds of systems.
941
942 Usage: $0 [OPTION]... [VAR=VALUE]...
943
944 To assign environment variables (e.g., CC, CFLAGS...), specify them as
945 VAR=VALUE.  See below for descriptions of some of the useful variables.
946
947 Defaults for the options are specified in brackets.
948
949 Configuration:
950   -h, --help              display this help and exit
951       --help=short        display options specific to this package
952       --help=recursive    display the short help of all the included packages
953   -V, --version           display version information and exit
954   -q, --quiet, --silent   do not print \`checking...' messages
955       --cache-file=FILE   cache test results in FILE [disabled]
956   -C, --config-cache      alias for \`--cache-file=config.cache'
957   -n, --no-create         do not create output files
958       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
959
960 _ACEOF
961
962   cat <<_ACEOF
963 Installation directories:
964   --prefix=PREFIX         install architecture-independent files in PREFIX
965                           [$ac_default_prefix]
966   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
967                           [PREFIX]
968
969 By default, \`make install' will install all the files in
970 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
971 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972 for instance \`--prefix=\$HOME'.
973
974 For better control, use the options below.
975
976 Fine tuning of the installation directories:
977   --bindir=DIR           user executables [EPREFIX/bin]
978   --sbindir=DIR          system admin executables [EPREFIX/sbin]
979   --libexecdir=DIR       program executables [EPREFIX/libexec]
980   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
981   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
982   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
983   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
984   --libdir=DIR           object code libraries [EPREFIX/lib]
985   --includedir=DIR       C header files [PREFIX/include]
986   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
987   --infodir=DIR          info documentation [PREFIX/info]
988   --mandir=DIR           man documentation [PREFIX/man]
989 _ACEOF
990
991   cat <<\_ACEOF
992
993 Program names:
994   --program-prefix=PREFIX            prepend PREFIX to installed program names
995   --program-suffix=SUFFIX            append SUFFIX to installed program names
996   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
997
998 System types:
999   --build=BUILD     configure for building on BUILD [guessed]
1000   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1001   --target=TARGET   configure for building compilers for TARGET [HOST]
1002 _ACEOF
1003 fi
1004
1005 if test -n "$ac_init_help"; then
1006
1007   cat <<\_ACEOF
1008
1009 Optional Features:
1010   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1011   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1012   --disable-dependency-tracking Speeds up one-time builds
1013   --enable-dependency-tracking  Do not reject slow dependency extractors
1014   --enable-shared=PKGS  build shared libraries default=yes
1015   --enable-static=PKGS  build static libraries default=yes
1016   --enable-fast-install=PKGS  optimize for fast installation default=yes
1017   --disable-libtool-lock  avoid locking (might break parallel builds)
1018   --disable-rpath         do not hardcode runtime library paths
1019   --disable-nls           do not use Native Language Support
1020
1021 Optional Packages:
1022   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1023   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1024   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1025   --with-pic              try to use only PIC/non-PIC objects default=use both
1026   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1027   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1028   --with-included-gettext use the GNU gettext library included here
1029   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
1030   --without-libintl-prefix     don't search for libintl in includedir and libdir
1031
1032 Some influential environment variables:
1033   CC          C compiler command
1034   CFLAGS      C compiler flags
1035   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1036               nonstandard directory <lib dir>
1037   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038               headers in a nonstandard directory <include dir>
1039   CPP         C preprocessor
1040
1041 Use these variables to override the choices made by `configure' or to help
1042 it to find libraries and programs with nonstandard names/locations.
1043
1044 _ACEOF
1045 fi
1046
1047 if test "$ac_init_help" = "recursive"; then
1048   # If there are subdirs, report their specific --help.
1049   ac_popdir=`pwd`
1050   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1051     test -d $ac_dir || continue
1052     ac_builddir=.
1053
1054 if test "$ac_dir" != .; then
1055   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1056   # A "../" for each directory in $ac_dir_suffix.
1057   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1058 else
1059   ac_dir_suffix= ac_top_builddir=
1060 fi
1061
1062 case $srcdir in
1063   .)  # No --srcdir option.  We are building in place.
1064     ac_srcdir=.
1065     if test -z "$ac_top_builddir"; then
1066        ac_top_srcdir=.
1067     else
1068        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1069     fi ;;
1070   [\\/]* | ?:[\\/]* )  # Absolute path.
1071     ac_srcdir=$srcdir$ac_dir_suffix;
1072     ac_top_srcdir=$srcdir ;;
1073   *) # Relative path.
1074     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1075     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1076 esac
1077
1078 # Do not use `cd foo && pwd` to compute absolute paths, because
1079 # the directories may not exist.
1080 case `pwd` in
1081 .) ac_abs_builddir="$ac_dir";;
1082 *)
1083   case "$ac_dir" in
1084   .) ac_abs_builddir=`pwd`;;
1085   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1086   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1087   esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *)
1092   case ${ac_top_builddir}. in
1093   .) ac_abs_top_builddir=$ac_abs_builddir;;
1094   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1095   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1096   esac;;
1097 esac
1098 case $ac_abs_builddir in
1099 .) ac_abs_srcdir=$ac_srcdir;;
1100 *)
1101   case $ac_srcdir in
1102   .) ac_abs_srcdir=$ac_abs_builddir;;
1103   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1104   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1105   esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *)
1110   case $ac_top_srcdir in
1111   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1112   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1113   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114   esac;;
1115 esac
1116
1117     cd $ac_dir
1118     # Check for guested configure; otherwise get Cygnus style configure.
1119     if test -f $ac_srcdir/configure.gnu; then
1120       echo
1121       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1122     elif test -f $ac_srcdir/configure; then
1123       echo
1124       $SHELL $ac_srcdir/configure  --help=recursive
1125     elif test -f $ac_srcdir/configure.ac ||
1126            test -f $ac_srcdir/configure.in; then
1127       echo
1128       $ac_configure --help
1129     else
1130       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131     fi
1132     cd $ac_popdir
1133   done
1134 fi
1135
1136 test -n "$ac_init_help" && exit 0
1137 if $ac_init_version; then
1138   cat <<\_ACEOF
1139
1140 Copyright (C) 2003 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by $as_me, which was
1152 generated by GNU Autoconf 2.59.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428 echo "$as_me:   former value:  $ac_old_val" >&2;}
1429         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430 echo "$as_me:   current value: $ac_new_val" >&2;}
1431         ac_cache_corrupted=:
1432       fi;;
1433   esac
1434   # Pass precious variables to config.status.
1435   if test "$ac_new_set" = set; then
1436     case $ac_new_val in
1437     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439     *) ac_arg=$ac_var=$ac_new_val ;;
1440     esac
1441     case " $ac_configure_args " in
1442       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444     esac
1445   fi
1446 done
1447 if $ac_cache_corrupted; then
1448   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479 ac_aux_dir=
1480 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1481   if test -f $ac_dir/install-sh; then
1482     ac_aux_dir=$ac_dir
1483     ac_install_sh="$ac_aux_dir/install-sh -c"
1484     break
1485   elif test -f $ac_dir/install.sh; then
1486     ac_aux_dir=$ac_dir
1487     ac_install_sh="$ac_aux_dir/install.sh -c"
1488     break
1489   elif test -f $ac_dir/shtool; then
1490     ac_aux_dir=$ac_dir
1491     ac_install_sh="$ac_aux_dir/shtool install -c"
1492     break
1493   fi
1494 done
1495 if test -z "$ac_aux_dir"; then
1496   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1497 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1498    { (exit 1); exit 1; }; }
1499 fi
1500 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1501 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1502 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1503
1504 # Make sure we can run config.sub.
1505 $ac_config_sub sun4 >/dev/null 2>&1 ||
1506   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1507 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1508    { (exit 1); exit 1; }; }
1509
1510 echo "$as_me:$LINENO: checking build system type" >&5
1511 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1512 if test "${ac_cv_build+set}" = set; then
1513   echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515   ac_cv_build_alias=$build_alias
1516 test -z "$ac_cv_build_alias" &&
1517   ac_cv_build_alias=`$ac_config_guess`
1518 test -z "$ac_cv_build_alias" &&
1519   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1520 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1521    { (exit 1); exit 1; }; }
1522 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1523   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1524 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1525    { (exit 1); exit 1; }; }
1526
1527 fi
1528 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1529 echo "${ECHO_T}$ac_cv_build" >&6
1530 build=$ac_cv_build
1531 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1532 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1533 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534
1535
1536 echo "$as_me:$LINENO: checking host system type" >&5
1537 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1538 if test "${ac_cv_host+set}" = set; then
1539   echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541   ac_cv_host_alias=$host_alias
1542 test -z "$ac_cv_host_alias" &&
1543   ac_cv_host_alias=$ac_cv_build_alias
1544 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1545   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1546 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1547    { (exit 1); exit 1; }; }
1548
1549 fi
1550 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1551 echo "${ECHO_T}$ac_cv_host" >&6
1552 host=$ac_cv_host
1553 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558 echo "$as_me:$LINENO: checking target system type" >&5
1559 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1560 if test "${ac_cv_target+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   ac_cv_target_alias=$target_alias
1564 test "x$ac_cv_target_alias" = "x" &&
1565   ac_cv_target_alias=$ac_cv_host_alias
1566 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1567   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1568 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1569    { (exit 1); exit 1; }; }
1570
1571 fi
1572 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1573 echo "${ECHO_T}$ac_cv_target" >&6
1574 target=$ac_cv_target
1575 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580 # The aliases save the names the user supplied, while $host etc.
1581 # will get canonicalized.
1582 test -n "$target_alias" &&
1583   test "$program_prefix$program_suffix$program_transform_name" = \
1584     NONENONEs,x,x, &&
1585   program_prefix=${target_alias}-
1586
1587 ac_config_headers="$ac_config_headers "
1588
1589 am__api_version="1.6"
1590 # Find a good install program.  We prefer a C program (faster),
1591 # so one script is as good as another.  But avoid the broken or
1592 # incompatible versions:
1593 # SysV /etc/install, /usr/sbin/install
1594 # SunOS /usr/etc/install
1595 # IRIX /sbin/install
1596 # AIX /bin/install
1597 # AmigaOS /C/install, which installs bootblocks on floppy discs
1598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1601 # OS/2's system install, which has a completely different semantic
1602 # ./install, which can be erroneously created by make from ./install.sh.
1603 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1604 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1605 if test -z "$INSTALL"; then
1606 if test "${ac_cv_path_install+set}" = set; then
1607   echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612   IFS=$as_save_IFS
1613   test -z "$as_dir" && as_dir=.
1614   # Account for people who put trailing slashes in PATH elements.
1615 case $as_dir/ in
1616   ./ | .// | /cC/* | \
1617   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1618   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1619   /usr/ucb/* ) ;;
1620   *)
1621     # OSF1 and SCO ODT 3.0 have their own names for install.
1622     # Don't use installbsd from OSF since it installs stuff as root
1623     # by default.
1624     for ac_prog in ginstall scoinst install; do
1625       for ac_exec_ext in '' $ac_executable_extensions; do
1626         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1627           if test $ac_prog = install &&
1628             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1629             # AIX install.  It has an incompatible calling convention.
1630             :
1631           elif test $ac_prog = install &&
1632             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1633             # program-specific install script used by HP pwplus--don't use.
1634             :
1635           else
1636             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1637             break 3
1638           fi
1639         fi
1640       done
1641     done
1642     ;;
1643 esac
1644 done
1645
1646
1647 fi
1648   if test "${ac_cv_path_install+set}" = set; then
1649     INSTALL=$ac_cv_path_install
1650   else
1651     # As a last resort, use the slow shell script.  We don't cache a
1652     # path for INSTALL within a source directory, because that will
1653     # break other packages using the cache if that directory is
1654     # removed, or if the path is relative.
1655     INSTALL=$ac_install_sh
1656   fi
1657 fi
1658 echo "$as_me:$LINENO: result: $INSTALL" >&5
1659 echo "${ECHO_T}$INSTALL" >&6
1660
1661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1662 # It thinks the first close brace ends the variable substitution.
1663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1664
1665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1666
1667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1668
1669 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1670 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1671 # Just in case
1672 sleep 1
1673 echo timestamp > conftest.file
1674 # Do `set' in a subshell so we don't clobber the current shell's
1675 # arguments.  Must try -L first in case configure is actually a
1676 # symlink; some systems play weird games with the mod time of symlinks
1677 # (eg FreeBSD returns the mod time of the symlink's containing
1678 # directory).
1679 if (
1680    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1681    if test "$*" = "X"; then
1682       # -L didn't work.
1683       set X `ls -t $srcdir/configure conftest.file`
1684    fi
1685    rm -f conftest.file
1686    if test "$*" != "X $srcdir/configure conftest.file" \
1687       && test "$*" != "X conftest.file $srcdir/configure"; then
1688
1689       # If neither matched, then we have a broken ls.  This can happen
1690       # if, for instance, CONFIG_SHELL is bash and it inherits a
1691       # broken ls alias from the environment.  This has actually
1692       # happened.  Such a system could not be considered "sane".
1693       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1694 alias in your environment" >&5
1695 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1696 alias in your environment" >&2;}
1697    { (exit 1); exit 1; }; }
1698    fi
1699
1700    test "$2" = conftest.file
1701    )
1702 then
1703    # Ok.
1704    :
1705 else
1706    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1707 Check your system clock" >&5
1708 echo "$as_me: error: newly created file is older than distributed files!
1709 Check your system clock" >&2;}
1710    { (exit 1); exit 1; }; }
1711 fi
1712 echo "$as_me:$LINENO: result: yes" >&5
1713 echo "${ECHO_T}yes" >&6
1714 test "$program_prefix" != NONE &&
1715   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1716 # Use a double $ so make ignores it.
1717 test "$program_suffix" != NONE &&
1718   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1719 # Double any \ or $.  echo might interpret backslashes.
1720 # By default was `s,x,x', remove it if useless.
1721 cat <<\_ACEOF >conftest.sed
1722 s/[\\$]/&&/g;s/;s,x,x,$//
1723 _ACEOF
1724 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1725 rm conftest.sed
1726
1727
1728 # expand $ac_aux_dir to an absolute path
1729 am_aux_dir=`cd $ac_aux_dir && pwd`
1730
1731 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1732 # Use eval to expand $SHELL
1733 if eval "$MISSING --run true"; then
1734   am_missing_run="$MISSING --run "
1735 else
1736   am_missing_run=
1737   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1738 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1739 fi
1740
1741 for ac_prog in gawk mawk nawk awk
1742 do
1743   # Extract the first word of "$ac_prog", so it can be a program name with args.
1744 set dummy $ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_AWK+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   if test -n "$AWK"; then
1751   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756   IFS=$as_save_IFS
1757   test -z "$as_dir" && as_dir=.
1758   for ac_exec_ext in '' $ac_executable_extensions; do
1759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760     ac_cv_prog_AWK="$ac_prog"
1761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762     break 2
1763   fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 AWK=$ac_cv_prog_AWK
1770 if test -n "$AWK"; then
1771   echo "$as_me:$LINENO: result: $AWK" >&5
1772 echo "${ECHO_T}$AWK" >&6
1773 else
1774   echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778   test -n "$AWK" && break
1779 done
1780
1781 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1782 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1783 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1784 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   cat >conftest.make <<\_ACEOF
1788 all:
1789         @echo 'ac_maketemp="$(MAKE)"'
1790 _ACEOF
1791 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1792 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1793 if test -n "$ac_maketemp"; then
1794   eval ac_cv_prog_make_${ac_make}_set=yes
1795 else
1796   eval ac_cv_prog_make_${ac_make}_set=no
1797 fi
1798 rm -f conftest.make
1799 fi
1800 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1801   echo "$as_me:$LINENO: result: yes" >&5
1802 echo "${ECHO_T}yes" >&6
1803   SET_MAKE=
1804 else
1805   echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807   SET_MAKE="MAKE=${MAKE-make}"
1808 fi
1809
1810  # test to see if srcdir already configured
1811 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1812    test -f $srcdir/config.status; then
1813   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1814 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1815    { (exit 1); exit 1; }; }
1816 fi
1817
1818 # Define the identity of the package.
1819  PACKAGE=popt
1820  VERSION=1.7
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE "$PACKAGE"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define VERSION "$VERSION"
1830 _ACEOF
1831
1832 # Some tools Automake needs.
1833
1834 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1835
1836
1837 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1838
1839
1840 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1841
1842
1843 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1844
1845
1846 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1847
1848
1849 AMTAR=${AMTAR-"${am_missing_run}tar"}
1850
1851 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1852
1853 # Installed binaries are usually stripped using `strip' when the user
1854 # run `make install-strip'.  However `strip' might not be the right
1855 # tool to use in cross-compilation environments, therefore Automake
1856 # will honor the `STRIP' environment variable to overrule this program.
1857 if test "$cross_compiling" != no; then
1858   if test -n "$ac_tool_prefix"; then
1859   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1860 set dummy ${ac_tool_prefix}strip; ac_word=$2
1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863 if test "${ac_cv_prog_STRIP+set}" = set; then
1864   echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866   if test -n "$STRIP"; then
1867   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1868 else
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872   IFS=$as_save_IFS
1873   test -z "$as_dir" && as_dir=.
1874   for ac_exec_ext in '' $ac_executable_extensions; do
1875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878     break 2
1879   fi
1880 done
1881 done
1882
1883 fi
1884 fi
1885 STRIP=$ac_cv_prog_STRIP
1886 if test -n "$STRIP"; then
1887   echo "$as_me:$LINENO: result: $STRIP" >&5
1888 echo "${ECHO_T}$STRIP" >&6
1889 else
1890   echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 fi
1893
1894 fi
1895 if test -z "$ac_cv_prog_STRIP"; then
1896   ac_ct_STRIP=$STRIP
1897   # Extract the first word of "strip", so it can be a program name with args.
1898 set dummy strip; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   if test -n "$ac_ct_STRIP"; then
1905   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910   IFS=$as_save_IFS
1911   test -z "$as_dir" && as_dir=.
1912   for ac_exec_ext in '' $ac_executable_extensions; do
1913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914     ac_cv_prog_ac_ct_STRIP="strip"
1915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916     break 2
1917   fi
1918 done
1919 done
1920
1921   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1922 fi
1923 fi
1924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1925 if test -n "$ac_ct_STRIP"; then
1926   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1927 echo "${ECHO_T}$ac_ct_STRIP" >&6
1928 else
1929   echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 fi
1932
1933   STRIP=$ac_ct_STRIP
1934 else
1935   STRIP="$ac_cv_prog_STRIP"
1936 fi
1937
1938 fi
1939 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1940
1941 # We need awk for the "check" target.  The system "awk" is bad on
1942 # some platforms.
1943
1944
1945
1946 # Add the stamp file to the list of files AC keeps track of,
1947 # along with our hook.
1948           ac_config_headers="$ac_config_headers config.h"
1949
1950
1951
1952
1953 ALL_LINGUAS="cs da de es eu_ES fi fr gl hu id is it ja ko no pl pt pt_BR ro ru sk sl sr sv tr uk wa zh zh_CN.GB2312"
1954
1955 rm -f .deps 2>/dev/null
1956 mkdir .deps 2>/dev/null
1957 if test -d .deps; then
1958   DEPDIR=.deps
1959 else
1960   # MS-DOS does not allow filenames that begin with a dot.
1961   DEPDIR=_deps
1962 fi
1963 rmdir .deps 2>/dev/null
1964
1965
1966           ac_config_commands="$ac_config_commands depfiles"
1967
1968
1969 am_make=${MAKE-make}
1970 cat > confinc << 'END'
1971 doit:
1972         @echo done
1973 END
1974 # If we don't find an include directive, just comment out the code.
1975 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1976 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1977 am__include="#"
1978 am__quote=
1979 _am_result=none
1980 # First try GNU make style include.
1981 echo "include confinc" > confmf
1982 # We grep out `Entering directory' and `Leaving directory'
1983 # messages which can occur if `w' ends up in MAKEFLAGS.
1984 # In particular we don't look at `^make:' because GNU make might
1985 # be invoked under some other name (usually "gmake"), in which
1986 # case it prints its new name instead of `make'.
1987 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1988    am__include=include
1989    am__quote=
1990    _am_result=GNU
1991 fi
1992 # Now try BSD make style include.
1993 if test "$am__include" = "#"; then
1994    echo '.include "confinc"' > confmf
1995    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1996       am__include=.include
1997       am__quote="\""
1998       _am_result=BSD
1999    fi
2000 fi
2001
2002
2003 echo "$as_me:$LINENO: result: $_am_result" >&5
2004 echo "${ECHO_T}$_am_result" >&6
2005 rm -f confinc confmf
2006
2007 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2008 if test "${enable_dependency_tracking+set}" = set; then
2009   enableval="$enable_dependency_tracking"
2010
2011 fi;
2012 if test "x$enable_dependency_tracking" != xno; then
2013   am_depcomp="$ac_aux_dir/depcomp"
2014   AMDEPBACKSLASH='\'
2015 fi
2016
2017
2018 if test "x$enable_dependency_tracking" != xno; then
2019   AMDEP_TRUE=
2020   AMDEP_FALSE='#'
2021 else
2022   AMDEP_TRUE='#'
2023   AMDEP_FALSE=
2024 fi
2025
2026
2027
2028 ac_ext=c
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 if test -n "$ac_tool_prefix"; then
2034   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   if test -n "$CC"; then
2042   ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   for ac_exec_ext in '' $ac_executable_extensions; do
2050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053     break 2
2054   fi
2055 done
2056 done
2057
2058 fi
2059 fi
2060 CC=$ac_cv_prog_CC
2061 if test -n "$CC"; then
2062   echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6
2064 else
2065   echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2067 fi
2068
2069 fi
2070 if test -z "$ac_cv_prog_CC"; then
2071   ac_ct_CC=$CC
2072   # Extract the first word of "gcc", so it can be a program name with args.
2073 set dummy gcc; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077   echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079   if test -n "$ac_ct_CC"; then
2080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085   IFS=$as_save_IFS
2086   test -z "$as_dir" && as_dir=.
2087   for ac_exec_ext in '' $ac_executable_extensions; do
2088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089     ac_cv_prog_ac_ct_CC="gcc"
2090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091     break 2
2092   fi
2093 done
2094 done
2095
2096 fi
2097 fi
2098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099 if test -n "$ac_ct_CC"; then
2100   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101 echo "${ECHO_T}$ac_ct_CC" >&6
2102 else
2103   echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2105 fi
2106
2107   CC=$ac_ct_CC
2108 else
2109   CC="$ac_cv_prog_CC"
2110 fi
2111
2112 if test -z "$CC"; then
2113   if test -n "$ac_tool_prefix"; then
2114   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}cc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   if test -n "$CC"; then
2122   ac_cv_prog_CC="$CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129   for ac_exec_ext in '' $ac_executable_extensions; do
2130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131     ac_cv_prog_CC="${ac_tool_prefix}cc"
2132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133     break 2
2134   fi
2135 done
2136 done
2137
2138 fi
2139 fi
2140 CC=$ac_cv_prog_CC
2141 if test -n "$CC"; then
2142   echo "$as_me:$LINENO: result: $CC" >&5
2143 echo "${ECHO_T}$CC" >&6
2144 else
2145   echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2147 fi
2148
2149 fi
2150 if test -z "$ac_cv_prog_CC"; then
2151   ac_ct_CC=$CC
2152   # Extract the first word of "cc", so it can be a program name with args.
2153 set dummy cc; ac_word=$2
2154 echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   if test -n "$ac_ct_CC"; then
2160   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_exec_ext in '' $ac_executable_extensions; do
2168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169     ac_cv_prog_ac_ct_CC="cc"
2170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171     break 2
2172   fi
2173 done
2174 done
2175
2176 fi
2177 fi
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6
2182 else
2183   echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2185 fi
2186
2187   CC=$ac_ct_CC
2188 else
2189   CC="$ac_cv_prog_CC"
2190 fi
2191
2192 fi
2193 if test -z "$CC"; then
2194   # Extract the first word of "cc", so it can be a program name with args.
2195 set dummy cc; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$CC"; then
2202   ac_cv_prog_CC="$CC" # Let the user override the test.
2203 else
2204   ac_prog_rejected=no
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210   for ac_exec_ext in '' $ac_executable_extensions; do
2211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2213        ac_prog_rejected=yes
2214        continue
2215      fi
2216     ac_cv_prog_CC="cc"
2217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218     break 2
2219   fi
2220 done
2221 done
2222
2223 if test $ac_prog_rejected = yes; then
2224   # We found a bogon in the path, so make sure we never use it.
2225   set dummy $ac_cv_prog_CC
2226   shift
2227   if test $# != 0; then
2228     # We chose a different compiler from the bogus one.
2229     # However, it has the same basename, so the bogon will be chosen
2230     # first if we set CC to just the basename; use the full file name.
2231     shift
2232     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2233   fi
2234 fi
2235 fi
2236 fi
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239   echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6
2241 else
2242   echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2244 fi
2245
2246 fi
2247 if test -z "$CC"; then
2248   if test -n "$ac_tool_prefix"; then
2249   for ac_prog in cl
2250   do
2251     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2253 echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255 if test "${ac_cv_prog_CC+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   if test -n "$CC"; then
2259   ac_cv_prog_CC="$CC" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264   IFS=$as_save_IFS
2265   test -z "$as_dir" && as_dir=.
2266   for ac_exec_ext in '' $ac_executable_extensions; do
2267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270     break 2
2271   fi
2272 done
2273 done
2274
2275 fi
2276 fi
2277 CC=$ac_cv_prog_CC
2278 if test -n "$CC"; then
2279   echo "$as_me:$LINENO: result: $CC" >&5
2280 echo "${ECHO_T}$CC" >&6
2281 else
2282   echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2284 fi
2285
2286     test -n "$CC" && break
2287   done
2288 fi
2289 if test -z "$CC"; then
2290   ac_ct_CC=$CC
2291   for ac_prog in cl
2292 do
2293   # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if test -n "$ac_ct_CC"; then
2301   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310     ac_cv_prog_ac_ct_CC="$ac_prog"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316
2317 fi
2318 fi
2319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2320 if test -n "$ac_ct_CC"; then
2321   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2322 echo "${ECHO_T}$ac_ct_CC" >&6
2323 else
2324   echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2326 fi
2327
2328   test -n "$ac_ct_CC" && break
2329 done
2330
2331   CC=$ac_ct_CC
2332 fi
2333
2334 fi
2335
2336
2337 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: no acceptable C compiler found in \$PATH
2340 See \`config.log' for more details." >&2;}
2341    { (exit 1); exit 1; }; }
2342
2343 # Provide some information about the compiler.
2344 echo "$as_me:$LINENO:" \
2345      "checking for C compiler version" >&5
2346 ac_compiler=`set X $ac_compile; echo $2`
2347 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2348   (eval $ac_compiler --version </dev/null >&5) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }
2352 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2353   (eval $ac_compiler -v </dev/null >&5) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }
2357 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2358   (eval $ac_compiler -V </dev/null >&5) 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }
2362
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369
2370 int
2371 main ()
2372 {
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 ac_clean_files_save=$ac_clean_files
2379 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2380 # Try to create an executable without -o first, disregard a.out.
2381 # It will help us diagnose broken compilers, and finding out an intuition
2382 # of exeext.
2383 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2384 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2385 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2387   (eval $ac_link_default) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; then
2391   # Find the output, starting from the most likely.  This scheme is
2392 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2393 # resort.
2394
2395 # Be careful to initialize this variable, since it used to be cached.
2396 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2397 ac_cv_exeext=
2398 # b.out is created by i960 compilers.
2399 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2400 do
2401   test -f "$ac_file" || continue
2402   case $ac_file in
2403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2404         ;;
2405     conftest.$ac_ext )
2406         # This is the source file.
2407         ;;
2408     [ab].out )
2409         # We found the default executable, but exeext='' is most
2410         # certainly right.
2411         break;;
2412     *.* )
2413         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414         # FIXME: I believe we export ac_cv_exeext for Libtool,
2415         # but it would be cool to find out if it's true.  Does anybody
2416         # maintain Libtool? --akim.
2417         export ac_cv_exeext
2418         break;;
2419     * )
2420         break;;
2421   esac
2422 done
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: C compiler cannot create executables
2430 See \`config.log' for more details." >&2;}
2431    { (exit 77); exit 77; }; }
2432 fi
2433
2434 ac_exeext=$ac_cv_exeext
2435 echo "$as_me:$LINENO: result: $ac_file" >&5
2436 echo "${ECHO_T}$ac_file" >&6
2437
2438 # Check the compiler produces executables we can run.  If not, either
2439 # the compiler is broken, or we cross compile.
2440 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2441 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2442 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2443 # If not cross compiling, check that we can run a simple program.
2444 if test "$cross_compiling" != yes; then
2445   if { ac_try='./$ac_file'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451     cross_compiling=no
2452   else
2453     if test "$cross_compiling" = maybe; then
2454         cross_compiling=yes
2455     else
2456         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2457 If you meant to cross compile, use \`--host'.
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: cannot run C compiled programs.
2460 If you meant to cross compile, use \`--host'.
2461 See \`config.log' for more details." >&2;}
2462    { (exit 1); exit 1; }; }
2463     fi
2464   fi
2465 fi
2466 echo "$as_me:$LINENO: result: yes" >&5
2467 echo "${ECHO_T}yes" >&6
2468
2469 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2470 ac_clean_files=$ac_clean_files_save
2471 # Check the compiler produces executables we can run.  If not, either
2472 # the compiler is broken, or we cross compile.
2473 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2474 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2475 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2476 echo "${ECHO_T}$cross_compiling" >&6
2477
2478 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2479 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2481   (eval $ac_link) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; then
2485   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2486 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2487 # work properly (i.e., refer to `conftest.exe'), while it won't with
2488 # `rm'.
2489 for ac_file in conftest.exe conftest conftest.*; do
2490   test -f "$ac_file" || continue
2491   case $ac_file in
2492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2493     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2494           export ac_cv_exeext
2495           break;;
2496     * ) break;;
2497   esac
2498 done
2499 else
2500   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2503 See \`config.log' for more details." >&2;}
2504    { (exit 1); exit 1; }; }
2505 fi
2506
2507 rm -f conftest$ac_cv_exeext
2508 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2509 echo "${ECHO_T}$ac_cv_exeext" >&6
2510
2511 rm -f conftest.$ac_ext
2512 EXEEXT=$ac_cv_exeext
2513 ac_exeext=$EXEEXT
2514 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2515 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2516 if test "${ac_cv_objext+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
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 int
2527 main ()
2528 {
2529
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 rm -f conftest.o conftest.obj
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536   (eval $ac_compile) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; then
2540   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2541   case $ac_file in
2542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2543     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2544        break;;
2545   esac
2546 done
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2552 See \`config.log' for more details." >&5
2553 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2554 See \`config.log' for more details." >&2;}
2555    { (exit 1); exit 1; }; }
2556 fi
2557
2558 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2559 fi
2560 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2561 echo "${ECHO_T}$ac_cv_objext" >&6
2562 OBJEXT=$ac_cv_objext
2563 ac_objext=$OBJEXT
2564 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2565 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2566 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h.  */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h.  */
2575
2576 int
2577 main ()
2578 {
2579 #ifndef __GNUC__
2580        choke me
2581 #endif
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -z "$ac_c_werror_flag"
2597                          || test ! -s conftest.err'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; } &&
2603          { ac_try='test -s conftest.$ac_objext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   ac_compiler_gnu=yes
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 ac_compiler_gnu=no
2615 fi
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2618
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2622 GCC=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CFLAGS=${CFLAGS+set}
2624 ac_save_CFLAGS=$CFLAGS
2625 CFLAGS="-g"
2626 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2627 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_g+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h.  */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h.  */
2637
2638 int
2639 main ()
2640 {
2641
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648   (eval $ac_compile) 2>conftest.er1
2649   ac_status=$?
2650   grep -v '^ *+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } &&
2655          { ac_try='test -z "$ac_c_werror_flag"
2656                          || test ! -s conftest.err'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; } &&
2662          { ac_try='test -s conftest.$ac_objext'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   ac_cv_prog_cc_g=yes
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 ac_cv_prog_cc_g=no
2674 fi
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 fi
2677 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2678 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2679 if test "$ac_test_CFLAGS" = set; then
2680   CFLAGS=$ac_save_CFLAGS
2681 elif test $ac_cv_prog_cc_g = yes; then
2682   if test "$GCC" = yes; then
2683     CFLAGS="-g -O2"
2684   else
2685     CFLAGS="-g"
2686   fi
2687 else
2688   if test "$GCC" = yes; then
2689     CFLAGS="-O2"
2690   else
2691     CFLAGS=
2692   fi
2693 fi
2694 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2695 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2696 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   ac_cv_prog_cc_stdc=no
2700 ac_save_CC=$CC
2701 cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707 #include <stdarg.h>
2708 #include <stdio.h>
2709 #include <sys/types.h>
2710 #include <sys/stat.h>
2711 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2712 struct buf { int x; };
2713 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2714 static char *e (p, i)
2715      char **p;
2716      int i;
2717 {
2718   return p[i];
2719 }
2720 static char *f (char * (*g) (char **, int), char **p, ...)
2721 {
2722   char *s;
2723   va_list v;
2724   va_start (v,p);
2725   s = g (p, va_arg (v,int));
2726   va_end (v);
2727   return s;
2728 }
2729
2730 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2731    function prototypes and stuff, but not '\xHH' hex character constants.
2732    These don't provoke an error unfortunately, instead are silently treated
2733    as 'x'.  The following induces an error, until -std1 is added to get
2734    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2735    array size at least.  It's necessary to write '\x00'==0 to get something
2736    that's true only with -std1.  */
2737 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2738
2739 int test (int i, double x);
2740 struct s1 {int (*f) (int a);};
2741 struct s2 {int (*f) (double a);};
2742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2743 int argc;
2744 char **argv;
2745 int
2746 main ()
2747 {
2748 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 # Don't try gcc -ansi; that turns off useful extensions and
2754 # breaks some systems' header files.
2755 # AIX                   -qlanglvl=ansi
2756 # Ultrix and OSF/1      -std1
2757 # HP-UX 10.20 and later -Ae
2758 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2759 # SVR4                  -Xc -D__EXTENSIONS__
2760 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2761 do
2762   CC="$ac_save_CC $ac_arg"
2763   rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -z "$ac_c_werror_flag"
2773                          || test ! -s conftest.err'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; } &&
2779          { ac_try='test -s conftest.$ac_objext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   ac_cv_prog_cc_stdc=$ac_arg
2786 break
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 fi
2792 rm -f conftest.err conftest.$ac_objext
2793 done
2794 rm -f conftest.$ac_ext conftest.$ac_objext
2795 CC=$ac_save_CC
2796
2797 fi
2798
2799 case "x$ac_cv_prog_cc_stdc" in
2800   x|xno)
2801     echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6 ;;
2803   *)
2804     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2805 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2806     CC="$CC $ac_cv_prog_cc_stdc" ;;
2807 esac
2808
2809 # Some people use a C++ compiler to compile C.  Since we use `exit',
2810 # in C++ we need to declare it.  In case someone uses the same compiler
2811 # for both compiling C and C++ we need to have the C++ compiler decide
2812 # the declaration of exit, since it's the most demanding environment.
2813 cat >conftest.$ac_ext <<_ACEOF
2814 #ifndef __cplusplus
2815   choke me
2816 #endif
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820   (eval $ac_compile) 2>conftest.er1
2821   ac_status=$?
2822   grep -v '^ *+' conftest.er1 >conftest.err
2823   rm -f conftest.er1
2824   cat conftest.err >&5
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); } &&
2827          { ac_try='test -z "$ac_c_werror_flag"
2828                          || test ! -s conftest.err'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; } &&
2834          { ac_try='test -s conftest.$ac_objext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   for ac_declaration in \
2841    '' \
2842    'extern "C" void std::exit (int) throw (); using std::exit;' \
2843    'extern "C" void std::exit (int); using std::exit;' \
2844    'extern "C" void exit (int) throw ();' \
2845    'extern "C" void exit (int);' \
2846    'void exit (int);'
2847 do
2848   cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854 $ac_declaration
2855 #include <stdlib.h>
2856 int
2857 main ()
2858 {
2859 exit (42);
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866   (eval $ac_compile) 2>conftest.er1
2867   ac_status=$?
2868   grep -v '^ *+' conftest.er1 >conftest.err
2869   rm -f conftest.er1
2870   cat conftest.err >&5
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); } &&
2873          { ac_try='test -z "$ac_c_werror_flag"
2874                          || test ! -s conftest.err'
2875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876   (eval $ac_try) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }; } &&
2880          { ac_try='test -s conftest.$ac_objext'
2881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882   (eval $ac_try) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; }; then
2886   :
2887 else
2888   echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2890
2891 continue
2892 fi
2893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894   cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h.  */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h.  */
2900 $ac_declaration
2901 int
2902 main ()
2903 {
2904 exit (42);
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911   (eval $ac_compile) 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } &&
2918          { ac_try='test -z "$ac_c_werror_flag"
2919                          || test ! -s conftest.err'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; } &&
2925          { ac_try='test -s conftest.$ac_objext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   break
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 fi
2937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2938 done
2939 rm -f conftest*
2940 if test -n "$ac_declaration"; then
2941   echo '#ifdef __cplusplus' >>confdefs.h
2942   echo $ac_declaration      >>confdefs.h
2943   echo '#endif'             >>confdefs.h
2944 fi
2945
2946 else
2947   echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 fi
2951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952 ac_ext=c
2953 ac_cpp='$CPP $CPPFLAGS'
2954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957
2958 depcc="$CC"   am_compiler_list=
2959
2960 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2961 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2962 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2963   echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2966   # We make a subdir and do the tests there.  Otherwise we can end up
2967   # making bogus files that we don't know about and never remove.  For
2968   # instance it was reported that on HP-UX the gcc test will end up
2969   # making a dummy file named `D' -- because `-MD' means `put the output
2970   # in D'.
2971   mkdir conftest.dir
2972   # Copy depcomp to subdir because otherwise we won't find it if we're
2973   # using a relative directory.
2974   cp "$am_depcomp" conftest.dir
2975   cd conftest.dir
2976
2977   am_cv_CC_dependencies_compiler_type=none
2978   if test "$am_compiler_list" = ""; then
2979      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2980   fi
2981   for depmode in $am_compiler_list; do
2982     # We need to recreate these files for each test, as the compiler may
2983     # overwrite some of them when testing with obscure command lines.
2984     # This happens at least with the AIX C compiler.
2985     echo '#include "conftest.h"' > conftest.c
2986     echo 'int i;' > conftest.h
2987     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2988
2989     case $depmode in
2990     nosideeffect)
2991       # after this tag, mechanisms are not by side-effect, so they'll
2992       # only be used when explicitly requested
2993       if test "x$enable_dependency_tracking" = xyes; then
2994         continue
2995       else
2996         break
2997       fi
2998       ;;
2999     none) break ;;
3000     esac
3001     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3002     # mode.  It turns out that the SunPro C++ compiler does not properly
3003     # handle `-M -o', and we need to detect this.
3004     if depmode=$depmode \
3005        source=conftest.c object=conftest.o \
3006        depfile=conftest.Po tmpdepfile=conftest.TPo \
3007        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3008        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3009        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3010       am_cv_CC_dependencies_compiler_type=$depmode
3011       break
3012     fi
3013   done
3014
3015   cd ..
3016   rm -rf conftest.dir
3017 else
3018   am_cv_CC_dependencies_compiler_type=none
3019 fi
3020
3021 fi
3022 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3023 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3024 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3025
3026
3027
3028
3029         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3030 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3031 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   ac_check_lib_save_LIBS=$LIBS
3035 LIBS="-lcposix  $LIBS"
3036 cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042
3043 /* Override any gcc2 internal prototype to avoid an error.  */
3044 #ifdef __cplusplus
3045 extern "C"
3046 #endif
3047 /* We use char because int might match the return type of a gcc2
3048    builtin and then its argument prototype would still apply.  */
3049 char strerror ();
3050 int
3051 main ()
3052 {
3053 strerror ();
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext conftest$ac_exeext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060   (eval $ac_link) 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } &&
3067          { ac_try='test -z "$ac_c_werror_flag"
3068                          || test ! -s conftest.err'
3069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070   (eval $ac_try) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; } &&
3074          { ac_try='test -s conftest$ac_exeext'
3075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076   (eval $ac_try) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   ac_cv_lib_cposix_strerror=yes
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 ac_cv_lib_cposix_strerror=no
3086 fi
3087 rm -f conftest.err conftest.$ac_objext \
3088       conftest$ac_exeext conftest.$ac_ext
3089 LIBS=$ac_check_lib_save_LIBS
3090 fi
3091 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3092 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3093 if test $ac_cv_lib_cposix_strerror = yes; then
3094   LIBS="$LIBS -lcposix"
3095 fi
3096
3097
3098
3099
3100 ac_ext=c
3101 ac_cpp='$CPP $CPPFLAGS'
3102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 if test -n "$ac_tool_prefix"; then
3106   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3108 echo "$as_me:$LINENO: checking for $ac_word" >&5
3109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3110 if test "${ac_cv_prog_CC+set}" = set; then
3111   echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113   if test -n "$CC"; then
3114   ac_cv_prog_CC="$CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121   for ac_exec_ext in '' $ac_executable_extensions; do
3122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3125     break 2
3126   fi
3127 done
3128 done
3129
3130 fi
3131 fi
3132 CC=$ac_cv_prog_CC
3133 if test -n "$CC"; then
3134   echo "$as_me:$LINENO: result: $CC" >&5
3135 echo "${ECHO_T}$CC" >&6
3136 else
3137   echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6
3139 fi
3140
3141 fi
3142 if test -z "$ac_cv_prog_CC"; then
3143   ac_ct_CC=$CC
3144   # Extract the first word of "gcc", so it can be a program name with args.
3145 set dummy gcc; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   if test -n "$ac_ct_CC"; then
3152   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157   IFS=$as_save_IFS
3158   test -z "$as_dir" && as_dir=.
3159   for ac_exec_ext in '' $ac_executable_extensions; do
3160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161     ac_cv_prog_ac_ct_CC="gcc"
3162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166 done
3167
3168 fi
3169 fi
3170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171 if test -n "$ac_ct_CC"; then
3172   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3173 echo "${ECHO_T}$ac_ct_CC" >&6
3174 else
3175   echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3177 fi
3178
3179   CC=$ac_ct_CC
3180 else
3181   CC="$ac_cv_prog_CC"
3182 fi
3183
3184 if test -z "$CC"; then
3185   if test -n "$ac_tool_prefix"; then
3186   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}cc; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_CC+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if test -n "$CC"; then
3194   ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201   for ac_exec_ext in '' $ac_executable_extensions; do
3202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_prog_CC="${ac_tool_prefix}cc"
3204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208 done
3209
3210 fi
3211 fi
3212 CC=$ac_cv_prog_CC
3213 if test -n "$CC"; then
3214   echo "$as_me:$LINENO: result: $CC" >&5
3215 echo "${ECHO_T}$CC" >&6
3216 else
3217   echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 fi
3220
3221 fi
3222 if test -z "$ac_cv_prog_CC"; then
3223   ac_ct_CC=$CC
3224   # Extract the first word of "cc", so it can be a program name with args.
3225 set dummy cc; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   if test -n "$ac_ct_CC"; then
3232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239   for ac_exec_ext in '' $ac_executable_extensions; do
3240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241     ac_cv_prog_ac_ct_CC="cc"
3242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246 done
3247
3248 fi
3249 fi
3250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3253 echo "${ECHO_T}$ac_ct_CC" >&6
3254 else
3255   echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3257 fi
3258
3259   CC=$ac_ct_CC
3260 else
3261   CC="$ac_cv_prog_CC"
3262 fi
3263
3264 fi
3265 if test -z "$CC"; then
3266   # Extract the first word of "cc", so it can be a program name with args.
3267 set dummy cc; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_prog_CC+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   if test -n "$CC"; then
3274   ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276   ac_prog_rejected=no
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282   for ac_exec_ext in '' $ac_executable_extensions; do
3283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3285        ac_prog_rejected=yes
3286        continue
3287      fi
3288     ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
3296   # We found a bogon in the path, so make sure we never use it.
3297   set dummy $ac_cv_prog_CC
3298   shift
3299   if test $# != 0; then
3300     # We chose a different compiler from the bogus one.
3301     # However, it has the same basename, so the bogon will be chosen
3302     # first if we set CC to just the basename; use the full file name.
3303     shift
3304     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3305   fi
3306 fi
3307 fi
3308 fi
3309 CC=$ac_cv_prog_CC
3310 if test -n "$CC"; then
3311   echo "$as_me:$LINENO: result: $CC" >&5
3312 echo "${ECHO_T}$CC" >&6
3313 else
3314   echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6
3316 fi
3317
3318 fi
3319 if test -z "$CC"; then
3320   if test -n "$ac_tool_prefix"; then
3321   for ac_prog in cl
3322   do
3323     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3325 echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327 if test "${ac_cv_prog_CC+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   if test -n "$CC"; then
3331   ac_cv_prog_CC="$CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338   for ac_exec_ext in '' $ac_executable_extensions; do
3339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345 done
3346
3347 fi
3348 fi
3349 CC=$ac_cv_prog_CC
3350 if test -n "$CC"; then
3351   echo "$as_me:$LINENO: result: $CC" >&5
3352 echo "${ECHO_T}$CC" >&6
3353 else
3354   echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3356 fi
3357
3358     test -n "$CC" && break
3359   done
3360 fi
3361 if test -z "$CC"; then
3362   ac_ct_CC=$CC
3363   for ac_prog in cl
3364 do
3365   # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   if test -n "$ac_ct_CC"; then
3373   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380   for ac_exec_ext in '' $ac_executable_extensions; do
3381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382     ac_cv_prog_ac_ct_CC="$ac_prog"
3383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387 done
3388
3389 fi
3390 fi
3391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392 if test -n "$ac_ct_CC"; then
3393   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3394 echo "${ECHO_T}$ac_ct_CC" >&6
3395 else
3396   echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3398 fi
3399
3400   test -n "$ac_ct_CC" && break
3401 done
3402
3403   CC=$ac_ct_CC
3404 fi
3405
3406 fi
3407
3408
3409 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3410 See \`config.log' for more details." >&5
3411 echo "$as_me: error: no acceptable C compiler found in \$PATH
3412 See \`config.log' for more details." >&2;}
3413    { (exit 1); exit 1; }; }
3414
3415 # Provide some information about the compiler.
3416 echo "$as_me:$LINENO:" \
3417      "checking for C compiler version" >&5
3418 ac_compiler=`set X $ac_compile; echo $2`
3419 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3420   (eval $ac_compiler --version </dev/null >&5) 2>&5
3421   ac_status=$?
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); }
3424 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3425   (eval $ac_compiler -v </dev/null >&5) 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); }
3429 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3430   (eval $ac_compiler -V </dev/null >&5) 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }
3434
3435 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446
3447 int
3448 main ()
3449 {
3450 #ifndef __GNUC__
3451        choke me
3452 #endif
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460   (eval $ac_compile) 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } &&
3467          { ac_try='test -z "$ac_c_werror_flag"
3468                          || test ! -s conftest.err'
3469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470   (eval $ac_try) 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }; } &&
3474          { ac_try='test -s conftest.$ac_objext'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; }; then
3480   ac_compiler_gnu=yes
3481 else
3482   echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ac_compiler_gnu=no
3486 fi
3487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489
3490 fi
3491 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3492 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3493 GCC=`test $ac_compiler_gnu = yes && echo yes`
3494 ac_test_CFLAGS=${CFLAGS+set}
3495 ac_save_CFLAGS=$CFLAGS
3496 CFLAGS="-g"
3497 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3498 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3499 if test "${ac_cv_prog_cc_g+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519   (eval $ac_compile) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } &&
3526          { ac_try='test -z "$ac_c_werror_flag"
3527                          || test ! -s conftest.err'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; } &&
3533          { ac_try='test -s conftest.$ac_objext'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; }; then
3539   ac_cv_prog_cc_g=yes
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 ac_cv_prog_cc_g=no
3545 fi
3546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3549 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3550 if test "$ac_test_CFLAGS" = set; then
3551   CFLAGS=$ac_save_CFLAGS
3552 elif test $ac_cv_prog_cc_g = yes; then
3553   if test "$GCC" = yes; then
3554     CFLAGS="-g -O2"
3555   else
3556     CFLAGS="-g"
3557   fi
3558 else
3559   if test "$GCC" = yes; then
3560     CFLAGS="-O2"
3561   else
3562     CFLAGS=
3563   fi
3564 fi
3565 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3566 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3567 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   ac_cv_prog_cc_stdc=no
3571 ac_save_CC=$CC
3572 cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h.  */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h.  */
3578 #include <stdarg.h>
3579 #include <stdio.h>
3580 #include <sys/types.h>
3581 #include <sys/stat.h>
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3586      char **p;
3587      int i;
3588 {
3589   return p[i];
3590 }
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3592 {
3593   char *s;
3594   va_list v;
3595   va_start (v,p);
3596   s = g (p, va_arg (v,int));
3597   va_end (v);
3598   return s;
3599 }
3600
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3602    function prototypes and stuff, but not '\xHH' hex character constants.
3603    These don't provoke an error unfortunately, instead are silently treated
3604    as 'x'.  The following induces an error, until -std1 is added to get
3605    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3606    array size at least.  It's necessary to write '\x00'==0 to get something
3607    that's true only with -std1.  */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609
3610 int test (int i, double x);
3611 struct s1 {int (*f) (int a);};
3612 struct s2 {int (*f) (double a);};
3613 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3614 int argc;
3615 char **argv;
3616 int
3617 main ()
3618 {
3619 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3620   ;
3621   return 0;
3622 }
3623 _ACEOF
3624 # Don't try gcc -ansi; that turns off useful extensions and
3625 # breaks some systems' header files.
3626 # AIX                   -qlanglvl=ansi
3627 # Ultrix and OSF/1      -std1
3628 # HP-UX 10.20 and later -Ae
3629 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3630 # SVR4                  -Xc -D__EXTENSIONS__
3631 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632 do
3633   CC="$ac_save_CC $ac_arg"
3634   rm -f conftest.$ac_objext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636   (eval $ac_compile) 2>conftest.er1
3637   ac_status=$?
3638   grep -v '^ *+' conftest.er1 >conftest.err
3639   rm -f conftest.er1
3640   cat conftest.err >&5
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); } &&
3643          { ac_try='test -z "$ac_c_werror_flag"
3644                          || test ! -s conftest.err'
3645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646   (eval $ac_try) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; } &&
3650          { ac_try='test -s conftest.$ac_objext'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; }; then
3656   ac_cv_prog_cc_stdc=$ac_arg
3657 break
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 fi
3663 rm -f conftest.err conftest.$ac_objext
3664 done
3665 rm -f conftest.$ac_ext conftest.$ac_objext
3666 CC=$ac_save_CC
3667
3668 fi
3669
3670 case "x$ac_cv_prog_cc_stdc" in
3671   x|xno)
3672     echo "$as_me:$LINENO: result: none needed" >&5
3673 echo "${ECHO_T}none needed" >&6 ;;
3674   *)
3675     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3676 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3677     CC="$CC $ac_cv_prog_cc_stdc" ;;
3678 esac
3679
3680 # Some people use a C++ compiler to compile C.  Since we use `exit',
3681 # in C++ we need to declare it.  In case someone uses the same compiler
3682 # for both compiling C and C++ we need to have the C++ compiler decide
3683 # the declaration of exit, since it's the most demanding environment.
3684 cat >conftest.$ac_ext <<_ACEOF
3685 #ifndef __cplusplus
3686   choke me
3687 #endif
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691   (eval $ac_compile) 2>conftest.er1
3692   ac_status=$?
3693   grep -v '^ *+' conftest.er1 >conftest.err
3694   rm -f conftest.er1
3695   cat conftest.err >&5
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); } &&
3698          { ac_try='test -z "$ac_c_werror_flag"
3699                          || test ! -s conftest.err'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; } &&
3705          { ac_try='test -s conftest.$ac_objext'
3706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707   (eval $ac_try) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; }; then
3711   for ac_declaration in \
3712    '' \
3713    'extern "C" void std::exit (int) throw (); using std::exit;' \
3714    'extern "C" void std::exit (int); using std::exit;' \
3715    'extern "C" void exit (int) throw ();' \
3716    'extern "C" void exit (int);' \
3717    'void exit (int);'
3718 do
3719   cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 $ac_declaration
3726 #include <stdlib.h>
3727 int
3728 main ()
3729 {
3730 exit (42);
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737   (eval $ac_compile) 2>conftest.er1
3738   ac_status=$?
3739   grep -v '^ *+' conftest.er1 >conftest.err
3740   rm -f conftest.er1
3741   cat conftest.err >&5
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); } &&
3744          { ac_try='test -z "$ac_c_werror_flag"
3745                          || test ! -s conftest.err'
3746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; } &&
3751          { ac_try='test -s conftest.$ac_objext'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   :
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 continue
3763 fi
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765   cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h.  */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h.  */
3771 $ac_declaration
3772 int
3773 main ()
3774 {
3775 exit (42);
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 rm -f conftest.$ac_objext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782   (eval $ac_compile) 2>conftest.er1
3783   ac_status=$?
3784   grep -v '^ *+' conftest.er1 >conftest.err
3785   rm -f conftest.er1
3786   cat conftest.err >&5
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); } &&
3789          { ac_try='test -z "$ac_c_werror_flag"
3790                          || test ! -s conftest.err'
3791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); }; } &&
3796          { ac_try='test -s conftest.$ac_objext'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; }; then
3802   break
3803 else
3804   echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 fi
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3809 done
3810 rm -f conftest*
3811 if test -n "$ac_declaration"; then
3812   echo '#ifdef __cplusplus' >>confdefs.h
3813   echo $ac_declaration      >>confdefs.h
3814   echo '#endif'             >>confdefs.h
3815 fi
3816
3817 else
3818   echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 fi
3822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828
3829 depcc="$CC"   am_compiler_list=
3830
3831 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3832 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3833 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3837   # We make a subdir and do the tests there.  Otherwise we can end up
3838   # making bogus files that we don't know about and never remove.  For
3839   # instance it was reported that on HP-UX the gcc test will end up
3840   # making a dummy file named `D' -- because `-MD' means `put the output
3841   # in D'.
3842   mkdir conftest.dir
3843   # Copy depcomp to subdir because otherwise we won't find it if we're
3844   # using a relative directory.
3845   cp "$am_depcomp" conftest.dir
3846   cd conftest.dir
3847
3848   am_cv_CC_dependencies_compiler_type=none
3849   if test "$am_compiler_list" = ""; then
3850      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3851   fi
3852   for depmode in $am_compiler_list; do
3853     # We need to recreate these files for each test, as the compiler may
3854     # overwrite some of them when testing with obscure command lines.
3855     # This happens at least with the AIX C compiler.
3856     echo '#include "conftest.h"' > conftest.c
3857     echo 'int i;' > conftest.h
3858     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3859
3860     case $depmode in
3861     nosideeffect)
3862       # after this tag, mechanisms are not by side-effect, so they'll
3863       # only be used when explicitly requested
3864       if test "x$enable_dependency_tracking" = xyes; then
3865         continue
3866       else
3867         break
3868       fi
3869       ;;
3870     none) break ;;
3871     esac
3872     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3873     # mode.  It turns out that the SunPro C++ compiler does not properly
3874     # handle `-M -o', and we need to detect this.
3875     if depmode=$depmode \
3876        source=conftest.c object=conftest.o \
3877        depfile=conftest.Po tmpdepfile=conftest.TPo \
3878        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3879        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3880        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3881       am_cv_CC_dependencies_compiler_type=$depmode
3882       break
3883     fi
3884   done
3885
3886   cd ..
3887   rm -rf conftest.dir
3888 else
3889   am_cv_CC_dependencies_compiler_type=none
3890 fi
3891
3892 fi
3893 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3894 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3895 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3896
3897
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3905 # On Suns, sometimes $CPP names a directory.
3906 if test -n "$CPP" && test -d "$CPP"; then
3907   CPP=
3908 fi
3909 if test -z "$CPP"; then
3910   if test "${ac_cv_prog_CPP+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913       # Double quotes because CPP needs to be expanded
3914     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3915     do
3916       ac_preproc_ok=false
3917 for ac_c_preproc_warn_flag in '' yes
3918 do
3919   # Use a header file that comes with gcc, so configuring glibc
3920   # with a fresh cross-compiler works.
3921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3922   # <limits.h> exists even on freestanding compilers.
3923   # On the NeXT, cc -E runs the code through the compiler's parser,
3924   # not just through cpp. "Syntax error" is here to catch this case.
3925   cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h.  */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h.  */
3931 #ifdef __STDC__
3932 # include <limits.h>
3933 #else
3934 # include <assert.h>
3935 #endif
3936                      Syntax error
3937 _ACEOF
3938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3940   ac_status=$?
3941   grep -v '^ *+' conftest.er1 >conftest.err
3942   rm -f conftest.er1
3943   cat conftest.err >&5
3944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945   (exit $ac_status); } >/dev/null; then
3946   if test -s conftest.err; then
3947     ac_cpp_err=$ac_c_preproc_warn_flag
3948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3949   else
3950     ac_cpp_err=
3951   fi
3952 else
3953   ac_cpp_err=yes
3954 fi
3955 if test -z "$ac_cpp_err"; then
3956   :
3957 else
3958   echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3960
3961   # Broken: fails on valid input.
3962 continue
3963 fi
3964 rm -f conftest.err conftest.$ac_ext
3965
3966   # OK, works on sane cases.  Now check whether non-existent headers
3967   # can be detected and how.
3968   cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h.  */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h.  */
3974 #include <ac_nonexistent.h>
3975 _ACEOF
3976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3978   ac_status=$?
3979   grep -v '^ *+' conftest.er1 >conftest.err
3980   rm -f conftest.er1
3981   cat conftest.err >&5
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); } >/dev/null; then
3984   if test -s conftest.err; then
3985     ac_cpp_err=$ac_c_preproc_warn_flag
3986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3987   else
3988     ac_cpp_err=
3989   fi
3990 else
3991   ac_cpp_err=yes
3992 fi
3993 if test -z "$ac_cpp_err"; then
3994   # Broken: success on invalid input.
3995 continue
3996 else
3997   echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000   # Passes both tests.
4001 ac_preproc_ok=:
4002 break
4003 fi
4004 rm -f conftest.err conftest.$ac_ext
4005
4006 done
4007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4008 rm -f conftest.err conftest.$ac_ext
4009 if $ac_preproc_ok; then
4010   break
4011 fi
4012
4013     done
4014     ac_cv_prog_CPP=$CPP
4015
4016 fi
4017   CPP=$ac_cv_prog_CPP
4018 else
4019   ac_cv_prog_CPP=$CPP
4020 fi
4021 echo "$as_me:$LINENO: result: $CPP" >&5
4022 echo "${ECHO_T}$CPP" >&6
4023 ac_preproc_ok=false
4024 for ac_c_preproc_warn_flag in '' yes
4025 do
4026   # Use a header file that comes with gcc, so configuring glibc
4027   # with a fresh cross-compiler works.
4028   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4029   # <limits.h> exists even on freestanding compilers.
4030   # On the NeXT, cc -E runs the code through the compiler's parser,
4031   # not just through cpp. "Syntax error" is here to catch this case.
4032   cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h.  */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h.  */
4038 #ifdef __STDC__
4039 # include <limits.h>
4040 #else
4041 # include <assert.h>
4042 #endif
4043                      Syntax error
4044 _ACEOF
4045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4047   ac_status=$?
4048   grep -v '^ *+' conftest.er1 >conftest.err
4049   rm -f conftest.er1
4050   cat conftest.err >&5
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); } >/dev/null; then
4053   if test -s conftest.err; then
4054     ac_cpp_err=$ac_c_preproc_warn_flag
4055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4056   else
4057     ac_cpp_err=
4058   fi
4059 else
4060   ac_cpp_err=yes
4061 fi
4062 if test -z "$ac_cpp_err"; then
4063   :
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068   # Broken: fails on valid input.
4069 continue
4070 fi
4071 rm -f conftest.err conftest.$ac_ext
4072
4073   # OK, works on sane cases.  Now check whether non-existent headers
4074   # can be detected and how.
4075   cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 #include <ac_nonexistent.h>
4082 _ACEOF
4083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4085   ac_status=$?
4086   grep -v '^ *+' conftest.er1 >conftest.err
4087   rm -f conftest.er1
4088   cat conftest.err >&5
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); } >/dev/null; then
4091   if test -s conftest.err; then
4092     ac_cpp_err=$ac_c_preproc_warn_flag
4093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4094   else
4095     ac_cpp_err=
4096   fi
4097 else
4098   ac_cpp_err=yes
4099 fi
4100 if test -z "$ac_cpp_err"; then
4101   # Broken: success on invalid input.
4102 continue
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107   # Passes both tests.
4108 ac_preproc_ok=:
4109 break
4110 fi
4111 rm -f conftest.err conftest.$ac_ext
4112
4113 done
4114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4115 rm -f conftest.err conftest.$ac_ext
4116 if $ac_preproc_ok; then
4117   :
4118 else
4119   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4120 See \`config.log' for more details." >&5
4121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4122 See \`config.log' for more details." >&2;}
4123    { (exit 1); exit 1; }; }
4124 fi
4125
4126 ac_ext=c
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131
4132
4133 echo "$as_me:$LINENO: checking for egrep" >&5
4134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4135 if test "${ac_cv_prog_egrep+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4139     then ac_cv_prog_egrep='grep -E'
4140     else ac_cv_prog_egrep='egrep'
4141     fi
4142 fi
4143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4145  EGREP=$ac_cv_prog_egrep
4146
4147
4148 if test $ac_cv_c_compiler_gnu = yes; then
4149     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154     ac_pattern="Autoconf.*'x'"
4155   cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161 #include <sgtty.h>
4162 Autoconf TIOCGETP
4163 _ACEOF
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4166   ac_cv_prog_gcc_traditional=yes
4167 else
4168   ac_cv_prog_gcc_traditional=no
4169 fi
4170 rm -f conftest*
4171
4172
4173   if test $ac_cv_prog_gcc_traditional = no; then
4174     cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h.  */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h.  */
4180 #include <termio.h>
4181 Autoconf TCGETA
4182 _ACEOF
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4185   ac_cv_prog_gcc_traditional=yes
4186 fi
4187 rm -f conftest*
4188
4189   fi
4190 fi
4191 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4193   if test $ac_cv_prog_gcc_traditional = yes; then
4194     CC="$CC -traditional"
4195   fi
4196 fi
4197
4198
4199
4200
4201 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4202 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4203 if test "${am_cv_prog_cc_stdc+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   am_cv_prog_cc_stdc=no
4207 ac_save_CC="$CC"
4208 # Don't try gcc -ansi; that turns off useful extensions and
4209 # breaks some systems' header files.
4210 # AIX                   -qlanglvl=ansi
4211 # Ultrix and OSF/1      -std1
4212 # HP-UX 10.20 and later -Ae
4213 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4214 # SVR4                  -Xc -D__EXTENSIONS__
4215 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4216 do
4217   CC="$ac_save_CC $ac_arg"
4218   cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 #include <stdarg.h>
4225 #include <stdio.h>
4226 #include <sys/types.h>
4227 #include <sys/stat.h>
4228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4229 struct buf { int x; };
4230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4231 static char *e (p, i)
4232      char **p;
4233      int i;
4234 {
4235   return p[i];
4236 }
4237 static char *f (char * (*g) (char **, int), char **p, ...)
4238 {
4239   char *s;
4240   va_list v;
4241   va_start (v,p);
4242   s = g (p, va_arg (v,int));
4243   va_end (v);
4244   return s;
4245 }
4246 int test (int i, double x);
4247 struct s1 {int (*f) (int a);};
4248 struct s2 {int (*f) (double a);};
4249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4250 int argc;
4251 char **argv;
4252
4253 int
4254 main ()
4255 {
4256
4257 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265   (eval $ac_compile) 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } &&
4272          { ac_try='test -z "$ac_c_werror_flag"
4273                          || test ! -s conftest.err'
4274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275   (eval $ac_try) 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }; } &&
4279          { ac_try='test -s conftest.$ac_objext'
4280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281   (eval $ac_try) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; }; then
4285   am_cv_prog_cc_stdc="$ac_arg"; break
4286 else
4287   echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 fi
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292 done
4293 CC="$ac_save_CC"
4294
4295 fi
4296
4297 if test -z "$am_cv_prog_cc_stdc"; then
4298   echo "$as_me:$LINENO: result: none needed" >&5
4299 echo "${ECHO_T}none needed" >&6
4300 else
4301   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4302 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4303 fi
4304 case "x$am_cv_prog_cc_stdc" in
4305   x|xno) ;;
4306   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4307 esac
4308
4309 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4320                   inttypes.h stdint.h unistd.h
4321 do
4322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4323 echo "$as_me:$LINENO: checking for $ac_header" >&5
4324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334 $ac_includes_default
4335
4336 #include <$ac_header>
4337 _ACEOF
4338 rm -f conftest.$ac_objext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340   (eval $ac_compile) 2>conftest.er1
4341   ac_status=$?
4342   grep -v '^ *+' conftest.er1 >conftest.err
4343   rm -f conftest.er1
4344   cat conftest.err >&5
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); } &&
4347          { ac_try='test -z "$ac_c_werror_flag"
4348                          || test ! -s conftest.err'
4349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350   (eval $ac_try) 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; } &&
4354          { ac_try='test -s conftest.$ac_objext'
4355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356   (eval $ac_try) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; }; then
4360   eval "$as_ac_Header=yes"
4361 else
4362   echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 eval "$as_ac_Header=no"
4366 fi
4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4368 fi
4369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4372   cat >>confdefs.h <<_ACEOF
4373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374 _ACEOF
4375
4376 fi
4377
4378 done
4379
4380
4381
4382
4383 echo "$as_me:$LINENO: checking for function prototypes" >&5
4384 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4385 if test "$am_cv_prog_cc_stdc" != no; then
4386   echo "$as_me:$LINENO: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4388
4389 cat >>confdefs.h <<\_ACEOF
4390 #define PROTOTYPES 1
4391 _ACEOF
4392
4393   U= ANSI2KNR=
4394 else
4395   echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6
4397   U=_ ANSI2KNR=./ansi2knr
4398 fi
4399 # Ensure some checks needed by ansi2knr itself.
4400 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4401 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4402 if test "${ac_cv_header_stdc+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h.  */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h.  */
4411 #include <stdlib.h>
4412 #include <stdarg.h>
4413 #include <string.h>
4414 #include <float.h>
4415
4416 int
4417 main ()
4418 {
4419
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 rm -f conftest.$ac_objext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426   (eval $ac_compile) 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } &&
4433          { ac_try='test -z "$ac_c_werror_flag"
4434                          || test ! -s conftest.err'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; } &&
4440          { ac_try='test -s conftest.$ac_objext'
4441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442   (eval $ac_try) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; }; then
4446   ac_cv_header_stdc=yes
4447 else
4448   echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 ac_cv_header_stdc=no
4452 fi
4453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4454
4455 if test $ac_cv_header_stdc = yes; then
4456   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4457   cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463 #include <string.h>
4464
4465 _ACEOF
4466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4467   $EGREP "memchr" >/dev/null 2>&1; then
4468   :
4469 else
4470   ac_cv_header_stdc=no
4471 fi
4472 rm -f conftest*
4473
4474 fi
4475
4476 if test $ac_cv_header_stdc = yes; then
4477   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4478   cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h.  */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h.  */
4484 #include <stdlib.h>
4485
4486 _ACEOF
4487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488   $EGREP "free" >/dev/null 2>&1; then
4489   :
4490 else
4491   ac_cv_header_stdc=no
4492 fi
4493 rm -f conftest*
4494
4495 fi
4496
4497 if test $ac_cv_header_stdc = yes; then
4498   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4499   if test "$cross_compiling" = yes; then
4500   :
4501 else
4502   cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h.  */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h.  */
4508 #include <ctype.h>
4509 #if ((' ' & 0x0FF) == 0x020)
4510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4512 #else
4513 # define ISLOWER(c) \
4514                    (('a' <= (c) && (c) <= 'i') \
4515                      || ('j' <= (c) && (c) <= 'r') \
4516                      || ('s' <= (c) && (c) <= 'z'))
4517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4518 #endif
4519
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 int
4522 main ()
4523 {
4524   int i;
4525   for (i = 0; i < 256; i++)
4526     if (XOR (islower (i), ISLOWER (i))
4527         || toupper (i) != TOUPPER (i))
4528       exit(2);
4529   exit (0);
4530 }
4531 _ACEOF
4532 rm -f conftest$ac_exeext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4534   (eval $ac_link) 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539   (eval $ac_try) 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); }; }; then
4543   :
4544 else
4545   echo "$as_me: program exited with status $ac_status" >&5
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549 ( exit $ac_status )
4550 ac_cv_header_stdc=no
4551 fi
4552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4553 fi
4554 fi
4555 fi
4556 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4557 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4558 if test $ac_cv_header_stdc = yes; then
4559
4560 cat >>confdefs.h <<\_ACEOF
4561 #define STDC_HEADERS 1
4562 _ACEOF
4563
4564 fi
4565
4566
4567 for ac_header in string.h
4568 do
4569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571   echo "$as_me:$LINENO: checking for $ac_header" >&5
4572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 fi
4576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4578 else
4579   # Is the header compilable?
4580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4582 cat >conftest.$ac_ext <<_ACEOF
4583 /* confdefs.h.  */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h.  */
4588 $ac_includes_default
4589 #include <$ac_header>
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593   (eval $ac_compile) 2>conftest.er1
4594   ac_status=$?
4595   grep -v '^ *+' conftest.er1 >conftest.err
4596   rm -f conftest.er1
4597   cat conftest.err >&5
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); } &&
4600          { ac_try='test -z "$ac_c_werror_flag"
4601                          || test ! -s conftest.err'
4602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603   (eval $ac_try) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; } &&
4607          { ac_try='test -s conftest.$ac_objext'
4608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609   (eval $ac_try) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; }; then
4613   ac_header_compiler=yes
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ac_header_compiler=no
4619 fi
4620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4622 echo "${ECHO_T}$ac_header_compiler" >&6
4623
4624 # Is the header present?
4625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633 #include <$ac_header>
4634 _ACEOF
4635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4637   ac_status=$?
4638   grep -v '^ *+' conftest.er1 >conftest.err
4639   rm -f conftest.er1
4640   cat conftest.err >&5
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } >/dev/null; then
4643   if test -s conftest.err; then
4644     ac_cpp_err=$ac_c_preproc_warn_flag
4645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4646   else
4647     ac_cpp_err=
4648   fi
4649 else
4650   ac_cpp_err=yes
4651 fi
4652 if test -z "$ac_cpp_err"; then
4653   ac_header_preproc=yes
4654 else
4655   echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658   ac_header_preproc=no
4659 fi
4660 rm -f conftest.err conftest.$ac_ext
4661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4662 echo "${ECHO_T}$ac_header_preproc" >&6
4663
4664 # So?  What about this header?
4665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4666   yes:no: )
4667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4671     ac_header_preproc=yes
4672     ;;
4673   no:yes:* )
4674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4686     (
4687       cat <<\_ASBOX
4688 ## ------------------------------------------ ##
4689 ## Report this to the AC_PACKAGE_NAME lists.  ##
4690 ## ------------------------------------------ ##
4691 _ASBOX
4692     ) |
4693       sed "s/^/$as_me: WARNING:     /" >&2
4694     ;;
4695 esac
4696 echo "$as_me:$LINENO: checking for $ac_header" >&5
4697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   eval "$as_ac_Header=\$ac_header_preproc"
4702 fi
4703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4705
4706 fi
4707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4708   cat >>confdefs.h <<_ACEOF
4709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710 _ACEOF
4711
4712 fi
4713
4714 done
4715
4716
4717
4718 # Check whether --enable-shared or --disable-shared was given.
4719 if test "${enable_shared+set}" = set; then
4720   enableval="$enable_shared"
4721   p=${PACKAGE-default}
4722 case $enableval in
4723 yes) enable_shared=yes ;;
4724 no) enable_shared=no ;;
4725 *)
4726   enable_shared=no
4727   # Look at the argument we got.  We use all the common list separators.
4728   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4729   for pkg in $enableval; do
4730     if test "X$pkg" = "X$p"; then
4731       enable_shared=yes
4732     fi
4733   done
4734   IFS="$ac_save_ifs"
4735   ;;
4736 esac
4737 else
4738   enable_shared=yes
4739 fi;
4740 # Check whether --enable-static or --disable-static was given.
4741 if test "${enable_static+set}" = set; then
4742   enableval="$enable_static"
4743   p=${PACKAGE-default}
4744 case $enableval in
4745 yes) enable_static=yes ;;
4746 no) enable_static=no ;;
4747 *)
4748   enable_static=no
4749   # Look at the argument we got.  We use all the common list separators.
4750   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4751   for pkg in $enableval; do
4752     if test "X$pkg" = "X$p"; then
4753       enable_static=yes
4754     fi
4755   done
4756   IFS="$ac_save_ifs"
4757   ;;
4758 esac
4759 else
4760   enable_static=yes
4761 fi;
4762 # Check whether --enable-fast-install or --disable-fast-install was given.
4763 if test "${enable_fast_install+set}" = set; then
4764   enableval="$enable_fast_install"
4765   p=${PACKAGE-default}
4766 case $enableval in
4767 yes) enable_fast_install=yes ;;
4768 no) enable_fast_install=no ;;
4769 *)
4770   enable_fast_install=no
4771   # Look at the argument we got.  We use all the common list separators.
4772   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4773   for pkg in $enableval; do
4774     if test "X$pkg" = "X$p"; then
4775       enable_fast_install=yes
4776     fi
4777   done
4778   IFS="$ac_save_ifs"
4779   ;;
4780 esac
4781 else
4782   enable_fast_install=yes
4783 fi;
4784 # Find the correct PATH separator.  Usually this is `:', but
4785 # DJGPP uses `;' like DOS.
4786 if test "X${PATH_SEPARATOR+set}" != Xset; then
4787   UNAME=${UNAME-`uname 2>/dev/null`}
4788   case X$UNAME in
4789     *-DOS) lt_cv_sys_path_separator=';' ;;
4790     *)     lt_cv_sys_path_separator=':' ;;
4791   esac
4792   PATH_SEPARATOR=$lt_cv_sys_path_separator
4793 fi
4794
4795
4796 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4797 if test "${with_gnu_ld+set}" = set; then
4798   withval="$with_gnu_ld"
4799   test "$withval" = no || with_gnu_ld=yes
4800 else
4801   with_gnu_ld=no
4802 fi;
4803 ac_prog=ld
4804 if test "$GCC" = yes; then
4805   # Check if gcc -print-prog-name=ld gives a path.
4806   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4807 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4808   case $host in
4809   *-*-mingw*)
4810     # gcc leaves a trailing carriage return which upsets mingw
4811     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4812   *)
4813     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4814   esac
4815   case $ac_prog in
4816     # Accept absolute paths.
4817     [\\/]* | [A-Za-z]:[\\/]*)
4818       re_direlt='/[^/][^/]*/\.\./'
4819       # Canonicalize the path of ld
4820       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4821       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4822         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4823       done
4824       test -z "$LD" && LD="$ac_prog"
4825       ;;
4826   "")
4827     # If it fails, then pretend we aren't using GCC.
4828     ac_prog=ld
4829     ;;
4830   *)
4831     # If it is relative, then search for the first ld in PATH.
4832     with_gnu_ld=unknown
4833     ;;
4834   esac
4835 elif test "$with_gnu_ld" = yes; then
4836   echo "$as_me:$LINENO: checking for GNU ld" >&5
4837 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4838 else
4839   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4840 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4841 fi
4842 if test "${lt_cv_path_LD+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   if test -z "$LD"; then
4846   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4847   for ac_dir in $PATH; do
4848     test -z "$ac_dir" && ac_dir=.
4849     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4850       lt_cv_path_LD="$ac_dir/$ac_prog"
4851       # Check to see if the program is GNU ld.  I'd rather use --version,
4852       # but apparently some GNU ld's only accept -v.
4853       # Break only if it was the GNU/non-GNU ld that we prefer.
4854       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4855         test "$with_gnu_ld" != no && break
4856       else
4857         test "$with_gnu_ld" != yes && break
4858       fi
4859     fi
4860   done
4861   IFS="$ac_save_ifs"
4862 else
4863   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4864 fi
4865 fi
4866
4867 LD="$lt_cv_path_LD"
4868 if test -n "$LD"; then
4869   echo "$as_me:$LINENO: result: $LD" >&5
4870 echo "${ECHO_T}$LD" >&6
4871 else
4872   echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4874 fi
4875 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4876 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4877    { (exit 1); exit 1; }; }
4878 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4879 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4880 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4884 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4885   lt_cv_prog_gnu_ld=yes
4886 else
4887   lt_cv_prog_gnu_ld=no
4888 fi
4889 fi
4890 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4891 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4892 with_gnu_ld=$lt_cv_prog_gnu_ld
4893
4894
4895 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4896 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4897 if test "${lt_cv_ld_reload_flag+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   lt_cv_ld_reload_flag='-r'
4901 fi
4902 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4903 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4904 reload_flag=$lt_cv_ld_reload_flag
4905 test -n "$reload_flag" && reload_flag=" $reload_flag"
4906
4907 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4908 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4909 if test "${lt_cv_path_NM+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   if test -n "$NM"; then
4913   # Let the user override the test.
4914   lt_cv_path_NM="$NM"
4915 else
4916   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4917   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4918     test -z "$ac_dir" && ac_dir=.
4919     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4920     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4921       # Check to see if the nm accepts a BSD-compat flag.
4922       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4923       #   nm: unknown option "B" ignored
4924       # Tru64's nm complains that /dev/null is an invalid object file
4925       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4926         lt_cv_path_NM="$tmp_nm -B"
4927         break
4928       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4929         lt_cv_path_NM="$tmp_nm -p"
4930         break
4931       else
4932         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4933         continue # so that we can try to find one that supports BSD flags
4934       fi
4935     fi
4936   done
4937   IFS="$ac_save_ifs"
4938   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4939 fi
4940 fi
4941
4942 NM="$lt_cv_path_NM"
4943 echo "$as_me:$LINENO: result: $NM" >&5
4944 echo "${ECHO_T}$NM" >&6
4945
4946 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4947 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4948 LN_S=$as_ln_s
4949 if test "$LN_S" = "ln -s"; then
4950   echo "$as_me:$LINENO: result: yes" >&5
4951 echo "${ECHO_T}yes" >&6
4952 else
4953   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4954 echo "${ECHO_T}no, using $LN_S" >&6
4955 fi
4956
4957 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4958 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4959 if test "${lt_cv_deplibs_check_method+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   lt_cv_file_magic_cmd='$MAGIC_CMD'
4963 lt_cv_file_magic_test_file=
4964 lt_cv_deplibs_check_method='unknown'
4965 # Need to set the preceding variable on all platforms that support
4966 # interlibrary dependencies.
4967 # 'none' -- dependencies not supported.
4968 # `unknown' -- same as none, but documents that we really don't know.
4969 # 'pass_all' -- all dependencies passed with no checks.
4970 # 'test_compile' -- check by making test program.
4971 # 'file_magic [[regex]]' -- check by looking for files in library path
4972 # which responds to the $file_magic_cmd with a given egrep regex.
4973 # If you have `file' or equivalent on your system and you're not sure
4974 # whether `pass_all' will *always* work, you probably want this one.
4975
4976 case $host_os in
4977 aix4* | aix5*)
4978   lt_cv_deplibs_check_method=pass_all
4979   ;;
4980
4981 beos*)
4982   lt_cv_deplibs_check_method=pass_all
4983   ;;
4984
4985 bsdi4*)
4986   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4987   lt_cv_file_magic_cmd='/usr/bin/file -L'
4988   lt_cv_file_magic_test_file=/shlib/libc.so
4989   ;;
4990
4991 cygwin* | mingw* | pw32*)
4992   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4993   lt_cv_file_magic_cmd='$OBJDUMP -f'
4994   ;;
4995
4996 darwin* | rhapsody*)
4997   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4998   lt_cv_file_magic_cmd='/usr/bin/file -L'
4999   case "$host_os" in
5000   rhapsody* | darwin1.[012])
5001     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
5002     ;;
5003   *) # Darwin 1.3 on
5004     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5005     ;;
5006   esac
5007   ;;
5008
5009 freebsd*)
5010   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5011     case $host_cpu in
5012     i*86 )
5013       # Not sure whether the presence of OpenBSD here was a mistake.
5014       # Let's accept both of them until this is cleared up.
5015       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5016       lt_cv_file_magic_cmd=/usr/bin/file
5017       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5018       ;;
5019     esac
5020   else
5021     lt_cv_deplibs_check_method=pass_all
5022   fi
5023   ;;
5024
5025 gnu*)
5026   lt_cv_deplibs_check_method=pass_all
5027   ;;
5028
5029 hpux10.20*|hpux11*)
5030   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5031   lt_cv_file_magic_cmd=/usr/bin/file
5032   lt_cv_file_magic_test_file=/usr/lib/libc.sl
5033   ;;
5034
5035 irix5* | irix6*)
5036   case $host_os in
5037   irix5*)
5038     # this will be overridden with pass_all, but let us keep it just in case
5039     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5040     ;;
5041   *)
5042     case $LD in
5043     *-32|*"-32 ") libmagic=32-bit;;
5044     *-n32|*"-n32 ") libmagic=N32;;
5045     *-64|*"-64 ") libmagic=64-bit;;
5046     *) libmagic=never-match;;
5047     esac
5048     # this will be overridden with pass_all, but let us keep it just in case
5049     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5050     ;;
5051   esac
5052   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5053   lt_cv_deplibs_check_method=pass_all
5054   ;;
5055
5056 # This must be Linux ELF.
5057 linux-gnu*)
5058   case $host_cpu in
5059   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
5060     lt_cv_deplibs_check_method=pass_all ;;
5061   *)
5062     # glibc up to 2.1.1 does not perform some relocations on ARM
5063     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5064   esac
5065   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5066   ;;
5067
5068 netbsd*)
5069   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5070     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5071   else
5072     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5073   fi
5074   ;;
5075
5076 newos6*)
5077   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5078   lt_cv_file_magic_cmd=/usr/bin/file
5079   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5080   ;;
5081
5082 openbsd*)
5083   lt_cv_file_magic_cmd=/usr/bin/file
5084   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5085   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5086     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5087   else
5088     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5089   fi
5090   ;;
5091
5092 osf3* | osf4* | osf5*)
5093   # this will be overridden with pass_all, but let us keep it just in case
5094   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5095   lt_cv_file_magic_test_file=/shlib/libc.so
5096   lt_cv_deplibs_check_method=pass_all
5097   ;;
5098
5099 sco3.2v5*)
5100   lt_cv_deplibs_check_method=pass_all
5101   ;;
5102
5103 solaris*)
5104   lt_cv_deplibs_check_method=pass_all
5105   lt_cv_file_magic_test_file=/lib/libc.so
5106   ;;
5107
5108 sysv5uw[78]* | sysv4*uw2*)
5109   lt_cv_deplibs_check_method=pass_all
5110   ;;
5111
5112 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5113   case $host_vendor in
5114   motorola)
5115     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]'
5116     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5117     ;;
5118   ncr)
5119     lt_cv_deplibs_check_method=pass_all
5120     ;;
5121   sequent)
5122     lt_cv_file_magic_cmd='/bin/file'
5123     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5124     ;;
5125   sni)
5126     lt_cv_file_magic_cmd='/bin/file'
5127     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5128     lt_cv_file_magic_test_file=/lib/libc.so
5129     ;;
5130   esac
5131   ;;
5132 esac
5133
5134 fi
5135 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5136 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5137 file_magic_cmd=$lt_cv_file_magic_cmd
5138 deplibs_check_method=$lt_cv_deplibs_check_method
5139
5140
5141
5142
5143
5144
5145
5146 # Check for command to grab the raw symbol name followed by C symbol from nm.
5147 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
5148 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
5149 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152
5153 # These are sane defaults that work on at least a few old systems.
5154 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5155
5156 # Character class describing NM global symbol codes.
5157 symcode='[BCDEGRST]'
5158
5159 # Regexp to match symbols that can be accessed directly from C.
5160 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5161
5162 # Transform the above into a raw symbol and a C symbol.
5163 symxfrm='\1 \2\3 \3'
5164
5165 # Transform an extracted symbol line into a proper C declaration
5166 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5167
5168 # Transform an extracted symbol line into symbol name and symbol address
5169 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5170
5171 # Define system-specific variables.
5172 case $host_os in
5173 aix*)
5174   symcode='[BCDT]'
5175   ;;
5176 cygwin* | mingw* | pw32*)
5177   symcode='[ABCDGISTW]'
5178   ;;
5179 hpux*) # Its linker distinguishes data from code symbols
5180   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5181   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5182   ;;
5183 irix*)
5184   symcode='[BCDEGRST]'
5185   ;;
5186 solaris* | sysv5*)
5187   symcode='[BDT]'
5188   ;;
5189 sysv4)
5190   symcode='[DFNSTU]'
5191   ;;
5192 esac
5193
5194 # Handle CRLF in mingw tool chain
5195 opt_cr=
5196 case $host_os in
5197 mingw*)
5198   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5199   ;;
5200 esac
5201
5202 # If we're using GNU nm, then use its standard symbol codes.
5203 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5204   symcode='[ABCDGISTW]'
5205 fi
5206
5207 # Try without a prefix undercore, then with it.
5208 for ac_symprfx in "" "_"; do
5209
5210   # Write the raw and C identifiers.
5211 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5212
5213   # Check to see that the pipe works correctly.
5214   pipe_works=no
5215   rm -f conftest*
5216   cat > conftest.$ac_ext <<EOF
5217 #ifdef __cplusplus
5218 extern "C" {
5219 #endif
5220 char nm_test_var;
5221 void nm_test_func(){}
5222 #ifdef __cplusplus
5223 }
5224 #endif
5225 int main(){nm_test_var='a';nm_test_func();return(0);}
5226 EOF
5227
5228   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229   (eval $ac_compile) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); }; then
5233     # Now try to grab the symbols.
5234     nlist=conftest.nm
5235     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5236   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); } && test -s "$nlist"; then
5240       # Try sorting and uniquifying the output.
5241       if sort "$nlist" | uniq > "$nlist"T; then
5242         mv -f "$nlist"T "$nlist"
5243       else
5244         rm -f "$nlist"T
5245       fi
5246
5247       # Make sure that we snagged all the symbols we need.
5248       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5249         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5250           cat <<EOF > conftest.$ac_ext
5251 #ifdef __cplusplus
5252 extern "C" {
5253 #endif
5254
5255 EOF
5256           # Now generate the symbol file.
5257           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5258
5259           cat <<EOF >> conftest.$ac_ext
5260 #if defined (__STDC__) && __STDC__
5261 # define lt_ptr void *
5262 #else
5263 # define lt_ptr char *
5264 # define const
5265 #endif
5266
5267 /* The mapping between symbol names and symbols. */
5268 const struct {
5269   const char *name;
5270   lt_ptr address;
5271 }
5272 lt_preloaded_symbols[] =
5273 {
5274 EOF
5275           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5276           cat <<\EOF >> conftest.$ac_ext
5277   {0, (lt_ptr) 0}
5278 };
5279
5280 #ifdef __cplusplus
5281 }
5282 #endif
5283 EOF
5284           # Now try linking the two files.
5285           mv conftest.$ac_objext conftstm.$ac_objext
5286           save_LIBS="$LIBS"
5287           save_CFLAGS="$CFLAGS"
5288           LIBS="conftstm.$ac_objext"
5289           CFLAGS="$CFLAGS$no_builtin_flag"
5290           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291   (eval $ac_link) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } && test -s conftest; then
5295             pipe_works=yes
5296           fi
5297           LIBS="$save_LIBS"
5298           CFLAGS="$save_CFLAGS"
5299         else
5300           echo "cannot find nm_test_func in $nlist" >&5
5301         fi
5302       else
5303         echo "cannot find nm_test_var in $nlist" >&5
5304       fi
5305     else
5306       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5307     fi
5308   else
5309     echo "$progname: failed program was:" >&5
5310     cat conftest.$ac_ext >&5
5311   fi
5312   rm -f conftest* conftst*
5313
5314   # Do not use the global_symbol_pipe unless it works.
5315   if test "$pipe_works" = yes; then
5316     break
5317   else
5318     lt_cv_sys_global_symbol_pipe=
5319   fi
5320 done
5321
5322 fi
5323
5324 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5325 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5326   global_symbol_to_cdecl=
5327   global_symbol_to_c_name_address=
5328 else
5329   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5330   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5331 fi
5332 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5333 then
5334   echo "$as_me:$LINENO: result: failed" >&5
5335 echo "${ECHO_T}failed" >&6
5336 else
5337   echo "$as_me:$LINENO: result: ok" >&5
5338 echo "${ECHO_T}ok" >&6
5339 fi
5340
5341
5342 for ac_header in dlfcn.h
5343 do
5344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5346   echo "$as_me:$LINENO: checking for $ac_header" >&5
5347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 fi
5351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5353 else
5354   # Is the header compilable?
5355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h.  */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h.  */
5363 $ac_includes_default
5364 #include <$ac_header>
5365 _ACEOF
5366 rm -f conftest.$ac_objext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5368   (eval $ac_compile) 2>conftest.er1
5369   ac_status=$?
5370   grep -v '^ *+' conftest.er1 >conftest.err
5371   rm -f conftest.er1
5372   cat conftest.err >&5
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } &&
5375          { ac_try='test -z "$ac_c_werror_flag"
5376                          || test ! -s conftest.err'
5377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378   (eval $ac_try) 2>&5
5379   ac_status=$?
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); }; } &&
5382          { ac_try='test -s conftest.$ac_objext'
5383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384   (eval $ac_try) 2>&5
5385   ac_status=$?
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); }; }; then
5388   ac_header_compiler=yes
5389 else
5390   echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ac_header_compiler=no
5394 fi
5395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5397 echo "${ECHO_T}$ac_header_compiler" >&6
5398
5399 # Is the header present?
5400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h.  */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h.  */
5408 #include <$ac_header>
5409 _ACEOF
5410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5412   ac_status=$?
5413   grep -v '^ *+' conftest.er1 >conftest.err
5414   rm -f conftest.er1
5415   cat conftest.err >&5
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); } >/dev/null; then
5418   if test -s conftest.err; then
5419     ac_cpp_err=$ac_c_preproc_warn_flag
5420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5421   else
5422     ac_cpp_err=
5423   fi
5424 else
5425   ac_cpp_err=yes
5426 fi
5427 if test -z "$ac_cpp_err"; then
5428   ac_header_preproc=yes
5429 else
5430   echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5432
5433   ac_header_preproc=no
5434 fi
5435 rm -f conftest.err conftest.$ac_ext
5436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5437 echo "${ECHO_T}$ac_header_preproc" >&6
5438
5439 # So?  What about this header?
5440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5441   yes:no: )
5442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5446     ac_header_preproc=yes
5447     ;;
5448   no:yes:* )
5449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5461     (
5462       cat <<\_ASBOX
5463 ## ------------------------------------------ ##
5464 ## Report this to the AC_PACKAGE_NAME lists.  ##
5465 ## ------------------------------------------ ##
5466 _ASBOX
5467     ) |
5468       sed "s/^/$as_me: WARNING:     /" >&2
5469     ;;
5470 esac
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   eval "$as_ac_Header=\$ac_header_preproc"
5477 fi
5478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5480
5481 fi
5482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5483   cat >>confdefs.h <<_ACEOF
5484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5485 _ACEOF
5486
5487 fi
5488
5489 done
5490
5491
5492
5493
5494
5495 # Only perform the check for file, if the check method requires it
5496 case $deplibs_check_method in
5497 file_magic*)
5498   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5499     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5500 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5501 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   case $MAGIC_CMD in
5505   /*)
5506   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5507   ;;
5508   ?:/*)
5509   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5510   ;;
5511   *)
5512   ac_save_MAGIC_CMD="$MAGIC_CMD"
5513   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5514   ac_dummy="/usr/bin:$PATH"
5515   for ac_dir in $ac_dummy; do
5516     test -z "$ac_dir" && ac_dir=.
5517     if test -f $ac_dir/${ac_tool_prefix}file; then
5518       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5519       if test -n "$file_magic_test_file"; then
5520         case $deplibs_check_method in
5521         "file_magic "*)
5522           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5523           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5524           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5525             egrep "$file_magic_regex" > /dev/null; then
5526             :
5527           else
5528             cat <<EOF 1>&2
5529
5530 *** Warning: the command libtool uses to detect shared libraries,
5531 *** $file_magic_cmd, produces output that libtool cannot recognize.
5532 *** The result is that libtool may fail to recognize shared libraries
5533 *** as such.  This will affect the creation of libtool libraries that
5534 *** depend on shared libraries, but programs linked with such libtool
5535 *** libraries will work regardless of this problem.  Nevertheless, you
5536 *** may want to report the problem to your system manager and/or to
5537 *** bug-libtool@gnu.org
5538
5539 EOF
5540           fi ;;
5541         esac
5542       fi
5543       break
5544     fi
5545   done
5546   IFS="$ac_save_ifs"
5547   MAGIC_CMD="$ac_save_MAGIC_CMD"
5548   ;;
5549 esac
5550 fi
5551
5552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5553 if test -n "$MAGIC_CMD"; then
5554   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5555 echo "${ECHO_T}$MAGIC_CMD" >&6
5556 else
5557   echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5559 fi
5560
5561 if test -z "$lt_cv_path_MAGIC_CMD"; then
5562   if test -n "$ac_tool_prefix"; then
5563     echo "$as_me:$LINENO: checking for file" >&5
5564 echo $ECHO_N "checking for file... $ECHO_C" >&6
5565 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5566   echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568   case $MAGIC_CMD in
5569   /*)
5570   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5571   ;;
5572   ?:/*)
5573   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5574   ;;
5575   *)
5576   ac_save_MAGIC_CMD="$MAGIC_CMD"
5577   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5578   ac_dummy="/usr/bin:$PATH"
5579   for ac_dir in $ac_dummy; do
5580     test -z "$ac_dir" && ac_dir=.
5581     if test -f $ac_dir/file; then
5582       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5583       if test -n "$file_magic_test_file"; then
5584         case $deplibs_check_method in
5585         "file_magic "*)
5586           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5587           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5588           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5589             egrep "$file_magic_regex" > /dev/null; then
5590             :
5591           else
5592             cat <<EOF 1>&2
5593
5594 *** Warning: the command libtool uses to detect shared libraries,
5595 *** $file_magic_cmd, produces output that libtool cannot recognize.
5596 *** The result is that libtool may fail to recognize shared libraries
5597 *** as such.  This will affect the creation of libtool libraries that
5598 *** depend on shared libraries, but programs linked with such libtool
5599 *** libraries will work regardless of this problem.  Nevertheless, you
5600 *** may want to report the problem to your system manager and/or to
5601 *** bug-libtool@gnu.org
5602
5603 EOF
5604           fi ;;
5605         esac
5606       fi
5607       break
5608     fi
5609   done
5610   IFS="$ac_save_ifs"
5611   MAGIC_CMD="$ac_save_MAGIC_CMD"
5612   ;;
5613 esac
5614 fi
5615
5616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5617 if test -n "$MAGIC_CMD"; then
5618   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5619 echo "${ECHO_T}$MAGIC_CMD" >&6
5620 else
5621   echo "$as_me:$LINENO: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5623 fi
5624
5625   else
5626     MAGIC_CMD=:
5627   fi
5628 fi
5629
5630   fi
5631   ;;
5632 esac
5633
5634 if test -n "$ac_tool_prefix"; then
5635   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5636 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_RANLIB+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   if test -n "$RANLIB"; then
5643   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650   for ac_exec_ext in '' $ac_executable_extensions; do
5651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654     break 2
5655   fi
5656 done
5657 done
5658
5659 fi
5660 fi
5661 RANLIB=$ac_cv_prog_RANLIB
5662 if test -n "$RANLIB"; then
5663   echo "$as_me:$LINENO: result: $RANLIB" >&5
5664 echo "${ECHO_T}$RANLIB" >&6
5665 else
5666   echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5668 fi
5669
5670 fi
5671 if test -z "$ac_cv_prog_RANLIB"; then
5672   ac_ct_RANLIB=$RANLIB
5673   # Extract the first word of "ranlib", so it can be a program name with args.
5674 set dummy ranlib; ac_word=$2
5675 echo "$as_me:$LINENO: checking for $ac_word" >&5
5676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5677 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   if test -n "$ac_ct_RANLIB"; then
5681   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688   for ac_exec_ext in '' $ac_executable_extensions; do
5689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690     ac_cv_prog_ac_ct_RANLIB="ranlib"
5691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695 done
5696
5697   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5698 fi
5699 fi
5700 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5701 if test -n "$ac_ct_RANLIB"; then
5702   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5703 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5704 else
5705   echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5707 fi
5708
5709   RANLIB=$ac_ct_RANLIB
5710 else
5711   RANLIB="$ac_cv_prog_RANLIB"
5712 fi
5713
5714 if test -n "$ac_tool_prefix"; then
5715   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}strip; ac_word=$2
5717 echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719 if test "${ac_cv_prog_STRIP+set}" = set; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   if test -n "$STRIP"; then
5723   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728   IFS=$as_save_IFS
5729   test -z "$as_dir" && as_dir=.
5730   for ac_exec_ext in '' $ac_executable_extensions; do
5731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734     break 2
5735   fi
5736 done
5737 done
5738
5739 fi
5740 fi
5741 STRIP=$ac_cv_prog_STRIP
5742 if test -n "$STRIP"; then
5743   echo "$as_me:$LINENO: result: $STRIP" >&5
5744 echo "${ECHO_T}$STRIP" >&6
5745 else
5746   echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6
5748 fi
5749
5750 fi
5751 if test -z "$ac_cv_prog_STRIP"; then
5752   ac_ct_STRIP=$STRIP
5753   # Extract the first word of "strip", so it can be a program name with args.
5754 set dummy strip; ac_word=$2
5755 echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   if test -n "$ac_ct_STRIP"; then
5761   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768   for ac_exec_ext in '' $ac_executable_extensions; do
5769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770     ac_cv_prog_ac_ct_STRIP="strip"
5771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775 done
5776
5777   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5778 fi
5779 fi
5780 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5781 if test -n "$ac_ct_STRIP"; then
5782   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5783 echo "${ECHO_T}$ac_ct_STRIP" >&6
5784 else
5785   echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5787 fi
5788
5789   STRIP=$ac_ct_STRIP
5790 else
5791   STRIP="$ac_cv_prog_STRIP"
5792 fi
5793
5794
5795 enable_dlopen=no
5796 enable_win32_dll=no
5797
5798 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5799 if test "${enable_libtool_lock+set}" = set; then
5800   enableval="$enable_libtool_lock"
5801
5802 fi;
5803 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5804
5805 # Some flags need to be propagated to the compiler or linker for good
5806 # libtool support.
5807 case $host in
5808 *-*-irix6*)
5809   # Find out which ABI we are using.
5810   echo '#line 5810 "configure"' > conftest.$ac_ext
5811   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812   (eval $ac_compile) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; then
5816     case `/usr/bin/file conftest.$ac_objext` in
5817     *32-bit*)
5818       LD="${LD-ld} -32"
5819       ;;
5820     *N32*)
5821       LD="${LD-ld} -n32"
5822       ;;
5823     *64-bit*)
5824       LD="${LD-ld} -64"
5825       ;;
5826     esac
5827   fi
5828   rm -rf conftest*
5829   ;;
5830
5831 *-*-sco3.2v5*)
5832   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5833   SAVE_CFLAGS="$CFLAGS"
5834   CFLAGS="$CFLAGS -belf"
5835   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5836 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5837 if test "${lt_cv_cc_needs_belf+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840
5841
5842      ac_ext=c
5843 ac_cpp='$CPP $CPPFLAGS'
5844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5847
5848      cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854
5855 int
5856 main ()
5857 {
5858
5859   ;
5860   return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext conftest$ac_exeext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865   (eval $ac_link) 2>conftest.er1
5866   ac_status=$?
5867   grep -v '^ *+' conftest.er1 >conftest.err
5868   rm -f conftest.er1
5869   cat conftest.err >&5
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } &&
5872          { ac_try='test -z "$ac_c_werror_flag"
5873                          || test ! -s conftest.err'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; } &&
5879          { ac_try='test -s conftest$ac_exeext'
5880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881   (eval $ac_try) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; }; then
5885   lt_cv_cc_needs_belf=yes
5886 else
5887   echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 lt_cv_cc_needs_belf=no
5891 fi
5892 rm -f conftest.err conftest.$ac_objext \
5893       conftest$ac_exeext conftest.$ac_ext
5894      ac_ext=c
5895 ac_cpp='$CPP $CPPFLAGS'
5896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5899
5900 fi
5901 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5902 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5903   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5904     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5905     CFLAGS="$SAVE_CFLAGS"
5906   fi
5907   ;;
5908
5909
5910 esac
5911
5912 # Sed substitution that helps us do robust quoting.  It backslashifies
5913 # metacharacters that are still active within double-quoted strings.
5914 Xsed='sed -e s/^X//'
5915 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5916
5917 # Same as above, but do not quote variable references.
5918 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5919
5920 # Sed substitution to delay expansion of an escaped shell variable in a
5921 # double_quote_subst'ed string.
5922 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5923
5924 # Constants:
5925 rm="rm -f"
5926
5927 # Global variables:
5928 default_ofile=libtool
5929 can_build_shared=yes
5930
5931 # All known linkers require a `.a' archive for static linking (except M$VC,
5932 # which needs '.lib').
5933 libext=a
5934 ltmain="$ac_aux_dir/ltmain.sh"
5935 ofile="$default_ofile"
5936 with_gnu_ld="$lt_cv_prog_gnu_ld"
5937 need_locks="$enable_libtool_lock"
5938
5939 old_CC="$CC"
5940 old_CFLAGS="$CFLAGS"
5941
5942 # Set sane defaults for various variables
5943 test -z "$AR" && AR=ar
5944 test -z "$AR_FLAGS" && AR_FLAGS=cru
5945 test -z "$AS" && AS=as
5946 test -z "$CC" && CC=cc
5947 test -z "$DLLTOOL" && DLLTOOL=dlltool
5948 test -z "$LD" && LD=ld
5949 test -z "$LN_S" && LN_S="ln -s"
5950 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5951 test -z "$NM" && NM=nm
5952 test -z "$OBJDUMP" && OBJDUMP=objdump
5953 test -z "$RANLIB" && RANLIB=:
5954 test -z "$STRIP" && STRIP=:
5955 test -z "$ac_objext" && ac_objext=o
5956
5957 if test x"$host" != x"$build"; then
5958   ac_tool_prefix=${host_alias}-
5959 else
5960   ac_tool_prefix=
5961 fi
5962
5963 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5964 case $host_os in
5965 linux-gnu*) ;;
5966 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5967 esac
5968
5969 case $host_os in
5970 aix3*)
5971   # AIX sometimes has problems with the GCC collect2 program.  For some
5972   # reason, if we set the COLLECT_NAMES environment variable, the problems
5973   # vanish in a puff of smoke.
5974   if test "X${COLLECT_NAMES+set}" != Xset; then
5975     COLLECT_NAMES=
5976     export COLLECT_NAMES
5977   fi
5978   ;;
5979 esac
5980
5981 # Determine commands to create old-style static archives.
5982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5983 old_postinstall_cmds='chmod 644 $oldlib'
5984 old_postuninstall_cmds=
5985
5986 if test -n "$RANLIB"; then
5987   case $host_os in
5988   openbsd*)
5989     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5990     ;;
5991   *)
5992     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5993     ;;
5994   esac
5995   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5996 fi
5997
5998 # Allow CC to be a program name with arguments.
5999 set dummy $CC
6000 compiler="$2"
6001
6002 echo "$as_me:$LINENO: checking for objdir" >&5
6003 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6004 rm -f .libs 2>/dev/null
6005 mkdir .libs 2>/dev/null
6006 if test -d .libs; then
6007   objdir=.libs
6008 else
6009   # MS-DOS does not allow filenames that begin with a dot.
6010   objdir=_libs
6011 fi
6012 rmdir .libs 2>/dev/null
6013 echo "$as_me:$LINENO: result: $objdir" >&5
6014 echo "${ECHO_T}$objdir" >&6
6015
6016
6017
6018 # Check whether --with-pic or --without-pic was given.
6019 if test "${with_pic+set}" = set; then
6020   withval="$with_pic"
6021   pic_mode="$withval"
6022 else
6023   pic_mode=default
6024 fi;
6025 test -z "$pic_mode" && pic_mode=default
6026
6027 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
6028 # in isolation, and that seeing it set (from the cache) indicates that
6029 # the associated values are set (in the cache) correctly too.
6030 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6031 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6032 if test "${lt_cv_prog_cc_pic+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035    lt_cv_prog_cc_pic=
6036   lt_cv_prog_cc_shlib=
6037   lt_cv_prog_cc_wl=
6038   lt_cv_prog_cc_static=
6039   lt_cv_prog_cc_no_builtin=
6040   lt_cv_prog_cc_can_build_shared=$can_build_shared
6041
6042   if test "$GCC" = yes; then
6043     lt_cv_prog_cc_wl='-Wl,'
6044     lt_cv_prog_cc_static='-static'
6045
6046     case $host_os in
6047     aix*)
6048       # Below there is a dirty hack to force normal static linking with -ldl
6049       # The problem is because libdl dynamically linked with both libc and
6050       # libC (AIX C++ library), which obviously doesn't included in libraries
6051       # list by gcc. This cause undefined symbols with -static flags.
6052       # This hack allows C programs to be linked with "-static -ldl", but
6053       # not sure about C++ programs.
6054       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6055       ;;
6056     amigaos*)
6057       # FIXME: we need at least 68020 code to build shared libraries, but
6058       # adding the `-m68020' flag to GCC prevents building anything better,
6059       # like `-m68040'.
6060       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6061       ;;
6062     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
6063       # PIC is the default for these OSes.
6064       ;;
6065     darwin* | rhapsody*)
6066       # PIC is the default on this platform
6067       # Common symbols not allowed in MH_DYLIB files
6068       lt_cv_prog_cc_pic='-fno-common'
6069       ;;
6070     cygwin* | mingw* | pw32* | os2*)
6071       # This hack is so that the source file can tell whether it is being
6072       # built for inclusion in a dll (and should export symbols for example).
6073       lt_cv_prog_cc_pic='-DDLL_EXPORT'
6074       ;;
6075     sysv4*MP*)
6076       if test -d /usr/nec; then
6077          lt_cv_prog_cc_pic=-Kconform_pic
6078       fi
6079       ;;
6080     *)
6081       lt_cv_prog_cc_pic='-fPIC'
6082       ;;
6083     esac
6084   else
6085     # PORTME Check for PIC flags for the system compiler.
6086     case $host_os in
6087     aix3* | aix4* | aix5*)
6088       lt_cv_prog_cc_wl='-Wl,'
6089       # All AIX code is PIC.
6090       if test "$host_cpu" = ia64; then
6091         # AIX 5 now supports IA64 processor
6092         lt_cv_prog_cc_static='-Bstatic'
6093       else
6094         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6095       fi
6096       ;;
6097
6098     hpux9* | hpux10* | hpux11*)
6099       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6100       lt_cv_prog_cc_wl='-Wl,'
6101       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6102       lt_cv_prog_cc_pic='+Z'
6103       ;;
6104
6105     irix5* | irix6*)
6106       lt_cv_prog_cc_wl='-Wl,'
6107       lt_cv_prog_cc_static='-non_shared'
6108       # PIC (with -KPIC) is the default.
6109       ;;
6110
6111     cygwin* | mingw* | pw32* | os2*)
6112       # This hack is so that the source file can tell whether it is being
6113       # built for inclusion in a dll (and should export symbols for example).
6114       lt_cv_prog_cc_pic='-DDLL_EXPORT'
6115       ;;
6116
6117     newsos6)
6118       lt_cv_prog_cc_pic='-KPIC'
6119       lt_cv_prog_cc_static='-Bstatic'
6120       ;;
6121
6122     osf3* | osf4* | osf5*)
6123       # All OSF/1 code is PIC.
6124       lt_cv_prog_cc_wl='-Wl,'
6125       lt_cv_prog_cc_static='-non_shared'
6126       ;;
6127
6128     sco3.2v5*)
6129       lt_cv_prog_cc_pic='-Kpic'
6130       lt_cv_prog_cc_static='-dn'
6131       lt_cv_prog_cc_shlib='-belf'
6132       ;;
6133
6134     solaris*)
6135       lt_cv_prog_cc_pic='-KPIC'
6136       lt_cv_prog_cc_static='-Bstatic'
6137       lt_cv_prog_cc_wl='-Wl,'
6138       ;;
6139
6140     sunos4*)
6141       lt_cv_prog_cc_pic='-PIC'
6142       lt_cv_prog_cc_static='-Bstatic'
6143       lt_cv_prog_cc_wl='-Qoption ld '
6144       ;;
6145
6146     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6147       lt_cv_prog_cc_pic='-KPIC'
6148       lt_cv_prog_cc_static='-Bstatic'
6149       if test "x$host_vendor" = xsni; then
6150         lt_cv_prog_cc_wl='-LD'
6151       else
6152         lt_cv_prog_cc_wl='-Wl,'
6153       fi
6154       ;;
6155
6156     uts4*)
6157       lt_cv_prog_cc_pic='-pic'
6158       lt_cv_prog_cc_static='-Bstatic'
6159       ;;
6160
6161     sysv4*MP*)
6162       if test -d /usr/nec ;then
6163         lt_cv_prog_cc_pic='-Kconform_pic'
6164         lt_cv_prog_cc_static='-Bstatic'
6165       fi
6166       ;;
6167
6168     *)
6169       lt_cv_prog_cc_can_build_shared=no
6170       ;;
6171     esac
6172   fi
6173
6174 fi
6175
6176 if test -z "$lt_cv_prog_cc_pic"; then
6177   echo "$as_me:$LINENO: result: none" >&5
6178 echo "${ECHO_T}none" >&6
6179 else
6180   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6181 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
6182
6183   # Check to make sure the pic_flag actually works.
6184   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6185 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
6186   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189       save_CFLAGS="$CFLAGS"
6190     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6191     cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h.  */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h.  */
6197
6198 int
6199 main ()
6200 {
6201
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208   (eval $ac_compile) 2>conftest.er1
6209   ac_status=$?
6210   grep -v '^ *+' conftest.er1 >conftest.err
6211   rm -f conftest.er1
6212   cat conftest.err >&5
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); } &&
6215          { ac_try='test -z "$ac_c_werror_flag"
6216                          || test ! -s conftest.err'
6217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218   (eval $ac_try) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); }; } &&
6222          { ac_try='test -s conftest.$ac_objext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228         case $host_os in
6229       hpux9* | hpux10* | hpux11*)
6230         # On HP-UX, both CC and GCC only warn that PIC is supported... then
6231         # they create non-PIC objects.  So, if there were any warnings, we
6232         # assume that PIC is not supported.
6233         if test -s conftest.err; then
6234           lt_cv_prog_cc_pic_works=no
6235         else
6236           lt_cv_prog_cc_pic_works=yes
6237         fi
6238         ;;
6239       *)
6240         lt_cv_prog_cc_pic_works=yes
6241         ;;
6242       esac
6243
6244 else
6245   echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248       lt_cv_prog_cc_pic_works=no
6249
6250 fi
6251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252     CFLAGS="$save_CFLAGS"
6253
6254 fi
6255
6256
6257   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6258     lt_cv_prog_cc_pic=
6259     lt_cv_prog_cc_can_build_shared=no
6260   else
6261     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6262   fi
6263
6264   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6265 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6266 fi
6267
6268 # Check for any special shared library compilation flags.
6269 if test -n "$lt_cv_prog_cc_shlib"; then
6270   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6271 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6272   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
6273   else
6274    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6275 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6276     lt_cv_prog_cc_can_build_shared=no
6277   fi
6278 fi
6279
6280 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6281 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6282 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285     lt_cv_prog_cc_static_works=no
6286   save_LDFLAGS="$LDFLAGS"
6287   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6288   cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h.  */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h.  */
6294
6295 int
6296 main ()
6297 {
6298
6299   ;
6300   return 0;
6301 }
6302 _ACEOF
6303 rm -f conftest.$ac_objext conftest$ac_exeext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305   (eval $ac_link) 2>conftest.er1
6306   ac_status=$?
6307   grep -v '^ *+' conftest.er1 >conftest.err
6308   rm -f conftest.er1
6309   cat conftest.err >&5
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } &&
6312          { ac_try='test -z "$ac_c_werror_flag"
6313                          || test ! -s conftest.err'
6314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315   (eval $ac_try) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }; } &&
6319          { ac_try='test -s conftest$ac_exeext'
6320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321   (eval $ac_try) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); }; }; then
6325   lt_cv_prog_cc_static_works=yes
6326 else
6327   echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330 fi
6331 rm -f conftest.err conftest.$ac_objext \
6332       conftest$ac_exeext conftest.$ac_ext
6333   LDFLAGS="$save_LDFLAGS"
6334
6335 fi
6336
6337
6338 # Belt *and* braces to stop my trousers falling down:
6339 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6340 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6341 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
6342
6343 pic_flag="$lt_cv_prog_cc_pic"
6344 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6345 wl="$lt_cv_prog_cc_wl"
6346 link_static_flag="$lt_cv_prog_cc_static"
6347 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6348 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6349
6350
6351 # Check to see if options -o and -c are simultaneously supported by compiler
6352 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6353 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6354 if test "${lt_cv_compiler_c_o+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357
6358 $rm -r conftest 2>/dev/null
6359 mkdir conftest
6360 cd conftest
6361 echo "int some_variable = 0;" > conftest.$ac_ext
6362 mkdir out
6363 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6364 # that will create temporary files in the current directory regardless of
6365 # the output directory.  Thus, making CWD read-only will cause this test
6366 # to fail, enabling locking or at least warning the user not to do parallel
6367 # builds.
6368 chmod -w .
6369 save_CFLAGS="$CFLAGS"
6370 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6371 compiler_c_o=no
6372 if { (eval echo configure:6372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6373   # The compiler can only warn and ignore the option if not recognized
6374   # So say no if there are warnings
6375   if test -s out/conftest.err; then
6376     lt_cv_compiler_c_o=no
6377   else
6378     lt_cv_compiler_c_o=yes
6379   fi
6380 else
6381   # Append any errors to the config.log.
6382   cat out/conftest.err 1>&5
6383   lt_cv_compiler_c_o=no
6384 fi
6385 CFLAGS="$save_CFLAGS"
6386 chmod u+w .
6387 $rm conftest* out/*
6388 rmdir out
6389 cd ..
6390 rmdir conftest
6391 $rm -r conftest 2>/dev/null
6392
6393 fi
6394
6395 compiler_c_o=$lt_cv_compiler_c_o
6396 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6397 echo "${ECHO_T}$compiler_c_o" >&6
6398
6399 if test x"$compiler_c_o" = x"yes"; then
6400   # Check to see if we can write to a .lo
6401   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6402 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6403   if test "${lt_cv_compiler_o_lo+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406
6407   lt_cv_compiler_o_lo=no
6408   save_CFLAGS="$CFLAGS"
6409   CFLAGS="$CFLAGS -c -o conftest.lo"
6410   save_objext="$ac_objext"
6411   ac_objext=lo
6412   cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h.  */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h.  */
6418
6419 int
6420 main ()
6421 {
6422 int some_variable = 0;
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429   (eval $ac_compile) 2>conftest.er1
6430   ac_status=$?
6431   grep -v '^ *+' conftest.er1 >conftest.err
6432   rm -f conftest.er1
6433   cat conftest.err >&5
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); } &&
6436          { ac_try='test -z "$ac_c_werror_flag"
6437                          || test ! -s conftest.err'
6438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439   (eval $ac_try) 2>&5
6440   ac_status=$?
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); }; } &&
6443          { ac_try='test -s conftest.$ac_objext'
6444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445   (eval $ac_try) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); }; }; then
6449       # The compiler can only warn and ignore the option if not recognized
6450     # So say no if there are warnings
6451     if test -s conftest.err; then
6452       lt_cv_compiler_o_lo=no
6453     else
6454       lt_cv_compiler_o_lo=yes
6455     fi
6456
6457 else
6458   echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 fi
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463   ac_objext="$save_objext"
6464   CFLAGS="$save_CFLAGS"
6465
6466 fi
6467
6468   compiler_o_lo=$lt_cv_compiler_o_lo
6469   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6470 echo "${ECHO_T}$compiler_o_lo" >&6
6471 else
6472   compiler_o_lo=no
6473 fi
6474
6475 # Check to see if we can do hard links to lock some files if needed
6476 hard_links="nottested"
6477 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6478   # do not overwrite the value of need_locks provided by the user
6479   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6480 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6481   hard_links=yes
6482   $rm conftest*
6483   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6484   touch conftest.a
6485   ln conftest.a conftest.b 2>&5 || hard_links=no
6486   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6487   echo "$as_me:$LINENO: result: $hard_links" >&5
6488 echo "${ECHO_T}$hard_links" >&6
6489   if test "$hard_links" = no; then
6490     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6491 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6492     need_locks=warn
6493   fi
6494 else
6495   need_locks=no
6496 fi
6497
6498 if test "$GCC" = yes; then
6499   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6500   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6501 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6502   echo "int some_variable = 0;" > conftest.$ac_ext
6503   save_CFLAGS="$CFLAGS"
6504   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6505   compiler_rtti_exceptions=no
6506   cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h.  */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h.  */
6512
6513 int
6514 main ()
6515 {
6516 int some_variable = 0;
6517   ;
6518   return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523   (eval $ac_compile) 2>conftest.er1
6524   ac_status=$?
6525   grep -v '^ *+' conftest.er1 >conftest.err
6526   rm -f conftest.er1
6527   cat conftest.err >&5
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); } &&
6530          { ac_try='test -z "$ac_c_werror_flag"
6531                          || test ! -s conftest.err'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; } &&
6537          { ac_try='test -s conftest.$ac_objext'
6538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539   (eval $ac_try) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; }; then
6543       # The compiler can only warn and ignore the option if not recognized
6544     # So say no if there are warnings
6545     if test -s conftest.err; then
6546       compiler_rtti_exceptions=no
6547     else
6548       compiler_rtti_exceptions=yes
6549     fi
6550
6551 else
6552   echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 fi
6556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6557   CFLAGS="$save_CFLAGS"
6558   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6559 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6560
6561   if test "$compiler_rtti_exceptions" = "yes"; then
6562     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6563   else
6564     no_builtin_flag=' -fno-builtin'
6565   fi
6566 fi
6567
6568 # See if the linker supports building shared libraries.
6569 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6570 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6571
6572 allow_undefined_flag=
6573 no_undefined_flag=
6574 need_lib_prefix=unknown
6575 need_version=unknown
6576 # when you set need_version to no, make sure it does not cause -set_version
6577 # flags to be left without arguments
6578 archive_cmds=
6579 archive_expsym_cmds=
6580 old_archive_from_new_cmds=
6581 old_archive_from_expsyms_cmds=
6582 export_dynamic_flag_spec=
6583 whole_archive_flag_spec=
6584 thread_safe_flag_spec=
6585 hardcode_into_libs=no
6586 hardcode_libdir_flag_spec=
6587 hardcode_libdir_separator=
6588 hardcode_direct=no
6589 hardcode_minus_L=no
6590 hardcode_shlibpath_var=unsupported
6591 runpath_var=
6592 link_all_deplibs=unknown
6593 always_export_symbols=no
6594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6595 # include_expsyms should be a list of space-separated symbols to be *always*
6596 # included in the symbol list
6597 include_expsyms=
6598 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6600 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6601 # as well as any symbol that contains `d'.
6602 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6604 # platforms (ab)use it in PIC code, but their linkers get confused if
6605 # the symbol is explicitly referenced.  Since portable code cannot
6606 # rely on this symbol name, it's probably fine to never include it in
6607 # preloaded symbol tables.
6608 extract_expsyms_cmds=
6609
6610 case $host_os in
6611 cygwin* | mingw* | pw32*)
6612   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6613   # When not using gcc, we currently assume that we are using
6614   # Microsoft Visual C++.
6615   if test "$GCC" != yes; then
6616     with_gnu_ld=no
6617   fi
6618   ;;
6619 openbsd*)
6620   with_gnu_ld=no
6621   ;;
6622 esac
6623
6624 ld_shlibs=yes
6625 if test "$with_gnu_ld" = yes; then
6626   # If archive_cmds runs LD, not CC, wlarc should be empty
6627   wlarc='${wl}'
6628
6629   # See if GNU ld supports shared libraries.
6630   case $host_os in
6631   aix3* | aix4* | aix5*)
6632     # On AIX, the GNU linker is very broken
6633     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6634     ld_shlibs=no
6635     cat <<EOF 1>&2
6636
6637 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6638 *** to be unable to reliably create shared libraries on AIX.
6639 *** Therefore, libtool is disabling shared libraries support.  If you
6640 *** really care for shared libraries, you may want to modify your PATH
6641 *** so that a non-GNU linker is found, and then restart.
6642
6643 EOF
6644     ;;
6645
6646   amigaos*)
6647     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)'
6648     hardcode_libdir_flag_spec='-L$libdir'
6649     hardcode_minus_L=yes
6650
6651     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6652     # that the semantics of dynamic libraries on AmigaOS, at least up
6653     # to version 4, is to share data among multiple programs linked
6654     # with the same dynamic library.  Since this doesn't match the
6655     # behavior of shared libraries on other platforms, we can use
6656     # them.
6657     ld_shlibs=no
6658     ;;
6659
6660   beos*)
6661     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6662       allow_undefined_flag=unsupported
6663       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6664       # support --undefined.  This deserves some investigation.  FIXME
6665       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6666     else
6667       ld_shlibs=no
6668     fi
6669     ;;
6670
6671   cygwin* | mingw* | pw32*)
6672     # hardcode_libdir_flag_spec is actually meaningless, as there is
6673     # no search path for DLLs.
6674     hardcode_libdir_flag_spec='-L$libdir'
6675     allow_undefined_flag=unsupported
6676     always_export_symbols=yes
6677
6678     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6679       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6680       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6681       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6682       else $CC -o impgen impgen.c ; fi)~
6683       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6684
6685     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6686
6687     # cygwin and mingw dlls have different entry points and sets of symbols
6688     # to exclude.
6689     # FIXME: what about values for MSVC?
6690     dll_entry=__cygwin_dll_entry@12
6691     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6692     case $host_os in
6693     mingw*)
6694       # mingw values
6695       dll_entry=_DllMainCRTStartup@12
6696       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6697       ;;
6698     esac
6699
6700     # mingw and cygwin differ, and it's simplest to just exclude the union
6701     # of the two symbol sets.
6702     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6703
6704     # recent cygwin and mingw systems supply a stub DllMain which the user
6705     # can override, but on older systems we have to supply one (in ltdll.c)
6706     if test "x$lt_cv_need_dllmain" = "xyes"; then
6707       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6708       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6709         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6710     else
6711       ltdll_obj=
6712       ltdll_cmds=
6713     fi
6714
6715     # Extract the symbol export list from an `--export-all' def file,
6716     # then regenerate the def file from the symbol export list, so that
6717     # the compiled dll only exports the symbol export list.
6718     # Be careful not to strip the DATA tag left be newer dlltools.
6719     export_symbols_cmds="$ltdll_cmds"'
6720       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6721       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6722
6723     # If the export-symbols file already is a .def file (1st line
6724     # is EXPORTS), use it as is.
6725     # If DATA tags from a recent dlltool are present, honour them!
6726     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6727         cp $export_symbols $output_objdir/$soname-def;
6728       else
6729         echo EXPORTS > $output_objdir/$soname-def;
6730         _lt_hint=1;
6731         cat $export_symbols | while read symbol; do
6732          set dummy \$symbol;
6733          case \$# in
6734            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6735            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6736          esac;
6737          _lt_hint=`expr 1 + \$_lt_hint`;
6738         done;
6739       fi~
6740       '"$ltdll_cmds"'
6741       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6742       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6743       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6744       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6745       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6746     ;;
6747
6748   netbsd*)
6749     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6750       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6751       wlarc=
6752     else
6753       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6755     fi
6756     ;;
6757
6758   solaris* | sysv5*)
6759     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6760       ld_shlibs=no
6761       cat <<EOF 1>&2
6762
6763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6764 *** create shared libraries on Solaris systems.  Therefore, libtool
6765 *** is disabling shared libraries support.  We urge you to upgrade GNU
6766 *** binutils to release 2.9.1 or newer.  Another option is to modify
6767 *** your PATH or compiler configuration so that the native linker is
6768 *** used, and then restart.
6769
6770 EOF
6771     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6772       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6774     else
6775       ld_shlibs=no
6776     fi
6777     ;;
6778
6779   sunos4*)
6780     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6781     wlarc=
6782     hardcode_direct=yes
6783     hardcode_shlibpath_var=no
6784     ;;
6785
6786   *)
6787     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6788       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6790     else
6791       ld_shlibs=no
6792     fi
6793     ;;
6794   esac
6795
6796   if test "$ld_shlibs" = yes; then
6797     runpath_var=LD_RUN_PATH
6798     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6799     export_dynamic_flag_spec='${wl}--export-dynamic'
6800     case $host_os in
6801     cygwin* | mingw* | pw32*)
6802       # dlltool doesn't understand --whole-archive et. al.
6803       whole_archive_flag_spec=
6804       ;;
6805     *)
6806       # ancient GNU ld didn't support --whole-archive et. al.
6807       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6808         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6809       else
6810         whole_archive_flag_spec=
6811       fi
6812       ;;
6813     esac
6814   fi
6815 else
6816   # PORTME fill in a description of your system's linker (not GNU ld)
6817   case $host_os in
6818   aix3*)
6819     allow_undefined_flag=unsupported
6820     always_export_symbols=yes
6821     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'
6822     # Note: this linker hardcodes the directories in LIBPATH if there
6823     # are no directories specified by -L.
6824     hardcode_minus_L=yes
6825     if test "$GCC" = yes && test -z "$link_static_flag"; then
6826       # Neither direct hardcoding nor static linking is supported with a
6827       # broken collect2.
6828       hardcode_direct=unsupported
6829     fi
6830     ;;
6831
6832   aix4* | aix5*)
6833     if test "$host_cpu" = ia64; then
6834       # On IA64, the linker does run time linking by default, so we don't
6835       # have to do anything special.
6836       aix_use_runtimelinking=no
6837       exp_sym_flag='-Bexport'
6838       no_entry_flag=""
6839     else
6840       aix_use_runtimelinking=no
6841
6842       # Test if we are trying to use run time linking or normal
6843       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6844       # need to do runtime linking.
6845       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6846         for ld_flag in $LDFLAGS; do
6847           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6848             aix_use_runtimelinking=yes
6849             break
6850           fi
6851         done
6852       esac
6853
6854       exp_sym_flag='-bexport'
6855       no_entry_flag='-bnoentry'
6856     fi
6857
6858     # When large executables or shared objects are built, AIX ld can
6859     # have problems creating the table of contents.  If linking a library
6860     # or program results in "error TOC overflow" add -mminimal-toc to
6861     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6862     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6863
6864     hardcode_direct=yes
6865     archive_cmds=''
6866     hardcode_libdir_separator=':'
6867     if test "$GCC" = yes; then
6868       case $host_os in aix4.[012]|aix4.[012].*)
6869         collect2name=`${CC} -print-prog-name=collect2`
6870         if test -f "$collect2name" && \
6871           strings "$collect2name" | grep resolve_lib_name >/dev/null
6872         then
6873           # We have reworked collect2
6874           hardcode_direct=yes
6875         else
6876           # We have old collect2
6877           hardcode_direct=unsupported
6878           # It fails to find uninstalled libraries when the uninstalled
6879           # path is not listed in the libpath.  Setting hardcode_minus_L
6880           # to unsupported forces relinking
6881           hardcode_minus_L=yes
6882           hardcode_libdir_flag_spec='-L$libdir'
6883           hardcode_libdir_separator=
6884         fi
6885       esac
6886
6887       shared_flag='-shared'
6888     else
6889       # not using gcc
6890       if test "$host_cpu" = ia64; then
6891         shared_flag='${wl}-G'
6892       else
6893         if test "$aix_use_runtimelinking" = yes; then
6894           shared_flag='${wl}-G'
6895         else
6896           shared_flag='${wl}-bM:SRE'
6897         fi
6898       fi
6899     fi
6900
6901     # It seems that -bexpall can do strange things, so it is better to
6902     # generate a list of symbols to export.
6903     always_export_symbols=yes
6904     if test "$aix_use_runtimelinking" = yes; then
6905       # Warning - without using the other runtime loading flags (-brtl),
6906       # -berok will link without error, but may produce a broken library.
6907       allow_undefined_flag='-berok'
6908       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6909       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6910     else
6911       if test "$host_cpu" = ia64; then
6912         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6913         allow_undefined_flag="-z nodefs"
6914         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6915       else
6916         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6917         # Warning - without using the other run time loading flags,
6918         # -berok will link without error, but may produce a broken library.
6919         allow_undefined_flag='${wl}-berok'
6920         # This is a bit strange, but is similar to how AIX traditionally builds
6921         # it's shared libraries.
6922         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6923       fi
6924     fi
6925     ;;
6926
6927   amigaos*)
6928     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)'
6929     hardcode_libdir_flag_spec='-L$libdir'
6930     hardcode_minus_L=yes
6931     # see comment about different semantics on the GNU ld section
6932     ld_shlibs=no
6933     ;;
6934
6935   cygwin* | mingw* | pw32*)
6936     # When not using gcc, we currently assume that we are using
6937     # Microsoft Visual C++.
6938     # hardcode_libdir_flag_spec is actually meaningless, as there is
6939     # no search path for DLLs.
6940     hardcode_libdir_flag_spec=' '
6941     allow_undefined_flag=unsupported
6942     # Tell ltmain to make .lib files, not .a files.
6943     libext=lib
6944     # FIXME: Setting linknames here is a bad hack.
6945     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6946     # The linker will automatically build a .lib file if we build a DLL.
6947     old_archive_from_new_cmds='true'
6948     # FIXME: Should let the user specify the lib program.
6949     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6950     fix_srcfile_path='`cygpath -w "$srcfile"`'
6951     ;;
6952
6953   darwin* | rhapsody*)
6954     case "$host_os" in
6955     rhapsody* | darwin1.[012])
6956       allow_undefined_flag='-undefined suppress'
6957       ;;
6958     *) # Darwin 1.3 on
6959       allow_undefined_flag='-flat_namespace -undefined suppress'
6960       ;;
6961     esac
6962     # FIXME: Relying on posixy $() will cause problems for
6963     #        cross-compilation, but unfortunately the echo tests do not
6964     #        yet detect zsh echo's removal of \ escapes.
6965     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6966     # We need to add '_' to the symbols in $export_symbols first
6967     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6968     hardcode_direct=yes
6969     hardcode_shlibpath_var=no
6970     whole_archive_flag_spec='-all_load $convenience'
6971     ;;
6972
6973   freebsd1*)
6974     ld_shlibs=no
6975     ;;
6976
6977   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6978   # support.  Future versions do this automatically, but an explicit c++rt0.o
6979   # does not break anything, and helps significantly (at the cost of a little
6980   # extra space).
6981   freebsd2.2*)
6982     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6983     hardcode_libdir_flag_spec='-R$libdir'
6984     hardcode_direct=yes
6985     hardcode_shlibpath_var=no
6986     ;;
6987
6988   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6989   freebsd2*)
6990     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6991     hardcode_direct=yes
6992     hardcode_minus_L=yes
6993     hardcode_shlibpath_var=no
6994     ;;
6995
6996   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6997   freebsd*)
6998     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6999     hardcode_libdir_flag_spec='-R$libdir'
7000     hardcode_direct=yes
7001     hardcode_shlibpath_var=no
7002     ;;
7003
7004   hpux9* | hpux10* | hpux11*)
7005     case $host_os in
7006     hpux9*) 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' ;;
7007     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7008     esac
7009     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7010     hardcode_libdir_separator=:
7011     hardcode_direct=yes
7012     hardcode_minus_L=yes # Not in the search PATH, but as the default
7013                          # location of the library.
7014     export_dynamic_flag_spec='${wl}-E'
7015     ;;
7016
7017   irix5* | irix6*)
7018     if test "$GCC" = yes; then
7019       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7020     else
7021       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7022     fi
7023     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7024     hardcode_libdir_separator=:
7025     link_all_deplibs=yes
7026     ;;
7027
7028   netbsd*)
7029     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7030       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7031     else
7032       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7033     fi
7034     hardcode_libdir_flag_spec='-R$libdir'
7035     hardcode_direct=yes
7036     hardcode_shlibpath_var=no
7037     ;;
7038
7039   newsos6)
7040     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7041     hardcode_direct=yes
7042     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7043     hardcode_libdir_separator=:
7044     hardcode_shlibpath_var=no
7045     ;;
7046
7047   openbsd*)
7048     hardcode_direct=yes
7049     hardcode_shlibpath_var=no
7050     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7051       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7052       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7053       export_dynamic_flag_spec='${wl}-E'
7054     else
7055       case "$host_os" in
7056       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7057         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7058         hardcode_libdir_flag_spec='-R$libdir'
7059         ;;
7060       *)
7061         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7062         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7063         ;;
7064       esac
7065     fi
7066     ;;
7067
7068   os2*)
7069     hardcode_libdir_flag_spec='-L$libdir'
7070     hardcode_minus_L=yes
7071     allow_undefined_flag=unsupported
7072     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'
7073     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7074     ;;
7075
7076   osf3*)
7077     if test "$GCC" = yes; then
7078       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7079       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7080     else
7081       allow_undefined_flag=' -expect_unresolved \*'
7082       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7083     fi
7084     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7085     hardcode_libdir_separator=:
7086     ;;
7087
7088   osf4* | osf5*)        # as osf3* with the addition of -msym flag
7089     if test "$GCC" = yes; then
7090       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7091       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7092       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7093     else
7094       allow_undefined_flag=' -expect_unresolved \*'
7095       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7096       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7097       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7098
7099       #Both c and cxx compiler support -rpath directly
7100       hardcode_libdir_flag_spec='-rpath $libdir'
7101     fi
7102     hardcode_libdir_separator=:
7103     ;;
7104
7105   sco3.2v5*)
7106     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7107     hardcode_shlibpath_var=no
7108     runpath_var=LD_RUN_PATH
7109     hardcode_runpath_var=yes
7110     export_dynamic_flag_spec='${wl}-Bexport'
7111     ;;
7112
7113   solaris*)
7114     # gcc --version < 3.0 without binutils cannot create self contained
7115     # shared libraries reliably, requiring libgcc.a to resolve some of
7116     # the object symbols generated in some cases.  Libraries that use
7117     # assert need libgcc.a to resolve __eprintf, for example.  Linking
7118     # a copy of libgcc.a into every shared library to guarantee resolving
7119     # such symbols causes other problems:  According to Tim Van Holder
7120     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7121     # (to the application) exception stack for one thing.
7122     no_undefined_flag=' -z defs'
7123     if test "$GCC" = yes; then
7124       case `$CC --version 2>/dev/null` in
7125       [12].*)
7126         cat <<EOF 1>&2
7127
7128 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7129 *** create self contained shared libraries on Solaris systems, without
7130 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
7131 *** -no-undefined support, which will at least allow you to build shared
7132 *** libraries.  However, you may find that when you link such libraries
7133 *** into an application without using GCC, you have to manually add
7134 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
7135 *** upgrade to a newer version of GCC.  Another option is to rebuild your
7136 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7137
7138 EOF
7139         no_undefined_flag=
7140         ;;
7141       esac
7142     fi
7143     # $CC -shared without GNU ld will not create a library from C++
7144     # object files and a static libstdc++, better avoid it by now
7145     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7147                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7148     hardcode_libdir_flag_spec='-R$libdir'
7149     hardcode_shlibpath_var=no
7150     case $host_os in
7151     solaris2.[0-5] | solaris2.[0-5].*) ;;
7152     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7153       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7154     esac
7155     link_all_deplibs=yes
7156     ;;
7157
7158   sunos4*)
7159     if test "x$host_vendor" = xsequent; then
7160       # Use $CC to link under sequent, because it throws in some extra .o
7161       # files that make .init and .fini sections work.
7162       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7163     else
7164       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7165     fi
7166     hardcode_libdir_flag_spec='-L$libdir'
7167     hardcode_direct=yes
7168     hardcode_minus_L=yes
7169     hardcode_shlibpath_var=no
7170     ;;
7171
7172   sysv4)
7173     if test "x$host_vendor" = xsno; then
7174       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
7175       hardcode_direct=yes # is this really true???
7176     else
7177       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7178       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7179     fi
7180     runpath_var='LD_RUN_PATH'
7181     hardcode_shlibpath_var=no
7182     ;;
7183
7184   sysv4.3*)
7185     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7186     hardcode_shlibpath_var=no
7187     export_dynamic_flag_spec='-Bexport'
7188     ;;
7189
7190   sysv5*)
7191     no_undefined_flag=' -z text'
7192     # $CC -shared without GNU ld will not create a library from C++
7193     # object files and a static libstdc++, better avoid it by now
7194     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7195     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7196                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7197     hardcode_libdir_flag_spec=
7198     hardcode_shlibpath_var=no
7199     runpath_var='LD_RUN_PATH'
7200     ;;
7201
7202   uts4*)
7203     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204     hardcode_libdir_flag_spec='-L$libdir'
7205     hardcode_shlibpath_var=no
7206     ;;
7207
7208   dgux*)
7209     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7210     hardcode_libdir_flag_spec='-L$libdir'
7211     hardcode_shlibpath_var=no
7212     ;;
7213
7214   sysv4*MP*)
7215     if test -d /usr/nec; then
7216       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7217       hardcode_shlibpath_var=no
7218       runpath_var=LD_RUN_PATH
7219       hardcode_runpath_var=yes
7220       ld_shlibs=yes
7221     fi
7222     ;;
7223
7224   sysv4.2uw2*)
7225     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7226     hardcode_direct=yes
7227     hardcode_minus_L=no
7228     hardcode_shlibpath_var=no
7229     hardcode_runpath_var=yes
7230     runpath_var=LD_RUN_PATH
7231     ;;
7232
7233   sysv5uw7* | unixware7*)
7234     no_undefined_flag='${wl}-z ${wl}text'
7235     if test "$GCC" = yes; then
7236       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7237     else
7238       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7239     fi
7240     runpath_var='LD_RUN_PATH'
7241     hardcode_shlibpath_var=no
7242     ;;
7243
7244   *)
7245     ld_shlibs=no
7246     ;;
7247   esac
7248 fi
7249 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7250 echo "${ECHO_T}$ld_shlibs" >&6
7251 test "$ld_shlibs" = no && can_build_shared=no
7252
7253 # Check hardcoding attributes.
7254 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7256 hardcode_action=
7257 if test -n "$hardcode_libdir_flag_spec" || \
7258    test -n "$runpath_var"; then
7259
7260   # We can hardcode non-existant directories.
7261   if test "$hardcode_direct" != no &&
7262      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7263      # have to relink, otherwise we might link with an installed library
7264      # when we should be linking with a yet-to-be-installed one
7265      ## test "$hardcode_shlibpath_var" != no &&
7266      test "$hardcode_minus_L" != no; then
7267     # Linking always hardcodes the temporary library directory.
7268     hardcode_action=relink
7269   else
7270     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7271     hardcode_action=immediate
7272   fi
7273 else
7274   # We cannot hardcode anything, or else we can only hardcode existing
7275   # directories.
7276   hardcode_action=unsupported
7277 fi
7278 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7279 echo "${ECHO_T}$hardcode_action" >&6
7280
7281 striplib=
7282 old_striplib=
7283 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7284 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7285 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7286   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7287   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7288   echo "$as_me:$LINENO: result: yes" >&5
7289 echo "${ECHO_T}yes" >&6
7290 else
7291   echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7293 fi
7294
7295 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7296 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7297
7298 # PORTME Fill in your ld.so characteristics
7299 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7300 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7301 library_names_spec=
7302 libname_spec='lib$name'
7303 soname_spec=
7304 postinstall_cmds=
7305 postuninstall_cmds=
7306 finish_cmds=
7307 finish_eval=
7308 shlibpath_var=
7309 shlibpath_overrides_runpath=unknown
7310 version_type=none
7311 dynamic_linker="$host_os ld.so"
7312 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7314
7315 case $host_os in
7316 aix3*)
7317   version_type=linux
7318   library_names_spec='${libname}${release}.so$versuffix $libname.a'
7319   shlibpath_var=LIBPATH
7320
7321   # AIX has no versioning support, so we append a major version to the name.
7322   soname_spec='${libname}${release}.so$major'
7323   ;;
7324
7325 aix4* | aix5*)
7326   version_type=linux
7327   if test "$host_cpu" = ia64; then
7328     # AIX 5 supports IA64
7329     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7330     shlibpath_var=LD_LIBRARY_PATH
7331   else
7332     # With GCC up to 2.95.x, collect2 would create an import file
7333     # for dependence libraries.  The import file would start with
7334     # the line `#! .'.  This would cause the generated library to
7335     # depend on `.', always an invalid library.  This was fixed in
7336     # development snapshots of GCC prior to 3.0.
7337     case $host_os in
7338       aix4 | aix4.[01] | aix4.[01].*)
7339         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7340              echo ' yes '
7341              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7342           :
7343         else
7344           can_build_shared=no
7345         fi
7346         ;;
7347     esac
7348     # AIX (on Power*) has no versioning support, so currently we can
7349     # not hardcode correct soname into executable. Probably we can
7350     # add versioning support to collect2, so additional links can
7351     # be useful in future.
7352     if test "$aix_use_runtimelinking" = yes; then
7353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7354       # instead of lib<name>.a to let people know that these are not
7355       # typical AIX shared libraries.
7356       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7357     else
7358       # We preserve .a as extension for shared libraries through AIX4.2
7359       # and later when we are not doing run time linking.
7360       library_names_spec='${libname}${release}.a $libname.a'
7361       soname_spec='${libname}${release}.so$major'
7362     fi
7363     shlibpath_var=LIBPATH
7364   fi
7365   ;;
7366
7367 amigaos*)
7368   library_names_spec='$libname.ixlibrary $libname.a'
7369   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7370   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'
7371   ;;
7372
7373 beos*)
7374   library_names_spec='${libname}.so'
7375   dynamic_linker="$host_os ld.so"
7376   shlibpath_var=LIBRARY_PATH
7377   ;;
7378
7379 bsdi4*)
7380   version_type=linux
7381   need_version=no
7382   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7383   soname_spec='${libname}${release}.so$major'
7384   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7385   shlibpath_var=LD_LIBRARY_PATH
7386   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7387   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7388   export_dynamic_flag_spec=-rdynamic
7389   # the default ld.so.conf also contains /usr/contrib/lib and
7390   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7391   # libtool to hard-code these into programs
7392   ;;
7393
7394 cygwin* | mingw* | pw32*)
7395   version_type=windows
7396   need_version=no
7397   need_lib_prefix=no
7398   case $GCC,$host_os in
7399   yes,cygwin*)
7400     library_names_spec='$libname.dll.a'
7401     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7402     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7403       dldir=$destdir/`dirname \$dlpath`~
7404       test -d \$dldir || mkdir -p \$dldir~
7405       $install_prog .libs/$dlname \$dldir/$dlname'
7406     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7407       dlpath=$dir/\$dldll~
7408        $rm \$dlpath'
7409     ;;
7410   yes,mingw*)
7411     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7412     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
7413     ;;
7414   yes,pw32*)
7415     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7416     ;;
7417   *)
7418     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7419     ;;
7420   esac
7421   dynamic_linker='Win32 ld.exe'
7422   # FIXME: first we should search . and the directory the executable is in
7423   shlibpath_var=PATH
7424   ;;
7425
7426 darwin* | rhapsody*)
7427   dynamic_linker="$host_os dyld"
7428   version_type=darwin
7429   need_lib_prefix=no
7430   need_version=no
7431   # FIXME: Relying on posixy $() will cause problems for
7432   #        cross-compilation, but unfortunately the echo tests do not
7433   #        yet detect zsh echo's removal of \ escapes.
7434   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7435   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7436   shlibpath_overrides_runpath=yes
7437   shlibpath_var=DYLD_LIBRARY_PATH
7438   ;;
7439
7440 freebsd1*)
7441   dynamic_linker=no
7442   ;;
7443
7444 freebsd*)
7445   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7446   version_type=freebsd-$objformat
7447   case $version_type in
7448     freebsd-elf*)
7449       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7450       need_version=no
7451       need_lib_prefix=no
7452       ;;
7453     freebsd-*)
7454       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7455       need_version=yes
7456       ;;
7457   esac
7458   shlibpath_var=LD_LIBRARY_PATH
7459   case $host_os in
7460   freebsd2*)
7461     shlibpath_overrides_runpath=yes
7462     ;;
7463   *)
7464     shlibpath_overrides_runpath=no
7465     hardcode_into_libs=yes
7466     ;;
7467   esac
7468   ;;
7469
7470 gnu*)
7471   version_type=linux
7472   need_lib_prefix=no
7473   need_version=no
7474   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7475   soname_spec='${libname}${release}.so$major'
7476   shlibpath_var=LD_LIBRARY_PATH
7477   hardcode_into_libs=yes
7478   ;;
7479
7480 hpux9* | hpux10* | hpux11*)
7481   # Give a soname corresponding to the major version so that dld.sl refuses to
7482   # link against other versions.
7483   dynamic_linker="$host_os dld.sl"
7484   version_type=sunos
7485   need_lib_prefix=no
7486   need_version=no
7487   shlibpath_var=SHLIB_PATH
7488   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7489   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7490   soname_spec='${libname}${release}.sl$major'
7491   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7492   postinstall_cmds='chmod 555 $lib'
7493   ;;
7494
7495 irix5* | irix6*)
7496   version_type=irix
7497   need_lib_prefix=no
7498   need_version=no
7499   soname_spec='${libname}${release}.so$major'
7500   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7501   case $host_os in
7502   irix5*)
7503     libsuff= shlibsuff=
7504     ;;
7505   *)
7506     case $LD in # libtool.m4 will add one of these switches to LD
7507     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7508     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7509     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7510     *) libsuff= shlibsuff= libmagic=never-match;;
7511     esac
7512     ;;
7513   esac
7514   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7515   shlibpath_overrides_runpath=no
7516   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7517   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7518   ;;
7519
7520 # No shared lib support for Linux oldld, aout, or coff.
7521 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7522   dynamic_linker=no
7523   ;;
7524
7525 # This must be Linux ELF.
7526 linux-gnu*)
7527   version_type=linux
7528   need_lib_prefix=no
7529   need_version=no
7530   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7531   soname_spec='${libname}${release}.so$major'
7532   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7533   shlibpath_var=LD_LIBRARY_PATH
7534   shlibpath_overrides_runpath=no
7535   # This implies no fast_install, which is unacceptable.
7536   # Some rework will be needed to allow for fast_install
7537   # before this can be enabled.
7538   hardcode_into_libs=yes
7539
7540   # We used to test for /lib/ld.so.1 and disable shared libraries on
7541   # powerpc, because MkLinux only supported shared libraries with the
7542   # GNU dynamic linker.  Since this was broken with cross compilers,
7543   # most powerpc-linux boxes support dynamic linking these days and
7544   # people can always --disable-shared, the test was removed, and we
7545   # assume the GNU/Linux dynamic linker is in use.
7546   dynamic_linker='GNU/Linux ld.so'
7547   ;;
7548
7549 netbsd*)
7550   version_type=sunos
7551   need_lib_prefix=no
7552   need_version=no
7553   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7554     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7555     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7556     dynamic_linker='NetBSD (a.out) ld.so'
7557   else
7558     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7559     soname_spec='${libname}${release}.so$major'
7560     dynamic_linker='NetBSD ld.elf_so'
7561   fi
7562   shlibpath_var=LD_LIBRARY_PATH
7563   shlibpath_overrides_runpath=yes
7564   hardcode_into_libs=yes
7565   ;;
7566
7567 newsos6)
7568   version_type=linux
7569   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7570   shlibpath_var=LD_LIBRARY_PATH
7571   shlibpath_overrides_runpath=yes
7572   ;;
7573
7574 openbsd*)
7575   version_type=sunos
7576   need_lib_prefix=no
7577   need_version=no
7578   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7579     case "$host_os" in
7580     openbsd2.[89] | openbsd2.[89].*)
7581       shlibpath_overrides_runpath=no
7582       ;;
7583     *)
7584       shlibpath_overrides_runpath=yes
7585       ;;
7586     esac
7587   else
7588     shlibpath_overrides_runpath=yes
7589   fi
7590   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7591   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7592   shlibpath_var=LD_LIBRARY_PATH
7593   ;;
7594
7595 os2*)
7596   libname_spec='$name'
7597   need_lib_prefix=no
7598   library_names_spec='$libname.dll $libname.a'
7599   dynamic_linker='OS/2 ld.exe'
7600   shlibpath_var=LIBPATH
7601   ;;
7602
7603 osf3* | osf4* | osf5*)
7604   version_type=osf
7605   need_version=no
7606   soname_spec='${libname}${release}.so'
7607   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7608   shlibpath_var=LD_LIBRARY_PATH
7609   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7610   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7611   ;;
7612
7613 sco3.2v5*)
7614   version_type=osf
7615   soname_spec='${libname}${release}.so$major'
7616   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7617   shlibpath_var=LD_LIBRARY_PATH
7618   ;;
7619
7620 solaris*)
7621   version_type=linux
7622   need_lib_prefix=no
7623   need_version=no
7624   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7625   soname_spec='${libname}${release}.so$major'
7626   shlibpath_var=LD_LIBRARY_PATH
7627   shlibpath_overrides_runpath=yes
7628   hardcode_into_libs=yes
7629   # ldd complains unless libraries are executable
7630   postinstall_cmds='chmod +x $lib'
7631   ;;
7632
7633 sunos4*)
7634   version_type=sunos
7635   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7636   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7637   shlibpath_var=LD_LIBRARY_PATH
7638   shlibpath_overrides_runpath=yes
7639   if test "$with_gnu_ld" = yes; then
7640     need_lib_prefix=no
7641   fi
7642   need_version=yes
7643   ;;
7644
7645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7646   version_type=linux
7647   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7648   soname_spec='${libname}${release}.so$major'
7649   shlibpath_var=LD_LIBRARY_PATH
7650   case $host_vendor in
7651     sni)
7652       shlibpath_overrides_runpath=no
7653       ;;
7654     motorola)
7655       need_lib_prefix=no
7656       need_version=no
7657       shlibpath_overrides_runpath=no
7658       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7659       ;;
7660   esac
7661   ;;
7662
7663 uts4*)
7664   version_type=linux
7665   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7666   soname_spec='${libname}${release}.so$major'
7667   shlibpath_var=LD_LIBRARY_PATH
7668   ;;
7669
7670 dgux*)
7671   version_type=linux
7672   need_lib_prefix=no
7673   need_version=no
7674   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7675   soname_spec='${libname}${release}.so$major'
7676   shlibpath_var=LD_LIBRARY_PATH
7677   ;;
7678
7679 sysv4*MP*)
7680   if test -d /usr/nec ;then
7681     version_type=linux
7682     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7683     soname_spec='$libname.so.$major'
7684     shlibpath_var=LD_LIBRARY_PATH
7685   fi
7686   ;;
7687
7688 *)
7689   dynamic_linker=no
7690   ;;
7691 esac
7692 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7693 echo "${ECHO_T}$dynamic_linker" >&6
7694 test "$dynamic_linker" = no && can_build_shared=no
7695
7696 # Report the final consequences.
7697 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7698 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7699 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7700 echo "${ECHO_T}$can_build_shared" >&6
7701
7702 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7703 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7704 test "$can_build_shared" = "no" && enable_shared=no
7705
7706 # On AIX, shared libraries and static libraries use the same namespace, and
7707 # are all built from PIC.
7708 case "$host_os" in
7709 aix3*)
7710   test "$enable_shared" = yes && enable_static=no
7711   if test -n "$RANLIB"; then
7712     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7713     postinstall_cmds='$RANLIB $lib'
7714   fi
7715   ;;
7716
7717 aix4*)
7718   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7719     test "$enable_shared" = yes && enable_static=no
7720   fi
7721   ;;
7722 esac
7723 echo "$as_me:$LINENO: result: $enable_shared" >&5
7724 echo "${ECHO_T}$enable_shared" >&6
7725
7726 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7727 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7728 # Make sure either enable_shared or enable_static is yes.
7729 test "$enable_shared" = yes || enable_static=yes
7730 echo "$as_me:$LINENO: result: $enable_static" >&5
7731 echo "${ECHO_T}$enable_static" >&6
7732
7733 if test "$hardcode_action" = relink; then
7734   # Fast installation is not supported
7735   enable_fast_install=no
7736 elif test "$shlibpath_overrides_runpath" = yes ||
7737      test "$enable_shared" = no; then
7738   # Fast installation is not necessary
7739   enable_fast_install=needless
7740 fi
7741
7742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7743 if test "$GCC" = yes; then
7744   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7745 fi
7746
7747 if test "x$enable_dlopen" != xyes; then
7748   enable_dlopen=unknown
7749   enable_dlopen_self=unknown
7750   enable_dlopen_self_static=unknown
7751 else
7752   lt_cv_dlopen=no
7753   lt_cv_dlopen_libs=
7754
7755   case $host_os in
7756   beos*)
7757     lt_cv_dlopen="load_add_on"
7758     lt_cv_dlopen_libs=
7759     lt_cv_dlopen_self=yes
7760     ;;
7761
7762   cygwin* | mingw* | pw32*)
7763     lt_cv_dlopen="LoadLibrary"
7764     lt_cv_dlopen_libs=
7765    ;;
7766
7767   *)
7768     echo "$as_me:$LINENO: checking for shl_load" >&5
7769 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7770 if test "${ac_cv_func_shl_load+set}" = set; then
7771   echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773   cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h.  */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h.  */
7779 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7781 #define shl_load innocuous_shl_load
7782
7783 /* System header to define __stub macros and hopefully few prototypes,
7784     which can conflict with char shl_load (); below.
7785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786     <limits.h> exists even on freestanding compilers.  */
7787
7788 #ifdef __STDC__
7789 # include <limits.h>
7790 #else
7791 # include <assert.h>
7792 #endif
7793
7794 #undef shl_load
7795
7796 /* Override any gcc2 internal prototype to avoid an error.  */
7797 #ifdef __cplusplus
7798 extern "C"
7799 {
7800 #endif
7801 /* We use char because int might match the return type of a gcc2
7802    builtin and then its argument prototype would still apply.  */
7803 char shl_load ();
7804 /* The GNU C library defines this for functions which it implements
7805     to always fail with ENOSYS.  Some functions are actually named
7806     something starting with __ and the normal name is an alias.  */
7807 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7808 choke me
7809 #else
7810 char (*f) () = shl_load;
7811 #endif
7812 #ifdef __cplusplus
7813 }
7814 #endif
7815
7816 int
7817 main ()
7818 {
7819 return f != shl_load;
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826   (eval $ac_link) 2>conftest.er1
7827   ac_status=$?
7828   grep -v '^ *+' conftest.er1 >conftest.err
7829   rm -f conftest.er1
7830   cat conftest.err >&5
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -z "$ac_c_werror_flag"
7834                          || test ! -s conftest.err'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; } &&
7840          { ac_try='test -s conftest$ac_exeext'
7841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   ac_cv_func_shl_load=yes
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 ac_cv_func_shl_load=no
7852 fi
7853 rm -f conftest.err conftest.$ac_objext \
7854       conftest$ac_exeext conftest.$ac_ext
7855 fi
7856 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7857 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7858 if test $ac_cv_func_shl_load = yes; then
7859   lt_cv_dlopen="shl_load"
7860 else
7861   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7862 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7863 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   ac_check_lib_save_LIBS=$LIBS
7867 LIBS="-ldld  $LIBS"
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874
7875 /* Override any gcc2 internal prototype to avoid an error.  */
7876 #ifdef __cplusplus
7877 extern "C"
7878 #endif
7879 /* We use char because int might match the return type of a gcc2
7880    builtin and then its argument prototype would still apply.  */
7881 char shl_load ();
7882 int
7883 main ()
7884 {
7885 shl_load ();
7886   ;
7887   return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest.$ac_objext conftest$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892   (eval $ac_link) 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
7896   cat conftest.err >&5
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } &&
7899          { ac_try='test -z "$ac_c_werror_flag"
7900                          || test ! -s conftest.err'
7901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902   (eval $ac_try) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); }; } &&
7906          { ac_try='test -s conftest$ac_exeext'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; }; then
7912   ac_cv_lib_dld_shl_load=yes
7913 else
7914   echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7916
7917 ac_cv_lib_dld_shl_load=no
7918 fi
7919 rm -f conftest.err conftest.$ac_objext \
7920       conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7922 fi
7923 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7924 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7925 if test $ac_cv_lib_dld_shl_load = yes; then
7926   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7927 else
7928   echo "$as_me:$LINENO: checking for dlopen" >&5
7929 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7930 if test "${ac_cv_func_dlopen+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h.  */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h.  */
7939 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7941 #define dlopen innocuous_dlopen
7942
7943 /* System header to define __stub macros and hopefully few prototypes,
7944     which can conflict with char dlopen (); below.
7945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7946     <limits.h> exists even on freestanding compilers.  */
7947
7948 #ifdef __STDC__
7949 # include <limits.h>
7950 #else
7951 # include <assert.h>
7952 #endif
7953
7954 #undef dlopen
7955
7956 /* Override any gcc2 internal prototype to avoid an error.  */
7957 #ifdef __cplusplus
7958 extern "C"
7959 {
7960 #endif
7961 /* We use char because int might match the return type of a gcc2
7962    builtin and then its argument prototype would still apply.  */
7963 char dlopen ();
7964 /* The GNU C library defines this for functions which it implements
7965     to always fail with ENOSYS.  Some functions are actually named
7966     something starting with __ and the normal name is an alias.  */
7967 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7968 choke me
7969 #else
7970 char (*f) () = dlopen;
7971 #endif
7972 #ifdef __cplusplus
7973 }
7974 #endif
7975
7976 int
7977 main ()
7978 {
7979 return f != dlopen;
7980   ;
7981   return 0;
7982 }
7983 _ACEOF
7984 rm -f conftest.$ac_objext conftest$ac_exeext
7985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7986   (eval $ac_link) 2>conftest.er1
7987   ac_status=$?
7988   grep -v '^ *+' conftest.er1 >conftest.err
7989   rm -f conftest.er1
7990   cat conftest.err >&5
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); } &&
7993          { ac_try='test -z "$ac_c_werror_flag"
7994                          || test ! -s conftest.err'
7995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996   (eval $ac_try) 2>&5
7997   ac_status=$?
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); }; } &&
8000          { ac_try='test -s conftest$ac_exeext'
8001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002   (eval $ac_try) 2>&5
8003   ac_status=$?
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); }; }; then
8006   ac_cv_func_dlopen=yes
8007 else
8008   echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011 ac_cv_func_dlopen=no
8012 fi
8013 rm -f conftest.err conftest.$ac_objext \
8014       conftest$ac_exeext conftest.$ac_ext
8015 fi
8016 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8017 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8018 if test $ac_cv_func_dlopen = yes; then
8019   lt_cv_dlopen="dlopen"
8020 else
8021   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8022 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8023 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   ac_check_lib_save_LIBS=$LIBS
8027 LIBS="-ldl  $LIBS"
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h.  */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h.  */
8034
8035 /* Override any gcc2 internal prototype to avoid an error.  */
8036 #ifdef __cplusplus
8037 extern "C"
8038 #endif
8039 /* We use char because int might match the return type of a gcc2
8040    builtin and then its argument prototype would still apply.  */
8041 char dlopen ();
8042 int
8043 main ()
8044 {
8045 dlopen ();
8046   ;
8047   return 0;
8048 }
8049 _ACEOF
8050 rm -f conftest.$ac_objext conftest$ac_exeext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8052   (eval $ac_link) 2>conftest.er1
8053   ac_status=$?
8054   grep -v '^ *+' conftest.er1 >conftest.err
8055   rm -f conftest.er1
8056   cat conftest.err >&5
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); } &&
8059          { ac_try='test -z "$ac_c_werror_flag"
8060                          || test ! -s conftest.err'
8061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062   (eval $ac_try) 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; } &&
8066          { ac_try='test -s conftest$ac_exeext'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; }; then
8072   ac_cv_lib_dl_dlopen=yes
8073 else
8074   echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8076
8077 ac_cv_lib_dl_dlopen=no
8078 fi
8079 rm -f conftest.err conftest.$ac_objext \
8080       conftest$ac_exeext conftest.$ac_ext
8081 LIBS=$ac_check_lib_save_LIBS
8082 fi
8083 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8084 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8085 if test $ac_cv_lib_dl_dlopen = yes; then
8086   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8087 else
8088   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8089 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8090 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   ac_check_lib_save_LIBS=$LIBS
8094 LIBS="-lsvld  $LIBS"
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h.  */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h.  */
8101
8102 /* Override any gcc2 internal prototype to avoid an error.  */
8103 #ifdef __cplusplus
8104 extern "C"
8105 #endif
8106 /* We use char because int might match the return type of a gcc2
8107    builtin and then its argument prototype would still apply.  */
8108 char dlopen ();
8109 int
8110 main ()
8111 {
8112 dlopen ();
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119   (eval $ac_link) 2>conftest.er1
8120   ac_status=$?
8121   grep -v '^ *+' conftest.er1 >conftest.err
8122   rm -f conftest.er1
8123   cat conftest.err >&5
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } &&
8126          { ac_try='test -z "$ac_c_werror_flag"
8127                          || test ! -s conftest.err'
8128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129   (eval $ac_try) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); }; } &&
8133          { ac_try='test -s conftest$ac_exeext'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_cv_lib_svld_dlopen=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 ac_cv_lib_svld_dlopen=no
8145 fi
8146 rm -f conftest.err conftest.$ac_objext \
8147       conftest$ac_exeext conftest.$ac_ext
8148 LIBS=$ac_check_lib_save_LIBS
8149 fi
8150 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8151 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8152 if test $ac_cv_lib_svld_dlopen = yes; then
8153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8154 else
8155   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8156 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8157 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   ac_check_lib_save_LIBS=$LIBS
8161 LIBS="-ldld  $LIBS"
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h.  */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h.  */
8168
8169 /* Override any gcc2 internal prototype to avoid an error.  */
8170 #ifdef __cplusplus
8171 extern "C"
8172 #endif
8173 /* We use char because int might match the return type of a gcc2
8174    builtin and then its argument prototype would still apply.  */
8175 char dld_link ();
8176 int
8177 main ()
8178 {
8179 dld_link ();
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186   (eval $ac_link) 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -z "$ac_c_werror_flag"
8194                          || test ! -s conftest.err'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; } &&
8200          { ac_try='test -s conftest$ac_exeext'
8201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202   (eval $ac_try) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; }; then
8206   ac_cv_lib_dld_dld_link=yes
8207 else
8208   echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 ac_cv_lib_dld_dld_link=no
8212 fi
8213 rm -f conftest.err conftest.$ac_objext \
8214       conftest$ac_exeext conftest.$ac_ext
8215 LIBS=$ac_check_lib_save_LIBS
8216 fi
8217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8219 if test $ac_cv_lib_dld_dld_link = yes; then
8220   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8221 fi
8222
8223
8224 fi
8225
8226
8227 fi
8228
8229
8230 fi
8231
8232
8233 fi
8234
8235
8236 fi
8237
8238     ;;
8239   esac
8240
8241   if test "x$lt_cv_dlopen" != xno; then
8242     enable_dlopen=yes
8243   else
8244     enable_dlopen=no
8245   fi
8246
8247   case $lt_cv_dlopen in
8248   dlopen)
8249     save_CPPFLAGS="$CPPFLAGS"
8250         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8251
8252     save_LDFLAGS="$LDFLAGS"
8253     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8254
8255     save_LIBS="$LIBS"
8256     LIBS="$lt_cv_dlopen_libs $LIBS"
8257
8258     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8259 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8260 if test "${lt_cv_dlopen_self+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263           if test "$cross_compiling" = yes; then :
8264   lt_cv_dlopen_self=cross
8265 else
8266     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8267   lt_status=$lt_dlunknown
8268   cat > conftest.$ac_ext <<EOF
8269 #line 8269 "configure"
8270 #include "confdefs.h"
8271
8272 #if HAVE_DLFCN_H
8273 #include <dlfcn.h>
8274 #endif
8275
8276 #include <stdio.h>
8277
8278 #ifdef RTLD_GLOBAL
8279 #  define LT_DLGLOBAL           RTLD_GLOBAL
8280 #else
8281 #  ifdef DL_GLOBAL
8282 #    define LT_DLGLOBAL         DL_GLOBAL
8283 #  else
8284 #    define LT_DLGLOBAL         0
8285 #  endif
8286 #endif
8287
8288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8289    find out it does not work in some platform. */
8290 #ifndef LT_DLLAZY_OR_NOW
8291 #  ifdef RTLD_LAZY
8292 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8293 #  else
8294 #    ifdef DL_LAZY
8295 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8296 #    else
8297 #      ifdef RTLD_NOW
8298 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8299 #      else
8300 #        ifdef DL_NOW
8301 #          define LT_DLLAZY_OR_NOW      DL_NOW
8302 #        else
8303 #          define LT_DLLAZY_OR_NOW      0
8304 #        endif
8305 #      endif
8306 #    endif
8307 #  endif
8308 #endif
8309
8310 #ifdef __cplusplus
8311 extern "C" void exit (int);
8312 #endif
8313
8314 void fnord() { int i=42;}
8315 int main ()
8316 {
8317   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8318   int status = $lt_dlunknown;
8319
8320   if (self)
8321     {
8322       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8323       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8324       /* dlclose (self); */
8325     }
8326
8327     exit (status);
8328 }
8329 EOF
8330   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331   (eval $ac_link) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8335     (./conftest; exit; ) 2>/dev/null
8336     lt_status=$?
8337     case x$lt_status in
8338       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8339       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8340       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8341     esac
8342   else :
8343     # compilation failed
8344     lt_cv_dlopen_self=no
8345   fi
8346 fi
8347 rm -fr conftest*
8348
8349
8350 fi
8351 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8352 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8353
8354     if test "x$lt_cv_dlopen_self" = xyes; then
8355       LDFLAGS="$LDFLAGS $link_static_flag"
8356       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8357 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8358 if test "${lt_cv_dlopen_self_static+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361           if test "$cross_compiling" = yes; then :
8362   lt_cv_dlopen_self_static=cross
8363 else
8364     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8365   lt_status=$lt_dlunknown
8366   cat > conftest.$ac_ext <<EOF
8367 #line 8367 "configure"
8368 #include "confdefs.h"
8369
8370 #if HAVE_DLFCN_H
8371 #include <dlfcn.h>
8372 #endif
8373
8374 #include <stdio.h>
8375
8376 #ifdef RTLD_GLOBAL
8377 #  define LT_DLGLOBAL           RTLD_GLOBAL
8378 #else
8379 #  ifdef DL_GLOBAL
8380 #    define LT_DLGLOBAL         DL_GLOBAL
8381 #  else
8382 #    define LT_DLGLOBAL         0
8383 #  endif
8384 #endif
8385
8386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8387    find out it does not work in some platform. */
8388 #ifndef LT_DLLAZY_OR_NOW
8389 #  ifdef RTLD_LAZY
8390 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8391 #  else
8392 #    ifdef DL_LAZY
8393 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8394 #    else
8395 #      ifdef RTLD_NOW
8396 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8397 #      else
8398 #        ifdef DL_NOW
8399 #          define LT_DLLAZY_OR_NOW      DL_NOW
8400 #        else
8401 #          define LT_DLLAZY_OR_NOW      0
8402 #        endif
8403 #      endif
8404 #    endif
8405 #  endif
8406 #endif
8407
8408 #ifdef __cplusplus
8409 extern "C" void exit (int);
8410 #endif
8411
8412 void fnord() { int i=42;}
8413 int main ()
8414 {
8415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8416   int status = $lt_dlunknown;
8417
8418   if (self)
8419     {
8420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8421       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8422       /* dlclose (self); */
8423     }
8424
8425     exit (status);
8426 }
8427 EOF
8428   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429   (eval $ac_link) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8433     (./conftest; exit; ) 2>/dev/null
8434     lt_status=$?
8435     case x$lt_status in
8436       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8437       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8438       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8439     esac
8440   else :
8441     # compilation failed
8442     lt_cv_dlopen_self_static=no
8443   fi
8444 fi
8445 rm -fr conftest*
8446
8447
8448 fi
8449 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8450 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8451     fi
8452
8453     CPPFLAGS="$save_CPPFLAGS"
8454     LDFLAGS="$save_LDFLAGS"
8455     LIBS="$save_LIBS"
8456     ;;
8457   esac
8458
8459   case $lt_cv_dlopen_self in
8460   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8461   *) enable_dlopen_self=unknown ;;
8462   esac
8463
8464   case $lt_cv_dlopen_self_static in
8465   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8466   *) enable_dlopen_self_static=unknown ;;
8467   esac
8468 fi
8469
8470
8471 if test "$enable_shared" = yes && test "$GCC" = yes; then
8472   case $archive_cmds in
8473   *'~'*)
8474     # FIXME: we may have to deal with multi-command sequences.
8475     ;;
8476   '$CC '*)
8477     # Test whether the compiler implicitly links with -lc since on some
8478     # systems, -lgcc has to come before -lc. If gcc already passes -lc
8479     # to ld, don't add -lc before -lgcc.
8480     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8481 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8482     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8483   echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485   $rm conftest*
8486     echo 'static int dummy;' > conftest.$ac_ext
8487
8488     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489   (eval $ac_compile) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; then
8493       soname=conftest
8494       lib=conftest
8495       libobjs=conftest.$ac_objext
8496       deplibs=
8497       wl=$lt_cv_prog_cc_wl
8498       compiler_flags=-v
8499       linker_flags=-v
8500       verstring=
8501       output_objdir=.
8502       libname=conftest
8503       save_allow_undefined_flag=$allow_undefined_flag
8504       allow_undefined_flag=
8505       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8506   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }
8510       then
8511         lt_cv_archive_cmds_need_lc=no
8512       else
8513         lt_cv_archive_cmds_need_lc=yes
8514       fi
8515       allow_undefined_flag=$save_allow_undefined_flag
8516     else
8517       cat conftest.err 1>&5
8518     fi
8519 fi
8520
8521     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8522 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8523     ;;
8524   esac
8525 fi
8526 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8527
8528 # The second clause should only fire when bootstrapping the
8529 # libtool distribution, otherwise you forgot to ship ltmain.sh
8530 # with your package, and you will get complaints that there are
8531 # no rules to generate ltmain.sh.
8532 if test -f "$ltmain"; then
8533   :
8534 else
8535   # If there is no Makefile yet, we rely on a make rule to execute
8536   # `config.status --recheck' to rerun these tests and create the
8537   # libtool script then.
8538   test -f Makefile && make "$ltmain"
8539 fi
8540
8541 if test -f "$ltmain"; then
8542   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8543   $rm -f "${ofile}T"
8544
8545   echo creating $ofile
8546
8547   # Now quote all the things that may contain metacharacters while being
8548   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8549   # variables and quote the copies for generation of the libtool script.
8550   for var in echo old_CC old_CFLAGS \
8551     AR AR_FLAGS CC LD LN_S NM SHELL \
8552     reload_flag reload_cmds wl \
8553     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8554     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8555     library_names_spec soname_spec \
8556     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8557     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8558     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8559     old_striplib striplib file_magic_cmd export_symbols_cmds \
8560     deplibs_check_method allow_undefined_flag no_undefined_flag \
8561     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8562     global_symbol_to_c_name_address \
8563     hardcode_libdir_flag_spec hardcode_libdir_separator  \
8564     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8565     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8566
8567     case $var in
8568     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8569     old_postinstall_cmds | old_postuninstall_cmds | \
8570     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8571     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8572     postinstall_cmds | postuninstall_cmds | \
8573     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8574       # Double-quote double-evaled strings.
8575       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8576       ;;
8577     *)
8578       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8579       ;;
8580     esac
8581   done
8582
8583   cat <<__EOF__ > "${ofile}T"
8584 #! $SHELL
8585
8586 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8587 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8588 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8589 #
8590 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8591 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8592 #
8593 # This program is free software; you can redistribute it and/or modify
8594 # it under the terms of the GNU General Public License as published by
8595 # the Free Software Foundation; either version 2 of the License, or
8596 # (at your option) any later version.
8597 #
8598 # This program is distributed in the hope that it will be useful, but
8599 # WITHOUT ANY WARRANTY; without even the implied warranty of
8600 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8601 # General Public License for more details.
8602 #
8603 # You should have received a copy of the GNU General Public License
8604 # along with this program; if not, write to the Free Software
8605 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8606 #
8607 # As a special exception to the GNU General Public License, if you
8608 # distribute this file as part of a program that contains a
8609 # configuration script generated by Autoconf, you may include it under
8610 # the same distribution terms that you use for the rest of that program.
8611
8612 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8613 Xsed="sed -e s/^X//"
8614
8615 # The HP-UX ksh and POSIX shell print the target directory to stdout
8616 # if CDPATH is set.
8617 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8618
8619 # ### BEGIN LIBTOOL CONFIG
8620
8621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8622
8623 # Shell to use when invoking shell scripts.
8624 SHELL=$lt_SHELL
8625
8626 # Whether or not to build shared libraries.
8627 build_libtool_libs=$enable_shared
8628
8629 # Whether or not to build static libraries.
8630 build_old_libs=$enable_static
8631
8632 # Whether or not to add -lc for building shared libraries.
8633 build_libtool_need_lc=$need_lc
8634
8635 # Whether or not to optimize for fast installation.
8636 fast_install=$enable_fast_install
8637
8638 # The host system.
8639 host_alias=$host_alias
8640 host=$host
8641
8642 # An echo program that does not interpret backslashes.
8643 echo=$lt_echo
8644
8645 # The archiver.
8646 AR=$lt_AR
8647 AR_FLAGS=$lt_AR_FLAGS
8648
8649 # The default C compiler.
8650 CC=$lt_CC
8651
8652 # Is the compiler the GNU C compiler?
8653 with_gcc=$GCC
8654
8655 # The linker used to build libraries.
8656 LD=$lt_LD
8657
8658 # Whether we need hard or soft links.
8659 LN_S=$lt_LN_S
8660
8661 # A BSD-compatible nm program.
8662 NM=$lt_NM
8663
8664 # A symbol stripping program
8665 STRIP=$STRIP
8666
8667 # Used to examine libraries when file_magic_cmd begins "file"
8668 MAGIC_CMD=$MAGIC_CMD
8669
8670 # Used on cygwin: DLL creation program.
8671 DLLTOOL="$DLLTOOL"
8672
8673 # Used on cygwin: object dumper.
8674 OBJDUMP="$OBJDUMP"
8675
8676 # Used on cygwin: assembler.
8677 AS="$AS"
8678
8679 # The name of the directory that contains temporary libtool files.
8680 objdir=$objdir
8681
8682 # How to create reloadable object files.
8683 reload_flag=$lt_reload_flag
8684 reload_cmds=$lt_reload_cmds
8685
8686 # How to pass a linker flag through the compiler.
8687 wl=$lt_wl
8688
8689 # Object file suffix (normally "o").
8690 objext="$ac_objext"
8691
8692 # Old archive suffix (normally "a").
8693 libext="$libext"
8694
8695 # Executable file suffix (normally "").
8696 exeext="$exeext"
8697
8698 # Additional compiler flags for building library objects.
8699 pic_flag=$lt_pic_flag
8700 pic_mode=$pic_mode
8701
8702 # Does compiler simultaneously support -c and -o options?
8703 compiler_c_o=$lt_compiler_c_o
8704
8705 # Can we write directly to a .lo ?
8706 compiler_o_lo=$lt_compiler_o_lo
8707
8708 # Must we lock files when doing compilation ?
8709 need_locks=$lt_need_locks
8710
8711 # Do we need the lib prefix for modules?
8712 need_lib_prefix=$need_lib_prefix
8713
8714 # Do we need a version for libraries?
8715 need_version=$need_version
8716
8717 # Whether dlopen is supported.
8718 dlopen_support=$enable_dlopen
8719
8720 # Whether dlopen of programs is supported.
8721 dlopen_self=$enable_dlopen_self
8722
8723 # Whether dlopen of statically linked programs is supported.
8724 dlopen_self_static=$enable_dlopen_self_static
8725
8726 # Compiler flag to prevent dynamic linking.
8727 link_static_flag=$lt_link_static_flag
8728
8729 # Compiler flag to turn off builtin functions.
8730 no_builtin_flag=$lt_no_builtin_flag
8731
8732 # Compiler flag to allow reflexive dlopens.
8733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8734
8735 # Compiler flag to generate shared objects directly from archives.
8736 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8737
8738 # Compiler flag to generate thread-safe objects.
8739 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8740
8741 # Library versioning type.
8742 version_type=$version_type
8743
8744 # Format of library name prefix.
8745 libname_spec=$lt_libname_spec
8746
8747 # List of archive names.  First name is the real one, the rest are links.
8748 # The last name is the one that the linker finds with -lNAME.
8749 library_names_spec=$lt_library_names_spec
8750
8751 # The coded name of the library, if different from the real name.
8752 soname_spec=$lt_soname_spec
8753
8754 # Commands used to build and install an old-style archive.
8755 RANLIB=$lt_RANLIB
8756 old_archive_cmds=$lt_old_archive_cmds
8757 old_postinstall_cmds=$lt_old_postinstall_cmds
8758 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8759
8760 # Create an old-style archive from a shared archive.
8761 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8762
8763 # Create a temporary old-style archive to link instead of a shared archive.
8764 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8765
8766 # Commands used to build and install a shared archive.
8767 archive_cmds=$lt_archive_cmds
8768 archive_expsym_cmds=$lt_archive_expsym_cmds
8769 postinstall_cmds=$lt_postinstall_cmds
8770 postuninstall_cmds=$lt_postuninstall_cmds
8771
8772 # Commands to strip libraries.
8773 old_striplib=$lt_old_striplib
8774 striplib=$lt_striplib
8775
8776 # Method to check whether dependent libraries are shared objects.
8777 deplibs_check_method=$lt_deplibs_check_method
8778
8779 # Command to use when deplibs_check_method == file_magic.
8780 file_magic_cmd=$lt_file_magic_cmd
8781
8782 # Flag that allows shared libraries with undefined symbols to be built.
8783 allow_undefined_flag=$lt_allow_undefined_flag
8784
8785 # Flag that forces no undefined symbols.
8786 no_undefined_flag=$lt_no_undefined_flag
8787
8788 # Commands used to finish a libtool library installation in a directory.
8789 finish_cmds=$lt_finish_cmds
8790
8791 # Same as above, but a single script fragment to be evaled but not shown.
8792 finish_eval=$lt_finish_eval
8793
8794 # Take the output of nm and produce a listing of raw symbols and C names.
8795 global_symbol_pipe=$lt_global_symbol_pipe
8796
8797 # Transform the output of nm in a proper C declaration
8798 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8799
8800 # Transform the output of nm in a C name address pair
8801 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8802
8803 # This is the shared library runtime path variable.
8804 runpath_var=$runpath_var
8805
8806 # This is the shared library path variable.
8807 shlibpath_var=$shlibpath_var
8808
8809 # Is shlibpath searched before the hard-coded library search path?
8810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8811
8812 # How to hardcode a shared library path into an executable.
8813 hardcode_action=$hardcode_action
8814
8815 # Whether we should hardcode library paths into libraries.
8816 hardcode_into_libs=$hardcode_into_libs
8817
8818 # Flag to hardcode \$libdir into a binary during linking.
8819 # This must work even if \$libdir does not exist.
8820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8821
8822 # Whether we need a single -rpath flag with a separated argument.
8823 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8824
8825 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8826 # resulting binary.
8827 hardcode_direct=$hardcode_direct
8828
8829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8830 # resulting binary.
8831 hardcode_minus_L=$hardcode_minus_L
8832
8833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8834 # the resulting binary.
8835 hardcode_shlibpath_var=$hardcode_shlibpath_var
8836
8837 # Variables whose values should be saved in libtool wrapper scripts and
8838 # restored at relink time.
8839 variables_saved_for_relink="$variables_saved_for_relink"
8840
8841 # Whether libtool must link a program against all its dependency libraries.
8842 link_all_deplibs=$link_all_deplibs
8843
8844 # Compile-time system search path for libraries
8845 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8846
8847 # Run-time system search path for libraries
8848 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8849
8850 # Fix the shell variable \$srcfile for the compiler.
8851 fix_srcfile_path="$fix_srcfile_path"
8852
8853 # Set to yes if exported symbols are required.
8854 always_export_symbols=$always_export_symbols
8855
8856 # The commands to list exported symbols.
8857 export_symbols_cmds=$lt_export_symbols_cmds
8858
8859 # The commands to extract the exported symbol list from a shared archive.
8860 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8861
8862 # Symbols that should not be listed in the preloaded symbols.
8863 exclude_expsyms=$lt_exclude_expsyms
8864
8865 # Symbols that must always be exported.
8866 include_expsyms=$lt_include_expsyms
8867
8868 # ### END LIBTOOL CONFIG
8869
8870 __EOF__
8871
8872   case $host_os in
8873   aix3*)
8874     cat <<\EOF >> "${ofile}T"
8875
8876 # AIX sometimes has problems with the GCC collect2 program.  For some
8877 # reason, if we set the COLLECT_NAMES environment variable, the problems
8878 # vanish in a puff of smoke.
8879 if test "X${COLLECT_NAMES+set}" != Xset; then
8880   COLLECT_NAMES=
8881   export COLLECT_NAMES
8882 fi
8883 EOF
8884     ;;
8885   esac
8886
8887   case $host_os in
8888   cygwin* | mingw* | pw32* | os2*)
8889     cat <<'EOF' >> "${ofile}T"
8890       # This is a source program that is used to create dlls on Windows
8891       # Don't remove nor modify the starting and closing comments
8892 # /* ltdll.c starts here */
8893 # #define WIN32_LEAN_AND_MEAN
8894 # #include <windows.h>
8895 # #undef WIN32_LEAN_AND_MEAN
8896 # #include <stdio.h>
8897 #
8898 # #ifndef __CYGWIN__
8899 # #  ifdef __CYGWIN32__
8900 # #    define __CYGWIN__ __CYGWIN32__
8901 # #  endif
8902 # #endif
8903 #
8904 # #ifdef __cplusplus
8905 # extern "C" {
8906 # #endif
8907 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8908 # #ifdef __cplusplus
8909 # }
8910 # #endif
8911 #
8912 # #ifdef __CYGWIN__
8913 # #include <cygwin/cygwin_dll.h>
8914 # DECLARE_CYGWIN_DLL( DllMain );
8915 # #endif
8916 # HINSTANCE __hDllInstance_base;
8917 #
8918 # BOOL APIENTRY
8919 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8920 # {
8921 #   __hDllInstance_base = hInst;
8922 #   return TRUE;
8923 # }
8924 # /* ltdll.c ends here */
8925         # This is a source program that is used to create import libraries
8926         # on Windows for dlls which lack them. Don't remove nor modify the
8927         # starting and closing comments
8928 # /* impgen.c starts here */
8929 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8930 #
8931 #  This file is part of GNU libtool.
8932 #
8933 #  This program is free software; you can redistribute it and/or modify
8934 #  it under the terms of the GNU General Public License as published by
8935 #  the Free Software Foundation; either version 2 of the License, or
8936 #  (at your option) any later version.
8937 #
8938 #  This program is distributed in the hope that it will be useful,
8939 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8940 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8941 #  GNU General Public License for more details.
8942 #
8943 #  You should have received a copy of the GNU General Public License
8944 #  along with this program; if not, write to the Free Software
8945 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8946 #  */
8947 #
8948 # #include <stdio.h>            /* for printf() */
8949 # #include <unistd.h>           /* for open(), lseek(), read() */
8950 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8951 # #include <string.h>           /* for strdup() */
8952 #
8953 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8954 # #ifndef O_BINARY
8955 # #define O_BINARY 0
8956 # #endif
8957 #
8958 # static unsigned int
8959 # pe_get16 (fd, offset)
8960 #      int fd;
8961 #      int offset;
8962 # {
8963 #   unsigned char b[2];
8964 #   lseek (fd, offset, SEEK_SET);
8965 #   read (fd, b, 2);
8966 #   return b[0] + (b[1]<<8);
8967 # }
8968 #
8969 # static unsigned int
8970 # pe_get32 (fd, offset)
8971 #     int fd;
8972 #     int offset;
8973 # {
8974 #   unsigned char b[4];
8975 #   lseek (fd, offset, SEEK_SET);
8976 #   read (fd, b, 4);
8977 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8978 # }
8979 #
8980 # static unsigned int
8981 # pe_as32 (ptr)
8982 #      void *ptr;
8983 # {
8984 #   unsigned char *b = ptr;
8985 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8986 # }
8987 #
8988 # int
8989 # main (argc, argv)
8990 #     int argc;
8991 #     char *argv[];
8992 # {
8993 #     int dll;
8994 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8995 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8996 #     unsigned long name_rvas, nexp;
8997 #     unsigned char *expdata, *erva;
8998 #     char *filename, *dll_name;
8999 #
9000 #     filename = argv[1];
9001 #
9002 #     dll = open(filename, O_RDONLY|O_BINARY);
9003 #     if (dll < 1)
9004 #       return 1;
9005 #
9006 #     dll_name = filename;
9007 #
9008 #     for (i=0; filename[i]; i++)
9009 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
9010 #           dll_name = filename + i +1;
9011 #
9012 #     pe_header_offset = pe_get32 (dll, 0x3c);
9013 #     opthdr_ofs = pe_header_offset + 4 + 20;
9014 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
9015 #
9016 #     if (num_entries < 1) /* no exports */
9017 #       return 1;
9018 #
9019 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
9020 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
9021 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9022 #     secptr = (pe_header_offset + 4 + 20 +
9023 #             pe_get16 (dll, pe_header_offset + 4 + 16));
9024 #
9025 #     expptr = 0;
9026 #     for (i = 0; i < nsections; i++)
9027 #     {
9028 #       char sname[8];
9029 #       unsigned long secptr1 = secptr + 40 * i;
9030 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9031 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9032 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9033 #       lseek(dll, secptr1, SEEK_SET);
9034 #       read(dll, sname, 8);
9035 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
9036 #       {
9037 #           expptr = fptr + (export_rva - vaddr);
9038 #           if (export_rva + export_size > vaddr + vsize)
9039 #               export_size = vsize - (export_rva - vaddr);
9040 #           break;
9041 #       }
9042 #     }
9043 #
9044 #     expdata = (unsigned char*)malloc(export_size);
9045 #     lseek (dll, expptr, SEEK_SET);
9046 #     read (dll, expdata, export_size);
9047 #     erva = expdata - export_rva;
9048 #
9049 #     nexp = pe_as32 (expdata+24);
9050 #     name_rvas = pe_as32 (expdata+32);
9051 #
9052 #     printf ("EXPORTS\n");
9053 #     for (i = 0; i<nexp; i++)
9054 #     {
9055 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9056 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9057 #     }
9058 #
9059 #     return 0;
9060 # }
9061 # /* impgen.c ends here */
9062
9063 EOF
9064     ;;
9065   esac
9066
9067   # We use sed instead of cat because bash on DJGPP gets confused if
9068   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9069   # text mode, it properly converts lines to CR/LF.  This bash problem
9070   # is reportedly fixed, but why not run on old versions too?
9071   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9072
9073   mv -f "${ofile}T" "$ofile" || \
9074     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9075   chmod +x "$ofile"
9076 fi
9077
9078
9079
9080
9081
9082 # This can be used to rebuild libtool when needed
9083 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9084
9085 # Always use our own libtool.
9086 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9087
9088 # Prevent multiple expansion
9089
9090
9091
9092 # Find a good install program.  We prefer a C program (faster),
9093 # so one script is as good as another.  But avoid the broken or
9094 # incompatible versions:
9095 # SysV /etc/install, /usr/sbin/install
9096 # SunOS /usr/etc/install
9097 # IRIX /sbin/install
9098 # AIX /bin/install
9099 # AmigaOS /C/install, which installs bootblocks on floppy discs
9100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9103 # OS/2's system install, which has a completely different semantic
9104 # ./install, which can be erroneously created by make from ./install.sh.
9105 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9106 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9107 if test -z "$INSTALL"; then
9108 if test "${ac_cv_path_install+set}" = set; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 for as_dir in $PATH
9113 do
9114   IFS=$as_save_IFS
9115   test -z "$as_dir" && as_dir=.
9116   # Account for people who put trailing slashes in PATH elements.
9117 case $as_dir/ in
9118   ./ | .// | /cC/* | \
9119   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9120   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9121   /usr/ucb/* ) ;;
9122   *)
9123     # OSF1 and SCO ODT 3.0 have their own names for install.
9124     # Don't use installbsd from OSF since it installs stuff as root
9125     # by default.
9126     for ac_prog in ginstall scoinst install; do
9127       for ac_exec_ext in '' $ac_executable_extensions; do
9128         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9129           if test $ac_prog = install &&
9130             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9131             # AIX install.  It has an incompatible calling convention.
9132             :
9133           elif test $ac_prog = install &&
9134             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9135             # program-specific install script used by HP pwplus--don't use.
9136             :
9137           else
9138             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9139             break 3
9140           fi
9141         fi
9142       done
9143     done
9144     ;;
9145 esac
9146 done
9147
9148
9149 fi
9150   if test "${ac_cv_path_install+set}" = set; then
9151     INSTALL=$ac_cv_path_install
9152   else
9153     # As a last resort, use the slow shell script.  We don't cache a
9154     # path for INSTALL within a source directory, because that will
9155     # break other packages using the cache if that directory is
9156     # removed, or if the path is relative.
9157     INSTALL=$ac_install_sh
9158   fi
9159 fi
9160 echo "$as_me:$LINENO: result: $INSTALL" >&5
9161 echo "${ECHO_T}$INSTALL" >&6
9162
9163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9164 # It thinks the first close brace ends the variable substitution.
9165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9166
9167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9168
9169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9170
9171
9172 if test "X$CC" = Xgcc; then
9173     CFLAGS="-Wall $CFLAGS"
9174 fi
9175
9176 LIBS=
9177 addlib() {
9178   l=$1
9179   shift
9180   case "$target" in
9181     *-*-solaris*)       LIBS="$LIBS -L$l -R $l $*";;
9182     *)          LIBS="$LIBS -L$l $*";;
9183   esac
9184 }
9185
9186 if test X"$GCC" = "Xyes" ; then
9187     TARGET="depend allprogs"
9188 else
9189     TARGET="everything"
9190     #
9191     # let the Makefile know that we're done with `depend', since we don't
9192     # have gcc we're not going to rebuild our dependencies at all.
9193     #
9194     echo > .depend-done
9195 fi
9196
9197
9198
9199
9200
9201
9202
9203 for ac_header in alloca.h float.h libintl.h mcheck.h unistd.h
9204 do
9205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207   echo "$as_me:$LINENO: checking for $ac_header" >&5
9208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 fi
9212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214 else
9215   # Is the header compilable?
9216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h.  */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h.  */
9224 $ac_includes_default
9225 #include <$ac_header>
9226 _ACEOF
9227 rm -f conftest.$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229   (eval $ac_compile) 2>conftest.er1
9230   ac_status=$?
9231   grep -v '^ *+' conftest.er1 >conftest.err
9232   rm -f conftest.er1
9233   cat conftest.err >&5
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); } &&
9236          { ac_try='test -z "$ac_c_werror_flag"
9237                          || test ! -s conftest.err'
9238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239   (eval $ac_try) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); }; } &&
9243          { ac_try='test -s conftest.$ac_objext'
9244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245   (eval $ac_try) 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; }; then
9249   ac_header_compiler=yes
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 ac_header_compiler=no
9255 fi
9256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9258 echo "${ECHO_T}$ac_header_compiler" >&6
9259
9260 # Is the header present?
9261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h.  */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h.  */
9269 #include <$ac_header>
9270 _ACEOF
9271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9272   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9273   ac_status=$?
9274   grep -v '^ *+' conftest.er1 >conftest.err
9275   rm -f conftest.er1
9276   cat conftest.err >&5
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); } >/dev/null; then
9279   if test -s conftest.err; then
9280     ac_cpp_err=$ac_c_preproc_warn_flag
9281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9282   else
9283     ac_cpp_err=
9284   fi
9285 else
9286   ac_cpp_err=yes
9287 fi
9288 if test -z "$ac_cpp_err"; then
9289   ac_header_preproc=yes
9290 else
9291   echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9293
9294   ac_header_preproc=no
9295 fi
9296 rm -f conftest.err conftest.$ac_ext
9297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9298 echo "${ECHO_T}$ac_header_preproc" >&6
9299
9300 # So?  What about this header?
9301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9302   yes:no: )
9303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9307     ac_header_preproc=yes
9308     ;;
9309   no:yes:* )
9310     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9312     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9313 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9314     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9316     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9317 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9320     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9322     (
9323       cat <<\_ASBOX
9324 ## ------------------------------------------ ##
9325 ## Report this to the AC_PACKAGE_NAME lists.  ##
9326 ## ------------------------------------------ ##
9327 _ASBOX
9328     ) |
9329       sed "s/^/$as_me: WARNING:     /" >&2
9330     ;;
9331 esac
9332 echo "$as_me:$LINENO: checking for $ac_header" >&5
9333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337   eval "$as_ac_Header=\$ac_header_preproc"
9338 fi
9339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9341
9342 fi
9343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9344   cat >>confdefs.h <<_ACEOF
9345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9346 _ACEOF
9347
9348 fi
9349
9350 done
9351
9352 echo "$as_me:$LINENO: checking for /usr/ucblib in LIBS" >&5
9353 echo $ECHO_N "checking for /usr/ucblib in LIBS... $ECHO_C" >&6
9354 if test -d /usr/ucblib ; then
9355         if test "$build" = "mips-sni-sysv4" ; then
9356                 addlib /usr/ccs/lib -lc
9357         fi
9358
9359         addlib /usr/ucblib
9360
9361         echo "$as_me:$LINENO: result: yes" >&5
9362 echo "${ECHO_T}yes" >&6
9363 else
9364         echo "$as_me:$LINENO: result: no" >&5
9365 echo "${ECHO_T}no" >&6
9366 fi
9367
9368 if test ! -f ../rpm.c
9369 then
9370   echo "$as_me:$LINENO: checking for GNU xgettext" >&5
9371 echo $ECHO_N "checking for GNU xgettext... $ECHO_C" >&6
9372   xgettext --version 2>&1 | grep 'GNU gettext' >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error:
9373   *** GNU gettext is required. The latest version
9374   *** is always available from ftp://ftp.gnu.org/gnu/gettext/." >&5
9375 echo "$as_me: error:
9376   *** GNU gettext is required. The latest version
9377   *** is always available from ftp://ftp.gnu.org/gnu/gettext/." >&2;}
9378    { (exit 1); exit 1; }; }
9379   echo "$as_me:$LINENO: result: yes" >&5
9380 echo "${ECHO_T}yes" >&6
9381 fi
9382
9383
9384
9385
9386
9387 for ac_func in strerror mtrace getuid geteuid
9388 do
9389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 echo "$as_me:$LINENO: checking for $ac_func" >&5
9391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9392 if eval "test \"\${$as_ac_var+set}\" = set"; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9403 #define $ac_func innocuous_$ac_func
9404
9405 /* System header to define __stub macros and hopefully few prototypes,
9406     which can conflict with char $ac_func (); below.
9407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9408     <limits.h> exists even on freestanding compilers.  */
9409
9410 #ifdef __STDC__
9411 # include <limits.h>
9412 #else
9413 # include <assert.h>
9414 #endif
9415
9416 #undef $ac_func
9417
9418 /* Override any gcc2 internal prototype to avoid an error.  */
9419 #ifdef __cplusplus
9420 extern "C"
9421 {
9422 #endif
9423 /* We use char because int might match the return type of a gcc2
9424    builtin and then its argument prototype would still apply.  */
9425 char $ac_func ();
9426 /* The GNU C library defines this for functions which it implements
9427     to always fail with ENOSYS.  Some functions are actually named
9428     something starting with __ and the normal name is an alias.  */
9429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9430 choke me
9431 #else
9432 char (*f) () = $ac_func;
9433 #endif
9434 #ifdef __cplusplus
9435 }
9436 #endif
9437
9438 int
9439 main ()
9440 {
9441 return f != $ac_func;
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448   (eval $ac_link) 2>conftest.er1
9449   ac_status=$?
9450   grep -v '^ *+' conftest.er1 >conftest.err
9451   rm -f conftest.er1
9452   cat conftest.err >&5
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); } &&
9455          { ac_try='test -z "$ac_c_werror_flag"
9456                          || test ! -s conftest.err'
9457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458   (eval $ac_try) 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); }; } &&
9462          { ac_try='test -s conftest$ac_exeext'
9463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464   (eval $ac_try) 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); }; }; then
9468   eval "$as_ac_var=yes"
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 eval "$as_ac_var=no"
9474 fi
9475 rm -f conftest.err conftest.$ac_objext \
9476       conftest$ac_exeext conftest.$ac_ext
9477 fi
9478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9480 if test `eval echo '${'$as_ac_var'}'` = yes; then
9481   cat >>confdefs.h <<_ACEOF
9482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9483 _ACEOF
9484
9485 fi
9486 done
9487
9488 echo "$as_me:$LINENO: checking for setreuid" >&5
9489 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
9490 if test "${ac_cv_func_setreuid+set}" = set; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493   cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h.  */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h.  */
9499 /* Define setreuid to an innocuous variant, in case <limits.h> declares setreuid.
9500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9501 #define setreuid innocuous_setreuid
9502
9503 /* System header to define __stub macros and hopefully few prototypes,
9504     which can conflict with char setreuid (); below.
9505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9506     <limits.h> exists even on freestanding compilers.  */
9507
9508 #ifdef __STDC__
9509 # include <limits.h>
9510 #else
9511 # include <assert.h>
9512 #endif
9513
9514 #undef setreuid
9515
9516 /* Override any gcc2 internal prototype to avoid an error.  */
9517 #ifdef __cplusplus
9518 extern "C"
9519 {
9520 #endif
9521 /* We use char because int might match the return type of a gcc2
9522    builtin and then its argument prototype would still apply.  */
9523 char setreuid ();
9524 /* The GNU C library defines this for functions which it implements
9525     to always fail with ENOSYS.  Some functions are actually named
9526     something starting with __ and the normal name is an alias.  */
9527 #if defined (__stub_setreuid) || defined (__stub___setreuid)
9528 choke me
9529 #else
9530 char (*f) () = setreuid;
9531 #endif
9532 #ifdef __cplusplus
9533 }
9534 #endif
9535
9536 int
9537 main ()
9538 {
9539 return f != setreuid;
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546   (eval $ac_link) 2>conftest.er1
9547   ac_status=$?
9548   grep -v '^ *+' conftest.er1 >conftest.err
9549   rm -f conftest.er1
9550   cat conftest.err >&5
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } &&
9553          { ac_try='test -z "$ac_c_werror_flag"
9554                          || test ! -s conftest.err'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; } &&
9560          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9566   ac_cv_func_setreuid=yes
9567 else
9568   echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 ac_cv_func_setreuid=no
9572 fi
9573 rm -f conftest.err conftest.$ac_objext \
9574       conftest$ac_exeext conftest.$ac_ext
9575 fi
9576 echo "$as_me:$LINENO: result: $ac_cv_func_setreuid" >&5
9577 echo "${ECHO_T}$ac_cv_func_setreuid" >&6
9578 if test $ac_cv_func_setreuid = yes; then
9579   :
9580 else
9581
9582     echo "$as_me:$LINENO: checking for setreuid in -lucb" >&5
9583 echo $ECHO_N "checking for setreuid in -lucb... $ECHO_C" >&6
9584 if test "${ac_cv_lib_ucb_setreuid+set}" = set; then
9585   echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587   ac_check_lib_save_LIBS=$LIBS
9588 LIBS="-lucb  $LIBS"
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h.  */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h.  */
9595
9596 /* Override any gcc2 internal prototype to avoid an error.  */
9597 #ifdef __cplusplus
9598 extern "C"
9599 #endif
9600 /* We use char because int might match the return type of a gcc2
9601    builtin and then its argument prototype would still apply.  */
9602 char setreuid ();
9603 int
9604 main ()
9605 {
9606 setreuid ();
9607   ;
9608   return 0;
9609 }
9610 _ACEOF
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613   (eval $ac_link) 2>conftest.er1
9614   ac_status=$?
9615   grep -v '^ *+' conftest.er1 >conftest.err
9616   rm -f conftest.er1
9617   cat conftest.err >&5
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } &&
9620          { ac_try='test -z "$ac_c_werror_flag"
9621                          || test ! -s conftest.err'
9622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623   (eval $ac_try) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); }; } &&
9627          { ac_try='test -s conftest$ac_exeext'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   ac_cv_lib_ucb_setreuid=yes
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638 ac_cv_lib_ucb_setreuid=no
9639 fi
9640 rm -f conftest.err conftest.$ac_objext \
9641       conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9643 fi
9644 echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_setreuid" >&5
9645 echo "${ECHO_T}$ac_cv_lib_ucb_setreuid" >&6
9646 if test $ac_cv_lib_ucb_setreuid = yes; then
9647   if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
9648 fi
9649
9650
9651 fi
9652
9653
9654
9655         MKINSTALLDIRS=
9656   if test -n "$ac_aux_dir"; then
9657     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9658   fi
9659   if test -z "$MKINSTALLDIRS"; then
9660     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9661   fi
9662
9663
9664
9665
9666
9667         # Extract the first word of "msgfmt", so it can be a program name with args.
9668 set dummy msgfmt; ac_word=$2
9669 echo "$as_me:$LINENO: checking for $ac_word" >&5
9670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9671 if test "${ac_cv_path_MSGFMT+set}" = set; then
9672   echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674   case "$MSGFMT" in
9675   /*)
9676   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9677   ;;
9678   *)
9679   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9680   for ac_dir in $PATH; do
9681     test -z "$ac_dir" && ac_dir=.
9682     if test -f $ac_dir/$ac_word; then
9683       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
9684      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9685         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9686         break
9687       fi
9688     fi
9689   done
9690   IFS="$ac_save_ifs"
9691   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9692   ;;
9693 esac
9694 fi
9695 MSGFMT="$ac_cv_path_MSGFMT"
9696 if test "$MSGFMT" != ":"; then
9697   echo "$as_me:$LINENO: result: $MSGFMT" >&5
9698 echo "${ECHO_T}$MSGFMT" >&6
9699 else
9700   echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9702 fi
9703
9704   # Extract the first word of "gmsgfmt", so it can be a program name with args.
9705 set dummy gmsgfmt; ac_word=$2
9706 echo "$as_me:$LINENO: checking for $ac_word" >&5
9707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9708 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9709   echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711   case $GMSGFMT in
9712   [\\/]* | ?:[\\/]*)
9713   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9714   ;;
9715   *)
9716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 for as_dir in $PATH
9718 do
9719   IFS=$as_save_IFS
9720   test -z "$as_dir" && as_dir=.
9721   for ac_exec_ext in '' $ac_executable_extensions; do
9722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9723     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9725     break 2
9726   fi
9727 done
9728 done
9729
9730   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9731   ;;
9732 esac
9733 fi
9734 GMSGFMT=$ac_cv_path_GMSGFMT
9735
9736 if test -n "$GMSGFMT"; then
9737   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9738 echo "${ECHO_T}$GMSGFMT" >&6
9739 else
9740   echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6
9742 fi
9743
9744
9745         # Extract the first word of "xgettext", so it can be a program name with args.
9746 set dummy xgettext; ac_word=$2
9747 echo "$as_me:$LINENO: checking for $ac_word" >&5
9748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9749 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9750   echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752   case "$XGETTEXT" in
9753   /*)
9754   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9755   ;;
9756   *)
9757   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9758   for ac_dir in $PATH; do
9759     test -z "$ac_dir" && ac_dir=.
9760     if test -f $ac_dir/$ac_word; then
9761       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
9762      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9763         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9764         break
9765       fi
9766     fi
9767   done
9768   IFS="$ac_save_ifs"
9769   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9770   ;;
9771 esac
9772 fi
9773 XGETTEXT="$ac_cv_path_XGETTEXT"
9774 if test "$XGETTEXT" != ":"; then
9775   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9776 echo "${ECHO_T}$XGETTEXT" >&6
9777 else
9778   echo "$as_me:$LINENO: result: no" >&5
9779 echo "${ECHO_T}no" >&6
9780 fi
9781
9782     rm -f messages.po
9783
9784     # Extract the first word of "msgmerge", so it can be a program name with args.
9785 set dummy msgmerge; ac_word=$2
9786 echo "$as_me:$LINENO: checking for $ac_word" >&5
9787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9788 if test "${ac_cv_path_MSGMERGE+set}" = set; then
9789   echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791   case "$MSGMERGE" in
9792   /*)
9793   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9794   ;;
9795   *)
9796   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9797   for ac_dir in $PATH; do
9798     test -z "$ac_dir" && ac_dir=.
9799     if test -f $ac_dir/$ac_word; then
9800       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
9801         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
9802         break
9803       fi
9804     fi
9805   done
9806   IFS="$ac_save_ifs"
9807   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9808   ;;
9809 esac
9810 fi
9811 MSGMERGE="$ac_cv_path_MSGMERGE"
9812 if test "$MSGMERGE" != ":"; then
9813   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
9814 echo "${ECHO_T}$MSGMERGE" >&6
9815 else
9816   echo "$as_me:$LINENO: result: no" >&5
9817 echo "${ECHO_T}no" >&6
9818 fi
9819
9820
9821       if test "$GMSGFMT" != ":"; then
9822             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
9823        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9824       : ;
9825     else
9826       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9827       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9828 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
9829       GMSGFMT=":"
9830     fi
9831   fi
9832
9833       if test "$XGETTEXT" != ":"; then
9834             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
9835        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9836       : ;
9837     else
9838       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9839 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
9840       XGETTEXT=":"
9841     fi
9842         rm -f messages.po
9843   fi
9844
9845             ac_config_commands="$ac_config_commands default-1"
9846
9847
9848 if test -n "$ac_tool_prefix"; then
9849   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9851 echo "$as_me:$LINENO: checking for $ac_word" >&5
9852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9853 if test "${ac_cv_prog_RANLIB+set}" = set; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856   if test -n "$RANLIB"; then
9857   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9858 else
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in $PATH
9861 do
9862   IFS=$as_save_IFS
9863   test -z "$as_dir" && as_dir=.
9864   for ac_exec_ext in '' $ac_executable_extensions; do
9865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9868     break 2
9869   fi
9870 done
9871 done
9872
9873 fi
9874 fi
9875 RANLIB=$ac_cv_prog_RANLIB
9876 if test -n "$RANLIB"; then
9877   echo "$as_me:$LINENO: result: $RANLIB" >&5
9878 echo "${ECHO_T}$RANLIB" >&6
9879 else
9880   echo "$as_me:$LINENO: result: no" >&5
9881 echo "${ECHO_T}no" >&6
9882 fi
9883
9884 fi
9885 if test -z "$ac_cv_prog_RANLIB"; then
9886   ac_ct_RANLIB=$RANLIB
9887   # Extract the first word of "ranlib", so it can be a program name with args.
9888 set dummy ranlib; ac_word=$2
9889 echo "$as_me:$LINENO: checking for $ac_word" >&5
9890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9892   echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894   if test -n "$ac_ct_RANLIB"; then
9895   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9896 else
9897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898 for as_dir in $PATH
9899 do
9900   IFS=$as_save_IFS
9901   test -z "$as_dir" && as_dir=.
9902   for ac_exec_ext in '' $ac_executable_extensions; do
9903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9904     ac_cv_prog_ac_ct_RANLIB="ranlib"
9905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9906     break 2
9907   fi
9908 done
9909 done
9910
9911   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9912 fi
9913 fi
9914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9915 if test -n "$ac_ct_RANLIB"; then
9916   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9917 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9918 else
9919   echo "$as_me:$LINENO: result: no" >&5
9920 echo "${ECHO_T}no" >&6
9921 fi
9922
9923   RANLIB=$ac_ct_RANLIB
9924 else
9925   RANLIB="$ac_cv_prog_RANLIB"
9926 fi
9927
9928 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9929 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9930 if test "${ac_cv_c_const+set}" = set; then
9931   echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933   cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h.  */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h.  */
9939
9940 int
9941 main ()
9942 {
9943 /* FIXME: Include the comments suggested by Paul. */
9944 #ifndef __cplusplus
9945   /* Ultrix mips cc rejects this.  */
9946   typedef int charset[2];
9947   const charset x;
9948   /* SunOS 4.1.1 cc rejects this.  */
9949   char const *const *ccp;
9950   char **p;
9951   /* NEC SVR4.0.2 mips cc rejects this.  */
9952   struct point {int x, y;};
9953   static struct point const zero = {0,0};
9954   /* AIX XL C 1.02.0.0 rejects this.
9955      It does not let you subtract one const X* pointer from another in
9956      an arm of an if-expression whose if-part is not a constant
9957      expression */
9958   const char *g = "string";
9959   ccp = &g + (g ? g-g : 0);
9960   /* HPUX 7.0 cc rejects these. */
9961   ++ccp;
9962   p = (char**) ccp;
9963   ccp = (char const *const *) p;
9964   { /* SCO 3.2v4 cc rejects this.  */
9965     char *t;
9966     char const *s = 0 ? (char *) 0 : (char const *) 0;
9967
9968     *t++ = 0;
9969   }
9970   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9971     int x[] = {25, 17};
9972     const int *foo = &x[0];
9973     ++foo;
9974   }
9975   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9976     typedef const int *iptr;
9977     iptr p = 0;
9978     ++p;
9979   }
9980   { /* AIX XL C 1.02.0.0 rejects this saying
9981        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9982     struct s { int j; const int *ap[3]; };
9983     struct s *b; b->j = 5;
9984   }
9985   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9986     const int foo = 10;
9987   }
9988 #endif
9989
9990   ;
9991   return 0;
9992 }
9993 _ACEOF
9994 rm -f conftest.$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996   (eval $ac_compile) 2>conftest.er1
9997   ac_status=$?
9998   grep -v '^ *+' conftest.er1 >conftest.err
9999   rm -f conftest.er1
10000   cat conftest.err >&5
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); } &&
10003          { ac_try='test -z "$ac_c_werror_flag"
10004                          || test ! -s conftest.err'
10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006   (eval $ac_try) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; } &&
10010          { ac_try='test -s conftest.$ac_objext'
10011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012   (eval $ac_try) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; }; then
10016   ac_cv_c_const=yes
10017 else
10018   echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_cv_c_const=no
10022 fi
10023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10024 fi
10025 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10026 echo "${ECHO_T}$ac_cv_c_const" >&6
10027 if test $ac_cv_c_const = no; then
10028
10029 cat >>confdefs.h <<\_ACEOF
10030 #define const
10031 _ACEOF
10032
10033 fi
10034
10035 echo "$as_me:$LINENO: checking for inline" >&5
10036 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10037 if test "${ac_cv_c_inline+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   ac_cv_c_inline=no
10041 for ac_kw in inline __inline__ __inline; do
10042   cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048 #ifndef __cplusplus
10049 typedef int foo_t;
10050 static $ac_kw foo_t static_foo () {return 0; }
10051 $ac_kw foo_t foo () {return 0; }
10052 #endif
10053
10054 _ACEOF
10055 rm -f conftest.$ac_objext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057   (eval $ac_compile) 2>conftest.er1
10058   ac_status=$?
10059   grep -v '^ *+' conftest.er1 >conftest.err
10060   rm -f conftest.er1
10061   cat conftest.err >&5
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); } &&
10064          { ac_try='test -z "$ac_c_werror_flag"
10065                          || test ! -s conftest.err'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; } &&
10071          { ac_try='test -s conftest.$ac_objext'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; }; then
10077   ac_cv_c_inline=$ac_kw; break
10078 else
10079   echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082 fi
10083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10084 done
10085
10086 fi
10087 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10088 echo "${ECHO_T}$ac_cv_c_inline" >&6
10089
10090
10091 case $ac_cv_c_inline in
10092   inline | yes) ;;
10093   *)
10094     case $ac_cv_c_inline in
10095       no) ac_val=;;
10096       *) ac_val=$ac_cv_c_inline;;
10097     esac
10098     cat >>confdefs.h <<_ACEOF
10099 #ifndef __cplusplus
10100 #define inline $ac_val
10101 #endif
10102 _ACEOF
10103     ;;
10104 esac
10105
10106 echo "$as_me:$LINENO: checking for off_t" >&5
10107 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10108 if test "${ac_cv_type_off_t+set}" = set; then
10109   echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111   cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h.  */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h.  */
10117 $ac_includes_default
10118 int
10119 main ()
10120 {
10121 if ((off_t *) 0)
10122   return 0;
10123 if (sizeof (off_t))
10124   return 0;
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131   (eval $ac_compile) 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -z "$ac_c_werror_flag"
10139                          || test ! -s conftest.err'
10140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141   (eval $ac_try) 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); }; } &&
10145          { ac_try='test -s conftest.$ac_objext'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; }; then
10151   ac_cv_type_off_t=yes
10152 else
10153   echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156 ac_cv_type_off_t=no
10157 fi
10158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10159 fi
10160 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10161 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10162 if test $ac_cv_type_off_t = yes; then
10163   :
10164 else
10165
10166 cat >>confdefs.h <<_ACEOF
10167 #define off_t long
10168 _ACEOF
10169
10170 fi
10171
10172 echo "$as_me:$LINENO: checking for size_t" >&5
10173 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10174 if test "${ac_cv_type_size_t+set}" = set; then
10175   echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177   cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183 $ac_includes_default
10184 int
10185 main ()
10186 {
10187 if ((size_t *) 0)
10188   return 0;
10189 if (sizeof (size_t))
10190   return 0;
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197   (eval $ac_compile) 2>conftest.er1
10198   ac_status=$?
10199   grep -v '^ *+' conftest.er1 >conftest.err
10200   rm -f conftest.er1
10201   cat conftest.err >&5
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } &&
10204          { ac_try='test -z "$ac_c_werror_flag"
10205                          || test ! -s conftest.err'
10206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207   (eval $ac_try) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; } &&
10211          { ac_try='test -s conftest.$ac_objext'
10212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213   (eval $ac_try) 2>&5
10214   ac_status=$?
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); }; }; then
10217   ac_cv_type_size_t=yes
10218 else
10219   echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222 ac_cv_type_size_t=no
10223 fi
10224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10225 fi
10226 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10227 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10228 if test $ac_cv_type_size_t = yes; then
10229   :
10230 else
10231
10232 cat >>confdefs.h <<_ACEOF
10233 #define size_t unsigned
10234 _ACEOF
10235
10236 fi
10237
10238 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10239 # for constant arguments.  Useless!
10240 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10241 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10242 if test "${ac_cv_working_alloca_h+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h.  */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h.  */
10251 #include <alloca.h>
10252 int
10253 main ()
10254 {
10255 char *p = (char *) alloca (2 * sizeof (int));
10256   ;
10257   return 0;
10258 }
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262   (eval $ac_link) 2>conftest.er1
10263   ac_status=$?
10264   grep -v '^ *+' conftest.er1 >conftest.err
10265   rm -f conftest.er1
10266   cat conftest.err >&5
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); } &&
10269          { ac_try='test -z "$ac_c_werror_flag"
10270                          || test ! -s conftest.err'
10271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272   (eval $ac_try) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; } &&
10276          { ac_try='test -s conftest$ac_exeext'
10277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278   (eval $ac_try) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; }; then
10282   ac_cv_working_alloca_h=yes
10283 else
10284   echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10286
10287 ac_cv_working_alloca_h=no
10288 fi
10289 rm -f conftest.err conftest.$ac_objext \
10290       conftest$ac_exeext conftest.$ac_ext
10291 fi
10292 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10293 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10294 if test $ac_cv_working_alloca_h = yes; then
10295
10296 cat >>confdefs.h <<\_ACEOF
10297 #define HAVE_ALLOCA_H 1
10298 _ACEOF
10299
10300 fi
10301
10302 echo "$as_me:$LINENO: checking for alloca" >&5
10303 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10304 if test "${ac_cv_func_alloca_works+set}" = set; then
10305   echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307   cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h.  */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h.  */
10313 #ifdef __GNUC__
10314 # define alloca __builtin_alloca
10315 #else
10316 # ifdef _MSC_VER
10317 #  include <malloc.h>
10318 #  define alloca _alloca
10319 # else
10320 #  if HAVE_ALLOCA_H
10321 #   include <alloca.h>
10322 #  else
10323 #   ifdef _AIX
10324  #pragma alloca
10325 #   else
10326 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10327 char *alloca ();
10328 #    endif
10329 #   endif
10330 #  endif
10331 # endif
10332 #endif
10333
10334 int
10335 main ()
10336 {
10337 char *p = (char *) alloca (1);
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344   (eval $ac_link) 2>conftest.er1
10345   ac_status=$?
10346   grep -v '^ *+' conftest.er1 >conftest.err
10347   rm -f conftest.er1
10348   cat conftest.err >&5
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); } &&
10351          { ac_try='test -z "$ac_c_werror_flag"
10352                          || test ! -s conftest.err'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; } &&
10358          { ac_try='test -s conftest$ac_exeext'
10359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360   (eval $ac_try) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   ac_cv_func_alloca_works=yes
10365 else
10366   echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369 ac_cv_func_alloca_works=no
10370 fi
10371 rm -f conftest.err conftest.$ac_objext \
10372       conftest$ac_exeext conftest.$ac_ext
10373 fi
10374 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10375 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10376
10377 if test $ac_cv_func_alloca_works = yes; then
10378
10379 cat >>confdefs.h <<\_ACEOF
10380 #define HAVE_ALLOCA 1
10381 _ACEOF
10382
10383 else
10384   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10385 # that cause trouble.  Some versions do not even contain alloca or
10386 # contain a buggy version.  If you still want to use their alloca,
10387 # use ar to extract alloca.o from them instead of compiling alloca.c.
10388
10389 ALLOCA=alloca.$ac_objext
10390
10391 cat >>confdefs.h <<\_ACEOF
10392 #define C_ALLOCA 1
10393 _ACEOF
10394
10395
10396 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10397 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10398 if test "${ac_cv_os_cray+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h.  */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h.  */
10407 #if defined(CRAY) && ! defined(CRAY2)
10408 webecray
10409 #else
10410 wenotbecray
10411 #endif
10412
10413 _ACEOF
10414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10415   $EGREP "webecray" >/dev/null 2>&1; then
10416   ac_cv_os_cray=yes
10417 else
10418   ac_cv_os_cray=no
10419 fi
10420 rm -f conftest*
10421
10422 fi
10423 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10424 echo "${ECHO_T}$ac_cv_os_cray" >&6
10425 if test $ac_cv_os_cray = yes; then
10426   for ac_func in _getb67 GETB67 getb67; do
10427     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10428 echo "$as_me:$LINENO: checking for $ac_func" >&5
10429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10430 if eval "test \"\${$as_ac_var+set}\" = set"; then
10431   echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433   cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10441 #define $ac_func innocuous_$ac_func
10442
10443 /* System header to define __stub macros and hopefully few prototypes,
10444     which can conflict with char $ac_func (); below.
10445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10446     <limits.h> exists even on freestanding compilers.  */
10447
10448 #ifdef __STDC__
10449 # include <limits.h>
10450 #else
10451 # include <assert.h>
10452 #endif
10453
10454 #undef $ac_func
10455
10456 /* Override any gcc2 internal prototype to avoid an error.  */
10457 #ifdef __cplusplus
10458 extern "C"
10459 {
10460 #endif
10461 /* We use char because int might match the return type of a gcc2
10462    builtin and then its argument prototype would still apply.  */
10463 char $ac_func ();
10464 /* The GNU C library defines this for functions which it implements
10465     to always fail with ENOSYS.  Some functions are actually named
10466     something starting with __ and the normal name is an alias.  */
10467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10468 choke me
10469 #else
10470 char (*f) () = $ac_func;
10471 #endif
10472 #ifdef __cplusplus
10473 }
10474 #endif
10475
10476 int
10477 main ()
10478 {
10479 return f != $ac_func;
10480   ;
10481   return 0;
10482 }
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486   (eval $ac_link) 2>conftest.er1
10487   ac_status=$?
10488   grep -v '^ *+' conftest.er1 >conftest.err
10489   rm -f conftest.er1
10490   cat conftest.err >&5
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); } &&
10493          { ac_try='test -z "$ac_c_werror_flag"
10494                          || test ! -s conftest.err'
10495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496   (eval $ac_try) 2>&5
10497   ac_status=$?
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); }; } &&
10500          { ac_try='test -s conftest$ac_exeext'
10501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502   (eval $ac_try) 2>&5
10503   ac_status=$?
10504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); }; }; then
10506   eval "$as_ac_var=yes"
10507 else
10508   echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10510
10511 eval "$as_ac_var=no"
10512 fi
10513 rm -f conftest.err conftest.$ac_objext \
10514       conftest$ac_exeext conftest.$ac_ext
10515 fi
10516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10518 if test `eval echo '${'$as_ac_var'}'` = yes; then
10519
10520 cat >>confdefs.h <<_ACEOF
10521 #define CRAY_STACKSEG_END $ac_func
10522 _ACEOF
10523
10524     break
10525 fi
10526
10527   done
10528 fi
10529
10530 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10531 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10532 if test "${ac_cv_c_stack_direction+set}" = set; then
10533   echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535   if test "$cross_compiling" = yes; then
10536   ac_cv_c_stack_direction=0
10537 else
10538   cat >conftest.$ac_ext <<_ACEOF
10539 /* confdefs.h.  */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h.  */
10544 int
10545 find_stack_direction ()
10546 {
10547   static char *addr = 0;
10548   auto char dummy;
10549   if (addr == 0)
10550     {
10551       addr = &dummy;
10552       return find_stack_direction ();
10553     }
10554   else
10555     return (&dummy > addr) ? 1 : -1;
10556 }
10557
10558 int
10559 main ()
10560 {
10561   exit (find_stack_direction () < 0);
10562 }
10563 _ACEOF
10564 rm -f conftest$ac_exeext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566   (eval $ac_link) 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; }; then
10575   ac_cv_c_stack_direction=1
10576 else
10577   echo "$as_me: program exited with status $ac_status" >&5
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10580
10581 ( exit $ac_status )
10582 ac_cv_c_stack_direction=-1
10583 fi
10584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10585 fi
10586 fi
10587 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10588 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10589
10590 cat >>confdefs.h <<_ACEOF
10591 #define STACK_DIRECTION $ac_cv_c_stack_direction
10592 _ACEOF
10593
10594
10595 fi
10596
10597
10598
10599 for ac_header in stdlib.h unistd.h
10600 do
10601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10603   echo "$as_me:$LINENO: checking for $ac_header" >&5
10604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10606   echo $ECHO_N "(cached) $ECHO_C" >&6
10607 fi
10608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10610 else
10611   # Is the header compilable?
10612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h.  */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h.  */
10620 $ac_includes_default
10621 #include <$ac_header>
10622 _ACEOF
10623 rm -f conftest.$ac_objext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10625   (eval $ac_compile) 2>conftest.er1
10626   ac_status=$?
10627   grep -v '^ *+' conftest.er1 >conftest.err
10628   rm -f conftest.er1
10629   cat conftest.err >&5
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } &&
10632          { ac_try='test -z "$ac_c_werror_flag"
10633                          || test ! -s conftest.err'
10634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635   (eval $ac_try) 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); }; } &&
10639          { ac_try='test -s conftest.$ac_objext'
10640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641   (eval $ac_try) 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); }; }; then
10645   ac_header_compiler=yes
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650 ac_header_compiler=no
10651 fi
10652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10654 echo "${ECHO_T}$ac_header_compiler" >&6
10655
10656 # Is the header present?
10657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10659 cat >conftest.$ac_ext <<_ACEOF
10660 /* confdefs.h.  */
10661 _ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h.  */
10665 #include <$ac_header>
10666 _ACEOF
10667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10669   ac_status=$?
10670   grep -v '^ *+' conftest.er1 >conftest.err
10671   rm -f conftest.er1
10672   cat conftest.err >&5
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); } >/dev/null; then
10675   if test -s conftest.err; then
10676     ac_cpp_err=$ac_c_preproc_warn_flag
10677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10678   else
10679     ac_cpp_err=
10680   fi
10681 else
10682   ac_cpp_err=yes
10683 fi
10684 if test -z "$ac_cpp_err"; then
10685   ac_header_preproc=yes
10686 else
10687   echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690   ac_header_preproc=no
10691 fi
10692 rm -f conftest.err conftest.$ac_ext
10693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10694 echo "${ECHO_T}$ac_header_preproc" >&6
10695
10696 # So?  What about this header?
10697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10698   yes:no: )
10699     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10703     ac_header_preproc=yes
10704     ;;
10705   no:yes:* )
10706     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10708     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10709 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10710     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10712     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10713 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10716     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10718     (
10719       cat <<\_ASBOX
10720 ## ------------------------------------------ ##
10721 ## Report this to the AC_PACKAGE_NAME lists.  ##
10722 ## ------------------------------------------ ##
10723 _ASBOX
10724     ) |
10725       sed "s/^/$as_me: WARNING:     /" >&2
10726     ;;
10727 esac
10728 echo "$as_me:$LINENO: checking for $ac_header" >&5
10729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733   eval "$as_ac_Header=\$ac_header_preproc"
10734 fi
10735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10737
10738 fi
10739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10740   cat >>confdefs.h <<_ACEOF
10741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10742 _ACEOF
10743
10744 fi
10745
10746 done
10747
10748
10749 for ac_func in getpagesize
10750 do
10751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10752 echo "$as_me:$LINENO: checking for $ac_func" >&5
10753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10754 if eval "test \"\${$as_ac_var+set}\" = set"; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10765 #define $ac_func innocuous_$ac_func
10766
10767 /* System header to define __stub macros and hopefully few prototypes,
10768     which can conflict with char $ac_func (); below.
10769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770     <limits.h> exists even on freestanding compilers.  */
10771
10772 #ifdef __STDC__
10773 # include <limits.h>
10774 #else
10775 # include <assert.h>
10776 #endif
10777
10778 #undef $ac_func
10779
10780 /* Override any gcc2 internal prototype to avoid an error.  */
10781 #ifdef __cplusplus
10782 extern "C"
10783 {
10784 #endif
10785 /* We use char because int might match the return type of a gcc2
10786    builtin and then its argument prototype would still apply.  */
10787 char $ac_func ();
10788 /* The GNU C library defines this for functions which it implements
10789     to always fail with ENOSYS.  Some functions are actually named
10790     something starting with __ and the normal name is an alias.  */
10791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10792 choke me
10793 #else
10794 char (*f) () = $ac_func;
10795 #endif
10796 #ifdef __cplusplus
10797 }
10798 #endif
10799
10800 int
10801 main ()
10802 {
10803 return f != $ac_func;
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810   (eval $ac_link) 2>conftest.er1
10811   ac_status=$?
10812   grep -v '^ *+' conftest.er1 >conftest.err
10813   rm -f conftest.er1
10814   cat conftest.err >&5
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } &&
10817          { ac_try='test -z "$ac_c_werror_flag"
10818                          || test ! -s conftest.err'
10819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820   (eval $ac_try) 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; } &&
10824          { ac_try='test -s conftest$ac_exeext'
10825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826   (eval $ac_try) 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); }; }; then
10830   eval "$as_ac_var=yes"
10831 else
10832   echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 eval "$as_ac_var=no"
10836 fi
10837 rm -f conftest.err conftest.$ac_objext \
10838       conftest$ac_exeext conftest.$ac_ext
10839 fi
10840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10842 if test `eval echo '${'$as_ac_var'}'` = yes; then
10843   cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10845 _ACEOF
10846
10847 fi
10848 done
10849
10850 echo "$as_me:$LINENO: checking for working mmap" >&5
10851 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10852 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10853   echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855   if test "$cross_compiling" = yes; then
10856   ac_cv_func_mmap_fixed_mapped=no
10857 else
10858   cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864 $ac_includes_default
10865 /* malloc might have been renamed as rpl_malloc. */
10866 #undef malloc
10867
10868 /* Thanks to Mike Haertel and Jim Avera for this test.
10869    Here is a matrix of mmap possibilities:
10870         mmap private not fixed
10871         mmap private fixed at somewhere currently unmapped
10872         mmap private fixed at somewhere already mapped
10873         mmap shared not fixed
10874         mmap shared fixed at somewhere currently unmapped
10875         mmap shared fixed at somewhere already mapped
10876    For private mappings, we should verify that changes cannot be read()
10877    back from the file, nor mmap's back from the file at a different
10878    address.  (There have been systems where private was not correctly
10879    implemented like the infamous i386 svr4.0, and systems where the
10880    VM page cache was not coherent with the file system buffer cache
10881    like early versions of FreeBSD and possibly contemporary NetBSD.)
10882    For shared mappings, we should conversely verify that changes get
10883    propagated back to all the places they're supposed to be.
10884
10885    Grep wants private fixed already mapped.
10886    The main things grep needs to know about mmap are:
10887    * does it exist and is it safe to write into the mmap'd area
10888    * how to use it (BSD variants)  */
10889
10890 #include <fcntl.h>
10891 #include <sys/mman.h>
10892
10893 #if !STDC_HEADERS && !HAVE_STDLIB_H
10894 char *malloc ();
10895 #endif
10896
10897 /* This mess was copied from the GNU getpagesize.h.  */
10898 #if !HAVE_GETPAGESIZE
10899 /* Assume that all systems that can run configure have sys/param.h.  */
10900 # if !HAVE_SYS_PARAM_H
10901 #  define HAVE_SYS_PARAM_H 1
10902 # endif
10903
10904 # ifdef _SC_PAGESIZE
10905 #  define getpagesize() sysconf(_SC_PAGESIZE)
10906 # else /* no _SC_PAGESIZE */
10907 #  if HAVE_SYS_PARAM_H
10908 #   include <sys/param.h>
10909 #   ifdef EXEC_PAGESIZE
10910 #    define getpagesize() EXEC_PAGESIZE
10911 #   else /* no EXEC_PAGESIZE */
10912 #    ifdef NBPG
10913 #     define getpagesize() NBPG * CLSIZE
10914 #     ifndef CLSIZE
10915 #      define CLSIZE 1
10916 #     endif /* no CLSIZE */
10917 #    else /* no NBPG */
10918 #     ifdef NBPC
10919 #      define getpagesize() NBPC
10920 #     else /* no NBPC */
10921 #      ifdef PAGESIZE
10922 #       define getpagesize() PAGESIZE
10923 #      endif /* PAGESIZE */
10924 #     endif /* no NBPC */
10925 #    endif /* no NBPG */
10926 #   endif /* no EXEC_PAGESIZE */
10927 #  else /* no HAVE_SYS_PARAM_H */
10928 #   define getpagesize() 8192   /* punt totally */
10929 #  endif /* no HAVE_SYS_PARAM_H */
10930 # endif /* no _SC_PAGESIZE */
10931
10932 #endif /* no HAVE_GETPAGESIZE */
10933
10934 int
10935 main ()
10936 {
10937   char *data, *data2, *data3;
10938   int i, pagesize;
10939   int fd;
10940
10941   pagesize = getpagesize ();
10942
10943   /* First, make a file with some known garbage in it. */
10944   data = (char *) malloc (pagesize);
10945   if (!data)
10946     exit (1);
10947   for (i = 0; i < pagesize; ++i)
10948     *(data + i) = rand ();
10949   umask (0);
10950   fd = creat ("conftest.mmap", 0600);
10951   if (fd < 0)
10952     exit (1);
10953   if (write (fd, data, pagesize) != pagesize)
10954     exit (1);
10955   close (fd);
10956
10957   /* Next, try to mmap the file at a fixed address which already has
10958      something else allocated at it.  If we can, also make sure that
10959      we see the same garbage.  */
10960   fd = open ("conftest.mmap", O_RDWR);
10961   if (fd < 0)
10962     exit (1);
10963   data2 = (char *) malloc (2 * pagesize);
10964   if (!data2)
10965     exit (1);
10966   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10967   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10968                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10969     exit (1);
10970   for (i = 0; i < pagesize; ++i)
10971     if (*(data + i) != *(data2 + i))
10972       exit (1);
10973
10974   /* Finally, make sure that changes to the mapped area do not
10975      percolate back to the file as seen by read().  (This is a bug on
10976      some variants of i386 svr4.0.)  */
10977   for (i = 0; i < pagesize; ++i)
10978     *(data2 + i) = *(data2 + i) + 1;
10979   data3 = (char *) malloc (pagesize);
10980   if (!data3)
10981     exit (1);
10982   if (read (fd, data3, pagesize) != pagesize)
10983     exit (1);
10984   for (i = 0; i < pagesize; ++i)
10985     if (*(data + i) != *(data3 + i))
10986       exit (1);
10987   close (fd);
10988   exit (0);
10989 }
10990 _ACEOF
10991 rm -f conftest$ac_exeext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10993   (eval $ac_link) 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998   (eval $ac_try) 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); }; }; then
11002   ac_cv_func_mmap_fixed_mapped=yes
11003 else
11004   echo "$as_me: program exited with status $ac_status" >&5
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ( exit $ac_status )
11009 ac_cv_func_mmap_fixed_mapped=no
11010 fi
11011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11012 fi
11013 fi
11014 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11015 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11016 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11017
11018 cat >>confdefs.h <<\_ACEOF
11019 #define HAVE_MMAP 1
11020 _ACEOF
11021
11022 fi
11023 rm -f conftest.mmap
11024
11025
11026     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11027 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11028 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11029   echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031   cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h.  */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h.  */
11037
11038 #include <features.h>
11039 #ifdef __GNU_LIBRARY__
11040  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11041   Lucky GNU user
11042  #endif
11043 #endif
11044
11045 _ACEOF
11046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11047   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11048   ac_cv_gnu_library_2_1=yes
11049 else
11050   ac_cv_gnu_library_2_1=no
11051 fi
11052 rm -f conftest*
11053
11054
11055
11056 fi
11057 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11058 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11059
11060     GLIBC21="$ac_cv_gnu_library_2_1"
11061
11062
11063
11064
11065   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
11066 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
11067 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
11068   echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070
11071       if test "$cross_compiling" = yes; then
11072
11073           # Guess based on the CPU.
11074           case "$host_cpu" in
11075             alpha* | i3456786 | m68k | s390*)
11076               gt_cv_int_divbyzero_sigfpe="guessing yes";;
11077             *)
11078               gt_cv_int_divbyzero_sigfpe="guessing no";;
11079           esac
11080
11081 else
11082   cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h.  */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h.  */
11088
11089 #include <stdlib.h>
11090 #include <signal.h>
11091
11092 static void
11093 #ifdef __cplusplus
11094 sigfpe_handler (int sig)
11095 #else
11096 sigfpe_handler (sig) int sig;
11097 #endif
11098 {
11099   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
11100   exit (sig != SIGFPE);
11101 }
11102
11103 int x = 1;
11104 int y = 0;
11105 int z;
11106 int nan;
11107
11108 int main ()
11109 {
11110   signal (SIGFPE, sigfpe_handler);
11111 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
11112 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11113   signal (SIGTRAP, sigfpe_handler);
11114 #endif
11115 /* Linux/SPARC yields signal SIGILL.  */
11116 #if defined (__sparc__) && defined (__linux__)
11117   signal (SIGILL, sigfpe_handler);
11118 #endif
11119
11120   z = x / y;
11121   nan = y / y;
11122   exit (1);
11123 }
11124
11125 _ACEOF
11126 rm -f conftest$ac_exeext
11127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11128   (eval $ac_link) 2>&5
11129   ac_status=$?
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133   (eval $ac_try) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); }; }; then
11137   gt_cv_int_divbyzero_sigfpe=yes
11138 else
11139   echo "$as_me: program exited with status $ac_status" >&5
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143 ( exit $ac_status )
11144 gt_cv_int_divbyzero_sigfpe=no
11145 fi
11146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11147 fi
11148
11149 fi
11150 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
11151 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
11152   case "$gt_cv_int_divbyzero_sigfpe" in
11153     *yes) value=1;;
11154     *) value=0;;
11155   esac
11156
11157 cat >>confdefs.h <<_ACEOF
11158 #define INTDIV0_RAISES_SIGFPE $value
11159 _ACEOF
11160
11161
11162
11163   echo "$as_me:$LINENO: checking for inttypes.h" >&5
11164 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11165 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h.  */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h.  */
11174 #include <sys/types.h>
11175 #include <inttypes.h>
11176 int
11177 main ()
11178 {
11179 uintmax_t i = (uintmax_t) -1;
11180   ;
11181   return 0;
11182 }
11183 _ACEOF
11184 rm -f conftest.$ac_objext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186   (eval $ac_compile) 2>conftest.er1
11187   ac_status=$?
11188   grep -v '^ *+' conftest.er1 >conftest.err
11189   rm -f conftest.er1
11190   cat conftest.err >&5
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } &&
11193          { ac_try='test -z "$ac_c_werror_flag"
11194                          || test ! -s conftest.err'
11195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196   (eval $ac_try) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; } &&
11200          { ac_try='test -s conftest.$ac_objext'
11201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202   (eval $ac_try) 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; }; then
11206   jm_ac_cv_header_inttypes_h=yes
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 jm_ac_cv_header_inttypes_h=no
11212 fi
11213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11214 fi
11215 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
11216 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
11217   if test $jm_ac_cv_header_inttypes_h = yes; then
11218
11219 cat >>confdefs.h <<_ACEOF
11220 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11221 _ACEOF
11222
11223   fi
11224
11225
11226   echo "$as_me:$LINENO: checking for stdint.h" >&5
11227 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11228 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 #include <sys/types.h>
11238 #include <stdint.h>
11239 int
11240 main ()
11241 {
11242 uintmax_t i = (uintmax_t) -1;
11243   ;
11244   return 0;
11245 }
11246 _ACEOF
11247 rm -f conftest.$ac_objext
11248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11249   (eval $ac_compile) 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } &&
11256          { ac_try='test -z "$ac_c_werror_flag"
11257                          || test ! -s conftest.err'
11258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259   (eval $ac_try) 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); }; } &&
11263          { ac_try='test -s conftest.$ac_objext'
11264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265   (eval $ac_try) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; }; then
11269   jm_ac_cv_header_stdint_h=yes
11270 else
11271   echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274 jm_ac_cv_header_stdint_h=no
11275 fi
11276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11277 fi
11278 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
11279 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
11280   if test $jm_ac_cv_header_stdint_h = yes; then
11281
11282 cat >>confdefs.h <<_ACEOF
11283 #define HAVE_STDINT_H_WITH_UINTMAX 1
11284 _ACEOF
11285
11286   fi
11287
11288
11289   echo "$as_me:$LINENO: checking for unsigned long long" >&5
11290 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11291 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11292   echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294   cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h.  */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h.  */
11300 unsigned long long ull = 1; int i = 63;
11301 int
11302 main ()
11303 {
11304 unsigned long long ullmax = (unsigned long long) -1;
11305      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 rm -f conftest.$ac_objext conftest$ac_exeext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11312   (eval $ac_link) 2>conftest.er1
11313   ac_status=$?
11314   grep -v '^ *+' conftest.er1 >conftest.err
11315   rm -f conftest.er1
11316   cat conftest.err >&5
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } &&
11319          { ac_try='test -z "$ac_c_werror_flag"
11320                          || test ! -s conftest.err'
11321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322   (eval $ac_try) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; } &&
11326          { ac_try='test -s conftest$ac_exeext'
11327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328   (eval $ac_try) 2>&5
11329   ac_status=$?
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); }; }; then
11332   ac_cv_type_unsigned_long_long=yes
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 ac_cv_type_unsigned_long_long=no
11338 fi
11339 rm -f conftest.err conftest.$ac_objext \
11340       conftest$ac_exeext conftest.$ac_ext
11341 fi
11342 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
11343 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
11344   if test $ac_cv_type_unsigned_long_long = yes; then
11345
11346 cat >>confdefs.h <<\_ACEOF
11347 #define HAVE_UNSIGNED_LONG_LONG 1
11348 _ACEOF
11349
11350   fi
11351
11352
11353
11354
11355   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
11356
11357     test $ac_cv_type_unsigned_long_long = yes \
11358       && ac_type='unsigned long long' \
11359       || ac_type='unsigned long'
11360
11361 cat >>confdefs.h <<_ACEOF
11362 #define uintmax_t $ac_type
11363 _ACEOF
11364
11365   fi
11366
11367
11368   echo "$as_me:$LINENO: checking for inttypes.h" >&5
11369 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11370 if test "${gt_cv_header_inttypes_h+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373
11374     cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 #include <sys/types.h>
11381 #include <inttypes.h>
11382 int
11383 main ()
11384 {
11385
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 rm -f conftest.$ac_objext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392   (eval $ac_compile) 2>conftest.er1
11393   ac_status=$?
11394   grep -v '^ *+' conftest.er1 >conftest.err
11395   rm -f conftest.er1
11396   cat conftest.err >&5
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); } &&
11399          { ac_try='test -z "$ac_c_werror_flag"
11400                          || test ! -s conftest.err'
11401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402   (eval $ac_try) 2>&5
11403   ac_status=$?
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); }; } &&
11406          { ac_try='test -s conftest.$ac_objext'
11407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408   (eval $ac_try) 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); }; }; then
11412   gt_cv_header_inttypes_h=yes
11413 else
11414   echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417 gt_cv_header_inttypes_h=no
11418 fi
11419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11420
11421 fi
11422 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
11423 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
11424   if test $gt_cv_header_inttypes_h = yes; then
11425
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_INTTYPES_H 1
11428 _ACEOF
11429
11430   fi
11431
11432
11433
11434   if test $gt_cv_header_inttypes_h = yes; then
11435     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
11436 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
11437 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440
11441         cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 #include <inttypes.h>
11448 #ifdef PRId32
11449 char *p = PRId32;
11450 #endif
11451
11452 int
11453 main ()
11454 {
11455
11456   ;
11457   return 0;
11458 }
11459 _ACEOF
11460 rm -f conftest.$ac_objext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11462   (eval $ac_compile) 2>conftest.er1
11463   ac_status=$?
11464   grep -v '^ *+' conftest.er1 >conftest.err
11465   rm -f conftest.er1
11466   cat conftest.err >&5
11467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468   (exit $ac_status); } &&
11469          { ac_try='test -z "$ac_c_werror_flag"
11470                          || test ! -s conftest.err'
11471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472   (eval $ac_try) 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; } &&
11476          { ac_try='test -s conftest.$ac_objext'
11477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478   (eval $ac_try) 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; }; then
11482   gt_cv_inttypes_pri_broken=no
11483 else
11484   echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487 gt_cv_inttypes_pri_broken=yes
11488 fi
11489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11490
11491 fi
11492 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
11493 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
11494   fi
11495   if test "$gt_cv_inttypes_pri_broken" = yes; then
11496
11497 cat >>confdefs.h <<_ACEOF
11498 #define PRI_MACROS_BROKEN 1
11499 _ACEOF
11500
11501   fi
11502
11503
11504       if test "X$prefix" = "XNONE"; then
11505     acl_final_prefix="$ac_default_prefix"
11506   else
11507     acl_final_prefix="$prefix"
11508   fi
11509   if test "X$exec_prefix" = "XNONE"; then
11510     acl_final_exec_prefix='${prefix}'
11511   else
11512     acl_final_exec_prefix="$exec_prefix"
11513   fi
11514   acl_save_prefix="$prefix"
11515   prefix="$acl_final_prefix"
11516   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11517   prefix="$acl_save_prefix"
11518
11519
11520 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11521 if test "${with_gnu_ld+set}" = set; then
11522   withval="$with_gnu_ld"
11523   test "$withval" = no || with_gnu_ld=yes
11524 else
11525   with_gnu_ld=no
11526 fi;
11527 ac_prog=ld
11528 if test "$GCC" = yes; then
11529   # Check if gcc -print-prog-name=ld gives a path.
11530   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11531 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11532   case $host in
11533   *-*-mingw*)
11534     # gcc leaves a trailing carriage return which upsets mingw
11535     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11536   *)
11537     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11538   esac
11539   case $ac_prog in
11540     # Accept absolute paths.
11541     [\\/]* | [A-Za-z]:[\\/]*)
11542       re_direlt='/[^/][^/]*/\.\./'
11543       # Canonicalize the path of ld
11544       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11545       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11546         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11547       done
11548       test -z "$LD" && LD="$ac_prog"
11549       ;;
11550   "")
11551     # If it fails, then pretend we aren't using GCC.
11552     ac_prog=ld
11553     ;;
11554   *)
11555     # If it is relative, then search for the first ld in PATH.
11556     with_gnu_ld=unknown
11557     ;;
11558   esac
11559 elif test "$with_gnu_ld" = yes; then
11560   echo "$as_me:$LINENO: checking for GNU ld" >&5
11561 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11562 else
11563   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11564 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11565 fi
11566 if test "${acl_cv_path_LD+set}" = set; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569   if test -z "$LD"; then
11570   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11571   for ac_dir in $PATH; do
11572     test -z "$ac_dir" && ac_dir=.
11573     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11574       acl_cv_path_LD="$ac_dir/$ac_prog"
11575       # Check to see if the program is GNU ld.  I'd rather use --version,
11576       # but apparently some GNU ld's only accept -v.
11577       # Break only if it was the GNU/non-GNU ld that we prefer.
11578       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11579         test "$with_gnu_ld" != no && break
11580       else
11581         test "$with_gnu_ld" != yes && break
11582       fi
11583     fi
11584   done
11585   IFS="$ac_save_ifs"
11586 else
11587   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11588 fi
11589 fi
11590
11591 LD="$acl_cv_path_LD"
11592 if test -n "$LD"; then
11593   echo "$as_me:$LINENO: result: $LD" >&5
11594 echo "${ECHO_T}$LD" >&6
11595 else
11596   echo "$as_me:$LINENO: result: no" >&5
11597 echo "${ECHO_T}no" >&6
11598 fi
11599 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11600 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11601    { (exit 1); exit 1; }; }
11602 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11603 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11604 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11608 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11609   acl_cv_prog_gnu_ld=yes
11610 else
11611   acl_cv_prog_gnu_ld=no
11612 fi
11613 fi
11614 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11615 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11616 with_gnu_ld=$acl_cv_prog_gnu_ld
11617
11618
11619
11620                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11621 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11622 if test "${acl_cv_rpath+set}" = set; then
11623   echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625
11626     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11627     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11628     . ./conftest.sh
11629     rm -f ./conftest.sh
11630     acl_cv_rpath=done
11631
11632 fi
11633 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11634 echo "${ECHO_T}$acl_cv_rpath" >&6
11635   wl="$acl_cv_wl"
11636   libext="$acl_cv_libext"
11637   shlibext="$acl_cv_shlibext"
11638   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11639   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11640   hardcode_direct="$acl_cv_hardcode_direct"
11641   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11642   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
11643   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
11644     # Check whether --enable-rpath or --disable-rpath was given.
11645 if test "${enable_rpath+set}" = set; then
11646   enableval="$enable_rpath"
11647   :
11648 else
11649   enable_rpath=yes
11650 fi;
11651
11652
11653
11654
11655
11656
11657
11658     use_additional=yes
11659
11660   acl_save_prefix="$prefix"
11661   prefix="$acl_final_prefix"
11662   acl_save_exec_prefix="$exec_prefix"
11663   exec_prefix="$acl_final_exec_prefix"
11664
11665     eval additional_includedir=\"$includedir\"
11666     eval additional_libdir=\"$libdir\"
11667
11668   exec_prefix="$acl_save_exec_prefix"
11669   prefix="$acl_save_prefix"
11670
11671
11672 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11673 if test "${with_libiconv_prefix+set}" = set; then
11674   withval="$with_libiconv_prefix"
11675
11676     if test "X$withval" = "Xno"; then
11677       use_additional=no
11678     else
11679       if test "X$withval" = "X"; then
11680
11681   acl_save_prefix="$prefix"
11682   prefix="$acl_final_prefix"
11683   acl_save_exec_prefix="$exec_prefix"
11684   exec_prefix="$acl_final_exec_prefix"
11685
11686           eval additional_includedir=\"$includedir\"
11687           eval additional_libdir=\"$libdir\"
11688
11689   exec_prefix="$acl_save_exec_prefix"
11690   prefix="$acl_save_prefix"
11691
11692       else
11693         additional_includedir="$withval/include"
11694         additional_libdir="$withval/lib"
11695       fi
11696     fi
11697
11698 fi;
11699       LIBICONV=
11700   LTLIBICONV=
11701   INCICONV=
11702   rpathdirs=
11703   ltrpathdirs=
11704   names_already_handled=
11705   names_next_round='iconv '
11706   while test -n "$names_next_round"; do
11707     names_this_round="$names_next_round"
11708     names_next_round=
11709     for name in $names_this_round; do
11710       already_handled=
11711       for n in $names_already_handled; do
11712         if test "$n" = "$name"; then
11713           already_handled=yes
11714           break
11715         fi
11716       done
11717       if test -z "$already_handled"; then
11718         names_already_handled="$names_already_handled $name"
11719                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11720         eval value=\"\$HAVE_LIB$uppername\"
11721         if test -n "$value"; then
11722           if test "$value" = yes; then
11723             eval value=\"\$LIB$uppername\"
11724             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11725             eval value=\"\$LTLIB$uppername\"
11726             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11727           else
11728                                     :
11729           fi
11730         else
11731                               found_dir=
11732           found_la=
11733           found_so=
11734           found_a=
11735           if test $use_additional = yes; then
11736             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11737               found_dir="$additional_libdir"
11738               found_so="$additional_libdir/lib$name.$shlibext"
11739               if test -f "$additional_libdir/lib$name.la"; then
11740                 found_la="$additional_libdir/lib$name.la"
11741               fi
11742             else
11743               if test -f "$additional_libdir/lib$name.$libext"; then
11744                 found_dir="$additional_libdir"
11745                 found_a="$additional_libdir/lib$name.$libext"
11746                 if test -f "$additional_libdir/lib$name.la"; then
11747                   found_la="$additional_libdir/lib$name.la"
11748                 fi
11749               fi
11750             fi
11751           fi
11752           if test "X$found_dir" = "X"; then
11753             for x in $LDFLAGS $LTLIBICONV; do
11754
11755   acl_save_prefix="$prefix"
11756   prefix="$acl_final_prefix"
11757   acl_save_exec_prefix="$exec_prefix"
11758   exec_prefix="$acl_final_exec_prefix"
11759   eval x=\"$x\"
11760   exec_prefix="$acl_save_exec_prefix"
11761   prefix="$acl_save_prefix"
11762
11763               case "$x" in
11764                 -L*)
11765                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11766                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11767                     found_dir="$dir"
11768                     found_so="$dir/lib$name.$shlibext"
11769                     if test -f "$dir/lib$name.la"; then
11770                       found_la="$dir/lib$name.la"
11771                     fi
11772                   else
11773                     if test -f "$dir/lib$name.$libext"; then
11774                       found_dir="$dir"
11775                       found_a="$dir/lib$name.$libext"
11776                       if test -f "$dir/lib$name.la"; then
11777                         found_la="$dir/lib$name.la"
11778                       fi
11779                     fi
11780                   fi
11781                   ;;
11782               esac
11783               if test "X$found_dir" != "X"; then
11784                 break
11785               fi
11786             done
11787           fi
11788           if test "X$found_dir" != "X"; then
11789                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11790             if test "X$found_so" != "X"; then
11791                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11792                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11793               else
11794                                                                                 haveit=
11795                 for x in $ltrpathdirs; do
11796                   if test "X$x" = "X$found_dir"; then
11797                     haveit=yes
11798                     break
11799                   fi
11800                 done
11801                 if test -z "$haveit"; then
11802                   ltrpathdirs="$ltrpathdirs $found_dir"
11803                 fi
11804                                 if test "$hardcode_direct" = yes; then
11805                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11806                 else
11807                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11808                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11809                                                             haveit=
11810                     for x in $rpathdirs; do
11811                       if test "X$x" = "X$found_dir"; then
11812                         haveit=yes
11813                         break
11814                       fi
11815                     done
11816                     if test -z "$haveit"; then
11817                       rpathdirs="$rpathdirs $found_dir"
11818                     fi
11819                   else
11820                                                                                 haveit=
11821                     for x in $LDFLAGS $LIBICONV; do
11822
11823   acl_save_prefix="$prefix"
11824   prefix="$acl_final_prefix"
11825   acl_save_exec_prefix="$exec_prefix"
11826   exec_prefix="$acl_final_exec_prefix"
11827   eval x=\"$x\"
11828   exec_prefix="$acl_save_exec_prefix"
11829   prefix="$acl_save_prefix"
11830
11831                       if test "X$x" = "X-L$found_dir"; then
11832                         haveit=yes
11833                         break
11834                       fi
11835                     done
11836                     if test -z "$haveit"; then
11837                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11838                     fi
11839                     if test "$hardcode_minus_L" != no; then
11840                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11841                     else
11842                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11843                     fi
11844                   fi
11845                 fi
11846               fi
11847             else
11848               if test "X$found_a" != "X"; then
11849                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11850               else
11851                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11852               fi
11853             fi
11854                         additional_includedir=
11855             case "$found_dir" in
11856               */lib | */lib/)
11857                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11858                 additional_includedir="$basedir/include"
11859                 ;;
11860             esac
11861             if test "X$additional_includedir" != "X"; then
11862                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11863                 haveit=
11864                 if test "X$additional_includedir" = "X/usr/local/include"; then
11865                   if test -n "$GCC"; then
11866                     case $host_os in
11867                       linux*) haveit=yes;;
11868                     esac
11869                   fi
11870                 fi
11871                 if test -z "$haveit"; then
11872                   for x in $CPPFLAGS $INCICONV; do
11873
11874   acl_save_prefix="$prefix"
11875   prefix="$acl_final_prefix"
11876   acl_save_exec_prefix="$exec_prefix"
11877   exec_prefix="$acl_final_exec_prefix"
11878   eval x=\"$x\"
11879   exec_prefix="$acl_save_exec_prefix"
11880   prefix="$acl_save_prefix"
11881
11882                     if test "X$x" = "X-I$additional_includedir"; then
11883                       haveit=yes
11884                       break
11885                     fi
11886                   done
11887                   if test -z "$haveit"; then
11888                     if test -d "$additional_includedir"; then
11889                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11890                     fi
11891                   fi
11892                 fi
11893               fi
11894             fi
11895                         if test -n "$found_la"; then
11896                                                         save_libdir="$libdir"
11897               case "$found_la" in
11898                 */* | *\\*) . "$found_la" ;;
11899                 *) . "./$found_la" ;;
11900               esac
11901               libdir="$save_libdir"
11902                             for dep in $dependency_libs; do
11903                 case "$dep" in
11904                   -L*)
11905                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11906                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11907                       haveit=
11908                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11909                         if test -n "$GCC"; then
11910                           case $host_os in
11911                             linux*) haveit=yes;;
11912                           esac
11913                         fi
11914                       fi
11915                       if test -z "$haveit"; then
11916                         haveit=
11917                         for x in $LDFLAGS $LIBICONV; do
11918
11919   acl_save_prefix="$prefix"
11920   prefix="$acl_final_prefix"
11921   acl_save_exec_prefix="$exec_prefix"
11922   exec_prefix="$acl_final_exec_prefix"
11923   eval x=\"$x\"
11924   exec_prefix="$acl_save_exec_prefix"
11925   prefix="$acl_save_prefix"
11926
11927                           if test "X$x" = "X-L$additional_libdir"; then
11928                             haveit=yes
11929                             break
11930                           fi
11931                         done
11932                         if test -z "$haveit"; then
11933                           if test -d "$additional_libdir"; then
11934                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11935                           fi
11936                         fi
11937                         haveit=
11938                         for x in $LDFLAGS $LTLIBICONV; do
11939
11940   acl_save_prefix="$prefix"
11941   prefix="$acl_final_prefix"
11942   acl_save_exec_prefix="$exec_prefix"
11943   exec_prefix="$acl_final_exec_prefix"
11944   eval x=\"$x\"
11945   exec_prefix="$acl_save_exec_prefix"
11946   prefix="$acl_save_prefix"
11947
11948                           if test "X$x" = "X-L$additional_libdir"; then
11949                             haveit=yes
11950                             break
11951                           fi
11952                         done
11953                         if test -z "$haveit"; then
11954                           if test -d "$additional_libdir"; then
11955                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11956                           fi
11957                         fi
11958                       fi
11959                     fi
11960                     ;;
11961                   -R*)
11962                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11963                     if test "$enable_rpath" != no; then
11964                                                                   haveit=
11965                       for x in $rpathdirs; do
11966                         if test "X$x" = "X$dir"; then
11967                           haveit=yes
11968                           break
11969                         fi
11970                       done
11971                       if test -z "$haveit"; then
11972                         rpathdirs="$rpathdirs $dir"
11973                       fi
11974                                                                   haveit=
11975                       for x in $ltrpathdirs; do
11976                         if test "X$x" = "X$dir"; then
11977                           haveit=yes
11978                           break
11979                         fi
11980                       done
11981                       if test -z "$haveit"; then
11982                         ltrpathdirs="$ltrpathdirs $dir"
11983                       fi
11984                     fi
11985                     ;;
11986                   -l*)
11987                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11988                     ;;
11989                   *.la)
11990                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11991                     ;;
11992                   *)
11993                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11994                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11995                     ;;
11996                 esac
11997               done
11998             fi
11999           else
12000                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12001             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12002           fi
12003         fi
12004       fi
12005     done
12006   done
12007   if test "X$rpathdirs" != "X"; then
12008     if test -n "$hardcode_libdir_separator"; then
12009                         alldirs=
12010       for found_dir in $rpathdirs; do
12011         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12012       done
12013             acl_save_libdir="$libdir"
12014       libdir="$alldirs"
12015       eval flag=\"$hardcode_libdir_flag_spec\"
12016       libdir="$acl_save_libdir"
12017       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12018     else
12019             for found_dir in $rpathdirs; do
12020         acl_save_libdir="$libdir"
12021         libdir="$found_dir"
12022         eval flag=\"$hardcode_libdir_flag_spec\"
12023         libdir="$acl_save_libdir"
12024         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12025       done
12026     fi
12027   fi
12028   if test "X$ltrpathdirs" != "X"; then
12029             for found_dir in $ltrpathdirs; do
12030       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12031     done
12032   fi
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12048 stdlib.h string.h unistd.h sys/param.h
12049 do
12050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12052   echo "$as_me:$LINENO: checking for $ac_header" >&5
12053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 fi
12057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12059 else
12060   # Is the header compilable?
12061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12063 cat >conftest.$ac_ext <<_ACEOF
12064 /* confdefs.h.  */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h.  */
12069 $ac_includes_default
12070 #include <$ac_header>
12071 _ACEOF
12072 rm -f conftest.$ac_objext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12074   (eval $ac_compile) 2>conftest.er1
12075   ac_status=$?
12076   grep -v '^ *+' conftest.er1 >conftest.err
12077   rm -f conftest.er1
12078   cat conftest.err >&5
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); } &&
12081          { ac_try='test -z "$ac_c_werror_flag"
12082                          || test ! -s conftest.err'
12083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084   (eval $ac_try) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; } &&
12088          { ac_try='test -s conftest.$ac_objext'
12089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090   (eval $ac_try) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; }; then
12094   ac_header_compiler=yes
12095 else
12096   echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 ac_header_compiler=no
12100 fi
12101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12103 echo "${ECHO_T}$ac_header_compiler" >&6
12104
12105 # Is the header present?
12106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h.  */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h.  */
12114 #include <$ac_header>
12115 _ACEOF
12116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12118   ac_status=$?
12119   grep -v '^ *+' conftest.er1 >conftest.err
12120   rm -f conftest.er1
12121   cat conftest.err >&5
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); } >/dev/null; then
12124   if test -s conftest.err; then
12125     ac_cpp_err=$ac_c_preproc_warn_flag
12126     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12127   else
12128     ac_cpp_err=
12129   fi
12130 else
12131   ac_cpp_err=yes
12132 fi
12133 if test -z "$ac_cpp_err"; then
12134   ac_header_preproc=yes
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139   ac_header_preproc=no
12140 fi
12141 rm -f conftest.err conftest.$ac_ext
12142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12143 echo "${ECHO_T}$ac_header_preproc" >&6
12144
12145 # So?  What about this header?
12146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12147   yes:no: )
12148     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12152     ac_header_preproc=yes
12153     ;;
12154   no:yes:* )
12155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12157     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12158 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12159     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12161     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12162 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12165     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12167     (
12168       cat <<\_ASBOX
12169 ## ------------------------------------------ ##
12170 ## Report this to the AC_PACKAGE_NAME lists.  ##
12171 ## ------------------------------------------ ##
12172 _ASBOX
12173     ) |
12174       sed "s/^/$as_me: WARNING:     /" >&2
12175     ;;
12176 esac
12177 echo "$as_me:$LINENO: checking for $ac_header" >&5
12178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12180   echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182   eval "$as_ac_Header=\$ac_header_preproc"
12183 fi
12184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12186
12187 fi
12188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12189   cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12191 _ACEOF
12192
12193 fi
12194
12195 done
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12219 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12220 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12221 do
12222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 echo "$as_me:$LINENO: checking for $ac_func" >&5
12224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12225 if eval "test \"\${$as_ac_var+set}\" = set"; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228   cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12236 #define $ac_func innocuous_$ac_func
12237
12238 /* System header to define __stub macros and hopefully few prototypes,
12239     which can conflict with char $ac_func (); below.
12240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241     <limits.h> exists even on freestanding compilers.  */
12242
12243 #ifdef __STDC__
12244 # include <limits.h>
12245 #else
12246 # include <assert.h>
12247 #endif
12248
12249 #undef $ac_func
12250
12251 /* Override any gcc2 internal prototype to avoid an error.  */
12252 #ifdef __cplusplus
12253 extern "C"
12254 {
12255 #endif
12256 /* We use char because int might match the return type of a gcc2
12257    builtin and then its argument prototype would still apply.  */
12258 char $ac_func ();
12259 /* The GNU C library defines this for functions which it implements
12260     to always fail with ENOSYS.  Some functions are actually named
12261     something starting with __ and the normal name is an alias.  */
12262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12263 choke me
12264 #else
12265 char (*f) () = $ac_func;
12266 #endif
12267 #ifdef __cplusplus
12268 }
12269 #endif
12270
12271 int
12272 main ()
12273 {
12274 return f != $ac_func;
12275   ;
12276   return 0;
12277 }
12278 _ACEOF
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281   (eval $ac_link) 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } &&
12288          { ac_try='test -z "$ac_c_werror_flag"
12289                          || test ! -s conftest.err'
12290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291   (eval $ac_try) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }; } &&
12295          { ac_try='test -s conftest$ac_exeext'
12296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297   (eval $ac_try) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; }; then
12301   eval "$as_ac_var=yes"
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12305
12306 eval "$as_ac_var=no"
12307 fi
12308 rm -f conftest.err conftest.$ac_objext \
12309       conftest$ac_exeext conftest.$ac_ext
12310 fi
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314   cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316 _ACEOF
12317
12318 fi
12319 done
12320
12321
12322
12323
12324
12325
12326
12327           am_save_CPPFLAGS="$CPPFLAGS"
12328
12329   for element in $INCICONV; do
12330     haveit=
12331     for x in $CPPFLAGS; do
12332
12333   acl_save_prefix="$prefix"
12334   prefix="$acl_final_prefix"
12335   acl_save_exec_prefix="$exec_prefix"
12336   exec_prefix="$acl_final_exec_prefix"
12337   eval x=\"$x\"
12338   exec_prefix="$acl_save_exec_prefix"
12339   prefix="$acl_save_prefix"
12340
12341       if test "X$x" = "X$element"; then
12342         haveit=yes
12343         break
12344       fi
12345     done
12346     if test -z "$haveit"; then
12347       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12348     fi
12349   done
12350
12351
12352   echo "$as_me:$LINENO: checking for iconv" >&5
12353 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12354 if test "${am_cv_func_iconv+set}" = set; then
12355   echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357
12358     am_cv_func_iconv="no, consider installing GNU libiconv"
12359     am_cv_lib_iconv=no
12360     cat >conftest.$ac_ext <<_ACEOF
12361 /* confdefs.h.  */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h.  */
12366 #include <stdlib.h>
12367 #include <iconv.h>
12368 int
12369 main ()
12370 {
12371 iconv_t cd = iconv_open("","");
12372        iconv(cd,NULL,NULL,NULL,NULL);
12373        iconv_close(cd);
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380   (eval $ac_link) 2>conftest.er1
12381   ac_status=$?
12382   grep -v '^ *+' conftest.er1 >conftest.err
12383   rm -f conftest.er1
12384   cat conftest.err >&5
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } &&
12387          { ac_try='test -z "$ac_c_werror_flag"
12388                          || test ! -s conftest.err'
12389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390   (eval $ac_try) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; } &&
12394          { ac_try='test -s conftest$ac_exeext'
12395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396   (eval $ac_try) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; }; then
12400   am_cv_func_iconv=yes
12401 else
12402   echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405 fi
12406 rm -f conftest.err conftest.$ac_objext \
12407       conftest$ac_exeext conftest.$ac_ext
12408     if test "$am_cv_func_iconv" != yes; then
12409       am_save_LIBS="$LIBS"
12410       LIBS="$LIBS $LIBICONV"
12411       cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 #include <stdlib.h>
12418 #include <iconv.h>
12419 int
12420 main ()
12421 {
12422 iconv_t cd = iconv_open("","");
12423          iconv(cd,NULL,NULL,NULL,NULL);
12424          iconv_close(cd);
12425   ;
12426   return 0;
12427 }
12428 _ACEOF
12429 rm -f conftest.$ac_objext conftest$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431   (eval $ac_link) 2>conftest.er1
12432   ac_status=$?
12433   grep -v '^ *+' conftest.er1 >conftest.err
12434   rm -f conftest.er1
12435   cat conftest.err >&5
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); } &&
12438          { ac_try='test -z "$ac_c_werror_flag"
12439                          || test ! -s conftest.err'
12440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441   (eval $ac_try) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; } &&
12445          { ac_try='test -s conftest$ac_exeext'
12446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447   (eval $ac_try) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; }; then
12451   am_cv_lib_iconv=yes
12452         am_cv_func_iconv=yes
12453 else
12454   echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 fi
12458 rm -f conftest.err conftest.$ac_objext \
12459       conftest$ac_exeext conftest.$ac_ext
12460       LIBS="$am_save_LIBS"
12461     fi
12462
12463 fi
12464 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12465 echo "${ECHO_T}$am_cv_func_iconv" >&6
12466   if test "$am_cv_func_iconv" = yes; then
12467
12468 cat >>confdefs.h <<\_ACEOF
12469 #define HAVE_ICONV 1
12470 _ACEOF
12471
12472   fi
12473   if test "$am_cv_lib_iconv" = yes; then
12474     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12475 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12476     echo "$as_me:$LINENO: result: $LIBICONV" >&5
12477 echo "${ECHO_T}$LIBICONV" >&6
12478   else
12479             CPPFLAGS="$am_save_CPPFLAGS"
12480     LIBICONV=
12481     LTLIBICONV=
12482   fi
12483
12484
12485
12486   if test "$am_cv_func_iconv" = yes; then
12487     echo "$as_me:$LINENO: checking for iconv declaration" >&5
12488 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12489     if test "${am_cv_proto_iconv+set}" = set; then
12490   echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492
12493       cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499
12500 #include <stdlib.h>
12501 #include <iconv.h>
12502 extern
12503 #ifdef __cplusplus
12504 "C"
12505 #endif
12506 #if defined(__STDC__) || defined(__cplusplus)
12507 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12508 #else
12509 size_t iconv();
12510 #endif
12511
12512 int
12513 main ()
12514 {
12515
12516   ;
12517   return 0;
12518 }
12519 _ACEOF
12520 rm -f conftest.$ac_objext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522   (eval $ac_compile) 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_objext'
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   am_cv_proto_iconv_arg1=""
12543 else
12544   echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12546
12547 am_cv_proto_iconv_arg1="const"
12548 fi
12549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12550       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12551 fi
12552
12553     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12554     echo "$as_me:$LINENO: result: ${ac_t:-
12555          }$am_cv_proto_iconv" >&5
12556 echo "${ECHO_T}${ac_t:-
12557          }$am_cv_proto_iconv" >&6
12558
12559 cat >>confdefs.h <<_ACEOF
12560 #define ICONV_CONST $am_cv_proto_iconv_arg1
12561 _ACEOF
12562
12563   fi
12564
12565
12566   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12567 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12568 if test "${am_cv_langinfo_codeset+set}" = set; then
12569   echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571   cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h.  */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h.  */
12577 #include <langinfo.h>
12578 int
12579 main ()
12580 {
12581 char* cs = nl_langinfo(CODESET);
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 rm -f conftest.$ac_objext conftest$ac_exeext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12588   (eval $ac_link) 2>conftest.er1
12589   ac_status=$?
12590   grep -v '^ *+' conftest.er1 >conftest.err
12591   rm -f conftest.er1
12592   cat conftest.err >&5
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } &&
12595          { ac_try='test -z "$ac_c_werror_flag"
12596                          || test ! -s conftest.err'
12597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598   (eval $ac_try) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; } &&
12602          { ac_try='test -s conftest$ac_exeext'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; }; then
12608   am_cv_langinfo_codeset=yes
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613 am_cv_langinfo_codeset=no
12614 fi
12615 rm -f conftest.err conftest.$ac_objext \
12616       conftest$ac_exeext conftest.$ac_ext
12617
12618 fi
12619 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12620 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12621   if test $am_cv_langinfo_codeset = yes; then
12622
12623 cat >>confdefs.h <<\_ACEOF
12624 #define HAVE_LANGINFO_CODESET 1
12625 _ACEOF
12626
12627   fi
12628
12629   if test $ac_cv_header_locale_h = yes; then
12630
12631   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12632 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12633 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12634   echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636   cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h.  */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h.  */
12642 #include <locale.h>
12643 int
12644 main ()
12645 {
12646 return LC_MESSAGES
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653   (eval $ac_link) 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } &&
12660          { ac_try='test -z "$ac_c_werror_flag"
12661                          || test ! -s conftest.err'
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); }; } &&
12667          { ac_try='test -s conftest$ac_exeext'
12668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669   (eval $ac_try) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); }; }; then
12673   am_cv_val_LC_MESSAGES=yes
12674 else
12675   echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678 am_cv_val_LC_MESSAGES=no
12679 fi
12680 rm -f conftest.err conftest.$ac_objext \
12681       conftest$ac_exeext conftest.$ac_ext
12682 fi
12683 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12684 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12685   if test $am_cv_val_LC_MESSAGES = yes; then
12686
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_LC_MESSAGES 1
12689 _ACEOF
12690
12691   fi
12692
12693   fi
12694
12695                       for ac_prog in bison
12696 do
12697   # Extract the first word of "$ac_prog", so it can be a program name with args.
12698 set dummy $ac_prog; ac_word=$2
12699 echo "$as_me:$LINENO: checking for $ac_word" >&5
12700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12701 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704   if test -n "$INTLBISON"; then
12705   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12706 else
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12709 do
12710   IFS=$as_save_IFS
12711   test -z "$as_dir" && as_dir=.
12712   for ac_exec_ext in '' $ac_executable_extensions; do
12713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12714     ac_cv_prog_INTLBISON="$ac_prog"
12715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12716     break 2
12717   fi
12718 done
12719 done
12720
12721 fi
12722 fi
12723 INTLBISON=$ac_cv_prog_INTLBISON
12724 if test -n "$INTLBISON"; then
12725   echo "$as_me:$LINENO: result: $INTLBISON" >&5
12726 echo "${ECHO_T}$INTLBISON" >&6
12727 else
12728   echo "$as_me:$LINENO: result: no" >&5
12729 echo "${ECHO_T}no" >&6
12730 fi
12731
12732   test -n "$INTLBISON" && break
12733 done
12734
12735   if test -z "$INTLBISON"; then
12736     ac_verc_fail=yes
12737   else
12738         echo "$as_me:$LINENO: checking version of bison" >&5
12739 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
12740     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12741     case $ac_prog_version in
12742       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12743       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12744          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12745       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12746     esac
12747     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12748 echo "${ECHO_T}$ac_prog_version" >&6
12749   fi
12750   if test $ac_verc_fail = yes; then
12751     INTLBISON=:
12752   fi
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12769 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12770     # Check whether --enable-nls or --disable-nls was given.
12771 if test "${enable_nls+set}" = set; then
12772   enableval="$enable_nls"
12773   USE_NLS=$enableval
12774 else
12775   USE_NLS=yes
12776 fi;
12777   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12778 echo "${ECHO_T}$USE_NLS" >&6
12779
12780
12781
12782     BUILD_INCLUDED_LIBINTL=no
12783     USE_INCLUDED_LIBINTL=no
12784
12785   LIBINTL=
12786   LTLIBINTL=
12787   POSUB=
12788
12789     if test "$USE_NLS" = "yes"; then
12790     gt_use_preinstalled_gnugettext=no
12791
12792       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12793 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12794
12795 # Check whether --with-included-gettext or --without-included-gettext was given.
12796 if test "${with_included_gettext+set}" = set; then
12797   withval="$with_included_gettext"
12798   nls_cv_force_use_gnu_gettext=$withval
12799 else
12800   nls_cv_force_use_gnu_gettext=no
12801 fi;
12802       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12803 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12804
12805       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12806       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12807
12808
12809
12810
12811
12812
12813         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12814 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12815 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12816   echo $ECHO_N "(cached) $ECHO_C" >&6
12817 else
12818   cat >conftest.$ac_ext <<_ACEOF
12819 /* confdefs.h.  */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h.  */
12824 #include <libintl.h>
12825 extern int _nl_msg_cat_cntr;
12826 extern int *_nl_domain_bindings;
12827 int
12828 main ()
12829 {
12830 bindtextdomain ("", "");
12831 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838   (eval $ac_link) 2>conftest.er1
12839   ac_status=$?
12840   grep -v '^ *+' conftest.er1 >conftest.err
12841   rm -f conftest.er1
12842   cat conftest.err >&5
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -z "$ac_c_werror_flag"
12846                          || test ! -s conftest.err'
12847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848   (eval $ac_try) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; } &&
12852          { ac_try='test -s conftest$ac_exeext'
12853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854   (eval $ac_try) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; }; then
12858   gt_cv_func_gnugettext1_libc=yes
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 gt_cv_func_gnugettext1_libc=no
12864 fi
12865 rm -f conftest.err conftest.$ac_objext \
12866       conftest$ac_exeext conftest.$ac_ext
12867 fi
12868 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12869 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12870
12871         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12872
12873
12874
12875     use_additional=yes
12876
12877   acl_save_prefix="$prefix"
12878   prefix="$acl_final_prefix"
12879   acl_save_exec_prefix="$exec_prefix"
12880   exec_prefix="$acl_final_exec_prefix"
12881
12882     eval additional_includedir=\"$includedir\"
12883     eval additional_libdir=\"$libdir\"
12884
12885   exec_prefix="$acl_save_exec_prefix"
12886   prefix="$acl_save_prefix"
12887
12888
12889 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12890 if test "${with_libintl_prefix+set}" = set; then
12891   withval="$with_libintl_prefix"
12892
12893     if test "X$withval" = "Xno"; then
12894       use_additional=no
12895     else
12896       if test "X$withval" = "X"; then
12897
12898   acl_save_prefix="$prefix"
12899   prefix="$acl_final_prefix"
12900   acl_save_exec_prefix="$exec_prefix"
12901   exec_prefix="$acl_final_exec_prefix"
12902
12903           eval additional_includedir=\"$includedir\"
12904           eval additional_libdir=\"$libdir\"
12905
12906   exec_prefix="$acl_save_exec_prefix"
12907   prefix="$acl_save_prefix"
12908
12909       else
12910         additional_includedir="$withval/include"
12911         additional_libdir="$withval/lib"
12912       fi
12913     fi
12914
12915 fi;
12916       LIBINTL=
12917   LTLIBINTL=
12918   INCINTL=
12919   rpathdirs=
12920   ltrpathdirs=
12921   names_already_handled=
12922   names_next_round='intl '
12923   while test -n "$names_next_round"; do
12924     names_this_round="$names_next_round"
12925     names_next_round=
12926     for name in $names_this_round; do
12927       already_handled=
12928       for n in $names_already_handled; do
12929         if test "$n" = "$name"; then
12930           already_handled=yes
12931           break
12932         fi
12933       done
12934       if test -z "$already_handled"; then
12935         names_already_handled="$names_already_handled $name"
12936                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12937         eval value=\"\$HAVE_LIB$uppername\"
12938         if test -n "$value"; then
12939           if test "$value" = yes; then
12940             eval value=\"\$LIB$uppername\"
12941             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12942             eval value=\"\$LTLIB$uppername\"
12943             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12944           else
12945                                     :
12946           fi
12947         else
12948                               found_dir=
12949           found_la=
12950           found_so=
12951           found_a=
12952           if test $use_additional = yes; then
12953             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12954               found_dir="$additional_libdir"
12955               found_so="$additional_libdir/lib$name.$shlibext"
12956               if test -f "$additional_libdir/lib$name.la"; then
12957                 found_la="$additional_libdir/lib$name.la"
12958               fi
12959             else
12960               if test -f "$additional_libdir/lib$name.$libext"; then
12961                 found_dir="$additional_libdir"
12962                 found_a="$additional_libdir/lib$name.$libext"
12963                 if test -f "$additional_libdir/lib$name.la"; then
12964                   found_la="$additional_libdir/lib$name.la"
12965                 fi
12966               fi
12967             fi
12968           fi
12969           if test "X$found_dir" = "X"; then
12970             for x in $LDFLAGS $LTLIBINTL; do
12971
12972   acl_save_prefix="$prefix"
12973   prefix="$acl_final_prefix"
12974   acl_save_exec_prefix="$exec_prefix"
12975   exec_prefix="$acl_final_exec_prefix"
12976   eval x=\"$x\"
12977   exec_prefix="$acl_save_exec_prefix"
12978   prefix="$acl_save_prefix"
12979
12980               case "$x" in
12981                 -L*)
12982                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12983                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12984                     found_dir="$dir"
12985                     found_so="$dir/lib$name.$shlibext"
12986                     if test -f "$dir/lib$name.la"; then
12987                       found_la="$dir/lib$name.la"
12988                     fi
12989                   else
12990                     if test -f "$dir/lib$name.$libext"; then
12991                       found_dir="$dir"
12992                       found_a="$dir/lib$name.$libext"
12993                       if test -f "$dir/lib$name.la"; then
12994                         found_la="$dir/lib$name.la"
12995                       fi
12996                     fi
12997                   fi
12998                   ;;
12999               esac
13000               if test "X$found_dir" != "X"; then
13001                 break
13002               fi
13003             done
13004           fi
13005           if test "X$found_dir" != "X"; then
13006                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13007             if test "X$found_so" != "X"; then
13008                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13009                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13010               else
13011                                                                                 haveit=
13012                 for x in $ltrpathdirs; do
13013                   if test "X$x" = "X$found_dir"; then
13014                     haveit=yes
13015                     break
13016                   fi
13017                 done
13018                 if test -z "$haveit"; then
13019                   ltrpathdirs="$ltrpathdirs $found_dir"
13020                 fi
13021                                 if test "$hardcode_direct" = yes; then
13022                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13023                 else
13024                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13025                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13026                                                             haveit=
13027                     for x in $rpathdirs; do
13028                       if test "X$x" = "X$found_dir"; then
13029                         haveit=yes
13030                         break
13031                       fi
13032                     done
13033                     if test -z "$haveit"; then
13034                       rpathdirs="$rpathdirs $found_dir"
13035                     fi
13036                   else
13037                                                                                 haveit=
13038                     for x in $LDFLAGS $LIBINTL; do
13039
13040   acl_save_prefix="$prefix"
13041   prefix="$acl_final_prefix"
13042   acl_save_exec_prefix="$exec_prefix"
13043   exec_prefix="$acl_final_exec_prefix"
13044   eval x=\"$x\"
13045   exec_prefix="$acl_save_exec_prefix"
13046   prefix="$acl_save_prefix"
13047
13048                       if test "X$x" = "X-L$found_dir"; then
13049                         haveit=yes
13050                         break
13051                       fi
13052                     done
13053                     if test -z "$haveit"; then
13054                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13055                     fi
13056                     if test "$hardcode_minus_L" != no; then
13057                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13058                     else
13059                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13060                     fi
13061                   fi
13062                 fi
13063               fi
13064             else
13065               if test "X$found_a" != "X"; then
13066                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13067               else
13068                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13069               fi
13070             fi
13071                         additional_includedir=
13072             case "$found_dir" in
13073               */lib | */lib/)
13074                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13075                 additional_includedir="$basedir/include"
13076                 ;;
13077             esac
13078             if test "X$additional_includedir" != "X"; then
13079                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13080                 haveit=
13081                 if test "X$additional_includedir" = "X/usr/local/include"; then
13082                   if test -n "$GCC"; then
13083                     case $host_os in
13084                       linux*) haveit=yes;;
13085                     esac
13086                   fi
13087                 fi
13088                 if test -z "$haveit"; then
13089                   for x in $CPPFLAGS $INCINTL; do
13090
13091   acl_save_prefix="$prefix"
13092   prefix="$acl_final_prefix"
13093   acl_save_exec_prefix="$exec_prefix"
13094   exec_prefix="$acl_final_exec_prefix"
13095   eval x=\"$x\"
13096   exec_prefix="$acl_save_exec_prefix"
13097   prefix="$acl_save_prefix"
13098
13099                     if test "X$x" = "X-I$additional_includedir"; then
13100                       haveit=yes
13101                       break
13102                     fi
13103                   done
13104                   if test -z "$haveit"; then
13105                     if test -d "$additional_includedir"; then
13106                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13107                     fi
13108                   fi
13109                 fi
13110               fi
13111             fi
13112                         if test -n "$found_la"; then
13113                                                         save_libdir="$libdir"
13114               case "$found_la" in
13115                 */* | *\\*) . "$found_la" ;;
13116                 *) . "./$found_la" ;;
13117               esac
13118               libdir="$save_libdir"
13119                             for dep in $dependency_libs; do
13120                 case "$dep" in
13121                   -L*)
13122                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13123                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13124                       haveit=
13125                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13126                         if test -n "$GCC"; then
13127                           case $host_os in
13128                             linux*) haveit=yes;;
13129                           esac
13130                         fi
13131                       fi
13132                       if test -z "$haveit"; then
13133                         haveit=
13134                         for x in $LDFLAGS $LIBINTL; do
13135
13136   acl_save_prefix="$prefix"
13137   prefix="$acl_final_prefix"
13138   acl_save_exec_prefix="$exec_prefix"
13139   exec_prefix="$acl_final_exec_prefix"
13140   eval x=\"$x\"
13141   exec_prefix="$acl_save_exec_prefix"
13142   prefix="$acl_save_prefix"
13143
13144                           if test "X$x" = "X-L$additional_libdir"; then
13145                             haveit=yes
13146                             break
13147                           fi
13148                         done
13149                         if test -z "$haveit"; then
13150                           if test -d "$additional_libdir"; then
13151                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13152                           fi
13153                         fi
13154                         haveit=
13155                         for x in $LDFLAGS $LTLIBINTL; do
13156
13157   acl_save_prefix="$prefix"
13158   prefix="$acl_final_prefix"
13159   acl_save_exec_prefix="$exec_prefix"
13160   exec_prefix="$acl_final_exec_prefix"
13161   eval x=\"$x\"
13162   exec_prefix="$acl_save_exec_prefix"
13163   prefix="$acl_save_prefix"
13164
13165                           if test "X$x" = "X-L$additional_libdir"; then
13166                             haveit=yes
13167                             break
13168                           fi
13169                         done
13170                         if test -z "$haveit"; then
13171                           if test -d "$additional_libdir"; then
13172                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13173                           fi
13174                         fi
13175                       fi
13176                     fi
13177                     ;;
13178                   -R*)
13179                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13180                     if test "$enable_rpath" != no; then
13181                                                                   haveit=
13182                       for x in $rpathdirs; do
13183                         if test "X$x" = "X$dir"; then
13184                           haveit=yes
13185                           break
13186                         fi
13187                       done
13188                       if test -z "$haveit"; then
13189                         rpathdirs="$rpathdirs $dir"
13190                       fi
13191                                                                   haveit=
13192                       for x in $ltrpathdirs; do
13193                         if test "X$x" = "X$dir"; then
13194                           haveit=yes
13195                           break
13196                         fi
13197                       done
13198                       if test -z "$haveit"; then
13199                         ltrpathdirs="$ltrpathdirs $dir"
13200                       fi
13201                     fi
13202                     ;;
13203                   -l*)
13204                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13205                     ;;
13206                   *.la)
13207                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13208                     ;;
13209                   *)
13210                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13211                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13212                     ;;
13213                 esac
13214               done
13215             fi
13216           else
13217                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13218             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13219           fi
13220         fi
13221       fi
13222     done
13223   done
13224   if test "X$rpathdirs" != "X"; then
13225     if test -n "$hardcode_libdir_separator"; then
13226                         alldirs=
13227       for found_dir in $rpathdirs; do
13228         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13229       done
13230             acl_save_libdir="$libdir"
13231       libdir="$alldirs"
13232       eval flag=\"$hardcode_libdir_flag_spec\"
13233       libdir="$acl_save_libdir"
13234       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13235     else
13236             for found_dir in $rpathdirs; do
13237         acl_save_libdir="$libdir"
13238         libdir="$found_dir"
13239         eval flag=\"$hardcode_libdir_flag_spec\"
13240         libdir="$acl_save_libdir"
13241         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13242       done
13243     fi
13244   fi
13245   if test "X$ltrpathdirs" != "X"; then
13246             for found_dir in $ltrpathdirs; do
13247       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13248     done
13249   fi
13250
13251           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13252 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13253 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13254   echo $ECHO_N "(cached) $ECHO_C" >&6
13255 else
13256   gt_save_CPPFLAGS="$CPPFLAGS"
13257             CPPFLAGS="$CPPFLAGS $INCINTL"
13258             gt_save_LIBS="$LIBS"
13259             LIBS="$LIBS $LIBINTL"
13260                         cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13266 #include <libintl.h>
13267 extern int _nl_msg_cat_cntr;
13268 extern
13269 #ifdef __cplusplus
13270 "C"
13271 #endif
13272 const char *_nl_expand_alias ();
13273 int
13274 main ()
13275 {
13276 bindtextdomain ("", "");
13277 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13278   ;
13279   return 0;
13280 }
13281 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284   (eval $ac_link) 2>conftest.er1
13285   ac_status=$?
13286   grep -v '^ *+' conftest.er1 >conftest.err
13287   rm -f conftest.er1
13288   cat conftest.err >&5
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); } &&
13291          { ac_try='test -z "$ac_c_werror_flag"
13292                          || test ! -s conftest.err'
13293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294   (eval $ac_try) 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); }; } &&
13298          { ac_try='test -s conftest$ac_exeext'
13299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300   (eval $ac_try) 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; }; then
13304   gt_cv_func_gnugettext1_libintl=yes
13305 else
13306   echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 gt_cv_func_gnugettext1_libintl=no
13310 fi
13311 rm -f conftest.err conftest.$ac_objext \
13312       conftest$ac_exeext conftest.$ac_ext
13313                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13314               LIBS="$LIBS $LIBICONV"
13315               cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h.  */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h.  */
13321 #include <libintl.h>
13322 extern int _nl_msg_cat_cntr;
13323 extern
13324 #ifdef __cplusplus
13325 "C"
13326 #endif
13327 const char *_nl_expand_alias ();
13328 int
13329 main ()
13330 {
13331 bindtextdomain ("", "");
13332 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13333   ;
13334   return 0;
13335 }
13336 _ACEOF
13337 rm -f conftest.$ac_objext conftest$ac_exeext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13339   (eval $ac_link) 2>conftest.er1
13340   ac_status=$?
13341   grep -v '^ *+' conftest.er1 >conftest.err
13342   rm -f conftest.er1
13343   cat conftest.err >&5
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); } &&
13346          { ac_try='test -z "$ac_c_werror_flag"
13347                          || test ! -s conftest.err'
13348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349   (eval $ac_try) 2>&5
13350   ac_status=$?
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); }; } &&
13353          { ac_try='test -s conftest$ac_exeext'
13354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355   (eval $ac_try) 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }; }; then
13359   LIBINTL="$LIBINTL $LIBICONV"
13360                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13361                 gt_cv_func_gnugettext1_libintl=yes
13362
13363 else
13364   echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13366
13367 fi
13368 rm -f conftest.err conftest.$ac_objext \
13369       conftest$ac_exeext conftest.$ac_ext
13370             fi
13371             CPPFLAGS="$gt_save_CPPFLAGS"
13372             LIBS="$gt_save_LIBS"
13373 fi
13374 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13375 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13376         fi
13377
13378                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13379            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13380                 && test "$PACKAGE" != gettext; }; then
13381           gt_use_preinstalled_gnugettext=yes
13382         else
13383                     LIBINTL=
13384           LTLIBINTL=
13385           INCINTL=
13386         fi
13387
13388
13389         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13390                               nls_cv_use_gnu_gettext=yes
13391         fi
13392       fi
13393
13394       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13395                 INTLOBJS="\$(GETTOBJS)"
13396         BUILD_INCLUDED_LIBINTL=yes
13397         USE_INCLUDED_LIBINTL=yes
13398         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13399         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13400         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13401       fi
13402
13403       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13404          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13405                 CATOBJEXT=.gmo
13406       fi
13407
13408
13409     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13410        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13411
13412 cat >>confdefs.h <<\_ACEOF
13413 #define ENABLE_NLS 1
13414 _ACEOF
13415
13416     else
13417       USE_NLS=no
13418     fi
13419   fi
13420
13421   if test "$USE_NLS" = "yes"; then
13422
13423     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13424       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13425         echo "$as_me:$LINENO: checking how to link with libintl" >&5
13426 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
13427         echo "$as_me:$LINENO: result: $LIBINTL" >&5
13428 echo "${ECHO_T}$LIBINTL" >&6
13429
13430   for element in $INCINTL; do
13431     haveit=
13432     for x in $CPPFLAGS; do
13433
13434   acl_save_prefix="$prefix"
13435   prefix="$acl_final_prefix"
13436   acl_save_exec_prefix="$exec_prefix"
13437   exec_prefix="$acl_final_exec_prefix"
13438   eval x=\"$x\"
13439   exec_prefix="$acl_save_exec_prefix"
13440   prefix="$acl_save_prefix"
13441
13442       if test "X$x" = "X$element"; then
13443         haveit=yes
13444         break
13445       fi
13446     done
13447     if test -z "$haveit"; then
13448       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13449     fi
13450   done
13451
13452       fi
13453
13454
13455 cat >>confdefs.h <<\_ACEOF
13456 #define HAVE_GETTEXT 1
13457 _ACEOF
13458
13459
13460 cat >>confdefs.h <<\_ACEOF
13461 #define HAVE_DCGETTEXT 1
13462 _ACEOF
13463
13464     fi
13465
13466         POSUB=po
13467   fi
13468
13469
13470             if test "$PACKAGE" = gettext; then
13471       BUILD_INCLUDED_LIBINTL=yes
13472     fi
13473
13474
13475
13476
13477
13478
13479         nls_cv_header_intl=
13480     nls_cv_header_libgt=
13481
13482         DATADIRNAME=share
13483
13484
13485         INSTOBJEXT=.mo
13486
13487
13488         GENCAT=gencat
13489
13490
13491         INTL_LIBTOOL_SUFFIX_PREFIX=
13492
13493
13494
13495     INTLLIBS="$LIBINTL"
13496
13497
13498
13499
13500
13501
13502
13503 POPT_SOURCE_PATH="`pwd`"
13504
13505 cat >>confdefs.h <<_ACEOF
13506 #define POPT_SOURCE_PATH "$POPT_SOURCE_PATH"
13507 _ACEOF
13508
13509
13510
13511                                         ac_config_files="$ac_config_files Doxyfile Makefile intl/Makefile po/Makefile.in"
13512 cat >confcache <<\_ACEOF
13513 # This file is a shell script that caches the results of configure
13514 # tests run on this system so they can be shared between configure
13515 # scripts and configure runs, see configure's option --config-cache.
13516 # It is not useful on other systems.  If it contains results you don't
13517 # want to keep, you may remove or edit it.
13518 #
13519 # config.status only pays attention to the cache file if you give it
13520 # the --recheck option to rerun configure.
13521 #
13522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13524 # following values.
13525
13526 _ACEOF
13527
13528 # The following way of writing the cache mishandles newlines in values,
13529 # but we know of no workaround that is simple, portable, and efficient.
13530 # So, don't put newlines in cache variables' values.
13531 # Ultrix sh set writes to stderr and can't be redirected directly,
13532 # and sets the high bit in the cache file unless we assign to the vars.
13533 {
13534   (set) 2>&1 |
13535     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13536     *ac_space=\ *)
13537       # `set' does not quote correctly, so add quotes (double-quote
13538       # substitution turns \\\\ into \\, and sed turns \\ into \).
13539       sed -n \
13540         "s/'/'\\\\''/g;
13541           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13542       ;;
13543     *)
13544       # `set' quotes correctly as required by POSIX, so do not add quotes.
13545       sed -n \
13546         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13547       ;;
13548     esac;
13549 } |
13550   sed '
13551      t clear
13552      : clear
13553      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13554      t end
13555      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13556      : end' >>confcache
13557 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13558   if test -w $cache_file; then
13559     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13560     cat confcache >$cache_file
13561   else
13562     echo "not updating unwritable cache $cache_file"
13563   fi
13564 fi
13565 rm -f confcache
13566
13567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13568 # Let make expand exec_prefix.
13569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13570
13571 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13572 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13573 # trailing colons and then remove the whole line if VPATH becomes empty
13574 # (actually we leave an empty line to preserve line numbers).
13575 if test "x$srcdir" = x.; then
13576   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13577 s/:*\$(srcdir):*/:/;
13578 s/:*\${srcdir}:*/:/;
13579 s/:*@srcdir@:*/:/;
13580 s/^\([^=]*=[     ]*\):*/\1/;
13581 s/:*$//;
13582 s/^[^=]*=[       ]*$//;
13583 }'
13584 fi
13585
13586 DEFS=-DHAVE_CONFIG_H
13587
13588 ac_libobjs=
13589 ac_ltlibobjs=
13590 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13591   # 1. Remove the extension, and $U if already installed.
13592   ac_i=`echo "$ac_i" |
13593          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13594   # 2. Add them.
13595   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13596   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13597 done
13598 LIBOBJS=$ac_libobjs
13599
13600 LTLIBOBJS=$ac_ltlibobjs
13601
13602
13603 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13604   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13605 Usually this means the macro was only invoked conditionally." >&5
13606 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13607 Usually this means the macro was only invoked conditionally." >&2;}
13608    { (exit 1); exit 1; }; }
13609 fi
13610
13611 : ${CONFIG_STATUS=./config.status}
13612 ac_clean_files_save=$ac_clean_files
13613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13614 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13615 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13616 cat >$CONFIG_STATUS <<_ACEOF
13617 #! $SHELL
13618 # Generated by $as_me.
13619 # Run this file to recreate the current configuration.
13620 # Compiler output produced by configure, useful for debugging
13621 # configure, is in config.log if it exists.
13622
13623 debug=false
13624 ac_cs_recheck=false
13625 ac_cs_silent=false
13626 SHELL=\${CONFIG_SHELL-$SHELL}
13627 _ACEOF
13628
13629 cat >>$CONFIG_STATUS <<\_ACEOF
13630 ## --------------------- ##
13631 ## M4sh Initialization.  ##
13632 ## --------------------- ##
13633
13634 # Be Bourne compatible
13635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13636   emulate sh
13637   NULLCMD=:
13638   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13639   # is contrary to our usage.  Disable this feature.
13640   alias -g '${1+"$@"}'='"$@"'
13641 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13642   set -o posix
13643 fi
13644 DUALCASE=1; export DUALCASE # for MKS sh
13645
13646 # Support unset when possible.
13647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13648   as_unset=unset
13649 else
13650   as_unset=false
13651 fi
13652
13653
13654 # Work around bugs in pre-3.0 UWIN ksh.
13655 $as_unset ENV MAIL MAILPATH
13656 PS1='$ '
13657 PS2='> '
13658 PS4='+ '
13659
13660 # NLS nuisances.
13661 for as_var in \
13662   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13663   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13664   LC_TELEPHONE LC_TIME
13665 do
13666   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13667     eval $as_var=C; export $as_var
13668   else
13669     $as_unset $as_var
13670   fi
13671 done
13672
13673 # Required to use basename.
13674 if expr a : '\(a\)' >/dev/null 2>&1; then
13675   as_expr=expr
13676 else
13677   as_expr=false
13678 fi
13679
13680 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13681   as_basename=basename
13682 else
13683   as_basename=false
13684 fi
13685
13686
13687 # Name of the executable.
13688 as_me=`$as_basename "$0" ||
13689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13690          X"$0" : 'X\(//\)$' \| \
13691          X"$0" : 'X\(/\)$' \| \
13692          .     : '\(.\)' 2>/dev/null ||
13693 echo X/"$0" |
13694     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13695           /^X\/\(\/\/\)$/{ s//\1/; q; }
13696           /^X\/\(\/\).*/{ s//\1/; q; }
13697           s/.*/./; q'`
13698
13699
13700 # PATH needs CR, and LINENO needs CR and PATH.
13701 # Avoid depending upon Character Ranges.
13702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13705 as_cr_digits='0123456789'
13706 as_cr_alnum=$as_cr_Letters$as_cr_digits
13707
13708 # The user is always right.
13709 if test "${PATH_SEPARATOR+set}" != set; then
13710   echo "#! /bin/sh" >conf$$.sh
13711   echo  "exit 0"   >>conf$$.sh
13712   chmod +x conf$$.sh
13713   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13714     PATH_SEPARATOR=';'
13715   else
13716     PATH_SEPARATOR=:
13717   fi
13718   rm -f conf$$.sh
13719 fi
13720
13721
13722   as_lineno_1=$LINENO
13723   as_lineno_2=$LINENO
13724   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13725   test "x$as_lineno_1" != "x$as_lineno_2" &&
13726   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13727   # Find who we are.  Look in the path if we contain no path at all
13728   # relative or not.
13729   case $0 in
13730     *[\\/]* ) as_myself=$0 ;;
13731     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH
13733 do
13734   IFS=$as_save_IFS
13735   test -z "$as_dir" && as_dir=.
13736   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13737 done
13738
13739        ;;
13740   esac
13741   # We did not find ourselves, most probably we were run as `sh COMMAND'
13742   # in which case we are not to be found in the path.
13743   if test "x$as_myself" = x; then
13744     as_myself=$0
13745   fi
13746   if test ! -f "$as_myself"; then
13747     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13748 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13749    { (exit 1); exit 1; }; }
13750   fi
13751   case $CONFIG_SHELL in
13752   '')
13753     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13755 do
13756   IFS=$as_save_IFS
13757   test -z "$as_dir" && as_dir=.
13758   for as_base in sh bash ksh sh5; do
13759          case $as_dir in
13760          /*)
13761            if ("$as_dir/$as_base" -c '
13762   as_lineno_1=$LINENO
13763   as_lineno_2=$LINENO
13764   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13765   test "x$as_lineno_1" != "x$as_lineno_2" &&
13766   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13767              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13768              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13769              CONFIG_SHELL=$as_dir/$as_base
13770              export CONFIG_SHELL
13771              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13772            fi;;
13773          esac
13774        done
13775 done
13776 ;;
13777   esac
13778
13779   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13780   # uniformly replaced by the line number.  The first 'sed' inserts a
13781   # line-number line before each line; the second 'sed' does the real
13782   # work.  The second script uses 'N' to pair each line-number line
13783   # with the numbered line, and appends trailing '-' during
13784   # substitution so that $LINENO is not a special case at line end.
13785   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13786   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13787   sed '=' <$as_myself |
13788     sed '
13789       N
13790       s,$,-,
13791       : loop
13792       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13793       t loop
13794       s,-$,,
13795       s,^['$as_cr_digits']*\n,,
13796     ' >$as_me.lineno &&
13797   chmod +x $as_me.lineno ||
13798     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13799 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13800    { (exit 1); exit 1; }; }
13801
13802   # Don't try to exec as it changes $[0], causing all sort of problems
13803   # (the dirname of $[0] is not the place where we might find the
13804   # original and so on.  Autoconf is especially sensible to this).
13805   . ./$as_me.lineno
13806   # Exit status is that of the last command.
13807   exit
13808 }
13809
13810
13811 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13812   *c*,-n*) ECHO_N= ECHO_C='
13813 ' ECHO_T='      ' ;;
13814   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13815   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13816 esac
13817
13818 if expr a : '\(a\)' >/dev/null 2>&1; then
13819   as_expr=expr
13820 else
13821   as_expr=false
13822 fi
13823
13824 rm -f conf$$ conf$$.exe conf$$.file
13825 echo >conf$$.file
13826 if ln -s conf$$.file conf$$ 2>/dev/null; then
13827   # We could just check for DJGPP; but this test a) works b) is more generic
13828   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13829   if test -f conf$$.exe; then
13830     # Don't use ln at all; we don't have any links
13831     as_ln_s='cp -p'
13832   else
13833     as_ln_s='ln -s'
13834   fi
13835 elif ln conf$$.file conf$$ 2>/dev/null; then
13836   as_ln_s=ln
13837 else
13838   as_ln_s='cp -p'
13839 fi
13840 rm -f conf$$ conf$$.exe conf$$.file
13841
13842 if mkdir -p . 2>/dev/null; then
13843   as_mkdir_p=:
13844 else
13845   test -d ./-p && rmdir ./-p
13846   as_mkdir_p=false
13847 fi
13848
13849 as_executable_p="test -f"
13850
13851 # Sed expression to map a string onto a valid CPP name.
13852 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13853
13854 # Sed expression to map a string onto a valid variable name.
13855 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13856
13857
13858 # IFS
13859 # We need space, tab and new line, in precisely that order.
13860 as_nl='
13861 '
13862 IFS="   $as_nl"
13863
13864 # CDPATH.
13865 $as_unset CDPATH
13866
13867 exec 6>&1
13868
13869 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13870 # report actual input values of CONFIG_FILES etc. instead of their
13871 # values after options handling.  Logging --version etc. is OK.
13872 exec 5>>config.log
13873 {
13874   echo
13875   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13876 ## Running $as_me. ##
13877 _ASBOX
13878 } >&5
13879 cat >&5 <<_CSEOF
13880
13881 This file was extended by $as_me, which was
13882 generated by GNU Autoconf 2.59.  Invocation command line was
13883
13884   CONFIG_FILES    = $CONFIG_FILES
13885   CONFIG_HEADERS  = $CONFIG_HEADERS
13886   CONFIG_LINKS    = $CONFIG_LINKS
13887   CONFIG_COMMANDS = $CONFIG_COMMANDS
13888   $ $0 $@
13889
13890 _CSEOF
13891 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13892 echo >&5
13893 _ACEOF
13894
13895 # Files that config.status was made for.
13896 if test -n "$ac_config_files"; then
13897   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13898 fi
13899
13900 if test -n "$ac_config_headers"; then
13901   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13902 fi
13903
13904 if test -n "$ac_config_links"; then
13905   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13906 fi
13907
13908 if test -n "$ac_config_commands"; then
13909   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13910 fi
13911
13912 cat >>$CONFIG_STATUS <<\_ACEOF
13913
13914 ac_cs_usage="\
13915 \`$as_me' instantiates files from templates according to the
13916 current configuration.
13917
13918 Usage: $0 [OPTIONS] [FILE]...
13919
13920   -h, --help       print this help, then exit
13921   -V, --version    print version number, then exit
13922   -q, --quiet      do not print progress messages
13923   -d, --debug      don't remove temporary files
13924       --recheck    update $as_me by reconfiguring in the same conditions
13925   --file=FILE[:TEMPLATE]
13926                    instantiate the configuration file FILE
13927   --header=FILE[:TEMPLATE]
13928                    instantiate the configuration header FILE
13929
13930 Configuration files:
13931 $config_files
13932
13933 Configuration headers:
13934 $config_headers
13935
13936 Configuration commands:
13937 $config_commands
13938
13939 Report bugs to <bug-autoconf@gnu.org>."
13940 _ACEOF
13941
13942 cat >>$CONFIG_STATUS <<_ACEOF
13943 ac_cs_version="\\
13944 config.status
13945 configured by $0, generated by GNU Autoconf 2.59,
13946   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13947
13948 Copyright (C) 2003 Free Software Foundation, Inc.
13949 This config.status script is free software; the Free Software Foundation
13950 gives unlimited permission to copy, distribute and modify it."
13951 srcdir=$srcdir
13952 INSTALL="$INSTALL"
13953 _ACEOF
13954
13955 cat >>$CONFIG_STATUS <<\_ACEOF
13956 # If no file are specified by the user, then we need to provide default
13957 # value.  By we need to know if files were specified by the user.
13958 ac_need_defaults=:
13959 while test $# != 0
13960 do
13961   case $1 in
13962   --*=*)
13963     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13964     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13965     ac_shift=:
13966     ;;
13967   -*)
13968     ac_option=$1
13969     ac_optarg=$2
13970     ac_shift=shift
13971     ;;
13972   *) # This is not an option, so the user has probably given explicit
13973      # arguments.
13974      ac_option=$1
13975      ac_need_defaults=false;;
13976   esac
13977
13978   case $ac_option in
13979   # Handling of the options.
13980 _ACEOF
13981 cat >>$CONFIG_STATUS <<\_ACEOF
13982   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13983     ac_cs_recheck=: ;;
13984   --version | --vers* | -V )
13985     echo "$ac_cs_version"; exit 0 ;;
13986   --he | --h)
13987     # Conflict between --help and --header
13988     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13989 Try \`$0 --help' for more information." >&5
13990 echo "$as_me: error: ambiguous option: $1
13991 Try \`$0 --help' for more information." >&2;}
13992    { (exit 1); exit 1; }; };;
13993   --help | --hel | -h )
13994     echo "$ac_cs_usage"; exit 0 ;;
13995   --debug | --d* | -d )
13996     debug=: ;;
13997   --file | --fil | --fi | --f )
13998     $ac_shift
13999     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14000     ac_need_defaults=false;;
14001   --header | --heade | --head | --hea )
14002     $ac_shift
14003     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14004     ac_need_defaults=false;;
14005   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14006   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14007     ac_cs_silent=: ;;
14008
14009   # This is an error.
14010   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14011 Try \`$0 --help' for more information." >&5
14012 echo "$as_me: error: unrecognized option: $1
14013 Try \`$0 --help' for more information." >&2;}
14014    { (exit 1); exit 1; }; } ;;
14015
14016   *) ac_config_targets="$ac_config_targets $1" ;;
14017
14018   esac
14019   shift
14020 done
14021
14022 ac_configure_extra_args=
14023
14024 if $ac_cs_silent; then
14025   exec 6>/dev/null
14026   ac_configure_extra_args="$ac_configure_extra_args --silent"
14027 fi
14028
14029 _ACEOF
14030 cat >>$CONFIG_STATUS <<_ACEOF
14031 if \$ac_cs_recheck; then
14032   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14033   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14034 fi
14035
14036 _ACEOF
14037
14038 cat >>$CONFIG_STATUS <<_ACEOF
14039 #
14040 # INIT-COMMANDS section.
14041 #
14042
14043 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14044 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
14045     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14046     # from automake.
14047     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
14048     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14049     LINGUAS="${LINGUAS-%UNSET%}"
14050
14051
14052 _ACEOF
14053
14054
14055
14056 cat >>$CONFIG_STATUS <<\_ACEOF
14057 for ac_config_target in $ac_config_targets
14058 do
14059   case "$ac_config_target" in
14060   # Handling of arguments.
14061   "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
14062   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14063   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
14064   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14065   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14066   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14067   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14068   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14069 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14070    { (exit 1); exit 1; }; };;
14071   esac
14072 done
14073
14074 # If the user did not use the arguments to specify the items to instantiate,
14075 # then the envvar interface is used.  Set only those that are not.
14076 # We use the long form for the default assignment because of an extremely
14077 # bizarre bug on SunOS 4.1.3.
14078 if $ac_need_defaults; then
14079   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14080   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14081   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14082 fi
14083
14084 # Have a temporary directory for convenience.  Make it in the build tree
14085 # simply because there is no reason to put it here, and in addition,
14086 # creating and moving files from /tmp can sometimes cause problems.
14087 # Create a temporary directory, and hook for its removal unless debugging.
14088 $debug ||
14089 {
14090   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14091   trap '{ (exit 1); exit 1; }' 1 2 13 15
14092 }
14093
14094 # Create a (secure) tmp directory for tmp files.
14095
14096 {
14097   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14098   test -n "$tmp" && test -d "$tmp"
14099 }  ||
14100 {
14101   tmp=./confstat$$-$RANDOM
14102   (umask 077 && mkdir $tmp)
14103 } ||
14104 {
14105    echo "$me: cannot create a temporary directory in ." >&2
14106    { (exit 1); exit 1; }
14107 }
14108
14109 _ACEOF
14110
14111 cat >>$CONFIG_STATUS <<_ACEOF
14112
14113 #
14114 # CONFIG_FILES section.
14115 #
14116
14117 # No need to generate the scripts if there are no CONFIG_FILES.
14118 # This happens for instance when ./config.status config.h
14119 if test -n "\$CONFIG_FILES"; then
14120   # Protect against being on the right side of a sed subst in config.status.
14121   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14122    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14123 s,@SHELL@,$SHELL,;t t
14124 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14125 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14126 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14127 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14128 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14129 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14130 s,@exec_prefix@,$exec_prefix,;t t
14131 s,@prefix@,$prefix,;t t
14132 s,@program_transform_name@,$program_transform_name,;t t
14133 s,@bindir@,$bindir,;t t
14134 s,@sbindir@,$sbindir,;t t
14135 s,@libexecdir@,$libexecdir,;t t
14136 s,@datadir@,$datadir,;t t
14137 s,@sysconfdir@,$sysconfdir,;t t
14138 s,@sharedstatedir@,$sharedstatedir,;t t
14139 s,@localstatedir@,$localstatedir,;t t
14140 s,@libdir@,$libdir,;t t
14141 s,@includedir@,$includedir,;t t
14142 s,@oldincludedir@,$oldincludedir,;t t
14143 s,@infodir@,$infodir,;t t
14144 s,@mandir@,$mandir,;t t
14145 s,@build_alias@,$build_alias,;t t
14146 s,@host_alias@,$host_alias,;t t
14147 s,@target_alias@,$target_alias,;t t
14148 s,@DEFS@,$DEFS,;t t
14149 s,@ECHO_C@,$ECHO_C,;t t
14150 s,@ECHO_N@,$ECHO_N,;t t
14151 s,@ECHO_T@,$ECHO_T,;t t
14152 s,@LIBS@,$LIBS,;t t
14153 s,@build@,$build,;t t
14154 s,@build_cpu@,$build_cpu,;t t
14155 s,@build_vendor@,$build_vendor,;t t
14156 s,@build_os@,$build_os,;t t
14157 s,@host@,$host,;t t
14158 s,@host_cpu@,$host_cpu,;t t
14159 s,@host_vendor@,$host_vendor,;t t
14160 s,@host_os@,$host_os,;t t
14161 s,@target@,$target,;t t
14162 s,@target_cpu@,$target_cpu,;t t
14163 s,@target_vendor@,$target_vendor,;t t
14164 s,@target_os@,$target_os,;t t
14165 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14166 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14167 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14168 s,@PACKAGE@,$PACKAGE,;t t
14169 s,@VERSION@,$VERSION,;t t
14170 s,@ACLOCAL@,$ACLOCAL,;t t
14171 s,@AUTOCONF@,$AUTOCONF,;t t
14172 s,@AUTOMAKE@,$AUTOMAKE,;t t
14173 s,@AUTOHEADER@,$AUTOHEADER,;t t
14174 s,@MAKEINFO@,$MAKEINFO,;t t
14175 s,@AMTAR@,$AMTAR,;t t
14176 s,@install_sh@,$install_sh,;t t
14177 s,@STRIP@,$STRIP,;t t
14178 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14179 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14180 s,@AWK@,$AWK,;t t
14181 s,@SET_MAKE@,$SET_MAKE,;t t
14182 s,@CC@,$CC,;t t
14183 s,@CFLAGS@,$CFLAGS,;t t
14184 s,@LDFLAGS@,$LDFLAGS,;t t
14185 s,@CPPFLAGS@,$CPPFLAGS,;t t
14186 s,@ac_ct_CC@,$ac_ct_CC,;t t
14187 s,@EXEEXT@,$EXEEXT,;t t
14188 s,@OBJEXT@,$OBJEXT,;t t
14189 s,@DEPDIR@,$DEPDIR,;t t
14190 s,@am__include@,$am__include,;t t
14191 s,@am__quote@,$am__quote,;t t
14192 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14193 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14194 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14195 s,@CCDEPMODE@,$CCDEPMODE,;t t
14196 s,@CPP@,$CPP,;t t
14197 s,@EGREP@,$EGREP,;t t
14198 s,@U@,$U,;t t
14199 s,@ANSI2KNR@,$ANSI2KNR,;t t
14200 s,@LN_S@,$LN_S,;t t
14201 s,@ECHO@,$ECHO,;t t
14202 s,@RANLIB@,$RANLIB,;t t
14203 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14204 s,@LIBTOOL@,$LIBTOOL,;t t
14205 s,@TARGET@,$TARGET,;t t
14206 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14207 s,@MSGFMT@,$MSGFMT,;t t
14208 s,@GMSGFMT@,$GMSGFMT,;t t
14209 s,@XGETTEXT@,$XGETTEXT,;t t
14210 s,@MSGMERGE@,$MSGMERGE,;t t
14211 s,@ALLOCA@,$ALLOCA,;t t
14212 s,@GLIBC21@,$GLIBC21,;t t
14213 s,@LIBICONV@,$LIBICONV,;t t
14214 s,@LTLIBICONV@,$LTLIBICONV,;t t
14215 s,@INTLBISON@,$INTLBISON,;t t
14216 s,@USE_NLS@,$USE_NLS,;t t
14217 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14218 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14219 s,@CATOBJEXT@,$CATOBJEXT,;t t
14220 s,@INTLOBJS@,$INTLOBJS,;t t
14221 s,@DATADIRNAME@,$DATADIRNAME,;t t
14222 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14223 s,@GENCAT@,$GENCAT,;t t
14224 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14225 s,@INTLLIBS@,$INTLLIBS,;t t
14226 s,@LIBINTL@,$LIBINTL,;t t
14227 s,@LTLIBINTL@,$LTLIBINTL,;t t
14228 s,@POSUB@,$POSUB,;t t
14229 s,@POPT_SOURCE_PATH@,$POPT_SOURCE_PATH,;t t
14230 s,@LIBOBJS@,$LIBOBJS,;t t
14231 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14232 CEOF
14233
14234 _ACEOF
14235
14236   cat >>$CONFIG_STATUS <<\_ACEOF
14237   # Split the substitutions into bite-sized pieces for seds with
14238   # small command number limits, like on Digital OSF/1 and HP-UX.
14239   ac_max_sed_lines=48
14240   ac_sed_frag=1 # Number of current file.
14241   ac_beg=1 # First line for current file.
14242   ac_end=$ac_max_sed_lines # Line after last line for current file.
14243   ac_more_lines=:
14244   ac_sed_cmds=
14245   while $ac_more_lines; do
14246     if test $ac_beg -gt 1; then
14247       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14248     else
14249       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14250     fi
14251     if test ! -s $tmp/subs.frag; then
14252       ac_more_lines=false
14253     else
14254       # The purpose of the label and of the branching condition is to
14255       # speed up the sed processing (if there are no `@' at all, there
14256       # is no need to browse any of the substitutions).
14257       # These are the two extra sed commands mentioned above.
14258       (echo ':t
14259   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14260       if test -z "$ac_sed_cmds"; then
14261         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14262       else
14263         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14264       fi
14265       ac_sed_frag=`expr $ac_sed_frag + 1`
14266       ac_beg=$ac_end
14267       ac_end=`expr $ac_end + $ac_max_sed_lines`
14268     fi
14269   done
14270   if test -z "$ac_sed_cmds"; then
14271     ac_sed_cmds=cat
14272   fi
14273 fi # test -n "$CONFIG_FILES"
14274
14275 _ACEOF
14276 cat >>$CONFIG_STATUS <<\_ACEOF
14277 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14278   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14279   case $ac_file in
14280   - | *:- | *:-:* ) # input from stdin
14281         cat >$tmp/stdin
14282         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14283         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14284   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14285         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14286   * )   ac_file_in=$ac_file.in ;;
14287   esac
14288
14289   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14290   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14292          X"$ac_file" : 'X\(//\)[^/]' \| \
14293          X"$ac_file" : 'X\(//\)$' \| \
14294          X"$ac_file" : 'X\(/\)' \| \
14295          .     : '\(.\)' 2>/dev/null ||
14296 echo X"$ac_file" |
14297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14298           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14299           /^X\(\/\/\)$/{ s//\1/; q; }
14300           /^X\(\/\).*/{ s//\1/; q; }
14301           s/.*/./; q'`
14302   { if $as_mkdir_p; then
14303     mkdir -p "$ac_dir"
14304   else
14305     as_dir="$ac_dir"
14306     as_dirs=
14307     while test ! -d "$as_dir"; do
14308       as_dirs="$as_dir $as_dirs"
14309       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14311          X"$as_dir" : 'X\(//\)[^/]' \| \
14312          X"$as_dir" : 'X\(//\)$' \| \
14313          X"$as_dir" : 'X\(/\)' \| \
14314          .     : '\(.\)' 2>/dev/null ||
14315 echo X"$as_dir" |
14316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14317           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14318           /^X\(\/\/\)$/{ s//\1/; q; }
14319           /^X\(\/\).*/{ s//\1/; q; }
14320           s/.*/./; q'`
14321     done
14322     test ! -n "$as_dirs" || mkdir $as_dirs
14323   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14324 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14325    { (exit 1); exit 1; }; }; }
14326
14327   ac_builddir=.
14328
14329 if test "$ac_dir" != .; then
14330   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14331   # A "../" for each directory in $ac_dir_suffix.
14332   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14333 else
14334   ac_dir_suffix= ac_top_builddir=
14335 fi
14336
14337 case $srcdir in
14338   .)  # No --srcdir option.  We are building in place.
14339     ac_srcdir=.
14340     if test -z "$ac_top_builddir"; then
14341        ac_top_srcdir=.
14342     else
14343        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14344     fi ;;
14345   [\\/]* | ?:[\\/]* )  # Absolute path.
14346     ac_srcdir=$srcdir$ac_dir_suffix;
14347     ac_top_srcdir=$srcdir ;;
14348   *) # Relative path.
14349     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14350     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14351 esac
14352
14353 # Do not use `cd foo && pwd` to compute absolute paths, because
14354 # the directories may not exist.
14355 case `pwd` in
14356 .) ac_abs_builddir="$ac_dir";;
14357 *)
14358   case "$ac_dir" in
14359   .) ac_abs_builddir=`pwd`;;
14360   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14361   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14362   esac;;
14363 esac
14364 case $ac_abs_builddir in
14365 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14366 *)
14367   case ${ac_top_builddir}. in
14368   .) ac_abs_top_builddir=$ac_abs_builddir;;
14369   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14370   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14371   esac;;
14372 esac
14373 case $ac_abs_builddir in
14374 .) ac_abs_srcdir=$ac_srcdir;;
14375 *)
14376   case $ac_srcdir in
14377   .) ac_abs_srcdir=$ac_abs_builddir;;
14378   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14379   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14380   esac;;
14381 esac
14382 case $ac_abs_builddir in
14383 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14384 *)
14385   case $ac_top_srcdir in
14386   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14387   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14388   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14389   esac;;
14390 esac
14391
14392
14393   case $INSTALL in
14394   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14395   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14396   esac
14397
14398   if test x"$ac_file" != x-; then
14399     { echo "$as_me:$LINENO: creating $ac_file" >&5
14400 echo "$as_me: creating $ac_file" >&6;}
14401     rm -f "$ac_file"
14402   fi
14403   # Let's still pretend it is `configure' which instantiates (i.e., don't
14404   # use $as_me), people would be surprised to read:
14405   #    /* config.h.  Generated by config.status.  */
14406   if test x"$ac_file" = x-; then
14407     configure_input=
14408   else
14409     configure_input="$ac_file.  "
14410   fi
14411   configure_input=$configure_input"Generated from `echo $ac_file_in |
14412                                      sed 's,.*/,,'` by configure."
14413
14414   # First look for the input files in the build tree, otherwise in the
14415   # src tree.
14416   ac_file_inputs=`IFS=:
14417     for f in $ac_file_in; do
14418       case $f in
14419       -) echo $tmp/stdin ;;
14420       [\\/$]*)
14421          # Absolute (can't be DOS-style, as IFS=:)
14422          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14423 echo "$as_me: error: cannot find input file: $f" >&2;}
14424    { (exit 1); exit 1; }; }
14425          echo "$f";;
14426       *) # Relative
14427          if test -f "$f"; then
14428            # Build tree
14429            echo "$f"
14430          elif test -f "$srcdir/$f"; then
14431            # Source tree
14432            echo "$srcdir/$f"
14433          else
14434            # /dev/null tree
14435            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14436 echo "$as_me: error: cannot find input file: $f" >&2;}
14437    { (exit 1); exit 1; }; }
14438          fi;;
14439       esac
14440     done` || { (exit 1); exit 1; }
14441 _ACEOF
14442 cat >>$CONFIG_STATUS <<_ACEOF
14443   sed "$ac_vpsub
14444 $extrasub
14445 _ACEOF
14446 cat >>$CONFIG_STATUS <<\_ACEOF
14447 :t
14448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14449 s,@configure_input@,$configure_input,;t t
14450 s,@srcdir@,$ac_srcdir,;t t
14451 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14452 s,@top_srcdir@,$ac_top_srcdir,;t t
14453 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14454 s,@builddir@,$ac_builddir,;t t
14455 s,@abs_builddir@,$ac_abs_builddir,;t t
14456 s,@top_builddir@,$ac_top_builddir,;t t
14457 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14458 s,@INSTALL@,$ac_INSTALL,;t t
14459 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14460   rm -f $tmp/stdin
14461   if test x"$ac_file" != x-; then
14462     mv $tmp/out $ac_file
14463   else
14464     cat $tmp/out
14465     rm -f $tmp/out
14466   fi
14467
14468 done
14469 _ACEOF
14470 cat >>$CONFIG_STATUS <<\_ACEOF
14471
14472 #
14473 # CONFIG_HEADER section.
14474 #
14475
14476 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14477 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14478 #
14479 # ac_d sets the value in "#define NAME VALUE" lines.
14480 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14481 ac_dB='[         ].*$,\1#\2'
14482 ac_dC=' '
14483 ac_dD=',;t'
14484 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14485 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14486 ac_uB='$,\1#\2define\3'
14487 ac_uC=' '
14488 ac_uD=',;t'
14489
14490 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14491   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14492   case $ac_file in
14493   - | *:- | *:-:* ) # input from stdin
14494         cat >$tmp/stdin
14495         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14496         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14497   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14498         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14499   * )   ac_file_in=$ac_file.in ;;
14500   esac
14501
14502   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14503 echo "$as_me: creating $ac_file" >&6;}
14504
14505   # First look for the input files in the build tree, otherwise in the
14506   # src tree.
14507   ac_file_inputs=`IFS=:
14508     for f in $ac_file_in; do
14509       case $f in
14510       -) echo $tmp/stdin ;;
14511       [\\/$]*)
14512          # Absolute (can't be DOS-style, as IFS=:)
14513          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14514 echo "$as_me: error: cannot find input file: $f" >&2;}
14515    { (exit 1); exit 1; }; }
14516          # Do quote $f, to prevent DOS paths from being IFS'd.
14517          echo "$f";;
14518       *) # Relative
14519          if test -f "$f"; then
14520            # Build tree
14521            echo "$f"
14522          elif test -f "$srcdir/$f"; then
14523            # Source tree
14524            echo "$srcdir/$f"
14525          else
14526            # /dev/null tree
14527            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14528 echo "$as_me: error: cannot find input file: $f" >&2;}
14529    { (exit 1); exit 1; }; }
14530          fi;;
14531       esac
14532     done` || { (exit 1); exit 1; }
14533   # Remove the trailing spaces.
14534   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14535
14536 _ACEOF
14537
14538 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14539 # `conftest.undefs', that substitutes the proper values into
14540 # config.h.in to produce config.h.  The first handles `#define'
14541 # templates, and the second `#undef' templates.
14542 # And first: Protect against being on the right side of a sed subst in
14543 # config.status.  Protect against being in an unquoted here document
14544 # in config.status.
14545 rm -f conftest.defines conftest.undefs
14546 # Using a here document instead of a string reduces the quoting nightmare.
14547 # Putting comments in sed scripts is not portable.
14548 #
14549 # `end' is used to avoid that the second main sed command (meant for
14550 # 0-ary CPP macros) applies to n-ary macro definitions.
14551 # See the Autoconf documentation for `clear'.
14552 cat >confdef2sed.sed <<\_ACEOF
14553 s/[\\&,]/\\&/g
14554 s,[\\$`],\\&,g
14555 t clear
14556 : clear
14557 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14558 t end
14559 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14560 : end
14561 _ACEOF
14562 # If some macros were called several times there might be several times
14563 # the same #defines, which is useless.  Nevertheless, we may not want to
14564 # sort them, since we want the *last* AC-DEFINE to be honored.
14565 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14566 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14567 rm -f confdef2sed.sed
14568
14569 # This sed command replaces #undef with comments.  This is necessary, for
14570 # example, in the case of _POSIX_SOURCE, which is predefined and required
14571 # on some systems where configure will not decide to define it.
14572 cat >>conftest.undefs <<\_ACEOF
14573 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14574 _ACEOF
14575
14576 # Break up conftest.defines because some shells have a limit on the size
14577 # of here documents, and old seds have small limits too (100 cmds).
14578 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14579 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14580 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14581 echo '  :' >>$CONFIG_STATUS
14582 rm -f conftest.tail
14583 while grep . conftest.defines >/dev/null
14584 do
14585   # Write a limited-size here document to $tmp/defines.sed.
14586   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14587   # Speed up: don't consider the non `#define' lines.
14588   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14589   # Work around the forget-to-reset-the-flag bug.
14590   echo 't clr' >>$CONFIG_STATUS
14591   echo ': clr' >>$CONFIG_STATUS
14592   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14593   echo 'CEOF
14594   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14595   rm -f $tmp/in
14596   mv $tmp/out $tmp/in
14597 ' >>$CONFIG_STATUS
14598   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14599   rm -f conftest.defines
14600   mv conftest.tail conftest.defines
14601 done
14602 rm -f conftest.defines
14603 echo '  fi # grep' >>$CONFIG_STATUS
14604 echo >>$CONFIG_STATUS
14605
14606 # Break up conftest.undefs because some shells have a limit on the size
14607 # of here documents, and old seds have small limits too (100 cmds).
14608 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14609 rm -f conftest.tail
14610 while grep . conftest.undefs >/dev/null
14611 do
14612   # Write a limited-size here document to $tmp/undefs.sed.
14613   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14614   # Speed up: don't consider the non `#undef'
14615   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14616   # Work around the forget-to-reset-the-flag bug.
14617   echo 't clr' >>$CONFIG_STATUS
14618   echo ': clr' >>$CONFIG_STATUS
14619   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14620   echo 'CEOF
14621   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14622   rm -f $tmp/in
14623   mv $tmp/out $tmp/in
14624 ' >>$CONFIG_STATUS
14625   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14626   rm -f conftest.undefs
14627   mv conftest.tail conftest.undefs
14628 done
14629 rm -f conftest.undefs
14630
14631 cat >>$CONFIG_STATUS <<\_ACEOF
14632   # Let's still pretend it is `configure' which instantiates (i.e., don't
14633   # use $as_me), people would be surprised to read:
14634   #    /* config.h.  Generated by config.status.  */
14635   if test x"$ac_file" = x-; then
14636     echo "/* Generated by configure.  */" >$tmp/config.h
14637   else
14638     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14639   fi
14640   cat $tmp/in >>$tmp/config.h
14641   rm -f $tmp/in
14642   if test x"$ac_file" != x-; then
14643     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14644       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14645 echo "$as_me: $ac_file is unchanged" >&6;}
14646     else
14647       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14649          X"$ac_file" : 'X\(//\)[^/]' \| \
14650          X"$ac_file" : 'X\(//\)$' \| \
14651          X"$ac_file" : 'X\(/\)' \| \
14652          .     : '\(.\)' 2>/dev/null ||
14653 echo X"$ac_file" |
14654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14655           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14656           /^X\(\/\/\)$/{ s//\1/; q; }
14657           /^X\(\/\).*/{ s//\1/; q; }
14658           s/.*/./; q'`
14659       { if $as_mkdir_p; then
14660     mkdir -p "$ac_dir"
14661   else
14662     as_dir="$ac_dir"
14663     as_dirs=
14664     while test ! -d "$as_dir"; do
14665       as_dirs="$as_dir $as_dirs"
14666       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14668          X"$as_dir" : 'X\(//\)[^/]' \| \
14669          X"$as_dir" : 'X\(//\)$' \| \
14670          X"$as_dir" : 'X\(/\)' \| \
14671          .     : '\(.\)' 2>/dev/null ||
14672 echo X"$as_dir" |
14673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14674           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14675           /^X\(\/\/\)$/{ s//\1/; q; }
14676           /^X\(\/\).*/{ s//\1/; q; }
14677           s/.*/./; q'`
14678     done
14679     test ! -n "$as_dirs" || mkdir $as_dirs
14680   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14681 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14682    { (exit 1); exit 1; }; }; }
14683
14684       rm -f $ac_file
14685       mv $tmp/config.h $ac_file
14686     fi
14687   else
14688     cat $tmp/config.h
14689     rm -f $tmp/config.h
14690   fi
14691   # Run the commands associated with the file.
14692   case $ac_file in
14693     config.h ) # update the timestamp
14694 echo 'timestamp for config.h' >"./stamp-h1"
14695  ;;
14696   esac
14697 done
14698 _ACEOF
14699 cat >>$CONFIG_STATUS <<\_ACEOF
14700
14701 #
14702 # CONFIG_COMMANDS section.
14703 #
14704 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14705   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14706   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14707   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14708 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14709          X"$ac_dest" : 'X\(//\)[^/]' \| \
14710          X"$ac_dest" : 'X\(//\)$' \| \
14711          X"$ac_dest" : 'X\(/\)' \| \
14712          .     : '\(.\)' 2>/dev/null ||
14713 echo X"$ac_dest" |
14714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14715           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14716           /^X\(\/\/\)$/{ s//\1/; q; }
14717           /^X\(\/\).*/{ s//\1/; q; }
14718           s/.*/./; q'`
14719   { if $as_mkdir_p; then
14720     mkdir -p "$ac_dir"
14721   else
14722     as_dir="$ac_dir"
14723     as_dirs=
14724     while test ! -d "$as_dir"; do
14725       as_dirs="$as_dir $as_dirs"
14726       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14728          X"$as_dir" : 'X\(//\)[^/]' \| \
14729          X"$as_dir" : 'X\(//\)$' \| \
14730          X"$as_dir" : 'X\(/\)' \| \
14731          .     : '\(.\)' 2>/dev/null ||
14732 echo X"$as_dir" |
14733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14734           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14735           /^X\(\/\/\)$/{ s//\1/; q; }
14736           /^X\(\/\).*/{ s//\1/; q; }
14737           s/.*/./; q'`
14738     done
14739     test ! -n "$as_dirs" || mkdir $as_dirs
14740   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14742    { (exit 1); exit 1; }; }; }
14743
14744   ac_builddir=.
14745
14746 if test "$ac_dir" != .; then
14747   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14748   # A "../" for each directory in $ac_dir_suffix.
14749   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14750 else
14751   ac_dir_suffix= ac_top_builddir=
14752 fi
14753
14754 case $srcdir in
14755   .)  # No --srcdir option.  We are building in place.
14756     ac_srcdir=.
14757     if test -z "$ac_top_builddir"; then
14758        ac_top_srcdir=.
14759     else
14760        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14761     fi ;;
14762   [\\/]* | ?:[\\/]* )  # Absolute path.
14763     ac_srcdir=$srcdir$ac_dir_suffix;
14764     ac_top_srcdir=$srcdir ;;
14765   *) # Relative path.
14766     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14767     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14768 esac
14769
14770 # Do not use `cd foo && pwd` to compute absolute paths, because
14771 # the directories may not exist.
14772 case `pwd` in
14773 .) ac_abs_builddir="$ac_dir";;
14774 *)
14775   case "$ac_dir" in
14776   .) ac_abs_builddir=`pwd`;;
14777   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14778   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14779   esac;;
14780 esac
14781 case $ac_abs_builddir in
14782 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14783 *)
14784   case ${ac_top_builddir}. in
14785   .) ac_abs_top_builddir=$ac_abs_builddir;;
14786   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14787   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14788   esac;;
14789 esac
14790 case $ac_abs_builddir in
14791 .) ac_abs_srcdir=$ac_srcdir;;
14792 *)
14793   case $ac_srcdir in
14794   .) ac_abs_srcdir=$ac_abs_builddir;;
14795   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14796   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14797   esac;;
14798 esac
14799 case $ac_abs_builddir in
14800 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14801 *)
14802   case $ac_top_srcdir in
14803   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14804   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14805   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14806   esac;;
14807 esac
14808
14809
14810   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14811 echo "$as_me: executing $ac_dest commands" >&6;}
14812   case $ac_dest in
14813     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14814   # Strip MF so we end up with the name of the file.
14815   mf=`echo "$mf" | sed -e 's/:.*$//'`
14816   # Check whether this is an Automake generated Makefile or not.
14817   # We used to match only the files named `Makefile.in', but
14818   # some people rename them; so instead we look at the file content.
14819   # Grep'ing the first line is not enough: some people post-process
14820   # each Makefile.in and add a new line on top of each file to say so.
14821   # So let's grep whole file.
14822   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14823     dirpart=`(dirname "$mf") 2>/dev/null ||
14824 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14825          X"$mf" : 'X\(//\)[^/]' \| \
14826          X"$mf" : 'X\(//\)$' \| \
14827          X"$mf" : 'X\(/\)' \| \
14828          .     : '\(.\)' 2>/dev/null ||
14829 echo X"$mf" |
14830     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14831           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14832           /^X\(\/\/\)$/{ s//\1/; q; }
14833           /^X\(\/\).*/{ s//\1/; q; }
14834           s/.*/./; q'`
14835   else
14836     continue
14837   fi
14838   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14839   # Extract the definition of DEP_FILES from the Makefile without
14840   # running `make'.
14841   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14842   test -z "$DEPDIR" && continue
14843   # When using ansi2knr, U may be empty or an underscore; expand it
14844   U=`sed -n -e '/^U = / s///p' < "$mf"`
14845   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14846   # We invoke sed twice because it is the simplest approach to
14847   # changing $(DEPDIR) to its actual value in the expansion.
14848   for file in `sed -n -e '
14849     /^DEP_FILES = .*\\\\$/ {
14850       s/^DEP_FILES = //
14851       :loop
14852         s/\\\\$//
14853         p
14854         n
14855         /\\\\$/ b loop
14856       p
14857     }
14858     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14859        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14860     # Make sure the directory exists.
14861     test -f "$dirpart/$file" && continue
14862     fdir=`(dirname "$file") 2>/dev/null ||
14863 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14864          X"$file" : 'X\(//\)[^/]' \| \
14865          X"$file" : 'X\(//\)$' \| \
14866          X"$file" : 'X\(/\)' \| \
14867          .     : '\(.\)' 2>/dev/null ||
14868 echo X"$file" |
14869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14871           /^X\(\/\/\)$/{ s//\1/; q; }
14872           /^X\(\/\).*/{ s//\1/; q; }
14873           s/.*/./; q'`
14874     { if $as_mkdir_p; then
14875     mkdir -p $dirpart/$fdir
14876   else
14877     as_dir=$dirpart/$fdir
14878     as_dirs=
14879     while test ! -d "$as_dir"; do
14880       as_dirs="$as_dir $as_dirs"
14881       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14883          X"$as_dir" : 'X\(//\)[^/]' \| \
14884          X"$as_dir" : 'X\(//\)$' \| \
14885          X"$as_dir" : 'X\(/\)' \| \
14886          .     : '\(.\)' 2>/dev/null ||
14887 echo X"$as_dir" |
14888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14889           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14890           /^X\(\/\/\)$/{ s//\1/; q; }
14891           /^X\(\/\).*/{ s//\1/; q; }
14892           s/.*/./; q'`
14893     done
14894     test ! -n "$as_dirs" || mkdir $as_dirs
14895   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14896 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14897    { (exit 1); exit 1; }; }; }
14898
14899     # echo "creating $dirpart/$file"
14900     echo '# dummy' > "$dirpart/$file"
14901   done
14902 done
14903  ;;
14904     default-1 )
14905     for ac_file in $CONFIG_FILES; do
14906       # Support "outfile[:infile[:infile...]]"
14907       case "$ac_file" in
14908         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14909       esac
14910       # PO directories have a Makefile.in generated from Makefile.in.in.
14911       case "$ac_file" in */Makefile.in)
14912         # Adjust a relative srcdir.
14913         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14914         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14915         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14916         # In autoconf-2.13 it is called $ac_given_srcdir.
14917         # In autoconf-2.50 it is called $srcdir.
14918         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14919         case "$ac_given_srcdir" in
14920           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14921           /*) top_srcdir="$ac_given_srcdir" ;;
14922           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14923         esac
14924         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14925           rm -f "$ac_dir/POTFILES"
14926           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14927           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14928           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14929           # on $ac_dir but don't depend on user-specified configuration
14930           # parameters.
14931           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14932             # The LINGUAS file contains the set of available languages.
14933             if test -n "$ALL_LINGUAS"; then
14934               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14935             fi
14936             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14937             # Hide the ALL_LINGUAS assigment from automake.
14938             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14939           fi
14940           case "$ac_given_srcdir" in
14941             .) srcdirpre= ;;
14942             *) srcdirpre='$(srcdir)/' ;;
14943           esac
14944           POFILES=
14945           GMOFILES=
14946           UPDATEPOFILES=
14947           DUMMYPOFILES=
14948           for lang in $ALL_LINGUAS; do
14949             POFILES="$POFILES $srcdirpre$lang.po"
14950             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14951             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14952             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14953           done
14954           # CATALOGS depends on both $ac_dir and the user's LINGUAS
14955           # environment variable.
14956           INST_LINGUAS=
14957           if test -n "$ALL_LINGUAS"; then
14958             for presentlang in $ALL_LINGUAS; do
14959               useit=no
14960               if test "%UNSET%" != "$LINGUAS"; then
14961                 desiredlanguages="$LINGUAS"
14962               else
14963                 desiredlanguages="$ALL_LINGUAS"
14964               fi
14965               for desiredlang in $desiredlanguages; do
14966                 # Use the presentlang catalog if desiredlang is
14967                 #   a. equal to presentlang, or
14968                 #   b. a variant of presentlang (because in this case,
14969                 #      presentlang can be used as a fallback for messages
14970                 #      which are not translated in the desiredlang catalog).
14971                 case "$desiredlang" in
14972                   "$presentlang"*) useit=yes;;
14973                 esac
14974               done
14975               if test $useit = yes; then
14976                 INST_LINGUAS="$INST_LINGUAS $presentlang"
14977               fi
14978             done
14979           fi
14980           CATALOGS=
14981           if test -n "$INST_LINGUAS"; then
14982             for lang in $INST_LINGUAS; do
14983               CATALOGS="$CATALOGS $lang.gmo"
14984             done
14985           fi
14986           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14987           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" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14988           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14989             if test -f "$f"; then
14990               case "$f" in
14991                 *.orig | *.bak | *~) ;;
14992                 *) cat "$f" >> "$ac_dir/Makefile" ;;
14993               esac
14994             fi
14995           done
14996         fi
14997         ;;
14998       esac
14999     done ;;
15000   esac
15001 done
15002 _ACEOF
15003
15004 cat >>$CONFIG_STATUS <<\_ACEOF
15005
15006 { (exit 0); exit 0; }
15007 _ACEOF
15008 chmod +x $CONFIG_STATUS
15009 ac_clean_files=$ac_clean_files_save
15010
15011
15012 # configure is writing to config.log, and then calls config.status.
15013 # config.status does its own redirection, appending to config.log.
15014 # Unfortunately, on DOS this fails, as config.log is still kept open
15015 # by configure, so config.status won't be able to write to it; its
15016 # output is simply discarded.  So we exec the FD to /dev/null,
15017 # effectively closing config.log, so it can be properly (re)opened and
15018 # appended to by config.status.  When coming back to configure, we
15019 # need to make the FD available again.
15020 if test "$no_create" != yes; then
15021   ac_cs_success=:
15022   ac_config_status_args=
15023   test "$silent" = yes &&
15024     ac_config_status_args="$ac_config_status_args --quiet"
15025   exec 5>/dev/null
15026   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15027   exec 5>>config.log
15028   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15029   # would make configure fail if this is the last instruction.
15030   $ac_cs_success || { (exit 1); exit 1; }
15031 fi
15032