ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
Revision: 1.32
Committed: Wed Jan 18 13:17:55 2006 UTC (18 years, 3 months ago) by pcg
Branch: MAIN
Changes since 1.31: +97 -43 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 pcg 1.14 # Generated by GNU Autoconf 2.59.
4 pcg 1.1 #
5 pcg 1.11 # Copyright (C) 2003 Free Software Foundation, Inc.
6 pcg 1.1 # 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 pcg 1.11 DUALCASE=1; export DUALCASE # for MKS sh
23 pcg 1.1
24     # Support unset when possible.
25 pcg 1.11 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 pcg 1.1 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 pcg 1.11 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 pcg 1.1 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 pcg 1.11 test -d ./-p && rmdir ./-p
222 pcg 1.1 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 pcg 1.11 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229 pcg 1.1
230     # Sed expression to map a string onto a valid variable name.
231 pcg 1.11 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232 pcg 1.1
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     # Name of the host.
245     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246     # so uname gets run too.
247     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248    
249     exec 6>&1
250    
251     #
252     # Initializations.
253     #
254     ac_default_prefix=/usr/local
255     ac_config_libobj_dir=.
256     cross_compiling=no
257     subdirs=
258     MFLAGS=
259     MAKEFLAGS=
260     SHELL=${CONFIG_SHELL-/bin/sh}
261    
262     # Maximum number of lines to put in a shell here document.
263     # This variable seems obsolete. It should probably be removed, and
264     # only ac_max_sed_lines should be used.
265     : ${ac_max_here_lines=38}
266    
267     # Identity of this package.
268     PACKAGE_NAME=
269     PACKAGE_TARNAME=
270     PACKAGE_VERSION=
271     PACKAGE_STRING=
272     PACKAGE_BUGREPORT=
273    
274 pcg 1.26 ac_unique_file="src/gvpe.C"
275 pcg 1.1 # Factoring default headers for most tests.
276     ac_includes_default="\
277     #include <stdio.h>
278     #if HAVE_SYS_TYPES_H
279     # include <sys/types.h>
280     #endif
281     #if HAVE_SYS_STAT_H
282     # include <sys/stat.h>
283     #endif
284     #if STDC_HEADERS
285     # include <stdlib.h>
286     # include <stddef.h>
287     #else
288     # if HAVE_STDLIB_H
289     # include <stdlib.h>
290     # endif
291     #endif
292     #if HAVE_STRING_H
293     # if !STDC_HEADERS && HAVE_MEMORY_H
294     # include <memory.h>
295     # endif
296     # include <string.h>
297     #endif
298     #if HAVE_STRINGS_H
299     # include <strings.h>
300     #endif
301     #if HAVE_INTTYPES_H
302     # include <inttypes.h>
303     #else
304     # if HAVE_STDINT_H
305     # include <stdint.h>
306     # endif
307     #endif
308     #if HAVE_UNISTD_H
309     # include <unistd.h>
310     #endif"
311    
312 pcg 1.32 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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S RANLIB ac_ct_RANLIB IFTYPE IFSUBTYPE CXXCPP ALLOCA LINUX_IF_TUN_H HAVE_TUNTAP LDFLAGS_DAEMON ROHC_TRUE ROHC_FALSE INCLUDES LIBOBJS LTLIBOBJS'
313 pcg 1.1 ac_subst_files=''
314    
315     # Initialize some variables set by options.
316     ac_init_help=
317     ac_init_version=false
318     # The variables have the same names as the options, with
319     # dashes changed to underlines.
320     cache_file=/dev/null
321     exec_prefix=NONE
322     no_create=
323     no_recursion=
324     prefix=NONE
325     program_prefix=NONE
326     program_suffix=NONE
327     program_transform_name=s,x,x,
328     silent=
329     site=
330     srcdir=
331     verbose=
332     x_includes=NONE
333     x_libraries=NONE
334    
335     # Installation directory options.
336     # These are left unexpanded so users can "make install exec_prefix=/foo"
337     # and all the variables that are supposed to be based on exec_prefix
338     # by default will actually change.
339     # Use braces instead of parens because sh, perl, etc. also accept them.
340     bindir='${exec_prefix}/bin'
341     sbindir='${exec_prefix}/sbin'
342     libexecdir='${exec_prefix}/libexec'
343     datadir='${prefix}/share'
344     sysconfdir='${prefix}/etc'
345     sharedstatedir='${prefix}/com'
346     localstatedir='${prefix}/var'
347     libdir='${exec_prefix}/lib'
348     includedir='${prefix}/include'
349     oldincludedir='/usr/include'
350     infodir='${prefix}/info'
351     mandir='${prefix}/man'
352    
353     ac_prev=
354     for ac_option
355     do
356     # If the previous option needs an argument, assign it.
357     if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361     fi
362    
363     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364    
365     # Accept the important Cygnus configure options, so we can diagnose typos.
366    
367     case $ac_option in
368    
369     -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373    
374     -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378    
379     -cache-file | --cache-file | --cache-fil | --cache-fi \
380     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385    
386     --config-cache | -C)
387     cache_file=config.cache ;;
388    
389     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392     | --da=*)
393     datadir=$ac_optarg ;;
394    
395     -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400     { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403    
404     -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409     { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413     *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416    
417     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419     | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423     | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425    
426     -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429    
430     -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436    
437     -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439     -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441    
442     -includedir | --includedir | --includedi | --included | --include \
443     | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446     | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448    
449     -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453    
454     -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456     -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458    
459     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460     | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463     | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465    
466     -localstatedir | --localstatedir | --localstatedi | --localstated \
467     | --localstate | --localstat | --localsta | --localst \
468     | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474    
475     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479    
480     -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483    
484     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485     | --no-cr | --no-c | -n)
486     no_create=yes ;;
487    
488     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491    
492     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494     | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500    
501     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505    
506     -program-prefix | --program-prefix | --program-prefi | --program-pref \
507     | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509     -program-prefix=* | --program-prefix=* | --program-prefi=* \
510     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512    
513     -program-suffix | --program-suffix | --program-suffi | --program-suff \
514     | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516     -program-suffix=* | --program-suffix=* | --program-suffi=* \
517     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519    
520     -program-transform-name | --program-transform-name \
521     | --program-transform-nam | --program-transform-na \
522     | --program-transform-n | --program-transform- \
523     | --program-transform | --program-transfor \
524     | --program-transfo | --program-transf \
525     | --program-trans | --program-tran \
526     | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528     -program-transform-name=* | --program-transform-name=* \
529     | --program-transform-nam=* | --program-transform-na=* \
530     | --program-transform-n=* | --program-transform-=* \
531     | --program-transform=* | --program-transfor=* \
532     | --program-transfo=* | --program-transf=* \
533     | --program-trans=* | --program-tran=* \
534     | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536    
537     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538     | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540    
541     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544     | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546    
547     -sharedstatedir | --sharedstatedir | --sharedstatedi \
548     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549     | --sharedst | --shareds | --shared | --share | --shar \
550     | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555     | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557    
558     -site | --site | --sit)
559     ac_prev=site ;;
560     -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562    
563     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567    
568     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569     | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574    
575     -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579    
580     -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582    
583     -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585    
586     -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590     { echo "$as_me: error: invalid package name: $ac_package" >&2
591     { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595     *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598    
599     -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603     { echo "$as_me: error: invalid package name: $ac_package" >&2
604     { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607    
608     --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611    
612     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613     | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618    
619     -x-libraries | --x-libraries | --x-librarie | --x-librari \
620     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625    
626     -*) { echo "$as_me: error: unrecognized option: $ac_option
627     Try \`$0 --help' for more information." >&2
628     { (exit 1); exit 1; }; }
629     ;;
630    
631     *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636     { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640    
641     *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648    
649     esac
650     done
651    
652     if test -n "$ac_prev"; then
653     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654     { echo "$as_me: error: missing argument to $ac_option" >&2
655     { (exit 1); exit 1; }; }
656     fi
657    
658     # Be sure to have absolute paths.
659     for ac_var in exec_prefix prefix
660     do
661     eval ac_val=$`echo $ac_var`
662     case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665     { (exit 1); exit 1; }; };;
666     esac
667     done
668    
669     # Be sure to have absolute paths.
670     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 pcg 1.11 localstatedir libdir includedir oldincludedir infodir mandir
672 pcg 1.1 do
673     eval ac_val=$`echo $ac_var`
674     case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677     { (exit 1); exit 1; }; };;
678     esac
679     done
680    
681     # There might be people who depend on the old broken behavior: `$host'
682     # used to hold the argument of --host etc.
683     # FIXME: To remove some day.
684     build=$build_alias
685     host=$host_alias
686     target=$target_alias
687    
688     # FIXME: To remove some day.
689     if test "x$host_alias" != x; then
690     if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694     elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696     fi
697     fi
698    
699     ac_tool_prefix=
700     test -n "$host_alias" && ac_tool_prefix=$host_alias-
701    
702     test "$silent" = yes && exec 6>/dev/null
703    
704    
705     # Find the source files, if location was not specified.
706     if test -z "$srcdir"; then
707     ac_srcdir_defaulted=yes
708     # Try the directory containing this script, then its parent.
709     ac_confdir=`(dirname "$0") 2>/dev/null ||
710     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 pcg 1.11 X"$0" : 'X\(//\)[^/]' \| \
712     X"$0" : 'X\(//\)$' \| \
713     X"$0" : 'X\(/\)' \| \
714     . : '\(.\)' 2>/dev/null ||
715 pcg 1.1 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718     /^X\(\/\/\)$/{ s//\1/; q; }
719     /^X\(\/\).*/{ s//\1/; q; }
720     s/.*/./; q'`
721     srcdir=$ac_confdir
722     if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724     fi
725     else
726     ac_srcdir_defaulted=no
727     fi
728     if test ! -r $srcdir/$ac_unique_file; then
729     if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731     { (exit 1); exit 1; }; }
732     else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734     { (exit 1); exit 1; }; }
735     fi
736     fi
737     (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739     { (exit 1); exit 1; }; }
740     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741     ac_env_build_alias_set=${build_alias+set}
742     ac_env_build_alias_value=$build_alias
743     ac_cv_env_build_alias_set=${build_alias+set}
744     ac_cv_env_build_alias_value=$build_alias
745     ac_env_host_alias_set=${host_alias+set}
746     ac_env_host_alias_value=$host_alias
747     ac_cv_env_host_alias_set=${host_alias+set}
748     ac_cv_env_host_alias_value=$host_alias
749     ac_env_target_alias_set=${target_alias+set}
750     ac_env_target_alias_value=$target_alias
751     ac_cv_env_target_alias_set=${target_alias+set}
752     ac_cv_env_target_alias_value=$target_alias
753     ac_env_CC_set=${CC+set}
754     ac_env_CC_value=$CC
755     ac_cv_env_CC_set=${CC+set}
756     ac_cv_env_CC_value=$CC
757     ac_env_CFLAGS_set=${CFLAGS+set}
758     ac_env_CFLAGS_value=$CFLAGS
759     ac_cv_env_CFLAGS_set=${CFLAGS+set}
760     ac_cv_env_CFLAGS_value=$CFLAGS
761     ac_env_LDFLAGS_set=${LDFLAGS+set}
762     ac_env_LDFLAGS_value=$LDFLAGS
763     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764     ac_cv_env_LDFLAGS_value=$LDFLAGS
765     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766     ac_env_CPPFLAGS_value=$CPPFLAGS
767     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769     ac_env_CPP_set=${CPP+set}
770     ac_env_CPP_value=$CPP
771     ac_cv_env_CPP_set=${CPP+set}
772     ac_cv_env_CPP_value=$CPP
773     ac_env_CXX_set=${CXX+set}
774     ac_env_CXX_value=$CXX
775     ac_cv_env_CXX_set=${CXX+set}
776     ac_cv_env_CXX_value=$CXX
777     ac_env_CXXFLAGS_set=${CXXFLAGS+set}
778     ac_env_CXXFLAGS_value=$CXXFLAGS
779     ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
780     ac_cv_env_CXXFLAGS_value=$CXXFLAGS
781     ac_env_CXXCPP_set=${CXXCPP+set}
782     ac_env_CXXCPP_value=$CXXCPP
783     ac_cv_env_CXXCPP_set=${CXXCPP+set}
784     ac_cv_env_CXXCPP_value=$CXXCPP
785    
786     #
787     # Report the --help message.
788     #
789     if test "$ac_init_help" = "long"; then
790     # Omit some internal or obsolete options to make the list less imposing.
791     # This message is too long to be a string in the A/UX 3.1 sh.
792     cat <<_ACEOF
793     \`configure' configures this package to adapt to many kinds of systems.
794    
795     Usage: $0 [OPTION]... [VAR=VALUE]...
796    
797     To assign environment variables (e.g., CC, CFLAGS...), specify them as
798     VAR=VALUE. See below for descriptions of some of the useful variables.
799    
800     Defaults for the options are specified in brackets.
801    
802     Configuration:
803     -h, --help display this help and exit
804     --help=short display options specific to this package
805     --help=recursive display the short help of all the included packages
806     -V, --version display version information and exit
807     -q, --quiet, --silent do not print \`checking...' messages
808     --cache-file=FILE cache test results in FILE [disabled]
809     -C, --config-cache alias for \`--cache-file=config.cache'
810     -n, --no-create do not create output files
811     --srcdir=DIR find the sources in DIR [configure dir or \`..']
812    
813     _ACEOF
814    
815     cat <<_ACEOF
816     Installation directories:
817     --prefix=PREFIX install architecture-independent files in PREFIX
818 pcg 1.11 [$ac_default_prefix]
819 pcg 1.1 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 pcg 1.11 [PREFIX]
821 pcg 1.1
822     By default, \`make install' will install all the files in
823     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825     for instance \`--prefix=\$HOME'.
826    
827     For better control, use the options below.
828    
829     Fine tuning of the installation directories:
830     --bindir=DIR user executables [EPREFIX/bin]
831     --sbindir=DIR system admin executables [EPREFIX/sbin]
832     --libexecdir=DIR program executables [EPREFIX/libexec]
833     --datadir=DIR read-only architecture-independent data [PREFIX/share]
834     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837     --libdir=DIR object code libraries [EPREFIX/lib]
838     --includedir=DIR C header files [PREFIX/include]
839     --oldincludedir=DIR C header files for non-gcc [/usr/include]
840     --infodir=DIR info documentation [PREFIX/info]
841     --mandir=DIR man documentation [PREFIX/man]
842     _ACEOF
843    
844     cat <<\_ACEOF
845    
846     Program names:
847     --program-prefix=PREFIX prepend PREFIX to installed program names
848     --program-suffix=SUFFIX append SUFFIX to installed program names
849     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
850    
851     System types:
852     --build=BUILD configure for building on BUILD [guessed]
853     --host=HOST cross-compile to build programs to run on HOST [BUILD]
854     --target=TARGET configure for building compilers for TARGET [HOST]
855     _ACEOF
856     fi
857    
858     if test -n "$ac_init_help"; then
859    
860     cat <<\_ACEOF
861    
862     Optional Features:
863     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
864     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
865 pcg 1.32 --enable-maintainer-mode enable make rules and dependencies not useful
866     (and sometimes confusing) to the casual installer
867     --disable-dependency-tracking speeds up one-time build
868     --enable-dependency-tracking do not reject slow dependency extractors
869 pcg 1.1 --disable-rpath do not hardcode runtime library paths
870     --disable-nls do not use Native Language Support
871     --enable-iftype=TYPE/SUBTYPE
872 pcg 1.14 Use kernel/net device interface TYPE/SUBTYPE.
873 pcg 1.28 Working combinations are (see doc/gvpe.osdep.5.pod):
874     "native/linux" "tincd/linux" "tincd/netbsd"
875     "tincd/freebsd" "tincd/openbsd" "native/darwin"
876 pcg 1.14 "tincd/darwin" "native/cygwin"; Untested
877 pcg 1.29 combinations are: "tincd/bsd" "tincd/solaris"
878     "tincd/mingw" "tincd/raw_socket" "tincd/uml_socket";
879     Broken combinations are: "tincd/cygwin"; The default
880     is to autodetect.
881 pcg 1.21 --enable-static-daemon enable statically linked daemon.
882 pcg 1.14 --enable-rohc enable robust header compression (rfc3095).
883     --enable-icmp enable icmp protocol support (default disabled).
884     --enable-tcp enable tcp protocol support (default disabled).
885 pcg 1.17 --enable-dns enable dns tunnel protocol support (DOES NOT WORK).
886 pcg 1.14 --enable-http-proxy enable http proxy connect support (default
887     disabled).
888 pcg 1.1 --enable-hmac-length=BYTES
889 pcg 1.21 use a hmac of length BYTES bytes (default 12).
890     Allowed values are 4, 8, 12, 16.
891 pcg 1.1 --enable-rand-length=BYTES
892 pcg 1.21 use BYTES bytes of extra randomness (default 8).
893     Allowed values are 0, 4, 8.
894 pcg 1.14 --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500).
895 pcg 1.1 Use 9100 for jumbogram support.
896 pcg 1.14 --disable-compression Disable compression support.
897 pcg 1.30 --enable-cipher Select the symmetric cipher (default "aes-128").
898     Must be one of "bf" (blowfish), "aes-128"
899     (rijndael), "aes-192" or "aes-256".
900     --enable-digest Select the digets algorithm to use (default
901     "ripemd160"). Must be one of "sha1", "ripemd160",
902     "md5" or "md4" (insecure).
903 pcg 1.1
904     Optional Packages:
905     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
906     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
907     --with-gnu-ld assume the C compiler uses GNU ld default=no
908     --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
909     --without-libiconv-prefix don't search for libiconv in includedir and libdir
910     --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
911     --without-libintl-prefix don't search for libintl in includedir and libdir
912     --with-kernel=dir give the directory with kernel sources
913     (default: /usr/src/linux)
914     --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl)
915     --with-openssl-lib=DIR OpenSSL library directory
916    
917     Some influential environment variables:
918 pcg 1.14 CC C compiler command
919     CFLAGS C compiler flags
920     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
921     nonstandard directory <lib dir>
922     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
923     headers in a nonstandard directory <include dir>
924     CPP C preprocessor
925     CXX C++ compiler command
926     CXXFLAGS C++ compiler flags
927     CXXCPP C++ preprocessor
928 pcg 1.1
929     Use these variables to override the choices made by `configure' or to help
930     it to find libraries and programs with nonstandard names/locations.
931    
932     _ACEOF
933     fi
934    
935     if test "$ac_init_help" = "recursive"; then
936     # If there are subdirs, report their specific --help.
937     ac_popdir=`pwd`
938     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
939     test -d $ac_dir || continue
940     ac_builddir=.
941    
942     if test "$ac_dir" != .; then
943     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
944     # A "../" for each directory in $ac_dir_suffix.
945     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
946     else
947     ac_dir_suffix= ac_top_builddir=
948     fi
949    
950     case $srcdir in
951     .) # No --srcdir option. We are building in place.
952     ac_srcdir=.
953     if test -z "$ac_top_builddir"; then
954     ac_top_srcdir=.
955     else
956     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
957     fi ;;
958     [\\/]* | ?:[\\/]* ) # Absolute path.
959     ac_srcdir=$srcdir$ac_dir_suffix;
960     ac_top_srcdir=$srcdir ;;
961     *) # Relative path.
962     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
963     ac_top_srcdir=$ac_top_builddir$srcdir ;;
964     esac
965 pcg 1.11
966     # Do not use `cd foo && pwd` to compute absolute paths, because
967     # the directories may not exist.
968     case `pwd` in
969     .) ac_abs_builddir="$ac_dir";;
970     *)
971     case "$ac_dir" in
972     .) ac_abs_builddir=`pwd`;;
973     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
974     *) ac_abs_builddir=`pwd`/"$ac_dir";;
975     esac;;
976     esac
977     case $ac_abs_builddir in
978     .) ac_abs_top_builddir=${ac_top_builddir}.;;
979     *)
980     case ${ac_top_builddir}. in
981     .) ac_abs_top_builddir=$ac_abs_builddir;;
982     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
983     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
984     esac;;
985     esac
986     case $ac_abs_builddir in
987     .) ac_abs_srcdir=$ac_srcdir;;
988     *)
989     case $ac_srcdir in
990     .) ac_abs_srcdir=$ac_abs_builddir;;
991     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
992     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
993     esac;;
994     esac
995     case $ac_abs_builddir in
996     .) ac_abs_top_srcdir=$ac_top_srcdir;;
997     *)
998     case $ac_top_srcdir in
999     .) ac_abs_top_srcdir=$ac_abs_builddir;;
1000     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1001     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1002     esac;;
1003     esac
1004 pcg 1.1
1005     cd $ac_dir
1006     # Check for guested configure; otherwise get Cygnus style configure.
1007     if test -f $ac_srcdir/configure.gnu; then
1008     echo
1009     $SHELL $ac_srcdir/configure.gnu --help=recursive
1010     elif test -f $ac_srcdir/configure; then
1011     echo
1012     $SHELL $ac_srcdir/configure --help=recursive
1013     elif test -f $ac_srcdir/configure.ac ||
1014 pcg 1.11 test -f $ac_srcdir/configure.in; then
1015 pcg 1.1 echo
1016     $ac_configure --help
1017     else
1018     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1019     fi
1020     cd "$ac_popdir"
1021     done
1022     fi
1023    
1024     test -n "$ac_init_help" && exit 0
1025     if $ac_init_version; then
1026     cat <<\_ACEOF
1027    
1028 pcg 1.11 Copyright (C) 2003 Free Software Foundation, Inc.
1029 pcg 1.1 This configure script is free software; the Free Software Foundation
1030     gives unlimited permission to copy, distribute and modify it.
1031     _ACEOF
1032     exit 0
1033     fi
1034     exec 5>config.log
1035     cat >&5 <<_ACEOF
1036     This file contains any messages produced by compilers while
1037     running configure, to aid debugging if configure makes a mistake.
1038    
1039     It was created by $as_me, which was
1040 pcg 1.14 generated by GNU Autoconf 2.59. Invocation command line was
1041 pcg 1.1
1042     $ $0 $@
1043    
1044     _ACEOF
1045     {
1046     cat <<_ASUNAME
1047     ## --------- ##
1048     ## Platform. ##
1049     ## --------- ##
1050    
1051     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1052     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1053     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1054     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1055     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1056    
1057     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1058     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1059    
1060     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1061     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1062     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1063     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1064     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1065     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1066     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1067    
1068     _ASUNAME
1069    
1070     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1071     for as_dir in $PATH
1072     do
1073     IFS=$as_save_IFS
1074     test -z "$as_dir" && as_dir=.
1075     echo "PATH: $as_dir"
1076     done
1077    
1078     } >&5
1079    
1080     cat >&5 <<_ACEOF
1081    
1082    
1083     ## ----------- ##
1084     ## Core tests. ##
1085     ## ----------- ##
1086    
1087     _ACEOF
1088    
1089    
1090     # Keep a trace of the command line.
1091     # Strip out --no-create and --no-recursion so they do not pile up.
1092     # Strip out --silent because we don't want to record it for future runs.
1093     # Also quote any args containing shell meta-characters.
1094     # Make two passes to allow for proper duplicate-argument suppression.
1095     ac_configure_args=
1096     ac_configure_args0=
1097     ac_configure_args1=
1098     ac_sep=
1099     ac_must_keep_next=false
1100     for ac_pass in 1 2
1101     do
1102     for ac_arg
1103     do
1104     case $ac_arg in
1105     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1106     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107     | -silent | --silent | --silen | --sile | --sil)
1108     continue ;;
1109     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1110     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1111     esac
1112     case $ac_pass in
1113     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1114     2)
1115     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1116     if test $ac_must_keep_next = true; then
1117 pcg 1.11 ac_must_keep_next=false # Got value, back to normal.
1118 pcg 1.1 else
1119 pcg 1.11 case $ac_arg in
1120     *=* | --config-cache | -C | -disable-* | --disable-* \
1121     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1122     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1123     | -with-* | --with-* | -without-* | --without-* | --x)
1124     case "$ac_configure_args0 " in
1125     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1126     esac
1127     ;;
1128     -* ) ac_must_keep_next=true ;;
1129     esac
1130 pcg 1.1 fi
1131     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1132     # Get rid of the leading space.
1133     ac_sep=" "
1134     ;;
1135     esac
1136     done
1137     done
1138     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1139     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1140    
1141     # When interrupted or exit'd, cleanup temporary files, and complete
1142     # config.log. We remove comments because anyway the quotes in there
1143     # would cause problems or look ugly.
1144     # WARNING: Be sure not to use single quotes in there, as some shells,
1145     # such as our DU 5.0 friend, will then `close' the trap.
1146     trap 'exit_status=$?
1147     # Save into config.log some information that might help in debugging.
1148     {
1149     echo
1150    
1151     cat <<\_ASBOX
1152     ## ---------------- ##
1153     ## Cache variables. ##
1154     ## ---------------- ##
1155     _ASBOX
1156     echo
1157     # The following way of writing the cache mishandles newlines in values,
1158     {
1159     (set) 2>&1 |
1160     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1161     *ac_space=\ *)
1162     sed -n \
1163 pcg 1.11 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1164     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1165 pcg 1.1 ;;
1166     *)
1167     sed -n \
1168 pcg 1.11 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1169 pcg 1.1 ;;
1170     esac;
1171     }
1172     echo
1173    
1174     cat <<\_ASBOX
1175     ## ----------------- ##
1176     ## Output variables. ##
1177     ## ----------------- ##
1178     _ASBOX
1179     echo
1180     for ac_var in $ac_subst_vars
1181     do
1182     eval ac_val=$`echo $ac_var`
1183     echo "$ac_var='"'"'$ac_val'"'"'"
1184     done | sort
1185     echo
1186    
1187     if test -n "$ac_subst_files"; then
1188     cat <<\_ASBOX
1189     ## ------------- ##
1190     ## Output files. ##
1191     ## ------------- ##
1192     _ASBOX
1193     echo
1194     for ac_var in $ac_subst_files
1195     do
1196     eval ac_val=$`echo $ac_var`
1197 pcg 1.11 echo "$ac_var='"'"'$ac_val'"'"'"
1198 pcg 1.1 done | sort
1199     echo
1200     fi
1201    
1202     if test -s confdefs.h; then
1203     cat <<\_ASBOX
1204     ## ----------- ##
1205     ## confdefs.h. ##
1206     ## ----------- ##
1207     _ASBOX
1208     echo
1209     sed "/^$/d" confdefs.h | sort
1210     echo
1211     fi
1212     test "$ac_signal" != 0 &&
1213     echo "$as_me: caught signal $ac_signal"
1214     echo "$as_me: exit $exit_status"
1215     } >&5
1216     rm -f core *.core &&
1217     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1218     exit $exit_status
1219     ' 0
1220     for ac_signal in 1 2 13 15; do
1221     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1222     done
1223     ac_signal=0
1224    
1225     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1226     rm -rf conftest* confdefs.h
1227     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1228     echo >confdefs.h
1229    
1230     # Predefined preprocessor variables.
1231    
1232     cat >>confdefs.h <<_ACEOF
1233     #define PACKAGE_NAME "$PACKAGE_NAME"
1234     _ACEOF
1235    
1236    
1237     cat >>confdefs.h <<_ACEOF
1238     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1239     _ACEOF
1240    
1241    
1242     cat >>confdefs.h <<_ACEOF
1243     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1244     _ACEOF
1245    
1246    
1247     cat >>confdefs.h <<_ACEOF
1248     #define PACKAGE_STRING "$PACKAGE_STRING"
1249     _ACEOF
1250    
1251    
1252     cat >>confdefs.h <<_ACEOF
1253     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1254     _ACEOF
1255    
1256    
1257     # Let the site file select an alternate cache file if it wants to.
1258     # Prefer explicitly selected file to automatically selected ones.
1259     if test -z "$CONFIG_SITE"; then
1260     if test "x$prefix" != xNONE; then
1261     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1262     else
1263     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1264     fi
1265     fi
1266     for ac_site_file in $CONFIG_SITE; do
1267     if test -r "$ac_site_file"; then
1268     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1269     echo "$as_me: loading site script $ac_site_file" >&6;}
1270     sed 's/^/| /' "$ac_site_file" >&5
1271     . "$ac_site_file"
1272     fi
1273     done
1274    
1275     if test -r "$cache_file"; then
1276     # Some versions of bash will fail to source /dev/null (special
1277     # files actually), so we avoid doing that.
1278     if test -f "$cache_file"; then
1279     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1280     echo "$as_me: loading cache $cache_file" >&6;}
1281     case $cache_file in
1282     [\\/]* | ?:[\\/]* ) . $cache_file;;
1283     *) . ./$cache_file;;
1284     esac
1285     fi
1286     else
1287     { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1288     echo "$as_me: creating cache $cache_file" >&6;}
1289     >$cache_file
1290     fi
1291    
1292     # Check that the precious variables saved in the cache have kept the same
1293     # value.
1294     ac_cache_corrupted=false
1295     for ac_var in `(set) 2>&1 |
1296 pcg 1.11 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1297 pcg 1.1 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1298     eval ac_new_set=\$ac_env_${ac_var}_set
1299     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1300     eval ac_new_val="\$ac_env_${ac_var}_value"
1301     case $ac_old_set,$ac_new_set in
1302     set,)
1303     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1304     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1305     ac_cache_corrupted=: ;;
1306     ,set)
1307     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1308     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1309     ac_cache_corrupted=: ;;
1310     ,);;
1311     *)
1312     if test "x$ac_old_val" != "x$ac_new_val"; then
1313 pcg 1.11 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1314 pcg 1.1 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1315 pcg 1.11 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1316 pcg 1.1 echo "$as_me: former value: $ac_old_val" >&2;}
1317 pcg 1.11 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1318 pcg 1.1 echo "$as_me: current value: $ac_new_val" >&2;}
1319 pcg 1.11 ac_cache_corrupted=:
1320 pcg 1.1 fi;;
1321     esac
1322     # Pass precious variables to config.status.
1323     if test "$ac_new_set" = set; then
1324     case $ac_new_val in
1325     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1327     *) ac_arg=$ac_var=$ac_new_val ;;
1328     esac
1329     case " $ac_configure_args " in
1330     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1331     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1332     esac
1333     fi
1334     done
1335     if $ac_cache_corrupted; then
1336     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1337     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1338     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1339     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1340     { (exit 1); exit 1; }; }
1341     fi
1342    
1343     ac_ext=c
1344     ac_cpp='$CPP $CPPFLAGS'
1345     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1346     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1347     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1348    
1349    
1350    
1351    
1352    
1353    
1354    
1355    
1356    
1357    
1358    
1359    
1360    
1361    
1362    
1363    
1364    
1365    
1366    
1367 pcg 1.19
1368 pcg 1.1 ac_aux_dir=
1369     for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1370     if test -f $ac_dir/install-sh; then
1371     ac_aux_dir=$ac_dir
1372     ac_install_sh="$ac_aux_dir/install-sh -c"
1373     break
1374     elif test -f $ac_dir/install.sh; then
1375     ac_aux_dir=$ac_dir
1376     ac_install_sh="$ac_aux_dir/install.sh -c"
1377     break
1378     elif test -f $ac_dir/shtool; then
1379     ac_aux_dir=$ac_dir
1380     ac_install_sh="$ac_aux_dir/shtool install -c"
1381     break
1382     fi
1383     done
1384     if test -z "$ac_aux_dir"; then
1385     { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1386     echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1387     { (exit 1); exit 1; }; }
1388     fi
1389     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392    
1393     # Make sure we can run config.sub.
1394     $ac_config_sub sun4 >/dev/null 2>&1 ||
1395     { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1396     echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1397     { (exit 1); exit 1; }; }
1398    
1399     echo "$as_me:$LINENO: checking build system type" >&5
1400     echo $ECHO_N "checking build system type... $ECHO_C" >&6
1401     if test "${ac_cv_build+set}" = set; then
1402     echo $ECHO_N "(cached) $ECHO_C" >&6
1403     else
1404     ac_cv_build_alias=$build_alias
1405     test -z "$ac_cv_build_alias" &&
1406     ac_cv_build_alias=`$ac_config_guess`
1407     test -z "$ac_cv_build_alias" &&
1408     { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1409     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1410     { (exit 1); exit 1; }; }
1411     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1412     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1413     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1414     { (exit 1); exit 1; }; }
1415    
1416     fi
1417     echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1418     echo "${ECHO_T}$ac_cv_build" >&6
1419     build=$ac_cv_build
1420     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423    
1424    
1425     echo "$as_me:$LINENO: checking host system type" >&5
1426     echo $ECHO_N "checking host system type... $ECHO_C" >&6
1427     if test "${ac_cv_host+set}" = set; then
1428     echo $ECHO_N "(cached) $ECHO_C" >&6
1429     else
1430     ac_cv_host_alias=$host_alias
1431     test -z "$ac_cv_host_alias" &&
1432     ac_cv_host_alias=$ac_cv_build_alias
1433     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1434     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1435     echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1436     { (exit 1); exit 1; }; }
1437    
1438     fi
1439     echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1440     echo "${ECHO_T}$ac_cv_host" >&6
1441     host=$ac_cv_host
1442     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445    
1446    
1447     echo "$as_me:$LINENO: checking target system type" >&5
1448     echo $ECHO_N "checking target system type... $ECHO_C" >&6
1449     if test "${ac_cv_target+set}" = set; then
1450     echo $ECHO_N "(cached) $ECHO_C" >&6
1451     else
1452     ac_cv_target_alias=$target_alias
1453     test "x$ac_cv_target_alias" = "x" &&
1454     ac_cv_target_alias=$ac_cv_host_alias
1455     ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1456     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1457     echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1458     { (exit 1); exit 1; }; }
1459    
1460     fi
1461     echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1462     echo "${ECHO_T}$ac_cv_target" >&6
1463     target=$ac_cv_target
1464     target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465     target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466     target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467    
1468    
1469     # The aliases save the names the user supplied, while $host etc.
1470     # will get canonicalized.
1471     test -n "$target_alias" &&
1472     test "$program_prefix$program_suffix$program_transform_name" = \
1473     NONENONEs,x,x, &&
1474     program_prefix=${target_alias}-
1475 pcg 1.32 am__api_version="1.9"
1476 pcg 1.1 # Find a good install program. We prefer a C program (faster),
1477     # so one script is as good as another. But avoid the broken or
1478     # incompatible versions:
1479     # SysV /etc/install, /usr/sbin/install
1480     # SunOS /usr/etc/install
1481     # IRIX /sbin/install
1482     # AIX /bin/install
1483     # AmigaOS /C/install, which installs bootblocks on floppy discs
1484     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1485     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1486     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1487 pcg 1.11 # OS/2's system install, which has a completely different semantic
1488 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
1489     echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1490     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1491     if test -z "$INSTALL"; then
1492     if test "${ac_cv_path_install+set}" = set; then
1493     echo $ECHO_N "(cached) $ECHO_C" >&6
1494     else
1495     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496     for as_dir in $PATH
1497     do
1498     IFS=$as_save_IFS
1499     test -z "$as_dir" && as_dir=.
1500     # Account for people who put trailing slashes in PATH elements.
1501     case $as_dir/ in
1502     ./ | .// | /cC/* | \
1503     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1504 pcg 1.11 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1505 pcg 1.1 /usr/ucb/* ) ;;
1506     *)
1507     # OSF1 and SCO ODT 3.0 have their own names for install.
1508     # Don't use installbsd from OSF since it installs stuff as root
1509     # by default.
1510     for ac_prog in ginstall scoinst install; do
1511     for ac_exec_ext in '' $ac_executable_extensions; do
1512 pcg 1.11 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1513     if test $ac_prog = install &&
1514     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1515     # AIX install. It has an incompatible calling convention.
1516     :
1517     elif test $ac_prog = install &&
1518     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1519     # program-specific install script used by HP pwplus--don't use.
1520     :
1521     else
1522     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1523     break 3
1524     fi
1525     fi
1526 pcg 1.1 done
1527     done
1528     ;;
1529     esac
1530     done
1531    
1532    
1533     fi
1534     if test "${ac_cv_path_install+set}" = set; then
1535     INSTALL=$ac_cv_path_install
1536     else
1537     # As a last resort, use the slow shell script. We don't cache a
1538     # path for INSTALL within a source directory, because that will
1539     # break other packages using the cache if that directory is
1540     # removed, or if the path is relative.
1541     INSTALL=$ac_install_sh
1542     fi
1543     fi
1544     echo "$as_me:$LINENO: result: $INSTALL" >&5
1545     echo "${ECHO_T}$INSTALL" >&6
1546    
1547     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1548     # It thinks the first close brace ends the variable substitution.
1549     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1550    
1551     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1552    
1553     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1554    
1555     echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1556     echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1557     # Just in case
1558     sleep 1
1559     echo timestamp > conftest.file
1560     # Do `set' in a subshell so we don't clobber the current shell's
1561     # arguments. Must try -L first in case configure is actually a
1562     # symlink; some systems play weird games with the mod time of symlinks
1563     # (eg FreeBSD returns the mod time of the symlink's containing
1564     # directory).
1565     if (
1566     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1567     if test "$*" = "X"; then
1568     # -L didn't work.
1569     set X `ls -t $srcdir/configure conftest.file`
1570     fi
1571     rm -f conftest.file
1572     if test "$*" != "X $srcdir/configure conftest.file" \
1573     && test "$*" != "X conftest.file $srcdir/configure"; then
1574    
1575     # If neither matched, then we have a broken ls. This can happen
1576     # if, for instance, CONFIG_SHELL is bash and it inherits a
1577     # broken ls alias from the environment. This has actually
1578     # happened. Such a system could not be considered "sane".
1579     { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1580     alias in your environment" >&5
1581     echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1582     alias in your environment" >&2;}
1583     { (exit 1); exit 1; }; }
1584     fi
1585    
1586     test "$2" = conftest.file
1587     )
1588     then
1589     # Ok.
1590     :
1591     else
1592     { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1593     Check your system clock" >&5
1594     echo "$as_me: error: newly created file is older than distributed files!
1595     Check your system clock" >&2;}
1596     { (exit 1); exit 1; }; }
1597     fi
1598     echo "$as_me:$LINENO: result: yes" >&5
1599     echo "${ECHO_T}yes" >&6
1600     test "$program_prefix" != NONE &&
1601     program_transform_name="s,^,$program_prefix,;$program_transform_name"
1602     # Use a double $ so make ignores it.
1603     test "$program_suffix" != NONE &&
1604     program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1605     # Double any \ or $. echo might interpret backslashes.
1606     # By default was `s,x,x', remove it if useless.
1607     cat <<\_ACEOF >conftest.sed
1608     s/[\\$]/&&/g;s/;s,x,x,$//
1609     _ACEOF
1610     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1611     rm conftest.sed
1612    
1613     # expand $ac_aux_dir to an absolute path
1614     am_aux_dir=`cd $ac_aux_dir && pwd`
1615    
1616     test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1617     # Use eval to expand $SHELL
1618     if eval "$MISSING --run true"; then
1619     am_missing_run="$MISSING --run "
1620     else
1621     am_missing_run=
1622     { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1623     echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1624     fi
1625    
1626 pcg 1.32 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1627     # We used to keeping the `.' as first argument, in order to
1628     # allow $(mkdir_p) to be used without argument. As in
1629     # $(mkdir_p) $(somedir)
1630     # where $(somedir) is conditionally defined. However this is wrong
1631     # for two reasons:
1632     # 1. if the package is installed by a user who cannot write `.'
1633     # make install will fail,
1634     # 2. the above comment should most certainly read
1635     # $(mkdir_p) $(DESTDIR)$(somedir)
1636     # so it does not work when $(somedir) is undefined and
1637     # $(DESTDIR) is not.
1638     # To support the latter case, we have to write
1639     # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1640     # so the `.' trick is pointless.
1641     mkdir_p='mkdir -p --'
1642     else
1643     # On NextStep and OpenStep, the `mkdir' command does not
1644     # recognize any option. It will interpret all options as
1645     # directories to create, and then abort because `.' already
1646     # exists.
1647     for d in ./-p ./--version;
1648     do
1649     test -d $d && rmdir $d
1650     done
1651     # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1652     if test -f "$ac_aux_dir/mkinstalldirs"; then
1653     mkdir_p='$(mkinstalldirs)'
1654     else
1655     mkdir_p='$(install_sh) -d'
1656     fi
1657     fi
1658    
1659 pcg 1.1 for ac_prog in gawk mawk nawk awk
1660     do
1661     # Extract the first word of "$ac_prog", so it can be a program name with args.
1662     set dummy $ac_prog; ac_word=$2
1663     echo "$as_me:$LINENO: checking for $ac_word" >&5
1664     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665     if test "${ac_cv_prog_AWK+set}" = set; then
1666     echo $ECHO_N "(cached) $ECHO_C" >&6
1667     else
1668     if test -n "$AWK"; then
1669     ac_cv_prog_AWK="$AWK" # Let the user override the test.
1670     else
1671     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672     for as_dir in $PATH
1673     do
1674     IFS=$as_save_IFS
1675     test -z "$as_dir" && as_dir=.
1676     for ac_exec_ext in '' $ac_executable_extensions; do
1677     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678     ac_cv_prog_AWK="$ac_prog"
1679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680     break 2
1681     fi
1682     done
1683     done
1684    
1685     fi
1686     fi
1687     AWK=$ac_cv_prog_AWK
1688     if test -n "$AWK"; then
1689     echo "$as_me:$LINENO: result: $AWK" >&5
1690     echo "${ECHO_T}$AWK" >&6
1691     else
1692     echo "$as_me:$LINENO: result: no" >&5
1693     echo "${ECHO_T}no" >&6
1694     fi
1695    
1696     test -n "$AWK" && break
1697     done
1698    
1699     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1700     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1701 pcg 1.11 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1702 pcg 1.1 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1703     echo $ECHO_N "(cached) $ECHO_C" >&6
1704     else
1705     cat >conftest.make <<\_ACEOF
1706     all:
1707     @echo 'ac_maketemp="$(MAKE)"'
1708     _ACEOF
1709     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1710     eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1711     if test -n "$ac_maketemp"; then
1712     eval ac_cv_prog_make_${ac_make}_set=yes
1713     else
1714     eval ac_cv_prog_make_${ac_make}_set=no
1715     fi
1716     rm -f conftest.make
1717     fi
1718     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1719     echo "$as_me:$LINENO: result: yes" >&5
1720     echo "${ECHO_T}yes" >&6
1721     SET_MAKE=
1722     else
1723     echo "$as_me:$LINENO: result: no" >&5
1724     echo "${ECHO_T}no" >&6
1725     SET_MAKE="MAKE=${MAKE-make}"
1726     fi
1727    
1728     rm -rf .tst 2>/dev/null
1729     mkdir .tst 2>/dev/null
1730     if test -d .tst; then
1731     am__leading_dot=.
1732     else
1733     am__leading_dot=_
1734     fi
1735     rmdir .tst 2>/dev/null
1736    
1737 pcg 1.32 # test to see if srcdir already configured
1738 pcg 1.1 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1739     test -f $srcdir/config.status; then
1740     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1741     echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1742     { (exit 1); exit 1; }; }
1743     fi
1744    
1745     # test whether we have cygpath
1746     if test -z "$CYGPATH_W"; then
1747     if (cygpath --version) >/dev/null 2>/dev/null; then
1748     CYGPATH_W='cygpath -w'
1749     else
1750     CYGPATH_W=echo
1751     fi
1752     fi
1753    
1754    
1755     # Define the identity of the package.
1756 pcg 1.22 PACKAGE=gvpe
1757 pcg 1.31 VERSION=2.0
1758 pcg 1.1
1759    
1760     cat >>confdefs.h <<_ACEOF
1761     #define PACKAGE "$PACKAGE"
1762     _ACEOF
1763    
1764    
1765     cat >>confdefs.h <<_ACEOF
1766     #define VERSION "$VERSION"
1767     _ACEOF
1768    
1769     # Some tools Automake needs.
1770    
1771     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1772    
1773    
1774     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1775    
1776    
1777     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1778    
1779    
1780     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1781    
1782    
1783     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1784    
1785     install_sh=${install_sh-"$am_aux_dir/install-sh"}
1786    
1787     # Installed binaries are usually stripped using `strip' when the user
1788     # run `make install-strip'. However `strip' might not be the right
1789     # tool to use in cross-compilation environments, therefore Automake
1790     # will honor the `STRIP' environment variable to overrule this program.
1791     if test "$cross_compiling" != no; then
1792     if test -n "$ac_tool_prefix"; then
1793     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1794     set dummy ${ac_tool_prefix}strip; ac_word=$2
1795     echo "$as_me:$LINENO: checking for $ac_word" >&5
1796     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797     if test "${ac_cv_prog_STRIP+set}" = set; then
1798     echo $ECHO_N "(cached) $ECHO_C" >&6
1799     else
1800     if test -n "$STRIP"; then
1801     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1802     else
1803     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804     for as_dir in $PATH
1805     do
1806     IFS=$as_save_IFS
1807     test -z "$as_dir" && as_dir=.
1808     for ac_exec_ext in '' $ac_executable_extensions; do
1809     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812     break 2
1813     fi
1814     done
1815     done
1816    
1817     fi
1818     fi
1819     STRIP=$ac_cv_prog_STRIP
1820     if test -n "$STRIP"; then
1821     echo "$as_me:$LINENO: result: $STRIP" >&5
1822     echo "${ECHO_T}$STRIP" >&6
1823     else
1824     echo "$as_me:$LINENO: result: no" >&5
1825     echo "${ECHO_T}no" >&6
1826     fi
1827    
1828     fi
1829     if test -z "$ac_cv_prog_STRIP"; then
1830     ac_ct_STRIP=$STRIP
1831     # Extract the first word of "strip", so it can be a program name with args.
1832     set dummy strip; ac_word=$2
1833     echo "$as_me:$LINENO: checking for $ac_word" >&5
1834     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835     if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1836     echo $ECHO_N "(cached) $ECHO_C" >&6
1837     else
1838     if test -n "$ac_ct_STRIP"; then
1839     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1840     else
1841     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842     for as_dir in $PATH
1843     do
1844     IFS=$as_save_IFS
1845     test -z "$as_dir" && as_dir=.
1846     for ac_exec_ext in '' $ac_executable_extensions; do
1847     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848     ac_cv_prog_ac_ct_STRIP="strip"
1849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850     break 2
1851     fi
1852     done
1853     done
1854    
1855     test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1856     fi
1857     fi
1858     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1859     if test -n "$ac_ct_STRIP"; then
1860     echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1861     echo "${ECHO_T}$ac_ct_STRIP" >&6
1862     else
1863     echo "$as_me:$LINENO: result: no" >&5
1864     echo "${ECHO_T}no" >&6
1865     fi
1866    
1867     STRIP=$ac_ct_STRIP
1868     else
1869     STRIP="$ac_cv_prog_STRIP"
1870     fi
1871    
1872     fi
1873     INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1874    
1875     # We need awk for the "check" target. The system "awk" is bad on
1876     # some platforms.
1877 pcg 1.32 # Always define AMTAR for backward compatibility.
1878    
1879     AMTAR=${AMTAR-"${am_missing_run}tar"}
1880    
1881     am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1882    
1883    
1884 pcg 1.1
1885    
1886    
1887     ac_config_headers="$ac_config_headers config.h"
1888    
1889     echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1890     echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1891     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1892     if test "${enable_maintainer_mode+set}" = set; then
1893     enableval="$enable_maintainer_mode"
1894     USE_MAINTAINER_MODE=$enableval
1895     else
1896     USE_MAINTAINER_MODE=no
1897     fi;
1898     echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1899     echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1900    
1901    
1902     if test $USE_MAINTAINER_MODE = yes; then
1903     MAINTAINER_MODE_TRUE=
1904     MAINTAINER_MODE_FALSE='#'
1905     else
1906     MAINTAINER_MODE_TRUE='#'
1907     MAINTAINER_MODE_FALSE=
1908     fi
1909    
1910     MAINT=$MAINTAINER_MODE_TRUE
1911    
1912    
1913    
1914    
1915    
1916    
1917    
1918    
1919    
1920    
1921     test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
1922    
1923     for k in m4 ; do ACLOCAL="$ACLOCAL -I $k" ; done
1924    
1925    
1926    
1927     MKINSTALLDIRS=
1928     if test -n "$ac_aux_dir"; then
1929     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1930     fi
1931     if test -z "$MKINSTALLDIRS"; then
1932     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1933     fi
1934    
1935    
1936    
1937    
1938    
1939     # Extract the first word of "msgfmt", so it can be a program name with args.
1940     set dummy msgfmt; ac_word=$2
1941     echo "$as_me:$LINENO: checking for $ac_word" >&5
1942     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1943     if test "${ac_cv_path_MSGFMT+set}" = set; then
1944     echo $ECHO_N "(cached) $ECHO_C" >&6
1945     else
1946     case "$MSGFMT" in
1947     /*)
1948     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1949     ;;
1950     *)
1951     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1952     for ac_dir in $PATH; do
1953     test -z "$ac_dir" && ac_dir=.
1954     if test -f $ac_dir/$ac_word; then
1955     if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
1956     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1957     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
1958     break
1959     fi
1960     fi
1961     done
1962     IFS="$ac_save_ifs"
1963     test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
1964     ;;
1965     esac
1966     fi
1967     MSGFMT="$ac_cv_path_MSGFMT"
1968     if test "$MSGFMT" != ":"; then
1969     echo "$as_me:$LINENO: result: $MSGFMT" >&5
1970     echo "${ECHO_T}$MSGFMT" >&6
1971     else
1972     echo "$as_me:$LINENO: result: no" >&5
1973     echo "${ECHO_T}no" >&6
1974     fi
1975    
1976     # Extract the first word of "gmsgfmt", so it can be a program name with args.
1977     set dummy gmsgfmt; ac_word=$2
1978     echo "$as_me:$LINENO: checking for $ac_word" >&5
1979     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980     if test "${ac_cv_path_GMSGFMT+set}" = set; then
1981     echo $ECHO_N "(cached) $ECHO_C" >&6
1982     else
1983     case $GMSGFMT in
1984     [\\/]* | ?:[\\/]*)
1985     ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1986     ;;
1987     *)
1988     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989     for as_dir in $PATH
1990     do
1991     IFS=$as_save_IFS
1992     test -z "$as_dir" && as_dir=.
1993     for ac_exec_ext in '' $ac_executable_extensions; do
1994     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998     fi
1999     done
2000     done
2001    
2002     test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2003     ;;
2004     esac
2005     fi
2006     GMSGFMT=$ac_cv_path_GMSGFMT
2007    
2008     if test -n "$GMSGFMT"; then
2009     echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2010     echo "${ECHO_T}$GMSGFMT" >&6
2011     else
2012     echo "$as_me:$LINENO: result: no" >&5
2013     echo "${ECHO_T}no" >&6
2014     fi
2015    
2016    
2017     # Extract the first word of "xgettext", so it can be a program name with args.
2018     set dummy xgettext; ac_word=$2
2019     echo "$as_me:$LINENO: checking for $ac_word" >&5
2020     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021     if test "${ac_cv_path_XGETTEXT+set}" = set; then
2022     echo $ECHO_N "(cached) $ECHO_C" >&6
2023     else
2024     case "$XGETTEXT" in
2025     /*)
2026     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2027     ;;
2028     *)
2029     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2030     for ac_dir in $PATH; do
2031     test -z "$ac_dir" && ac_dir=.
2032     if test -f $ac_dir/$ac_word; then
2033     if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2034     (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
2035     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2036     break
2037     fi
2038     fi
2039     done
2040     IFS="$ac_save_ifs"
2041     test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2042     ;;
2043     esac
2044     fi
2045     XGETTEXT="$ac_cv_path_XGETTEXT"
2046     if test "$XGETTEXT" != ":"; then
2047     echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2048     echo "${ECHO_T}$XGETTEXT" >&6
2049     else
2050     echo "$as_me:$LINENO: result: no" >&5
2051     echo "${ECHO_T}no" >&6
2052     fi
2053    
2054     rm -f messages.po
2055    
2056     # Extract the first word of "msgmerge", so it can be a program name with args.
2057     set dummy msgmerge; ac_word=$2
2058     echo "$as_me:$LINENO: checking for $ac_word" >&5
2059     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060     if test "${ac_cv_path_MSGMERGE+set}" = set; then
2061     echo $ECHO_N "(cached) $ECHO_C" >&6
2062     else
2063     case "$MSGMERGE" in
2064     /*)
2065     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2066     ;;
2067     *)
2068     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2069     for ac_dir in $PATH; do
2070     test -z "$ac_dir" && ac_dir=.
2071     if test -f $ac_dir/$ac_word; then
2072     if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2073     ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
2074     break
2075     fi
2076     fi
2077     done
2078     IFS="$ac_save_ifs"
2079     test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2080     ;;
2081     esac
2082     fi
2083     MSGMERGE="$ac_cv_path_MSGMERGE"
2084     if test "$MSGMERGE" != ":"; then
2085     echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2086     echo "${ECHO_T}$MSGMERGE" >&6
2087     else
2088     echo "$as_me:$LINENO: result: no" >&5
2089     echo "${ECHO_T}no" >&6
2090     fi
2091    
2092    
2093     if test "$GMSGFMT" != ":"; then
2094     if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2095     (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2096     : ;
2097     else
2098     GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2099     echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2100     echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2101     GMSGFMT=":"
2102     fi
2103     fi
2104    
2105     if test "$XGETTEXT" != ":"; then
2106     if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2107     (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2108     : ;
2109     else
2110     echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2111     echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2112     XGETTEXT=":"
2113     fi
2114     rm -f messages.po
2115     fi
2116    
2117     ac_config_commands="$ac_config_commands default-1"
2118    
2119    
2120    
2121     if test "X$prefix" = "XNONE"; then
2122     acl_final_prefix="$ac_default_prefix"
2123     else
2124     acl_final_prefix="$prefix"
2125     fi
2126     if test "X$exec_prefix" = "XNONE"; then
2127     acl_final_exec_prefix='${prefix}'
2128     else
2129     acl_final_exec_prefix="$exec_prefix"
2130     fi
2131     acl_save_prefix="$prefix"
2132     prefix="$acl_final_prefix"
2133     eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2134     prefix="$acl_save_prefix"
2135    
2136     DEPDIR="${am__leading_dot}deps"
2137    
2138     ac_config_commands="$ac_config_commands depfiles"
2139    
2140    
2141     am_make=${MAKE-make}
2142     cat > confinc << 'END'
2143     am__doit:
2144     @echo done
2145     .PHONY: am__doit
2146     END
2147     # If we don't find an include directive, just comment out the code.
2148     echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2149     echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2150     am__include="#"
2151     am__quote=
2152     _am_result=none
2153     # First try GNU make style include.
2154     echo "include confinc" > confmf
2155     # We grep out `Entering directory' and `Leaving directory'
2156     # messages which can occur if `w' ends up in MAKEFLAGS.
2157     # In particular we don't look at `^make:' because GNU make might
2158     # be invoked under some other name (usually "gmake"), in which
2159     # case it prints its new name instead of `make'.
2160     if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2161     am__include=include
2162     am__quote=
2163     _am_result=GNU
2164     fi
2165     # Now try BSD make style include.
2166     if test "$am__include" = "#"; then
2167     echo '.include "confinc"' > confmf
2168     if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2169     am__include=.include
2170     am__quote="\""
2171     _am_result=BSD
2172     fi
2173     fi
2174    
2175    
2176     echo "$as_me:$LINENO: result: $_am_result" >&5
2177     echo "${ECHO_T}$_am_result" >&6
2178     rm -f confinc confmf
2179    
2180     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2181     if test "${enable_dependency_tracking+set}" = set; then
2182     enableval="$enable_dependency_tracking"
2183    
2184     fi;
2185     if test "x$enable_dependency_tracking" != xno; then
2186     am_depcomp="$ac_aux_dir/depcomp"
2187     AMDEPBACKSLASH='\'
2188     fi
2189    
2190    
2191     if test "x$enable_dependency_tracking" != xno; then
2192     AMDEP_TRUE=
2193     AMDEP_FALSE='#'
2194     else
2195     AMDEP_TRUE='#'
2196     AMDEP_FALSE=
2197     fi
2198    
2199    
2200    
2201     ac_ext=c
2202     ac_cpp='$CPP $CPPFLAGS'
2203     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206     if test -n "$ac_tool_prefix"; then
2207     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2208     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2209     echo "$as_me:$LINENO: checking for $ac_word" >&5
2210     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2211     if test "${ac_cv_prog_CC+set}" = set; then
2212     echo $ECHO_N "(cached) $ECHO_C" >&6
2213     else
2214     if test -n "$CC"; then
2215     ac_cv_prog_CC="$CC" # Let the user override the test.
2216     else
2217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218     for as_dir in $PATH
2219     do
2220     IFS=$as_save_IFS
2221     test -z "$as_dir" && as_dir=.
2222     for ac_exec_ext in '' $ac_executable_extensions; do
2223     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226     break 2
2227     fi
2228     done
2229     done
2230    
2231     fi
2232     fi
2233     CC=$ac_cv_prog_CC
2234     if test -n "$CC"; then
2235     echo "$as_me:$LINENO: result: $CC" >&5
2236     echo "${ECHO_T}$CC" >&6
2237     else
2238     echo "$as_me:$LINENO: result: no" >&5
2239     echo "${ECHO_T}no" >&6
2240     fi
2241    
2242     fi
2243     if test -z "$ac_cv_prog_CC"; then
2244     ac_ct_CC=$CC
2245     # Extract the first word of "gcc", so it can be a program name with args.
2246     set dummy gcc; ac_word=$2
2247     echo "$as_me:$LINENO: checking for $ac_word" >&5
2248     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2249     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2250     echo $ECHO_N "(cached) $ECHO_C" >&6
2251     else
2252     if test -n "$ac_ct_CC"; then
2253     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2254     else
2255     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256     for as_dir in $PATH
2257     do
2258     IFS=$as_save_IFS
2259     test -z "$as_dir" && as_dir=.
2260     for ac_exec_ext in '' $ac_executable_extensions; do
2261     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2262     ac_cv_prog_ac_ct_CC="gcc"
2263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264     break 2
2265     fi
2266     done
2267     done
2268    
2269     fi
2270     fi
2271     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2272     if test -n "$ac_ct_CC"; then
2273     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2274     echo "${ECHO_T}$ac_ct_CC" >&6
2275     else
2276     echo "$as_me:$LINENO: result: no" >&5
2277     echo "${ECHO_T}no" >&6
2278     fi
2279    
2280     CC=$ac_ct_CC
2281     else
2282     CC="$ac_cv_prog_CC"
2283     fi
2284    
2285     if test -z "$CC"; then
2286     if test -n "$ac_tool_prefix"; then
2287     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2288     set dummy ${ac_tool_prefix}cc; ac_word=$2
2289     echo "$as_me:$LINENO: checking for $ac_word" >&5
2290     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291     if test "${ac_cv_prog_CC+set}" = set; then
2292     echo $ECHO_N "(cached) $ECHO_C" >&6
2293     else
2294     if test -n "$CC"; then
2295     ac_cv_prog_CC="$CC" # Let the user override the test.
2296     else
2297     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298     for as_dir in $PATH
2299     do
2300     IFS=$as_save_IFS
2301     test -z "$as_dir" && as_dir=.
2302     for ac_exec_ext in '' $ac_executable_extensions; do
2303     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304     ac_cv_prog_CC="${ac_tool_prefix}cc"
2305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307     fi
2308     done
2309     done
2310    
2311     fi
2312     fi
2313     CC=$ac_cv_prog_CC
2314     if test -n "$CC"; then
2315     echo "$as_me:$LINENO: result: $CC" >&5
2316     echo "${ECHO_T}$CC" >&6
2317     else
2318     echo "$as_me:$LINENO: result: no" >&5
2319     echo "${ECHO_T}no" >&6
2320     fi
2321    
2322     fi
2323     if test -z "$ac_cv_prog_CC"; then
2324     ac_ct_CC=$CC
2325     # Extract the first word of "cc", so it can be a program name with args.
2326     set dummy cc; ac_word=$2
2327     echo "$as_me:$LINENO: checking for $ac_word" >&5
2328     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2330     echo $ECHO_N "(cached) $ECHO_C" >&6
2331     else
2332     if test -n "$ac_ct_CC"; then
2333     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334     else
2335     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336     for as_dir in $PATH
2337     do
2338     IFS=$as_save_IFS
2339     test -z "$as_dir" && as_dir=.
2340     for ac_exec_ext in '' $ac_executable_extensions; do
2341     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342     ac_cv_prog_ac_ct_CC="cc"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345     fi
2346     done
2347     done
2348    
2349     fi
2350     fi
2351     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352     if test -n "$ac_ct_CC"; then
2353     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354     echo "${ECHO_T}$ac_ct_CC" >&6
2355     else
2356     echo "$as_me:$LINENO: result: no" >&5
2357     echo "${ECHO_T}no" >&6
2358     fi
2359    
2360     CC=$ac_ct_CC
2361     else
2362     CC="$ac_cv_prog_CC"
2363     fi
2364    
2365     fi
2366     if test -z "$CC"; then
2367     # Extract the first word of "cc", so it can be a program name with args.
2368     set dummy cc; ac_word=$2
2369     echo "$as_me:$LINENO: checking for $ac_word" >&5
2370     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2371     if test "${ac_cv_prog_CC+set}" = set; then
2372     echo $ECHO_N "(cached) $ECHO_C" >&6
2373     else
2374     if test -n "$CC"; then
2375     ac_cv_prog_CC="$CC" # Let the user override the test.
2376     else
2377     ac_prog_rejected=no
2378     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379     for as_dir in $PATH
2380     do
2381     IFS=$as_save_IFS
2382     test -z "$as_dir" && as_dir=.
2383     for ac_exec_ext in '' $ac_executable_extensions; do
2384     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2385     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2386     ac_prog_rejected=yes
2387     continue
2388     fi
2389     ac_cv_prog_CC="cc"
2390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391     break 2
2392     fi
2393     done
2394     done
2395    
2396     if test $ac_prog_rejected = yes; then
2397     # We found a bogon in the path, so make sure we never use it.
2398     set dummy $ac_cv_prog_CC
2399     shift
2400     if test $# != 0; then
2401     # We chose a different compiler from the bogus one.
2402     # However, it has the same basename, so the bogon will be chosen
2403     # first if we set CC to just the basename; use the full file name.
2404     shift
2405     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2406     fi
2407     fi
2408     fi
2409     fi
2410     CC=$ac_cv_prog_CC
2411     if test -n "$CC"; then
2412     echo "$as_me:$LINENO: result: $CC" >&5
2413     echo "${ECHO_T}$CC" >&6
2414     else
2415     echo "$as_me:$LINENO: result: no" >&5
2416     echo "${ECHO_T}no" >&6
2417     fi
2418    
2419     fi
2420     if test -z "$CC"; then
2421     if test -n "$ac_tool_prefix"; then
2422     for ac_prog in cl
2423     do
2424     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2425     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2426     echo "$as_me:$LINENO: checking for $ac_word" >&5
2427     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428     if test "${ac_cv_prog_CC+set}" = set; then
2429     echo $ECHO_N "(cached) $ECHO_C" >&6
2430     else
2431     if test -n "$CC"; then
2432     ac_cv_prog_CC="$CC" # Let the user override the test.
2433     else
2434     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435     for as_dir in $PATH
2436     do
2437     IFS=$as_save_IFS
2438     test -z "$as_dir" && as_dir=.
2439     for ac_exec_ext in '' $ac_executable_extensions; do
2440     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444     fi
2445     done
2446     done
2447    
2448     fi
2449     fi
2450     CC=$ac_cv_prog_CC
2451     if test -n "$CC"; then
2452     echo "$as_me:$LINENO: result: $CC" >&5
2453     echo "${ECHO_T}$CC" >&6
2454     else
2455     echo "$as_me:$LINENO: result: no" >&5
2456     echo "${ECHO_T}no" >&6
2457     fi
2458    
2459     test -n "$CC" && break
2460     done
2461     fi
2462     if test -z "$CC"; then
2463     ac_ct_CC=$CC
2464     for ac_prog in cl
2465     do
2466     # Extract the first word of "$ac_prog", so it can be a program name with args.
2467     set dummy $ac_prog; ac_word=$2
2468     echo "$as_me:$LINENO: checking for $ac_word" >&5
2469     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2470     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2471     echo $ECHO_N "(cached) $ECHO_C" >&6
2472     else
2473     if test -n "$ac_ct_CC"; then
2474     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2475     else
2476     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477     for as_dir in $PATH
2478     do
2479     IFS=$as_save_IFS
2480     test -z "$as_dir" && as_dir=.
2481     for ac_exec_ext in '' $ac_executable_extensions; do
2482     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483     ac_cv_prog_ac_ct_CC="$ac_prog"
2484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485     break 2
2486     fi
2487     done
2488     done
2489    
2490     fi
2491     fi
2492     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2493     if test -n "$ac_ct_CC"; then
2494     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2495     echo "${ECHO_T}$ac_ct_CC" >&6
2496     else
2497     echo "$as_me:$LINENO: result: no" >&5
2498     echo "${ECHO_T}no" >&6
2499     fi
2500    
2501     test -n "$ac_ct_CC" && break
2502     done
2503    
2504     CC=$ac_ct_CC
2505     fi
2506    
2507     fi
2508    
2509    
2510     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2511     See \`config.log' for more details." >&5
2512     echo "$as_me: error: no acceptable C compiler found in \$PATH
2513     See \`config.log' for more details." >&2;}
2514     { (exit 1); exit 1; }; }
2515    
2516     # Provide some information about the compiler.
2517     echo "$as_me:$LINENO:" \
2518     "checking for C compiler version" >&5
2519     ac_compiler=`set X $ac_compile; echo $2`
2520     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2521     (eval $ac_compiler --version </dev/null >&5) 2>&5
2522     ac_status=$?
2523     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524     (exit $ac_status); }
2525     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2526     (eval $ac_compiler -v </dev/null >&5) 2>&5
2527     ac_status=$?
2528     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529     (exit $ac_status); }
2530     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2531     (eval $ac_compiler -V </dev/null >&5) 2>&5
2532     ac_status=$?
2533     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534     (exit $ac_status); }
2535    
2536     cat >conftest.$ac_ext <<_ACEOF
2537     /* confdefs.h. */
2538     _ACEOF
2539     cat confdefs.h >>conftest.$ac_ext
2540     cat >>conftest.$ac_ext <<_ACEOF
2541     /* end confdefs.h. */
2542    
2543     int
2544     main ()
2545     {
2546    
2547     ;
2548     return 0;
2549     }
2550     _ACEOF
2551     ac_clean_files_save=$ac_clean_files
2552     ac_clean_files="$ac_clean_files a.out a.exe b.out"
2553     # Try to create an executable without -o first, disregard a.out.
2554     # It will help us diagnose broken compilers, and finding out an intuition
2555     # of exeext.
2556 pcg 1.11 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2557     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2558 pcg 1.1 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2559     if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2560     (eval $ac_link_default) 2>&5
2561     ac_status=$?
2562     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563     (exit $ac_status); }; then
2564     # Find the output, starting from the most likely. This scheme is
2565     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2566     # resort.
2567    
2568     # Be careful to initialize this variable, since it used to be cached.
2569     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2570     ac_cv_exeext=
2571     # b.out is created by i960 compilers.
2572     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2573     do
2574     test -f "$ac_file" || continue
2575     case $ac_file in
2576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2577 pcg 1.11 ;;
2578 pcg 1.1 conftest.$ac_ext )
2579 pcg 1.11 # This is the source file.
2580     ;;
2581 pcg 1.1 [ab].out )
2582 pcg 1.11 # We found the default executable, but exeext='' is most
2583     # certainly right.
2584     break;;
2585 pcg 1.1 *.* )
2586 pcg 1.11 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2587     # FIXME: I believe we export ac_cv_exeext for Libtool,
2588     # but it would be cool to find out if it's true. Does anybody
2589     # maintain Libtool? --akim.
2590     export ac_cv_exeext
2591     break;;
2592 pcg 1.1 * )
2593 pcg 1.11 break;;
2594 pcg 1.1 esac
2595     done
2596     else
2597     echo "$as_me: failed program was:" >&5
2598     sed 's/^/| /' conftest.$ac_ext >&5
2599    
2600     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2601     See \`config.log' for more details." >&5
2602     echo "$as_me: error: C compiler cannot create executables
2603     See \`config.log' for more details." >&2;}
2604     { (exit 77); exit 77; }; }
2605     fi
2606    
2607     ac_exeext=$ac_cv_exeext
2608     echo "$as_me:$LINENO: result: $ac_file" >&5
2609     echo "${ECHO_T}$ac_file" >&6
2610    
2611     # Check the compiler produces executables we can run. If not, either
2612     # the compiler is broken, or we cross compile.
2613     echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2614     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2615     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2616     # If not cross compiling, check that we can run a simple program.
2617     if test "$cross_compiling" != yes; then
2618     if { ac_try='./$ac_file'
2619     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620     (eval $ac_try) 2>&5
2621     ac_status=$?
2622     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623     (exit $ac_status); }; }; then
2624     cross_compiling=no
2625     else
2626     if test "$cross_compiling" = maybe; then
2627     cross_compiling=yes
2628     else
2629     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2630     If you meant to cross compile, use \`--host'.
2631     See \`config.log' for more details." >&5
2632     echo "$as_me: error: cannot run C compiled programs.
2633     If you meant to cross compile, use \`--host'.
2634     See \`config.log' for more details." >&2;}
2635     { (exit 1); exit 1; }; }
2636     fi
2637     fi
2638     fi
2639     echo "$as_me:$LINENO: result: yes" >&5
2640     echo "${ECHO_T}yes" >&6
2641    
2642     rm -f a.out a.exe conftest$ac_cv_exeext b.out
2643     ac_clean_files=$ac_clean_files_save
2644     # Check the compiler produces executables we can run. If not, either
2645     # the compiler is broken, or we cross compile.
2646     echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2647     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2648     echo "$as_me:$LINENO: result: $cross_compiling" >&5
2649     echo "${ECHO_T}$cross_compiling" >&6
2650    
2651     echo "$as_me:$LINENO: checking for suffix of executables" >&5
2652     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2653     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2654     (eval $ac_link) 2>&5
2655     ac_status=$?
2656     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657     (exit $ac_status); }; then
2658     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2659     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2660     # work properly (i.e., refer to `conftest.exe'), while it won't with
2661     # `rm'.
2662     for ac_file in conftest.exe conftest conftest.*; do
2663     test -f "$ac_file" || continue
2664     case $ac_file in
2665     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2666     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2667 pcg 1.11 export ac_cv_exeext
2668     break;;
2669 pcg 1.1 * ) break;;
2670     esac
2671     done
2672     else
2673     { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2674     See \`config.log' for more details." >&5
2675     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2676     See \`config.log' for more details." >&2;}
2677     { (exit 1); exit 1; }; }
2678     fi
2679    
2680     rm -f conftest$ac_cv_exeext
2681     echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2682     echo "${ECHO_T}$ac_cv_exeext" >&6
2683    
2684     rm -f conftest.$ac_ext
2685     EXEEXT=$ac_cv_exeext
2686     ac_exeext=$EXEEXT
2687     echo "$as_me:$LINENO: checking for suffix of object files" >&5
2688     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2689     if test "${ac_cv_objext+set}" = set; then
2690     echo $ECHO_N "(cached) $ECHO_C" >&6
2691     else
2692     cat >conftest.$ac_ext <<_ACEOF
2693     /* confdefs.h. */
2694     _ACEOF
2695     cat confdefs.h >>conftest.$ac_ext
2696     cat >>conftest.$ac_ext <<_ACEOF
2697     /* end confdefs.h. */
2698    
2699     int
2700     main ()
2701     {
2702    
2703     ;
2704     return 0;
2705     }
2706     _ACEOF
2707     rm -f conftest.o conftest.obj
2708     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709     (eval $ac_compile) 2>&5
2710     ac_status=$?
2711     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712     (exit $ac_status); }; then
2713     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2714     case $ac_file in
2715     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2716     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2717     break;;
2718     esac
2719     done
2720     else
2721     echo "$as_me: failed program was:" >&5
2722     sed 's/^/| /' conftest.$ac_ext >&5
2723    
2724     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2725     See \`config.log' for more details." >&5
2726     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2727     See \`config.log' for more details." >&2;}
2728     { (exit 1); exit 1; }; }
2729     fi
2730    
2731     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2732     fi
2733     echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2734     echo "${ECHO_T}$ac_cv_objext" >&6
2735     OBJEXT=$ac_cv_objext
2736     ac_objext=$OBJEXT
2737     echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2738     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2739     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2740     echo $ECHO_N "(cached) $ECHO_C" >&6
2741     else
2742     cat >conftest.$ac_ext <<_ACEOF
2743     /* confdefs.h. */
2744     _ACEOF
2745     cat confdefs.h >>conftest.$ac_ext
2746     cat >>conftest.$ac_ext <<_ACEOF
2747     /* end confdefs.h. */
2748    
2749     int
2750     main ()
2751     {
2752     #ifndef __GNUC__
2753     choke me
2754     #endif
2755    
2756     ;
2757     return 0;
2758     }
2759     _ACEOF
2760     rm -f conftest.$ac_objext
2761     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 pcg 1.11 (eval $ac_compile) 2>conftest.er1
2763 pcg 1.1 ac_status=$?
2764 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
2765     rm -f conftest.er1
2766     cat conftest.err >&5
2767 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768     (exit $ac_status); } &&
2769 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2770     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771     (eval $ac_try) 2>&5
2772     ac_status=$?
2773     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774     (exit $ac_status); }; } &&
2775     { ac_try='test -s conftest.$ac_objext'
2776 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777     (eval $ac_try) 2>&5
2778     ac_status=$?
2779     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780     (exit $ac_status); }; }; then
2781     ac_compiler_gnu=yes
2782     else
2783     echo "$as_me: failed program was:" >&5
2784     sed 's/^/| /' conftest.$ac_ext >&5
2785    
2786     ac_compiler_gnu=no
2787     fi
2788 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789 pcg 1.1 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2790    
2791     fi
2792     echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2793     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2794     GCC=`test $ac_compiler_gnu = yes && echo yes`
2795     ac_test_CFLAGS=${CFLAGS+set}
2796     ac_save_CFLAGS=$CFLAGS
2797     CFLAGS="-g"
2798     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2799     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2800     if test "${ac_cv_prog_cc_g+set}" = set; then
2801     echo $ECHO_N "(cached) $ECHO_C" >&6
2802     else
2803     cat >conftest.$ac_ext <<_ACEOF
2804     /* confdefs.h. */
2805     _ACEOF
2806     cat confdefs.h >>conftest.$ac_ext
2807     cat >>conftest.$ac_ext <<_ACEOF
2808     /* end confdefs.h. */
2809    
2810     int
2811     main ()
2812     {
2813    
2814     ;
2815     return 0;
2816     }
2817     _ACEOF
2818     rm -f conftest.$ac_objext
2819     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 pcg 1.11 (eval $ac_compile) 2>conftest.er1
2821 pcg 1.1 ac_status=$?
2822 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
2823     rm -f conftest.er1
2824     cat conftest.err >&5
2825 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826     (exit $ac_status); } &&
2827 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2828     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829     (eval $ac_try) 2>&5
2830     ac_status=$?
2831     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832     (exit $ac_status); }; } &&
2833     { ac_try='test -s conftest.$ac_objext'
2834 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835     (eval $ac_try) 2>&5
2836     ac_status=$?
2837     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838     (exit $ac_status); }; }; then
2839     ac_cv_prog_cc_g=yes
2840     else
2841     echo "$as_me: failed program was:" >&5
2842     sed 's/^/| /' conftest.$ac_ext >&5
2843    
2844     ac_cv_prog_cc_g=no
2845     fi
2846 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 pcg 1.1 fi
2848     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2849     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2850     if test "$ac_test_CFLAGS" = set; then
2851     CFLAGS=$ac_save_CFLAGS
2852     elif test $ac_cv_prog_cc_g = yes; then
2853     if test "$GCC" = yes; then
2854     CFLAGS="-g -O2"
2855     else
2856     CFLAGS="-g"
2857     fi
2858     else
2859     if test "$GCC" = yes; then
2860     CFLAGS="-O2"
2861     else
2862     CFLAGS=
2863     fi
2864     fi
2865     echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2866     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2867     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2868     echo $ECHO_N "(cached) $ECHO_C" >&6
2869     else
2870     ac_cv_prog_cc_stdc=no
2871     ac_save_CC=$CC
2872     cat >conftest.$ac_ext <<_ACEOF
2873     /* confdefs.h. */
2874     _ACEOF
2875     cat confdefs.h >>conftest.$ac_ext
2876     cat >>conftest.$ac_ext <<_ACEOF
2877     /* end confdefs.h. */
2878     #include <stdarg.h>
2879     #include <stdio.h>
2880     #include <sys/types.h>
2881     #include <sys/stat.h>
2882     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2883     struct buf { int x; };
2884     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2885     static char *e (p, i)
2886     char **p;
2887     int i;
2888     {
2889     return p[i];
2890     }
2891     static char *f (char * (*g) (char **, int), char **p, ...)
2892     {
2893     char *s;
2894     va_list v;
2895     va_start (v,p);
2896     s = g (p, va_arg (v,int));
2897     va_end (v);
2898     return s;
2899     }
2900 pcg 1.11
2901     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2902     function prototypes and stuff, but not '\xHH' hex character constants.
2903     These don't provoke an error unfortunately, instead are silently treated
2904     as 'x'. The following induces an error, until -std1 is added to get
2905     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2906     array size at least. It's necessary to write '\x00'==0 to get something
2907     that's true only with -std1. */
2908     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2909    
2910 pcg 1.1 int test (int i, double x);
2911     struct s1 {int (*f) (int a);};
2912     struct s2 {int (*f) (double a);};
2913     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2914     int argc;
2915     char **argv;
2916     int
2917     main ()
2918     {
2919     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2920     ;
2921     return 0;
2922     }
2923     _ACEOF
2924     # Don't try gcc -ansi; that turns off useful extensions and
2925     # breaks some systems' header files.
2926     # AIX -qlanglvl=ansi
2927     # Ultrix and OSF/1 -std1
2928     # HP-UX 10.20 and later -Ae
2929     # HP-UX older versions -Aa -D_HPUX_SOURCE
2930     # SVR4 -Xc -D__EXTENSIONS__
2931     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2932     do
2933     CC="$ac_save_CC $ac_arg"
2934     rm -f conftest.$ac_objext
2935     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 pcg 1.11 (eval $ac_compile) 2>conftest.er1
2937 pcg 1.1 ac_status=$?
2938 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
2939     rm -f conftest.er1
2940     cat conftest.err >&5
2941 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942     (exit $ac_status); } &&
2943 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2944     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945     (eval $ac_try) 2>&5
2946     ac_status=$?
2947     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948     (exit $ac_status); }; } &&
2949     { ac_try='test -s conftest.$ac_objext'
2950 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951     (eval $ac_try) 2>&5
2952     ac_status=$?
2953     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954     (exit $ac_status); }; }; then
2955     ac_cv_prog_cc_stdc=$ac_arg
2956     break
2957     else
2958     echo "$as_me: failed program was:" >&5
2959     sed 's/^/| /' conftest.$ac_ext >&5
2960    
2961     fi
2962 pcg 1.11 rm -f conftest.err conftest.$ac_objext
2963 pcg 1.1 done
2964     rm -f conftest.$ac_ext conftest.$ac_objext
2965     CC=$ac_save_CC
2966    
2967     fi
2968    
2969     case "x$ac_cv_prog_cc_stdc" in
2970     x|xno)
2971     echo "$as_me:$LINENO: result: none needed" >&5
2972     echo "${ECHO_T}none needed" >&6 ;;
2973     *)
2974     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2975     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2976     CC="$CC $ac_cv_prog_cc_stdc" ;;
2977     esac
2978    
2979     # Some people use a C++ compiler to compile C. Since we use `exit',
2980     # in C++ we need to declare it. In case someone uses the same compiler
2981     # for both compiling C and C++ we need to have the C++ compiler decide
2982     # the declaration of exit, since it's the most demanding environment.
2983     cat >conftest.$ac_ext <<_ACEOF
2984     #ifndef __cplusplus
2985     choke me
2986     #endif
2987     _ACEOF
2988     rm -f conftest.$ac_objext
2989     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 pcg 1.11 (eval $ac_compile) 2>conftest.er1
2991 pcg 1.1 ac_status=$?
2992 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
2993     rm -f conftest.er1
2994     cat conftest.err >&5
2995 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996     (exit $ac_status); } &&
2997 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2998     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999     (eval $ac_try) 2>&5
3000     ac_status=$?
3001     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002     (exit $ac_status); }; } &&
3003     { ac_try='test -s conftest.$ac_objext'
3004 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005     (eval $ac_try) 2>&5
3006     ac_status=$?
3007     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008     (exit $ac_status); }; }; then
3009     for ac_declaration in \
3010     '' \
3011     'extern "C" void std::exit (int) throw (); using std::exit;' \
3012     'extern "C" void std::exit (int); using std::exit;' \
3013     'extern "C" void exit (int) throw ();' \
3014     'extern "C" void exit (int);' \
3015     'void exit (int);'
3016     do
3017     cat >conftest.$ac_ext <<_ACEOF
3018     /* confdefs.h. */
3019     _ACEOF
3020     cat confdefs.h >>conftest.$ac_ext
3021     cat >>conftest.$ac_ext <<_ACEOF
3022     /* end confdefs.h. */
3023     $ac_declaration
3024     #include <stdlib.h>
3025     int
3026     main ()
3027     {
3028     exit (42);
3029     ;
3030     return 0;
3031     }
3032     _ACEOF
3033     rm -f conftest.$ac_objext
3034     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035 pcg 1.11 (eval $ac_compile) 2>conftest.er1
3036 pcg 1.1 ac_status=$?
3037 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
3038     rm -f conftest.er1
3039     cat conftest.err >&5
3040 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041     (exit $ac_status); } &&
3042 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3043     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044     (eval $ac_try) 2>&5
3045     ac_status=$?
3046     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047     (exit $ac_status); }; } &&
3048     { ac_try='test -s conftest.$ac_objext'
3049 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050     (eval $ac_try) 2>&5
3051     ac_status=$?
3052     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053     (exit $ac_status); }; }; then
3054     :
3055     else
3056     echo "$as_me: failed program was:" >&5
3057     sed 's/^/| /' conftest.$ac_ext >&5
3058    
3059     continue
3060     fi
3061 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3062 pcg 1.1 cat >conftest.$ac_ext <<_ACEOF
3063     /* confdefs.h. */
3064     _ACEOF
3065     cat confdefs.h >>conftest.$ac_ext
3066     cat >>conftest.$ac_ext <<_ACEOF
3067     /* end confdefs.h. */
3068     $ac_declaration
3069     int
3070     main ()
3071     {
3072     exit (42);
3073     ;
3074     return 0;
3075     }
3076     _ACEOF
3077     rm -f conftest.$ac_objext
3078     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3079 pcg 1.11 (eval $ac_compile) 2>conftest.er1
3080 pcg 1.1 ac_status=$?
3081 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
3082     rm -f conftest.er1
3083     cat conftest.err >&5
3084 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085     (exit $ac_status); } &&
3086 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3087     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088     (eval $ac_try) 2>&5
3089     ac_status=$?
3090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091     (exit $ac_status); }; } &&
3092     { ac_try='test -s conftest.$ac_objext'
3093 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094     (eval $ac_try) 2>&5
3095     ac_status=$?
3096     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097     (exit $ac_status); }; }; then
3098     break
3099     else
3100     echo "$as_me: failed program was:" >&5
3101     sed 's/^/| /' conftest.$ac_ext >&5
3102    
3103     fi
3104 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 pcg 1.1 done
3106     rm -f conftest*
3107     if test -n "$ac_declaration"; then
3108     echo '#ifdef __cplusplus' >>confdefs.h
3109     echo $ac_declaration >>confdefs.h
3110     echo '#endif' >>confdefs.h
3111     fi
3112    
3113     else
3114     echo "$as_me: failed program was:" >&5
3115     sed 's/^/| /' conftest.$ac_ext >&5
3116    
3117     fi
3118 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119 pcg 1.1 ac_ext=c
3120     ac_cpp='$CPP $CPPFLAGS'
3121     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124    
3125     depcc="$CC" am_compiler_list=
3126    
3127     echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3128     echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3129     if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3130     echo $ECHO_N "(cached) $ECHO_C" >&6
3131     else
3132     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3133     # We make a subdir and do the tests there. Otherwise we can end up
3134     # making bogus files that we don't know about and never remove. For
3135     # instance it was reported that on HP-UX the gcc test will end up
3136     # making a dummy file named `D' -- because `-MD' means `put the output
3137     # in D'.
3138     mkdir conftest.dir
3139     # Copy depcomp to subdir because otherwise we won't find it if we're
3140     # using a relative directory.
3141     cp "$am_depcomp" conftest.dir
3142     cd conftest.dir
3143     # We will build objects and dependencies in a subdirectory because
3144     # it helps to detect inapplicable dependency modes. For instance
3145     # both Tru64's cc and ICC support -MD to output dependencies as a
3146     # side effect of compilation, but ICC will put the dependencies in
3147     # the current directory while Tru64 will put them in the object
3148     # directory.
3149     mkdir sub
3150    
3151     am_cv_CC_dependencies_compiler_type=none
3152     if test "$am_compiler_list" = ""; then
3153     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3154     fi
3155     for depmode in $am_compiler_list; do
3156     # Setup a source with many dependencies, because some compilers
3157     # like to wrap large dependency lists on column 80 (with \), and
3158     # we should not choose a depcomp mode which is confused by this.
3159     #
3160     # We need to recreate these files for each test, as the compiler may
3161     # overwrite some of them when testing with obscure command lines.
3162     # This happens at least with the AIX C compiler.
3163     : > sub/conftest.c
3164     for i in 1 2 3 4 5 6; do
3165     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3166 pcg 1.32 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3167     # Solaris 8's {/usr,}/bin/sh.
3168     touch sub/conftst$i.h
3169 pcg 1.1 done
3170     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3171    
3172     case $depmode in
3173     nosideeffect)
3174     # after this tag, mechanisms are not by side-effect, so they'll
3175     # only be used when explicitly requested
3176     if test "x$enable_dependency_tracking" = xyes; then
3177     continue
3178     else
3179     break
3180     fi
3181     ;;
3182     none) break ;;
3183     esac
3184     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3185     # mode. It turns out that the SunPro C++ compiler does not properly
3186     # handle `-M -o', and we need to detect this.
3187     if depmode=$depmode \
3188     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3189     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3190     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3191     >/dev/null 2>conftest.err &&
3192     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3193     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3194     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3195     # icc doesn't choke on unknown options, it will just issue warnings
3196 pcg 1.32 # or remarks (even with -Werror). So we grep stderr for any message
3197     # that says an option was ignored or not supported.
3198     # When given -MP, icc 7.0 and 7.1 complain thusly:
3199     # icc: Command line warning: ignoring option '-M'; no argument required
3200     # The diagnosis changed in icc 8.0:
3201     # icc: Command line remark: option '-MP' not supported
3202     if (grep 'ignoring option' conftest.err ||
3203     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3204 pcg 1.1 am_cv_CC_dependencies_compiler_type=$depmode
3205     break
3206     fi
3207     fi
3208     done
3209    
3210     cd ..
3211     rm -rf conftest.dir
3212     else
3213     am_cv_CC_dependencies_compiler_type=none
3214     fi
3215    
3216     fi
3217     echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3218     echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3219     CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3220    
3221    
3222    
3223     if
3224     test "x$enable_dependency_tracking" != xno \
3225     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3226     am__fastdepCC_TRUE=
3227     am__fastdepCC_FALSE='#'
3228     else
3229     am__fastdepCC_TRUE='#'
3230     am__fastdepCC_FALSE=
3231     fi
3232    
3233    
3234    
3235     # Check whether --with-gnu-ld or --without-gnu-ld was given.
3236     if test "${with_gnu_ld+set}" = set; then
3237     withval="$with_gnu_ld"
3238     test "$withval" = no || with_gnu_ld=yes
3239     else
3240     with_gnu_ld=no
3241     fi;
3242     ac_prog=ld
3243     if test "$GCC" = yes; then
3244     # Check if gcc -print-prog-name=ld gives a path.
3245     echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3246     echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3247     case $host in
3248     *-*-mingw*)
3249     # gcc leaves a trailing carriage return which upsets mingw
3250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3251     *)
3252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3253     esac
3254     case $ac_prog in
3255     # Accept absolute paths.
3256     [\\/]* | [A-Za-z]:[\\/]*)
3257     re_direlt='/[^/][^/]*/\.\./'
3258     # Canonicalize the path of ld
3259     ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3260     while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3261     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3262     done
3263     test -z "$LD" && LD="$ac_prog"
3264     ;;
3265     "")
3266     # If it fails, then pretend we aren't using GCC.
3267     ac_prog=ld
3268     ;;
3269     *)
3270     # If it is relative, then search for the first ld in PATH.
3271     with_gnu_ld=unknown
3272     ;;
3273     esac
3274     elif test "$with_gnu_ld" = yes; then
3275     echo "$as_me:$LINENO: checking for GNU ld" >&5
3276     echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3277     else
3278     echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3279     echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3280     fi
3281     if test "${acl_cv_path_LD+set}" = set; then
3282     echo $ECHO_N "(cached) $ECHO_C" >&6
3283     else
3284     if test -z "$LD"; then
3285     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3286     for ac_dir in $PATH; do
3287     test -z "$ac_dir" && ac_dir=.
3288     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3289     acl_cv_path_LD="$ac_dir/$ac_prog"
3290     # Check to see if the program is GNU ld. I'd rather use --version,
3291     # but apparently some GNU ld's only accept -v.
3292     # Break only if it was the GNU/non-GNU ld that we prefer.
3293     if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3294     test "$with_gnu_ld" != no && break
3295     else
3296     test "$with_gnu_ld" != yes && break
3297     fi
3298     fi
3299     done
3300     IFS="$ac_save_ifs"
3301     else
3302     acl_cv_path_LD="$LD" # Let the user override the test with a path.
3303     fi
3304     fi
3305    
3306     LD="$acl_cv_path_LD"
3307     if test -n "$LD"; then
3308     echo "$as_me:$LINENO: result: $LD" >&5
3309     echo "${ECHO_T}$LD" >&6
3310     else
3311     echo "$as_me:$LINENO: result: no" >&5
3312     echo "${ECHO_T}no" >&6
3313     fi
3314     test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3315     echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3316     { (exit 1); exit 1; }; }
3317     echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3318     echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3319     if test "${acl_cv_prog_gnu_ld+set}" = set; then
3320     echo $ECHO_N "(cached) $ECHO_C" >&6
3321     else
3322     # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3323     if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3324     acl_cv_prog_gnu_ld=yes
3325     else
3326     acl_cv_prog_gnu_ld=no
3327     fi
3328     fi
3329     echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3330     echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
3331     with_gnu_ld=$acl_cv_prog_gnu_ld
3332    
3333    
3334    
3335     echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3336     echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
3337     if test "${acl_cv_rpath+set}" = set; then
3338     echo $ECHO_N "(cached) $ECHO_C" >&6
3339     else
3340    
3341     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3342     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3343     . ./conftest.sh
3344     rm -f ./conftest.sh
3345     acl_cv_rpath=done
3346    
3347     fi
3348     echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3349     echo "${ECHO_T}$acl_cv_rpath" >&6
3350     wl="$acl_cv_wl"
3351     libext="$acl_cv_libext"
3352     shlibext="$acl_cv_shlibext"
3353     hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3354     hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3355     hardcode_direct="$acl_cv_hardcode_direct"
3356     hardcode_minus_L="$acl_cv_hardcode_minus_L"
3357     sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
3358     sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
3359     # Check whether --enable-rpath or --disable-rpath was given.
3360     if test "${enable_rpath+set}" = set; then
3361     enableval="$enable_rpath"
3362     :
3363     else
3364     enable_rpath=yes
3365     fi;
3366    
3367    
3368    
3369    
3370    
3371    
3372    
3373     use_additional=yes
3374    
3375     acl_save_prefix="$prefix"
3376     prefix="$acl_final_prefix"
3377     acl_save_exec_prefix="$exec_prefix"
3378     exec_prefix="$acl_final_exec_prefix"
3379    
3380     eval additional_includedir=\"$includedir\"
3381     eval additional_libdir=\"$libdir\"
3382    
3383     exec_prefix="$acl_save_exec_prefix"
3384     prefix="$acl_save_prefix"
3385    
3386    
3387     # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3388     if test "${with_libiconv_prefix+set}" = set; then
3389     withval="$with_libiconv_prefix"
3390    
3391     if test "X$withval" = "Xno"; then
3392     use_additional=no
3393     else
3394     if test "X$withval" = "X"; then
3395    
3396     acl_save_prefix="$prefix"
3397     prefix="$acl_final_prefix"
3398     acl_save_exec_prefix="$exec_prefix"
3399     exec_prefix="$acl_final_exec_prefix"
3400    
3401     eval additional_includedir=\"$includedir\"
3402     eval additional_libdir=\"$libdir\"
3403    
3404     exec_prefix="$acl_save_exec_prefix"
3405     prefix="$acl_save_prefix"
3406    
3407     else
3408     additional_includedir="$withval/include"
3409     additional_libdir="$withval/lib"
3410     fi
3411     fi
3412    
3413     fi;
3414     LIBICONV=
3415     LTLIBICONV=
3416     INCICONV=
3417     rpathdirs=
3418     ltrpathdirs=
3419     names_already_handled=
3420     names_next_round='iconv '
3421     while test -n "$names_next_round"; do
3422     names_this_round="$names_next_round"
3423     names_next_round=
3424     for name in $names_this_round; do
3425     already_handled=
3426     for n in $names_already_handled; do
3427     if test "$n" = "$name"; then
3428     already_handled=yes
3429     break
3430     fi
3431     done
3432     if test -z "$already_handled"; then
3433     names_already_handled="$names_already_handled $name"
3434     uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3435     eval value=\"\$HAVE_LIB$uppername\"
3436     if test -n "$value"; then
3437     if test "$value" = yes; then
3438     eval value=\"\$LIB$uppername\"
3439     test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3440     eval value=\"\$LTLIB$uppername\"
3441     test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3442     else
3443     :
3444     fi
3445     else
3446     found_dir=
3447     found_la=
3448     found_so=
3449     found_a=
3450     if test $use_additional = yes; then
3451     if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3452     found_dir="$additional_libdir"
3453     found_so="$additional_libdir/lib$name.$shlibext"
3454     if test -f "$additional_libdir/lib$name.la"; then
3455     found_la="$additional_libdir/lib$name.la"
3456     fi
3457     else
3458     if test -f "$additional_libdir/lib$name.$libext"; then
3459     found_dir="$additional_libdir"
3460     found_a="$additional_libdir/lib$name.$libext"
3461     if test -f "$additional_libdir/lib$name.la"; then
3462     found_la="$additional_libdir/lib$name.la"
3463     fi
3464     fi
3465     fi
3466     fi
3467     if test "X$found_dir" = "X"; then
3468     for x in $LDFLAGS $LTLIBICONV; do
3469    
3470     acl_save_prefix="$prefix"
3471     prefix="$acl_final_prefix"
3472     acl_save_exec_prefix="$exec_prefix"
3473     exec_prefix="$acl_final_exec_prefix"
3474     eval x=\"$x\"
3475     exec_prefix="$acl_save_exec_prefix"
3476     prefix="$acl_save_prefix"
3477    
3478     case "$x" in
3479     -L*)
3480     dir=`echo "X$x" | sed -e 's/^X-L//'`
3481     if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3482     found_dir="$dir"
3483     found_so="$dir/lib$name.$shlibext"
3484     if test -f "$dir/lib$name.la"; then
3485     found_la="$dir/lib$name.la"
3486     fi
3487     else
3488     if test -f "$dir/lib$name.$libext"; then
3489     found_dir="$dir"
3490     found_a="$dir/lib$name.$libext"
3491     if test -f "$dir/lib$name.la"; then
3492     found_la="$dir/lib$name.la"
3493     fi
3494     fi
3495     fi
3496     ;;
3497     esac
3498     if test "X$found_dir" != "X"; then
3499     break
3500     fi
3501     done
3502     fi
3503     if test "X$found_dir" != "X"; then
3504     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3505     if test "X$found_so" != "X"; then
3506     if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3507     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3508     else
3509     haveit=
3510     for x in $ltrpathdirs; do
3511     if test "X$x" = "X$found_dir"; then
3512     haveit=yes
3513     break
3514     fi
3515     done
3516     if test -z "$haveit"; then
3517     ltrpathdirs="$ltrpathdirs $found_dir"
3518     fi
3519     if test "$hardcode_direct" = yes; then
3520     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3521     else
3522     if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3523     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3524     haveit=
3525     for x in $rpathdirs; do
3526     if test "X$x" = "X$found_dir"; then
3527     haveit=yes
3528     break
3529     fi
3530     done
3531     if test -z "$haveit"; then
3532     rpathdirs="$rpathdirs $found_dir"
3533     fi
3534     else
3535     haveit=
3536     for x in $LDFLAGS $LIBICONV; do
3537    
3538     acl_save_prefix="$prefix"
3539     prefix="$acl_final_prefix"
3540     acl_save_exec_prefix="$exec_prefix"
3541     exec_prefix="$acl_final_exec_prefix"
3542     eval x=\"$x\"
3543     exec_prefix="$acl_save_exec_prefix"
3544     prefix="$acl_save_prefix"
3545    
3546     if test "X$x" = "X-L$found_dir"; then
3547     haveit=yes
3548     break
3549     fi
3550     done
3551     if test -z "$haveit"; then
3552     LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3553     fi
3554     if test "$hardcode_minus_L" != no; then
3555     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3556     else
3557     LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3558     fi
3559     fi
3560     fi
3561     fi
3562     else
3563     if test "X$found_a" != "X"; then
3564     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3565     else
3566     LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3567     fi
3568     fi
3569     additional_includedir=
3570     case "$found_dir" in
3571     */lib | */lib/)
3572     basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3573     additional_includedir="$basedir/include"
3574     ;;
3575     esac
3576     if test "X$additional_includedir" != "X"; then
3577     if test "X$additional_includedir" != "X/usr/include"; then
3578     haveit=
3579     if test "X$additional_includedir" = "X/usr/local/include"; then
3580     if test -n "$GCC"; then
3581     case $host_os in
3582     linux*) haveit=yes;;
3583     esac
3584     fi
3585     fi
3586     if test -z "$haveit"; then
3587     for x in $CPPFLAGS $INCICONV; do
3588    
3589     acl_save_prefix="$prefix"
3590     prefix="$acl_final_prefix"
3591     acl_save_exec_prefix="$exec_prefix"
3592     exec_prefix="$acl_final_exec_prefix"
3593     eval x=\"$x\"
3594     exec_prefix="$acl_save_exec_prefix"
3595     prefix="$acl_save_prefix"
3596    
3597     if test "X$x" = "X-I$additional_includedir"; then
3598     haveit=yes
3599     break
3600     fi
3601     done
3602     if test -z "$haveit"; then
3603     if test -d "$additional_includedir"; then
3604     INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3605     fi
3606     fi
3607     fi
3608     fi
3609     fi
3610     if test -n "$found_la"; then
3611     save_libdir="$libdir"
3612     case "$found_la" in
3613     */* | *\\*) . "$found_la" ;;
3614     *) . "./$found_la" ;;
3615     esac
3616     libdir="$save_libdir"
3617     for dep in $dependency_libs; do
3618     case "$dep" in
3619     -L*)
3620     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3621     if test "X$additional_libdir" != "X/usr/lib"; then
3622     haveit=
3623     if test "X$additional_libdir" = "X/usr/local/lib"; then
3624     if test -n "$GCC"; then
3625     case $host_os in
3626     linux*) haveit=yes;;
3627     esac
3628     fi
3629     fi
3630     if test -z "$haveit"; then
3631     haveit=
3632     for x in $LDFLAGS $LIBICONV; do
3633    
3634     acl_save_prefix="$prefix"
3635     prefix="$acl_final_prefix"
3636     acl_save_exec_prefix="$exec_prefix"
3637     exec_prefix="$acl_final_exec_prefix"
3638     eval x=\"$x\"
3639     exec_prefix="$acl_save_exec_prefix"
3640     prefix="$acl_save_prefix"
3641    
3642     if test "X$x" = "X-L$additional_libdir"; then
3643     haveit=yes
3644     break
3645     fi
3646     done
3647     if test -z "$haveit"; then
3648     if test -d "$additional_libdir"; then
3649     LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3650     fi
3651     fi
3652     haveit=
3653     for x in $LDFLAGS $LTLIBICONV; do
3654    
3655     acl_save_prefix="$prefix"
3656     prefix="$acl_final_prefix"
3657     acl_save_exec_prefix="$exec_prefix"
3658     exec_prefix="$acl_final_exec_prefix"
3659     eval x=\"$x\"
3660     exec_prefix="$acl_save_exec_prefix"
3661     prefix="$acl_save_prefix"
3662    
3663     if test "X$x" = "X-L$additional_libdir"; then
3664     haveit=yes
3665     break
3666     fi
3667     done
3668     if test -z "$haveit"; then
3669     if test -d "$additional_libdir"; then
3670     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3671     fi
3672     fi
3673     fi
3674     fi
3675     ;;
3676     -R*)
3677     dir=`echo "X$dep" | sed -e 's/^X-R//'`
3678     if test "$enable_rpath" != no; then
3679     haveit=
3680     for x in $rpathdirs; do
3681     if test "X$x" = "X$dir"; then
3682     haveit=yes
3683     break
3684     fi
3685     done
3686     if test -z "$haveit"; then
3687     rpathdirs="$rpathdirs $dir"
3688     fi
3689     haveit=
3690     for x in $ltrpathdirs; do
3691     if test "X$x" = "X$dir"; then
3692     haveit=yes
3693     break
3694     fi
3695     done
3696     if test -z "$haveit"; then
3697     ltrpathdirs="$ltrpathdirs $dir"
3698     fi
3699     fi
3700     ;;
3701     -l*)
3702     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3703     ;;
3704     *.la)
3705     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3706     ;;
3707     *)
3708     LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3709     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3710     ;;
3711     esac
3712     done
3713     fi
3714     else
3715     LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3716     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3717     fi
3718     fi
3719     fi
3720     done
3721     done
3722     if test "X$rpathdirs" != "X"; then
3723     if test -n "$hardcode_libdir_separator"; then
3724     alldirs=
3725     for found_dir in $rpathdirs; do
3726     alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3727     done
3728     acl_save_libdir="$libdir"
3729     libdir="$alldirs"
3730     eval flag=\"$hardcode_libdir_flag_spec\"
3731     libdir="$acl_save_libdir"
3732     LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3733     else
3734     for found_dir in $rpathdirs; do
3735     acl_save_libdir="$libdir"
3736     libdir="$found_dir"
3737     eval flag=\"$hardcode_libdir_flag_spec\"
3738     libdir="$acl_save_libdir"
3739     LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3740     done
3741     fi
3742     fi
3743     if test "X$ltrpathdirs" != "X"; then
3744     for found_dir in $ltrpathdirs; do
3745     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3746     done
3747     fi
3748    
3749    
3750    
3751    
3752    
3753    
3754    
3755    
3756    
3757    
3758    
3759    
3760    
3761    
3762    
3763    
3764    
3765    
3766     echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3767     echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3768     # Check whether --enable-nls or --disable-nls was given.
3769     if test "${enable_nls+set}" = set; then
3770     enableval="$enable_nls"
3771     USE_NLS=$enableval
3772     else
3773     USE_NLS=yes
3774     fi;
3775     echo "$as_me:$LINENO: result: $USE_NLS" >&5
3776     echo "${ECHO_T}$USE_NLS" >&6
3777    
3778    
3779    
3780     LIBINTL=
3781     LTLIBINTL=
3782     POSUB=
3783    
3784     if test "$USE_NLS" = "yes"; then
3785     gt_use_preinstalled_gnugettext=no
3786    
3787    
3788    
3789    
3790    
3791    
3792     echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
3793     echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
3794     if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
3795     echo $ECHO_N "(cached) $ECHO_C" >&6
3796     else
3797     cat >conftest.$ac_ext <<_ACEOF
3798     /* confdefs.h. */
3799     _ACEOF
3800     cat confdefs.h >>conftest.$ac_ext
3801     cat >>conftest.$ac_ext <<_ACEOF
3802     /* end confdefs.h. */
3803     #include <libintl.h>
3804     extern int _nl_msg_cat_cntr;
3805     extern int *_nl_domain_bindings;
3806     int
3807     main ()
3808     {
3809     bindtextdomain ("", "");
3810     return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
3811     ;
3812     return 0;
3813     }
3814     _ACEOF
3815     rm -f conftest.$ac_objext conftest$ac_exeext
3816     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817 pcg 1.11 (eval $ac_link) 2>conftest.er1
3818 pcg 1.1 ac_status=$?
3819 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
3820     rm -f conftest.er1
3821     cat conftest.err >&5
3822 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823     (exit $ac_status); } &&
3824 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3825     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826     (eval $ac_try) 2>&5
3827     ac_status=$?
3828     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829     (exit $ac_status); }; } &&
3830     { ac_try='test -s conftest$ac_exeext'
3831 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832     (eval $ac_try) 2>&5
3833     ac_status=$?
3834     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835     (exit $ac_status); }; }; then
3836     gt_cv_func_gnugettext1_libc=yes
3837     else
3838     echo "$as_me: failed program was:" >&5
3839     sed 's/^/| /' conftest.$ac_ext >&5
3840    
3841     gt_cv_func_gnugettext1_libc=no
3842     fi
3843 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
3844     conftest$ac_exeext conftest.$ac_ext
3845 pcg 1.1 fi
3846     echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
3847     echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
3848    
3849     if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3850    
3851    
3852    
3853    
3854    
3855     am_save_CPPFLAGS="$CPPFLAGS"
3856    
3857     for element in $INCICONV; do
3858     haveit=
3859     for x in $CPPFLAGS; do
3860    
3861     acl_save_prefix="$prefix"
3862     prefix="$acl_final_prefix"
3863     acl_save_exec_prefix="$exec_prefix"
3864     exec_prefix="$acl_final_exec_prefix"
3865     eval x=\"$x\"
3866     exec_prefix="$acl_save_exec_prefix"
3867     prefix="$acl_save_prefix"
3868    
3869     if test "X$x" = "X$element"; then
3870     haveit=yes
3871     break
3872     fi
3873     done
3874     if test -z "$haveit"; then
3875     CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3876     fi
3877     done
3878    
3879    
3880     echo "$as_me:$LINENO: checking for iconv" >&5
3881     echo $ECHO_N "checking for iconv... $ECHO_C" >&6
3882     if test "${am_cv_func_iconv+set}" = set; then
3883     echo $ECHO_N "(cached) $ECHO_C" >&6
3884     else
3885    
3886     am_cv_func_iconv="no, consider installing GNU libiconv"
3887     am_cv_lib_iconv=no
3888     cat >conftest.$ac_ext <<_ACEOF
3889     /* confdefs.h. */
3890     _ACEOF
3891     cat confdefs.h >>conftest.$ac_ext
3892     cat >>conftest.$ac_ext <<_ACEOF
3893     /* end confdefs.h. */
3894     #include <stdlib.h>
3895     #include <iconv.h>
3896     int
3897     main ()
3898     {
3899     iconv_t cd = iconv_open("","");
3900     iconv(cd,NULL,NULL,NULL,NULL);
3901     iconv_close(cd);
3902     ;
3903     return 0;
3904     }
3905     _ACEOF
3906     rm -f conftest.$ac_objext conftest$ac_exeext
3907     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3908 pcg 1.11 (eval $ac_link) 2>conftest.er1
3909 pcg 1.1 ac_status=$?
3910 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
3911     rm -f conftest.er1
3912     cat conftest.err >&5
3913 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914     (exit $ac_status); } &&
3915 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3916     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917     (eval $ac_try) 2>&5
3918     ac_status=$?
3919     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920     (exit $ac_status); }; } &&
3921     { ac_try='test -s conftest$ac_exeext'
3922 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923     (eval $ac_try) 2>&5
3924     ac_status=$?
3925     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926     (exit $ac_status); }; }; then
3927     am_cv_func_iconv=yes
3928     else
3929     echo "$as_me: failed program was:" >&5
3930     sed 's/^/| /' conftest.$ac_ext >&5
3931    
3932     fi
3933 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
3934     conftest$ac_exeext conftest.$ac_ext
3935 pcg 1.1 if test "$am_cv_func_iconv" != yes; then
3936     am_save_LIBS="$LIBS"
3937     LIBS="$LIBS $LIBICONV"
3938     cat >conftest.$ac_ext <<_ACEOF
3939     /* confdefs.h. */
3940     _ACEOF
3941     cat confdefs.h >>conftest.$ac_ext
3942     cat >>conftest.$ac_ext <<_ACEOF
3943     /* end confdefs.h. */
3944     #include <stdlib.h>
3945     #include <iconv.h>
3946     int
3947     main ()
3948     {
3949     iconv_t cd = iconv_open("","");
3950     iconv(cd,NULL,NULL,NULL,NULL);
3951     iconv_close(cd);
3952     ;
3953     return 0;
3954     }
3955     _ACEOF
3956     rm -f conftest.$ac_objext conftest$ac_exeext
3957     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3958 pcg 1.11 (eval $ac_link) 2>conftest.er1
3959 pcg 1.1 ac_status=$?
3960 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
3961     rm -f conftest.er1
3962     cat conftest.err >&5
3963 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964     (exit $ac_status); } &&
3965 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3966     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967     (eval $ac_try) 2>&5
3968     ac_status=$?
3969     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970     (exit $ac_status); }; } &&
3971     { ac_try='test -s conftest$ac_exeext'
3972 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973     (eval $ac_try) 2>&5
3974     ac_status=$?
3975     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976     (exit $ac_status); }; }; then
3977     am_cv_lib_iconv=yes
3978     am_cv_func_iconv=yes
3979     else
3980     echo "$as_me: failed program was:" >&5
3981     sed 's/^/| /' conftest.$ac_ext >&5
3982    
3983     fi
3984 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
3985     conftest$ac_exeext conftest.$ac_ext
3986 pcg 1.1 LIBS="$am_save_LIBS"
3987     fi
3988    
3989     fi
3990     echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
3991     echo "${ECHO_T}$am_cv_func_iconv" >&6
3992     if test "$am_cv_func_iconv" = yes; then
3993    
3994     cat >>confdefs.h <<\_ACEOF
3995     #define HAVE_ICONV 1
3996     _ACEOF
3997    
3998     fi
3999     if test "$am_cv_lib_iconv" = yes; then
4000     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4001     echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
4002     echo "$as_me:$LINENO: result: $LIBICONV" >&5
4003     echo "${ECHO_T}$LIBICONV" >&6
4004     else
4005     CPPFLAGS="$am_save_CPPFLAGS"
4006     LIBICONV=
4007     LTLIBICONV=
4008     fi
4009    
4010    
4011    
4012    
4013    
4014    
4015     use_additional=yes
4016    
4017     acl_save_prefix="$prefix"
4018     prefix="$acl_final_prefix"
4019     acl_save_exec_prefix="$exec_prefix"
4020     exec_prefix="$acl_final_exec_prefix"
4021    
4022     eval additional_includedir=\"$includedir\"
4023     eval additional_libdir=\"$libdir\"
4024    
4025     exec_prefix="$acl_save_exec_prefix"
4026     prefix="$acl_save_prefix"
4027    
4028    
4029     # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
4030     if test "${with_libintl_prefix+set}" = set; then
4031     withval="$with_libintl_prefix"
4032    
4033     if test "X$withval" = "Xno"; then
4034     use_additional=no
4035     else
4036     if test "X$withval" = "X"; then
4037    
4038     acl_save_prefix="$prefix"
4039     prefix="$acl_final_prefix"
4040     acl_save_exec_prefix="$exec_prefix"
4041     exec_prefix="$acl_final_exec_prefix"
4042    
4043     eval additional_includedir=\"$includedir\"
4044     eval additional_libdir=\"$libdir\"
4045    
4046     exec_prefix="$acl_save_exec_prefix"
4047     prefix="$acl_save_prefix"
4048    
4049     else
4050     additional_includedir="$withval/include"
4051     additional_libdir="$withval/lib"
4052     fi
4053     fi
4054    
4055     fi;
4056     LIBINTL=
4057     LTLIBINTL=
4058     INCINTL=
4059     rpathdirs=
4060     ltrpathdirs=
4061     names_already_handled=
4062     names_next_round='intl '
4063     while test -n "$names_next_round"; do
4064     names_this_round="$names_next_round"
4065     names_next_round=
4066     for name in $names_this_round; do
4067     already_handled=
4068     for n in $names_already_handled; do
4069     if test "$n" = "$name"; then
4070     already_handled=yes
4071     break
4072     fi
4073     done
4074     if test -z "$already_handled"; then
4075     names_already_handled="$names_already_handled $name"
4076     uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4077     eval value=\"\$HAVE_LIB$uppername\"
4078     if test -n "$value"; then
4079     if test "$value" = yes; then
4080     eval value=\"\$LIB$uppername\"
4081     test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4082     eval value=\"\$LTLIB$uppername\"
4083     test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4084     else
4085     :
4086     fi
4087     else
4088     found_dir=
4089     found_la=
4090     found_so=
4091     found_a=
4092     if test $use_additional = yes; then
4093     if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4094     found_dir="$additional_libdir"
4095     found_so="$additional_libdir/lib$name.$shlibext"
4096     if test -f "$additional_libdir/lib$name.la"; then
4097     found_la="$additional_libdir/lib$name.la"
4098     fi
4099     else
4100     if test -f "$additional_libdir/lib$name.$libext"; then
4101     found_dir="$additional_libdir"
4102     found_a="$additional_libdir/lib$name.$libext"
4103     if test -f "$additional_libdir/lib$name.la"; then
4104     found_la="$additional_libdir/lib$name.la"
4105     fi
4106     fi
4107     fi
4108     fi
4109     if test "X$found_dir" = "X"; then
4110     for x in $LDFLAGS $LTLIBINTL; do
4111    
4112     acl_save_prefix="$prefix"
4113     prefix="$acl_final_prefix"
4114     acl_save_exec_prefix="$exec_prefix"
4115     exec_prefix="$acl_final_exec_prefix"
4116     eval x=\"$x\"
4117     exec_prefix="$acl_save_exec_prefix"
4118     prefix="$acl_save_prefix"
4119    
4120     case "$x" in
4121     -L*)
4122     dir=`echo "X$x" | sed -e 's/^X-L//'`
4123     if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4124     found_dir="$dir"
4125     found_so="$dir/lib$name.$shlibext"
4126     if test -f "$dir/lib$name.la"; then
4127     found_la="$dir/lib$name.la"
4128     fi
4129     else
4130     if test -f "$dir/lib$name.$libext"; then
4131     found_dir="$dir"
4132     found_a="$dir/lib$name.$libext"
4133     if test -f "$dir/lib$name.la"; then
4134     found_la="$dir/lib$name.la"
4135     fi
4136     fi
4137     fi
4138     ;;
4139     esac
4140     if test "X$found_dir" != "X"; then
4141     break
4142     fi
4143     done
4144     fi
4145     if test "X$found_dir" != "X"; then
4146     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4147     if test "X$found_so" != "X"; then
4148     if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4149     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4150     else
4151     haveit=
4152     for x in $ltrpathdirs; do
4153     if test "X$x" = "X$found_dir"; then
4154     haveit=yes
4155     break
4156     fi
4157     done
4158     if test -z "$haveit"; then
4159     ltrpathdirs="$ltrpathdirs $found_dir"
4160     fi
4161     if test "$hardcode_direct" = yes; then
4162     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4163     else
4164     if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4165     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4166     haveit=
4167     for x in $rpathdirs; do
4168     if test "X$x" = "X$found_dir"; then
4169     haveit=yes
4170     break
4171     fi
4172     done
4173     if test -z "$haveit"; then
4174     rpathdirs="$rpathdirs $found_dir"
4175     fi
4176     else
4177     haveit=
4178     for x in $LDFLAGS $LIBINTL; do
4179    
4180     acl_save_prefix="$prefix"
4181     prefix="$acl_final_prefix"
4182     acl_save_exec_prefix="$exec_prefix"
4183     exec_prefix="$acl_final_exec_prefix"
4184     eval x=\"$x\"
4185     exec_prefix="$acl_save_exec_prefix"
4186     prefix="$acl_save_prefix"
4187    
4188     if test "X$x" = "X-L$found_dir"; then
4189     haveit=yes
4190     break
4191     fi
4192     done
4193     if test -z "$haveit"; then
4194     LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4195     fi
4196     if test "$hardcode_minus_L" != no; then
4197     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4198     else
4199     LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4200     fi
4201     fi
4202     fi
4203     fi
4204     else
4205     if test "X$found_a" != "X"; then
4206     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4207     else
4208     LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4209     fi
4210     fi
4211     additional_includedir=
4212     case "$found_dir" in
4213     */lib | */lib/)
4214     basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4215     additional_includedir="$basedir/include"
4216     ;;
4217     esac
4218     if test "X$additional_includedir" != "X"; then
4219     if test "X$additional_includedir" != "X/usr/include"; then
4220     haveit=
4221     if test "X$additional_includedir" = "X/usr/local/include"; then
4222     if test -n "$GCC"; then
4223     case $host_os in
4224     linux*) haveit=yes;;
4225     esac
4226     fi
4227     fi
4228     if test -z "$haveit"; then
4229     for x in $CPPFLAGS $INCINTL; do
4230    
4231     acl_save_prefix="$prefix"
4232     prefix="$acl_final_prefix"
4233     acl_save_exec_prefix="$exec_prefix"
4234     exec_prefix="$acl_final_exec_prefix"
4235     eval x=\"$x\"
4236     exec_prefix="$acl_save_exec_prefix"
4237     prefix="$acl_save_prefix"
4238    
4239     if test "X$x" = "X-I$additional_includedir"; then
4240     haveit=yes
4241     break
4242     fi
4243     done
4244     if test -z "$haveit"; then
4245     if test -d "$additional_includedir"; then
4246     INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4247     fi
4248     fi
4249     fi
4250     fi
4251     fi
4252     if test -n "$found_la"; then
4253     save_libdir="$libdir"
4254     case "$found_la" in
4255     */* | *\\*) . "$found_la" ;;
4256     *) . "./$found_la" ;;
4257     esac
4258     libdir="$save_libdir"
4259     for dep in $dependency_libs; do
4260     case "$dep" in
4261     -L*)
4262     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4263     if test "X$additional_libdir" != "X/usr/lib"; then
4264     haveit=
4265     if test "X$additional_libdir" = "X/usr/local/lib"; then
4266     if test -n "$GCC"; then
4267     case $host_os in
4268     linux*) haveit=yes;;
4269     esac
4270     fi
4271     fi
4272     if test -z "$haveit"; then
4273     haveit=
4274     for x in $LDFLAGS $LIBINTL; do
4275    
4276     acl_save_prefix="$prefix"
4277     prefix="$acl_final_prefix"
4278     acl_save_exec_prefix="$exec_prefix"
4279     exec_prefix="$acl_final_exec_prefix"
4280     eval x=\"$x\"
4281     exec_prefix="$acl_save_exec_prefix"
4282     prefix="$acl_save_prefix"
4283    
4284     if test "X$x" = "X-L$additional_libdir"; then
4285     haveit=yes
4286     break
4287     fi
4288     done
4289     if test -z "$haveit"; then
4290     if test -d "$additional_libdir"; then
4291     LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4292     fi
4293     fi
4294     haveit=
4295     for x in $LDFLAGS $LTLIBINTL; do
4296    
4297     acl_save_prefix="$prefix"
4298     prefix="$acl_final_prefix"
4299     acl_save_exec_prefix="$exec_prefix"
4300     exec_prefix="$acl_final_exec_prefix"
4301     eval x=\"$x\"
4302     exec_prefix="$acl_save_exec_prefix"
4303     prefix="$acl_save_prefix"
4304    
4305     if test "X$x" = "X-L$additional_libdir"; then
4306     haveit=yes
4307     break
4308     fi
4309     done
4310     if test -z "$haveit"; then
4311     if test -d "$additional_libdir"; then
4312     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4313     fi
4314     fi
4315     fi
4316     fi
4317     ;;
4318     -R*)
4319     dir=`echo "X$dep" | sed -e 's/^X-R//'`
4320     if test "$enable_rpath" != no; then
4321     haveit=
4322     for x in $rpathdirs; do
4323     if test "X$x" = "X$dir"; then
4324     haveit=yes
4325     break
4326     fi
4327     done
4328     if test -z "$haveit"; then
4329     rpathdirs="$rpathdirs $dir"
4330     fi
4331     haveit=
4332     for x in $ltrpathdirs; do
4333     if test "X$x" = "X$dir"; then
4334     haveit=yes
4335     break
4336     fi
4337     done
4338     if test -z "$haveit"; then
4339     ltrpathdirs="$ltrpathdirs $dir"
4340     fi
4341     fi
4342     ;;
4343     -l*)
4344     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4345     ;;
4346     *.la)
4347     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4348     ;;
4349     *)
4350     LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4351     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4352     ;;
4353     esac
4354     done
4355     fi
4356     else
4357     LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4358     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4359     fi
4360     fi
4361     fi
4362     done
4363     done
4364     if test "X$rpathdirs" != "X"; then
4365     if test -n "$hardcode_libdir_separator"; then
4366     alldirs=
4367     for found_dir in $rpathdirs; do
4368     alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4369     done
4370     acl_save_libdir="$libdir"
4371     libdir="$alldirs"
4372     eval flag=\"$hardcode_libdir_flag_spec\"
4373     libdir="$acl_save_libdir"
4374     LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4375     else
4376     for found_dir in $rpathdirs; do
4377     acl_save_libdir="$libdir"
4378     libdir="$found_dir"
4379     eval flag=\"$hardcode_libdir_flag_spec\"
4380     libdir="$acl_save_libdir"
4381     LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4382     done
4383     fi
4384     fi
4385     if test "X$ltrpathdirs" != "X"; then
4386     for found_dir in $ltrpathdirs; do
4387     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4388     done
4389     fi
4390    
4391     echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4392     echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4393     if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4394     echo $ECHO_N "(cached) $ECHO_C" >&6
4395     else
4396     gt_save_CPPFLAGS="$CPPFLAGS"
4397     CPPFLAGS="$CPPFLAGS $INCINTL"
4398     gt_save_LIBS="$LIBS"
4399     LIBS="$LIBS $LIBINTL"
4400     cat >conftest.$ac_ext <<_ACEOF
4401     /* confdefs.h. */
4402     _ACEOF
4403     cat confdefs.h >>conftest.$ac_ext
4404     cat >>conftest.$ac_ext <<_ACEOF
4405     /* end confdefs.h. */
4406     #include <libintl.h>
4407     extern int _nl_msg_cat_cntr;
4408     extern
4409     #ifdef __cplusplus
4410     "C"
4411     #endif
4412     const char *_nl_expand_alias ();
4413     int
4414     main ()
4415     {
4416     bindtextdomain ("", "");
4417     return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4418     ;
4419     return 0;
4420     }
4421     _ACEOF
4422     rm -f conftest.$ac_objext conftest$ac_exeext
4423     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4424 pcg 1.11 (eval $ac_link) 2>conftest.er1
4425 pcg 1.1 ac_status=$?
4426 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
4427     rm -f conftest.er1
4428     cat conftest.err >&5
4429 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430     (exit $ac_status); } &&
4431 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433     (eval $ac_try) 2>&5
4434     ac_status=$?
4435     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436     (exit $ac_status); }; } &&
4437     { ac_try='test -s conftest$ac_exeext'
4438 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439     (eval $ac_try) 2>&5
4440     ac_status=$?
4441     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442     (exit $ac_status); }; }; then
4443     gt_cv_func_gnugettext1_libintl=yes
4444     else
4445     echo "$as_me: failed program was:" >&5
4446     sed 's/^/| /' conftest.$ac_ext >&5
4447    
4448     gt_cv_func_gnugettext1_libintl=no
4449     fi
4450 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
4451     conftest$ac_exeext conftest.$ac_ext
4452 pcg 1.1 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4453     LIBS="$LIBS $LIBICONV"
4454     cat >conftest.$ac_ext <<_ACEOF
4455     /* confdefs.h. */
4456     _ACEOF
4457     cat confdefs.h >>conftest.$ac_ext
4458     cat >>conftest.$ac_ext <<_ACEOF
4459     /* end confdefs.h. */
4460     #include <libintl.h>
4461     extern int _nl_msg_cat_cntr;
4462     extern
4463     #ifdef __cplusplus
4464     "C"
4465     #endif
4466     const char *_nl_expand_alias ();
4467     int
4468     main ()
4469     {
4470     bindtextdomain ("", "");
4471     return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4472     ;
4473     return 0;
4474     }
4475     _ACEOF
4476     rm -f conftest.$ac_objext conftest$ac_exeext
4477     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4478 pcg 1.11 (eval $ac_link) 2>conftest.er1
4479 pcg 1.1 ac_status=$?
4480 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
4481     rm -f conftest.er1
4482     cat conftest.err >&5
4483 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484     (exit $ac_status); } &&
4485 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4486     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487     (eval $ac_try) 2>&5
4488     ac_status=$?
4489     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490     (exit $ac_status); }; } &&
4491     { ac_try='test -s conftest$ac_exeext'
4492 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493     (eval $ac_try) 2>&5
4494     ac_status=$?
4495     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496     (exit $ac_status); }; }; then
4497     LIBINTL="$LIBINTL $LIBICONV"
4498     LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4499     gt_cv_func_gnugettext1_libintl=yes
4500    
4501     else
4502     echo "$as_me: failed program was:" >&5
4503     sed 's/^/| /' conftest.$ac_ext >&5
4504    
4505     fi
4506 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
4507     conftest$ac_exeext conftest.$ac_ext
4508 pcg 1.1 fi
4509     CPPFLAGS="$gt_save_CPPFLAGS"
4510     LIBS="$gt_save_LIBS"
4511     fi
4512     echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4513     echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4514     fi
4515    
4516     if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4517     || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4518     && test "$PACKAGE" != gettext; }; then
4519     gt_use_preinstalled_gnugettext=yes
4520     else
4521     LIBINTL=
4522     LTLIBINTL=
4523     INCINTL=
4524     fi
4525    
4526    
4527    
4528     if test "$gt_use_preinstalled_gnugettext" = "yes" \
4529     || test "$nls_cv_use_gnu_gettext" = "yes"; then
4530    
4531     cat >>confdefs.h <<\_ACEOF
4532     #define ENABLE_NLS 1
4533     _ACEOF
4534    
4535     else
4536     USE_NLS=no
4537     fi
4538     fi
4539    
4540     if test "$USE_NLS" = "yes"; then
4541    
4542     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4543     if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4544     echo "$as_me:$LINENO: checking how to link with libintl" >&5
4545     echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
4546     echo "$as_me:$LINENO: result: $LIBINTL" >&5
4547     echo "${ECHO_T}$LIBINTL" >&6
4548    
4549     for element in $INCINTL; do
4550     haveit=
4551     for x in $CPPFLAGS; do
4552    
4553     acl_save_prefix="$prefix"
4554     prefix="$acl_final_prefix"
4555     acl_save_exec_prefix="$exec_prefix"
4556     exec_prefix="$acl_final_exec_prefix"
4557     eval x=\"$x\"
4558     exec_prefix="$acl_save_exec_prefix"
4559     prefix="$acl_save_prefix"
4560    
4561     if test "X$x" = "X$element"; then
4562     haveit=yes
4563     break
4564     fi
4565     done
4566     if test -z "$haveit"; then
4567     CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4568     fi
4569     done
4570    
4571     fi
4572    
4573    
4574     cat >>confdefs.h <<\_ACEOF
4575     #define HAVE_GETTEXT 1
4576     _ACEOF
4577    
4578    
4579     cat >>confdefs.h <<\_ACEOF
4580     #define HAVE_DCGETTEXT 1
4581     _ACEOF
4582    
4583     fi
4584    
4585     POSUB=po
4586     fi
4587    
4588    
4589    
4590     INTLLIBS="$LIBINTL"
4591    
4592    
4593    
4594    
4595    
4596    
4597    
4598    
4599     # Enable GNU extensions.
4600     # Define this here, not in acconfig's @TOP@ section, since definitions
4601     # in the latter don't make it into the configure-time tests.
4602    
4603     cat >>confdefs.h <<\_ACEOF
4604     #define _GNU_SOURCE 1
4605     _ACEOF
4606    
4607    
4608 pcg 1.13 # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs
4609 pcg 1.1
4610     ALL_LINGUAS=""
4611    
4612     ac_ext=c
4613     ac_cpp='$CPP $CPPFLAGS'
4614     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617     if test -n "$ac_tool_prefix"; then
4618     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4619     set dummy ${ac_tool_prefix}gcc; ac_word=$2
4620     echo "$as_me:$LINENO: checking for $ac_word" >&5
4621     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622     if test "${ac_cv_prog_CC+set}" = set; then
4623     echo $ECHO_N "(cached) $ECHO_C" >&6
4624     else
4625     if test -n "$CC"; then
4626     ac_cv_prog_CC="$CC" # Let the user override the test.
4627     else
4628     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629     for as_dir in $PATH
4630     do
4631     IFS=$as_save_IFS
4632     test -z "$as_dir" && as_dir=.
4633     for ac_exec_ext in '' $ac_executable_extensions; do
4634     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638     fi
4639     done
4640     done
4641    
4642     fi
4643     fi
4644     CC=$ac_cv_prog_CC
4645     if test -n "$CC"; then
4646     echo "$as_me:$LINENO: result: $CC" >&5
4647     echo "${ECHO_T}$CC" >&6
4648     else
4649     echo "$as_me:$LINENO: result: no" >&5
4650     echo "${ECHO_T}no" >&6
4651     fi
4652    
4653     fi
4654     if test -z "$ac_cv_prog_CC"; then
4655     ac_ct_CC=$CC
4656     # Extract the first word of "gcc", so it can be a program name with args.
4657     set dummy gcc; ac_word=$2
4658     echo "$as_me:$LINENO: checking for $ac_word" >&5
4659     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4660     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4661     echo $ECHO_N "(cached) $ECHO_C" >&6
4662     else
4663     if test -n "$ac_ct_CC"; then
4664     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4665     else
4666     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667     for as_dir in $PATH
4668     do
4669     IFS=$as_save_IFS
4670     test -z "$as_dir" && as_dir=.
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673     ac_cv_prog_ac_ct_CC="gcc"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676     fi
4677     done
4678     done
4679    
4680     fi
4681     fi
4682     ac_ct_CC=$ac_cv_prog_ac_ct_CC
4683     if test -n "$ac_ct_CC"; then
4684     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4685     echo "${ECHO_T}$ac_ct_CC" >&6
4686     else
4687     echo "$as_me:$LINENO: result: no" >&5
4688     echo "${ECHO_T}no" >&6
4689     fi
4690    
4691     CC=$ac_ct_CC
4692     else
4693     CC="$ac_cv_prog_CC"
4694     fi
4695    
4696     if test -z "$CC"; then
4697     if test -n "$ac_tool_prefix"; then
4698     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4699     set dummy ${ac_tool_prefix}cc; ac_word=$2
4700     echo "$as_me:$LINENO: checking for $ac_word" >&5
4701     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702     if test "${ac_cv_prog_CC+set}" = set; then
4703     echo $ECHO_N "(cached) $ECHO_C" >&6
4704     else
4705     if test -n "$CC"; then
4706     ac_cv_prog_CC="$CC" # Let the user override the test.
4707     else
4708     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709     for as_dir in $PATH
4710     do
4711     IFS=$as_save_IFS
4712     test -z "$as_dir" && as_dir=.
4713     for ac_exec_ext in '' $ac_executable_extensions; do
4714     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715     ac_cv_prog_CC="${ac_tool_prefix}cc"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718     fi
4719     done
4720     done
4721    
4722     fi
4723     fi
4724     CC=$ac_cv_prog_CC
4725     if test -n "$CC"; then
4726     echo "$as_me:$LINENO: result: $CC" >&5
4727     echo "${ECHO_T}$CC" >&6
4728     else
4729     echo "$as_me:$LINENO: result: no" >&5
4730     echo "${ECHO_T}no" >&6
4731     fi
4732    
4733     fi
4734     if test -z "$ac_cv_prog_CC"; then
4735     ac_ct_CC=$CC
4736     # Extract the first word of "cc", so it can be a program name with args.
4737     set dummy cc; ac_word=$2
4738     echo "$as_me:$LINENO: checking for $ac_word" >&5
4739     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4740     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4741     echo $ECHO_N "(cached) $ECHO_C" >&6
4742     else
4743     if test -n "$ac_ct_CC"; then
4744     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4745     else
4746     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747     for as_dir in $PATH
4748     do
4749     IFS=$as_save_IFS
4750     test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753     ac_cv_prog_ac_ct_CC="cc"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756     fi
4757     done
4758     done
4759    
4760     fi
4761     fi
4762     ac_ct_CC=$ac_cv_prog_ac_ct_CC
4763     if test -n "$ac_ct_CC"; then
4764     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4765     echo "${ECHO_T}$ac_ct_CC" >&6
4766     else
4767     echo "$as_me:$LINENO: result: no" >&5
4768     echo "${ECHO_T}no" >&6
4769     fi
4770    
4771     CC=$ac_ct_CC
4772     else
4773     CC="$ac_cv_prog_CC"
4774     fi
4775    
4776     fi
4777     if test -z "$CC"; then
4778     # Extract the first word of "cc", so it can be a program name with args.
4779     set dummy cc; ac_word=$2
4780     echo "$as_me:$LINENO: checking for $ac_word" >&5
4781     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782     if test "${ac_cv_prog_CC+set}" = set; then
4783     echo $ECHO_N "(cached) $ECHO_C" >&6
4784     else
4785     if test -n "$CC"; then
4786     ac_cv_prog_CC="$CC" # Let the user override the test.
4787     else
4788     ac_prog_rejected=no
4789     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790     for as_dir in $PATH
4791     do
4792     IFS=$as_save_IFS
4793     test -z "$as_dir" && as_dir=.
4794     for ac_exec_ext in '' $ac_executable_extensions; do
4795     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4797     ac_prog_rejected=yes
4798     continue
4799     fi
4800     ac_cv_prog_CC="cc"
4801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803     fi
4804     done
4805     done
4806    
4807     if test $ac_prog_rejected = yes; then
4808     # We found a bogon in the path, so make sure we never use it.
4809     set dummy $ac_cv_prog_CC
4810     shift
4811     if test $# != 0; then
4812     # We chose a different compiler from the bogus one.
4813     # However, it has the same basename, so the bogon will be chosen
4814     # first if we set CC to just the basename; use the full file name.
4815     shift
4816     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4817     fi
4818     fi
4819     fi
4820     fi
4821     CC=$ac_cv_prog_CC
4822     if test -n "$CC"; then
4823     echo "$as_me:$LINENO: result: $CC" >&5
4824     echo "${ECHO_T}$CC" >&6
4825     else
4826     echo "$as_me:$LINENO: result: no" >&5
4827     echo "${ECHO_T}no" >&6
4828     fi
4829    
4830     fi
4831     if test -z "$CC"; then
4832     if test -n "$ac_tool_prefix"; then
4833     for ac_prog in cl
4834     do
4835     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4836     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4837     echo "$as_me:$LINENO: checking for $ac_word" >&5
4838     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4839     if test "${ac_cv_prog_CC+set}" = set; then
4840     echo $ECHO_N "(cached) $ECHO_C" >&6
4841     else
4842     if test -n "$CC"; then
4843     ac_cv_prog_CC="$CC" # Let the user override the test.
4844     else
4845     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846     for as_dir in $PATH
4847     do
4848     IFS=$as_save_IFS
4849     test -z "$as_dir" && as_dir=.
4850     for ac_exec_ext in '' $ac_executable_extensions; do
4851     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854     break 2
4855     fi
4856     done
4857     done
4858    
4859     fi
4860     fi
4861     CC=$ac_cv_prog_CC
4862     if test -n "$CC"; then
4863     echo "$as_me:$LINENO: result: $CC" >&5
4864     echo "${ECHO_T}$CC" >&6
4865     else
4866     echo "$as_me:$LINENO: result: no" >&5
4867     echo "${ECHO_T}no" >&6
4868     fi
4869    
4870     test -n "$CC" && break
4871     done
4872     fi
4873     if test -z "$CC"; then
4874     ac_ct_CC=$CC
4875     for ac_prog in cl
4876     do
4877     # Extract the first word of "$ac_prog", so it can be a program name with args.
4878     set dummy $ac_prog; ac_word=$2
4879     echo "$as_me:$LINENO: checking for $ac_word" >&5
4880     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4881     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4882     echo $ECHO_N "(cached) $ECHO_C" >&6
4883     else
4884     if test -n "$ac_ct_CC"; then
4885     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4886     else
4887     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888     for as_dir in $PATH
4889     do
4890     IFS=$as_save_IFS
4891     test -z "$as_dir" && as_dir=.
4892     for ac_exec_ext in '' $ac_executable_extensions; do
4893     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894     ac_cv_prog_ac_ct_CC="$ac_prog"
4895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897     fi
4898     done
4899     done
4900    
4901     fi
4902     fi
4903     ac_ct_CC=$ac_cv_prog_ac_ct_CC
4904     if test -n "$ac_ct_CC"; then
4905     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4906     echo "${ECHO_T}$ac_ct_CC" >&6
4907     else
4908     echo "$as_me:$LINENO: result: no" >&5
4909     echo "${ECHO_T}no" >&6
4910     fi
4911    
4912     test -n "$ac_ct_CC" && break
4913     done
4914    
4915     CC=$ac_ct_CC
4916     fi
4917    
4918     fi
4919    
4920    
4921     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4922     See \`config.log' for more details." >&5
4923     echo "$as_me: error: no acceptable C compiler found in \$PATH
4924     See \`config.log' for more details." >&2;}
4925     { (exit 1); exit 1; }; }
4926    
4927     # Provide some information about the compiler.
4928     echo "$as_me:$LINENO:" \
4929     "checking for C compiler version" >&5
4930     ac_compiler=`set X $ac_compile; echo $2`
4931     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4932     (eval $ac_compiler --version </dev/null >&5) 2>&5
4933     ac_status=$?
4934     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935     (exit $ac_status); }
4936     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4937     (eval $ac_compiler -v </dev/null >&5) 2>&5
4938     ac_status=$?
4939     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940     (exit $ac_status); }
4941     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4942     (eval $ac_compiler -V </dev/null >&5) 2>&5
4943     ac_status=$?
4944     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945     (exit $ac_status); }
4946    
4947     echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4948     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4949     if test "${ac_cv_c_compiler_gnu+set}" = set; then
4950     echo $ECHO_N "(cached) $ECHO_C" >&6
4951     else
4952     cat >conftest.$ac_ext <<_ACEOF
4953     /* confdefs.h. */
4954     _ACEOF
4955     cat confdefs.h >>conftest.$ac_ext
4956     cat >>conftest.$ac_ext <<_ACEOF
4957     /* end confdefs.h. */
4958    
4959     int
4960     main ()
4961     {
4962     #ifndef __GNUC__
4963     choke me
4964     #endif
4965    
4966     ;
4967     return 0;
4968     }
4969     _ACEOF
4970     rm -f conftest.$ac_objext
4971     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 pcg 1.11 (eval $ac_compile) 2>conftest.er1
4973 pcg 1.1 ac_status=$?
4974 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
4975     rm -f conftest.er1
4976     cat conftest.err >&5
4977 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978     (exit $ac_status); } &&
4979 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4980     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981     (eval $ac_try) 2>&5
4982     ac_status=$?
4983     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984     (exit $ac_status); }; } &&
4985     { ac_try='test -s conftest.$ac_objext'
4986 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987     (eval $ac_try) 2>&5
4988     ac_status=$?
4989     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990     (exit $ac_status); }; }; then
4991     ac_compiler_gnu=yes
4992     else
4993     echo "$as_me: failed program was:" >&5
4994     sed 's/^/| /' conftest.$ac_ext >&5
4995    
4996     ac_compiler_gnu=no
4997     fi
4998 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4999 pcg 1.1 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5000    
5001     fi
5002     echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5003     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5004     GCC=`test $ac_compiler_gnu = yes && echo yes`
5005     ac_test_CFLAGS=${CFLAGS+set}
5006     ac_save_CFLAGS=$CFLAGS
5007     CFLAGS="-g"
5008     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5009     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5010     if test "${ac_cv_prog_cc_g+set}" = set; then
5011     echo $ECHO_N "(cached) $ECHO_C" >&6
5012     else
5013     cat >conftest.$ac_ext <<_ACEOF
5014     /* confdefs.h. */
5015     _ACEOF
5016     cat confdefs.h >>conftest.$ac_ext
5017     cat >>conftest.$ac_ext <<_ACEOF
5018     /* end confdefs.h. */
5019    
5020     int
5021     main ()
5022     {
5023    
5024     ;
5025     return 0;
5026     }
5027     _ACEOF
5028     rm -f conftest.$ac_objext
5029     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 pcg 1.11 (eval $ac_compile) 2>conftest.er1
5031 pcg 1.1 ac_status=$?
5032 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5033     rm -f conftest.er1
5034     cat conftest.err >&5
5035 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036     (exit $ac_status); } &&
5037 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5038     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039     (eval $ac_try) 2>&5
5040     ac_status=$?
5041     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042     (exit $ac_status); }; } &&
5043     { ac_try='test -s conftest.$ac_objext'
5044 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045     (eval $ac_try) 2>&5
5046     ac_status=$?
5047     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048     (exit $ac_status); }; }; then
5049     ac_cv_prog_cc_g=yes
5050     else
5051     echo "$as_me: failed program was:" >&5
5052     sed 's/^/| /' conftest.$ac_ext >&5
5053    
5054     ac_cv_prog_cc_g=no
5055     fi
5056 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057 pcg 1.1 fi
5058     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5059     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5060     if test "$ac_test_CFLAGS" = set; then
5061     CFLAGS=$ac_save_CFLAGS
5062     elif test $ac_cv_prog_cc_g = yes; then
5063     if test "$GCC" = yes; then
5064     CFLAGS="-g -O2"
5065     else
5066     CFLAGS="-g"
5067     fi
5068     else
5069     if test "$GCC" = yes; then
5070     CFLAGS="-O2"
5071     else
5072     CFLAGS=
5073     fi
5074     fi
5075     echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5076     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5077     if test "${ac_cv_prog_cc_stdc+set}" = set; then
5078     echo $ECHO_N "(cached) $ECHO_C" >&6
5079     else
5080     ac_cv_prog_cc_stdc=no
5081     ac_save_CC=$CC
5082     cat >conftest.$ac_ext <<_ACEOF
5083     /* confdefs.h. */
5084     _ACEOF
5085     cat confdefs.h >>conftest.$ac_ext
5086     cat >>conftest.$ac_ext <<_ACEOF
5087     /* end confdefs.h. */
5088     #include <stdarg.h>
5089     #include <stdio.h>
5090     #include <sys/types.h>
5091     #include <sys/stat.h>
5092     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5093     struct buf { int x; };
5094     FILE * (*rcsopen) (struct buf *, struct stat *, int);
5095     static char *e (p, i)
5096     char **p;
5097     int i;
5098     {
5099     return p[i];
5100     }
5101     static char *f (char * (*g) (char **, int), char **p, ...)
5102     {
5103     char *s;
5104     va_list v;
5105     va_start (v,p);
5106     s = g (p, va_arg (v,int));
5107     va_end (v);
5108     return s;
5109     }
5110 pcg 1.11
5111     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5112     function prototypes and stuff, but not '\xHH' hex character constants.
5113     These don't provoke an error unfortunately, instead are silently treated
5114     as 'x'. The following induces an error, until -std1 is added to get
5115     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5116     array size at least. It's necessary to write '\x00'==0 to get something
5117     that's true only with -std1. */
5118     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5119    
5120 pcg 1.1 int test (int i, double x);
5121     struct s1 {int (*f) (int a);};
5122     struct s2 {int (*f) (double a);};
5123     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5124     int argc;
5125     char **argv;
5126     int
5127     main ()
5128     {
5129     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5130     ;
5131     return 0;
5132     }
5133     _ACEOF
5134     # Don't try gcc -ansi; that turns off useful extensions and
5135     # breaks some systems' header files.
5136     # AIX -qlanglvl=ansi
5137     # Ultrix and OSF/1 -std1
5138     # HP-UX 10.20 and later -Ae
5139     # HP-UX older versions -Aa -D_HPUX_SOURCE
5140     # SVR4 -Xc -D__EXTENSIONS__
5141     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5142     do
5143     CC="$ac_save_CC $ac_arg"
5144     rm -f conftest.$ac_objext
5145     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5146 pcg 1.11 (eval $ac_compile) 2>conftest.er1
5147 pcg 1.1 ac_status=$?
5148 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5149     rm -f conftest.er1
5150     cat conftest.err >&5
5151 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152     (exit $ac_status); } &&
5153 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5154     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155     (eval $ac_try) 2>&5
5156     ac_status=$?
5157     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158     (exit $ac_status); }; } &&
5159     { ac_try='test -s conftest.$ac_objext'
5160 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161     (eval $ac_try) 2>&5
5162     ac_status=$?
5163     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164     (exit $ac_status); }; }; then
5165     ac_cv_prog_cc_stdc=$ac_arg
5166     break
5167     else
5168     echo "$as_me: failed program was:" >&5
5169     sed 's/^/| /' conftest.$ac_ext >&5
5170    
5171     fi
5172 pcg 1.11 rm -f conftest.err conftest.$ac_objext
5173 pcg 1.1 done
5174     rm -f conftest.$ac_ext conftest.$ac_objext
5175     CC=$ac_save_CC
5176    
5177     fi
5178    
5179     case "x$ac_cv_prog_cc_stdc" in
5180     x|xno)
5181     echo "$as_me:$LINENO: result: none needed" >&5
5182     echo "${ECHO_T}none needed" >&6 ;;
5183     *)
5184     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5185     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5186     CC="$CC $ac_cv_prog_cc_stdc" ;;
5187     esac
5188    
5189     # Some people use a C++ compiler to compile C. Since we use `exit',
5190     # in C++ we need to declare it. In case someone uses the same compiler
5191     # for both compiling C and C++ we need to have the C++ compiler decide
5192     # the declaration of exit, since it's the most demanding environment.
5193     cat >conftest.$ac_ext <<_ACEOF
5194     #ifndef __cplusplus
5195     choke me
5196     #endif
5197     _ACEOF
5198     rm -f conftest.$ac_objext
5199     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 pcg 1.11 (eval $ac_compile) 2>conftest.er1
5201 pcg 1.1 ac_status=$?
5202 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5203     rm -f conftest.er1
5204     cat conftest.err >&5
5205 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206     (exit $ac_status); } &&
5207 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5208     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209     (eval $ac_try) 2>&5
5210     ac_status=$?
5211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212     (exit $ac_status); }; } &&
5213     { ac_try='test -s conftest.$ac_objext'
5214 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215     (eval $ac_try) 2>&5
5216     ac_status=$?
5217     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218     (exit $ac_status); }; }; then
5219     for ac_declaration in \
5220     '' \
5221     'extern "C" void std::exit (int) throw (); using std::exit;' \
5222     'extern "C" void std::exit (int); using std::exit;' \
5223     'extern "C" void exit (int) throw ();' \
5224     'extern "C" void exit (int);' \
5225     'void exit (int);'
5226     do
5227     cat >conftest.$ac_ext <<_ACEOF
5228     /* confdefs.h. */
5229     _ACEOF
5230     cat confdefs.h >>conftest.$ac_ext
5231     cat >>conftest.$ac_ext <<_ACEOF
5232     /* end confdefs.h. */
5233     $ac_declaration
5234     #include <stdlib.h>
5235     int
5236     main ()
5237     {
5238     exit (42);
5239     ;
5240     return 0;
5241     }
5242     _ACEOF
5243     rm -f conftest.$ac_objext
5244     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 pcg 1.11 (eval $ac_compile) 2>conftest.er1
5246 pcg 1.1 ac_status=$?
5247 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5248     rm -f conftest.er1
5249     cat conftest.err >&5
5250 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251     (exit $ac_status); } &&
5252 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5253     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254     (eval $ac_try) 2>&5
5255     ac_status=$?
5256     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257     (exit $ac_status); }; } &&
5258     { ac_try='test -s conftest.$ac_objext'
5259 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260     (eval $ac_try) 2>&5
5261     ac_status=$?
5262     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263     (exit $ac_status); }; }; then
5264     :
5265     else
5266     echo "$as_me: failed program was:" >&5
5267     sed 's/^/| /' conftest.$ac_ext >&5
5268    
5269     continue
5270     fi
5271 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5272 pcg 1.1 cat >conftest.$ac_ext <<_ACEOF
5273     /* confdefs.h. */
5274     _ACEOF
5275     cat confdefs.h >>conftest.$ac_ext
5276     cat >>conftest.$ac_ext <<_ACEOF
5277     /* end confdefs.h. */
5278     $ac_declaration
5279     int
5280     main ()
5281     {
5282     exit (42);
5283     ;
5284     return 0;
5285     }
5286     _ACEOF
5287     rm -f conftest.$ac_objext
5288     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5289 pcg 1.11 (eval $ac_compile) 2>conftest.er1
5290 pcg 1.1 ac_status=$?
5291 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5292     rm -f conftest.er1
5293     cat conftest.err >&5
5294 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295     (exit $ac_status); } &&
5296 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5297     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298     (eval $ac_try) 2>&5
5299     ac_status=$?
5300     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301     (exit $ac_status); }; } &&
5302     { ac_try='test -s conftest.$ac_objext'
5303 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304     (eval $ac_try) 2>&5
5305     ac_status=$?
5306     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307     (exit $ac_status); }; }; then
5308     break
5309     else
5310     echo "$as_me: failed program was:" >&5
5311     sed 's/^/| /' conftest.$ac_ext >&5
5312    
5313     fi
5314 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5315 pcg 1.1 done
5316     rm -f conftest*
5317     if test -n "$ac_declaration"; then
5318     echo '#ifdef __cplusplus' >>confdefs.h
5319     echo $ac_declaration >>confdefs.h
5320     echo '#endif' >>confdefs.h
5321     fi
5322    
5323     else
5324     echo "$as_me: failed program was:" >&5
5325     sed 's/^/| /' conftest.$ac_ext >&5
5326    
5327     fi
5328 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 pcg 1.1 ac_ext=c
5330     ac_cpp='$CPP $CPPFLAGS'
5331     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334    
5335     depcc="$CC" am_compiler_list=
5336    
5337     echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5338     echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5339     if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5340     echo $ECHO_N "(cached) $ECHO_C" >&6
5341     else
5342     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5343     # We make a subdir and do the tests there. Otherwise we can end up
5344     # making bogus files that we don't know about and never remove. For
5345     # instance it was reported that on HP-UX the gcc test will end up
5346     # making a dummy file named `D' -- because `-MD' means `put the output
5347     # in D'.
5348     mkdir conftest.dir
5349     # Copy depcomp to subdir because otherwise we won't find it if we're
5350     # using a relative directory.
5351     cp "$am_depcomp" conftest.dir
5352     cd conftest.dir
5353     # We will build objects and dependencies in a subdirectory because
5354     # it helps to detect inapplicable dependency modes. For instance
5355     # both Tru64's cc and ICC support -MD to output dependencies as a
5356     # side effect of compilation, but ICC will put the dependencies in
5357     # the current directory while Tru64 will put them in the object
5358     # directory.
5359     mkdir sub
5360    
5361     am_cv_CC_dependencies_compiler_type=none
5362     if test "$am_compiler_list" = ""; then
5363     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5364     fi
5365     for depmode in $am_compiler_list; do
5366     # Setup a source with many dependencies, because some compilers
5367     # like to wrap large dependency lists on column 80 (with \), and
5368     # we should not choose a depcomp mode which is confused by this.
5369     #
5370     # We need to recreate these files for each test, as the compiler may
5371     # overwrite some of them when testing with obscure command lines.
5372     # This happens at least with the AIX C compiler.
5373     : > sub/conftest.c
5374     for i in 1 2 3 4 5 6; do
5375     echo '#include "conftst'$i'.h"' >> sub/conftest.c
5376 pcg 1.32 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5377     # Solaris 8's {/usr,}/bin/sh.
5378     touch sub/conftst$i.h
5379 pcg 1.1 done
5380     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5381    
5382     case $depmode in
5383     nosideeffect)
5384     # after this tag, mechanisms are not by side-effect, so they'll
5385     # only be used when explicitly requested
5386     if test "x$enable_dependency_tracking" = xyes; then
5387     continue
5388     else
5389     break
5390     fi
5391     ;;
5392     none) break ;;
5393     esac
5394     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5395     # mode. It turns out that the SunPro C++ compiler does not properly
5396     # handle `-M -o', and we need to detect this.
5397     if depmode=$depmode \
5398     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5399     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5400     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5401     >/dev/null 2>conftest.err &&
5402     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5403     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5404     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5405     # icc doesn't choke on unknown options, it will just issue warnings
5406 pcg 1.32 # or remarks (even with -Werror). So we grep stderr for any message
5407     # that says an option was ignored or not supported.
5408     # When given -MP, icc 7.0 and 7.1 complain thusly:
5409     # icc: Command line warning: ignoring option '-M'; no argument required
5410     # The diagnosis changed in icc 8.0:
5411     # icc: Command line remark: option '-MP' not supported
5412     if (grep 'ignoring option' conftest.err ||
5413     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5414 pcg 1.1 am_cv_CC_dependencies_compiler_type=$depmode
5415     break
5416     fi
5417     fi
5418     done
5419    
5420     cd ..
5421     rm -rf conftest.dir
5422     else
5423     am_cv_CC_dependencies_compiler_type=none
5424     fi
5425    
5426     fi
5427     echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5428     echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5429     CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5430    
5431    
5432    
5433     if
5434     test "x$enable_dependency_tracking" != xno \
5435     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5436     am__fastdepCC_TRUE=
5437     am__fastdepCC_FALSE='#'
5438     else
5439     am__fastdepCC_TRUE='#'
5440     am__fastdepCC_FALSE=
5441     fi
5442    
5443    
5444     ac_ext=c
5445     ac_cpp='$CPP $CPPFLAGS'
5446     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5449     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5450     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5451     # On Suns, sometimes $CPP names a directory.
5452     if test -n "$CPP" && test -d "$CPP"; then
5453     CPP=
5454     fi
5455     if test -z "$CPP"; then
5456     if test "${ac_cv_prog_CPP+set}" = set; then
5457     echo $ECHO_N "(cached) $ECHO_C" >&6
5458     else
5459     # Double quotes because CPP needs to be expanded
5460     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5461     do
5462     ac_preproc_ok=false
5463     for ac_c_preproc_warn_flag in '' yes
5464     do
5465     # Use a header file that comes with gcc, so configuring glibc
5466     # with a fresh cross-compiler works.
5467     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5468     # <limits.h> exists even on freestanding compilers.
5469     # On the NeXT, cc -E runs the code through the compiler's parser,
5470     # not just through cpp. "Syntax error" is here to catch this case.
5471     cat >conftest.$ac_ext <<_ACEOF
5472     /* confdefs.h. */
5473     _ACEOF
5474     cat confdefs.h >>conftest.$ac_ext
5475     cat >>conftest.$ac_ext <<_ACEOF
5476     /* end confdefs.h. */
5477     #ifdef __STDC__
5478     # include <limits.h>
5479     #else
5480     # include <assert.h>
5481     #endif
5482 pcg 1.11 Syntax error
5483 pcg 1.1 _ACEOF
5484     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5485     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5486     ac_status=$?
5487     grep -v '^ *+' conftest.er1 >conftest.err
5488     rm -f conftest.er1
5489     cat conftest.err >&5
5490     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491     (exit $ac_status); } >/dev/null; then
5492     if test -s conftest.err; then
5493     ac_cpp_err=$ac_c_preproc_warn_flag
5494 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5495 pcg 1.1 else
5496     ac_cpp_err=
5497     fi
5498     else
5499     ac_cpp_err=yes
5500     fi
5501     if test -z "$ac_cpp_err"; then
5502     :
5503     else
5504     echo "$as_me: failed program was:" >&5
5505     sed 's/^/| /' conftest.$ac_ext >&5
5506    
5507     # Broken: fails on valid input.
5508     continue
5509     fi
5510     rm -f conftest.err conftest.$ac_ext
5511    
5512     # OK, works on sane cases. Now check whether non-existent headers
5513     # can be detected and how.
5514     cat >conftest.$ac_ext <<_ACEOF
5515     /* confdefs.h. */
5516     _ACEOF
5517     cat confdefs.h >>conftest.$ac_ext
5518     cat >>conftest.$ac_ext <<_ACEOF
5519     /* end confdefs.h. */
5520     #include <ac_nonexistent.h>
5521     _ACEOF
5522     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5523     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5524     ac_status=$?
5525     grep -v '^ *+' conftest.er1 >conftest.err
5526     rm -f conftest.er1
5527     cat conftest.err >&5
5528     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529     (exit $ac_status); } >/dev/null; then
5530     if test -s conftest.err; then
5531     ac_cpp_err=$ac_c_preproc_warn_flag
5532 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5533 pcg 1.1 else
5534     ac_cpp_err=
5535     fi
5536     else
5537     ac_cpp_err=yes
5538     fi
5539     if test -z "$ac_cpp_err"; then
5540     # Broken: success on invalid input.
5541     continue
5542     else
5543     echo "$as_me: failed program was:" >&5
5544     sed 's/^/| /' conftest.$ac_ext >&5
5545    
5546     # Passes both tests.
5547     ac_preproc_ok=:
5548     break
5549     fi
5550     rm -f conftest.err conftest.$ac_ext
5551    
5552     done
5553     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554     rm -f conftest.err conftest.$ac_ext
5555     if $ac_preproc_ok; then
5556     break
5557     fi
5558    
5559     done
5560     ac_cv_prog_CPP=$CPP
5561    
5562     fi
5563     CPP=$ac_cv_prog_CPP
5564     else
5565     ac_cv_prog_CPP=$CPP
5566     fi
5567     echo "$as_me:$LINENO: result: $CPP" >&5
5568     echo "${ECHO_T}$CPP" >&6
5569     ac_preproc_ok=false
5570     for ac_c_preproc_warn_flag in '' yes
5571     do
5572     # Use a header file that comes with gcc, so configuring glibc
5573     # with a fresh cross-compiler works.
5574     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5575     # <limits.h> exists even on freestanding compilers.
5576     # On the NeXT, cc -E runs the code through the compiler's parser,
5577     # not just through cpp. "Syntax error" is here to catch this case.
5578     cat >conftest.$ac_ext <<_ACEOF
5579     /* confdefs.h. */
5580     _ACEOF
5581     cat confdefs.h >>conftest.$ac_ext
5582     cat >>conftest.$ac_ext <<_ACEOF
5583     /* end confdefs.h. */
5584     #ifdef __STDC__
5585     # include <limits.h>
5586     #else
5587     # include <assert.h>
5588     #endif
5589 pcg 1.11 Syntax error
5590 pcg 1.1 _ACEOF
5591     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5592     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5593     ac_status=$?
5594     grep -v '^ *+' conftest.er1 >conftest.err
5595     rm -f conftest.er1
5596     cat conftest.err >&5
5597     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598     (exit $ac_status); } >/dev/null; then
5599     if test -s conftest.err; then
5600     ac_cpp_err=$ac_c_preproc_warn_flag
5601 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5602 pcg 1.1 else
5603     ac_cpp_err=
5604     fi
5605     else
5606     ac_cpp_err=yes
5607     fi
5608     if test -z "$ac_cpp_err"; then
5609     :
5610     else
5611     echo "$as_me: failed program was:" >&5
5612     sed 's/^/| /' conftest.$ac_ext >&5
5613    
5614     # Broken: fails on valid input.
5615     continue
5616     fi
5617     rm -f conftest.err conftest.$ac_ext
5618    
5619     # OK, works on sane cases. Now check whether non-existent headers
5620     # can be detected and how.
5621     cat >conftest.$ac_ext <<_ACEOF
5622     /* confdefs.h. */
5623     _ACEOF
5624     cat confdefs.h >>conftest.$ac_ext
5625     cat >>conftest.$ac_ext <<_ACEOF
5626     /* end confdefs.h. */
5627     #include <ac_nonexistent.h>
5628     _ACEOF
5629     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5630     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5631     ac_status=$?
5632     grep -v '^ *+' conftest.er1 >conftest.err
5633     rm -f conftest.er1
5634     cat conftest.err >&5
5635     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636     (exit $ac_status); } >/dev/null; then
5637     if test -s conftest.err; then
5638     ac_cpp_err=$ac_c_preproc_warn_flag
5639 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5640 pcg 1.1 else
5641     ac_cpp_err=
5642     fi
5643     else
5644     ac_cpp_err=yes
5645     fi
5646     if test -z "$ac_cpp_err"; then
5647     # Broken: success on invalid input.
5648     continue
5649     else
5650     echo "$as_me: failed program was:" >&5
5651     sed 's/^/| /' conftest.$ac_ext >&5
5652    
5653     # Passes both tests.
5654     ac_preproc_ok=:
5655     break
5656     fi
5657     rm -f conftest.err conftest.$ac_ext
5658    
5659     done
5660     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5661     rm -f conftest.err conftest.$ac_ext
5662     if $ac_preproc_ok; then
5663     :
5664     else
5665     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5666     See \`config.log' for more details." >&5
5667     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5668     See \`config.log' for more details." >&2;}
5669     { (exit 1); exit 1; }; }
5670     fi
5671    
5672     ac_ext=c
5673     ac_cpp='$CPP $CPPFLAGS'
5674     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677    
5678     ac_ext=cc
5679     ac_cpp='$CXXCPP $CPPFLAGS'
5680     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5683     if test -n "$ac_tool_prefix"; then
5684     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5685     do
5686     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5687     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5688     echo "$as_me:$LINENO: checking for $ac_word" >&5
5689     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690     if test "${ac_cv_prog_CXX+set}" = set; then
5691     echo $ECHO_N "(cached) $ECHO_C" >&6
5692     else
5693     if test -n "$CXX"; then
5694     ac_cv_prog_CXX="$CXX" # Let the user override the test.
5695     else
5696     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697     for as_dir in $PATH
5698     do
5699     IFS=$as_save_IFS
5700     test -z "$as_dir" && as_dir=.
5701     for ac_exec_ext in '' $ac_executable_extensions; do
5702     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706     fi
5707     done
5708     done
5709    
5710     fi
5711     fi
5712     CXX=$ac_cv_prog_CXX
5713     if test -n "$CXX"; then
5714     echo "$as_me:$LINENO: result: $CXX" >&5
5715     echo "${ECHO_T}$CXX" >&6
5716     else
5717     echo "$as_me:$LINENO: result: no" >&5
5718     echo "${ECHO_T}no" >&6
5719     fi
5720    
5721     test -n "$CXX" && break
5722     done
5723     fi
5724     if test -z "$CXX"; then
5725     ac_ct_CXX=$CXX
5726     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5727     do
5728     # Extract the first word of "$ac_prog", so it can be a program name with args.
5729     set dummy $ac_prog; ac_word=$2
5730     echo "$as_me:$LINENO: checking for $ac_word" >&5
5731     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5733     echo $ECHO_N "(cached) $ECHO_C" >&6
5734     else
5735     if test -n "$ac_ct_CXX"; then
5736     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5737     else
5738     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739     for as_dir in $PATH
5740     do
5741     IFS=$as_save_IFS
5742     test -z "$as_dir" && as_dir=.
5743     for ac_exec_ext in '' $ac_executable_extensions; do
5744     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_prog_ac_ct_CXX="$ac_prog"
5746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748     fi
5749     done
5750     done
5751    
5752     fi
5753     fi
5754     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5755     if test -n "$ac_ct_CXX"; then
5756     echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5757     echo "${ECHO_T}$ac_ct_CXX" >&6
5758     else
5759     echo "$as_me:$LINENO: result: no" >&5
5760     echo "${ECHO_T}no" >&6
5761     fi
5762    
5763     test -n "$ac_ct_CXX" && break
5764     done
5765     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5766    
5767     CXX=$ac_ct_CXX
5768     fi
5769    
5770    
5771     # Provide some information about the compiler.
5772     echo "$as_me:$LINENO:" \
5773     "checking for C++ compiler version" >&5
5774     ac_compiler=`set X $ac_compile; echo $2`
5775     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5776     (eval $ac_compiler --version </dev/null >&5) 2>&5
5777     ac_status=$?
5778     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779     (exit $ac_status); }
5780     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5781     (eval $ac_compiler -v </dev/null >&5) 2>&5
5782     ac_status=$?
5783     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784     (exit $ac_status); }
5785     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5786     (eval $ac_compiler -V </dev/null >&5) 2>&5
5787     ac_status=$?
5788     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789     (exit $ac_status); }
5790    
5791     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5792     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5793     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5794     echo $ECHO_N "(cached) $ECHO_C" >&6
5795     else
5796     cat >conftest.$ac_ext <<_ACEOF
5797     /* confdefs.h. */
5798     _ACEOF
5799     cat confdefs.h >>conftest.$ac_ext
5800     cat >>conftest.$ac_ext <<_ACEOF
5801     /* end confdefs.h. */
5802    
5803     int
5804     main ()
5805     {
5806     #ifndef __GNUC__
5807     choke me
5808     #endif
5809    
5810     ;
5811     return 0;
5812     }
5813     _ACEOF
5814     rm -f conftest.$ac_objext
5815     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 pcg 1.11 (eval $ac_compile) 2>conftest.er1
5817 pcg 1.1 ac_status=$?
5818 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5819     rm -f conftest.er1
5820     cat conftest.err >&5
5821 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822     (exit $ac_status); } &&
5823 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5824     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825     (eval $ac_try) 2>&5
5826     ac_status=$?
5827     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828     (exit $ac_status); }; } &&
5829     { ac_try='test -s conftest.$ac_objext'
5830 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831     (eval $ac_try) 2>&5
5832     ac_status=$?
5833     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834     (exit $ac_status); }; }; then
5835     ac_compiler_gnu=yes
5836     else
5837     echo "$as_me: failed program was:" >&5
5838     sed 's/^/| /' conftest.$ac_ext >&5
5839    
5840     ac_compiler_gnu=no
5841     fi
5842 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 pcg 1.1 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5844    
5845     fi
5846     echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5847     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5848     GXX=`test $ac_compiler_gnu = yes && echo yes`
5849     ac_test_CXXFLAGS=${CXXFLAGS+set}
5850     ac_save_CXXFLAGS=$CXXFLAGS
5851     CXXFLAGS="-g"
5852     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5853     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5854     if test "${ac_cv_prog_cxx_g+set}" = set; then
5855     echo $ECHO_N "(cached) $ECHO_C" >&6
5856     else
5857     cat >conftest.$ac_ext <<_ACEOF
5858     /* confdefs.h. */
5859     _ACEOF
5860     cat confdefs.h >>conftest.$ac_ext
5861     cat >>conftest.$ac_ext <<_ACEOF
5862     /* end confdefs.h. */
5863    
5864     int
5865     main ()
5866     {
5867    
5868     ;
5869     return 0;
5870     }
5871     _ACEOF
5872     rm -f conftest.$ac_objext
5873     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 pcg 1.11 (eval $ac_compile) 2>conftest.er1
5875 pcg 1.1 ac_status=$?
5876 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5877     rm -f conftest.er1
5878     cat conftest.err >&5
5879 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880     (exit $ac_status); } &&
5881 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5882     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883     (eval $ac_try) 2>&5
5884     ac_status=$?
5885     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886     (exit $ac_status); }; } &&
5887     { ac_try='test -s conftest.$ac_objext'
5888 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889     (eval $ac_try) 2>&5
5890     ac_status=$?
5891     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892     (exit $ac_status); }; }; then
5893     ac_cv_prog_cxx_g=yes
5894     else
5895     echo "$as_me: failed program was:" >&5
5896     sed 's/^/| /' conftest.$ac_ext >&5
5897    
5898     ac_cv_prog_cxx_g=no
5899     fi
5900 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5901 pcg 1.1 fi
5902     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5903     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5904     if test "$ac_test_CXXFLAGS" = set; then
5905     CXXFLAGS=$ac_save_CXXFLAGS
5906     elif test $ac_cv_prog_cxx_g = yes; then
5907     if test "$GXX" = yes; then
5908     CXXFLAGS="-g -O2"
5909     else
5910     CXXFLAGS="-g"
5911     fi
5912     else
5913     if test "$GXX" = yes; then
5914     CXXFLAGS="-O2"
5915     else
5916     CXXFLAGS=
5917     fi
5918     fi
5919     for ac_declaration in \
5920     '' \
5921     'extern "C" void std::exit (int) throw (); using std::exit;' \
5922     'extern "C" void std::exit (int); using std::exit;' \
5923     'extern "C" void exit (int) throw ();' \
5924     'extern "C" void exit (int);' \
5925     'void exit (int);'
5926     do
5927     cat >conftest.$ac_ext <<_ACEOF
5928     /* confdefs.h. */
5929     _ACEOF
5930     cat confdefs.h >>conftest.$ac_ext
5931     cat >>conftest.$ac_ext <<_ACEOF
5932     /* end confdefs.h. */
5933     $ac_declaration
5934     #include <stdlib.h>
5935     int
5936     main ()
5937     {
5938     exit (42);
5939     ;
5940     return 0;
5941     }
5942     _ACEOF
5943     rm -f conftest.$ac_objext
5944     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5945 pcg 1.11 (eval $ac_compile) 2>conftest.er1
5946 pcg 1.1 ac_status=$?
5947 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5948     rm -f conftest.er1
5949     cat conftest.err >&5
5950 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951     (exit $ac_status); } &&
5952 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5953     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954     (eval $ac_try) 2>&5
5955     ac_status=$?
5956     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957     (exit $ac_status); }; } &&
5958     { ac_try='test -s conftest.$ac_objext'
5959 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960     (eval $ac_try) 2>&5
5961     ac_status=$?
5962     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963     (exit $ac_status); }; }; then
5964     :
5965     else
5966     echo "$as_me: failed program was:" >&5
5967     sed 's/^/| /' conftest.$ac_ext >&5
5968    
5969     continue
5970     fi
5971 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5972 pcg 1.1 cat >conftest.$ac_ext <<_ACEOF
5973     /* confdefs.h. */
5974     _ACEOF
5975     cat confdefs.h >>conftest.$ac_ext
5976     cat >>conftest.$ac_ext <<_ACEOF
5977     /* end confdefs.h. */
5978     $ac_declaration
5979     int
5980     main ()
5981     {
5982     exit (42);
5983     ;
5984     return 0;
5985     }
5986     _ACEOF
5987     rm -f conftest.$ac_objext
5988     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 pcg 1.11 (eval $ac_compile) 2>conftest.er1
5990 pcg 1.1 ac_status=$?
5991 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5992     rm -f conftest.er1
5993     cat conftest.err >&5
5994 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995     (exit $ac_status); } &&
5996 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5997     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998     (eval $ac_try) 2>&5
5999     ac_status=$?
6000     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001     (exit $ac_status); }; } &&
6002     { ac_try='test -s conftest.$ac_objext'
6003 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004     (eval $ac_try) 2>&5
6005     ac_status=$?
6006     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007     (exit $ac_status); }; }; then
6008     break
6009     else
6010     echo "$as_me: failed program was:" >&5
6011     sed 's/^/| /' conftest.$ac_ext >&5
6012    
6013     fi
6014 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 pcg 1.1 done
6016     rm -f conftest*
6017     if test -n "$ac_declaration"; then
6018     echo '#ifdef __cplusplus' >>confdefs.h
6019     echo $ac_declaration >>confdefs.h
6020     echo '#endif' >>confdefs.h
6021     fi
6022    
6023     ac_ext=c
6024     ac_cpp='$CPP $CPPFLAGS'
6025     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6026     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6028    
6029     depcc="$CXX" am_compiler_list=
6030    
6031     echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6032     echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6033     if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6034     echo $ECHO_N "(cached) $ECHO_C" >&6
6035     else
6036     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6037     # We make a subdir and do the tests there. Otherwise we can end up
6038     # making bogus files that we don't know about and never remove. For
6039     # instance it was reported that on HP-UX the gcc test will end up
6040     # making a dummy file named `D' -- because `-MD' means `put the output
6041     # in D'.
6042     mkdir conftest.dir
6043     # Copy depcomp to subdir because otherwise we won't find it if we're
6044     # using a relative directory.
6045     cp "$am_depcomp" conftest.dir
6046     cd conftest.dir
6047     # We will build objects and dependencies in a subdirectory because
6048     # it helps to detect inapplicable dependency modes. For instance
6049     # both Tru64's cc and ICC support -MD to output dependencies as a
6050     # side effect of compilation, but ICC will put the dependencies in
6051     # the current directory while Tru64 will put them in the object
6052     # directory.
6053     mkdir sub
6054    
6055     am_cv_CXX_dependencies_compiler_type=none
6056     if test "$am_compiler_list" = ""; then
6057     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6058     fi
6059     for depmode in $am_compiler_list; do
6060     # Setup a source with many dependencies, because some compilers
6061     # like to wrap large dependency lists on column 80 (with \), and
6062     # we should not choose a depcomp mode which is confused by this.
6063     #
6064     # We need to recreate these files for each test, as the compiler may
6065     # overwrite some of them when testing with obscure command lines.
6066     # This happens at least with the AIX C compiler.
6067     : > sub/conftest.c
6068     for i in 1 2 3 4 5 6; do
6069     echo '#include "conftst'$i'.h"' >> sub/conftest.c
6070 pcg 1.32 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6071     # Solaris 8's {/usr,}/bin/sh.
6072     touch sub/conftst$i.h
6073 pcg 1.1 done
6074     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6075    
6076     case $depmode in
6077     nosideeffect)
6078     # after this tag, mechanisms are not by side-effect, so they'll
6079     # only be used when explicitly requested
6080     if test "x$enable_dependency_tracking" = xyes; then
6081     continue
6082     else
6083     break
6084     fi
6085     ;;
6086     none) break ;;
6087     esac
6088     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6089     # mode. It turns out that the SunPro C++ compiler does not properly
6090     # handle `-M -o', and we need to detect this.
6091     if depmode=$depmode \
6092     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6093     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6094     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6095     >/dev/null 2>conftest.err &&
6096     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6097     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6098     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6099     # icc doesn't choke on unknown options, it will just issue warnings
6100 pcg 1.32 # or remarks (even with -Werror). So we grep stderr for any message
6101     # that says an option was ignored or not supported.
6102     # When given -MP, icc 7.0 and 7.1 complain thusly:
6103     # icc: Command line warning: ignoring option '-M'; no argument required
6104     # The diagnosis changed in icc 8.0:
6105     # icc: Command line remark: option '-MP' not supported
6106     if (grep 'ignoring option' conftest.err ||
6107     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6108 pcg 1.1 am_cv_CXX_dependencies_compiler_type=$depmode
6109     break
6110     fi
6111     fi
6112     done
6113    
6114     cd ..
6115     rm -rf conftest.dir
6116     else
6117     am_cv_CXX_dependencies_compiler_type=none
6118     fi
6119    
6120     fi
6121     echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6122     echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6123     CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6124    
6125    
6126    
6127     if
6128     test "x$enable_dependency_tracking" != xno \
6129     && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6130     am__fastdepCXX_TRUE=
6131     am__fastdepCXX_FALSE='#'
6132     else
6133     am__fastdepCXX_TRUE='#'
6134     am__fastdepCXX_FALSE=
6135     fi
6136    
6137    
6138    
6139     echo "$as_me:$LINENO: checking for egrep" >&5
6140     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6141     if test "${ac_cv_prog_egrep+set}" = set; then
6142     echo $ECHO_N "(cached) $ECHO_C" >&6
6143     else
6144     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6145     then ac_cv_prog_egrep='grep -E'
6146     else ac_cv_prog_egrep='egrep'
6147     fi
6148     fi
6149     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6150     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6151     EGREP=$ac_cv_prog_egrep
6152    
6153    
6154     if test $ac_cv_c_compiler_gnu = yes; then
6155     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6156     echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6157     if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6158     echo $ECHO_N "(cached) $ECHO_C" >&6
6159     else
6160     ac_pattern="Autoconf.*'x'"
6161     cat >conftest.$ac_ext <<_ACEOF
6162     /* confdefs.h. */
6163     _ACEOF
6164     cat confdefs.h >>conftest.$ac_ext
6165     cat >>conftest.$ac_ext <<_ACEOF
6166     /* end confdefs.h. */
6167     #include <sgtty.h>
6168     Autoconf TIOCGETP
6169     _ACEOF
6170     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6171     $EGREP "$ac_pattern" >/dev/null 2>&1; then
6172     ac_cv_prog_gcc_traditional=yes
6173     else
6174     ac_cv_prog_gcc_traditional=no
6175     fi
6176     rm -f conftest*
6177    
6178    
6179     if test $ac_cv_prog_gcc_traditional = no; then
6180     cat >conftest.$ac_ext <<_ACEOF
6181     /* confdefs.h. */
6182     _ACEOF
6183     cat confdefs.h >>conftest.$ac_ext
6184     cat >>conftest.$ac_ext <<_ACEOF
6185     /* end confdefs.h. */
6186     #include <termio.h>
6187     Autoconf TCGETA
6188     _ACEOF
6189     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6190     $EGREP "$ac_pattern" >/dev/null 2>&1; then
6191     ac_cv_prog_gcc_traditional=yes
6192     fi
6193     rm -f conftest*
6194    
6195     fi
6196     fi
6197     echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6198     echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6199     if test $ac_cv_prog_gcc_traditional = yes; then
6200     CC="$CC -traditional"
6201     fi
6202     fi
6203    
6204     for ac_prog in gawk mawk nawk awk
6205     do
6206     # Extract the first word of "$ac_prog", so it can be a program name with args.
6207     set dummy $ac_prog; ac_word=$2
6208     echo "$as_me:$LINENO: checking for $ac_word" >&5
6209     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210     if test "${ac_cv_prog_AWK+set}" = set; then
6211     echo $ECHO_N "(cached) $ECHO_C" >&6
6212     else
6213     if test -n "$AWK"; then
6214     ac_cv_prog_AWK="$AWK" # Let the user override the test.
6215     else
6216     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217     for as_dir in $PATH
6218     do
6219     IFS=$as_save_IFS
6220     test -z "$as_dir" && as_dir=.
6221     for ac_exec_ext in '' $ac_executable_extensions; do
6222     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223     ac_cv_prog_AWK="$ac_prog"
6224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226     fi
6227     done
6228     done
6229    
6230     fi
6231     fi
6232     AWK=$ac_cv_prog_AWK
6233     if test -n "$AWK"; then
6234     echo "$as_me:$LINENO: result: $AWK" >&5
6235     echo "${ECHO_T}$AWK" >&6
6236     else
6237     echo "$as_me:$LINENO: result: no" >&5
6238     echo "${ECHO_T}no" >&6
6239     fi
6240    
6241     test -n "$AWK" && break
6242     done
6243    
6244     # Find a good install program. We prefer a C program (faster),
6245     # so one script is as good as another. But avoid the broken or
6246     # incompatible versions:
6247     # SysV /etc/install, /usr/sbin/install
6248     # SunOS /usr/etc/install
6249     # IRIX /sbin/install
6250     # AIX /bin/install
6251     # AmigaOS /C/install, which installs bootblocks on floppy discs
6252     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6253     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6254     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6255 pcg 1.11 # OS/2's system install, which has a completely different semantic
6256 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
6257     echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6258     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6259     if test -z "$INSTALL"; then
6260     if test "${ac_cv_path_install+set}" = set; then
6261     echo $ECHO_N "(cached) $ECHO_C" >&6
6262     else
6263     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264     for as_dir in $PATH
6265     do
6266     IFS=$as_save_IFS
6267     test -z "$as_dir" && as_dir=.
6268     # Account for people who put trailing slashes in PATH elements.
6269     case $as_dir/ in
6270     ./ | .// | /cC/* | \
6271     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6272 pcg 1.11 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6273 pcg 1.1 /usr/ucb/* ) ;;
6274     *)
6275     # OSF1 and SCO ODT 3.0 have their own names for install.
6276     # Don't use installbsd from OSF since it installs stuff as root
6277     # by default.
6278     for ac_prog in ginstall scoinst install; do
6279     for ac_exec_ext in '' $ac_executable_extensions; do
6280 pcg 1.11 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6281     if test $ac_prog = install &&
6282     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6283     # AIX install. It has an incompatible calling convention.
6284     :
6285     elif test $ac_prog = install &&
6286     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6287     # program-specific install script used by HP pwplus--don't use.
6288     :
6289     else
6290     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6291     break 3
6292     fi
6293     fi
6294 pcg 1.1 done
6295     done
6296     ;;
6297     esac
6298     done
6299    
6300    
6301     fi
6302     if test "${ac_cv_path_install+set}" = set; then
6303     INSTALL=$ac_cv_path_install
6304     else
6305     # As a last resort, use the slow shell script. We don't cache a
6306     # path for INSTALL within a source directory, because that will
6307     # break other packages using the cache if that directory is
6308     # removed, or if the path is relative.
6309     INSTALL=$ac_install_sh
6310     fi
6311     fi
6312     echo "$as_me:$LINENO: result: $INSTALL" >&5
6313     echo "${ECHO_T}$INSTALL" >&6
6314    
6315     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6316     # It thinks the first close brace ends the variable substitution.
6317     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6318    
6319     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6320    
6321     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6322    
6323     echo "$as_me:$LINENO: checking whether ln -s works" >&5
6324     echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6325     LN_S=$as_ln_s
6326     if test "$LN_S" = "ln -s"; then
6327     echo "$as_me:$LINENO: result: yes" >&5
6328     echo "${ECHO_T}yes" >&6
6329     else
6330     echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6331     echo "${ECHO_T}no, using $LN_S" >&6
6332     fi
6333    
6334     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6335     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6336 pcg 1.11 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6337 pcg 1.1 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6338     echo $ECHO_N "(cached) $ECHO_C" >&6
6339     else
6340     cat >conftest.make <<\_ACEOF
6341     all:
6342     @echo 'ac_maketemp="$(MAKE)"'
6343     _ACEOF
6344     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6345     eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6346     if test -n "$ac_maketemp"; then
6347     eval ac_cv_prog_make_${ac_make}_set=yes
6348     else
6349     eval ac_cv_prog_make_${ac_make}_set=no
6350     fi
6351     rm -f conftest.make
6352     fi
6353     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6354     echo "$as_me:$LINENO: result: yes" >&5
6355     echo "${ECHO_T}yes" >&6
6356     SET_MAKE=
6357     else
6358     echo "$as_me:$LINENO: result: no" >&5
6359     echo "${ECHO_T}no" >&6
6360     SET_MAKE="MAKE=${MAKE-make}"
6361     fi
6362    
6363     if test -n "$ac_tool_prefix"; then
6364     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6365     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6366     echo "$as_me:$LINENO: checking for $ac_word" >&5
6367     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6368     if test "${ac_cv_prog_RANLIB+set}" = set; then
6369     echo $ECHO_N "(cached) $ECHO_C" >&6
6370     else
6371     if test -n "$RANLIB"; then
6372     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6373     else
6374     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375     for as_dir in $PATH
6376     do
6377     IFS=$as_save_IFS
6378     test -z "$as_dir" && as_dir=.
6379     for ac_exec_ext in '' $ac_executable_extensions; do
6380     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383     break 2
6384     fi
6385     done
6386     done
6387    
6388     fi
6389     fi
6390     RANLIB=$ac_cv_prog_RANLIB
6391     if test -n "$RANLIB"; then
6392     echo "$as_me:$LINENO: result: $RANLIB" >&5
6393     echo "${ECHO_T}$RANLIB" >&6
6394     else
6395     echo "$as_me:$LINENO: result: no" >&5
6396     echo "${ECHO_T}no" >&6
6397     fi
6398    
6399     fi
6400     if test -z "$ac_cv_prog_RANLIB"; then
6401     ac_ct_RANLIB=$RANLIB
6402     # Extract the first word of "ranlib", so it can be a program name with args.
6403     set dummy ranlib; ac_word=$2
6404     echo "$as_me:$LINENO: checking for $ac_word" >&5
6405     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6406     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6407     echo $ECHO_N "(cached) $ECHO_C" >&6
6408     else
6409     if test -n "$ac_ct_RANLIB"; then
6410     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6411     else
6412     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413     for as_dir in $PATH
6414     do
6415     IFS=$as_save_IFS
6416     test -z "$as_dir" && as_dir=.
6417     for ac_exec_ext in '' $ac_executable_extensions; do
6418     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419     ac_cv_prog_ac_ct_RANLIB="ranlib"
6420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421     break 2
6422     fi
6423     done
6424     done
6425    
6426     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6427     fi
6428     fi
6429     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6430     if test -n "$ac_ct_RANLIB"; then
6431     echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6432     echo "${ECHO_T}$ac_ct_RANLIB" >&6
6433     else
6434     echo "$as_me:$LINENO: result: no" >&5
6435     echo "${ECHO_T}no" >&6
6436     fi
6437    
6438     RANLIB=$ac_ct_RANLIB
6439     else
6440     RANLIB="$ac_cv_prog_RANLIB"
6441     fi
6442    
6443    
6444     # Check whether --enable-iftype or --disable-iftype was given.
6445     if test "${enable_iftype+set}" = set; then
6446     enableval="$enable_iftype"
6447    
6448     IFTYPE=`echo $enableval | sed s%/.*%%`
6449     IFSUBTYPE=`echo $enableval | sed s%.*/%%`
6450    
6451    
6452     fi;
6453    
6454     echo "$as_me:$LINENO: checking for kernel networking interface type" >&5
6455     echo $ECHO_N "checking for kernel networking interface type... $ECHO_C" >&6
6456    
6457     if test "x$IFTYPE" = "x"; then
6458     case $target_os in
6459     *linux*)
6460     IFTYPE=native
6461     IFSUBTYPE=linux
6462    
6463     cat >>confdefs.h <<\_ACEOF
6464     #define HAVE_LINUX 1
6465     _ACEOF
6466    
6467     ;;
6468     *freebsd*)
6469     IFTYPE=tincd
6470     IFSUBTYPE=freebsd
6471    
6472     cat >>confdefs.h <<\_ACEOF
6473     #define HAVE_FREEBSD 1
6474     _ACEOF
6475    
6476     ;;
6477     *darwin*)
6478 pcg 1.27 IFTYPE=native
6479 pcg 1.1 IFSUBTYPE=darwin
6480    
6481     cat >>confdefs.h <<\_ACEOF
6482     #define HAVE_DARWIN 1
6483     _ACEOF
6484    
6485     ;;
6486     *solaris*)
6487     IFTYPE=tincd
6488     IFSUBTYPE=solaris
6489    
6490     cat >>confdefs.h <<\_ACEOF
6491     #define HAVE_SOLARIS 1
6492     _ACEOF
6493    
6494     ;;
6495     *openbsd*)
6496     IFTYPE=tincd
6497     IFSUBTYPE=openbsd
6498    
6499     cat >>confdefs.h <<\_ACEOF
6500     #define HAVE_OPENBSD 1
6501     _ACEOF
6502    
6503     ;;
6504     *netbsd*)
6505     IFTYPE=tincd
6506     IFSUBTYPE=netbsd
6507    
6508     cat >>confdefs.h <<\_ACEOF
6509     #define HAVE_NETBSD 1
6510     _ACEOF
6511    
6512     ;;
6513     *cygwin*)
6514 pcg 1.6 IFTYPE=native
6515 pcg 1.1 IFSUBTYPE=cygwin
6516    
6517     cat >>confdefs.h <<\_ACEOF
6518     #define HAVE_CYGWIN 1
6519     _ACEOF
6520    
6521     ;;
6522     *)
6523     { { echo "$as_me:$LINENO: error: \"Unknown operating system.\"" >&5
6524     echo "$as_me: error: \"Unknown operating system.\"" >&2;}
6525     { (exit 1); exit 1; }; }
6526     ;;
6527     esac
6528     fi
6529     echo "$as_me:$LINENO: result: $IFTYPE/$IFSUBTYPE" >&5
6530     echo "${ECHO_T}$IFTYPE/$IFSUBTYPE" >&6
6531     IFTYPE=$IFTYPE
6532    
6533     IFSUBTYPE=$IFSUBTYPE
6534    
6535    
6536 pcg 1.9 cat >>confdefs.h <<_ACEOF
6537     #define IFTYPE "$IFTYPE"
6538     _ACEOF
6539    
6540    
6541     cat >>confdefs.h <<_ACEOF
6542     #define IFSUBTYPE "$IFSUBTYPE"
6543     _ACEOF
6544    
6545    
6546 pcg 1.1 cat >confcache <<\_ACEOF
6547     # This file is a shell script that caches the results of configure
6548     # tests run on this system so they can be shared between configure
6549     # scripts and configure runs, see configure's option --config-cache.
6550     # It is not useful on other systems. If it contains results you don't
6551     # want to keep, you may remove or edit it.
6552     #
6553     # config.status only pays attention to the cache file if you give it
6554     # the --recheck option to rerun configure.
6555     #
6556     # `ac_cv_env_foo' variables (set or unset) will be overridden when
6557     # loading this file, other *unset* `ac_cv_foo' will be assigned the
6558     # following values.
6559    
6560     _ACEOF
6561    
6562     # The following way of writing the cache mishandles newlines in values,
6563     # but we know of no workaround that is simple, portable, and efficient.
6564     # So, don't put newlines in cache variables' values.
6565     # Ultrix sh set writes to stderr and can't be redirected directly,
6566     # and sets the high bit in the cache file unless we assign to the vars.
6567     {
6568     (set) 2>&1 |
6569     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6570     *ac_space=\ *)
6571     # `set' does not quote correctly, so add quotes (double-quote
6572     # substitution turns \\\\ into \\, and sed turns \\ into \).
6573     sed -n \
6574 pcg 1.11 "s/'/'\\\\''/g;
6575     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6576 pcg 1.1 ;;
6577     *)
6578     # `set' quotes correctly as required by POSIX, so do not add quotes.
6579     sed -n \
6580 pcg 1.11 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6581 pcg 1.1 ;;
6582     esac;
6583     } |
6584     sed '
6585     t clear
6586     : clear
6587     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6588     t end
6589     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6590     : end' >>confcache
6591     if diff $cache_file confcache >/dev/null 2>&1; then :; else
6592     if test -w $cache_file; then
6593     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6594     cat confcache >$cache_file
6595     else
6596     echo "not updating unwritable cache $cache_file"
6597     fi
6598     fi
6599     rm -f confcache
6600    
6601    
6602     ac_ext=cc
6603     ac_cpp='$CXXCPP $CPPFLAGS'
6604     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6606     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6607    
6608    
6609     ac_ext=cc
6610     ac_cpp='$CXXCPP $CPPFLAGS'
6611     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6612     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6613     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6614     echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6615     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6616     if test -z "$CXXCPP"; then
6617     if test "${ac_cv_prog_CXXCPP+set}" = set; then
6618     echo $ECHO_N "(cached) $ECHO_C" >&6
6619     else
6620     # Double quotes because CXXCPP needs to be expanded
6621     for CXXCPP in "$CXX -E" "/lib/cpp"
6622     do
6623     ac_preproc_ok=false
6624     for ac_cxx_preproc_warn_flag in '' yes
6625     do
6626     # Use a header file that comes with gcc, so configuring glibc
6627     # with a fresh cross-compiler works.
6628     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6629     # <limits.h> exists even on freestanding compilers.
6630     # On the NeXT, cc -E runs the code through the compiler's parser,
6631     # not just through cpp. "Syntax error" is here to catch this case.
6632     cat >conftest.$ac_ext <<_ACEOF
6633     /* confdefs.h. */
6634     _ACEOF
6635     cat confdefs.h >>conftest.$ac_ext
6636     cat >>conftest.$ac_ext <<_ACEOF
6637     /* end confdefs.h. */
6638     #ifdef __STDC__
6639     # include <limits.h>
6640     #else
6641     # include <assert.h>
6642     #endif
6643 pcg 1.11 Syntax error
6644 pcg 1.1 _ACEOF
6645     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6646     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6647     ac_status=$?
6648     grep -v '^ *+' conftest.er1 >conftest.err
6649     rm -f conftest.er1
6650     cat conftest.err >&5
6651     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652     (exit $ac_status); } >/dev/null; then
6653     if test -s conftest.err; then
6654     ac_cpp_err=$ac_cxx_preproc_warn_flag
6655 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6656 pcg 1.1 else
6657     ac_cpp_err=
6658     fi
6659     else
6660     ac_cpp_err=yes
6661     fi
6662     if test -z "$ac_cpp_err"; then
6663     :
6664     else
6665     echo "$as_me: failed program was:" >&5
6666     sed 's/^/| /' conftest.$ac_ext >&5
6667    
6668     # Broken: fails on valid input.
6669     continue
6670     fi
6671     rm -f conftest.err conftest.$ac_ext
6672    
6673     # OK, works on sane cases. Now check whether non-existent headers
6674     # can be detected and how.
6675     cat >conftest.$ac_ext <<_ACEOF
6676     /* confdefs.h. */
6677     _ACEOF
6678     cat confdefs.h >>conftest.$ac_ext
6679     cat >>conftest.$ac_ext <<_ACEOF
6680     /* end confdefs.h. */
6681     #include <ac_nonexistent.h>
6682     _ACEOF
6683     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6684     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6685     ac_status=$?
6686     grep -v '^ *+' conftest.er1 >conftest.err
6687     rm -f conftest.er1
6688     cat conftest.err >&5
6689     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690     (exit $ac_status); } >/dev/null; then
6691     if test -s conftest.err; then
6692     ac_cpp_err=$ac_cxx_preproc_warn_flag
6693 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6694 pcg 1.1 else
6695     ac_cpp_err=
6696     fi
6697     else
6698     ac_cpp_err=yes
6699     fi
6700     if test -z "$ac_cpp_err"; then
6701     # Broken: success on invalid input.
6702     continue
6703     else
6704     echo "$as_me: failed program was:" >&5
6705     sed 's/^/| /' conftest.$ac_ext >&5
6706    
6707     # Passes both tests.
6708     ac_preproc_ok=:
6709     break
6710     fi
6711     rm -f conftest.err conftest.$ac_ext
6712    
6713     done
6714     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6715     rm -f conftest.err conftest.$ac_ext
6716     if $ac_preproc_ok; then
6717     break
6718     fi
6719    
6720     done
6721     ac_cv_prog_CXXCPP=$CXXCPP
6722    
6723     fi
6724     CXXCPP=$ac_cv_prog_CXXCPP
6725     else
6726     ac_cv_prog_CXXCPP=$CXXCPP
6727     fi
6728     echo "$as_me:$LINENO: result: $CXXCPP" >&5
6729     echo "${ECHO_T}$CXXCPP" >&6
6730     ac_preproc_ok=false
6731     for ac_cxx_preproc_warn_flag in '' yes
6732     do
6733     # Use a header file that comes with gcc, so configuring glibc
6734     # with a fresh cross-compiler works.
6735     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6736     # <limits.h> exists even on freestanding compilers.
6737     # On the NeXT, cc -E runs the code through the compiler's parser,
6738     # not just through cpp. "Syntax error" is here to catch this case.
6739     cat >conftest.$ac_ext <<_ACEOF
6740     /* confdefs.h. */
6741     _ACEOF
6742     cat confdefs.h >>conftest.$ac_ext
6743     cat >>conftest.$ac_ext <<_ACEOF
6744     /* end confdefs.h. */
6745     #ifdef __STDC__
6746     # include <limits.h>
6747     #else
6748     # include <assert.h>
6749     #endif
6750 pcg 1.11 Syntax error
6751 pcg 1.1 _ACEOF
6752     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6753     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6754     ac_status=$?
6755     grep -v '^ *+' conftest.er1 >conftest.err
6756     rm -f conftest.er1
6757     cat conftest.err >&5
6758     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759     (exit $ac_status); } >/dev/null; then
6760     if test -s conftest.err; then
6761     ac_cpp_err=$ac_cxx_preproc_warn_flag
6762 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6763 pcg 1.1 else
6764     ac_cpp_err=
6765     fi
6766     else
6767     ac_cpp_err=yes
6768     fi
6769     if test -z "$ac_cpp_err"; then
6770     :
6771     else
6772     echo "$as_me: failed program was:" >&5
6773     sed 's/^/| /' conftest.$ac_ext >&5
6774    
6775     # Broken: fails on valid input.
6776     continue
6777     fi
6778     rm -f conftest.err conftest.$ac_ext
6779    
6780     # OK, works on sane cases. Now check whether non-existent headers
6781     # can be detected and how.
6782     cat >conftest.$ac_ext <<_ACEOF
6783     /* confdefs.h. */
6784     _ACEOF
6785     cat confdefs.h >>conftest.$ac_ext
6786     cat >>conftest.$ac_ext <<_ACEOF
6787     /* end confdefs.h. */
6788     #include <ac_nonexistent.h>
6789     _ACEOF
6790     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6791     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6792     ac_status=$?
6793     grep -v '^ *+' conftest.er1 >conftest.err
6794     rm -f conftest.er1
6795     cat conftest.err >&5
6796     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797     (exit $ac_status); } >/dev/null; then
6798     if test -s conftest.err; then
6799     ac_cpp_err=$ac_cxx_preproc_warn_flag
6800 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6801 pcg 1.1 else
6802     ac_cpp_err=
6803     fi
6804     else
6805     ac_cpp_err=yes
6806     fi
6807     if test -z "$ac_cpp_err"; then
6808     # Broken: success on invalid input.
6809     continue
6810     else
6811     echo "$as_me: failed program was:" >&5
6812     sed 's/^/| /' conftest.$ac_ext >&5
6813    
6814     # Passes both tests.
6815     ac_preproc_ok=:
6816     break
6817     fi
6818     rm -f conftest.err conftest.$ac_ext
6819    
6820     done
6821     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6822     rm -f conftest.err conftest.$ac_ext
6823     if $ac_preproc_ok; then
6824     :
6825     else
6826     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6827     See \`config.log' for more details." >&5
6828     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6829     See \`config.log' for more details." >&2;}
6830     { (exit 1); exit 1; }; }
6831     fi
6832    
6833     ac_ext=cc
6834     ac_cpp='$CXXCPP $CPPFLAGS'
6835     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6838    
6839    
6840     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6841     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6842     if test "${ac_cv_header_stdc+set}" = set; then
6843     echo $ECHO_N "(cached) $ECHO_C" >&6
6844     else
6845     cat >conftest.$ac_ext <<_ACEOF
6846     /* confdefs.h. */
6847     _ACEOF
6848     cat confdefs.h >>conftest.$ac_ext
6849     cat >>conftest.$ac_ext <<_ACEOF
6850     /* end confdefs.h. */
6851     #include <stdlib.h>
6852     #include <stdarg.h>
6853     #include <string.h>
6854     #include <float.h>
6855    
6856     int
6857     main ()
6858     {
6859    
6860     ;
6861     return 0;
6862     }
6863     _ACEOF
6864     rm -f conftest.$ac_objext
6865     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 pcg 1.11 (eval $ac_compile) 2>conftest.er1
6867 pcg 1.1 ac_status=$?
6868 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
6869     rm -f conftest.er1
6870     cat conftest.err >&5
6871 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872     (exit $ac_status); } &&
6873 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6874     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875     (eval $ac_try) 2>&5
6876     ac_status=$?
6877     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878     (exit $ac_status); }; } &&
6879     { ac_try='test -s conftest.$ac_objext'
6880 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881     (eval $ac_try) 2>&5
6882     ac_status=$?
6883     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884     (exit $ac_status); }; }; then
6885     ac_cv_header_stdc=yes
6886     else
6887     echo "$as_me: failed program was:" >&5
6888     sed 's/^/| /' conftest.$ac_ext >&5
6889    
6890     ac_cv_header_stdc=no
6891     fi
6892 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6893 pcg 1.1
6894     if test $ac_cv_header_stdc = yes; then
6895     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6896     cat >conftest.$ac_ext <<_ACEOF
6897     /* confdefs.h. */
6898     _ACEOF
6899     cat confdefs.h >>conftest.$ac_ext
6900     cat >>conftest.$ac_ext <<_ACEOF
6901     /* end confdefs.h. */
6902     #include <string.h>
6903    
6904     _ACEOF
6905     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6906     $EGREP "memchr" >/dev/null 2>&1; then
6907     :
6908     else
6909     ac_cv_header_stdc=no
6910     fi
6911     rm -f conftest*
6912    
6913     fi
6914    
6915     if test $ac_cv_header_stdc = yes; then
6916     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6917     cat >conftest.$ac_ext <<_ACEOF
6918     /* confdefs.h. */
6919     _ACEOF
6920     cat confdefs.h >>conftest.$ac_ext
6921     cat >>conftest.$ac_ext <<_ACEOF
6922     /* end confdefs.h. */
6923     #include <stdlib.h>
6924    
6925     _ACEOF
6926     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6927     $EGREP "free" >/dev/null 2>&1; then
6928     :
6929     else
6930     ac_cv_header_stdc=no
6931     fi
6932     rm -f conftest*
6933    
6934     fi
6935    
6936     if test $ac_cv_header_stdc = yes; then
6937     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6938     if test "$cross_compiling" = yes; then
6939     :
6940     else
6941     cat >conftest.$ac_ext <<_ACEOF
6942     /* confdefs.h. */
6943     _ACEOF
6944     cat confdefs.h >>conftest.$ac_ext
6945     cat >>conftest.$ac_ext <<_ACEOF
6946     /* end confdefs.h. */
6947     #include <ctype.h>
6948     #if ((' ' & 0x0FF) == 0x020)
6949     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6950     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6951     #else
6952     # define ISLOWER(c) \
6953 pcg 1.11 (('a' <= (c) && (c) <= 'i') \
6954     || ('j' <= (c) && (c) <= 'r') \
6955     || ('s' <= (c) && (c) <= 'z'))
6956 pcg 1.1 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6957     #endif
6958    
6959     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6960     int
6961     main ()
6962     {
6963     int i;
6964     for (i = 0; i < 256; i++)
6965     if (XOR (islower (i), ISLOWER (i))
6966 pcg 1.11 || toupper (i) != TOUPPER (i))
6967 pcg 1.1 exit(2);
6968     exit (0);
6969     }
6970     _ACEOF
6971     rm -f conftest$ac_exeext
6972     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973     (eval $ac_link) 2>&5
6974     ac_status=$?
6975     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6977     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978     (eval $ac_try) 2>&5
6979     ac_status=$?
6980     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981     (exit $ac_status); }; }; then
6982     :
6983     else
6984     echo "$as_me: program exited with status $ac_status" >&5
6985     echo "$as_me: failed program was:" >&5
6986     sed 's/^/| /' conftest.$ac_ext >&5
6987    
6988     ( exit $ac_status )
6989     ac_cv_header_stdc=no
6990     fi
6991     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6992     fi
6993     fi
6994     fi
6995     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6996     echo "${ECHO_T}$ac_cv_header_stdc" >&6
6997     if test $ac_cv_header_stdc = yes; then
6998    
6999     cat >>confdefs.h <<\_ACEOF
7000     #define STDC_HEADERS 1
7001     _ACEOF
7002    
7003     fi
7004    
7005     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7006    
7007    
7008    
7009    
7010    
7011    
7012    
7013    
7014    
7015     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7016 pcg 1.11 inttypes.h stdint.h unistd.h
7017 pcg 1.1 do
7018     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7019     echo "$as_me:$LINENO: checking for $ac_header" >&5
7020     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7021     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7022     echo $ECHO_N "(cached) $ECHO_C" >&6
7023     else
7024     cat >conftest.$ac_ext <<_ACEOF
7025     /* confdefs.h. */
7026     _ACEOF
7027     cat confdefs.h >>conftest.$ac_ext
7028     cat >>conftest.$ac_ext <<_ACEOF
7029     /* end confdefs.h. */
7030     $ac_includes_default
7031    
7032     #include <$ac_header>
7033     _ACEOF
7034     rm -f conftest.$ac_objext
7035     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7037 pcg 1.1 ac_status=$?
7038 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7039     rm -f conftest.er1
7040     cat conftest.err >&5
7041 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042     (exit $ac_status); } &&
7043 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7044     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045     (eval $ac_try) 2>&5
7046     ac_status=$?
7047     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048     (exit $ac_status); }; } &&
7049     { ac_try='test -s conftest.$ac_objext'
7050 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051     (eval $ac_try) 2>&5
7052     ac_status=$?
7053     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054     (exit $ac_status); }; }; then
7055     eval "$as_ac_Header=yes"
7056     else
7057     echo "$as_me: failed program was:" >&5
7058     sed 's/^/| /' conftest.$ac_ext >&5
7059    
7060     eval "$as_ac_Header=no"
7061     fi
7062 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063 pcg 1.1 fi
7064     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7065     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7066     if test `eval echo '${'$as_ac_Header'}'` = yes; then
7067     cat >>confdefs.h <<_ACEOF
7068     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7069     _ACEOF
7070    
7071     fi
7072    
7073     done
7074    
7075    
7076    
7077 pcg 1.26
7078     for ac_header in ext/hash_map clocale
7079 pcg 1.1 do
7080     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7081     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7082     echo "$as_me:$LINENO: checking for $ac_header" >&5
7083     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7084     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085     echo $ECHO_N "(cached) $ECHO_C" >&6
7086     fi
7087     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7088     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089     else
7090     # Is the header compilable?
7091     echo "$as_me:$LINENO: checking $ac_header usability" >&5
7092     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7093     cat >conftest.$ac_ext <<_ACEOF
7094     /* confdefs.h. */
7095     _ACEOF
7096     cat confdefs.h >>conftest.$ac_ext
7097     cat >>conftest.$ac_ext <<_ACEOF
7098     /* end confdefs.h. */
7099     $ac_includes_default
7100     #include <$ac_header>
7101     _ACEOF
7102     rm -f conftest.$ac_objext
7103     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7105 pcg 1.1 ac_status=$?
7106 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7107     rm -f conftest.er1
7108     cat conftest.err >&5
7109 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110     (exit $ac_status); } &&
7111 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7112     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113     (eval $ac_try) 2>&5
7114     ac_status=$?
7115     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116     (exit $ac_status); }; } &&
7117     { ac_try='test -s conftest.$ac_objext'
7118 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119     (eval $ac_try) 2>&5
7120     ac_status=$?
7121     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122     (exit $ac_status); }; }; then
7123     ac_header_compiler=yes
7124     else
7125     echo "$as_me: failed program was:" >&5
7126     sed 's/^/| /' conftest.$ac_ext >&5
7127    
7128     ac_header_compiler=no
7129     fi
7130 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7131 pcg 1.1 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7132     echo "${ECHO_T}$ac_header_compiler" >&6
7133    
7134     # Is the header present?
7135     echo "$as_me:$LINENO: checking $ac_header presence" >&5
7136     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7137     cat >conftest.$ac_ext <<_ACEOF
7138     /* confdefs.h. */
7139     _ACEOF
7140     cat confdefs.h >>conftest.$ac_ext
7141     cat >>conftest.$ac_ext <<_ACEOF
7142     /* end confdefs.h. */
7143     #include <$ac_header>
7144     _ACEOF
7145     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7146     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7147     ac_status=$?
7148     grep -v '^ *+' conftest.er1 >conftest.err
7149     rm -f conftest.er1
7150     cat conftest.err >&5
7151     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152     (exit $ac_status); } >/dev/null; then
7153     if test -s conftest.err; then
7154     ac_cpp_err=$ac_cxx_preproc_warn_flag
7155 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7156 pcg 1.1 else
7157     ac_cpp_err=
7158     fi
7159     else
7160     ac_cpp_err=yes
7161     fi
7162     if test -z "$ac_cpp_err"; then
7163     ac_header_preproc=yes
7164     else
7165     echo "$as_me: failed program was:" >&5
7166     sed 's/^/| /' conftest.$ac_ext >&5
7167    
7168     ac_header_preproc=no
7169     fi
7170     rm -f conftest.err conftest.$ac_ext
7171     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7172     echo "${ECHO_T}$ac_header_preproc" >&6
7173    
7174     # So? What about this header?
7175 pcg 1.11 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7176     yes:no: )
7177 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7178     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7179 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7180     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7181     ac_header_preproc=yes
7182 pcg 1.1 ;;
7183 pcg 1.11 no:yes:* )
7184 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7185     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7186 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7187     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7189     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7190     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7191     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7192 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7193     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7194 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7195     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7196 pcg 1.1 (
7197     cat <<\_ASBOX
7198 pcg 1.11 ## ------------------------------------------ ##
7199     ## Report this to the AC_PACKAGE_NAME lists. ##
7200     ## ------------------------------------------ ##
7201 pcg 1.1 _ASBOX
7202     ) |
7203     sed "s/^/$as_me: WARNING: /" >&2
7204     ;;
7205     esac
7206     echo "$as_me:$LINENO: checking for $ac_header" >&5
7207     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7208     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7209     echo $ECHO_N "(cached) $ECHO_C" >&6
7210     else
7211 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
7212 pcg 1.1 fi
7213     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7214     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7215    
7216     fi
7217     if test `eval echo '${'$as_ac_Header'}'` = yes; then
7218     cat >>confdefs.h <<_ACEOF
7219     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7220     _ACEOF
7221    
7222     fi
7223    
7224     done
7225    
7226    
7227    
7228    
7229    
7230    
7231    
7232    
7233    
7234    
7235    
7236    
7237    
7238    
7239    
7240    
7241    
7242    
7243     for ac_header in fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
7244 pcg 1.13 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \
7245 pcg 1.11 sys/mman.h netinet/in.h
7246 pcg 1.1 do
7247     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7248     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249     echo "$as_me:$LINENO: checking for $ac_header" >&5
7250     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7251     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7252     echo $ECHO_N "(cached) $ECHO_C" >&6
7253     fi
7254     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7255     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7256     else
7257     # Is the header compilable?
7258     echo "$as_me:$LINENO: checking $ac_header usability" >&5
7259     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7260     cat >conftest.$ac_ext <<_ACEOF
7261     /* confdefs.h. */
7262     _ACEOF
7263     cat confdefs.h >>conftest.$ac_ext
7264     cat >>conftest.$ac_ext <<_ACEOF
7265     /* end confdefs.h. */
7266     $ac_includes_default
7267     #include <$ac_header>
7268     _ACEOF
7269     rm -f conftest.$ac_objext
7270     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7272 pcg 1.1 ac_status=$?
7273 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7274     rm -f conftest.er1
7275     cat conftest.err >&5
7276 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277     (exit $ac_status); } &&
7278 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7279     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280     (eval $ac_try) 2>&5
7281     ac_status=$?
7282     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283     (exit $ac_status); }; } &&
7284     { ac_try='test -s conftest.$ac_objext'
7285 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286     (eval $ac_try) 2>&5
7287     ac_status=$?
7288     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289     (exit $ac_status); }; }; then
7290     ac_header_compiler=yes
7291     else
7292     echo "$as_me: failed program was:" >&5
7293     sed 's/^/| /' conftest.$ac_ext >&5
7294    
7295     ac_header_compiler=no
7296     fi
7297 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298 pcg 1.1 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7299     echo "${ECHO_T}$ac_header_compiler" >&6
7300    
7301     # Is the header present?
7302     echo "$as_me:$LINENO: checking $ac_header presence" >&5
7303     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7304     cat >conftest.$ac_ext <<_ACEOF
7305     /* confdefs.h. */
7306     _ACEOF
7307     cat confdefs.h >>conftest.$ac_ext
7308     cat >>conftest.$ac_ext <<_ACEOF
7309     /* end confdefs.h. */
7310     #include <$ac_header>
7311     _ACEOF
7312     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7313     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7314     ac_status=$?
7315     grep -v '^ *+' conftest.er1 >conftest.err
7316     rm -f conftest.er1
7317     cat conftest.err >&5
7318     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319     (exit $ac_status); } >/dev/null; then
7320     if test -s conftest.err; then
7321     ac_cpp_err=$ac_cxx_preproc_warn_flag
7322 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7323 pcg 1.1 else
7324     ac_cpp_err=
7325     fi
7326     else
7327     ac_cpp_err=yes
7328     fi
7329     if test -z "$ac_cpp_err"; then
7330     ac_header_preproc=yes
7331     else
7332     echo "$as_me: failed program was:" >&5
7333     sed 's/^/| /' conftest.$ac_ext >&5
7334    
7335     ac_header_preproc=no
7336     fi
7337     rm -f conftest.err conftest.$ac_ext
7338     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7339     echo "${ECHO_T}$ac_header_preproc" >&6
7340    
7341     # So? What about this header?
7342 pcg 1.11 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7343     yes:no: )
7344 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7345     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7346 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7347     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7348     ac_header_preproc=yes
7349 pcg 1.1 ;;
7350 pcg 1.11 no:yes:* )
7351 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7352     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7353 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7354     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7356     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7357     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7358     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7359 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7360     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7361 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7362     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7363 pcg 1.1 (
7364     cat <<\_ASBOX
7365 pcg 1.11 ## ------------------------------------------ ##
7366     ## Report this to the AC_PACKAGE_NAME lists. ##
7367     ## ------------------------------------------ ##
7368 pcg 1.1 _ASBOX
7369     ) |
7370     sed "s/^/$as_me: WARNING: /" >&2
7371     ;;
7372     esac
7373     echo "$as_me:$LINENO: checking for $ac_header" >&5
7374     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376     echo $ECHO_N "(cached) $ECHO_C" >&6
7377     else
7378 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
7379 pcg 1.1 fi
7380     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7381     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7382    
7383     fi
7384     if test `eval echo '${'$as_ac_Header'}'` = yes; then
7385     cat >>confdefs.h <<_ACEOF
7386     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7387     _ACEOF
7388    
7389     fi
7390    
7391     done
7392    
7393    
7394    
7395    
7396    
7397    
7398 pcg 1.13
7399     for ac_header in arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h
7400 pcg 1.1 do
7401     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7402     echo "$as_me:$LINENO: checking for $ac_header" >&5
7403     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7404     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7405     echo $ECHO_N "(cached) $ECHO_C" >&6
7406     else
7407     cat >conftest.$ac_ext <<_ACEOF
7408     /* confdefs.h. */
7409     _ACEOF
7410     cat confdefs.h >>conftest.$ac_ext
7411     cat >>conftest.$ac_ext <<_ACEOF
7412     /* end confdefs.h. */
7413    
7414     #include <sys/types.h>
7415     #include <sys/socket.h>
7416     #ifdef HAVE_NETINET_IN_H
7417     # include <netinet/in.h>
7418     #endif
7419     #ifdef HAVE_ARPA_INET_H
7420     # include <arpa/inet.h>
7421     #endif
7422     #ifdef HAVE_NETINET_IN_SYSTM_H
7423     # include <netinet/in_systm.h>
7424     #endif
7425    
7426    
7427     #include <$ac_header>
7428     _ACEOF
7429     rm -f conftest.$ac_objext
7430     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7432 pcg 1.1 ac_status=$?
7433 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7434     rm -f conftest.er1
7435     cat conftest.err >&5
7436 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437     (exit $ac_status); } &&
7438 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7439     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440     (eval $ac_try) 2>&5
7441     ac_status=$?
7442     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443     (exit $ac_status); }; } &&
7444     { ac_try='test -s conftest.$ac_objext'
7445 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446     (eval $ac_try) 2>&5
7447     ac_status=$?
7448     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449     (exit $ac_status); }; }; then
7450     eval "$as_ac_Header=yes"
7451     else
7452     echo "$as_me: failed program was:" >&5
7453     sed 's/^/| /' conftest.$ac_ext >&5
7454    
7455     eval "$as_ac_Header=no"
7456     fi
7457 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7458 pcg 1.1 fi
7459     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7460     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7461     if test `eval echo '${'$as_ac_Header'}'` = yes; then
7462     cat >>confdefs.h <<_ACEOF
7463     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464     _ACEOF
7465    
7466     fi
7467    
7468     done
7469    
7470    
7471     echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7472     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7473     if test "${ac_cv_c_const+set}" = set; then
7474     echo $ECHO_N "(cached) $ECHO_C" >&6
7475     else
7476     cat >conftest.$ac_ext <<_ACEOF
7477     /* confdefs.h. */
7478     _ACEOF
7479     cat confdefs.h >>conftest.$ac_ext
7480     cat >>conftest.$ac_ext <<_ACEOF
7481     /* end confdefs.h. */
7482    
7483     int
7484     main ()
7485     {
7486     /* FIXME: Include the comments suggested by Paul. */
7487     #ifndef __cplusplus
7488     /* Ultrix mips cc rejects this. */
7489     typedef int charset[2];
7490     const charset x;
7491     /* SunOS 4.1.1 cc rejects this. */
7492     char const *const *ccp;
7493     char **p;
7494     /* NEC SVR4.0.2 mips cc rejects this. */
7495     struct point {int x, y;};
7496     static struct point const zero = {0,0};
7497     /* AIX XL C 1.02.0.0 rejects this.
7498     It does not let you subtract one const X* pointer from another in
7499     an arm of an if-expression whose if-part is not a constant
7500     expression */
7501     const char *g = "string";
7502     ccp = &g + (g ? g-g : 0);
7503     /* HPUX 7.0 cc rejects these. */
7504     ++ccp;
7505     p = (char**) ccp;
7506     ccp = (char const *const *) p;
7507     { /* SCO 3.2v4 cc rejects this. */
7508     char *t;
7509     char const *s = 0 ? (char *) 0 : (char const *) 0;
7510    
7511     *t++ = 0;
7512     }
7513     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7514     int x[] = {25, 17};
7515     const int *foo = &x[0];
7516     ++foo;
7517     }
7518     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7519     typedef const int *iptr;
7520     iptr p = 0;
7521     ++p;
7522     }
7523     { /* AIX XL C 1.02.0.0 rejects this saying
7524     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7525     struct s { int j; const int *ap[3]; };
7526     struct s *b; b->j = 5;
7527     }
7528     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7529     const int foo = 10;
7530     }
7531     #endif
7532    
7533     ;
7534     return 0;
7535     }
7536     _ACEOF
7537     rm -f conftest.$ac_objext
7538     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7540 pcg 1.1 ac_status=$?
7541 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7542     rm -f conftest.er1
7543     cat conftest.err >&5
7544 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545     (exit $ac_status); } &&
7546 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7547     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548     (eval $ac_try) 2>&5
7549     ac_status=$?
7550     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551     (exit $ac_status); }; } &&
7552     { ac_try='test -s conftest.$ac_objext'
7553 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554     (eval $ac_try) 2>&5
7555     ac_status=$?
7556     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557     (exit $ac_status); }; }; then
7558     ac_cv_c_const=yes
7559     else
7560     echo "$as_me: failed program was:" >&5
7561     sed 's/^/| /' conftest.$ac_ext >&5
7562    
7563     ac_cv_c_const=no
7564     fi
7565 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7566 pcg 1.1 fi
7567     echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7568     echo "${ECHO_T}$ac_cv_c_const" >&6
7569     if test $ac_cv_c_const = no; then
7570    
7571     cat >>confdefs.h <<\_ACEOF
7572     #define const
7573     _ACEOF
7574    
7575     fi
7576    
7577     echo "$as_me:$LINENO: checking for pid_t" >&5
7578     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7579     if test "${ac_cv_type_pid_t+set}" = set; then
7580     echo $ECHO_N "(cached) $ECHO_C" >&6
7581     else
7582     cat >conftest.$ac_ext <<_ACEOF
7583     /* confdefs.h. */
7584     _ACEOF
7585     cat confdefs.h >>conftest.$ac_ext
7586     cat >>conftest.$ac_ext <<_ACEOF
7587     /* end confdefs.h. */
7588     $ac_includes_default
7589     int
7590     main ()
7591     {
7592     if ((pid_t *) 0)
7593     return 0;
7594     if (sizeof (pid_t))
7595     return 0;
7596     ;
7597     return 0;
7598     }
7599     _ACEOF
7600     rm -f conftest.$ac_objext
7601     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7603 pcg 1.1 ac_status=$?
7604 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7605     rm -f conftest.er1
7606     cat conftest.err >&5
7607 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608     (exit $ac_status); } &&
7609 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7610     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611     (eval $ac_try) 2>&5
7612     ac_status=$?
7613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614     (exit $ac_status); }; } &&
7615     { ac_try='test -s conftest.$ac_objext'
7616 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617     (eval $ac_try) 2>&5
7618     ac_status=$?
7619     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620     (exit $ac_status); }; }; then
7621     ac_cv_type_pid_t=yes
7622     else
7623     echo "$as_me: failed program was:" >&5
7624     sed 's/^/| /' conftest.$ac_ext >&5
7625    
7626     ac_cv_type_pid_t=no
7627     fi
7628 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629 pcg 1.1 fi
7630     echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7631     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7632     if test $ac_cv_type_pid_t = yes; then
7633     :
7634     else
7635    
7636     cat >>confdefs.h <<_ACEOF
7637     #define pid_t int
7638     _ACEOF
7639    
7640     fi
7641    
7642     echo "$as_me:$LINENO: checking for size_t" >&5
7643     echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7644     if test "${ac_cv_type_size_t+set}" = set; then
7645     echo $ECHO_N "(cached) $ECHO_C" >&6
7646     else
7647     cat >conftest.$ac_ext <<_ACEOF
7648     /* confdefs.h. */
7649     _ACEOF
7650     cat confdefs.h >>conftest.$ac_ext
7651     cat >>conftest.$ac_ext <<_ACEOF
7652     /* end confdefs.h. */
7653     $ac_includes_default
7654     int
7655     main ()
7656     {
7657     if ((size_t *) 0)
7658     return 0;
7659     if (sizeof (size_t))
7660     return 0;
7661     ;
7662     return 0;
7663     }
7664     _ACEOF
7665     rm -f conftest.$ac_objext
7666     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7668 pcg 1.1 ac_status=$?
7669 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7670     rm -f conftest.er1
7671     cat conftest.err >&5
7672 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673     (exit $ac_status); } &&
7674 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7675     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676     (eval $ac_try) 2>&5
7677     ac_status=$?
7678     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679     (exit $ac_status); }; } &&
7680     { ac_try='test -s conftest.$ac_objext'
7681 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682     (eval $ac_try) 2>&5
7683     ac_status=$?
7684     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685     (exit $ac_status); }; }; then
7686     ac_cv_type_size_t=yes
7687     else
7688     echo "$as_me: failed program was:" >&5
7689     sed 's/^/| /' conftest.$ac_ext >&5
7690    
7691     ac_cv_type_size_t=no
7692     fi
7693 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7694 pcg 1.1 fi
7695     echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7696     echo "${ECHO_T}$ac_cv_type_size_t" >&6
7697     if test $ac_cv_type_size_t = yes; then
7698     :
7699     else
7700    
7701     cat >>confdefs.h <<_ACEOF
7702     #define size_t unsigned
7703     _ACEOF
7704    
7705     fi
7706    
7707     echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7708     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7709     if test "${ac_cv_header_time+set}" = set; then
7710     echo $ECHO_N "(cached) $ECHO_C" >&6
7711     else
7712     cat >conftest.$ac_ext <<_ACEOF
7713     /* confdefs.h. */
7714     _ACEOF
7715     cat confdefs.h >>conftest.$ac_ext
7716     cat >>conftest.$ac_ext <<_ACEOF
7717     /* end confdefs.h. */
7718     #include <sys/types.h>
7719     #include <sys/time.h>
7720     #include <time.h>
7721    
7722     int
7723     main ()
7724     {
7725     if ((struct tm *) 0)
7726     return 0;
7727     ;
7728     return 0;
7729     }
7730     _ACEOF
7731     rm -f conftest.$ac_objext
7732     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7733 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7734 pcg 1.1 ac_status=$?
7735 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7736     rm -f conftest.er1
7737     cat conftest.err >&5
7738 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739     (exit $ac_status); } &&
7740 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7741     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742     (eval $ac_try) 2>&5
7743     ac_status=$?
7744     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745     (exit $ac_status); }; } &&
7746     { ac_try='test -s conftest.$ac_objext'
7747 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748     (eval $ac_try) 2>&5
7749     ac_status=$?
7750     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751     (exit $ac_status); }; }; then
7752     ac_cv_header_time=yes
7753     else
7754     echo "$as_me: failed program was:" >&5
7755     sed 's/^/| /' conftest.$ac_ext >&5
7756    
7757     ac_cv_header_time=no
7758     fi
7759 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7760 pcg 1.1 fi
7761     echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7762     echo "${ECHO_T}$ac_cv_header_time" >&6
7763     if test $ac_cv_header_time = yes; then
7764    
7765     cat >>confdefs.h <<\_ACEOF
7766     #define TIME_WITH_SYS_TIME 1
7767     _ACEOF
7768    
7769     fi
7770    
7771     echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7772     echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7773     if test "${ac_cv_struct_tm+set}" = set; then
7774     echo $ECHO_N "(cached) $ECHO_C" >&6
7775     else
7776     cat >conftest.$ac_ext <<_ACEOF
7777     /* confdefs.h. */
7778     _ACEOF
7779     cat confdefs.h >>conftest.$ac_ext
7780     cat >>conftest.$ac_ext <<_ACEOF
7781     /* end confdefs.h. */
7782     #include <sys/types.h>
7783     #include <time.h>
7784    
7785     int
7786     main ()
7787     {
7788     struct tm *tp; tp->tm_sec;
7789     ;
7790     return 0;
7791     }
7792     _ACEOF
7793     rm -f conftest.$ac_objext
7794     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7796 pcg 1.1 ac_status=$?
7797 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7798     rm -f conftest.er1
7799     cat conftest.err >&5
7800 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801     (exit $ac_status); } &&
7802 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7803     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804     (eval $ac_try) 2>&5
7805     ac_status=$?
7806     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807     (exit $ac_status); }; } &&
7808     { ac_try='test -s conftest.$ac_objext'
7809 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810     (eval $ac_try) 2>&5
7811     ac_status=$?
7812     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813     (exit $ac_status); }; }; then
7814     ac_cv_struct_tm=time.h
7815     else
7816     echo "$as_me: failed program was:" >&5
7817     sed 's/^/| /' conftest.$ac_ext >&5
7818    
7819     ac_cv_struct_tm=sys/time.h
7820     fi
7821 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822 pcg 1.1 fi
7823     echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7824     echo "${ECHO_T}$ac_cv_struct_tm" >&6
7825     if test $ac_cv_struct_tm = sys/time.h; then
7826    
7827     cat >>confdefs.h <<\_ACEOF
7828     #define TM_IN_SYS_TIME 1
7829     _ACEOF
7830    
7831     fi
7832    
7833    
7834     echo "$as_me:$LINENO: checking for socklen_t" >&5
7835     echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
7836     if test "${ac_cv_type_socklen_t+set}" = set; then
7837     echo $ECHO_N "(cached) $ECHO_C" >&6
7838     else
7839    
7840     cat >conftest.$ac_ext <<_ACEOF
7841     /* confdefs.h. */
7842     _ACEOF
7843     cat confdefs.h >>conftest.$ac_ext
7844     cat >>conftest.$ac_ext <<_ACEOF
7845     /* end confdefs.h. */
7846     #include <sys/types.h>
7847     #include <sys/socket.h>
7848     int
7849     main ()
7850     {
7851     socklen_t len = 42; return len;
7852     ;
7853     return 0;
7854     }
7855     _ACEOF
7856     rm -f conftest.$ac_objext
7857     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7859 pcg 1.1 ac_status=$?
7860 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7861     rm -f conftest.er1
7862     cat conftest.err >&5
7863 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864     (exit $ac_status); } &&
7865 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7866     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867     (eval $ac_try) 2>&5
7868     ac_status=$?
7869     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870     (exit $ac_status); }; } &&
7871     { ac_try='test -s conftest.$ac_objext'
7872 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873     (eval $ac_try) 2>&5
7874     ac_status=$?
7875     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876     (exit $ac_status); }; }; then
7877     ac_cv_type_socklen_t=yes
7878     else
7879     echo "$as_me: failed program was:" >&5
7880     sed 's/^/| /' conftest.$ac_ext >&5
7881    
7882     ac_cv_type_socklen_t=no
7883     fi
7884 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7885 pcg 1.1
7886     fi
7887     echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7888     echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
7889     if test $ac_cv_type_socklen_t = yes; then
7890    
7891     cat >>confdefs.h <<\_ACEOF
7892     #define HAVE_SOCKLEN_T 1
7893     _ACEOF
7894    
7895     fi
7896    
7897     echo "$as_me:$LINENO: checking for struct addrinfo" >&5
7898     echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
7899     if test "${ac_cv_struct_addrinfo+set}" = set; then
7900     echo $ECHO_N "(cached) $ECHO_C" >&6
7901     else
7902    
7903     cat >conftest.$ac_ext <<_ACEOF
7904     /* confdefs.h. */
7905     _ACEOF
7906     cat confdefs.h >>conftest.$ac_ext
7907     cat >>conftest.$ac_ext <<_ACEOF
7908     /* end confdefs.h. */
7909     #include <sys/types.h>
7910     #include <sys/socket.h>
7911     #include <netdb.h>
7912     int
7913     main ()
7914     {
7915     struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family;
7916     ;
7917     return 0;
7918     }
7919     _ACEOF
7920     rm -f conftest.$ac_objext
7921     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7922 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7923 pcg 1.1 ac_status=$?
7924 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7925     rm -f conftest.er1
7926     cat conftest.err >&5
7927 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928     (exit $ac_status); } &&
7929 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7930     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931     (eval $ac_try) 2>&5
7932     ac_status=$?
7933     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934     (exit $ac_status); }; } &&
7935     { ac_try='test -s conftest.$ac_objext'
7936 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937     (eval $ac_try) 2>&5
7938     ac_status=$?
7939     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940     (exit $ac_status); }; }; then
7941     ac_cv_struct_addrinfo=yes
7942     else
7943     echo "$as_me: failed program was:" >&5
7944     sed 's/^/| /' conftest.$ac_ext >&5
7945    
7946     ac_cv_struct_addrinfo=no
7947     fi
7948 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7949 pcg 1.1
7950     fi
7951     echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
7952     echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
7953     if test $ac_cv_struct_addrinfo = yes; then
7954    
7955     cat >>confdefs.h <<\_ACEOF
7956     #define HAVE_STRUCT_ADDRINFO 1
7957     _ACEOF
7958    
7959     fi
7960    
7961     echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7962     echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7963     if test "${ac_cv_type_signal+set}" = set; then
7964     echo $ECHO_N "(cached) $ECHO_C" >&6
7965     else
7966     cat >conftest.$ac_ext <<_ACEOF
7967     /* confdefs.h. */
7968     _ACEOF
7969     cat confdefs.h >>conftest.$ac_ext
7970     cat >>conftest.$ac_ext <<_ACEOF
7971     /* end confdefs.h. */
7972     #include <sys/types.h>
7973     #include <signal.h>
7974     #ifdef signal
7975     # undef signal
7976     #endif
7977     #ifdef __cplusplus
7978     extern "C" void (*signal (int, void (*)(int)))(int);
7979     #else
7980     void (*signal ()) ();
7981     #endif
7982    
7983     int
7984     main ()
7985     {
7986     int i;
7987     ;
7988     return 0;
7989     }
7990     _ACEOF
7991     rm -f conftest.$ac_objext
7992     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993 pcg 1.11 (eval $ac_compile) 2>conftest.er1
7994 pcg 1.1 ac_status=$?
7995 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7996     rm -f conftest.er1
7997     cat conftest.err >&5
7998 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999     (exit $ac_status); } &&
8000 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
8006     { ac_try='test -s conftest.$ac_objext'
8007 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008     (eval $ac_try) 2>&5
8009     ac_status=$?
8010     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011     (exit $ac_status); }; }; then
8012     ac_cv_type_signal=void
8013     else
8014     echo "$as_me: failed program was:" >&5
8015     sed 's/^/| /' conftest.$ac_ext >&5
8016    
8017     ac_cv_type_signal=int
8018     fi
8019 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020 pcg 1.1 fi
8021     echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8022     echo "${ECHO_T}$ac_cv_type_signal" >&6
8023    
8024     cat >>confdefs.h <<_ACEOF
8025     #define RETSIGTYPE $ac_cv_type_signal
8026     _ACEOF
8027    
8028    
8029    
8030     ac_ext=c
8031     ac_cpp='$CPP $CPPFLAGS'
8032     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035    
8036    
8037     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8038     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8039     if test "${ac_cv_header_stdc+set}" = set; then
8040     echo $ECHO_N "(cached) $ECHO_C" >&6
8041     else
8042     cat >conftest.$ac_ext <<_ACEOF
8043     /* confdefs.h. */
8044     _ACEOF
8045     cat confdefs.h >>conftest.$ac_ext
8046     cat >>conftest.$ac_ext <<_ACEOF
8047     /* end confdefs.h. */
8048     #include <stdlib.h>
8049     #include <stdarg.h>
8050     #include <string.h>
8051     #include <float.h>
8052    
8053     int
8054     main ()
8055     {
8056    
8057     ;
8058     return 0;
8059     }
8060     _ACEOF
8061     rm -f conftest.$ac_objext
8062     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8063 pcg 1.11 (eval $ac_compile) 2>conftest.er1
8064 pcg 1.1 ac_status=$?
8065 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8066     rm -f conftest.er1
8067     cat conftest.err >&5
8068 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069     (exit $ac_status); } &&
8070 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8071     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072     (eval $ac_try) 2>&5
8073     ac_status=$?
8074     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075     (exit $ac_status); }; } &&
8076     { ac_try='test -s conftest.$ac_objext'
8077 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078     (eval $ac_try) 2>&5
8079     ac_status=$?
8080     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081     (exit $ac_status); }; }; then
8082     ac_cv_header_stdc=yes
8083     else
8084     echo "$as_me: failed program was:" >&5
8085     sed 's/^/| /' conftest.$ac_ext >&5
8086    
8087     ac_cv_header_stdc=no
8088     fi
8089 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8090 pcg 1.1
8091     if test $ac_cv_header_stdc = yes; then
8092     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8093     cat >conftest.$ac_ext <<_ACEOF
8094     /* confdefs.h. */
8095     _ACEOF
8096     cat confdefs.h >>conftest.$ac_ext
8097     cat >>conftest.$ac_ext <<_ACEOF
8098     /* end confdefs.h. */
8099     #include <string.h>
8100    
8101     _ACEOF
8102     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8103     $EGREP "memchr" >/dev/null 2>&1; then
8104     :
8105     else
8106     ac_cv_header_stdc=no
8107     fi
8108     rm -f conftest*
8109    
8110     fi
8111    
8112     if test $ac_cv_header_stdc = yes; then
8113     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8114     cat >conftest.$ac_ext <<_ACEOF
8115     /* confdefs.h. */
8116     _ACEOF
8117     cat confdefs.h >>conftest.$ac_ext
8118     cat >>conftest.$ac_ext <<_ACEOF
8119     /* end confdefs.h. */
8120     #include <stdlib.h>
8121    
8122     _ACEOF
8123     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8124     $EGREP "free" >/dev/null 2>&1; then
8125     :
8126     else
8127     ac_cv_header_stdc=no
8128     fi
8129     rm -f conftest*
8130    
8131     fi
8132    
8133     if test $ac_cv_header_stdc = yes; then
8134     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8135     if test "$cross_compiling" = yes; then
8136     :
8137     else
8138     cat >conftest.$ac_ext <<_ACEOF
8139     /* confdefs.h. */
8140     _ACEOF
8141     cat confdefs.h >>conftest.$ac_ext
8142     cat >>conftest.$ac_ext <<_ACEOF
8143     /* end confdefs.h. */
8144     #include <ctype.h>
8145     #if ((' ' & 0x0FF) == 0x020)
8146     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8147     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8148     #else
8149     # define ISLOWER(c) \
8150 pcg 1.11 (('a' <= (c) && (c) <= 'i') \
8151     || ('j' <= (c) && (c) <= 'r') \
8152     || ('s' <= (c) && (c) <= 'z'))
8153 pcg 1.1 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8154     #endif
8155    
8156     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157     int
8158     main ()
8159     {
8160     int i;
8161     for (i = 0; i < 256; i++)
8162     if (XOR (islower (i), ISLOWER (i))
8163 pcg 1.11 || toupper (i) != TOUPPER (i))
8164 pcg 1.1 exit(2);
8165     exit (0);
8166     }
8167     _ACEOF
8168     rm -f conftest$ac_exeext
8169     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170     (eval $ac_link) 2>&5
8171     ac_status=$?
8172     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8174     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175     (eval $ac_try) 2>&5
8176     ac_status=$?
8177     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178     (exit $ac_status); }; }; then
8179     :
8180     else
8181     echo "$as_me: program exited with status $ac_status" >&5
8182     echo "$as_me: failed program was:" >&5
8183     sed 's/^/| /' conftest.$ac_ext >&5
8184    
8185     ( exit $ac_status )
8186     ac_cv_header_stdc=no
8187     fi
8188     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8189     fi
8190     fi
8191     fi
8192     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8193     echo "${ECHO_T}$ac_cv_header_stdc" >&6
8194     if test $ac_cv_header_stdc = yes; then
8195    
8196     cat >>confdefs.h <<\_ACEOF
8197     #define STDC_HEADERS 1
8198     _ACEOF
8199    
8200     fi
8201    
8202    
8203    
8204    
8205    
8206    
8207    
8208    
8209    
8210    
8211    
8212    
8213 pcg 1.11 for ac_func in asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall
8214 pcg 1.1 do
8215     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8216     echo "$as_me:$LINENO: checking for $ac_func" >&5
8217     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8218     if eval "test \"\${$as_ac_var+set}\" = set"; then
8219     echo $ECHO_N "(cached) $ECHO_C" >&6
8220     else
8221     cat >conftest.$ac_ext <<_ACEOF
8222     /* confdefs.h. */
8223     _ACEOF
8224     cat confdefs.h >>conftest.$ac_ext
8225     cat >>conftest.$ac_ext <<_ACEOF
8226     /* end confdefs.h. */
8227 pcg 1.11 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8228     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8229     #define $ac_func innocuous_$ac_func
8230    
8231 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
8232     which can conflict with char $ac_func (); below.
8233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8234     <limits.h> exists even on freestanding compilers. */
8235 pcg 1.11
8236 pcg 1.1 #ifdef __STDC__
8237     # include <limits.h>
8238     #else
8239     # include <assert.h>
8240     #endif
8241 pcg 1.11
8242     #undef $ac_func
8243    
8244 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
8245     #ifdef __cplusplus
8246     extern "C"
8247     {
8248     #endif
8249     /* We use char because int might match the return type of a gcc2
8250     builtin and then its argument prototype would still apply. */
8251     char $ac_func ();
8252     /* The GNU C library defines this for functions which it implements
8253     to always fail with ENOSYS. Some functions are actually named
8254     something starting with __ and the normal name is an alias. */
8255     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8256     choke me
8257     #else
8258     char (*f) () = $ac_func;
8259     #endif
8260     #ifdef __cplusplus
8261     }
8262     #endif
8263    
8264     int
8265     main ()
8266     {
8267     return f != $ac_func;
8268     ;
8269     return 0;
8270     }
8271     _ACEOF
8272     rm -f conftest.$ac_objext conftest$ac_exeext
8273     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 pcg 1.11 (eval $ac_link) 2>conftest.er1
8275 pcg 1.1 ac_status=$?
8276 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8277     rm -f conftest.er1
8278     cat conftest.err >&5
8279 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280     (exit $ac_status); } &&
8281 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8282     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283     (eval $ac_try) 2>&5
8284     ac_status=$?
8285     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286     (exit $ac_status); }; } &&
8287     { ac_try='test -s conftest$ac_exeext'
8288 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289     (eval $ac_try) 2>&5
8290     ac_status=$?
8291     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292     (exit $ac_status); }; }; then
8293     eval "$as_ac_var=yes"
8294     else
8295     echo "$as_me: failed program was:" >&5
8296     sed 's/^/| /' conftest.$ac_ext >&5
8297    
8298     eval "$as_ac_var=no"
8299     fi
8300 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
8301     conftest$ac_exeext conftest.$ac_ext
8302 pcg 1.1 fi
8303     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8304     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8305     if test `eval echo '${'$as_ac_var'}'` = yes; then
8306     cat >>confdefs.h <<_ACEOF
8307     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8308     _ACEOF
8309    
8310     fi
8311     done
8312    
8313    
8314     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8315     # for constant arguments. Useless!
8316     echo "$as_me:$LINENO: checking for working alloca.h" >&5
8317     echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8318     if test "${ac_cv_working_alloca_h+set}" = set; then
8319     echo $ECHO_N "(cached) $ECHO_C" >&6
8320     else
8321     cat >conftest.$ac_ext <<_ACEOF
8322     /* confdefs.h. */
8323     _ACEOF
8324     cat confdefs.h >>conftest.$ac_ext
8325     cat >>conftest.$ac_ext <<_ACEOF
8326     /* end confdefs.h. */
8327     #include <alloca.h>
8328     int
8329     main ()
8330     {
8331     char *p = (char *) alloca (2 * sizeof (int));
8332     ;
8333     return 0;
8334     }
8335     _ACEOF
8336     rm -f conftest.$ac_objext conftest$ac_exeext
8337     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 pcg 1.11 (eval $ac_link) 2>conftest.er1
8339 pcg 1.1 ac_status=$?
8340 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8341     rm -f conftest.er1
8342     cat conftest.err >&5
8343 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344     (exit $ac_status); } &&
8345 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8346     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347     (eval $ac_try) 2>&5
8348     ac_status=$?
8349     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350     (exit $ac_status); }; } &&
8351     { ac_try='test -s conftest$ac_exeext'
8352 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353     (eval $ac_try) 2>&5
8354     ac_status=$?
8355     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356     (exit $ac_status); }; }; then
8357     ac_cv_working_alloca_h=yes
8358     else
8359     echo "$as_me: failed program was:" >&5
8360     sed 's/^/| /' conftest.$ac_ext >&5
8361    
8362     ac_cv_working_alloca_h=no
8363     fi
8364 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
8365     conftest$ac_exeext conftest.$ac_ext
8366 pcg 1.1 fi
8367     echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8368     echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8369     if test $ac_cv_working_alloca_h = yes; then
8370    
8371     cat >>confdefs.h <<\_ACEOF
8372     #define HAVE_ALLOCA_H 1
8373     _ACEOF
8374    
8375     fi
8376    
8377     echo "$as_me:$LINENO: checking for alloca" >&5
8378     echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8379     if test "${ac_cv_func_alloca_works+set}" = set; then
8380     echo $ECHO_N "(cached) $ECHO_C" >&6
8381     else
8382     cat >conftest.$ac_ext <<_ACEOF
8383     /* confdefs.h. */
8384     _ACEOF
8385     cat confdefs.h >>conftest.$ac_ext
8386     cat >>conftest.$ac_ext <<_ACEOF
8387     /* end confdefs.h. */
8388     #ifdef __GNUC__
8389     # define alloca __builtin_alloca
8390     #else
8391     # ifdef _MSC_VER
8392     # include <malloc.h>
8393     # define alloca _alloca
8394     # else
8395     # if HAVE_ALLOCA_H
8396     # include <alloca.h>
8397     # else
8398     # ifdef _AIX
8399     #pragma alloca
8400     # else
8401     # ifndef alloca /* predefined by HP cc +Olibcalls */
8402     char *alloca ();
8403     # endif
8404     # endif
8405     # endif
8406     # endif
8407     #endif
8408    
8409     int
8410     main ()
8411     {
8412     char *p = (char *) alloca (1);
8413     ;
8414     return 0;
8415     }
8416     _ACEOF
8417     rm -f conftest.$ac_objext conftest$ac_exeext
8418     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 pcg 1.11 (eval $ac_link) 2>conftest.er1
8420 pcg 1.1 ac_status=$?
8421 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8422     rm -f conftest.er1
8423     cat conftest.err >&5
8424 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425     (exit $ac_status); } &&
8426 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8427     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428     (eval $ac_try) 2>&5
8429     ac_status=$?
8430     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431     (exit $ac_status); }; } &&
8432     { ac_try='test -s conftest$ac_exeext'
8433 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434     (eval $ac_try) 2>&5
8435     ac_status=$?
8436     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437     (exit $ac_status); }; }; then
8438     ac_cv_func_alloca_works=yes
8439     else
8440     echo "$as_me: failed program was:" >&5
8441     sed 's/^/| /' conftest.$ac_ext >&5
8442    
8443     ac_cv_func_alloca_works=no
8444     fi
8445 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
8446     conftest$ac_exeext conftest.$ac_ext
8447 pcg 1.1 fi
8448     echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8449     echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8450    
8451     if test $ac_cv_func_alloca_works = yes; then
8452    
8453     cat >>confdefs.h <<\_ACEOF
8454     #define HAVE_ALLOCA 1
8455     _ACEOF
8456    
8457     else
8458     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8459     # that cause trouble. Some versions do not even contain alloca or
8460     # contain a buggy version. If you still want to use their alloca,
8461     # use ar to extract alloca.o from them instead of compiling alloca.c.
8462    
8463     ALLOCA=alloca.$ac_objext
8464    
8465     cat >>confdefs.h <<\_ACEOF
8466     #define C_ALLOCA 1
8467     _ACEOF
8468    
8469    
8470     echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8471     echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8472     if test "${ac_cv_os_cray+set}" = set; then
8473     echo $ECHO_N "(cached) $ECHO_C" >&6
8474     else
8475     cat >conftest.$ac_ext <<_ACEOF
8476     /* confdefs.h. */
8477     _ACEOF
8478     cat confdefs.h >>conftest.$ac_ext
8479     cat >>conftest.$ac_ext <<_ACEOF
8480     /* end confdefs.h. */
8481     #if defined(CRAY) && ! defined(CRAY2)
8482     webecray
8483     #else
8484     wenotbecray
8485     #endif
8486    
8487     _ACEOF
8488     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8489     $EGREP "webecray" >/dev/null 2>&1; then
8490     ac_cv_os_cray=yes
8491     else
8492     ac_cv_os_cray=no
8493     fi
8494     rm -f conftest*
8495    
8496     fi
8497     echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8498     echo "${ECHO_T}$ac_cv_os_cray" >&6
8499     if test $ac_cv_os_cray = yes; then
8500     for ac_func in _getb67 GETB67 getb67; do
8501     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8502     echo "$as_me:$LINENO: checking for $ac_func" >&5
8503     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8504     if eval "test \"\${$as_ac_var+set}\" = set"; then
8505     echo $ECHO_N "(cached) $ECHO_C" >&6
8506     else
8507     cat >conftest.$ac_ext <<_ACEOF
8508     /* confdefs.h. */
8509     _ACEOF
8510     cat confdefs.h >>conftest.$ac_ext
8511     cat >>conftest.$ac_ext <<_ACEOF
8512     /* end confdefs.h. */
8513 pcg 1.11 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8514     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8515     #define $ac_func innocuous_$ac_func
8516    
8517 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
8518     which can conflict with char $ac_func (); below.
8519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8520     <limits.h> exists even on freestanding compilers. */
8521 pcg 1.11
8522 pcg 1.1 #ifdef __STDC__
8523     # include <limits.h>
8524     #else
8525     # include <assert.h>
8526     #endif
8527 pcg 1.11
8528     #undef $ac_func
8529    
8530 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
8531     #ifdef __cplusplus
8532     extern "C"
8533     {
8534     #endif
8535     /* We use char because int might match the return type of a gcc2
8536     builtin and then its argument prototype would still apply. */
8537     char $ac_func ();
8538     /* The GNU C library defines this for functions which it implements
8539     to always fail with ENOSYS. Some functions are actually named
8540     something starting with __ and the normal name is an alias. */
8541     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8542     choke me
8543     #else
8544     char (*f) () = $ac_func;
8545     #endif
8546     #ifdef __cplusplus
8547     }
8548     #endif
8549    
8550     int
8551     main ()
8552     {
8553     return f != $ac_func;
8554     ;
8555     return 0;
8556     }
8557     _ACEOF
8558     rm -f conftest.$ac_objext conftest$ac_exeext
8559     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8560 pcg 1.11 (eval $ac_link) 2>conftest.er1
8561 pcg 1.1 ac_status=$?
8562 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8563     rm -f conftest.er1
8564     cat conftest.err >&5
8565 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566     (exit $ac_status); } &&
8567 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8568     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569     (eval $ac_try) 2>&5
8570     ac_status=$?
8571     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572     (exit $ac_status); }; } &&
8573     { ac_try='test -s conftest$ac_exeext'
8574 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575     (eval $ac_try) 2>&5
8576     ac_status=$?
8577     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578     (exit $ac_status); }; }; then
8579     eval "$as_ac_var=yes"
8580     else
8581     echo "$as_me: failed program was:" >&5
8582     sed 's/^/| /' conftest.$ac_ext >&5
8583    
8584     eval "$as_ac_var=no"
8585     fi
8586 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
8587     conftest$ac_exeext conftest.$ac_ext
8588 pcg 1.1 fi
8589     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8590     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8591     if test `eval echo '${'$as_ac_var'}'` = yes; then
8592    
8593     cat >>confdefs.h <<_ACEOF
8594     #define CRAY_STACKSEG_END $ac_func
8595     _ACEOF
8596    
8597     break
8598     fi
8599    
8600     done
8601     fi
8602    
8603     echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8604     echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8605     if test "${ac_cv_c_stack_direction+set}" = set; then
8606     echo $ECHO_N "(cached) $ECHO_C" >&6
8607     else
8608     if test "$cross_compiling" = yes; then
8609     ac_cv_c_stack_direction=0
8610     else
8611     cat >conftest.$ac_ext <<_ACEOF
8612     /* confdefs.h. */
8613     _ACEOF
8614     cat confdefs.h >>conftest.$ac_ext
8615     cat >>conftest.$ac_ext <<_ACEOF
8616     /* end confdefs.h. */
8617     int
8618     find_stack_direction ()
8619     {
8620     static char *addr = 0;
8621     auto char dummy;
8622     if (addr == 0)
8623     {
8624     addr = &dummy;
8625     return find_stack_direction ();
8626     }
8627     else
8628     return (&dummy > addr) ? 1 : -1;
8629     }
8630    
8631     int
8632     main ()
8633     {
8634     exit (find_stack_direction () < 0);
8635     }
8636     _ACEOF
8637     rm -f conftest$ac_exeext
8638     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639     (eval $ac_link) 2>&5
8640     ac_status=$?
8641     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8643     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644     (eval $ac_try) 2>&5
8645     ac_status=$?
8646     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647     (exit $ac_status); }; }; then
8648     ac_cv_c_stack_direction=1
8649     else
8650     echo "$as_me: program exited with status $ac_status" >&5
8651     echo "$as_me: failed program was:" >&5
8652     sed 's/^/| /' conftest.$ac_ext >&5
8653    
8654     ( exit $ac_status )
8655     ac_cv_c_stack_direction=-1
8656     fi
8657     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8658     fi
8659     fi
8660     echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8661     echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8662    
8663     cat >>confdefs.h <<_ACEOF
8664     #define STACK_DIRECTION $ac_cv_c_stack_direction
8665     _ACEOF
8666    
8667    
8668     fi
8669    
8670    
8671    
8672     echo "$as_me:$LINENO: checking for socket" >&5
8673     echo $ECHO_N "checking for socket... $ECHO_C" >&6
8674     if test "${ac_cv_func_socket+set}" = set; then
8675     echo $ECHO_N "(cached) $ECHO_C" >&6
8676     else
8677     cat >conftest.$ac_ext <<_ACEOF
8678     /* confdefs.h. */
8679     _ACEOF
8680     cat confdefs.h >>conftest.$ac_ext
8681     cat >>conftest.$ac_ext <<_ACEOF
8682     /* end confdefs.h. */
8683 pcg 1.11 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
8684     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8685     #define socket innocuous_socket
8686    
8687 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
8688     which can conflict with char socket (); below.
8689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8690     <limits.h> exists even on freestanding compilers. */
8691 pcg 1.11
8692 pcg 1.1 #ifdef __STDC__
8693     # include <limits.h>
8694     #else
8695     # include <assert.h>
8696     #endif
8697 pcg 1.11
8698     #undef socket
8699    
8700 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
8701     #ifdef __cplusplus
8702     extern "C"
8703     {
8704     #endif
8705     /* We use char because int might match the return type of a gcc2
8706     builtin and then its argument prototype would still apply. */
8707     char socket ();
8708     /* The GNU C library defines this for functions which it implements
8709     to always fail with ENOSYS. Some functions are actually named
8710     something starting with __ and the normal name is an alias. */
8711     #if defined (__stub_socket) || defined (__stub___socket)
8712     choke me
8713     #else
8714     char (*f) () = socket;
8715     #endif
8716     #ifdef __cplusplus
8717     }
8718     #endif
8719    
8720     int
8721     main ()
8722     {
8723     return f != socket;
8724     ;
8725     return 0;
8726     }
8727     _ACEOF
8728     rm -f conftest.$ac_objext conftest$ac_exeext
8729     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730 pcg 1.11 (eval $ac_link) 2>conftest.er1
8731 pcg 1.1 ac_status=$?
8732 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8733     rm -f conftest.er1
8734     cat conftest.err >&5
8735 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736     (exit $ac_status); } &&
8737 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8738     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739     (eval $ac_try) 2>&5
8740     ac_status=$?
8741     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742     (exit $ac_status); }; } &&
8743     { ac_try='test -s conftest$ac_exeext'
8744 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745     (eval $ac_try) 2>&5
8746     ac_status=$?
8747     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748     (exit $ac_status); }; }; then
8749     ac_cv_func_socket=yes
8750     else
8751     echo "$as_me: failed program was:" >&5
8752     sed 's/^/| /' conftest.$ac_ext >&5
8753    
8754     ac_cv_func_socket=no
8755     fi
8756 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
8757     conftest$ac_exeext conftest.$ac_ext
8758 pcg 1.1 fi
8759     echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
8760     echo "${ECHO_T}$ac_cv_func_socket" >&6
8761     if test $ac_cv_func_socket = yes; then
8762     :
8763     else
8764    
8765    
8766     echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8767     echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8768     if test "${ac_cv_lib_socket_connect+set}" = set; then
8769     echo $ECHO_N "(cached) $ECHO_C" >&6
8770     else
8771     ac_check_lib_save_LIBS=$LIBS
8772     LIBS="-lsocket $LIBS"
8773     cat >conftest.$ac_ext <<_ACEOF
8774     /* confdefs.h. */
8775     _ACEOF
8776     cat confdefs.h >>conftest.$ac_ext
8777     cat >>conftest.$ac_ext <<_ACEOF
8778     /* end confdefs.h. */
8779    
8780     /* Override any gcc2 internal prototype to avoid an error. */
8781     #ifdef __cplusplus
8782     extern "C"
8783     #endif
8784     /* We use char because int might match the return type of a gcc2
8785     builtin and then its argument prototype would still apply. */
8786     char connect ();
8787     int
8788     main ()
8789     {
8790     connect ();
8791     ;
8792     return 0;
8793     }
8794     _ACEOF
8795     rm -f conftest.$ac_objext conftest$ac_exeext
8796     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 pcg 1.11 (eval $ac_link) 2>conftest.er1
8798 pcg 1.1 ac_status=$?
8799 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8800     rm -f conftest.er1
8801     cat conftest.err >&5
8802 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803     (exit $ac_status); } &&
8804 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8805     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806     (eval $ac_try) 2>&5
8807     ac_status=$?
8808     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809     (exit $ac_status); }; } &&
8810     { ac_try='test -s conftest$ac_exeext'
8811 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812     (eval $ac_try) 2>&5
8813     ac_status=$?
8814     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815     (exit $ac_status); }; }; then
8816     ac_cv_lib_socket_connect=yes
8817     else
8818     echo "$as_me: failed program was:" >&5
8819     sed 's/^/| /' conftest.$ac_ext >&5
8820    
8821     ac_cv_lib_socket_connect=no
8822     fi
8823 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
8824     conftest$ac_exeext conftest.$ac_ext
8825 pcg 1.1 LIBS=$ac_check_lib_save_LIBS
8826     fi
8827     echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8828     echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8829     if test $ac_cv_lib_socket_connect = yes; then
8830     cat >>confdefs.h <<_ACEOF
8831     #define HAVE_LIBSOCKET 1
8832     _ACEOF
8833    
8834     LIBS="-lsocket $LIBS"
8835    
8836     fi
8837    
8838    
8839     fi
8840    
8841     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8842     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8843     if test "${ac_cv_func_gethostbyname+set}" = set; then
8844     echo $ECHO_N "(cached) $ECHO_C" >&6
8845     else
8846     cat >conftest.$ac_ext <<_ACEOF
8847     /* confdefs.h. */
8848     _ACEOF
8849     cat confdefs.h >>conftest.$ac_ext
8850     cat >>conftest.$ac_ext <<_ACEOF
8851     /* end confdefs.h. */
8852 pcg 1.11 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8853     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8854     #define gethostbyname innocuous_gethostbyname
8855    
8856 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
8857     which can conflict with char gethostbyname (); below.
8858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8859     <limits.h> exists even on freestanding compilers. */
8860 pcg 1.11
8861 pcg 1.1 #ifdef __STDC__
8862     # include <limits.h>
8863     #else
8864     # include <assert.h>
8865     #endif
8866 pcg 1.11
8867     #undef gethostbyname
8868    
8869 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
8870     #ifdef __cplusplus
8871     extern "C"
8872     {
8873     #endif
8874     /* We use char because int might match the return type of a gcc2
8875     builtin and then its argument prototype would still apply. */
8876     char gethostbyname ();
8877     /* The GNU C library defines this for functions which it implements
8878     to always fail with ENOSYS. Some functions are actually named
8879     something starting with __ and the normal name is an alias. */
8880     #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8881     choke me
8882     #else
8883     char (*f) () = gethostbyname;
8884     #endif
8885     #ifdef __cplusplus
8886     }
8887     #endif
8888    
8889     int
8890     main ()
8891     {
8892     return f != gethostbyname;
8893     ;
8894     return 0;
8895     }
8896     _ACEOF
8897     rm -f conftest.$ac_objext conftest$ac_exeext
8898     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8899 pcg 1.11 (eval $ac_link) 2>conftest.er1
8900 pcg 1.1 ac_status=$?
8901 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8902     rm -f conftest.er1
8903     cat conftest.err >&5
8904 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905     (exit $ac_status); } &&
8906 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8907     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908     (eval $ac_try) 2>&5
8909     ac_status=$?
8910     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911     (exit $ac_status); }; } &&
8912     { ac_try='test -s conftest$ac_exeext'
8913 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914     (eval $ac_try) 2>&5
8915     ac_status=$?
8916     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917     (exit $ac_status); }; }; then
8918     ac_cv_func_gethostbyname=yes
8919     else
8920     echo "$as_me: failed program was:" >&5
8921     sed 's/^/| /' conftest.$ac_ext >&5
8922    
8923     ac_cv_func_gethostbyname=no
8924     fi
8925 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
8926     conftest$ac_exeext conftest.$ac_ext
8927 pcg 1.1 fi
8928     echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8929     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8930     if test $ac_cv_func_gethostbyname = yes; then
8931     :
8932     else
8933    
8934    
8935     echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8936     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8937     if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8938     echo $ECHO_N "(cached) $ECHO_C" >&6
8939     else
8940     ac_check_lib_save_LIBS=$LIBS
8941     LIBS="-lnsl $LIBS"
8942     cat >conftest.$ac_ext <<_ACEOF
8943     /* confdefs.h. */
8944     _ACEOF
8945     cat confdefs.h >>conftest.$ac_ext
8946     cat >>conftest.$ac_ext <<_ACEOF
8947     /* end confdefs.h. */
8948    
8949     /* Override any gcc2 internal prototype to avoid an error. */
8950     #ifdef __cplusplus
8951     extern "C"
8952     #endif
8953     /* We use char because int might match the return type of a gcc2
8954     builtin and then its argument prototype would still apply. */
8955     char gethostbyname ();
8956     int
8957     main ()
8958     {
8959     gethostbyname ();
8960     ;
8961     return 0;
8962     }
8963     _ACEOF
8964     rm -f conftest.$ac_objext conftest$ac_exeext
8965     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 pcg 1.11 (eval $ac_link) 2>conftest.er1
8967 pcg 1.1 ac_status=$?
8968 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8969     rm -f conftest.er1
8970     cat conftest.err >&5
8971 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972     (exit $ac_status); } &&
8973 pcg 1.11 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975     (eval $ac_try) 2>&5
8976     ac_status=$?
8977     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978     (exit $ac_status); }; } &&
8979     { ac_try='test -s conftest$ac_exeext'
8980 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981     (eval $ac_try) 2>&5
8982     ac_status=$?
8983     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984     (exit $ac_status); }; }; then
8985     ac_cv_lib_nsl_gethostbyname=yes
8986     else
8987     echo "$as_me: failed program was:" >&5
8988     sed 's/^/| /' conftest.$ac_ext >&5
8989    
8990     ac_cv_lib_nsl_gethostbyname=no
8991     fi
8992 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
8993     conftest$ac_exeext conftest.$ac_ext
8994 pcg 1.1 LIBS=$ac_check_lib_save_LIBS
8995     fi
8996     echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8997     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8998     if test $ac_cv_lib_nsl_gethostbyname = yes; then
8999     cat >>confdefs.h <<_ACEOF
9000     #define HAVE_LIBNSL 1
9001     _ACEOF
9002    
9003     LIBS="-lnsl $LIBS"
9004    
9005     fi
9006    
9007    
9008     fi
9009    
9010    
9011     ac_ext=cc
9012     ac_cpp='$CXXCPP $CPPFLAGS'
9013     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9014     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9015     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9016    
9017    
9018    
9019     cat >confcache <<\_ACEOF
9020     # This file is a shell script that caches the results of configure
9021     # tests run on this system so they can be shared between configure
9022     # scripts and configure runs, see configure's option --config-cache.
9023     # It is not useful on other systems. If it contains results you don't
9024     # want to keep, you may remove or edit it.
9025     #
9026     # config.status only pays attention to the cache file if you give it
9027     # the --recheck option to rerun configure.
9028     #
9029     # `ac_cv_env_foo' variables (set or unset) will be overridden when
9030     # loading this file, other *unset* `ac_cv_foo' will be assigned the
9031     # following values.
9032    
9033     _ACEOF
9034    
9035     # The following way of writing the cache mishandles newlines in values,
9036     # but we know of no workaround that is simple, portable, and efficient.
9037     # So, don't put newlines in cache variables' values.
9038     # Ultrix sh set writes to stderr and can't be redirected directly,
9039     # and sets the high bit in the cache file unless we assign to the vars.
9040     {
9041     (set) 2>&1 |
9042     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9043     *ac_space=\ *)
9044     # `set' does not quote correctly, so add quotes (double-quote
9045     # substitution turns \\\\ into \\, and sed turns \\ into \).
9046     sed -n \
9047 pcg 1.11 "s/'/'\\\\''/g;
9048     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9049 pcg 1.1 ;;
9050     *)
9051     # `set' quotes correctly as required by POSIX, so do not add quotes.
9052     sed -n \
9053 pcg 1.11 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9054 pcg 1.1 ;;
9055     esac;
9056     } |
9057     sed '
9058     t clear
9059     : clear
9060     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9061     t end
9062     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9063     : end' >>confcache
9064     if diff $cache_file confcache >/dev/null 2>&1; then :; else
9065     if test -w $cache_file; then
9066     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9067     cat confcache >$cache_file
9068     else
9069     echo "not updating unwritable cache $cache_file"
9070     fi
9071     fi
9072     rm -f confcache
9073    
9074    
9075    
9076     # Check whether --with-kernel or --without-kernel was given.
9077     if test "${with_kernel+set}" = set; then
9078     withval="$with_kernel"
9079     kerneldir="$withval"
9080     else
9081     kerneldir="/usr/src/linux"
9082    
9083     fi;
9084    
9085     echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
9086     echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6
9087     if test "${tinc_cv_linux_if_tun_h+set}" = set; then
9088     echo $ECHO_N "(cached) $ECHO_C" >&6
9089     else
9090    
9091     cat >conftest.$ac_ext <<_ACEOF
9092     /* confdefs.h. */
9093     _ACEOF
9094     cat confdefs.h >>conftest.$ac_ext
9095     cat >>conftest.$ac_ext <<_ACEOF
9096     /* end confdefs.h. */
9097     #include "$kerneldir/include/linux/if_tun.h"
9098     int
9099     main ()
9100     {
9101     int a = IFF_TAP;
9102     ;
9103     return 0;
9104     }
9105     _ACEOF
9106     rm -f conftest.$ac_objext
9107     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9108 pcg 1.11 (eval $ac_compile) 2>conftest.er1
9109 pcg 1.1 ac_status=$?
9110 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9111     rm -f conftest.er1
9112     cat conftest.err >&5
9113 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114     (exit $ac_status); } &&
9115 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9116     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117     (eval $ac_try) 2>&5
9118     ac_status=$?
9119     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120     (exit $ac_status); }; } &&
9121     { ac_try='test -s conftest.$ac_objext'
9122 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123     (eval $ac_try) 2>&5
9124     ac_status=$?
9125     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126     (exit $ac_status); }; }; then
9127     if_tun_h="\"$kerneldir/include/linux/if_tun.h\""
9128     else
9129     echo "$as_me: failed program was:" >&5
9130     sed 's/^/| /' conftest.$ac_ext >&5
9131    
9132     cat >conftest.$ac_ext <<_ACEOF
9133     /* confdefs.h. */
9134     _ACEOF
9135     cat confdefs.h >>conftest.$ac_ext
9136     cat >>conftest.$ac_ext <<_ACEOF
9137     /* end confdefs.h. */
9138     #include <linux/if_tun.h>
9139     int
9140     main ()
9141     {
9142     int a = IFF_TAP;
9143     ;
9144     return 0;
9145     }
9146     _ACEOF
9147     rm -f conftest.$ac_objext
9148     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 pcg 1.11 (eval $ac_compile) 2>conftest.er1
9150 pcg 1.1 ac_status=$?
9151 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9152     rm -f conftest.er1
9153     cat conftest.err >&5
9154 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155     (exit $ac_status); } &&
9156 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9157     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158     (eval $ac_try) 2>&5
9159     ac_status=$?
9160     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161     (exit $ac_status); }; } &&
9162     { ac_try='test -s conftest.$ac_objext'
9163 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164     (eval $ac_try) 2>&5
9165     ac_status=$?
9166     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167     (exit $ac_status); }; }; then
9168     if_tun_h="default"
9169     else
9170     echo "$as_me: failed program was:" >&5
9171     sed 's/^/| /' conftest.$ac_ext >&5
9172    
9173     if_tun_h="no"
9174    
9175     fi
9176 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9177 pcg 1.1
9178     fi
9179 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9180 pcg 1.1
9181     if test $if_tun_h = no; then
9182     tinc_cv_linux_if_tun_h=none
9183     else
9184     tinc_cv_linux_if_tun_h="$if_tun_h"
9185     fi
9186    
9187     fi
9188     echo "$as_me:$LINENO: result: $tinc_cv_linux_if_tun_h" >&5
9189     echo "${ECHO_T}$tinc_cv_linux_if_tun_h" >&6
9190    
9191     if test $tinc_cv_linux_if_tun_h != none; then
9192    
9193     cat >>confdefs.h <<\_ACEOF
9194     #define HAVE_TUNTAP 1
9195     _ACEOF
9196    
9197     if test $tinc_cv_linux_if_tun_h != default; then
9198    
9199     cat >>confdefs.h <<_ACEOF
9200     #define LINUX_IF_TUN_H $tinc_cv_linux_if_tun_h
9201     _ACEOF
9202    
9203     fi
9204     fi
9205    
9206    
9207    
9208    
9209 pcg 1.6
9210 pcg 1.1 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
9211    
9212    
9213     # Check whether --with-openssl-include or --without-openssl-include was given.
9214     if test "${with_openssl_include+set}" = set; then
9215     withval="$with_openssl_include"
9216     openssl_include="$withval"
9217     CFLAGS="$CFLAGS -I$withval"
9218     CPPFLAGS="$CPPFLAGS -I$withval"
9219    
9220     fi;
9221    
9222    
9223     # Check whether --with-openssl-lib or --without-openssl-lib was given.
9224     if test "${with_openssl_lib+set}" = set; then
9225     withval="$with_openssl_lib"
9226     openssl_lib="$withval"
9227     LIBS="$LIBS -L$withval"
9228    
9229     fi;
9230    
9231    
9232    
9233    
9234    
9235    
9236    
9237     for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h
9238     do
9239     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9240     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9241     echo "$as_me:$LINENO: checking for $ac_header" >&5
9242     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9243     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9244     echo $ECHO_N "(cached) $ECHO_C" >&6
9245     fi
9246     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9247     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9248     else
9249     # Is the header compilable?
9250     echo "$as_me:$LINENO: checking $ac_header usability" >&5
9251     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9252     cat >conftest.$ac_ext <<_ACEOF
9253     /* confdefs.h. */
9254     _ACEOF
9255     cat confdefs.h >>conftest.$ac_ext
9256     cat >>conftest.$ac_ext <<_ACEOF
9257     /* end confdefs.h. */
9258     $ac_includes_default
9259     #include <$ac_header>
9260     _ACEOF
9261     rm -f conftest.$ac_objext
9262     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9263 pcg 1.11 (eval $ac_compile) 2>conftest.er1
9264 pcg 1.1 ac_status=$?
9265 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9266     rm -f conftest.er1
9267     cat conftest.err >&5
9268 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269     (exit $ac_status); } &&
9270 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9271     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272     (eval $ac_try) 2>&5
9273     ac_status=$?
9274     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275     (exit $ac_status); }; } &&
9276     { ac_try='test -s conftest.$ac_objext'
9277 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278     (eval $ac_try) 2>&5
9279     ac_status=$?
9280     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281     (exit $ac_status); }; }; then
9282     ac_header_compiler=yes
9283     else
9284     echo "$as_me: failed program was:" >&5
9285     sed 's/^/| /' conftest.$ac_ext >&5
9286    
9287     ac_header_compiler=no
9288     fi
9289 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9290 pcg 1.1 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9291     echo "${ECHO_T}$ac_header_compiler" >&6
9292    
9293     # Is the header present?
9294     echo "$as_me:$LINENO: checking $ac_header presence" >&5
9295     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9296     cat >conftest.$ac_ext <<_ACEOF
9297     /* confdefs.h. */
9298     _ACEOF
9299     cat confdefs.h >>conftest.$ac_ext
9300     cat >>conftest.$ac_ext <<_ACEOF
9301     /* end confdefs.h. */
9302     #include <$ac_header>
9303     _ACEOF
9304     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9305     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9306     ac_status=$?
9307     grep -v '^ *+' conftest.er1 >conftest.err
9308     rm -f conftest.er1
9309     cat conftest.err >&5
9310     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311     (exit $ac_status); } >/dev/null; then
9312     if test -s conftest.err; then
9313     ac_cpp_err=$ac_cxx_preproc_warn_flag
9314 pcg 1.11 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9315 pcg 1.1 else
9316     ac_cpp_err=
9317     fi
9318     else
9319     ac_cpp_err=yes
9320     fi
9321     if test -z "$ac_cpp_err"; then
9322     ac_header_preproc=yes
9323     else
9324     echo "$as_me: failed program was:" >&5
9325     sed 's/^/| /' conftest.$ac_ext >&5
9326    
9327     ac_header_preproc=no
9328     fi
9329     rm -f conftest.err conftest.$ac_ext
9330     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9331     echo "${ECHO_T}$ac_header_preproc" >&6
9332    
9333     # So? What about this header?
9334 pcg 1.11 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9335     yes:no: )
9336 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9337     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9338 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9339     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9340     ac_header_preproc=yes
9341 pcg 1.1 ;;
9342 pcg 1.11 no:yes:* )
9343 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9344     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9345 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9346     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9348     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9349     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9350     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9351 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9352     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9353 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9354     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9355 pcg 1.1 (
9356     cat <<\_ASBOX
9357 pcg 1.11 ## ------------------------------------------ ##
9358     ## Report this to the AC_PACKAGE_NAME lists. ##
9359     ## ------------------------------------------ ##
9360 pcg 1.1 _ASBOX
9361     ) |
9362     sed "s/^/$as_me: WARNING: /" >&2
9363     ;;
9364     esac
9365     echo "$as_me:$LINENO: checking for $ac_header" >&5
9366     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9367     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9368     echo $ECHO_N "(cached) $ECHO_C" >&6
9369     else
9370 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
9371 pcg 1.1 fi
9372     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9373     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9374    
9375     fi
9376     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9377     cat >>confdefs.h <<_ACEOF
9378     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9379     _ACEOF
9380    
9381     else
9382     { { echo "$as_me:$LINENO: error: OpenSSL header files not found." >&5
9383     echo "$as_me: error: OpenSSL header files not found." >&2;}
9384     { (exit 1); exit 1; }; }; break
9385    
9386     fi
9387    
9388     done
9389    
9390    
9391     CPPFLAGS="$tinc_ac_save_CPPFLAGS"
9392    
9393     echo "$as_me:$LINENO: checking for SHA1_version in -lcrypto" >&5
9394     echo $ECHO_N "checking for SHA1_version in -lcrypto... $ECHO_C" >&6
9395     if test "${ac_cv_lib_crypto_SHA1_version+set}" = set; then
9396     echo $ECHO_N "(cached) $ECHO_C" >&6
9397     else
9398     ac_check_lib_save_LIBS=$LIBS
9399     LIBS="-lcrypto $LIBS"
9400     cat >conftest.$ac_ext <<_ACEOF
9401     /* confdefs.h. */
9402     _ACEOF
9403     cat confdefs.h >>conftest.$ac_ext
9404     cat >>conftest.$ac_ext <<_ACEOF
9405     /* end confdefs.h. */
9406    
9407     /* Override any gcc2 internal prototype to avoid an error. */
9408     #ifdef __cplusplus
9409     extern "C"
9410     #endif
9411     /* We use char because int might match the return type of a gcc2
9412     builtin and then its argument prototype would still apply. */
9413     char SHA1_version ();
9414     int
9415     main ()
9416     {
9417     SHA1_version ();
9418     ;
9419     return 0;
9420     }
9421     _ACEOF
9422     rm -f conftest.$ac_objext conftest$ac_exeext
9423     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9424 pcg 1.11 (eval $ac_link) 2>conftest.er1
9425 pcg 1.1 ac_status=$?
9426 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9427     rm -f conftest.er1
9428     cat conftest.err >&5
9429 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430     (exit $ac_status); } &&
9431 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9432     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433     (eval $ac_try) 2>&5
9434     ac_status=$?
9435     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436     (exit $ac_status); }; } &&
9437     { ac_try='test -s conftest$ac_exeext'
9438 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439     (eval $ac_try) 2>&5
9440     ac_status=$?
9441     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442     (exit $ac_status); }; }; then
9443     ac_cv_lib_crypto_SHA1_version=yes
9444     else
9445     echo "$as_me: failed program was:" >&5
9446     sed 's/^/| /' conftest.$ac_ext >&5
9447    
9448     ac_cv_lib_crypto_SHA1_version=no
9449     fi
9450 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
9451     conftest$ac_exeext conftest.$ac_ext
9452 pcg 1.1 LIBS=$ac_check_lib_save_LIBS
9453     fi
9454     echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_SHA1_version" >&5
9455     echo "${ECHO_T}$ac_cv_lib_crypto_SHA1_version" >&6
9456     if test $ac_cv_lib_crypto_SHA1_version = yes; then
9457     LIBS="$LIBS -lcrypto"
9458     else
9459     { { echo "$as_me:$LINENO: error: OpenSSL libraries not found." >&5
9460     echo "$as_me: error: OpenSSL libraries not found." >&2;}
9461     { (exit 1); exit 1; }; }
9462    
9463     fi
9464    
9465    
9466    
9467    
9468    
9469    
9470     for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms
9471     do
9472     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9473     echo "$as_me:$LINENO: checking for $ac_func" >&5
9474     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9475     if eval "test \"\${$as_ac_var+set}\" = set"; then
9476     echo $ECHO_N "(cached) $ECHO_C" >&6
9477     else
9478     cat >conftest.$ac_ext <<_ACEOF
9479     /* confdefs.h. */
9480     _ACEOF
9481     cat confdefs.h >>conftest.$ac_ext
9482     cat >>conftest.$ac_ext <<_ACEOF
9483     /* end confdefs.h. */
9484 pcg 1.11 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9485     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9486     #define $ac_func innocuous_$ac_func
9487    
9488 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
9489     which can conflict with char $ac_func (); below.
9490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9491     <limits.h> exists even on freestanding compilers. */
9492 pcg 1.11
9493 pcg 1.1 #ifdef __STDC__
9494     # include <limits.h>
9495     #else
9496     # include <assert.h>
9497     #endif
9498 pcg 1.11
9499     #undef $ac_func
9500    
9501 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
9502     #ifdef __cplusplus
9503     extern "C"
9504     {
9505     #endif
9506     /* We use char because int might match the return type of a gcc2
9507     builtin and then its argument prototype would still apply. */
9508     char $ac_func ();
9509     /* The GNU C library defines this for functions which it implements
9510     to always fail with ENOSYS. Some functions are actually named
9511     something starting with __ and the normal name is an alias. */
9512     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9513     choke me
9514     #else
9515     char (*f) () = $ac_func;
9516     #endif
9517     #ifdef __cplusplus
9518     }
9519     #endif
9520    
9521     int
9522     main ()
9523     {
9524     return f != $ac_func;
9525     ;
9526     return 0;
9527     }
9528     _ACEOF
9529     rm -f conftest.$ac_objext conftest$ac_exeext
9530     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531 pcg 1.11 (eval $ac_link) 2>conftest.er1
9532 pcg 1.1 ac_status=$?
9533 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9534     rm -f conftest.er1
9535     cat conftest.err >&5
9536 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537     (exit $ac_status); } &&
9538 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9539     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540     (eval $ac_try) 2>&5
9541     ac_status=$?
9542     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543     (exit $ac_status); }; } &&
9544     { ac_try='test -s conftest$ac_exeext'
9545 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546     (eval $ac_try) 2>&5
9547     ac_status=$?
9548     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549     (exit $ac_status); }; }; then
9550     eval "$as_ac_var=yes"
9551     else
9552     echo "$as_me: failed program was:" >&5
9553     sed 's/^/| /' conftest.$ac_ext >&5
9554    
9555     eval "$as_ac_var=no"
9556     fi
9557 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
9558     conftest$ac_exeext conftest.$ac_ext
9559 pcg 1.1 fi
9560     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9561     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9562     if test `eval echo '${'$as_ac_var'}'` = yes; then
9563     cat >>confdefs.h <<_ACEOF
9564     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9565     _ACEOF
9566    
9567     fi
9568     done
9569    
9570    
9571     echo "$as_me:$LINENO: checking for dlopen" >&5
9572     echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9573     if test "${ac_cv_func_dlopen+set}" = set; then
9574     echo $ECHO_N "(cached) $ECHO_C" >&6
9575     else
9576     cat >conftest.$ac_ext <<_ACEOF
9577     /* confdefs.h. */
9578     _ACEOF
9579     cat confdefs.h >>conftest.$ac_ext
9580     cat >>conftest.$ac_ext <<_ACEOF
9581     /* end confdefs.h. */
9582 pcg 1.11 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9583     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9584     #define dlopen innocuous_dlopen
9585    
9586 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
9587     which can conflict with char dlopen (); below.
9588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9589     <limits.h> exists even on freestanding compilers. */
9590 pcg 1.11
9591 pcg 1.1 #ifdef __STDC__
9592     # include <limits.h>
9593     #else
9594     # include <assert.h>
9595     #endif
9596 pcg 1.11
9597     #undef dlopen
9598    
9599 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
9600     #ifdef __cplusplus
9601     extern "C"
9602     {
9603     #endif
9604     /* We use char because int might match the return type of a gcc2
9605     builtin and then its argument prototype would still apply. */
9606     char dlopen ();
9607     /* The GNU C library defines this for functions which it implements
9608     to always fail with ENOSYS. Some functions are actually named
9609     something starting with __ and the normal name is an alias. */
9610     #if defined (__stub_dlopen) || defined (__stub___dlopen)
9611     choke me
9612     #else
9613     char (*f) () = dlopen;
9614     #endif
9615     #ifdef __cplusplus
9616     }
9617     #endif
9618    
9619     int
9620     main ()
9621     {
9622     return f != dlopen;
9623     ;
9624     return 0;
9625     }
9626     _ACEOF
9627     rm -f conftest.$ac_objext conftest$ac_exeext
9628     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629 pcg 1.11 (eval $ac_link) 2>conftest.er1
9630 pcg 1.1 ac_status=$?
9631 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9632     rm -f conftest.er1
9633     cat conftest.err >&5
9634 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635     (exit $ac_status); } &&
9636 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9637     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638     (eval $ac_try) 2>&5
9639     ac_status=$?
9640     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641     (exit $ac_status); }; } &&
9642     { ac_try='test -s conftest$ac_exeext'
9643 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644     (eval $ac_try) 2>&5
9645     ac_status=$?
9646     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647     (exit $ac_status); }; }; then
9648     ac_cv_func_dlopen=yes
9649     else
9650     echo "$as_me: failed program was:" >&5
9651     sed 's/^/| /' conftest.$ac_ext >&5
9652    
9653     ac_cv_func_dlopen=no
9654     fi
9655 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
9656     conftest$ac_exeext conftest.$ac_ext
9657 pcg 1.1 fi
9658     echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9659     echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9660     if test $ac_cv_func_dlopen = yes; then
9661     :
9662     else
9663     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664     echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9665     if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666     echo $ECHO_N "(cached) $ECHO_C" >&6
9667     else
9668     ac_check_lib_save_LIBS=$LIBS
9669     LIBS="-ldl $LIBS"
9670     cat >conftest.$ac_ext <<_ACEOF
9671     /* confdefs.h. */
9672     _ACEOF
9673     cat confdefs.h >>conftest.$ac_ext
9674     cat >>conftest.$ac_ext <<_ACEOF
9675     /* end confdefs.h. */
9676    
9677     /* Override any gcc2 internal prototype to avoid an error. */
9678     #ifdef __cplusplus
9679     extern "C"
9680     #endif
9681     /* We use char because int might match the return type of a gcc2
9682     builtin and then its argument prototype would still apply. */
9683     char dlopen ();
9684     int
9685     main ()
9686     {
9687     dlopen ();
9688     ;
9689     return 0;
9690     }
9691     _ACEOF
9692     rm -f conftest.$ac_objext conftest$ac_exeext
9693     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 pcg 1.11 (eval $ac_link) 2>conftest.er1
9695 pcg 1.1 ac_status=$?
9696 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9697     rm -f conftest.er1
9698     cat conftest.err >&5
9699 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700     (exit $ac_status); } &&
9701 pcg 1.11 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9702     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703     (eval $ac_try) 2>&5
9704     ac_status=$?
9705     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706     (exit $ac_status); }; } &&
9707     { ac_try='test -s conftest$ac_exeext'
9708 pcg 1.1 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709     (eval $ac_try) 2>&5
9710     ac_status=$?
9711     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712     (exit $ac_status); }; }; then
9713     ac_cv_lib_dl_dlopen=yes
9714     else
9715     echo "$as_me: failed program was:" >&5
9716     sed 's/^/| /' conftest.$ac_ext >&5
9717    
9718     ac_cv_lib_dl_dlopen=no
9719     fi
9720 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
9721     conftest$ac_exeext conftest.$ac_ext
9722 pcg 1.1 LIBS=$ac_check_lib_save_LIBS
9723     fi
9724     echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9725     echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9726     if test $ac_cv_lib_dl_dlopen = yes; then
9727     LIBS="$LIBS -ldl"
9728     else
9729     { { echo "$as_me:$LINENO: error: OpenSSL depends on libdl." >&5
9730     echo "$as_me: error: OpenSSL depends on libdl." >&2;}
9731     { (exit 1); exit 1; }; }
9732    
9733     fi
9734    
9735    
9736     fi
9737    
9738    
9739 pcg 1.6 if test "x$openssl_include" != x; then
9740     CXXFLAGS="$CXXFLAGS -I$openssl_include"
9741     fi
9742 pcg 1.1
9743 pcg 1.21 # Check whether --enable-static-daemon or --disable-static-daemon was given.
9744     if test "${enable_static_daemon+set}" = set; then
9745     enableval="$enable_static_daemon"
9746     LDFLAGS_DAEMON=-static
9747    
9748     fi;
9749    
9750    
9751 pcg 1.1 # Check whether --enable-rohc or --disable-rohc was given.
9752     if test "${enable_rohc+set}" = set; then
9753     enableval="$enable_rohc"
9754    
9755     echo
9756     echo "**********************************************************************"
9757     echo "**********************************************************************"
9758 pcg 1.16 echo "**** --enable-rohc is highly experimental, do not use ****************"
9759 pcg 1.1 echo "**********************************************************************"
9760     echo "**********************************************************************"
9761     echo
9762 pcg 1.16 rohc=true
9763    
9764     cat >>confdefs.h <<_ACEOF
9765     #define ENABLE_ROHC 1
9766     _ACEOF
9767    
9768 pcg 1.1
9769    
9770     fi;
9771    
9772 pcg 1.16
9773    
9774     if test x$rohc = xtrue; then
9775     ROHC_TRUE=
9776     ROHC_FALSE='#'
9777     else
9778     ROHC_TRUE='#'
9779     ROHC_FALSE=
9780     fi
9781    
9782    
9783 pcg 1.30
9784 pcg 1.1 # Check whether --enable-icmp or --disable-icmp was given.
9785     if test "${enable_icmp+set}" = set; then
9786     enableval="$enable_icmp"
9787    
9788     cat >>confdefs.h <<_ACEOF
9789     #define ENABLE_ICMP 1
9790     _ACEOF
9791    
9792    
9793     fi;
9794    
9795     # Check whether --enable-tcp or --disable-tcp was given.
9796     if test "${enable_tcp+set}" = set; then
9797     enableval="$enable_tcp"
9798    
9799     cat >>confdefs.h <<_ACEOF
9800     #define ENABLE_TCP 1
9801     _ACEOF
9802    
9803    
9804     fi;
9805    
9806 pcg 1.17 # Check whether --enable-dns or --disable-dns was given.
9807     if test "${enable_dns+set}" = set; then
9808     enableval="$enable_dns"
9809    
9810 pcg 1.24 if test "${ac_cv_header_gmp_h+set}" = set; then
9811     echo "$as_me:$LINENO: checking for gmp.h" >&5
9812     echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
9813     if test "${ac_cv_header_gmp_h+set}" = set; then
9814     echo $ECHO_N "(cached) $ECHO_C" >&6
9815     fi
9816     echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
9817     echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
9818     else
9819     # Is the header compilable?
9820     echo "$as_me:$LINENO: checking gmp.h usability" >&5
9821     echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
9822     cat >conftest.$ac_ext <<_ACEOF
9823     /* confdefs.h. */
9824     _ACEOF
9825     cat confdefs.h >>conftest.$ac_ext
9826     cat >>conftest.$ac_ext <<_ACEOF
9827     /* end confdefs.h. */
9828     $ac_includes_default
9829     #include <gmp.h>
9830     _ACEOF
9831     rm -f conftest.$ac_objext
9832     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833     (eval $ac_compile) 2>conftest.er1
9834     ac_status=$?
9835     grep -v '^ *+' conftest.er1 >conftest.err
9836     rm -f conftest.er1
9837     cat conftest.err >&5
9838     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839     (exit $ac_status); } &&
9840     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9841     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842     (eval $ac_try) 2>&5
9843     ac_status=$?
9844     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845     (exit $ac_status); }; } &&
9846     { ac_try='test -s conftest.$ac_objext'
9847     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848     (eval $ac_try) 2>&5
9849     ac_status=$?
9850     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851     (exit $ac_status); }; }; then
9852     ac_header_compiler=yes
9853     else
9854     echo "$as_me: failed program was:" >&5
9855     sed 's/^/| /' conftest.$ac_ext >&5
9856    
9857     ac_header_compiler=no
9858     fi
9859     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9860     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9861     echo "${ECHO_T}$ac_header_compiler" >&6
9862    
9863     # Is the header present?
9864     echo "$as_me:$LINENO: checking gmp.h presence" >&5
9865     echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
9866     cat >conftest.$ac_ext <<_ACEOF
9867     /* confdefs.h. */
9868     _ACEOF
9869     cat confdefs.h >>conftest.$ac_ext
9870     cat >>conftest.$ac_ext <<_ACEOF
9871     /* end confdefs.h. */
9872     #include <gmp.h>
9873     _ACEOF
9874     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9875     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9876     ac_status=$?
9877     grep -v '^ *+' conftest.er1 >conftest.err
9878     rm -f conftest.er1
9879     cat conftest.err >&5
9880     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881     (exit $ac_status); } >/dev/null; then
9882     if test -s conftest.err; then
9883     ac_cpp_err=$ac_cxx_preproc_warn_flag
9884     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9885     else
9886     ac_cpp_err=
9887     fi
9888     else
9889     ac_cpp_err=yes
9890     fi
9891     if test -z "$ac_cpp_err"; then
9892     ac_header_preproc=yes
9893     else
9894     echo "$as_me: failed program was:" >&5
9895     sed 's/^/| /' conftest.$ac_ext >&5
9896    
9897     ac_header_preproc=no
9898     fi
9899     rm -f conftest.err conftest.$ac_ext
9900     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9901     echo "${ECHO_T}$ac_header_preproc" >&6
9902    
9903     # So? What about this header?
9904     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9905     yes:no: )
9906     { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
9907     echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9908     { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
9909     echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
9910     ac_header_preproc=yes
9911     ;;
9912     no:yes:* )
9913     { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
9914     echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
9915     { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
9916     echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
9917     { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
9918     echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
9919     { echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5
9920     echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
9921     { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
9922     echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
9923     { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
9924     echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
9925     (
9926     cat <<\_ASBOX
9927     ## ------------------------------------------ ##
9928     ## Report this to the AC_PACKAGE_NAME lists. ##
9929     ## ------------------------------------------ ##
9930     _ASBOX
9931     ) |
9932     sed "s/^/$as_me: WARNING: /" >&2
9933     ;;
9934     esac
9935     echo "$as_me:$LINENO: checking for gmp.h" >&5
9936     echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
9937     if test "${ac_cv_header_gmp_h+set}" = set; then
9938     echo $ECHO_N "(cached) $ECHO_C" >&6
9939     else
9940     ac_cv_header_gmp_h=$ac_header_preproc
9941     fi
9942     echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
9943     echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
9944    
9945     fi
9946     if test $ac_cv_header_gmp_h = yes; then
9947     :
9948     else
9949     { { echo "$as_me:$LINENO: error: gmp.h not found, required for --enable-dns" >&5
9950     echo "$as_me: error: gmp.h not found, required for --enable-dns" >&2;}
9951     { (exit 1); exit 1; }; }
9952     fi
9953    
9954    
9955    
9956     echo "$as_me:$LINENO: checking for main in -lgmp" >&5
9957     echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
9958     if test "${ac_cv_lib_gmp_main+set}" = set; then
9959     echo $ECHO_N "(cached) $ECHO_C" >&6
9960     else
9961     ac_check_lib_save_LIBS=$LIBS
9962     LIBS="-lgmp $LIBS"
9963     cat >conftest.$ac_ext <<_ACEOF
9964     /* confdefs.h. */
9965     _ACEOF
9966     cat confdefs.h >>conftest.$ac_ext
9967     cat >>conftest.$ac_ext <<_ACEOF
9968     /* end confdefs.h. */
9969    
9970    
9971     int
9972     main ()
9973     {
9974     main ();
9975     ;
9976     return 0;
9977     }
9978     _ACEOF
9979     rm -f conftest.$ac_objext conftest$ac_exeext
9980     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9981     (eval $ac_link) 2>conftest.er1
9982     ac_status=$?
9983     grep -v '^ *+' conftest.er1 >conftest.err
9984     rm -f conftest.er1
9985     cat conftest.err >&5
9986     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987     (exit $ac_status); } &&
9988     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9989     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990     (eval $ac_try) 2>&5
9991     ac_status=$?
9992     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993     (exit $ac_status); }; } &&
9994     { ac_try='test -s conftest$ac_exeext'
9995     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996     (eval $ac_try) 2>&5
9997     ac_status=$?
9998     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999     (exit $ac_status); }; }; then
10000     ac_cv_lib_gmp_main=yes
10001     else
10002     echo "$as_me: failed program was:" >&5
10003     sed 's/^/| /' conftest.$ac_ext >&5
10004    
10005     ac_cv_lib_gmp_main=no
10006     fi
10007     rm -f conftest.err conftest.$ac_objext \
10008     conftest$ac_exeext conftest.$ac_ext
10009     LIBS=$ac_check_lib_save_LIBS
10010     fi
10011     echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
10012     echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
10013     if test $ac_cv_lib_gmp_main = yes; then
10014     cat >>confdefs.h <<_ACEOF
10015     #define HAVE_LIBGMP 1
10016     _ACEOF
10017    
10018     LIBS="-lgmp $LIBS"
10019    
10020     else
10021     { { echo "$as_me:$LINENO: error: libgmp not found, required for --enable-dns" >&5
10022     echo "$as_me: error: libgmp not found, required for --enable-dns" >&2;}
10023     { (exit 1); exit 1; }; }
10024     fi
10025    
10026    
10027    
10028 pcg 1.17 cat >>confdefs.h <<_ACEOF
10029     #define ENABLE_DNS 1
10030     _ACEOF
10031    
10032    
10033 pcg 1.24
10034 pcg 1.17 fi;
10035    
10036 pcg 1.1 # Check whether --enable-http-proxy or --disable-http-proxy was given.
10037     if test "${enable_http_proxy+set}" = set; then
10038     enableval="$enable_http_proxy"
10039    
10040     cat >>confdefs.h <<_ACEOF
10041     #define ENABLE_HTTP_PROXY 1
10042     _ACEOF
10043    
10044    
10045     fi;
10046    
10047 pcg 1.21 HMAC=12
10048     # Check whether --enable-hmac-length or --disable-hmac-length was given.
10049 pcg 1.1 if test "${enable_hmac_length+set}" = set; then
10050     enableval="$enable_hmac_length"
10051     HMAC=$enableval
10052    
10053     fi;
10054    
10055     cat >>confdefs.h <<_ACEOF
10056     #define HMACLENGTH $HMAC
10057     _ACEOF
10058    
10059    
10060 pcg 1.21 RAND=8
10061     # Check whether --enable-rand-length or --disable-rand-length was given.
10062 pcg 1.1 if test "${enable_rand_length+set}" = set; then
10063     enableval="$enable_rand_length"
10064     RAND=$enableval
10065    
10066     fi;
10067    
10068     cat >>confdefs.h <<_ACEOF
10069     #define RAND_SIZE $RAND
10070     _ACEOF
10071    
10072    
10073 pcg 1.21 MTU=1500
10074     # Check whether --enable-mtu or --disable-mtu was given.
10075 pcg 1.1 if test "${enable_mtu+set}" = set; then
10076     enableval="$enable_mtu"
10077     MTU=$enableval
10078    
10079     fi;
10080    
10081     cat >>confdefs.h <<_ACEOF
10082     #define MAX_MTU $MTU + 14
10083     _ACEOF
10084    
10085    
10086     COMPRESS=1
10087     # Check whether --enable-compression or --disable-compression was given.
10088     if test "${enable_compression+set}" = set; then
10089     enableval="$enable_compression"
10090     if test "x$enableval" = xno; then
10091     COMPRESS=0
10092     fi
10093    
10094     fi;
10095    
10096     cat >>confdefs.h <<_ACEOF
10097     #define ENABLE_COMPRESSION $COMPRESS
10098     _ACEOF
10099    
10100    
10101 pcg 1.30 CIPHER=aes_128_cbc
10102 pcg 1.1 # Check whether --enable-cipher or --disable-cipher was given.
10103     if test "${enable_cipher+set}" = set; then
10104     enableval="$enable_cipher"
10105     if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi
10106     if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi
10107     if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi
10108     if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi
10109    
10110     fi;
10111    
10112     cat >>confdefs.h <<_ACEOF
10113     #define ENABLE_CIPHER EVP_${CIPHER}
10114     _ACEOF
10115    
10116    
10117 pcg 1.30 DIGEST=ripemd160
10118 pcg 1.1 # Check whether --enable-digest or --disable-digest was given.
10119     if test "${enable_digest+set}" = set; then
10120     enableval="$enable_digest"
10121     if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi
10122     if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi
10123     if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
10124     if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi
10125    
10126     fi;
10127    
10128     cat >>confdefs.h <<_ACEOF
10129     #define ENABLE_DIGEST EVP_${DIGEST}
10130     _ACEOF
10131    
10132    
10133     if $CXX -v --help 2>&1 | grep -q fno-rtti; then
10134     CXXFLAGS="$CXXFLAGS -fno-rtti"
10135     fi
10136    
10137     if $CXX -v --help 2>&1 | grep -q fexceptions; then
10138     CXXFLAGS="$CXXFLAGS -fno-exceptions"
10139     fi
10140    
10141    
10142    
10143    
10144 pcg 1.23 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile"
10145 pcg 1.19
10146 pcg 1.1 cat >confcache <<\_ACEOF
10147     # This file is a shell script that caches the results of configure
10148     # tests run on this system so they can be shared between configure
10149     # scripts and configure runs, see configure's option --config-cache.
10150     # It is not useful on other systems. If it contains results you don't
10151     # want to keep, you may remove or edit it.
10152     #
10153     # config.status only pays attention to the cache file if you give it
10154     # the --recheck option to rerun configure.
10155     #
10156     # `ac_cv_env_foo' variables (set or unset) will be overridden when
10157     # loading this file, other *unset* `ac_cv_foo' will be assigned the
10158     # following values.
10159    
10160     _ACEOF
10161    
10162     # The following way of writing the cache mishandles newlines in values,
10163     # but we know of no workaround that is simple, portable, and efficient.
10164     # So, don't put newlines in cache variables' values.
10165     # Ultrix sh set writes to stderr and can't be redirected directly,
10166     # and sets the high bit in the cache file unless we assign to the vars.
10167     {
10168     (set) 2>&1 |
10169     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10170     *ac_space=\ *)
10171     # `set' does not quote correctly, so add quotes (double-quote
10172     # substitution turns \\\\ into \\, and sed turns \\ into \).
10173     sed -n \
10174 pcg 1.11 "s/'/'\\\\''/g;
10175     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10176 pcg 1.1 ;;
10177     *)
10178     # `set' quotes correctly as required by POSIX, so do not add quotes.
10179     sed -n \
10180 pcg 1.11 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10181 pcg 1.1 ;;
10182     esac;
10183     } |
10184     sed '
10185     t clear
10186     : clear
10187     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10188     t end
10189     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10190     : end' >>confcache
10191     if diff $cache_file confcache >/dev/null 2>&1; then :; else
10192     if test -w $cache_file; then
10193     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10194     cat confcache >$cache_file
10195     else
10196     echo "not updating unwritable cache $cache_file"
10197     fi
10198     fi
10199     rm -f confcache
10200    
10201     test "x$prefix" = xNONE && prefix=$ac_default_prefix
10202     # Let make expand exec_prefix.
10203     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10204    
10205     # VPATH may cause trouble with some makes, so we remove $(srcdir),
10206     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10207     # trailing colons and then remove the whole line if VPATH becomes empty
10208     # (actually we leave an empty line to preserve line numbers).
10209     if test "x$srcdir" = x.; then
10210 pcg 1.11 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10211 pcg 1.1 s/:*\$(srcdir):*/:/;
10212     s/:*\${srcdir}:*/:/;
10213     s/:*@srcdir@:*/:/;
10214 pcg 1.11 s/^\([^=]*=[ ]*\):*/\1/;
10215 pcg 1.1 s/:*$//;
10216 pcg 1.11 s/^[^=]*=[ ]*$//;
10217 pcg 1.1 }'
10218     fi
10219    
10220     DEFS=-DHAVE_CONFIG_H
10221    
10222     ac_libobjs=
10223     ac_ltlibobjs=
10224     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10225     # 1. Remove the extension, and $U if already installed.
10226     ac_i=`echo "$ac_i" |
10227 pcg 1.11 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10228 pcg 1.1 # 2. Add them.
10229     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10230     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10231     done
10232     LIBOBJS=$ac_libobjs
10233    
10234     LTLIBOBJS=$ac_ltlibobjs
10235    
10236    
10237     if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10238     { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10239     Usually this means the macro was only invoked conditionally." >&5
10240     echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10241     Usually this means the macro was only invoked conditionally." >&2;}
10242     { (exit 1); exit 1; }; }
10243     fi
10244     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10245     { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10246     Usually this means the macro was only invoked conditionally." >&5
10247     echo "$as_me: error: conditional \"AMDEP\" was never defined.
10248     Usually this means the macro was only invoked conditionally." >&2;}
10249     { (exit 1); exit 1; }; }
10250     fi
10251     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10252     { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10253     Usually this means the macro was only invoked conditionally." >&5
10254     echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10255     Usually this means the macro was only invoked conditionally." >&2;}
10256     { (exit 1); exit 1; }; }
10257     fi
10258     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10259     { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10260     Usually this means the macro was only invoked conditionally." >&5
10261     echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10262     Usually this means the macro was only invoked conditionally." >&2;}
10263     { (exit 1); exit 1; }; }
10264     fi
10265     if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10266     { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10267     Usually this means the macro was only invoked conditionally." >&5
10268     echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10269     Usually this means the macro was only invoked conditionally." >&2;}
10270     { (exit 1); exit 1; }; }
10271     fi
10272 pcg 1.16 if test -z "${ROHC_TRUE}" && test -z "${ROHC_FALSE}"; then
10273     { { echo "$as_me:$LINENO: error: conditional \"ROHC\" was never defined.
10274     Usually this means the macro was only invoked conditionally." >&5
10275     echo "$as_me: error: conditional \"ROHC\" was never defined.
10276     Usually this means the macro was only invoked conditionally." >&2;}
10277     { (exit 1); exit 1; }; }
10278     fi
10279 pcg 1.1
10280     : ${CONFIG_STATUS=./config.status}
10281     ac_clean_files_save=$ac_clean_files
10282     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10283     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10284     echo "$as_me: creating $CONFIG_STATUS" >&6;}
10285     cat >$CONFIG_STATUS <<_ACEOF
10286     #! $SHELL
10287     # Generated by $as_me.
10288     # Run this file to recreate the current configuration.
10289     # Compiler output produced by configure, useful for debugging
10290     # configure, is in config.log if it exists.
10291    
10292     debug=false
10293     ac_cs_recheck=false
10294     ac_cs_silent=false
10295     SHELL=\${CONFIG_SHELL-$SHELL}
10296     _ACEOF
10297    
10298     cat >>$CONFIG_STATUS <<\_ACEOF
10299     ## --------------------- ##
10300     ## M4sh Initialization. ##
10301     ## --------------------- ##
10302    
10303     # Be Bourne compatible
10304     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10305     emulate sh
10306     NULLCMD=:
10307     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10308     # is contrary to our usage. Disable this feature.
10309     alias -g '${1+"$@"}'='"$@"'
10310     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10311     set -o posix
10312     fi
10313 pcg 1.11 DUALCASE=1; export DUALCASE # for MKS sh
10314 pcg 1.1
10315     # Support unset when possible.
10316 pcg 1.11 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10317 pcg 1.1 as_unset=unset
10318     else
10319     as_unset=false
10320     fi
10321    
10322    
10323     # Work around bugs in pre-3.0 UWIN ksh.
10324     $as_unset ENV MAIL MAILPATH
10325     PS1='$ '
10326     PS2='> '
10327     PS4='+ '
10328    
10329     # NLS nuisances.
10330     for as_var in \
10331     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10332     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10333     LC_TELEPHONE LC_TIME
10334     do
10335 pcg 1.11 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10336 pcg 1.1 eval $as_var=C; export $as_var
10337     else
10338     $as_unset $as_var
10339     fi
10340     done
10341    
10342     # Required to use basename.
10343     if expr a : '\(a\)' >/dev/null 2>&1; then
10344     as_expr=expr
10345     else
10346     as_expr=false
10347     fi
10348    
10349     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10350     as_basename=basename
10351     else
10352     as_basename=false
10353     fi
10354    
10355    
10356     # Name of the executable.
10357     as_me=`$as_basename "$0" ||
10358     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10359     X"$0" : 'X\(//\)$' \| \
10360     X"$0" : 'X\(/\)$' \| \
10361     . : '\(.\)' 2>/dev/null ||
10362     echo X/"$0" |
10363     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10364     /^X\/\(\/\/\)$/{ s//\1/; q; }
10365     /^X\/\(\/\).*/{ s//\1/; q; }
10366     s/.*/./; q'`
10367    
10368    
10369     # PATH needs CR, and LINENO needs CR and PATH.
10370     # Avoid depending upon Character Ranges.
10371     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10372     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10373     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10374     as_cr_digits='0123456789'
10375     as_cr_alnum=$as_cr_Letters$as_cr_digits
10376    
10377     # The user is always right.
10378     if test "${PATH_SEPARATOR+set}" != set; then
10379     echo "#! /bin/sh" >conf$$.sh
10380     echo "exit 0" >>conf$$.sh
10381     chmod +x conf$$.sh
10382     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10383     PATH_SEPARATOR=';'
10384     else
10385     PATH_SEPARATOR=:
10386     fi
10387     rm -f conf$$.sh
10388     fi
10389    
10390    
10391     as_lineno_1=$LINENO
10392     as_lineno_2=$LINENO
10393     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10394     test "x$as_lineno_1" != "x$as_lineno_2" &&
10395     test "x$as_lineno_3" = "x$as_lineno_2" || {
10396     # Find who we are. Look in the path if we contain no path at all
10397     # relative or not.
10398     case $0 in
10399     *[\\/]* ) as_myself=$0 ;;
10400     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401     for as_dir in $PATH
10402     do
10403     IFS=$as_save_IFS
10404     test -z "$as_dir" && as_dir=.
10405     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10406     done
10407    
10408     ;;
10409     esac
10410     # We did not find ourselves, most probably we were run as `sh COMMAND'
10411     # in which case we are not to be found in the path.
10412     if test "x$as_myself" = x; then
10413     as_myself=$0
10414     fi
10415     if test ! -f "$as_myself"; then
10416     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10417     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10418     { (exit 1); exit 1; }; }
10419     fi
10420     case $CONFIG_SHELL in
10421     '')
10422     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10424     do
10425     IFS=$as_save_IFS
10426     test -z "$as_dir" && as_dir=.
10427     for as_base in sh bash ksh sh5; do
10428     case $as_dir in
10429     /*)
10430     if ("$as_dir/$as_base" -c '
10431     as_lineno_1=$LINENO
10432     as_lineno_2=$LINENO
10433     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10434     test "x$as_lineno_1" != "x$as_lineno_2" &&
10435     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10436     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10437     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10438     CONFIG_SHELL=$as_dir/$as_base
10439     export CONFIG_SHELL
10440     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10441     fi;;
10442     esac
10443     done
10444     done
10445     ;;
10446     esac
10447    
10448     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10449     # uniformly replaced by the line number. The first 'sed' inserts a
10450     # line-number line before each line; the second 'sed' does the real
10451     # work. The second script uses 'N' to pair each line-number line
10452     # with the numbered line, and appends trailing '-' during
10453     # substitution so that $LINENO is not a special case at line end.
10454     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10455     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10456     sed '=' <$as_myself |
10457     sed '
10458     N
10459     s,$,-,
10460     : loop
10461     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10462     t loop
10463     s,-$,,
10464     s,^['$as_cr_digits']*\n,,
10465     ' >$as_me.lineno &&
10466     chmod +x $as_me.lineno ||
10467     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10468     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10469     { (exit 1); exit 1; }; }
10470    
10471     # Don't try to exec as it changes $[0], causing all sort of problems
10472     # (the dirname of $[0] is not the place where we might find the
10473     # original and so on. Autoconf is especially sensible to this).
10474     . ./$as_me.lineno
10475     # Exit status is that of the last command.
10476     exit
10477     }
10478    
10479    
10480     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10481     *c*,-n*) ECHO_N= ECHO_C='
10482     ' ECHO_T=' ' ;;
10483     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10484     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10485     esac
10486    
10487     if expr a : '\(a\)' >/dev/null 2>&1; then
10488     as_expr=expr
10489     else
10490     as_expr=false
10491     fi
10492    
10493     rm -f conf$$ conf$$.exe conf$$.file
10494     echo >conf$$.file
10495     if ln -s conf$$.file conf$$ 2>/dev/null; then
10496     # We could just check for DJGPP; but this test a) works b) is more generic
10497     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10498     if test -f conf$$.exe; then
10499     # Don't use ln at all; we don't have any links
10500     as_ln_s='cp -p'
10501     else
10502     as_ln_s='ln -s'
10503     fi
10504     elif ln conf$$.file conf$$ 2>/dev/null; then
10505     as_ln_s=ln
10506     else
10507     as_ln_s='cp -p'
10508     fi
10509     rm -f conf$$ conf$$.exe conf$$.file
10510    
10511     if mkdir -p . 2>/dev/null; then
10512     as_mkdir_p=:
10513     else
10514 pcg 1.11 test -d ./-p && rmdir ./-p
10515 pcg 1.1 as_mkdir_p=false
10516     fi
10517    
10518     as_executable_p="test -f"
10519    
10520     # Sed expression to map a string onto a valid CPP name.
10521 pcg 1.11 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10522 pcg 1.1
10523     # Sed expression to map a string onto a valid variable name.
10524 pcg 1.11 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10525 pcg 1.1
10526    
10527     # IFS
10528     # We need space, tab and new line, in precisely that order.
10529     as_nl='
10530     '
10531     IFS=" $as_nl"
10532    
10533     # CDPATH.
10534     $as_unset CDPATH
10535    
10536     exec 6>&1
10537    
10538     # Open the log real soon, to keep \$[0] and so on meaningful, and to
10539     # report actual input values of CONFIG_FILES etc. instead of their
10540     # values after options handling. Logging --version etc. is OK.
10541     exec 5>>config.log
10542     {
10543     echo
10544     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10545     ## Running $as_me. ##
10546     _ASBOX
10547     } >&5
10548     cat >&5 <<_CSEOF
10549    
10550     This file was extended by $as_me, which was
10551 pcg 1.14 generated by GNU Autoconf 2.59. Invocation command line was
10552 pcg 1.1
10553     CONFIG_FILES = $CONFIG_FILES
10554     CONFIG_HEADERS = $CONFIG_HEADERS
10555     CONFIG_LINKS = $CONFIG_LINKS
10556     CONFIG_COMMANDS = $CONFIG_COMMANDS
10557     $ $0 $@
10558    
10559     _CSEOF
10560     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10561     echo >&5
10562     _ACEOF
10563    
10564     # Files that config.status was made for.
10565     if test -n "$ac_config_files"; then
10566     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10567     fi
10568    
10569     if test -n "$ac_config_headers"; then
10570     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10571     fi
10572    
10573     if test -n "$ac_config_links"; then
10574     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10575     fi
10576    
10577     if test -n "$ac_config_commands"; then
10578     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10579     fi
10580    
10581     cat >>$CONFIG_STATUS <<\_ACEOF
10582    
10583     ac_cs_usage="\
10584     \`$as_me' instantiates files from templates according to the
10585     current configuration.
10586    
10587     Usage: $0 [OPTIONS] [FILE]...
10588    
10589     -h, --help print this help, then exit
10590     -V, --version print version number, then exit
10591     -q, --quiet do not print progress messages
10592     -d, --debug don't remove temporary files
10593     --recheck update $as_me by reconfiguring in the same conditions
10594     --file=FILE[:TEMPLATE]
10595 pcg 1.11 instantiate the configuration file FILE
10596 pcg 1.1 --header=FILE[:TEMPLATE]
10597 pcg 1.11 instantiate the configuration header FILE
10598 pcg 1.1
10599     Configuration files:
10600     $config_files
10601    
10602     Configuration headers:
10603     $config_headers
10604    
10605     Configuration commands:
10606     $config_commands
10607    
10608     Report bugs to <bug-autoconf@gnu.org>."
10609     _ACEOF
10610    
10611     cat >>$CONFIG_STATUS <<_ACEOF
10612     ac_cs_version="\\
10613     config.status
10614 pcg 1.14 configured by $0, generated by GNU Autoconf 2.59,
10615 pcg 1.1 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10616    
10617 pcg 1.11 Copyright (C) 2003 Free Software Foundation, Inc.
10618 pcg 1.1 This config.status script is free software; the Free Software Foundation
10619     gives unlimited permission to copy, distribute and modify it."
10620     srcdir=$srcdir
10621     INSTALL="$INSTALL"
10622     _ACEOF
10623    
10624     cat >>$CONFIG_STATUS <<\_ACEOF
10625     # If no file are specified by the user, then we need to provide default
10626     # value. By we need to know if files were specified by the user.
10627     ac_need_defaults=:
10628     while test $# != 0
10629     do
10630     case $1 in
10631     --*=*)
10632     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10633     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10634     ac_shift=:
10635     ;;
10636     -*)
10637     ac_option=$1
10638     ac_optarg=$2
10639     ac_shift=shift
10640     ;;
10641     *) # This is not an option, so the user has probably given explicit
10642     # arguments.
10643     ac_option=$1
10644     ac_need_defaults=false;;
10645     esac
10646    
10647     case $ac_option in
10648     # Handling of the options.
10649     _ACEOF
10650     cat >>$CONFIG_STATUS <<\_ACEOF
10651     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10652     ac_cs_recheck=: ;;
10653     --version | --vers* | -V )
10654     echo "$ac_cs_version"; exit 0 ;;
10655     --he | --h)
10656     # Conflict between --help and --header
10657     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10658     Try \`$0 --help' for more information." >&5
10659     echo "$as_me: error: ambiguous option: $1
10660     Try \`$0 --help' for more information." >&2;}
10661     { (exit 1); exit 1; }; };;
10662     --help | --hel | -h )
10663     echo "$ac_cs_usage"; exit 0 ;;
10664     --debug | --d* | -d )
10665     debug=: ;;
10666     --file | --fil | --fi | --f )
10667     $ac_shift
10668     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10669     ac_need_defaults=false;;
10670     --header | --heade | --head | --hea )
10671     $ac_shift
10672     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10673     ac_need_defaults=false;;
10674     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10675     | -silent | --silent | --silen | --sile | --sil | --si | --s)
10676     ac_cs_silent=: ;;
10677    
10678     # This is an error.
10679     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10680     Try \`$0 --help' for more information." >&5
10681     echo "$as_me: error: unrecognized option: $1
10682     Try \`$0 --help' for more information." >&2;}
10683     { (exit 1); exit 1; }; } ;;
10684    
10685     *) ac_config_targets="$ac_config_targets $1" ;;
10686    
10687     esac
10688     shift
10689     done
10690    
10691     ac_configure_extra_args=
10692    
10693     if $ac_cs_silent; then
10694     exec 6>/dev/null
10695     ac_configure_extra_args="$ac_configure_extra_args --silent"
10696     fi
10697    
10698     _ACEOF
10699     cat >>$CONFIG_STATUS <<_ACEOF
10700     if \$ac_cs_recheck; then
10701     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10702     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10703     fi
10704    
10705     _ACEOF
10706    
10707     cat >>$CONFIG_STATUS <<_ACEOF
10708     #
10709     # INIT-COMMANDS section.
10710     #
10711    
10712     # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10713     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10714     # from automake.
10715     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
10716     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10717     LINGUAS="${LINGUAS-%UNSET%}"
10718    
10719     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10720    
10721     _ACEOF
10722    
10723    
10724    
10725     cat >>$CONFIG_STATUS <<\_ACEOF
10726     for ac_config_target in $ac_config_targets
10727     do
10728     case "$ac_config_target" in
10729     # Handling of arguments.
10730     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10731     "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10732     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10733     "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10734     "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10735     "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10736     "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10737     "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10738     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10739     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10740     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10741     { (exit 1); exit 1; }; };;
10742     esac
10743     done
10744    
10745     # If the user did not use the arguments to specify the items to instantiate,
10746     # then the envvar interface is used. Set only those that are not.
10747     # We use the long form for the default assignment because of an extremely
10748     # bizarre bug on SunOS 4.1.3.
10749     if $ac_need_defaults; then
10750     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10751     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10752     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10753     fi
10754    
10755     # Have a temporary directory for convenience. Make it in the build tree
10756     # simply because there is no reason to put it here, and in addition,
10757     # creating and moving files from /tmp can sometimes cause problems.
10758     # Create a temporary directory, and hook for its removal unless debugging.
10759     $debug ||
10760     {
10761     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10762     trap '{ (exit 1); exit 1; }' 1 2 13 15
10763     }
10764    
10765     # Create a (secure) tmp directory for tmp files.
10766    
10767     {
10768     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10769     test -n "$tmp" && test -d "$tmp"
10770     } ||
10771     {
10772     tmp=./confstat$$-$RANDOM
10773     (umask 077 && mkdir $tmp)
10774     } ||
10775     {
10776     echo "$me: cannot create a temporary directory in ." >&2
10777     { (exit 1); exit 1; }
10778     }
10779    
10780     _ACEOF
10781    
10782     cat >>$CONFIG_STATUS <<_ACEOF
10783    
10784     #
10785     # CONFIG_FILES section.
10786     #
10787    
10788     # No need to generate the scripts if there are no CONFIG_FILES.
10789     # This happens for instance when ./config.status config.h
10790     if test -n "\$CONFIG_FILES"; then
10791     # Protect against being on the right side of a sed subst in config.status.
10792     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10793     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10794     s,@SHELL@,$SHELL,;t t
10795     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10796     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10797     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10798     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10799     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10800     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10801     s,@exec_prefix@,$exec_prefix,;t t
10802     s,@prefix@,$prefix,;t t
10803     s,@program_transform_name@,$program_transform_name,;t t
10804     s,@bindir@,$bindir,;t t
10805     s,@sbindir@,$sbindir,;t t
10806     s,@libexecdir@,$libexecdir,;t t
10807     s,@datadir@,$datadir,;t t
10808     s,@sysconfdir@,$sysconfdir,;t t
10809     s,@sharedstatedir@,$sharedstatedir,;t t
10810     s,@localstatedir@,$localstatedir,;t t
10811     s,@libdir@,$libdir,;t t
10812     s,@includedir@,$includedir,;t t
10813     s,@oldincludedir@,$oldincludedir,;t t
10814     s,@infodir@,$infodir,;t t
10815     s,@mandir@,$mandir,;t t
10816     s,@build_alias@,$build_alias,;t t
10817     s,@host_alias@,$host_alias,;t t
10818     s,@target_alias@,$target_alias,;t t
10819     s,@DEFS@,$DEFS,;t t
10820     s,@ECHO_C@,$ECHO_C,;t t
10821     s,@ECHO_N@,$ECHO_N,;t t
10822     s,@ECHO_T@,$ECHO_T,;t t
10823     s,@LIBS@,$LIBS,;t t
10824     s,@build@,$build,;t t
10825     s,@build_cpu@,$build_cpu,;t t
10826     s,@build_vendor@,$build_vendor,;t t
10827     s,@build_os@,$build_os,;t t
10828     s,@host@,$host,;t t
10829     s,@host_cpu@,$host_cpu,;t t
10830     s,@host_vendor@,$host_vendor,;t t
10831     s,@host_os@,$host_os,;t t
10832     s,@target@,$target,;t t
10833     s,@target_cpu@,$target_cpu,;t t
10834     s,@target_vendor@,$target_vendor,;t t
10835     s,@target_os@,$target_os,;t t
10836     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10837     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10838     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10839     s,@CYGPATH_W@,$CYGPATH_W,;t t
10840     s,@PACKAGE@,$PACKAGE,;t t
10841     s,@VERSION@,$VERSION,;t t
10842     s,@ACLOCAL@,$ACLOCAL,;t t
10843     s,@AUTOCONF@,$AUTOCONF,;t t
10844     s,@AUTOMAKE@,$AUTOMAKE,;t t
10845     s,@AUTOHEADER@,$AUTOHEADER,;t t
10846     s,@MAKEINFO@,$MAKEINFO,;t t
10847     s,@install_sh@,$install_sh,;t t
10848     s,@STRIP@,$STRIP,;t t
10849     s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10850     s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10851 pcg 1.32 s,@mkdir_p@,$mkdir_p,;t t
10852 pcg 1.1 s,@AWK@,$AWK,;t t
10853     s,@SET_MAKE@,$SET_MAKE,;t t
10854     s,@am__leading_dot@,$am__leading_dot,;t t
10855 pcg 1.32 s,@AMTAR@,$AMTAR,;t t
10856     s,@am__tar@,$am__tar,;t t
10857     s,@am__untar@,$am__untar,;t t
10858 pcg 1.1 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10859     s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10860     s,@MAINT@,$MAINT,;t t
10861     s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10862     s,@MSGFMT@,$MSGFMT,;t t
10863     s,@GMSGFMT@,$GMSGFMT,;t t
10864     s,@XGETTEXT@,$XGETTEXT,;t t
10865     s,@MSGMERGE@,$MSGMERGE,;t t
10866     s,@CC@,$CC,;t t
10867     s,@CFLAGS@,$CFLAGS,;t t
10868     s,@LDFLAGS@,$LDFLAGS,;t t
10869     s,@CPPFLAGS@,$CPPFLAGS,;t t
10870     s,@ac_ct_CC@,$ac_ct_CC,;t t
10871     s,@EXEEXT@,$EXEEXT,;t t
10872     s,@OBJEXT@,$OBJEXT,;t t
10873     s,@DEPDIR@,$DEPDIR,;t t
10874     s,@am__include@,$am__include,;t t
10875     s,@am__quote@,$am__quote,;t t
10876     s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10877     s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10878     s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10879     s,@CCDEPMODE@,$CCDEPMODE,;t t
10880     s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10881     s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10882     s,@USE_NLS@,$USE_NLS,;t t
10883     s,@LIBICONV@,$LIBICONV,;t t
10884     s,@LTLIBICONV@,$LTLIBICONV,;t t
10885     s,@INTLLIBS@,$INTLLIBS,;t t
10886     s,@LIBINTL@,$LIBINTL,;t t
10887     s,@LTLIBINTL@,$LTLIBINTL,;t t
10888     s,@POSUB@,$POSUB,;t t
10889     s,@CPP@,$CPP,;t t
10890     s,@CXX@,$CXX,;t t
10891     s,@CXXFLAGS@,$CXXFLAGS,;t t
10892     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10893     s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10894     s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10895     s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10896     s,@EGREP@,$EGREP,;t t
10897     s,@LN_S@,$LN_S,;t t
10898     s,@RANLIB@,$RANLIB,;t t
10899     s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10900     s,@IFTYPE@,$IFTYPE,;t t
10901     s,@IFSUBTYPE@,$IFSUBTYPE,;t t
10902     s,@CXXCPP@,$CXXCPP,;t t
10903     s,@ALLOCA@,$ALLOCA,;t t
10904     s,@LINUX_IF_TUN_H@,$LINUX_IF_TUN_H,;t t
10905     s,@HAVE_TUNTAP@,$HAVE_TUNTAP,;t t
10906 pcg 1.21 s,@LDFLAGS_DAEMON@,$LDFLAGS_DAEMON,;t t
10907 pcg 1.16 s,@ROHC_TRUE@,$ROHC_TRUE,;t t
10908     s,@ROHC_FALSE@,$ROHC_FALSE,;t t
10909 pcg 1.1 s,@INCLUDES@,$INCLUDES,;t t
10910     s,@LIBOBJS@,$LIBOBJS,;t t
10911     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10912     CEOF
10913    
10914     _ACEOF
10915    
10916     cat >>$CONFIG_STATUS <<\_ACEOF
10917     # Split the substitutions into bite-sized pieces for seds with
10918     # small command number limits, like on Digital OSF/1 and HP-UX.
10919     ac_max_sed_lines=48
10920     ac_sed_frag=1 # Number of current file.
10921     ac_beg=1 # First line for current file.
10922     ac_end=$ac_max_sed_lines # Line after last line for current file.
10923     ac_more_lines=:
10924     ac_sed_cmds=
10925     while $ac_more_lines; do
10926     if test $ac_beg -gt 1; then
10927     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10928     else
10929     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10930     fi
10931     if test ! -s $tmp/subs.frag; then
10932     ac_more_lines=false
10933     else
10934     # The purpose of the label and of the branching condition is to
10935     # speed up the sed processing (if there are no `@' at all, there
10936     # is no need to browse any of the substitutions).
10937     # These are the two extra sed commands mentioned above.
10938     (echo ':t
10939     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10940     if test -z "$ac_sed_cmds"; then
10941 pcg 1.11 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10942 pcg 1.1 else
10943 pcg 1.11 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10944 pcg 1.1 fi
10945     ac_sed_frag=`expr $ac_sed_frag + 1`
10946     ac_beg=$ac_end
10947     ac_end=`expr $ac_end + $ac_max_sed_lines`
10948     fi
10949     done
10950     if test -z "$ac_sed_cmds"; then
10951     ac_sed_cmds=cat
10952     fi
10953     fi # test -n "$CONFIG_FILES"
10954    
10955     _ACEOF
10956     cat >>$CONFIG_STATUS <<\_ACEOF
10957     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10958     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10959     case $ac_file in
10960     - | *:- | *:-:* ) # input from stdin
10961 pcg 1.11 cat >$tmp/stdin
10962     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10963     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10964 pcg 1.1 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10965 pcg 1.11 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10966 pcg 1.1 * ) ac_file_in=$ac_file.in ;;
10967     esac
10968    
10969     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10970     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10971     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10972 pcg 1.11 X"$ac_file" : 'X\(//\)[^/]' \| \
10973     X"$ac_file" : 'X\(//\)$' \| \
10974     X"$ac_file" : 'X\(/\)' \| \
10975     . : '\(.\)' 2>/dev/null ||
10976 pcg 1.1 echo X"$ac_file" |
10977     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10978     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10979     /^X\(\/\/\)$/{ s//\1/; q; }
10980     /^X\(\/\).*/{ s//\1/; q; }
10981     s/.*/./; q'`
10982     { if $as_mkdir_p; then
10983     mkdir -p "$ac_dir"
10984     else
10985     as_dir="$ac_dir"
10986     as_dirs=
10987     while test ! -d "$as_dir"; do
10988     as_dirs="$as_dir $as_dirs"
10989     as_dir=`(dirname "$as_dir") 2>/dev/null ||
10990     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10991 pcg 1.11 X"$as_dir" : 'X\(//\)[^/]' \| \
10992     X"$as_dir" : 'X\(//\)$' \| \
10993     X"$as_dir" : 'X\(/\)' \| \
10994     . : '\(.\)' 2>/dev/null ||
10995 pcg 1.1 echo X"$as_dir" |
10996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10997     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10998     /^X\(\/\/\)$/{ s//\1/; q; }
10999     /^X\(\/\).*/{ s//\1/; q; }
11000     s/.*/./; q'`
11001     done
11002     test ! -n "$as_dirs" || mkdir $as_dirs
11003     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11004     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11005     { (exit 1); exit 1; }; }; }
11006    
11007     ac_builddir=.
11008    
11009     if test "$ac_dir" != .; then
11010     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11011     # A "../" for each directory in $ac_dir_suffix.
11012     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11013     else
11014     ac_dir_suffix= ac_top_builddir=
11015     fi
11016    
11017     case $srcdir in
11018     .) # No --srcdir option. We are building in place.
11019     ac_srcdir=.
11020     if test -z "$ac_top_builddir"; then
11021     ac_top_srcdir=.
11022     else
11023     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11024     fi ;;
11025     [\\/]* | ?:[\\/]* ) # Absolute path.
11026     ac_srcdir=$srcdir$ac_dir_suffix;
11027     ac_top_srcdir=$srcdir ;;
11028     *) # Relative path.
11029     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11030     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11031     esac
11032 pcg 1.11
11033     # Do not use `cd foo && pwd` to compute absolute paths, because
11034     # the directories may not exist.
11035     case `pwd` in
11036     .) ac_abs_builddir="$ac_dir";;
11037     *)
11038     case "$ac_dir" in
11039     .) ac_abs_builddir=`pwd`;;
11040     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11041     *) ac_abs_builddir=`pwd`/"$ac_dir";;
11042     esac;;
11043     esac
11044     case $ac_abs_builddir in
11045     .) ac_abs_top_builddir=${ac_top_builddir}.;;
11046     *)
11047     case ${ac_top_builddir}. in
11048     .) ac_abs_top_builddir=$ac_abs_builddir;;
11049     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11050     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11051     esac;;
11052     esac
11053     case $ac_abs_builddir in
11054     .) ac_abs_srcdir=$ac_srcdir;;
11055     *)
11056     case $ac_srcdir in
11057     .) ac_abs_srcdir=$ac_abs_builddir;;
11058     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11059     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11060     esac;;
11061     esac
11062     case $ac_abs_builddir in
11063     .) ac_abs_top_srcdir=$ac_top_srcdir;;
11064     *)
11065     case $ac_top_srcdir in
11066     .) ac_abs_top_srcdir=$ac_abs_builddir;;
11067     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11068     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11069     esac;;
11070     esac
11071 pcg 1.1
11072    
11073     case $INSTALL in
11074     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11075     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11076     esac
11077    
11078     # Let's still pretend it is `configure' which instantiates (i.e., don't
11079     # use $as_me), people would be surprised to read:
11080     # /* config.h. Generated by config.status. */
11081     if test x"$ac_file" = x-; then
11082     configure_input=
11083     else
11084     configure_input="$ac_file. "
11085     fi
11086     configure_input=$configure_input"Generated from `echo $ac_file_in |
11087 pcg 1.11 sed 's,.*/,,'` by configure."
11088 pcg 1.1
11089     # First look for the input files in the build tree, otherwise in the
11090     # src tree.
11091     ac_file_inputs=`IFS=:
11092     for f in $ac_file_in; do
11093     case $f in
11094     -) echo $tmp/stdin ;;
11095     [\\/$]*)
11096 pcg 1.11 # Absolute (can't be DOS-style, as IFS=:)
11097     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11098 pcg 1.1 echo "$as_me: error: cannot find input file: $f" >&2;}
11099     { (exit 1); exit 1; }; }
11100 pcg 1.11 echo "$f";;
11101 pcg 1.1 *) # Relative
11102 pcg 1.11 if test -f "$f"; then
11103     # Build tree
11104     echo "$f"
11105     elif test -f "$srcdir/$f"; then
11106     # Source tree
11107     echo "$srcdir/$f"
11108     else
11109     # /dev/null tree
11110     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11111 pcg 1.1 echo "$as_me: error: cannot find input file: $f" >&2;}
11112     { (exit 1); exit 1; }; }
11113 pcg 1.11 fi;;
11114 pcg 1.1 esac
11115     done` || { (exit 1); exit 1; }
11116 pcg 1.11
11117     if test x"$ac_file" != x-; then
11118     { echo "$as_me:$LINENO: creating $ac_file" >&5
11119     echo "$as_me: creating $ac_file" >&6;}
11120     rm -f "$ac_file"
11121     fi
11122 pcg 1.1 _ACEOF
11123     cat >>$CONFIG_STATUS <<_ACEOF
11124     sed "$ac_vpsub
11125     $extrasub
11126     _ACEOF
11127     cat >>$CONFIG_STATUS <<\_ACEOF
11128     :t
11129     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11130     s,@configure_input@,$configure_input,;t t
11131     s,@srcdir@,$ac_srcdir,;t t
11132     s,@abs_srcdir@,$ac_abs_srcdir,;t t
11133     s,@top_srcdir@,$ac_top_srcdir,;t t
11134     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11135     s,@builddir@,$ac_builddir,;t t
11136     s,@abs_builddir@,$ac_abs_builddir,;t t
11137     s,@top_builddir@,$ac_top_builddir,;t t
11138     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11139     s,@INSTALL@,$ac_INSTALL,;t t
11140     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11141     rm -f $tmp/stdin
11142     if test x"$ac_file" != x-; then
11143     mv $tmp/out $ac_file
11144     else
11145     cat $tmp/out
11146     rm -f $tmp/out
11147     fi
11148    
11149     done
11150     _ACEOF
11151     cat >>$CONFIG_STATUS <<\_ACEOF
11152    
11153     #
11154     # CONFIG_HEADER section.
11155     #
11156    
11157     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11158     # NAME is the cpp macro being defined and VALUE is the value it is being given.
11159     #
11160     # ac_d sets the value in "#define NAME VALUE" lines.
11161 pcg 1.11 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11162     ac_dB='[ ].*$,\1#\2'
11163 pcg 1.1 ac_dC=' '
11164     ac_dD=',;t'
11165     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11166 pcg 1.11 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11167 pcg 1.1 ac_uB='$,\1#\2define\3'
11168     ac_uC=' '
11169     ac_uD=',;t'
11170    
11171     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11172     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11173     case $ac_file in
11174     - | *:- | *:-:* ) # input from stdin
11175 pcg 1.11 cat >$tmp/stdin
11176     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11177     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11178 pcg 1.1 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11179 pcg 1.11 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11180 pcg 1.1 * ) ac_file_in=$ac_file.in ;;
11181     esac
11182    
11183     test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11184     echo "$as_me: creating $ac_file" >&6;}
11185    
11186     # First look for the input files in the build tree, otherwise in the
11187     # src tree.
11188     ac_file_inputs=`IFS=:
11189     for f in $ac_file_in; do
11190     case $f in
11191     -) echo $tmp/stdin ;;
11192     [\\/$]*)
11193 pcg 1.11 # Absolute (can't be DOS-style, as IFS=:)
11194     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11195 pcg 1.1 echo "$as_me: error: cannot find input file: $f" >&2;}
11196     { (exit 1); exit 1; }; }
11197 pcg 1.11 # Do quote $f, to prevent DOS paths from being IFS'd.
11198     echo "$f";;
11199 pcg 1.1 *) # Relative
11200 pcg 1.11 if test -f "$f"; then
11201     # Build tree
11202     echo "$f"
11203     elif test -f "$srcdir/$f"; then
11204     # Source tree
11205     echo "$srcdir/$f"
11206     else
11207     # /dev/null tree
11208     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11209 pcg 1.1 echo "$as_me: error: cannot find input file: $f" >&2;}
11210     { (exit 1); exit 1; }; }
11211 pcg 1.11 fi;;
11212 pcg 1.1 esac
11213     done` || { (exit 1); exit 1; }
11214     # Remove the trailing spaces.
11215 pcg 1.11 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11216 pcg 1.1
11217     _ACEOF
11218    
11219     # Transform confdefs.h into two sed scripts, `conftest.defines' and
11220     # `conftest.undefs', that substitutes the proper values into
11221     # config.h.in to produce config.h. The first handles `#define'
11222     # templates, and the second `#undef' templates.
11223     # And first: Protect against being on the right side of a sed subst in
11224     # config.status. Protect against being in an unquoted here document
11225     # in config.status.
11226     rm -f conftest.defines conftest.undefs
11227     # Using a here document instead of a string reduces the quoting nightmare.
11228     # Putting comments in sed scripts is not portable.
11229     #
11230     # `end' is used to avoid that the second main sed command (meant for
11231     # 0-ary CPP macros) applies to n-ary macro definitions.
11232     # See the Autoconf documentation for `clear'.
11233     cat >confdef2sed.sed <<\_ACEOF
11234     s/[\\&,]/\\&/g
11235     s,[\\$`],\\&,g
11236     t clear
11237     : clear
11238 pcg 1.11 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11239 pcg 1.1 t end
11240 pcg 1.11 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11241 pcg 1.1 : end
11242     _ACEOF
11243     # If some macros were called several times there might be several times
11244     # the same #defines, which is useless. Nevertheless, we may not want to
11245     # sort them, since we want the *last* AC-DEFINE to be honored.
11246     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11247     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11248     rm -f confdef2sed.sed
11249    
11250     # This sed command replaces #undef with comments. This is necessary, for
11251     # example, in the case of _POSIX_SOURCE, which is predefined and required
11252     # on some systems where configure will not decide to define it.
11253     cat >>conftest.undefs <<\_ACEOF
11254 pcg 1.11 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11255 pcg 1.1 _ACEOF
11256    
11257     # Break up conftest.defines because some shells have a limit on the size
11258     # of here documents, and old seds have small limits too (100 cmds).
11259     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11260 pcg 1.11 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11261 pcg 1.1 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11262     echo ' :' >>$CONFIG_STATUS
11263     rm -f conftest.tail
11264     while grep . conftest.defines >/dev/null
11265     do
11266     # Write a limited-size here document to $tmp/defines.sed.
11267     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11268     # Speed up: don't consider the non `#define' lines.
11269 pcg 1.11 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11270 pcg 1.1 # Work around the forget-to-reset-the-flag bug.
11271     echo 't clr' >>$CONFIG_STATUS
11272     echo ': clr' >>$CONFIG_STATUS
11273     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11274     echo 'CEOF
11275     sed -f $tmp/defines.sed $tmp/in >$tmp/out
11276     rm -f $tmp/in
11277     mv $tmp/out $tmp/in
11278     ' >>$CONFIG_STATUS
11279     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11280     rm -f conftest.defines
11281     mv conftest.tail conftest.defines
11282     done
11283     rm -f conftest.defines
11284     echo ' fi # grep' >>$CONFIG_STATUS
11285     echo >>$CONFIG_STATUS
11286    
11287     # Break up conftest.undefs because some shells have a limit on the size
11288     # of here documents, and old seds have small limits too (100 cmds).
11289     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11290     rm -f conftest.tail
11291     while grep . conftest.undefs >/dev/null
11292     do
11293     # Write a limited-size here document to $tmp/undefs.sed.
11294     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11295     # Speed up: don't consider the non `#undef'
11296 pcg 1.11 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11297 pcg 1.1 # Work around the forget-to-reset-the-flag bug.
11298     echo 't clr' >>$CONFIG_STATUS
11299     echo ': clr' >>$CONFIG_STATUS
11300     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11301     echo 'CEOF
11302     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11303     rm -f $tmp/in
11304     mv $tmp/out $tmp/in
11305     ' >>$CONFIG_STATUS
11306     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11307     rm -f conftest.undefs
11308     mv conftest.tail conftest.undefs
11309     done
11310     rm -f conftest.undefs
11311    
11312     cat >>$CONFIG_STATUS <<\_ACEOF
11313     # Let's still pretend it is `configure' which instantiates (i.e., don't
11314     # use $as_me), people would be surprised to read:
11315     # /* config.h. Generated by config.status. */
11316     if test x"$ac_file" = x-; then
11317     echo "/* Generated by configure. */" >$tmp/config.h
11318     else
11319     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11320     fi
11321     cat $tmp/in >>$tmp/config.h
11322     rm -f $tmp/in
11323     if test x"$ac_file" != x-; then
11324     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11325     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11326     echo "$as_me: $ac_file is unchanged" >&6;}
11327     else
11328     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11329     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11330 pcg 1.11 X"$ac_file" : 'X\(//\)[^/]' \| \
11331     X"$ac_file" : 'X\(//\)$' \| \
11332     X"$ac_file" : 'X\(/\)' \| \
11333     . : '\(.\)' 2>/dev/null ||
11334 pcg 1.1 echo X"$ac_file" |
11335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11336     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11337     /^X\(\/\/\)$/{ s//\1/; q; }
11338     /^X\(\/\).*/{ s//\1/; q; }
11339     s/.*/./; q'`
11340     { if $as_mkdir_p; then
11341     mkdir -p "$ac_dir"
11342     else
11343     as_dir="$ac_dir"
11344     as_dirs=
11345     while test ! -d "$as_dir"; do
11346     as_dirs="$as_dir $as_dirs"
11347     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11348     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11349 pcg 1.11 X"$as_dir" : 'X\(//\)[^/]' \| \
11350     X"$as_dir" : 'X\(//\)$' \| \
11351     X"$as_dir" : 'X\(/\)' \| \
11352     . : '\(.\)' 2>/dev/null ||
11353 pcg 1.1 echo X"$as_dir" |
11354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11355     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11356     /^X\(\/\/\)$/{ s//\1/; q; }
11357     /^X\(\/\).*/{ s//\1/; q; }
11358     s/.*/./; q'`
11359     done
11360     test ! -n "$as_dirs" || mkdir $as_dirs
11361     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11362     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11363     { (exit 1); exit 1; }; }; }
11364    
11365     rm -f $ac_file
11366     mv $tmp/config.h $ac_file
11367     fi
11368     else
11369     cat $tmp/config.h
11370     rm -f $tmp/config.h
11371     fi
11372     # Compute $ac_file's index in $config_headers.
11373     _am_stamp_count=1
11374     for _am_header in $config_headers :; do
11375     case $_am_header in
11376     $ac_file | $ac_file:* )
11377     break ;;
11378     * )
11379     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11380     esac
11381     done
11382     echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11383     $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11384 pcg 1.11 X$ac_file : 'X\(//\)[^/]' \| \
11385     X$ac_file : 'X\(//\)$' \| \
11386     X$ac_file : 'X\(/\)' \| \
11387     . : '\(.\)' 2>/dev/null ||
11388 pcg 1.1 echo X$ac_file |
11389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11390     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11391     /^X\(\/\/\)$/{ s//\1/; q; }
11392     /^X\(\/\).*/{ s//\1/; q; }
11393     s/.*/./; q'`/stamp-h$_am_stamp_count
11394     done
11395     _ACEOF
11396     cat >>$CONFIG_STATUS <<\_ACEOF
11397    
11398     #
11399     # CONFIG_COMMANDS section.
11400     #
11401     for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11402     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11403     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11404     ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11405     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11406 pcg 1.11 X"$ac_dest" : 'X\(//\)[^/]' \| \
11407     X"$ac_dest" : 'X\(//\)$' \| \
11408     X"$ac_dest" : 'X\(/\)' \| \
11409     . : '\(.\)' 2>/dev/null ||
11410 pcg 1.1 echo X"$ac_dest" |
11411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11412     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11413     /^X\(\/\/\)$/{ s//\1/; q; }
11414     /^X\(\/\).*/{ s//\1/; q; }
11415     s/.*/./; q'`
11416 pcg 1.11 { if $as_mkdir_p; then
11417     mkdir -p "$ac_dir"
11418     else
11419     as_dir="$ac_dir"
11420     as_dirs=
11421     while test ! -d "$as_dir"; do
11422     as_dirs="$as_dir $as_dirs"
11423     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11424     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11425     X"$as_dir" : 'X\(//\)[^/]' \| \
11426     X"$as_dir" : 'X\(//\)$' \| \
11427     X"$as_dir" : 'X\(/\)' \| \
11428     . : '\(.\)' 2>/dev/null ||
11429     echo X"$as_dir" |
11430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11431     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11432     /^X\(\/\/\)$/{ s//\1/; q; }
11433     /^X\(\/\).*/{ s//\1/; q; }
11434     s/.*/./; q'`
11435     done
11436     test ! -n "$as_dirs" || mkdir $as_dirs
11437     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11438     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11439     { (exit 1); exit 1; }; }; }
11440    
11441 pcg 1.1 ac_builddir=.
11442    
11443     if test "$ac_dir" != .; then
11444     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11445     # A "../" for each directory in $ac_dir_suffix.
11446     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11447     else
11448     ac_dir_suffix= ac_top_builddir=
11449     fi
11450    
11451     case $srcdir in
11452     .) # No --srcdir option. We are building in place.
11453     ac_srcdir=.
11454     if test -z "$ac_top_builddir"; then
11455     ac_top_srcdir=.
11456     else
11457     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11458     fi ;;
11459     [\\/]* | ?:[\\/]* ) # Absolute path.
11460     ac_srcdir=$srcdir$ac_dir_suffix;
11461     ac_top_srcdir=$srcdir ;;
11462     *) # Relative path.
11463     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11464     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11465     esac
11466 pcg 1.11
11467     # Do not use `cd foo && pwd` to compute absolute paths, because
11468     # the directories may not exist.
11469     case `pwd` in
11470     .) ac_abs_builddir="$ac_dir";;
11471     *)
11472     case "$ac_dir" in
11473     .) ac_abs_builddir=`pwd`;;
11474     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11475     *) ac_abs_builddir=`pwd`/"$ac_dir";;
11476     esac;;
11477     esac
11478     case $ac_abs_builddir in
11479     .) ac_abs_top_builddir=${ac_top_builddir}.;;
11480     *)
11481     case ${ac_top_builddir}. in
11482     .) ac_abs_top_builddir=$ac_abs_builddir;;
11483     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11484     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11485     esac;;
11486     esac
11487     case $ac_abs_builddir in
11488     .) ac_abs_srcdir=$ac_srcdir;;
11489     *)
11490     case $ac_srcdir in
11491     .) ac_abs_srcdir=$ac_abs_builddir;;
11492     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11493     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11494     esac;;
11495     esac
11496     case $ac_abs_builddir in
11497     .) ac_abs_top_srcdir=$ac_top_srcdir;;
11498     *)
11499     case $ac_top_srcdir in
11500     .) ac_abs_top_srcdir=$ac_abs_builddir;;
11501     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11502     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11503     esac;;
11504     esac
11505 pcg 1.1
11506    
11507     { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11508     echo "$as_me: executing $ac_dest commands" >&6;}
11509     case $ac_dest in
11510     default-1 )
11511     for ac_file in $CONFIG_FILES; do
11512     # Support "outfile[:infile[:infile...]]"
11513     case "$ac_file" in
11514     *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11515     esac
11516     # PO directories have a Makefile.in generated from Makefile.in.in.
11517     case "$ac_file" in */Makefile.in)
11518     # Adjust a relative srcdir.
11519     ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11520     ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11521     ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11522     # In autoconf-2.13 it is called $ac_given_srcdir.
11523     # In autoconf-2.50 it is called $srcdir.
11524     test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11525     case "$ac_given_srcdir" in
11526     .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11527     /*) top_srcdir="$ac_given_srcdir" ;;
11528     *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11529     esac
11530     if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11531     rm -f "$ac_dir/POTFILES"
11532     test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11533     cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11534     # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11535     # on $ac_dir but don't depend on user-specified configuration
11536     # parameters.
11537     if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11538     # The LINGUAS file contains the set of available languages.
11539     if test -n "$ALL_LINGUAS"; then
11540     test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11541     fi
11542     ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11543     # Hide the ALL_LINGUAS assigment from automake.
11544     eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11545     fi
11546     case "$ac_given_srcdir" in
11547     .) srcdirpre= ;;
11548     *) srcdirpre='$(srcdir)/' ;;
11549     esac
11550     POFILES=
11551     GMOFILES=
11552     UPDATEPOFILES=
11553     DUMMYPOFILES=
11554     for lang in $ALL_LINGUAS; do
11555     POFILES="$POFILES $srcdirpre$lang.po"
11556     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11557     UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11558     DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11559     done
11560     # CATALOGS depends on both $ac_dir and the user's LINGUAS
11561     # environment variable.
11562     INST_LINGUAS=
11563     if test -n "$ALL_LINGUAS"; then
11564     for presentlang in $ALL_LINGUAS; do
11565     useit=no
11566     if test "%UNSET%" != "$LINGUAS"; then
11567     desiredlanguages="$LINGUAS"
11568     else
11569     desiredlanguages="$ALL_LINGUAS"
11570     fi
11571     for desiredlang in $desiredlanguages; do
11572     # Use the presentlang catalog if desiredlang is
11573     # a. equal to presentlang, or
11574     # b. a variant of presentlang (because in this case,
11575     # presentlang can be used as a fallback for messages
11576     # which are not translated in the desiredlang catalog).
11577     case "$desiredlang" in
11578     "$presentlang"*) useit=yes;;
11579     esac
11580     done
11581     if test $useit = yes; then
11582     INST_LINGUAS="$INST_LINGUAS $presentlang"
11583     fi
11584     done
11585     fi
11586     CATALOGS=
11587     if test -n "$INST_LINGUAS"; then
11588     for lang in $INST_LINGUAS; do
11589     CATALOGS="$CATALOGS $lang.gmo"
11590     done
11591     fi
11592     test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11593     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"
11594     for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11595     if test -f "$f"; then
11596     case "$f" in
11597     *.orig | *.bak | *~) ;;
11598     *) cat "$f" >> "$ac_dir/Makefile" ;;
11599     esac
11600     fi
11601     done
11602     fi
11603     ;;
11604     esac
11605     done ;;
11606     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11607     # Strip MF so we end up with the name of the file.
11608     mf=`echo "$mf" | sed -e 's/:.*$//'`
11609     # Check whether this is an Automake generated Makefile or not.
11610     # We used to match only the files named `Makefile.in', but
11611     # some people rename them; so instead we look at the file content.
11612     # Grep'ing the first line is not enough: some people post-process
11613     # each Makefile.in and add a new line on top of each file to say so.
11614     # So let's grep whole file.
11615     if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11616     dirpart=`(dirname "$mf") 2>/dev/null ||
11617     $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11618 pcg 1.11 X"$mf" : 'X\(//\)[^/]' \| \
11619     X"$mf" : 'X\(//\)$' \| \
11620     X"$mf" : 'X\(/\)' \| \
11621     . : '\(.\)' 2>/dev/null ||
11622 pcg 1.1 echo X"$mf" |
11623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11624     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11625     /^X\(\/\/\)$/{ s//\1/; q; }
11626     /^X\(\/\).*/{ s//\1/; q; }
11627     s/.*/./; q'`
11628     else
11629     continue
11630     fi
11631 pcg 1.32 # Extract the definition of DEPDIR, am__include, and am__quote
11632     # from the Makefile without running `make'.
11633     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11634 pcg 1.1 test -z "$DEPDIR" && continue
11635 pcg 1.32 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11636     test -z "am__include" && continue
11637     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11638 pcg 1.1 # When using ansi2knr, U may be empty or an underscore; expand it
11639 pcg 1.32 U=`sed -n 's/^U = //p' < "$mf"`
11640     # Find all dependency output files, they are included files with
11641     # $(DEPDIR) in their names. We invoke sed twice because it is the
11642     # simplest approach to changing $(DEPDIR) to its actual value in the
11643     # expansion.
11644     for file in `sed -n "
11645     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11646 pcg 1.1 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11647     # Make sure the directory exists.
11648     test -f "$dirpart/$file" && continue
11649     fdir=`(dirname "$file") 2>/dev/null ||
11650     $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11651 pcg 1.11 X"$file" : 'X\(//\)[^/]' \| \
11652     X"$file" : 'X\(//\)$' \| \
11653     X"$file" : 'X\(/\)' \| \
11654     . : '\(.\)' 2>/dev/null ||
11655 pcg 1.1 echo X"$file" |
11656     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11657     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11658     /^X\(\/\/\)$/{ s//\1/; q; }
11659     /^X\(\/\).*/{ s//\1/; q; }
11660     s/.*/./; q'`
11661     { if $as_mkdir_p; then
11662     mkdir -p $dirpart/$fdir
11663     else
11664     as_dir=$dirpart/$fdir
11665     as_dirs=
11666     while test ! -d "$as_dir"; do
11667     as_dirs="$as_dir $as_dirs"
11668     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11669     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11670 pcg 1.11 X"$as_dir" : 'X\(//\)[^/]' \| \
11671     X"$as_dir" : 'X\(//\)$' \| \
11672     X"$as_dir" : 'X\(/\)' \| \
11673     . : '\(.\)' 2>/dev/null ||
11674 pcg 1.1 echo X"$as_dir" |
11675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11676     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11677     /^X\(\/\/\)$/{ s//\1/; q; }
11678     /^X\(\/\).*/{ s//\1/; q; }
11679     s/.*/./; q'`
11680     done
11681     test ! -n "$as_dirs" || mkdir $as_dirs
11682     fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11683     echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11684     { (exit 1); exit 1; }; }; }
11685    
11686     # echo "creating $dirpart/$file"
11687     echo '# dummy' > "$dirpart/$file"
11688     done
11689     done
11690     ;;
11691     esac
11692     done
11693     _ACEOF
11694    
11695     cat >>$CONFIG_STATUS <<\_ACEOF
11696    
11697     { (exit 0); exit 0; }
11698     _ACEOF
11699     chmod +x $CONFIG_STATUS
11700     ac_clean_files=$ac_clean_files_save
11701    
11702    
11703 pcg 1.30 # configure is writing to config.log, and then calls config.status.
11704     # config.status does its own redirection, appending to config.log.
11705     # Unfortunately, on DOS this fails, as config.log is still kept open
11706     # by configure, so config.status won't be able to write to it; its
11707     # output is simply discarded. So we exec the FD to /dev/null,
11708     # effectively closing config.log, so it can be properly (re)opened and
11709     # appended to by config.status. When coming back to configure, we
11710     # need to make the FD available again.
11711     if test "$no_create" != yes; then
11712     ac_cs_success=:
11713     ac_config_status_args=
11714     test "$silent" = yes &&
11715     ac_config_status_args="$ac_config_status_args --quiet"
11716     exec 5>/dev/null
11717     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11718     exec 5>>config.log
11719     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11720     # would make configure fail if this is the last instruction.
11721     $ac_cs_success || { (exit 1); exit 1; }
11722     fi
11723    
11724 pcg 1.1
11725     echo
11726     echo "***"
11727     echo "*** Configuration Summary"
11728     echo "***"
11729     echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE"
11730     echo "*** Cipher used: $CIPHER"
11731     echo "*** Digest used: $DIGEST"
11732     echo "*** HMAC length: $HMAC"
11733     echo "*** RAND used: $RAND"
11734     echo "*** Max. MTU: $MTU"
11735 pcg 1.30
11736     echo "***"
11737     echo "*** Enable options:"
11738     grep ENABLE_ config.h | sed -e 's/^/*** /'
11739 pcg 1.15
11740     if test "x$DIGEST" = xmd4; then
11741 pcg 1.1 echo "***"
11742 pcg 1.15 echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure"
11743     fi
11744 pcg 1.1
11745 pcg 1.15 if test "$HMAC" -lt 12; then
11746     echo "***"
11747 pcg 1.17 echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure"
11748 pcg 1.15 fi
11749    
11750     if test "$RAND" -lt 8; then
11751 pcg 1.1 echo "***"
11752 pcg 1.17 echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure"
11753 pcg 1.1 fi
11754 pcg 1.15
11755     echo "***"
11756 pcg 1.1 echo
11757    
11758