]>
Commit | Line | Data |
---|---|---|
f40ec73c | 1 | #! /bin/sh |
f40ec73c | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ae7da0 | 3 | # Generated by GNU Autoconf 2.59. |
f40ec73c | 4 | # |
81ae7da0 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
f40ec73c | 6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
f69335e6 | 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=: | |
cbdd3138 BM |
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+"$@"}'='"$@"' | |
81ae7da0 BM |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
f69335e6 | 21 | fi |
cbdd3138 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
f69335e6 | 23 | |
f69335e6 | 24 | # Support unset when possible. |
cbdd3138 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
f69335e6 | 26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
cbdd3138 BM |
31 | |
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
81ae7da0 | 33 | $as_unset ENV MAIL MAILPATH |
cbdd3138 BM |
34 | PS1='$ ' |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
81ae7da0 | 47 | $as_unset $as_var |
cbdd3138 BM |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
81ae7da0 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
cbdd3138 BM |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
81ae7da0 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
cbdd3138 BM |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
f69335e6 | 63 | |
64 | ||
65 | # Name of the executable. | |
81ae7da0 | 66 | as_me=`$as_basename "$0" || |
f69335e6 | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
81ae7da0 BM |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
f69335e6 | 71 | echo X/"$0" | |
81ae7da0 BM |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
f69335e6 | 76 | |
32843244 | 77 | |
81ae7da0 BM |
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 | |
32843244 | 85 | |
81ae7da0 BM |
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 | |
32843244 | 97 | fi |
98 | ||
32843244 | 99 | |
81ae7da0 BM |
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 | |
32843244 | 116 | |
81ae7da0 BM |
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 | '') | |
f69335e6 | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
81ae7da0 | 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
f69335e6 | 132 | do |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
81ae7da0 BM |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
f69335e6 | 137 | /*) |
81ae7da0 | 138 | if ("$as_dir/$as_base" -c ' |
32843244 | 139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
81ae7da0 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
32843244 | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
81ae7da0 BM |
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 | |
f69335e6 | 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 | |
81ae7da0 BM |
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. | |
f69335e6 | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
81ae7da0 BM |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
f69335e6 | 165 | sed ' |
166 | N | |
81ae7da0 BM |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
f69335e6 | 170 | t loop |
81ae7da0 BM |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
f69335e6 | 173 | ' >$as_me.lineno && |
81ae7da0 | 174 | chmod +x $as_me.lineno || |
f69335e6 | 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 | |
81ae7da0 BM |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
f69335e6 | 182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
81ae7da0 BM |
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= ;; | |
f69335e6 | 192 | esac |
193 | ||
81ae7da0 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
f69335e6 | 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 | |
81ae7da0 BM |
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 | |
f69335e6 | 207 | as_ln_s='cp -p' |
81ae7da0 BM |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
f69335e6 | 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 | |
81ae7da0 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
f69335e6 | 217 | |
cbdd3138 BM |
218 | if mkdir -p . 2>/dev/null; then |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
81ae7da0 | 225 | as_executable_p="test -f" |
f69335e6 | 226 | |
227 | # Sed expression to map a string onto a valid CPP name. | |
cbdd3138 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
f69335e6 | 229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
cbdd3138 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
f69335e6 | 232 | |
233 | ||
81ae7da0 BM |
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 | |
f69335e6 | 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 | ||
81ae7da0 BM |
249 | exec 6>&1 |
250 | ||
f69335e6 | 251 | # |
252 | # Initializations. | |
253 | # | |
f40ec73c | 254 | ac_default_prefix=/usr/local |
cbdd3138 | 255 | ac_config_libobj_dir=. |
f69335e6 | 256 | cross_compiling=no |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
81ae7da0 BM |
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 | ||
f69335e6 | 267 | # Identity of this package. |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="src/ircd.c" | |
275 | # 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> | |
81ae7da0 BM |
303 | #else |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
f69335e6 | 307 | #endif |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
b4f2619a | 312 | 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RM CP TOUCH OPENSSLPATH INSTALL MAKER GMAKE GUNZIP PKGCONFIG IRCDLIBS MKPASSWDLIBS CPP EGREP ALLOCA STRTOUL CRYPTOLIB MODULEFLAGS MODULES_WHICH HAVE_ZLIB URL IRCDDIR BINDIR FD_SETSIZE TREINCDIR TRELIBS CARESINCDIR CARESLIBDIR CARESLIBS LIBOBJS LTLIBOBJS' |
cbdd3138 | 313 | ac_subst_files='' |
f40ec73c | 314 | |
315 | # Initialize some variables set by options. | |
f69335e6 | 316 | ac_init_help= |
317 | ac_init_version=false | |
f40ec73c | 318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
f69335e6 | 320 | cache_file=/dev/null |
f40ec73c | 321 | exec_prefix=NONE |
f40ec73c | 322 | no_create= |
f40ec73c | 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= | |
f40ec73c | 331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
f69335e6 | 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. | |
f40ec73c | 340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
81ae7da0 | 343 | datadir='${prefix}/share' |
f40ec73c | 344 | sysconfdir='${prefix}/etc' |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
81ae7da0 | 347 | libdir='${exec_prefix}/lib' |
f40ec73c | 348 | includedir='${prefix}/include' |
349 | oldincludedir='/usr/include' | |
81ae7da0 BM |
350 | infodir='${prefix}/info' |
351 | mandir='${prefix}/man' | |
f40ec73c | 352 | |
f40ec73c | 353 | ac_prev= |
354 | for ac_option | |
355 | do | |
f40ec73c | 356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
81ae7da0 | 358 | eval "$ac_prev=\$ac_option" |
f40ec73c | 359 | ac_prev= |
360 | continue | |
361 | fi | |
362 | ||
81ae7da0 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
f40ec73c | 364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
81ae7da0 | 367 | case $ac_option in |
f40ec73c | 368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
f69335e6 | 372 | bindir=$ac_optarg ;; |
f40ec73c | 373 | |
374 | -build | --build | --buil | --bui | --bu) | |
f69335e6 | 375 | ac_prev=build_alias ;; |
f40ec73c | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
f69335e6 | 377 | build_alias=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
f40ec73c | 388 | |
81ae7da0 | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
f40ec73c | 390 | ac_prev=datadir ;; |
81ae7da0 BM |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
392 | | --da=*) | |
f69335e6 | 393 | datadir=$ac_optarg ;; |
f40ec73c | 394 | |
395 | -disable-* | --disable-*) | |
f69335e6 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
f40ec73c | 397 | # Reject names that are not valid shell variable names. |
f69335e6 | 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'` | |
81ae7da0 | 402 | eval "enable_$ac_feature=no" ;; |
f40ec73c | 403 | |
404 | -enable-* | --enable-*) | |
f69335e6 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
f40ec73c | 406 | # Reject names that are not valid shell variable names. |
f69335e6 | 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'` | |
81ae7da0 BM |
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'" ;; | |
f40ec73c | 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=*) | |
f69335e6 | 424 | exec_prefix=$ac_optarg ;; |
f40ec73c | 425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
f69335e6 | 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 ;; | |
f40ec73c | 436 | |
437 | -host | --host | --hos | --ho) | |
f69335e6 | 438 | ac_prev=host_alias ;; |
f40ec73c | 439 | -host=* | --host=* | --hos=* | --ho=*) |
f69335e6 | 440 | host_alias=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 447 | includedir=$ac_optarg ;; |
f40ec73c | 448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
f69335e6 | 452 | infodir=$ac_optarg ;; |
f40ec73c | 453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
f69335e6 | 457 | libdir=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 464 | libexecdir=$ac_optarg ;; |
f40ec73c | 465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
81ae7da0 BM |
467 | | --localstate | --localstat | --localsta | --localst \ |
468 | | --locals | --local | --loca | --loc | --lo) | |
f40ec73c | 469 | ac_prev=localstatedir ;; |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ae7da0 BM |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
f69335e6 | 473 | localstatedir=$ac_optarg ;; |
f40ec73c | 474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
f69335e6 | 478 | mandir=$ac_optarg ;; |
f40ec73c | 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 \ | |
f69335e6 | 485 | | --no-cr | --no-c | -n) |
f40ec73c | 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=*) | |
f69335e6 | 499 | oldincludedir=$ac_optarg ;; |
f40ec73c | 500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
f69335e6 | 504 | prefix=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 511 | program_prefix=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 518 | program_suffix=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 535 | program_transform_name=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 545 | sbindir=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 556 | sharedstatedir=$ac_optarg ;; |
f40ec73c | 557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
f69335e6 | 561 | site=$ac_optarg ;; |
f40ec73c | 562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
f69335e6 | 566 | srcdir=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 573 | sysconfdir=$ac_optarg ;; |
f40ec73c | 574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
f69335e6 | 576 | ac_prev=target_alias ;; |
f40ec73c | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
f69335e6 | 578 | target_alias=$ac_optarg ;; |
f40ec73c | 579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
f69335e6 | 583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
f40ec73c | 585 | |
586 | -with-* | --with-*) | |
f69335e6 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
f40ec73c | 588 | # Reject names that are not valid shell variable names. |
f69335e6 | 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; }; } | |
f40ec73c | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
81ae7da0 BM |
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'" ;; | |
f40ec73c | 598 | |
599 | -without-* | --without-*) | |
f69335e6 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
f40ec73c | 601 | # Reject names that are not valid shell variable names. |
f69335e6 | 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'` | |
81ae7da0 | 606 | eval "with_$ac_package=no" ;; |
f40ec73c | 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=*) | |
f69335e6 | 617 | x_includes=$ac_optarg ;; |
f40ec73c | 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=*) | |
f69335e6 | 624 | x_libraries=$ac_optarg ;; |
f40ec73c | 625 | |
f69335e6 | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
f40ec73c | 629 | ;; |
630 | ||
f69335e6 | 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; }; } | |
81ae7da0 BM |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
638 | eval "$ac_envvar='$ac_optarg'" | |
f69335e6 | 639 | export $ac_envvar ;; |
640 | ||
f40ec73c | 641 | *) |
f69335e6 | 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} | |
f40ec73c | 647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
f69335e6 | 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; }; } | |
f40ec73c | 656 | fi |
f40ec73c | 657 | |
81ae7da0 BM |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
f40ec73c | 660 | do |
81ae7da0 | 661 | eval ac_val=$`echo $ac_var` |
f69335e6 | 662 | case $ac_val in |
81ae7da0 BM |
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 | localstatedir libdir includedir oldincludedir infodir mandir | |
672 | 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; }; };; | |
f40ec73c | 678 | esac |
679 | done | |
680 | ||
f69335e6 | 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 | |
f40ec73c | 698 | |
f69335e6 | 699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
f40ec73c | 703 | |
f40ec73c | 704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
81ae7da0 BM |
708 | # Try the directory containing this script, then its parent. |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
f69335e6 | 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
cbdd3138 BM |
711 | X"$0" : 'X\(//\)[^/]' \| \ |
712 | X"$0" : 'X\(//\)$' \| \ | |
81ae7da0 BM |
713 | X"$0" : 'X\(/\)' \| \ |
714 | . : '\(.\)' 2>/dev/null || | |
f69335e6 | 715 | echo X"$0" | |
81ae7da0 BM |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
f40ec73c | 721 | srcdir=$ac_confdir |
64b46a71 | 722 | if test ! -r $srcdir/$ac_unique_file; then |
f40ec73c | 723 | srcdir=.. |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
64b46a71 | 728 | if test ! -r $srcdir/$ac_unique_file; then |
81ae7da0 BM |
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 | |
f69335e6 | 734 | { (exit 1); exit 1; }; } |
81ae7da0 | 735 | fi |
f40ec73c | 736 | fi |
64b46a71 | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
81ae7da0 | 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
cbdd3138 | 739 | { (exit 1); exit 1; }; } |
81ae7da0 BM |
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 | |
0e87ac8a | 769 | ac_env_CXX_set=${CXX+set} |
770 | ac_env_CXX_value=$CXX | |
771 | ac_cv_env_CXX_set=${CXX+set} | |
772 | ac_cv_env_CXX_value=$CXX | |
773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
774 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
81ae7da0 BM |
777 | ac_env_CPP_set=${CPP+set} |
778 | ac_env_CPP_value=$CPP | |
779 | ac_cv_env_CPP_set=${CPP+set} | |
780 | ac_cv_env_CPP_value=$CPP | |
f69335e6 | 781 | |
782 | # | |
783 | # Report the --help message. | |
784 | # | |
785 | if test "$ac_init_help" = "long"; then | |
786 | # Omit some internal or obsolete options to make the list less imposing. | |
787 | # This message is too long to be a string in the A/UX 3.1 sh. | |
788 | cat <<_ACEOF | |
789 | \`configure' configures this package to adapt to many kinds of systems. | |
790 | ||
791 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
792 | ||
793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
794 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
795 | ||
796 | Defaults for the options are specified in brackets. | |
797 | ||
798 | Configuration: | |
799 | -h, --help display this help and exit | |
800 | --help=short display options specific to this package | |
801 | --help=recursive display the short help of all the included packages | |
802 | -V, --version display version information and exit | |
803 | -q, --quiet, --silent do not print \`checking...' messages | |
804 | --cache-file=FILE cache test results in FILE [disabled] | |
805 | -C, --config-cache alias for \`--cache-file=config.cache' | |
806 | -n, --no-create do not create output files | |
807 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
808 | ||
81ae7da0 BM |
809 | _ACEOF |
810 | ||
811 | cat <<_ACEOF | |
f69335e6 | 812 | Installation directories: |
813 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cbdd3138 | 814 | [$ac_default_prefix] |
f69335e6 | 815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cbdd3138 | 816 | [PREFIX] |
f69335e6 | 817 | |
818 | By default, \`make install' will install all the files in | |
819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
821 | for instance \`--prefix=\$HOME'. | |
822 | ||
823 | For better control, use the options below. | |
824 | ||
825 | Fine tuning of the installation directories: | |
826 | --bindir=DIR user executables [EPREFIX/bin] | |
827 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
828 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
81ae7da0 | 829 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
f69335e6 | 830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
833 | --libdir=DIR object code libraries [EPREFIX/lib] | |
834 | --includedir=DIR C header files [PREFIX/include] | |
835 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
81ae7da0 BM |
836 | --infodir=DIR info documentation [PREFIX/info] |
837 | --mandir=DIR man documentation [PREFIX/man] | |
f69335e6 | 838 | _ACEOF |
839 | ||
840 | cat <<\_ACEOF | |
f69335e6 | 841 | _ACEOF |
842 | fi | |
843 | ||
844 | if test -n "$ac_init_help"; then | |
845 | ||
846 | cat <<\_ACEOF | |
847 | ||
848 | Optional Features: | |
849 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
850 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
af289c86 | 851 | --enable-nospoof Enable spoofing protection |
852 | --enable-prefixaq Enable chanadmin and chanowner prefixes | |
853 | --enable-hub Compile as a hub server | |
854 | --enable-ssl= enable ssl will check /usr/local/ssl /usr/lib/ssl | |
855 | /usr/ssl /usr/pkg /usr/local /usr | |
856 | --enable-ziplinks enable ziplinks will check /usr/local /usr /usr/pkg | |
3be92d02 | 857 | --enable-libcurl=DIR enable libcurl (remote include) support |
af289c86 | 858 | --enable-dynamic-linking |
859 | Make the IRCd dynamically link shared objects rather | |
860 | than statically | |
861 | --enable-inet6 Make the IRCd support IPv6 | |
f69335e6 | 862 | |
863 | Optional Packages: | |
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
af289c86 | 866 | --with-listen=backlog Specify the listen backlog value |
867 | --with-nick-history=length | |
868 | Specify the length of the nickname history | |
869 | --with-sendq=maxsendq Specify the max sendq for the server | |
870 | --with-bufferpool=size Specify the size of the buffer pool | |
af289c86 | 871 | --with-permissions=permissions |
872 | Specify the default permissions for configuration | |
873 | files | |
874 | --with-dpath=path Specify the path where configuration files are | |
875 | stored | |
876 | --with-fd-setsize=size Specify the max file descriptors to use | |
877 | --with-spath Specify the location of the executable | |
704b6260 BM |
878 | --with-showlistmodes Specify whether modes are shown in /list |
879 | --with-topicisnuhost Display nick!user@host as the topic setter | |
880 | --with-shunnotices Notify a user when he/she is no longer shunned | |
881 | --with-no-operoverride Disable OperOverride | |
882 | --with-disableusermod Disable /set* and /chg* | |
883 | --with-operoverride-verify | |
884 | Require opers to invite themselves to +s/+p channels | |
542fa2bc | 885 | --with-disable-extendedban-stacking |
886 | Disable extended ban stacking | |
83384cef | 887 | --with-moduleswhich=onlycommands|onlymodules|commandsandmodules What modules to build |
f69335e6 | 888 | |
889 | Some influential environment variables: | |
890 | CC C compiler command | |
891 | CFLAGS C compiler flags | |
892 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
893 | nonstandard directory <lib dir> | |
81ae7da0 BM |
894 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
895 | headers in a nonstandard directory <include dir> | |
0e87ac8a | 896 | CXX C++ compiler command |
897 | CXXFLAGS C++ compiler flags | |
f69335e6 | 898 | CPP C preprocessor |
899 | ||
900 | Use these variables to override the choices made by `configure' or to help | |
901 | it to find libraries and programs with nonstandard names/locations. | |
902 | ||
903 | _ACEOF | |
904 | fi | |
905 | ||
906 | if test "$ac_init_help" = "recursive"; then | |
907 | # If there are subdirs, report their specific --help. | |
81ae7da0 | 908 | ac_popdir=`pwd` |
f69335e6 | 909 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ae7da0 | 910 | test -d $ac_dir || continue |
f69335e6 | 911 | ac_builddir=. |
912 | ||
81ae7da0 | 913 | if test "$ac_dir" != .; then |
f69335e6 | 914 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
81ae7da0 BM |
915 | # A "../" for each directory in $ac_dir_suffix. |
916 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
917 | else | |
918 | ac_dir_suffix= ac_top_builddir= | |
919 | fi | |
f69335e6 | 920 | |
921 | case $srcdir in | |
81ae7da0 | 922 | .) # No --srcdir option. We are building in place. |
f69335e6 | 923 | ac_srcdir=. |
81ae7da0 BM |
924 | if test -z "$ac_top_builddir"; then |
925 | ac_top_srcdir=. | |
926 | else | |
927 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
928 | fi ;; | |
929 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
f69335e6 | 930 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ae7da0 BM |
931 | ac_top_srcdir=$srcdir ;; |
932 | *) # Relative path. | |
933 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
934 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
935 | esac | |
936 | ||
937 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
938 | # the directories may not exist. | |
939 | case `pwd` in | |
940 | .) ac_abs_builddir="$ac_dir";; | |
941 | *) | |
942 | case "$ac_dir" in | |
943 | .) ac_abs_builddir=`pwd`;; | |
944 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
945 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
946 | esac;; | |
947 | esac | |
948 | case $ac_abs_builddir in | |
949 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
950 | *) | |
951 | case ${ac_top_builddir}. in | |
952 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
953 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
954 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
955 | esac;; | |
956 | esac | |
957 | case $ac_abs_builddir in | |
958 | .) ac_abs_srcdir=$ac_srcdir;; | |
959 | *) | |
960 | case $ac_srcdir in | |
961 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
962 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
963 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
964 | esac;; | |
965 | esac | |
966 | case $ac_abs_builddir in | |
967 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
968 | *) | |
969 | case $ac_top_srcdir in | |
970 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
971 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
972 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
973 | esac;; | |
cbdd3138 | 974 | esac |
81ae7da0 BM |
975 | |
976 | cd $ac_dir | |
977 | # Check for guested configure; otherwise get Cygnus style configure. | |
978 | if test -f $ac_srcdir/configure.gnu; then | |
979 | echo | |
980 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
981 | elif test -f $ac_srcdir/configure; then | |
982 | echo | |
983 | $SHELL $ac_srcdir/configure --help=recursive | |
984 | elif test -f $ac_srcdir/configure.ac || | |
985 | test -f $ac_srcdir/configure.in; then | |
986 | echo | |
987 | $ac_configure --help | |
f69335e6 | 988 | else |
989 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
81ae7da0 | 990 | fi |
64b46a71 | 991 | cd "$ac_popdir" |
f69335e6 | 992 | done |
993 | fi | |
994 | ||
81ae7da0 | 995 | test -n "$ac_init_help" && exit 0 |
f69335e6 | 996 | if $ac_init_version; then |
997 | cat <<\_ACEOF | |
998 | ||
81ae7da0 | 999 | Copyright (C) 2003 Free Software Foundation, Inc. |
f69335e6 | 1000 | This configure script is free software; the Free Software Foundation |
1001 | gives unlimited permission to copy, distribute and modify it. | |
1002 | _ACEOF | |
81ae7da0 | 1003 | exit 0 |
f69335e6 | 1004 | fi |
81ae7da0 BM |
1005 | exec 5>config.log |
1006 | cat >&5 <<_ACEOF | |
f69335e6 | 1007 | This file contains any messages produced by compilers while |
1008 | running configure, to aid debugging if configure makes a mistake. | |
1009 | ||
1010 | It was created by $as_me, which was | |
81ae7da0 | 1011 | generated by GNU Autoconf 2.59. Invocation command line was |
f69335e6 | 1012 | |
1013 | $ $0 $@ | |
1014 | ||
1015 | _ACEOF | |
1016 | { | |
1017 | cat <<_ASUNAME | |
1018 | ## --------- ## | |
1019 | ## Platform. ## | |
1020 | ## --------- ## | |
1021 | ||
1022 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1023 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1024 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1025 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1026 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1027 | ||
1028 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1029 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1030 | ||
1031 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1032 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1033 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ae7da0 | 1034 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
f69335e6 | 1035 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1036 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1037 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1038 | ||
1039 | _ASUNAME | |
1040 | ||
1041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1042 | for as_dir in $PATH | |
1043 | do | |
1044 | IFS=$as_save_IFS | |
1045 | test -z "$as_dir" && as_dir=. | |
1046 | echo "PATH: $as_dir" | |
1047 | done | |
1048 | ||
1049 | } >&5 | |
1050 | ||
1051 | cat >&5 <<_ACEOF | |
1052 | ||
1053 | ||
1054 | ## ----------- ## | |
1055 | ## Core tests. ## | |
1056 | ## ----------- ## | |
1057 | ||
1058 | _ACEOF | |
1059 | ||
1060 | ||
1061 | # Keep a trace of the command line. | |
1062 | # Strip out --no-create and --no-recursion so they do not pile up. | |
cbdd3138 | 1063 | # Strip out --silent because we don't want to record it for future runs. |
f69335e6 | 1064 | # Also quote any args containing shell meta-characters. |
cbdd3138 | 1065 | # Make two passes to allow for proper duplicate-argument suppression. |
f69335e6 | 1066 | ac_configure_args= |
cbdd3138 BM |
1067 | ac_configure_args0= |
1068 | ac_configure_args1= | |
81ae7da0 | 1069 | ac_sep= |
cbdd3138 BM |
1070 | ac_must_keep_next=false |
1071 | for ac_pass in 1 2 | |
f69335e6 | 1072 | do |
cbdd3138 BM |
1073 | for ac_arg |
1074 | do | |
1075 | case $ac_arg in | |
1076 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1077 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1078 | | -silent | --silent | --silen | --sile | --sil) | |
1079 | continue ;; | |
81ae7da0 | 1080 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
cbdd3138 BM |
1081 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1082 | esac | |
1083 | case $ac_pass in | |
1084 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1085 | 2) | |
1086 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1087 | if test $ac_must_keep_next = true; then | |
1088 | ac_must_keep_next=false # Got value, back to normal. | |
1089 | else | |
1090 | case $ac_arg in | |
1091 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1092 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1093 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1094 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1095 | case "$ac_configure_args0 " in | |
1096 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1097 | esac | |
1098 | ;; | |
1099 | -* ) ac_must_keep_next=true ;; | |
1100 | esac | |
1101 | fi | |
81ae7da0 BM |
1102 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1103 | # Get rid of the leading space. | |
1104 | ac_sep=" " | |
cbdd3138 BM |
1105 | ;; |
1106 | esac | |
1107 | done | |
f69335e6 | 1108 | done |
cbdd3138 BM |
1109 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1110 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
f69335e6 | 1111 | |
1112 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1113 | # config.log. We remove comments because anyway the quotes in there | |
1114 | # would cause problems or look ugly. | |
81ae7da0 BM |
1115 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1116 | # such as our DU 5.0 friend, will then `close' the trap. | |
f69335e6 | 1117 | trap 'exit_status=$? |
1118 | # Save into config.log some information that might help in debugging. | |
1119 | { | |
1120 | echo | |
cbdd3138 | 1121 | |
f69335e6 | 1122 | cat <<\_ASBOX |
1123 | ## ---------------- ## | |
1124 | ## Cache variables. ## | |
1125 | ## ---------------- ## | |
1126 | _ASBOX | |
1127 | echo | |
1128 | # The following way of writing the cache mishandles newlines in values, | |
81ae7da0 | 1129 | { |
f69335e6 | 1130 | (set) 2>&1 | |
81ae7da0 BM |
1131 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1132 | *ac_space=\ *) | |
f69335e6 | 1133 | sed -n \ |
81ae7da0 BM |
1134 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1135 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1136 | ;; | |
f69335e6 | 1137 | *) |
81ae7da0 BM |
1138 | sed -n \ |
1139 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
f69335e6 | 1140 | ;; |
81ae7da0 BM |
1141 | esac; |
1142 | } | |
f69335e6 | 1143 | echo |
cbdd3138 BM |
1144 | |
1145 | cat <<\_ASBOX | |
1146 | ## ----------------- ## | |
1147 | ## Output variables. ## | |
1148 | ## ----------------- ## | |
1149 | _ASBOX | |
1150 | echo | |
1151 | for ac_var in $ac_subst_vars | |
1152 | do | |
81ae7da0 BM |
1153 | eval ac_val=$`echo $ac_var` |
1154 | echo "$ac_var='"'"'$ac_val'"'"'" | |
cbdd3138 BM |
1155 | done | sort |
1156 | echo | |
1157 | ||
1158 | if test -n "$ac_subst_files"; then | |
1159 | cat <<\_ASBOX | |
81ae7da0 BM |
1160 | ## ------------- ## |
1161 | ## Output files. ## | |
1162 | ## ------------- ## | |
cbdd3138 BM |
1163 | _ASBOX |
1164 | echo | |
1165 | for ac_var in $ac_subst_files | |
1166 | do | |
81ae7da0 BM |
1167 | eval ac_val=$`echo $ac_var` |
1168 | echo "$ac_var='"'"'$ac_val'"'"'" | |
cbdd3138 BM |
1169 | done | sort |
1170 | echo | |
1171 | fi | |
1172 | ||
f69335e6 | 1173 | if test -s confdefs.h; then |
1174 | cat <<\_ASBOX | |
1175 | ## ----------- ## | |
1176 | ## confdefs.h. ## | |
1177 | ## ----------- ## | |
1178 | _ASBOX | |
1179 | echo | |
81ae7da0 | 1180 | sed "/^$/d" confdefs.h | sort |
f69335e6 | 1181 | echo |
1182 | fi | |
1183 | test "$ac_signal" != 0 && | |
1184 | echo "$as_me: caught signal $ac_signal" | |
1185 | echo "$as_me: exit $exit_status" | |
1186 | } >&5 | |
81ae7da0 BM |
1187 | rm -f core *.core && |
1188 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
f69335e6 | 1189 | exit $exit_status |
81ae7da0 | 1190 | ' 0 |
f69335e6 | 1191 | for ac_signal in 1 2 13 15; do |
1192 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1193 | done | |
1194 | ac_signal=0 | |
1195 | ||
1196 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ae7da0 BM |
1197 | rm -rf conftest* confdefs.h |
1198 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1199 | echo >confdefs.h | |
f69335e6 | 1200 | |
1201 | # Predefined preprocessor variables. | |
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1210 | _ACEOF | |
1211 | ||
1212 | ||
1213 | cat >>confdefs.h <<_ACEOF | |
1214 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1215 | _ACEOF | |
1216 | ||
1217 | ||
1218 | cat >>confdefs.h <<_ACEOF | |
1219 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1220 | _ACEOF | |
1221 | ||
1222 | ||
1223 | cat >>confdefs.h <<_ACEOF | |
1224 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1225 | _ACEOF | |
f40ec73c | 1226 | |
f69335e6 | 1227 | |
1228 | # Let the site file select an alternate cache file if it wants to. | |
f40ec73c | 1229 | # Prefer explicitly selected file to automatically selected ones. |
81ae7da0 BM |
1230 | if test -z "$CONFIG_SITE"; then |
1231 | if test "x$prefix" != xNONE; then | |
1232 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1233 | else | |
1234 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1235 | fi | |
f40ec73c | 1236 | fi |
81ae7da0 | 1237 | for ac_site_file in $CONFIG_SITE; do |
f40ec73c | 1238 | if test -r "$ac_site_file"; then |
f69335e6 | 1239 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1240 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1241 | sed 's/^/| /' "$ac_site_file" >&5 | |
f40ec73c | 1242 | . "$ac_site_file" |
1243 | fi | |
1244 | done | |
1245 | ||
1246 | if test -r "$cache_file"; then | |
f69335e6 | 1247 | # Some versions of bash will fail to source /dev/null (special |
1248 | # files actually), so we avoid doing that. | |
1249 | if test -f "$cache_file"; then | |
1250 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1251 | echo "$as_me: loading cache $cache_file" >&6;} | |
1252 | case $cache_file in | |
81ae7da0 BM |
1253 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1254 | *) . ./$cache_file;; | |
f69335e6 | 1255 | esac |
1256 | fi | |
f40ec73c | 1257 | else |
f69335e6 | 1258 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1259 | echo "$as_me: creating cache $cache_file" >&6;} | |
1260 | >$cache_file | |
1261 | fi | |
1262 | ||
1263 | # Check that the precious variables saved in the cache have kept the same | |
1264 | # value. | |
1265 | ac_cache_corrupted=false | |
81ae7da0 BM |
1266 | for ac_var in `(set) 2>&1 | |
1267 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
f69335e6 | 1268 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1269 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ae7da0 BM |
1270 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1271 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
f69335e6 | 1272 | case $ac_old_set,$ac_new_set in |
1273 | set,) | |
1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1275 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1276 | ac_cache_corrupted=: ;; | |
1277 | ,set) | |
1278 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1279 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1280 | ac_cache_corrupted=: ;; | |
1281 | ,);; | |
1282 | *) | |
1283 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
cbdd3138 | 1284 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
f69335e6 | 1285 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
cbdd3138 | 1286 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
f69335e6 | 1287 | echo "$as_me: former value: $ac_old_val" >&2;} |
cbdd3138 | 1288 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
f69335e6 | 1289 | echo "$as_me: current value: $ac_new_val" >&2;} |
cbdd3138 | 1290 | ac_cache_corrupted=: |
f69335e6 | 1291 | fi;; |
1292 | esac | |
1293 | # Pass precious variables to config.status. | |
1294 | if test "$ac_new_set" = set; then | |
1295 | case $ac_new_val in | |
81ae7da0 BM |
1296 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1297 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f69335e6 | 1298 | *) ac_arg=$ac_var=$ac_new_val ;; |
1299 | esac | |
1300 | case " $ac_configure_args " in | |
1301 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1302 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1303 | esac | |
1304 | fi | |
1305 | done | |
1306 | if $ac_cache_corrupted; then | |
1307 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1308 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1309 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1310 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1311 | { (exit 1); exit 1; }; } | |
f40ec73c | 1312 | fi |
1313 | ||
81ae7da0 BM |
1314 | ac_ext=c |
1315 | ac_cpp='$CPP $CPPFLAGS' | |
1316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1319 | ||
f40ec73c | 1320 | |
1321 | ||
f69335e6 | 1322 | |
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
cbdd3138 | 1337 | |
f69335e6 | 1338 | if test $# = 0; then |
1339 | echo "You might want to run ./Config or provide some parameters to this script." | |
1340 | echo "./configure --help for information about this script" | |
1341 | exit 0 | |
1342 | fi | |
81ae7da0 | 1343 | ac_config_headers="$ac_config_headers include/setup.h" |
f69335e6 | 1344 | |
1345 | ac_ext=c | |
1346 | ac_cpp='$CPP $CPPFLAGS' | |
1347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1350 | if test -n "$ac_tool_prefix"; then | |
1351 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1352 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ae7da0 BM |
1353 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 1355 | if test "${ac_cv_prog_CC+set}" = set; then |
1356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 1357 | else |
1358 | if test -n "$CC"; then | |
1359 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1360 | else | |
f69335e6 | 1361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1362 | for as_dir in $PATH | |
1363 | do | |
1364 | IFS=$as_save_IFS | |
1365 | test -z "$as_dir" && as_dir=. | |
1366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 1367 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 1368 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1370 | break 2 | |
1371 | fi | |
1372 | done | |
1373 | done | |
1374 | ||
f40ec73c | 1375 | fi |
1376 | fi | |
f69335e6 | 1377 | CC=$ac_cv_prog_CC |
f40ec73c | 1378 | if test -n "$CC"; then |
81ae7da0 BM |
1379 | echo "$as_me:$LINENO: result: $CC" >&5 |
1380 | echo "${ECHO_T}$CC" >&6 | |
f40ec73c | 1381 | else |
81ae7da0 BM |
1382 | echo "$as_me:$LINENO: result: no" >&5 |
1383 | echo "${ECHO_T}no" >&6 | |
f40ec73c | 1384 | fi |
1385 | ||
f69335e6 | 1386 | fi |
1387 | if test -z "$ac_cv_prog_CC"; then | |
1388 | ac_ct_CC=$CC | |
1389 | # Extract the first word of "gcc", so it can be a program name with args. | |
1390 | set dummy gcc; ac_word=$2 | |
81ae7da0 BM |
1391 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 1393 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 1395 | else |
f69335e6 | 1396 | if test -n "$ac_ct_CC"; then |
1397 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
f40ec73c | 1398 | else |
f69335e6 | 1399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1400 | for as_dir in $PATH | |
1401 | do | |
1402 | IFS=$as_save_IFS | |
1403 | test -z "$as_dir" && as_dir=. | |
1404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 1405 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 1406 | ac_cv_prog_ac_ct_CC="gcc" |
1407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1408 | break 2 | |
f40ec73c | 1409 | fi |
f69335e6 | 1410 | done |
1411 | done | |
1412 | ||
f40ec73c | 1413 | fi |
1414 | fi | |
f69335e6 | 1415 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1416 | if test -n "$ac_ct_CC"; then | |
81ae7da0 BM |
1417 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1418 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
f69335e6 | 1419 | else |
81ae7da0 BM |
1420 | echo "$as_me:$LINENO: result: no" >&5 |
1421 | echo "${ECHO_T}no" >&6 | |
f40ec73c | 1422 | fi |
f69335e6 | 1423 | |
81ae7da0 | 1424 | CC=$ac_ct_CC |
f40ec73c | 1425 | else |
f69335e6 | 1426 | CC="$ac_cv_prog_CC" |
f40ec73c | 1427 | fi |
1428 | ||
f69335e6 | 1429 | if test -z "$CC"; then |
81ae7da0 BM |
1430 | if test -n "$ac_tool_prefix"; then |
1431 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
f69335e6 | 1432 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ae7da0 BM |
1433 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 1435 | if test "${ac_cv_prog_CC+set}" = set; then |
1436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 1437 | else |
1438 | if test -n "$CC"; then | |
1439 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1440 | else | |
f69335e6 | 1441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1442 | for as_dir in $PATH | |
1443 | do | |
1444 | IFS=$as_save_IFS | |
1445 | test -z "$as_dir" && as_dir=. | |
1446 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 1447 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 1448 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1450 | break 2 | |
1451 | fi | |
1452 | done | |
1453 | done | |
1454 | ||
f40ec73c | 1455 | fi |
1456 | fi | |
f69335e6 | 1457 | CC=$ac_cv_prog_CC |
f40ec73c | 1458 | if test -n "$CC"; then |
81ae7da0 BM |
1459 | echo "$as_me:$LINENO: result: $CC" >&5 |
1460 | echo "${ECHO_T}$CC" >&6 | |
f69335e6 | 1461 | else |
81ae7da0 BM |
1462 | echo "$as_me:$LINENO: result: no" >&5 |
1463 | echo "${ECHO_T}no" >&6 | |
f69335e6 | 1464 | fi |
f40ec73c | 1465 | |
81ae7da0 BM |
1466 | fi |
1467 | if test -z "$ac_cv_prog_CC"; then | |
1468 | ac_ct_CC=$CC | |
1469 | # Extract the first word of "cc", so it can be a program name with args. | |
1470 | set dummy cc; ac_word=$2 | |
1471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1473 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1475 | else | |
1476 | if test -n "$ac_ct_CC"; then | |
1477 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1478 | else | |
1479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1480 | for as_dir in $PATH | |
1481 | do | |
1482 | IFS=$as_save_IFS | |
1483 | test -z "$as_dir" && as_dir=. | |
1484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1486 | ac_cv_prog_ac_ct_CC="cc" | |
1487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1488 | break 2 | |
32843244 | 1489 | fi |
81ae7da0 BM |
1490 | done |
1491 | done | |
1492 | ||
1493 | fi | |
1494 | fi | |
1495 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1496 | if test -n "$ac_ct_CC"; then | |
1497 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1498 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1499 | else | |
1500 | echo "$as_me:$LINENO: result: no" >&5 | |
1501 | echo "${ECHO_T}no" >&6 | |
1502 | fi | |
1503 | ||
1504 | CC=$ac_ct_CC | |
1505 | else | |
1506 | CC="$ac_cv_prog_CC" | |
1507 | fi | |
1508 | ||
f69335e6 | 1509 | fi |
1510 | if test -z "$CC"; then | |
1511 | # Extract the first word of "cc", so it can be a program name with args. | |
1512 | set dummy cc; ac_word=$2 | |
81ae7da0 BM |
1513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 1515 | if test "${ac_cv_prog_CC+set}" = set; then |
1516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1517 | else | |
1518 | if test -n "$CC"; then | |
1519 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1520 | else | |
1521 | ac_prog_rejected=no | |
1522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1523 | for as_dir in $PATH | |
1524 | do | |
1525 | IFS=$as_save_IFS | |
1526 | test -z "$as_dir" && as_dir=. | |
1527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 1528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 1529 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1530 | ac_prog_rejected=yes | |
1531 | continue | |
1532 | fi | |
1533 | ac_cv_prog_CC="cc" | |
1534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1535 | break 2 | |
1536 | fi | |
1537 | done | |
1538 | done | |
f40ec73c | 1539 | |
f69335e6 | 1540 | if test $ac_prog_rejected = yes; then |
1541 | # We found a bogon in the path, so make sure we never use it. | |
1542 | set dummy $ac_cv_prog_CC | |
1543 | shift | |
1544 | if test $# != 0; then | |
1545 | # We chose a different compiler from the bogus one. | |
1546 | # However, it has the same basename, so the bogon will be chosen | |
1547 | # first if we set CC to just the basename; use the full file name. | |
1548 | shift | |
cbdd3138 | 1549 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
f69335e6 | 1550 | fi |
1551 | fi | |
1552 | fi | |
1553 | fi | |
1554 | CC=$ac_cv_prog_CC | |
1555 | if test -n "$CC"; then | |
81ae7da0 BM |
1556 | echo "$as_me:$LINENO: result: $CC" >&5 |
1557 | echo "${ECHO_T}$CC" >&6 | |
f69335e6 | 1558 | else |
81ae7da0 BM |
1559 | echo "$as_me:$LINENO: result: no" >&5 |
1560 | echo "${ECHO_T}no" >&6 | |
f69335e6 | 1561 | fi |
f40ec73c | 1562 | |
f69335e6 | 1563 | fi |
1564 | if test -z "$CC"; then | |
1565 | if test -n "$ac_tool_prefix"; then | |
81ae7da0 | 1566 | for ac_prog in cl |
f69335e6 | 1567 | do |
1568 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1569 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ae7da0 BM |
1570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 1572 | if test "${ac_cv_prog_CC+set}" = set; then |
1573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1574 | else | |
1575 | if test -n "$CC"; then | |
1576 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1577 | else | |
1578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1579 | for as_dir in $PATH | |
1580 | do | |
1581 | IFS=$as_save_IFS | |
1582 | test -z "$as_dir" && as_dir=. | |
1583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 1584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 1585 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1587 | break 2 | |
f40ec73c | 1588 | fi |
f69335e6 | 1589 | done |
1590 | done | |
1591 | ||
1592 | fi | |
1593 | fi | |
1594 | CC=$ac_cv_prog_CC | |
1595 | if test -n "$CC"; then | |
81ae7da0 BM |
1596 | echo "$as_me:$LINENO: result: $CC" >&5 |
1597 | echo "${ECHO_T}$CC" >&6 | |
f40ec73c | 1598 | else |
81ae7da0 BM |
1599 | echo "$as_me:$LINENO: result: no" >&5 |
1600 | echo "${ECHO_T}no" >&6 | |
f40ec73c | 1601 | fi |
f40ec73c | 1602 | |
f69335e6 | 1603 | test -n "$CC" && break |
1604 | done | |
f40ec73c | 1605 | fi |
f69335e6 | 1606 | if test -z "$CC"; then |
1607 | ac_ct_CC=$CC | |
81ae7da0 | 1608 | for ac_prog in cl |
f69335e6 | 1609 | do |
1610 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1611 | set dummy $ac_prog; ac_word=$2 | |
81ae7da0 BM |
1612 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 1614 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1616 | else | |
1617 | if test -n "$ac_ct_CC"; then | |
1618 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1619 | else | |
1620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1621 | for as_dir in $PATH | |
1622 | do | |
1623 | IFS=$as_save_IFS | |
1624 | test -z "$as_dir" && as_dir=. | |
1625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 1626 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 1627 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1629 | break 2 | |
1630 | fi | |
1631 | done | |
1632 | done | |
f40ec73c | 1633 | |
f69335e6 | 1634 | fi |
1635 | fi | |
1636 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1637 | if test -n "$ac_ct_CC"; then | |
81ae7da0 BM |
1638 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1639 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
f40ec73c | 1640 | else |
81ae7da0 BM |
1641 | echo "$as_me:$LINENO: result: no" >&5 |
1642 | echo "${ECHO_T}no" >&6 | |
f69335e6 | 1643 | fi |
1644 | ||
1645 | test -n "$ac_ct_CC" && break | |
1646 | done | |
1647 | ||
81ae7da0 | 1648 | CC=$ac_ct_CC |
f69335e6 | 1649 | fi |
1650 | ||
1651 | fi | |
1652 | ||
1653 | ||
cbdd3138 BM |
1654 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
1655 | See \`config.log' for more details." >&5 | |
1656 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1657 | See \`config.log' for more details." >&2;} | |
f69335e6 | 1658 | { (exit 1); exit 1; }; } |
1659 | ||
1660 | # Provide some information about the compiler. | |
81ae7da0 BM |
1661 | echo "$as_me:$LINENO:" \ |
1662 | "checking for C compiler version" >&5 | |
f69335e6 | 1663 | ac_compiler=`set X $ac_compile; echo $2` |
81ae7da0 BM |
1664 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1665 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
f69335e6 | 1666 | ac_status=$? |
1667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1668 | (exit $ac_status); } | |
81ae7da0 BM |
1669 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1670 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
f69335e6 | 1671 | ac_status=$? |
1672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1673 | (exit $ac_status); } | |
81ae7da0 BM |
1674 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1675 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
f69335e6 | 1676 | ac_status=$? |
1677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1678 | (exit $ac_status); } | |
1679 | ||
1680 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
1681 | /* confdefs.h. */ |
1682 | _ACEOF | |
1683 | cat confdefs.h >>conftest.$ac_ext | |
1684 | cat >>conftest.$ac_ext <<_ACEOF | |
1685 | /* end confdefs.h. */ | |
f69335e6 | 1686 | |
f69335e6 | 1687 | int |
1688 | main () | |
1689 | { | |
1690 | ||
1691 | ; | |
1692 | return 0; | |
1693 | } | |
1694 | _ACEOF | |
1695 | ac_clean_files_save=$ac_clean_files | |
cbdd3138 | 1696 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
f69335e6 | 1697 | # Try to create an executable without -o first, disregard a.out. |
1698 | # It will help us diagnose broken compilers, and finding out an intuition | |
1699 | # of exeext. | |
81ae7da0 BM |
1700 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1701 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
f69335e6 | 1702 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
81ae7da0 BM |
1703 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1704 | (eval $ac_link_default) 2>&5 | |
f69335e6 | 1705 | ac_status=$? |
1706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1707 | (exit $ac_status); }; then | |
81ae7da0 BM |
1708 | # Find the output, starting from the most likely. This scheme is |
1709 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1710 | # resort. | |
1711 | ||
1712 | # Be careful to initialize this variable, since it used to be cached. | |
1713 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1714 | ac_cv_exeext= | |
1715 | # b.out is created by i960 compilers. | |
1716 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
cbdd3138 BM |
1717 | do |
1718 | test -f "$ac_file" || continue | |
f69335e6 | 1719 | case $ac_file in |
81ae7da0 BM |
1720 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1721 | ;; | |
1722 | conftest.$ac_ext ) | |
1723 | # This is the source file. | |
cbdd3138 BM |
1724 | ;; |
1725 | [ab].out ) | |
1726 | # We found the default executable, but exeext='' is most | |
1727 | # certainly right. | |
1728 | break;; | |
1729 | *.* ) | |
81ae7da0 BM |
1730 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1731 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1732 | # but it would be cool to find out if it's true. Does anybody | |
1733 | # maintain Libtool? --akim. | |
1734 | export ac_cv_exeext | |
cbdd3138 BM |
1735 | break;; |
1736 | * ) | |
1737 | break;; | |
f69335e6 | 1738 | esac |
1739 | done | |
f40ec73c | 1740 | else |
f69335e6 | 1741 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
1742 | sed 's/^/| /' conftest.$ac_ext >&5 |
1743 | ||
1744 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1745 | See \`config.log' for more details." >&5 | |
1746 | echo "$as_me: error: C compiler cannot create executables | |
1747 | See \`config.log' for more details." >&2;} | |
f69335e6 | 1748 | { (exit 77); exit 77; }; } |
1749 | fi | |
1750 | ||
1751 | ac_exeext=$ac_cv_exeext | |
81ae7da0 BM |
1752 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
1753 | echo "${ECHO_T}$ac_file" >&6 | |
f69335e6 | 1754 | |
81ae7da0 | 1755 | # Check the compiler produces executables we can run. If not, either |
f69335e6 | 1756 | # the compiler is broken, or we cross compile. |
81ae7da0 BM |
1757 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1758 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
f69335e6 | 1759 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1760 | # If not cross compiling, check that we can run a simple program. | |
1761 | if test "$cross_compiling" != yes; then | |
1762 | if { ac_try='./$ac_file' | |
81ae7da0 BM |
1763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1764 | (eval $ac_try) 2>&5 | |
f69335e6 | 1765 | ac_status=$? |
1766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1767 | (exit $ac_status); }; }; then | |
1768 | cross_compiling=no | |
1769 | else | |
1770 | if test "$cross_compiling" = maybe; then | |
1771 | cross_compiling=yes | |
1772 | else | |
1773 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
cbdd3138 BM |
1774 | If you meant to cross compile, use \`--host'. |
1775 | See \`config.log' for more details." >&5 | |
f69335e6 | 1776 | echo "$as_me: error: cannot run C compiled programs. |
cbdd3138 BM |
1777 | If you meant to cross compile, use \`--host'. |
1778 | See \`config.log' for more details." >&2;} | |
f69335e6 | 1779 | { (exit 1); exit 1; }; } |
1780 | fi | |
1781 | fi | |
f40ec73c | 1782 | fi |
81ae7da0 BM |
1783 | echo "$as_me:$LINENO: result: yes" >&5 |
1784 | echo "${ECHO_T}yes" >&6 | |
f69335e6 | 1785 | |
cbdd3138 | 1786 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
f69335e6 | 1787 | ac_clean_files=$ac_clean_files_save |
81ae7da0 | 1788 | # Check the compiler produces executables we can run. If not, either |
f69335e6 | 1789 | # the compiler is broken, or we cross compile. |
81ae7da0 BM |
1790 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1791 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1792 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1793 | echo "${ECHO_T}$cross_compiling" >&6 | |
1794 | ||
1795 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1796 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1798 | (eval $ac_link) 2>&5 | |
f69335e6 | 1799 | ac_status=$? |
1800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1801 | (exit $ac_status); }; then | |
1802 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1803 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1804 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1805 | # `rm'. | |
cbdd3138 BM |
1806 | for ac_file in conftest.exe conftest conftest.*; do |
1807 | test -f "$ac_file" || continue | |
f69335e6 | 1808 | case $ac_file in |
81ae7da0 | 1809 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
f69335e6 | 1810 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
81ae7da0 | 1811 | export ac_cv_exeext |
cbdd3138 | 1812 | break;; |
f69335e6 | 1813 | * ) break;; |
1814 | esac | |
1815 | done | |
1816 | else | |
cbdd3138 BM |
1817 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1818 | See \`config.log' for more details." >&5 | |
1819 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1820 | See \`config.log' for more details." >&2;} | |
f69335e6 | 1821 | { (exit 1); exit 1; }; } |
f40ec73c | 1822 | fi |
1823 | ||
f69335e6 | 1824 | rm -f conftest$ac_cv_exeext |
81ae7da0 BM |
1825 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1826 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
f69335e6 | 1827 | |
1828 | rm -f conftest.$ac_ext | |
1829 | EXEEXT=$ac_cv_exeext | |
1830 | ac_exeext=$EXEEXT | |
81ae7da0 BM |
1831 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1832 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
f69335e6 | 1833 | if test "${ac_cv_objext+set}" = set; then |
1834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1835 | else | |
1836 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
1837 | /* confdefs.h. */ |
1838 | _ACEOF | |
1839 | cat confdefs.h >>conftest.$ac_ext | |
1840 | cat >>conftest.$ac_ext <<_ACEOF | |
1841 | /* end confdefs.h. */ | |
f69335e6 | 1842 | |
f69335e6 | 1843 | int |
1844 | main () | |
1845 | { | |
f40ec73c | 1846 | |
f69335e6 | 1847 | ; |
1848 | return 0; | |
1849 | } | |
1850 | _ACEOF | |
1851 | rm -f conftest.o conftest.obj | |
81ae7da0 BM |
1852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1853 | (eval $ac_compile) 2>&5 | |
f69335e6 | 1854 | ac_status=$? |
1855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1856 | (exit $ac_status); }; then | |
81ae7da0 | 1857 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
f69335e6 | 1858 | case $ac_file in |
81ae7da0 | 1859 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
f69335e6 | 1860 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1861 | break;; | |
1862 | esac | |
1863 | done | |
f40ec73c | 1864 | else |
f69335e6 | 1865 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
1866 | sed 's/^/| /' conftest.$ac_ext >&5 |
1867 | ||
1868 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1869 | See \`config.log' for more details." >&5 | |
1870 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1871 | See \`config.log' for more details." >&2;} | |
f69335e6 | 1872 | { (exit 1); exit 1; }; } |
f40ec73c | 1873 | fi |
1874 | ||
f69335e6 | 1875 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1876 | fi | |
81ae7da0 BM |
1877 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1878 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
f69335e6 | 1879 | OBJEXT=$ac_cv_objext |
1880 | ac_objext=$OBJEXT | |
81ae7da0 BM |
1881 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1882 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
f69335e6 | 1883 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 1885 | else |
f69335e6 | 1886 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
1887 | /* confdefs.h. */ |
1888 | _ACEOF | |
1889 | cat confdefs.h >>conftest.$ac_ext | |
1890 | cat >>conftest.$ac_ext <<_ACEOF | |
1891 | /* end confdefs.h. */ | |
f69335e6 | 1892 | |
f69335e6 | 1893 | int |
1894 | main () | |
1895 | { | |
1896 | #ifndef __GNUC__ | |
1897 | choke me | |
1898 | #endif | |
1899 | ||
1900 | ; | |
1901 | return 0; | |
1902 | } | |
1903 | _ACEOF | |
1904 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
1905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1906 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 1907 | ac_status=$? |
cbdd3138 BM |
1908 | grep -v '^ *+' conftest.er1 >conftest.err |
1909 | rm -f conftest.er1 | |
1910 | cat conftest.err >&5 | |
f69335e6 | 1911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1912 | (exit $ac_status); } && | |
64b46a71 | 1913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
1914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1915 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
1916 | ac_status=$? |
1917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1918 | (exit $ac_status); }; } && | |
1919 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
1920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1921 | (eval $ac_try) 2>&5 | |
f69335e6 | 1922 | ac_status=$? |
1923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1924 | (exit $ac_status); }; }; then | |
1925 | ac_compiler_gnu=yes | |
1926 | else | |
1927 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
1928 | sed 's/^/| /' conftest.$ac_ext >&5 |
1929 | ||
81ae7da0 | 1930 | ac_compiler_gnu=no |
f69335e6 | 1931 | fi |
81ae7da0 | 1932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 1933 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
1934 | ||
1935 | fi | |
81ae7da0 BM |
1936 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1937 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
f69335e6 | 1938 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1939 | ac_test_CFLAGS=${CFLAGS+set} | |
1940 | ac_save_CFLAGS=$CFLAGS | |
81ae7da0 BM |
1941 | CFLAGS="-g" |
1942 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1943 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
f69335e6 | 1944 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1946 | else | |
81ae7da0 | 1947 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
1948 | /* confdefs.h. */ |
1949 | _ACEOF | |
1950 | cat confdefs.h >>conftest.$ac_ext | |
1951 | cat >>conftest.$ac_ext <<_ACEOF | |
1952 | /* end confdefs.h. */ | |
f69335e6 | 1953 | |
f69335e6 | 1954 | int |
1955 | main () | |
1956 | { | |
1957 | ||
1958 | ; | |
1959 | return 0; | |
1960 | } | |
1961 | _ACEOF | |
1962 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
1963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1964 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 1965 | ac_status=$? |
cbdd3138 BM |
1966 | grep -v '^ *+' conftest.er1 >conftest.err |
1967 | rm -f conftest.er1 | |
1968 | cat conftest.err >&5 | |
f69335e6 | 1969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1970 | (exit $ac_status); } && | |
64b46a71 | 1971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
1972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1973 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
1974 | ac_status=$? |
1975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1976 | (exit $ac_status); }; } && | |
1977 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
1978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1979 | (eval $ac_try) 2>&5 | |
f69335e6 | 1980 | ac_status=$? |
1981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1982 | (exit $ac_status); }; }; then | |
f40ec73c | 1983 | ac_cv_prog_cc_g=yes |
1984 | else | |
f69335e6 | 1985 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
1986 | sed 's/^/| /' conftest.$ac_ext >&5 |
1987 | ||
81ae7da0 | 1988 | ac_cv_prog_cc_g=no |
f40ec73c | 1989 | fi |
81ae7da0 | 1990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 1991 | fi |
81ae7da0 BM |
1992 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
1993 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f40ec73c | 1994 | if test "$ac_test_CFLAGS" = set; then |
f69335e6 | 1995 | CFLAGS=$ac_save_CFLAGS |
f40ec73c | 1996 | elif test $ac_cv_prog_cc_g = yes; then |
1997 | if test "$GCC" = yes; then | |
1998 | CFLAGS="-g -O2" | |
1999 | else | |
2000 | CFLAGS="-g" | |
2001 | fi | |
2002 | else | |
2003 | if test "$GCC" = yes; then | |
2004 | CFLAGS="-O2" | |
2005 | else | |
2006 | CFLAGS= | |
2007 | fi | |
2008 | fi | |
81ae7da0 BM |
2009 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2010 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2011 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
cbdd3138 BM |
2012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2013 | else | |
81ae7da0 | 2014 | ac_cv_prog_cc_stdc=no |
cbdd3138 BM |
2015 | ac_save_CC=$CC |
2016 | cat >conftest.$ac_ext <<_ACEOF | |
2017 | /* confdefs.h. */ | |
2018 | _ACEOF | |
2019 | cat confdefs.h >>conftest.$ac_ext | |
2020 | cat >>conftest.$ac_ext <<_ACEOF | |
2021 | /* end confdefs.h. */ | |
2022 | #include <stdarg.h> | |
2023 | #include <stdio.h> | |
2024 | #include <sys/types.h> | |
2025 | #include <sys/stat.h> | |
2026 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2027 | struct buf { int x; }; | |
2028 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2029 | static char *e (p, i) | |
2030 | char **p; | |
2031 | int i; | |
2032 | { | |
2033 | return p[i]; | |
2034 | } | |
2035 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2036 | { | |
2037 | char *s; | |
2038 | va_list v; | |
2039 | va_start (v,p); | |
2040 | s = g (p, va_arg (v,int)); | |
2041 | va_end (v); | |
2042 | return s; | |
2043 | } | |
2044 | ||
2045 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2046 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2047 | These don't provoke an error unfortunately, instead are silently treated | |
81ae7da0 | 2048 | as 'x'. The following induces an error, until -std1 is added to get |
cbdd3138 BM |
2049 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2050 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ae7da0 | 2051 | that's true only with -std1. */ |
cbdd3138 BM |
2052 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2053 | ||
2054 | int test (int i, double x); | |
2055 | struct s1 {int (*f) (int a);}; | |
2056 | struct s2 {int (*f) (double a);}; | |
2057 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2058 | int argc; | |
2059 | char **argv; | |
2060 | int | |
2061 | main () | |
2062 | { | |
2063 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2064 | ; | |
2065 | return 0; | |
2066 | } | |
2067 | _ACEOF | |
81ae7da0 BM |
2068 | # Don't try gcc -ansi; that turns off useful extensions and |
2069 | # breaks some systems' header files. | |
2070 | # AIX -qlanglvl=ansi | |
2071 | # Ultrix and OSF/1 -std1 | |
2072 | # HP-UX 10.20 and later -Ae | |
2073 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2074 | # SVR4 -Xc -D__EXTENSIONS__ | |
2075 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
cbdd3138 BM |
2076 | do |
2077 | CC="$ac_save_CC $ac_arg" | |
2078 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
2079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2080 | (eval $ac_compile) 2>conftest.er1 | |
cbdd3138 BM |
2081 | ac_status=$? |
2082 | grep -v '^ *+' conftest.er1 >conftest.err | |
2083 | rm -f conftest.er1 | |
2084 | cat conftest.err >&5 | |
2085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2086 | (exit $ac_status); } && | |
64b46a71 | 2087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
2088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2089 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
2090 | ac_status=$? |
2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2092 | (exit $ac_status); }; } && | |
2093 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2095 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
2096 | ac_status=$? |
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2098 | (exit $ac_status); }; }; then | |
81ae7da0 BM |
2099 | ac_cv_prog_cc_stdc=$ac_arg |
2100 | break | |
cbdd3138 BM |
2101 | else |
2102 | echo "$as_me: failed program was:" >&5 | |
2103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2104 | ||
2105 | fi | |
81ae7da0 | 2106 | rm -f conftest.err conftest.$ac_objext |
cbdd3138 | 2107 | done |
81ae7da0 | 2108 | rm -f conftest.$ac_ext conftest.$ac_objext |
cbdd3138 BM |
2109 | CC=$ac_save_CC |
2110 | ||
2111 | fi | |
81ae7da0 BM |
2112 | |
2113 | case "x$ac_cv_prog_cc_stdc" in | |
2114 | x|xno) | |
2115 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2116 | echo "${ECHO_T}none needed" >&6 ;; | |
cbdd3138 | 2117 | *) |
81ae7da0 BM |
2118 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2119 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2120 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
cbdd3138 BM |
2121 | esac |
2122 | ||
81ae7da0 BM |
2123 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2124 | # in C++ we need to declare it. In case someone uses the same compiler | |
2125 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2126 | # the declaration of exit, since it's the most demanding environment. | |
2127 | cat >conftest.$ac_ext <<_ACEOF | |
2128 | #ifndef __cplusplus | |
2129 | choke me | |
2130 | #endif | |
2131 | _ACEOF | |
2132 | rm -f conftest.$ac_objext | |
2133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2134 | (eval $ac_compile) 2>conftest.er1 | |
2135 | ac_status=$? | |
2136 | grep -v '^ *+' conftest.er1 >conftest.err | |
2137 | rm -f conftest.er1 | |
2138 | cat conftest.err >&5 | |
2139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2140 | (exit $ac_status); } && | |
64b46a71 | 2141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
2142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2143 | (eval $ac_try) 2>&5 | |
2144 | ac_status=$? | |
2145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2146 | (exit $ac_status); }; } && | |
2147 | { ac_try='test -s conftest.$ac_objext' | |
2148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2149 | (eval $ac_try) 2>&5 | |
2150 | ac_status=$? | |
2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2152 | (exit $ac_status); }; }; then | |
2153 | for ac_declaration in \ | |
2154 | '' \ | |
2155 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2156 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2157 | 'extern "C" void exit (int) throw ();' \ | |
2158 | 'extern "C" void exit (int);' \ | |
2159 | 'void exit (int);' | |
2160 | do | |
2161 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
2162 | /* confdefs.h. */ |
2163 | _ACEOF | |
2164 | cat confdefs.h >>conftest.$ac_ext | |
2165 | cat >>conftest.$ac_ext <<_ACEOF | |
2166 | /* end confdefs.h. */ | |
81ae7da0 BM |
2167 | $ac_declaration |
2168 | #include <stdlib.h> | |
f69335e6 | 2169 | int |
2170 | main () | |
2171 | { | |
81ae7da0 | 2172 | exit (42); |
f69335e6 | 2173 | ; |
2174 | return 0; | |
2175 | } | |
2176 | _ACEOF | |
2177 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
2178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2179 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 2180 | ac_status=$? |
cbdd3138 BM |
2181 | grep -v '^ *+' conftest.er1 >conftest.err |
2182 | rm -f conftest.er1 | |
2183 | cat conftest.err >&5 | |
f69335e6 | 2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2185 | (exit $ac_status); } && | |
64b46a71 | 2186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2188 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
2189 | ac_status=$? |
2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2191 | (exit $ac_status); }; } && | |
2192 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
2193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2194 | (eval $ac_try) 2>&5 | |
f69335e6 | 2195 | ac_status=$? |
2196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2197 | (exit $ac_status); }; }; then | |
81ae7da0 | 2198 | : |
f69335e6 | 2199 | else |
2200 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
2201 | sed 's/^/| /' conftest.$ac_ext >&5 |
2202 | ||
81ae7da0 | 2203 | continue |
f69335e6 | 2204 | fi |
81ae7da0 BM |
2205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2206 | cat >conftest.$ac_ext <<_ACEOF | |
2207 | /* confdefs.h. */ | |
2208 | _ACEOF | |
2209 | cat confdefs.h >>conftest.$ac_ext | |
2210 | cat >>conftest.$ac_ext <<_ACEOF | |
2211 | /* end confdefs.h. */ | |
2212 | $ac_declaration | |
2213 | int | |
2214 | main () | |
2215 | { | |
2216 | exit (42); | |
2217 | ; | |
2218 | return 0; | |
2219 | } | |
2220 | _ACEOF | |
2221 | rm -f conftest.$ac_objext | |
2222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2223 | (eval $ac_compile) 2>conftest.er1 | |
2224 | ac_status=$? | |
2225 | grep -v '^ *+' conftest.er1 >conftest.err | |
2226 | rm -f conftest.er1 | |
2227 | cat conftest.err >&5 | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); } && | |
64b46a71 | 2230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2232 | (eval $ac_try) 2>&5 | |
2233 | ac_status=$? | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); }; } && | |
2236 | { ac_try='test -s conftest.$ac_objext' | |
2237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2238 | (eval $ac_try) 2>&5 | |
2239 | ac_status=$? | |
2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2241 | (exit $ac_status); }; }; then | |
2242 | break | |
2243 | else | |
2244 | echo "$as_me: failed program was:" >&5 | |
2245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2246 | ||
2247 | fi | |
2248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2249 | done | |
2250 | rm -f conftest* | |
2251 | if test -n "$ac_declaration"; then | |
2252 | echo '#ifdef __cplusplus' >>confdefs.h | |
2253 | echo $ac_declaration >>confdefs.h | |
2254 | echo '#endif' >>confdefs.h | |
2255 | fi | |
2256 | ||
2257 | else | |
2258 | echo "$as_me: failed program was:" >&5 | |
2259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2260 | ||
2261 | fi | |
2262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2263 | ac_ext=c | |
2264 | ac_cpp='$CPP $CPPFLAGS' | |
2265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2268 | ||
2269 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
2270 | CFLAGS="$CFLAGS -funsigned-char" | |
2271 | ||
2272 | echo "$as_me:$LINENO: checking if gcc has a working -pipe" >&5 | |
2273 | echo $ECHO_N "checking if gcc has a working -pipe... $ECHO_C" >&6 | |
2274 | if test "${ac_cv_pipe+set}" = set; then | |
2275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2276 | else | |
2277 | ||
2278 | save_cflags="$CFLAGS" | |
2279 | CFLAGS="$CFLAGS -pipe" | |
2280 | cat >conftest.$ac_ext <<_ACEOF | |
2281 | /* confdefs.h. */ | |
2282 | _ACEOF | |
2283 | cat confdefs.h >>conftest.$ac_ext | |
2284 | cat >>conftest.$ac_ext <<_ACEOF | |
2285 | /* end confdefs.h. */ | |
2286 | ||
2287 | int | |
2288 | main () | |
2289 | { | |
2290 | ||
2291 | ; | |
2292 | return 0; | |
2293 | } | |
2294 | _ACEOF | |
2295 | rm -f conftest.$ac_objext | |
2296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2297 | (eval $ac_compile) 2>conftest.er1 | |
2298 | ac_status=$? | |
2299 | grep -v '^ *+' conftest.er1 >conftest.err | |
2300 | rm -f conftest.er1 | |
2301 | cat conftest.err >&5 | |
2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2303 | (exit $ac_status); } && | |
64b46a71 | 2304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
2305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2306 | (eval $ac_try) 2>&5 | |
2307 | ac_status=$? | |
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2309 | (exit $ac_status); }; } && | |
2310 | { ac_try='test -s conftest.$ac_objext' | |
2311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2312 | (eval $ac_try) 2>&5 | |
2313 | ac_status=$? | |
2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2315 | (exit $ac_status); }; }; then | |
2316 | ac_cv_pipe="yes" | |
2317 | else | |
2318 | echo "$as_me: failed program was:" >&5 | |
2319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2320 | ||
2321 | ac_cv_pipe="no" | |
2322 | fi | |
2323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2324 | CFLAGS="$save_cflags" | |
2325 | ||
15c76544 | 2326 | fi |
81ae7da0 BM |
2327 | echo "$as_me:$LINENO: result: $ac_cv_pipe" >&5 |
2328 | echo "${ECHO_T}$ac_cv_pipe" >&6 | |
15c76544 | 2329 | if test "$ac_cv_pipe" = "yes"; then |
2330 | CFLAGS="-pipe $CFLAGS" | |
2331 | fi | |
26f91d1c | 2332 | fi |
2333 | ||
cbdd3138 BM |
2334 | |
2335 | case "`$CC -v --help 2>&1`" in | |
2336 | *-fstrict-aliasing* ) CFLAGS="$CFLAGS -fno-strict-aliasing" ;; | |
2337 | esac | |
2338 | ||
2339 | case "`$CC -v --help 2>&1`" in | |
2340 | *-Wpointer-sign* ) CFLAGS="$CFLAGS -Wno-pointer-sign" ;; | |
2341 | esac | |
0e87ac8a | 2342 | ac_ext=cc |
2343 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2344 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2345 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2346 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2347 | if test -n "$ac_tool_prefix"; then | |
2348 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2349 | do | |
2350 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2351 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2352 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2354 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2356 | else | |
2357 | if test -n "$CXX"; then | |
2358 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2359 | else | |
2360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2361 | for as_dir in $PATH | |
2362 | do | |
2363 | IFS=$as_save_IFS | |
2364 | test -z "$as_dir" && as_dir=. | |
2365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2366 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2367 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
2368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2369 | break 2 | |
2370 | fi | |
2371 | done | |
2372 | done | |
2373 | ||
2374 | fi | |
2375 | fi | |
2376 | CXX=$ac_cv_prog_CXX | |
2377 | if test -n "$CXX"; then | |
2378 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2379 | echo "${ECHO_T}$CXX" >&6 | |
2380 | else | |
2381 | echo "$as_me:$LINENO: result: no" >&5 | |
2382 | echo "${ECHO_T}no" >&6 | |
2383 | fi | |
2384 | ||
2385 | test -n "$CXX" && break | |
2386 | done | |
2387 | fi | |
2388 | if test -z "$CXX"; then | |
2389 | ac_ct_CXX=$CXX | |
2390 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2391 | do | |
2392 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2393 | set dummy $ac_prog; ac_word=$2 | |
2394 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2396 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2398 | else | |
2399 | if test -n "$ac_ct_CXX"; then | |
2400 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2401 | else | |
2402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2403 | for as_dir in $PATH | |
2404 | do | |
2405 | IFS=$as_save_IFS | |
2406 | test -z "$as_dir" && as_dir=. | |
2407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2408 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2409 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
2410 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2411 | break 2 | |
2412 | fi | |
2413 | done | |
2414 | done | |
2415 | ||
2416 | fi | |
2417 | fi | |
2418 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2419 | if test -n "$ac_ct_CXX"; then | |
2420 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2421 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
2422 | else | |
2423 | echo "$as_me:$LINENO: result: no" >&5 | |
2424 | echo "${ECHO_T}no" >&6 | |
2425 | fi | |
2426 | ||
2427 | test -n "$ac_ct_CXX" && break | |
2428 | done | |
2429 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
2430 | ||
2431 | CXX=$ac_ct_CXX | |
2432 | fi | |
2433 | ||
2434 | ||
2435 | # Provide some information about the compiler. | |
2436 | echo "$as_me:$LINENO:" \ | |
2437 | "checking for C++ compiler version" >&5 | |
2438 | ac_compiler=`set X $ac_compile; echo $2` | |
2439 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2440 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2441 | ac_status=$? | |
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2443 | (exit $ac_status); } | |
2444 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2445 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2446 | ac_status=$? | |
2447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2448 | (exit $ac_status); } | |
2449 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2450 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2451 | ac_status=$? | |
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2453 | (exit $ac_status); } | |
2454 | ||
2455 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2456 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
2457 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2459 | else | |
2460 | cat >conftest.$ac_ext <<_ACEOF | |
2461 | /* confdefs.h. */ | |
2462 | _ACEOF | |
2463 | cat confdefs.h >>conftest.$ac_ext | |
2464 | cat >>conftest.$ac_ext <<_ACEOF | |
2465 | /* end confdefs.h. */ | |
2466 | ||
2467 | int | |
2468 | main () | |
2469 | { | |
2470 | #ifndef __GNUC__ | |
2471 | choke me | |
2472 | #endif | |
2473 | ||
2474 | ; | |
2475 | return 0; | |
2476 | } | |
2477 | _ACEOF | |
2478 | rm -f conftest.$ac_objext | |
2479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2480 | (eval $ac_compile) 2>conftest.er1 | |
2481 | ac_status=$? | |
2482 | grep -v '^ *+' conftest.er1 >conftest.err | |
2483 | rm -f conftest.er1 | |
2484 | cat conftest.err >&5 | |
2485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2486 | (exit $ac_status); } && | |
64b46a71 | 2487 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0e87ac8a | 2488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2489 | (eval $ac_try) 2>&5 | |
2490 | ac_status=$? | |
2491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2492 | (exit $ac_status); }; } && | |
2493 | { ac_try='test -s conftest.$ac_objext' | |
2494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2495 | (eval $ac_try) 2>&5 | |
2496 | ac_status=$? | |
2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2498 | (exit $ac_status); }; }; then | |
2499 | ac_compiler_gnu=yes | |
2500 | else | |
2501 | echo "$as_me: failed program was:" >&5 | |
2502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2503 | ||
2504 | ac_compiler_gnu=no | |
2505 | fi | |
2506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2507 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2508 | ||
2509 | fi | |
2510 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2511 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
2512 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2513 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2514 | ac_save_CXXFLAGS=$CXXFLAGS | |
2515 | CXXFLAGS="-g" | |
2516 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2517 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2518 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2520 | else | |
2521 | cat >conftest.$ac_ext <<_ACEOF | |
2522 | /* confdefs.h. */ | |
2523 | _ACEOF | |
2524 | cat confdefs.h >>conftest.$ac_ext | |
2525 | cat >>conftest.$ac_ext <<_ACEOF | |
2526 | /* end confdefs.h. */ | |
2527 | ||
2528 | int | |
2529 | main () | |
2530 | { | |
2531 | ||
2532 | ; | |
2533 | return 0; | |
2534 | } | |
2535 | _ACEOF | |
2536 | rm -f conftest.$ac_objext | |
2537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2538 | (eval $ac_compile) 2>conftest.er1 | |
2539 | ac_status=$? | |
2540 | grep -v '^ *+' conftest.er1 >conftest.err | |
2541 | rm -f conftest.er1 | |
2542 | cat conftest.err >&5 | |
2543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2544 | (exit $ac_status); } && | |
64b46a71 | 2545 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0e87ac8a | 2546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2547 | (eval $ac_try) 2>&5 | |
2548 | ac_status=$? | |
2549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2550 | (exit $ac_status); }; } && | |
2551 | { ac_try='test -s conftest.$ac_objext' | |
2552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2553 | (eval $ac_try) 2>&5 | |
2554 | ac_status=$? | |
2555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2556 | (exit $ac_status); }; }; then | |
2557 | ac_cv_prog_cxx_g=yes | |
2558 | else | |
2559 | echo "$as_me: failed program was:" >&5 | |
2560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2561 | ||
2562 | ac_cv_prog_cxx_g=no | |
2563 | fi | |
2564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2565 | fi | |
2566 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2567 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2568 | if test "$ac_test_CXXFLAGS" = set; then | |
2569 | CXXFLAGS=$ac_save_CXXFLAGS | |
2570 | elif test $ac_cv_prog_cxx_g = yes; then | |
2571 | if test "$GXX" = yes; then | |
2572 | CXXFLAGS="-g -O2" | |
2573 | else | |
2574 | CXXFLAGS="-g" | |
2575 | fi | |
2576 | else | |
2577 | if test "$GXX" = yes; then | |
2578 | CXXFLAGS="-O2" | |
2579 | else | |
2580 | CXXFLAGS= | |
2581 | fi | |
2582 | fi | |
2583 | for ac_declaration in \ | |
2584 | '' \ | |
2585 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2586 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2587 | 'extern "C" void exit (int) throw ();' \ | |
2588 | 'extern "C" void exit (int);' \ | |
2589 | 'void exit (int);' | |
2590 | do | |
2591 | cat >conftest.$ac_ext <<_ACEOF | |
2592 | /* confdefs.h. */ | |
2593 | _ACEOF | |
2594 | cat confdefs.h >>conftest.$ac_ext | |
2595 | cat >>conftest.$ac_ext <<_ACEOF | |
2596 | /* end confdefs.h. */ | |
2597 | $ac_declaration | |
2598 | #include <stdlib.h> | |
2599 | int | |
2600 | main () | |
2601 | { | |
2602 | exit (42); | |
2603 | ; | |
2604 | return 0; | |
2605 | } | |
2606 | _ACEOF | |
2607 | rm -f conftest.$ac_objext | |
2608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2609 | (eval $ac_compile) 2>conftest.er1 | |
2610 | ac_status=$? | |
2611 | grep -v '^ *+' conftest.er1 >conftest.err | |
2612 | rm -f conftest.er1 | |
2613 | cat conftest.err >&5 | |
2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2615 | (exit $ac_status); } && | |
64b46a71 | 2616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0e87ac8a | 2617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2618 | (eval $ac_try) 2>&5 | |
2619 | ac_status=$? | |
2620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2621 | (exit $ac_status); }; } && | |
2622 | { ac_try='test -s conftest.$ac_objext' | |
2623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2624 | (eval $ac_try) 2>&5 | |
2625 | ac_status=$? | |
2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2627 | (exit $ac_status); }; }; then | |
2628 | : | |
2629 | else | |
2630 | echo "$as_me: failed program was:" >&5 | |
2631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2632 | ||
2633 | continue | |
2634 | fi | |
2635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2636 | cat >conftest.$ac_ext <<_ACEOF | |
2637 | /* confdefs.h. */ | |
2638 | _ACEOF | |
2639 | cat confdefs.h >>conftest.$ac_ext | |
2640 | cat >>conftest.$ac_ext <<_ACEOF | |
2641 | /* end confdefs.h. */ | |
2642 | $ac_declaration | |
2643 | int | |
2644 | main () | |
2645 | { | |
2646 | exit (42); | |
2647 | ; | |
2648 | return 0; | |
2649 | } | |
2650 | _ACEOF | |
2651 | rm -f conftest.$ac_objext | |
2652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2653 | (eval $ac_compile) 2>conftest.er1 | |
2654 | ac_status=$? | |
2655 | grep -v '^ *+' conftest.er1 >conftest.err | |
2656 | rm -f conftest.er1 | |
2657 | cat conftest.err >&5 | |
2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2659 | (exit $ac_status); } && | |
64b46a71 | 2660 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0e87ac8a | 2661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2662 | (eval $ac_try) 2>&5 | |
2663 | ac_status=$? | |
2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2665 | (exit $ac_status); }; } && | |
2666 | { ac_try='test -s conftest.$ac_objext' | |
2667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2668 | (eval $ac_try) 2>&5 | |
2669 | ac_status=$? | |
2670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2671 | (exit $ac_status); }; }; then | |
2672 | break | |
2673 | else | |
2674 | echo "$as_me: failed program was:" >&5 | |
2675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2676 | ||
2677 | fi | |
2678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2679 | done | |
2680 | rm -f conftest* | |
2681 | if test -n "$ac_declaration"; then | |
2682 | echo '#ifdef __cplusplus' >>confdefs.h | |
2683 | echo $ac_declaration >>confdefs.h | |
2684 | echo '#endif' >>confdefs.h | |
2685 | fi | |
2686 | ||
2687 | ac_ext=c | |
2688 | ac_cpp='$CPP $CPPFLAGS' | |
2689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
cbdd3138 | 2692 | |
f40ec73c | 2693 | # Extract the first word of "rm", so it can be a program name with args. |
2694 | set dummy rm; ac_word=$2 | |
81ae7da0 BM |
2695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 2697 | if test "${ac_cv_path_RM+set}" = set; then |
2698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 2699 | else |
f69335e6 | 2700 | case $RM in |
2701 | [\\/]* | ?:[\\/]*) | |
f40ec73c | 2702 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
2703 | ;; | |
f40ec73c | 2704 | *) |
f69335e6 | 2705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2706 | for as_dir in $PATH | |
2707 | do | |
2708 | IFS=$as_save_IFS | |
2709 | test -z "$as_dir" && as_dir=. | |
2710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 2711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 2712 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
2713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2714 | break 2 | |
2715 | fi | |
2716 | done | |
2717 | done | |
2718 | ||
f40ec73c | 2719 | ;; |
2720 | esac | |
2721 | fi | |
f69335e6 | 2722 | RM=$ac_cv_path_RM |
81ae7da0 | 2723 | |
f40ec73c | 2724 | if test -n "$RM"; then |
81ae7da0 BM |
2725 | echo "$as_me:$LINENO: result: $RM" >&5 |
2726 | echo "${ECHO_T}$RM" >&6 | |
f40ec73c | 2727 | else |
81ae7da0 BM |
2728 | echo "$as_me:$LINENO: result: no" >&5 |
2729 | echo "${ECHO_T}no" >&6 | |
f40ec73c | 2730 | fi |
2731 | ||
2732 | # Extract the first word of "cp", so it can be a program name with args. | |
2733 | set dummy cp; ac_word=$2 | |
81ae7da0 BM |
2734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 2736 | if test "${ac_cv_path_CP+set}" = set; then |
2737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 2738 | else |
f69335e6 | 2739 | case $CP in |
2740 | [\\/]* | ?:[\\/]*) | |
f40ec73c | 2741 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
2742 | ;; | |
f40ec73c | 2743 | *) |
f69335e6 | 2744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2745 | for as_dir in $PATH | |
2746 | do | |
2747 | IFS=$as_save_IFS | |
2748 | test -z "$as_dir" && as_dir=. | |
2749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 2750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 2751 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
2752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2753 | break 2 | |
2754 | fi | |
2755 | done | |
2756 | done | |
2757 | ||
f40ec73c | 2758 | ;; |
2759 | esac | |
2760 | fi | |
f69335e6 | 2761 | CP=$ac_cv_path_CP |
81ae7da0 | 2762 | |
f40ec73c | 2763 | if test -n "$CP"; then |
81ae7da0 BM |
2764 | echo "$as_me:$LINENO: result: $CP" >&5 |
2765 | echo "${ECHO_T}$CP" >&6 | |
f40ec73c | 2766 | else |
81ae7da0 BM |
2767 | echo "$as_me:$LINENO: result: no" >&5 |
2768 | echo "${ECHO_T}no" >&6 | |
f40ec73c | 2769 | fi |
2770 | ||
2771 | # Extract the first word of "touch", so it can be a program name with args. | |
2772 | set dummy touch; ac_word=$2 | |
81ae7da0 BM |
2773 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 2775 | if test "${ac_cv_path_TOUCH+set}" = set; then |
2776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 2777 | else |
f69335e6 | 2778 | case $TOUCH in |
2779 | [\\/]* | ?:[\\/]*) | |
f40ec73c | 2780 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. |
2781 | ;; | |
f40ec73c | 2782 | *) |
f69335e6 | 2783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2784 | for as_dir in $PATH | |
2785 | do | |
2786 | IFS=$as_save_IFS | |
2787 | test -z "$as_dir" && as_dir=. | |
2788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 2789 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 2790 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
2791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2792 | break 2 | |
2793 | fi | |
2794 | done | |
2795 | done | |
2796 | ||
f40ec73c | 2797 | ;; |
2798 | esac | |
2799 | fi | |
f69335e6 | 2800 | TOUCH=$ac_cv_path_TOUCH |
81ae7da0 | 2801 | |
f40ec73c | 2802 | if test -n "$TOUCH"; then |
81ae7da0 BM |
2803 | echo "$as_me:$LINENO: result: $TOUCH" >&5 |
2804 | echo "${ECHO_T}$TOUCH" >&6 | |
f40ec73c | 2805 | else |
81ae7da0 BM |
2806 | echo "$as_me:$LINENO: result: no" >&5 |
2807 | echo "${ECHO_T}no" >&6 | |
f40ec73c | 2808 | fi |
2809 | ||
2810 | # Extract the first word of "openssl", so it can be a program name with args. | |
2811 | set dummy openssl; ac_word=$2 | |
81ae7da0 BM |
2812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 2814 | if test "${ac_cv_path_OPENSSLPATH+set}" = set; then |
2815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 2816 | else |
f69335e6 | 2817 | case $OPENSSLPATH in |
2818 | [\\/]* | ?:[\\/]*) | |
f40ec73c | 2819 | ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path. |
2820 | ;; | |
f40ec73c | 2821 | *) |
f69335e6 | 2822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2823 | for as_dir in $PATH | |
2824 | do | |
2825 | IFS=$as_save_IFS | |
2826 | test -z "$as_dir" && as_dir=. | |
2827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 2828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 2829 | ac_cv_path_OPENSSLPATH="$as_dir/$ac_word$ac_exec_ext" |
2830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2831 | break 2 | |
2832 | fi | |
2833 | done | |
2834 | done | |
2835 | ||
f40ec73c | 2836 | ;; |
2837 | esac | |
2838 | fi | |
f69335e6 | 2839 | OPENSSLPATH=$ac_cv_path_OPENSSLPATH |
81ae7da0 | 2840 | |
f40ec73c | 2841 | if test -n "$OPENSSLPATH"; then |
81ae7da0 BM |
2842 | echo "$as_me:$LINENO: result: $OPENSSLPATH" >&5 |
2843 | echo "${ECHO_T}$OPENSSLPATH" >&6 | |
f40ec73c | 2844 | else |
81ae7da0 BM |
2845 | echo "$as_me:$LINENO: result: no" >&5 |
2846 | echo "${ECHO_T}no" >&6 | |
f40ec73c | 2847 | fi |
2848 | ||
29b7ea7e | 2849 | # Extract the first word of "install", so it can be a program name with args. |
2850 | set dummy install; ac_word=$2 | |
81ae7da0 BM |
2851 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f69335e6 | 2853 | if test "${ac_cv_path_INSTALL+set}" = set; then |
2854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29b7ea7e | 2855 | else |
f69335e6 | 2856 | case $INSTALL in |
2857 | [\\/]* | ?:[\\/]*) | |
29b7ea7e | 2858 | ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path. |
2859 | ;; | |
29b7ea7e | 2860 | *) |
f69335e6 | 2861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2862 | for as_dir in $PATH | |
2863 | do | |
2864 | IFS=$as_save_IFS | |
2865 | test -z "$as_dir" && as_dir=. | |
2866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 2867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f69335e6 | 2868 | ac_cv_path_INSTALL="$as_dir/$ac_word$ac_exec_ext" |
2869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2870 | break 2 | |
2871 | fi | |
2872 | done | |
2873 | done | |
2874 | ||
29b7ea7e | 2875 | ;; |
2876 | esac | |
2877 | fi | |
f69335e6 | 2878 | INSTALL=$ac_cv_path_INSTALL |
81ae7da0 | 2879 | |
29b7ea7e | 2880 | if test -n "$INSTALL"; then |
81ae7da0 BM |
2881 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2882 | echo "${ECHO_T}$INSTALL" >&6 | |
29b7ea7e | 2883 | else |
81ae7da0 BM |
2884 | echo "$as_me:$LINENO: result: no" >&5 |
2885 | echo "${ECHO_T}no" >&6 | |
29b7ea7e | 2886 | fi |
2887 | ||
e7c7909d | 2888 | # Extract the first word of "gmake", so it can be a program name with args. |
2889 | set dummy gmake; ac_word=$2 | |
81ae7da0 BM |
2890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
e7c7909d | 2892 | if test "${ac_cv_prog_MAKER+set}" = set; then |
2893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2894 | else | |
2895 | if test -n "$MAKER"; then | |
2896 | ac_cv_prog_MAKER="$MAKER" # Let the user override the test. | |
2897 | else | |
2898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2899 | for as_dir in $PATH | |
2900 | do | |
2901 | IFS=$as_save_IFS | |
2902 | test -z "$as_dir" && as_dir=. | |
2903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 2904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7c7909d | 2905 | ac_cv_prog_MAKER="gmake" |
2906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2907 | break 2 | |
2908 | fi | |
2909 | done | |
2910 | done | |
2911 | ||
2912 | test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make" | |
2913 | fi | |
2914 | fi | |
2915 | MAKER=$ac_cv_prog_MAKER | |
2916 | if test -n "$MAKER"; then | |
81ae7da0 BM |
2917 | echo "$as_me:$LINENO: result: $MAKER" >&5 |
2918 | echo "${ECHO_T}$MAKER" >&6 | |
e7c7909d | 2919 | else |
81ae7da0 BM |
2920 | echo "$as_me:$LINENO: result: no" >&5 |
2921 | echo "${ECHO_T}no" >&6 | |
e7c7909d | 2922 | fi |
2923 | ||
2924 | # Extract the first word of "gmake", so it can be a program name with args. | |
2925 | set dummy gmake; ac_word=$2 | |
81ae7da0 BM |
2926 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
e7c7909d | 2928 | if test "${ac_cv_path_GMAKE+set}" = set; then |
2929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2930 | else | |
2931 | case $GMAKE in | |
2932 | [\\/]* | ?:[\\/]*) | |
2933 | ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path. | |
2934 | ;; | |
2935 | *) | |
2936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2937 | for as_dir in $PATH | |
2938 | do | |
2939 | IFS=$as_save_IFS | |
2940 | test -z "$as_dir" && as_dir=. | |
2941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 2942 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7c7909d | 2943 | ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext" |
2944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2945 | break 2 | |
2946 | fi | |
2947 | done | |
2948 | done | |
2949 | ||
2950 | ;; | |
2951 | esac | |
2952 | fi | |
2953 | GMAKE=$ac_cv_path_GMAKE | |
81ae7da0 | 2954 | |
e7c7909d | 2955 | if test -n "$GMAKE"; then |
81ae7da0 BM |
2956 | echo "$as_me:$LINENO: result: $GMAKE" >&5 |
2957 | echo "${ECHO_T}$GMAKE" >&6 | |
e7c7909d | 2958 | else |
81ae7da0 BM |
2959 | echo "$as_me:$LINENO: result: no" >&5 |
2960 | echo "${ECHO_T}no" >&6 | |
e7c7909d | 2961 | fi |
2962 | ||
ddcec35e | 2963 | # Extract the first word of "gunzip", so it can be a program name with args. |
2964 | set dummy gunzip; ac_word=$2 | |
81ae7da0 BM |
2965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ddcec35e | 2967 | if test "${ac_cv_path_GUNZIP+set}" = set; then |
2968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2969 | else | |
2970 | case $GUNZIP in | |
2971 | [\\/]* | ?:[\\/]*) | |
2972 | ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. | |
2973 | ;; | |
2974 | *) | |
2975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2976 | for as_dir in $PATH | |
2977 | do | |
2978 | IFS=$as_save_IFS | |
2979 | test -z "$as_dir" && as_dir=. | |
2980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 2981 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ddcec35e | 2982 | ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" |
2983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2984 | break 2 | |
2985 | fi | |
2986 | done | |
2987 | done | |
2988 | ||
2989 | ;; | |
2990 | esac | |
2991 | fi | |
2992 | GUNZIP=$ac_cv_path_GUNZIP | |
81ae7da0 | 2993 | |
ddcec35e | 2994 | if test -n "$GUNZIP"; then |
81ae7da0 BM |
2995 | echo "$as_me:$LINENO: result: $GUNZIP" >&5 |
2996 | echo "${ECHO_T}$GUNZIP" >&6 | |
ddcec35e | 2997 | else |
81ae7da0 BM |
2998 | echo "$as_me:$LINENO: result: no" >&5 |
2999 | echo "${ECHO_T}no" >&6 | |
ddcec35e | 3000 | fi |
3001 | ||
6be3ab92 | 3002 | # Extract the first word of "pkg-config", so it can be a program name with args. |
3003 | set dummy pkg-config; ac_word=$2 | |
81ae7da0 BM |
3004 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3005 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6be3ab92 | 3006 | if test "${ac_cv_path_PKGCONFIG+set}" = set; then |
3007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3008 | else | |
3009 | case $PKGCONFIG in | |
3010 | [\\/]* | ?:[\\/]*) | |
3011 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | |
3012 | ;; | |
3013 | *) | |
3014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3015 | for as_dir in $PATH | |
3016 | do | |
3017 | IFS=$as_save_IFS | |
3018 | test -z "$as_dir" && as_dir=. | |
3019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ae7da0 | 3020 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6be3ab92 | 3021 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
3022 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3023 | break 2 | |
3024 | fi | |
3025 | done | |
3026 | done | |
3027 | ||
3028 | ;; | |
3029 | esac | |
3030 | fi | |
3031 | PKGCONFIG=$ac_cv_path_PKGCONFIG | |
81ae7da0 | 3032 | |
6be3ab92 | 3033 | if test -n "$PKGCONFIG"; then |
81ae7da0 BM |
3034 | echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 |
3035 | echo "${ECHO_T}$PKGCONFIG" >&6 | |
6be3ab92 | 3036 | else |
81ae7da0 BM |
3037 | echo "$as_me:$LINENO: result: no" >&5 |
3038 | echo "${ECHO_T}no" >&6 | |
6be3ab92 | 3039 | fi |
3040 | ||
3041 | ||
81ae7da0 BM |
3042 | echo "$as_me:$LINENO: checking for crypt in -ldescrypt" >&5 |
3043 | echo $ECHO_N "checking for crypt in -ldescrypt... $ECHO_C" >&6 | |
f69335e6 | 3044 | if test "${ac_cv_lib_descrypt_crypt+set}" = set; then |
3045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 3046 | else |
f69335e6 | 3047 | ac_check_lib_save_LIBS=$LIBS |
f40ec73c | 3048 | LIBS="-ldescrypt $LIBS" |
f69335e6 | 3049 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
3050 | /* confdefs.h. */ |
3051 | _ACEOF | |
3052 | cat confdefs.h >>conftest.$ac_ext | |
3053 | cat >>conftest.$ac_ext <<_ACEOF | |
3054 | /* end confdefs.h. */ | |
f69335e6 | 3055 | |
81ae7da0 | 3056 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 3057 | #ifdef __cplusplus |
3058 | extern "C" | |
3059 | #endif | |
81ae7da0 BM |
3060 | /* We use char because int might match the return type of a gcc2 |
3061 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 3062 | char crypt (); |
f69335e6 | 3063 | int |
3064 | main () | |
3065 | { | |
81ae7da0 | 3066 | crypt (); |
f69335e6 | 3067 | ; |
3068 | return 0; | |
3069 | } | |
3070 | _ACEOF | |
3071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
3072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3073 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 3074 | ac_status=$? |
cbdd3138 BM |
3075 | grep -v '^ *+' conftest.er1 >conftest.err |
3076 | rm -f conftest.er1 | |
3077 | cat conftest.err >&5 | |
f69335e6 | 3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3079 | (exit $ac_status); } && | |
64b46a71 | 3080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
3081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3082 | (eval $ac_try) 2>&5 | |
f69335e6 | 3083 | ac_status=$? |
3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
cbdd3138 BM |
3085 | (exit $ac_status); }; } && |
3086 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
3087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3088 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
3089 | ac_status=$? |
3090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3091 | (exit $ac_status); }; }; then | |
3092 | ac_cv_lib_descrypt_crypt=yes | |
f69335e6 | 3093 | else |
3094 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3095 | sed 's/^/| /' conftest.$ac_ext >&5 |
3096 | ||
81ae7da0 | 3097 | ac_cv_lib_descrypt_crypt=no |
f69335e6 | 3098 | fi |
81ae7da0 | 3099 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 3100 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 3101 | LIBS=$ac_check_lib_save_LIBS |
3102 | fi | |
81ae7da0 BM |
3103 | echo "$as_me:$LINENO: result: $ac_cv_lib_descrypt_crypt" >&5 |
3104 | echo "${ECHO_T}$ac_cv_lib_descrypt_crypt" >&6 | |
f69335e6 | 3105 | if test $ac_cv_lib_descrypt_crypt = yes; then |
3106 | cat >>confdefs.h <<\_ACEOF | |
abedc78b | 3107 | #define HAVE_CRYPT 1 |
f69335e6 | 3108 | _ACEOF |
abedc78b | 3109 | IRCDLIBS="$IRCDLIBS-ldescrypt " MKPASSWDLIBS="-ldescrypt" |
f40ec73c | 3110 | else |
81ae7da0 BM |
3111 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
3112 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | |
f69335e6 | 3113 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
3114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 3115 | else |
f69335e6 | 3116 | ac_check_lib_save_LIBS=$LIBS |
f40ec73c | 3117 | LIBS="-lcrypt $LIBS" |
f69335e6 | 3118 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
3119 | /* confdefs.h. */ |
3120 | _ACEOF | |
3121 | cat confdefs.h >>conftest.$ac_ext | |
3122 | cat >>conftest.$ac_ext <<_ACEOF | |
3123 | /* end confdefs.h. */ | |
f69335e6 | 3124 | |
81ae7da0 | 3125 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 3126 | #ifdef __cplusplus |
3127 | extern "C" | |
3128 | #endif | |
81ae7da0 BM |
3129 | /* We use char because int might match the return type of a gcc2 |
3130 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 3131 | char crypt (); |
f69335e6 | 3132 | int |
3133 | main () | |
3134 | { | |
81ae7da0 | 3135 | crypt (); |
f69335e6 | 3136 | ; |
3137 | return 0; | |
3138 | } | |
3139 | _ACEOF | |
3140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
3141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3142 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 3143 | ac_status=$? |
cbdd3138 BM |
3144 | grep -v '^ *+' conftest.er1 >conftest.err |
3145 | rm -f conftest.er1 | |
3146 | cat conftest.err >&5 | |
f69335e6 | 3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3148 | (exit $ac_status); } && | |
64b46a71 | 3149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
3150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3151 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
3152 | ac_status=$? |
3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3154 | (exit $ac_status); }; } && | |
3155 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
3156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3157 | (eval $ac_try) 2>&5 | |
f69335e6 | 3158 | ac_status=$? |
3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3160 | (exit $ac_status); }; }; then | |
3161 | ac_cv_lib_crypt_crypt=yes | |
3162 | else | |
3163 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3164 | sed 's/^/| /' conftest.$ac_ext >&5 |
3165 | ||
81ae7da0 | 3166 | ac_cv_lib_crypt_crypt=no |
f69335e6 | 3167 | fi |
81ae7da0 | 3168 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 3169 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 3170 | LIBS=$ac_check_lib_save_LIBS |
3171 | fi | |
81ae7da0 BM |
3172 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 |
3173 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | |
f69335e6 | 3174 | if test $ac_cv_lib_crypt_crypt = yes; then |
3175 | cat >>confdefs.h <<\_ACEOF | |
abedc78b | 3176 | #define HAVE_CRYPT 1 |
f69335e6 | 3177 | _ACEOF |
abedc78b | 3178 | IRCDLIBS="$IRCDLIBS-lcrypt " MKPASSWDLIBS="-lcrypt" |
f40ec73c | 3179 | fi |
3180 | ||
740084b6 | 3181 | fi |
3182 | ||
81ae7da0 BM |
3183 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3184 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
f69335e6 | 3185 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 3187 | else |
f69335e6 | 3188 | ac_check_lib_save_LIBS=$LIBS |
f40ec73c | 3189 | LIBS="-lsocket $LIBS" |
f69335e6 | 3190 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
3191 | /* confdefs.h. */ |
3192 | _ACEOF | |
3193 | cat confdefs.h >>conftest.$ac_ext | |
3194 | cat >>conftest.$ac_ext <<_ACEOF | |
3195 | /* end confdefs.h. */ | |
f69335e6 | 3196 | |
81ae7da0 | 3197 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 3198 | #ifdef __cplusplus |
3199 | extern "C" | |
3200 | #endif | |
81ae7da0 BM |
3201 | /* We use char because int might match the return type of a gcc2 |
3202 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 3203 | char socket (); |
f69335e6 | 3204 | int |
3205 | main () | |
3206 | { | |
81ae7da0 | 3207 | socket (); |
f69335e6 | 3208 | ; |
3209 | return 0; | |
3210 | } | |
3211 | _ACEOF | |
3212 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
3213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3214 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 3215 | ac_status=$? |
cbdd3138 BM |
3216 | grep -v '^ *+' conftest.er1 >conftest.err |
3217 | rm -f conftest.er1 | |
3218 | cat conftest.err >&5 | |
f69335e6 | 3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3220 | (exit $ac_status); } && | |
64b46a71 | 3221 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
3222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3223 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
3224 | ac_status=$? |
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3226 | (exit $ac_status); }; } && | |
3227 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
3228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3229 | (eval $ac_try) 2>&5 | |
f69335e6 | 3230 | ac_status=$? |
3231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3232 | (exit $ac_status); }; }; then | |
3233 | ac_cv_lib_socket_socket=yes | |
3234 | else | |
3235 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3236 | sed 's/^/| /' conftest.$ac_ext >&5 |
3237 | ||
81ae7da0 | 3238 | ac_cv_lib_socket_socket=no |
f69335e6 | 3239 | fi |
81ae7da0 | 3240 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 3241 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 3242 | LIBS=$ac_check_lib_save_LIBS |
3243 | fi | |
81ae7da0 BM |
3244 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
3245 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
f69335e6 | 3246 | if test $ac_cv_lib_socket_socket = yes; then |
825ee732 | 3247 | IRCDLIBS="$IRCDLIBS-lsocket " SOCKLIB="-lsocket" |
f40ec73c | 3248 | fi |
3249 | ||
81ae7da0 BM |
3250 | echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 |
3251 | echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6 | |
f69335e6 | 3252 | if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then |
3253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7de9d2d6 | 3254 | else |
f69335e6 | 3255 | ac_check_lib_save_LIBS=$LIBS |
7de9d2d6 | 3256 | LIBS="-lnsl $LIBS" |
f69335e6 | 3257 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
3258 | /* confdefs.h. */ |
3259 | _ACEOF | |
3260 | cat confdefs.h >>conftest.$ac_ext | |
3261 | cat >>conftest.$ac_ext <<_ACEOF | |
3262 | /* end confdefs.h. */ | |
f69335e6 | 3263 | |
81ae7da0 | 3264 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 3265 | #ifdef __cplusplus |
3266 | extern "C" | |
3267 | #endif | |
81ae7da0 BM |
3268 | /* We use char because int might match the return type of a gcc2 |
3269 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 3270 | char inet_ntoa (); |
f69335e6 | 3271 | int |
3272 | main () | |
3273 | { | |
81ae7da0 | 3274 | inet_ntoa (); |
f69335e6 | 3275 | ; |
3276 | return 0; | |
3277 | } | |
3278 | _ACEOF | |
3279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
3280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3281 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 3282 | ac_status=$? |
cbdd3138 BM |
3283 | grep -v '^ *+' conftest.er1 >conftest.err |
3284 | rm -f conftest.er1 | |
3285 | cat conftest.err >&5 | |
f69335e6 | 3286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3287 | (exit $ac_status); } && | |
64b46a71 | 3288 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
3289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3290 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
3291 | ac_status=$? |
3292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3293 | (exit $ac_status); }; } && | |
3294 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
3295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3296 | (eval $ac_try) 2>&5 | |
f69335e6 | 3297 | ac_status=$? |
3298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3299 | (exit $ac_status); }; }; then | |
3300 | ac_cv_lib_nsl_inet_ntoa=yes | |
3301 | else | |
3302 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3303 | sed 's/^/| /' conftest.$ac_ext >&5 |
3304 | ||
81ae7da0 | 3305 | ac_cv_lib_nsl_inet_ntoa=no |
f69335e6 | 3306 | fi |
81ae7da0 | 3307 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 3308 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 3309 | LIBS=$ac_check_lib_save_LIBS |
3310 | fi | |
81ae7da0 BM |
3311 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 |
3312 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6 | |
f69335e6 | 3313 | if test $ac_cv_lib_nsl_inet_ntoa = yes; then |
825ee732 | 3314 | IRCDLIBS="$IRCDLIBS-lnsl " INETLIB="-lnsl" |
7de9d2d6 | 3315 | fi |
3316 | ||
3317 | ||
f40ec73c | 3318 | |
3319 | ||
3320 | ||
3321 | ||
f40ec73c | 3322 | |
cbdd3138 | 3323 | |
f69335e6 | 3324 | ac_ext=c |
3325 | ac_cpp='$CPP $CPPFLAGS' | |
3326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ae7da0 BM |
3329 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3330 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
f40ec73c | 3331 | # On Suns, sometimes $CPP names a directory. |
3332 | if test -n "$CPP" && test -d "$CPP"; then | |
3333 | CPP= | |
3334 | fi | |
3335 | if test -z "$CPP"; then | |
f69335e6 | 3336 | if test "${ac_cv_prog_CPP+set}" = set; then |
3337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3338 | else | |
3339 | # Double quotes because CPP needs to be expanded | |
3340 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3341 | do | |
3342 | ac_preproc_ok=false | |
3343 | for ac_c_preproc_warn_flag in '' yes | |
3344 | do | |
3345 | # Use a header file that comes with gcc, so configuring glibc | |
3346 | # with a fresh cross-compiler works. | |
cbdd3138 BM |
3347 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3348 | # <limits.h> exists even on freestanding compilers. | |
f40ec73c | 3349 | # On the NeXT, cc -E runs the code through the compiler's parser, |
f69335e6 | 3350 | # not just through cpp. "Syntax error" is here to catch this case. |
3351 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
3352 | /* confdefs.h. */ |
3353 | _ACEOF | |
3354 | cat confdefs.h >>conftest.$ac_ext | |
3355 | cat >>conftest.$ac_ext <<_ACEOF | |
3356 | /* end confdefs.h. */ | |
3357 | #ifdef __STDC__ | |
3358 | # include <limits.h> | |
3359 | #else | |
3360 | # include <assert.h> | |
3361 | #endif | |
3362 | Syntax error | |
f69335e6 | 3363 | _ACEOF |
81ae7da0 BM |
3364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 3366 | ac_status=$? |
cbdd3138 | 3367 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 3368 | rm -f conftest.er1 |
3369 | cat conftest.err >&5 | |
3370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3371 | (exit $ac_status); } >/dev/null; then | |
3372 | if test -s conftest.err; then | |
3373 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 3374 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 3375 | else |
3376 | ac_cpp_err= | |
3377 | fi | |
3378 | else | |
3379 | ac_cpp_err=yes | |
3380 | fi | |
3381 | if test -z "$ac_cpp_err"; then | |
f40ec73c | 3382 | : |
3383 | else | |
f69335e6 | 3384 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
3385 | sed 's/^/| /' conftest.$ac_ext >&5 |
3386 | ||
f69335e6 | 3387 | # Broken: fails on valid input. |
3388 | continue | |
3389 | fi | |
3390 | rm -f conftest.err conftest.$ac_ext | |
3391 | ||
81ae7da0 | 3392 | # OK, works on sane cases. Now check whether non-existent headers |
f69335e6 | 3393 | # can be detected and how. |
3394 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
3395 | /* confdefs.h. */ |
3396 | _ACEOF | |
3397 | cat confdefs.h >>conftest.$ac_ext | |
3398 | cat >>conftest.$ac_ext <<_ACEOF | |
3399 | /* end confdefs.h. */ | |
f69335e6 | 3400 | #include <ac_nonexistent.h> |
3401 | _ACEOF | |
81ae7da0 BM |
3402 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3403 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 3404 | ac_status=$? |
cbdd3138 | 3405 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 3406 | rm -f conftest.er1 |
3407 | cat conftest.err >&5 | |
3408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3409 | (exit $ac_status); } >/dev/null; then | |
3410 | if test -s conftest.err; then | |
3411 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 3412 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 3413 | else |
3414 | ac_cpp_err= | |
3415 | fi | |
3416 | else | |
3417 | ac_cpp_err=yes | |
3418 | fi | |
3419 | if test -z "$ac_cpp_err"; then | |
3420 | # Broken: success on invalid input. | |
3421 | continue | |
3422 | else | |
3423 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3424 | sed 's/^/| /' conftest.$ac_ext >&5 |
3425 | ||
f69335e6 | 3426 | # Passes both tests. |
3427 | ac_preproc_ok=: | |
3428 | break | |
3429 | fi | |
3430 | rm -f conftest.err conftest.$ac_ext | |
3431 | ||
3432 | done | |
3433 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3434 | rm -f conftest.err conftest.$ac_ext | |
3435 | if $ac_preproc_ok; then | |
3436 | break | |
3437 | fi | |
3438 | ||
3439 | done | |
3440 | ac_cv_prog_CPP=$CPP | |
3441 | ||
3442 | fi | |
3443 | CPP=$ac_cv_prog_CPP | |
3444 | else | |
3445 | ac_cv_prog_CPP=$CPP | |
3446 | fi | |
81ae7da0 BM |
3447 | echo "$as_me:$LINENO: result: $CPP" >&5 |
3448 | echo "${ECHO_T}$CPP" >&6 | |
f69335e6 | 3449 | ac_preproc_ok=false |
3450 | for ac_c_preproc_warn_flag in '' yes | |
3451 | do | |
3452 | # Use a header file that comes with gcc, so configuring glibc | |
3453 | # with a fresh cross-compiler works. | |
cbdd3138 BM |
3454 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3455 | # <limits.h> exists even on freestanding compilers. | |
f69335e6 | 3456 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3457 | # not just through cpp. "Syntax error" is here to catch this case. | |
3458 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
3459 | /* confdefs.h. */ |
3460 | _ACEOF | |
3461 | cat confdefs.h >>conftest.$ac_ext | |
3462 | cat >>conftest.$ac_ext <<_ACEOF | |
3463 | /* end confdefs.h. */ | |
3464 | #ifdef __STDC__ | |
3465 | # include <limits.h> | |
3466 | #else | |
3467 | # include <assert.h> | |
3468 | #endif | |
3469 | Syntax error | |
f69335e6 | 3470 | _ACEOF |
81ae7da0 BM |
3471 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3472 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 3473 | ac_status=$? |
cbdd3138 | 3474 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 3475 | rm -f conftest.er1 |
3476 | cat conftest.err >&5 | |
3477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3478 | (exit $ac_status); } >/dev/null; then | |
3479 | if test -s conftest.err; then | |
3480 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 3481 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 3482 | else |
3483 | ac_cpp_err= | |
3484 | fi | |
3485 | else | |
3486 | ac_cpp_err=yes | |
3487 | fi | |
3488 | if test -z "$ac_cpp_err"; then | |
f40ec73c | 3489 | : |
3490 | else | |
f69335e6 | 3491 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
3492 | sed 's/^/| /' conftest.$ac_ext >&5 |
3493 | ||
f69335e6 | 3494 | # Broken: fails on valid input. |
3495 | continue | |
3496 | fi | |
3497 | rm -f conftest.err conftest.$ac_ext | |
3498 | ||
81ae7da0 | 3499 | # OK, works on sane cases. Now check whether non-existent headers |
f69335e6 | 3500 | # can be detected and how. |
3501 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
3502 | /* confdefs.h. */ |
3503 | _ACEOF | |
3504 | cat confdefs.h >>conftest.$ac_ext | |
3505 | cat >>conftest.$ac_ext <<_ACEOF | |
3506 | /* end confdefs.h. */ | |
f69335e6 | 3507 | #include <ac_nonexistent.h> |
3508 | _ACEOF | |
81ae7da0 BM |
3509 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3510 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 3511 | ac_status=$? |
cbdd3138 | 3512 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 3513 | rm -f conftest.er1 |
3514 | cat conftest.err >&5 | |
3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3516 | (exit $ac_status); } >/dev/null; then | |
3517 | if test -s conftest.err; then | |
3518 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 3519 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 3520 | else |
3521 | ac_cpp_err= | |
3522 | fi | |
3523 | else | |
3524 | ac_cpp_err=yes | |
3525 | fi | |
3526 | if test -z "$ac_cpp_err"; then | |
3527 | # Broken: success on invalid input. | |
3528 | continue | |
3529 | else | |
3530 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3531 | sed 's/^/| /' conftest.$ac_ext >&5 |
3532 | ||
f69335e6 | 3533 | # Passes both tests. |
3534 | ac_preproc_ok=: | |
3535 | break | |
3536 | fi | |
3537 | rm -f conftest.err conftest.$ac_ext | |
3538 | ||
3539 | done | |
3540 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3541 | rm -f conftest.err conftest.$ac_ext | |
3542 | if $ac_preproc_ok; then | |
f40ec73c | 3543 | : |
3544 | else | |
cbdd3138 BM |
3545 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3546 | See \`config.log' for more details." >&5 | |
3547 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3548 | See \`config.log' for more details." >&2;} | |
f69335e6 | 3549 | { (exit 1); exit 1; }; } |
3550 | fi | |
3551 | ||
3552 | ac_ext=c | |
3553 | ac_cpp='$CPP $CPPFLAGS' | |
3554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3557 | ||
3558 | ||
81ae7da0 BM |
3559 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3560 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3561 | if test "${ac_cv_prog_egrep+set}" = set; then | |
cbdd3138 BM |
3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3563 | else | |
81ae7da0 BM |
3564 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3565 | then ac_cv_prog_egrep='grep -E' | |
3566 | else ac_cv_prog_egrep='egrep' | |
cbdd3138 | 3567 | fi |
32843244 | 3568 | fi |
81ae7da0 BM |
3569 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3570 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3571 | EGREP=$ac_cv_prog_egrep | |
32843244 | 3572 | |
3573 | ||
81ae7da0 BM |
3574 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3575 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
f69335e6 | 3576 | if test "${ac_cv_header_stdc+set}" = set; then |
3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3578 | else | |
3579 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
3580 | /* confdefs.h. */ |
3581 | _ACEOF | |
3582 | cat confdefs.h >>conftest.$ac_ext | |
3583 | cat >>conftest.$ac_ext <<_ACEOF | |
3584 | /* end confdefs.h. */ | |
f69335e6 | 3585 | #include <stdlib.h> |
3586 | #include <stdarg.h> | |
3587 | #include <string.h> | |
3588 | #include <float.h> | |
3589 | ||
cbdd3138 BM |
3590 | int |
3591 | main () | |
3592 | { | |
3593 | ||
3594 | ; | |
3595 | return 0; | |
3596 | } | |
f69335e6 | 3597 | _ACEOF |
cbdd3138 | 3598 | rm -f conftest.$ac_objext |
81ae7da0 BM |
3599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3600 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 3601 | ac_status=$? |
cbdd3138 | 3602 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 3603 | rm -f conftest.er1 |
3604 | cat conftest.err >&5 | |
3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
cbdd3138 | 3606 | (exit $ac_status); } && |
64b46a71 | 3607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
3608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3609 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
3610 | ac_status=$? |
3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3612 | (exit $ac_status); }; } && | |
3613 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
3614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3615 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
3616 | ac_status=$? |
3617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3618 | (exit $ac_status); }; }; then | |
f69335e6 | 3619 | ac_cv_header_stdc=yes |
3620 | else | |
3621 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3622 | sed 's/^/| /' conftest.$ac_ext >&5 |
3623 | ||
81ae7da0 | 3624 | ac_cv_header_stdc=no |
f40ec73c | 3625 | fi |
81ae7da0 | 3626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 3627 | |
3628 | if test $ac_cv_header_stdc = yes; then | |
3629 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3630 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
3631 | /* confdefs.h. */ |
3632 | _ACEOF | |
3633 | cat confdefs.h >>conftest.$ac_ext | |
3634 | cat >>conftest.$ac_ext <<_ACEOF | |
3635 | /* end confdefs.h. */ | |
f69335e6 | 3636 | #include <string.h> |
3637 | ||
3638 | _ACEOF | |
3639 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
cbdd3138 | 3640 | $EGREP "memchr" >/dev/null 2>&1; then |
f69335e6 | 3641 | : |
3642 | else | |
3643 | ac_cv_header_stdc=no | |
f40ec73c | 3644 | fi |
3645 | rm -f conftest* | |
f69335e6 | 3646 | |
3647 | fi | |
3648 | ||
3649 | if test $ac_cv_header_stdc = yes; then | |
3650 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3651 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
3652 | /* confdefs.h. */ |
3653 | _ACEOF | |
3654 | cat confdefs.h >>conftest.$ac_ext | |
3655 | cat >>conftest.$ac_ext <<_ACEOF | |
3656 | /* end confdefs.h. */ | |
f69335e6 | 3657 | #include <stdlib.h> |
3658 | ||
3659 | _ACEOF | |
3660 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
cbdd3138 | 3661 | $EGREP "free" >/dev/null 2>&1; then |
f69335e6 | 3662 | : |
3663 | else | |
3664 | ac_cv_header_stdc=no | |
f40ec73c | 3665 | fi |
3666 | rm -f conftest* | |
f69335e6 | 3667 | |
f40ec73c | 3668 | fi |
f69335e6 | 3669 | |
3670 | if test $ac_cv_header_stdc = yes; then | |
3671 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3672 | if test "$cross_compiling" = yes; then | |
3673 | : | |
3674 | else | |
3675 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
3676 | /* confdefs.h. */ |
3677 | _ACEOF | |
3678 | cat confdefs.h >>conftest.$ac_ext | |
3679 | cat >>conftest.$ac_ext <<_ACEOF | |
3680 | /* end confdefs.h. */ | |
f69335e6 | 3681 | #include <ctype.h> |
3682 | #if ((' ' & 0x0FF) == 0x020) | |
3683 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3684 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3685 | #else | |
cbdd3138 BM |
3686 | # define ISLOWER(c) \ |
3687 | (('a' <= (c) && (c) <= 'i') \ | |
3688 | || ('j' <= (c) && (c) <= 'r') \ | |
3689 | || ('s' <= (c) && (c) <= 'z')) | |
f69335e6 | 3690 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3691 | #endif | |
3692 | ||
3693 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3694 | int | |
3695 | main () | |
3696 | { | |
3697 | int i; | |
3698 | for (i = 0; i < 256; i++) | |
3699 | if (XOR (islower (i), ISLOWER (i)) | |
cbdd3138 | 3700 | || toupper (i) != TOUPPER (i)) |
81ae7da0 BM |
3701 | exit(2); |
3702 | exit (0); | |
f69335e6 | 3703 | } |
3704 | _ACEOF | |
3705 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
3706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3707 | (eval $ac_link) 2>&5 | |
f69335e6 | 3708 | ac_status=$? |
3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3710 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
3711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3712 | (eval $ac_try) 2>&5 | |
f69335e6 | 3713 | ac_status=$? |
3714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3715 | (exit $ac_status); }; }; then | |
3716 | : | |
f40ec73c | 3717 | else |
f69335e6 | 3718 | echo "$as_me: program exited with status $ac_status" >&5 |
3719 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3720 | sed 's/^/| /' conftest.$ac_ext >&5 |
3721 | ||
f69335e6 | 3722 | ( exit $ac_status ) |
3723 | ac_cv_header_stdc=no | |
3724 | fi | |
81ae7da0 | 3725 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 3726 | fi |
3727 | fi | |
3728 | fi | |
81ae7da0 BM |
3729 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3730 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
f69335e6 | 3731 | if test $ac_cv_header_stdc = yes; then |
3732 | ||
3733 | cat >>confdefs.h <<\_ACEOF | |
3734 | #define STDC_HEADERS 1 | |
3735 | _ACEOF | |
3736 | ||
3737 | fi | |
3738 | ||
3739 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3740 | ||
3741 | ||
3742 | ||
3743 | ||
3744 | ||
3745 | ||
3746 | ||
3747 | ||
3748 | ||
3749 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
cbdd3138 | 3750 | inttypes.h stdint.h unistd.h |
f69335e6 | 3751 | do |
3752 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
81ae7da0 BM |
3753 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3755 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
f69335e6 | 3756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3757 | else | |
3758 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
3759 | /* confdefs.h. */ |
3760 | _ACEOF | |
3761 | cat confdefs.h >>conftest.$ac_ext | |
3762 | cat >>conftest.$ac_ext <<_ACEOF | |
3763 | /* end confdefs.h. */ | |
f69335e6 | 3764 | $ac_includes_default |
3765 | ||
3766 | #include <$ac_header> | |
3767 | _ACEOF | |
3768 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
3769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3770 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 3771 | ac_status=$? |
cbdd3138 BM |
3772 | grep -v '^ *+' conftest.er1 >conftest.err |
3773 | rm -f conftest.er1 | |
3774 | cat conftest.err >&5 | |
f69335e6 | 3775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3776 | (exit $ac_status); } && | |
64b46a71 | 3777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
3778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3779 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
3780 | ac_status=$? |
3781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3782 | (exit $ac_status); }; } && | |
3783 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
3784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3785 | (eval $ac_try) 2>&5 | |
f69335e6 | 3786 | ac_status=$? |
3787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3788 | (exit $ac_status); }; }; then | |
3789 | eval "$as_ac_Header=yes" | |
3790 | else | |
3791 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3792 | sed 's/^/| /' conftest.$ac_ext >&5 |
3793 | ||
81ae7da0 | 3794 | eval "$as_ac_Header=no" |
f69335e6 | 3795 | fi |
81ae7da0 | 3796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 3797 | fi |
81ae7da0 BM |
3798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3799 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f69335e6 | 3800 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3801 | cat >>confdefs.h <<_ACEOF | |
3802 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3803 | _ACEOF | |
3804 | ||
f40ec73c | 3805 | fi |
f40ec73c | 3806 | |
f69335e6 | 3807 | done |
3808 | ||
3809 | ||
3810 | if test "${ac_cv_header_sys_param_h+set}" = set; then | |
81ae7da0 BM |
3811 | echo "$as_me:$LINENO: checking for sys/param.h" >&5 |
3812 | echo $ECHO_N "checking for sys/param.h... $ECHO_C" >&6 | |
f69335e6 | 3813 | if test "${ac_cv_header_sys_param_h+set}" = set; then |
3814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3815 | fi | |
81ae7da0 BM |
3816 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_param_h" >&5 |
3817 | echo "${ECHO_T}$ac_cv_header_sys_param_h" >&6 | |
f40ec73c | 3818 | else |
f69335e6 | 3819 | # Is the header compilable? |
81ae7da0 BM |
3820 | echo "$as_me:$LINENO: checking sys/param.h usability" >&5 |
3821 | echo $ECHO_N "checking sys/param.h usability... $ECHO_C" >&6 | |
f69335e6 | 3822 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
3823 | /* confdefs.h. */ |
3824 | _ACEOF | |
3825 | cat confdefs.h >>conftest.$ac_ext | |
3826 | cat >>conftest.$ac_ext <<_ACEOF | |
3827 | /* end confdefs.h. */ | |
f69335e6 | 3828 | $ac_includes_default |
3829 | #include <sys/param.h> | |
3830 | _ACEOF | |
3831 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
3832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3833 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 3834 | ac_status=$? |
cbdd3138 BM |
3835 | grep -v '^ *+' conftest.er1 >conftest.err |
3836 | rm -f conftest.er1 | |
3837 | cat conftest.err >&5 | |
f69335e6 | 3838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3839 | (exit $ac_status); } && | |
64b46a71 | 3840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
3841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3842 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
3843 | ac_status=$? |
3844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3845 | (exit $ac_status); }; } && | |
3846 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
3847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3848 | (eval $ac_try) 2>&5 | |
f69335e6 | 3849 | ac_status=$? |
3850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3851 | (exit $ac_status); }; }; then | |
3852 | ac_header_compiler=yes | |
3853 | else | |
3854 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3855 | sed 's/^/| /' conftest.$ac_ext >&5 |
3856 | ||
81ae7da0 | 3857 | ac_header_compiler=no |
f69335e6 | 3858 | fi |
81ae7da0 BM |
3859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3861 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 3862 | |
3863 | # Is the header present? | |
81ae7da0 BM |
3864 | echo "$as_me:$LINENO: checking sys/param.h presence" >&5 |
3865 | echo $ECHO_N "checking sys/param.h presence... $ECHO_C" >&6 | |
f69335e6 | 3866 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
3867 | /* confdefs.h. */ |
3868 | _ACEOF | |
3869 | cat confdefs.h >>conftest.$ac_ext | |
3870 | cat >>conftest.$ac_ext <<_ACEOF | |
3871 | /* end confdefs.h. */ | |
f40ec73c | 3872 | #include <sys/param.h> |
f69335e6 | 3873 | _ACEOF |
81ae7da0 BM |
3874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 3876 | ac_status=$? |
cbdd3138 | 3877 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 3878 | rm -f conftest.er1 |
3879 | cat conftest.err >&5 | |
3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3881 | (exit $ac_status); } >/dev/null; then | |
3882 | if test -s conftest.err; then | |
3883 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 3884 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 3885 | else |
3886 | ac_cpp_err= | |
3887 | fi | |
3888 | else | |
3889 | ac_cpp_err=yes | |
3890 | fi | |
3891 | if test -z "$ac_cpp_err"; then | |
3892 | ac_header_preproc=yes | |
3893 | else | |
3894 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3895 | sed 's/^/| /' conftest.$ac_ext >&5 |
3896 | ||
f69335e6 | 3897 | ac_header_preproc=no |
3898 | fi | |
3899 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
3900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 3902 | |
3903 | # So? What about this header? | |
cbdd3138 BM |
3904 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3905 | yes:no: ) | |
f69335e6 | 3906 | { echo "$as_me:$LINENO: WARNING: sys/param.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3907 | echo "$as_me: WARNING: sys/param.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
3908 | { echo "$as_me:$LINENO: WARNING: sys/param.h: proceeding with the compiler's result" >&5 |
3909 | echo "$as_me: WARNING: sys/param.h: proceeding with the compiler's result" >&2;} | |
3910 | ac_header_preproc=yes | |
3911 | ;; | |
3912 | no:yes:* ) | |
f69335e6 | 3913 | { echo "$as_me:$LINENO: WARNING: sys/param.h: present but cannot be compiled" >&5 |
3914 | echo "$as_me: WARNING: sys/param.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
3915 | { echo "$as_me:$LINENO: WARNING: sys/param.h: check for missing prerequisite headers?" >&5 |
3916 | echo "$as_me: WARNING: sys/param.h: check for missing prerequisite headers?" >&2;} | |
3917 | { echo "$as_me:$LINENO: WARNING: sys/param.h: see the Autoconf documentation" >&5 | |
3918 | echo "$as_me: WARNING: sys/param.h: see the Autoconf documentation" >&2;} | |
3919 | { echo "$as_me:$LINENO: WARNING: sys/param.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3920 | echo "$as_me: WARNING: sys/param.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 3921 | { echo "$as_me:$LINENO: WARNING: sys/param.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
3922 | echo "$as_me: WARNING: sys/param.h: proceeding with the preprocessor's result" >&2;} |
3923 | { echo "$as_me:$LINENO: WARNING: sys/param.h: in the future, the compiler will take precedence" >&5 | |
3924 | echo "$as_me: WARNING: sys/param.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
3925 | ( |
3926 | cat <<\_ASBOX | |
3927 | ## ------------------------------------------ ## | |
3928 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3929 | ## ------------------------------------------ ## | |
3930 | _ASBOX | |
3931 | ) | | |
3932 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 3933 | ;; |
f69335e6 | 3934 | esac |
81ae7da0 BM |
3935 | echo "$as_me:$LINENO: checking for sys/param.h" >&5 |
3936 | echo $ECHO_N "checking for sys/param.h... $ECHO_C" >&6 | |
f69335e6 | 3937 | if test "${ac_cv_header_sys_param_h+set}" = set; then |
3938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3939 | else | |
3940 | ac_cv_header_sys_param_h=$ac_header_preproc | |
f40ec73c | 3941 | fi |
81ae7da0 BM |
3942 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_param_h" >&5 |
3943 | echo "${ECHO_T}$ac_cv_header_sys_param_h" >&6 | |
f69335e6 | 3944 | |
f40ec73c | 3945 | fi |
f69335e6 | 3946 | if test $ac_cv_header_sys_param_h = yes; then |
3947 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 3948 | #define PARAMH 1 |
f69335e6 | 3949 | _ACEOF |
f40ec73c | 3950 | |
f40ec73c | 3951 | fi |
3952 | ||
f69335e6 | 3953 | |
3954 | if test "${ac_cv_header_stdlib_h+set}" = set; then | |
81ae7da0 BM |
3955 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
3956 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 | |
f69335e6 | 3957 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
3958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3959 | fi | |
81ae7da0 BM |
3960 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
3961 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 | |
f40ec73c | 3962 | else |
f69335e6 | 3963 | # Is the header compilable? |
81ae7da0 BM |
3964 | echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
3965 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 | |
f69335e6 | 3966 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
3967 | /* confdefs.h. */ |
3968 | _ACEOF | |
3969 | cat confdefs.h >>conftest.$ac_ext | |
3970 | cat >>conftest.$ac_ext <<_ACEOF | |
3971 | /* end confdefs.h. */ | |
f69335e6 | 3972 | $ac_includes_default |
3973 | #include <stdlib.h> | |
3974 | _ACEOF | |
3975 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
3976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3977 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 3978 | ac_status=$? |
cbdd3138 BM |
3979 | grep -v '^ *+' conftest.er1 >conftest.err |
3980 | rm -f conftest.er1 | |
3981 | cat conftest.err >&5 | |
f69335e6 | 3982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3983 | (exit $ac_status); } && | |
64b46a71 | 3984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
3985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3986 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
3987 | ac_status=$? |
3988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3989 | (exit $ac_status); }; } && | |
3990 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
3991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3992 | (eval $ac_try) 2>&5 | |
f69335e6 | 3993 | ac_status=$? |
3994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3995 | (exit $ac_status); }; }; then | |
3996 | ac_header_compiler=yes | |
3997 | else | |
3998 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
3999 | sed 's/^/| /' conftest.$ac_ext >&5 |
4000 | ||
81ae7da0 | 4001 | ac_header_compiler=no |
f69335e6 | 4002 | fi |
81ae7da0 BM |
4003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4004 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4005 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 4006 | |
4007 | # Is the header present? | |
81ae7da0 BM |
4008 | echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
4009 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 | |
f69335e6 | 4010 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4011 | /* confdefs.h. */ |
4012 | _ACEOF | |
4013 | cat confdefs.h >>conftest.$ac_ext | |
4014 | cat >>conftest.$ac_ext <<_ACEOF | |
4015 | /* end confdefs.h. */ | |
f40ec73c | 4016 | #include <stdlib.h> |
f69335e6 | 4017 | _ACEOF |
81ae7da0 BM |
4018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 4020 | ac_status=$? |
cbdd3138 | 4021 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 4022 | rm -f conftest.er1 |
4023 | cat conftest.err >&5 | |
4024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4025 | (exit $ac_status); } >/dev/null; then | |
4026 | if test -s conftest.err; then | |
4027 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 4028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 4029 | else |
4030 | ac_cpp_err= | |
4031 | fi | |
4032 | else | |
4033 | ac_cpp_err=yes | |
4034 | fi | |
4035 | if test -z "$ac_cpp_err"; then | |
4036 | ac_header_preproc=yes | |
4037 | else | |
4038 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4039 | sed 's/^/| /' conftest.$ac_ext >&5 |
4040 | ||
f69335e6 | 4041 | ac_header_preproc=no |
4042 | fi | |
4043 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
4044 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4045 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 4046 | |
4047 | # So? What about this header? | |
cbdd3138 BM |
4048 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4049 | yes:no: ) | |
f69335e6 | 4050 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4051 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
4052 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
4053 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} | |
4054 | ac_header_preproc=yes | |
4055 | ;; | |
4056 | no:yes:* ) | |
f69335e6 | 4057 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
4058 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
4059 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
4060 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} | |
4061 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 | |
4062 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} | |
4063 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4064 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 4065 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
4066 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
4067 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 | |
4068 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
4069 | ( |
4070 | cat <<\_ASBOX | |
4071 | ## ------------------------------------------ ## | |
4072 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4073 | ## ------------------------------------------ ## | |
4074 | _ASBOX | |
4075 | ) | | |
4076 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 4077 | ;; |
f69335e6 | 4078 | esac |
81ae7da0 BM |
4079 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
4080 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 | |
f69335e6 | 4081 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4083 | else | |
4084 | ac_cv_header_stdlib_h=$ac_header_preproc | |
f40ec73c | 4085 | fi |
81ae7da0 BM |
4086 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
4087 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 | |
f69335e6 | 4088 | |
f40ec73c | 4089 | fi |
f69335e6 | 4090 | if test $ac_cv_header_stdlib_h = yes; then |
4091 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 4092 | #define STDLIBH 1 |
f69335e6 | 4093 | _ACEOF |
f40ec73c | 4094 | |
f40ec73c | 4095 | fi |
4096 | ||
f69335e6 | 4097 | |
4098 | if test "${ac_cv_header_stddef_h+set}" = set; then | |
81ae7da0 BM |
4099 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
4100 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 | |
f69335e6 | 4101 | if test "${ac_cv_header_stddef_h+set}" = set; then |
4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4103 | fi | |
81ae7da0 BM |
4104 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
4105 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 | |
f40ec73c | 4106 | else |
f69335e6 | 4107 | # Is the header compilable? |
81ae7da0 BM |
4108 | echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
4109 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6 | |
f69335e6 | 4110 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4111 | /* confdefs.h. */ |
4112 | _ACEOF | |
4113 | cat confdefs.h >>conftest.$ac_ext | |
4114 | cat >>conftest.$ac_ext <<_ACEOF | |
4115 | /* end confdefs.h. */ | |
f69335e6 | 4116 | $ac_includes_default |
4117 | #include <stddef.h> | |
4118 | _ACEOF | |
4119 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
4120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4121 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 4122 | ac_status=$? |
cbdd3138 BM |
4123 | grep -v '^ *+' conftest.er1 >conftest.err |
4124 | rm -f conftest.er1 | |
4125 | cat conftest.err >&5 | |
f69335e6 | 4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4127 | (exit $ac_status); } && | |
64b46a71 | 4128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
4129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4130 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
4131 | ac_status=$? |
4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4133 | (exit $ac_status); }; } && | |
4134 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4136 | (eval $ac_try) 2>&5 | |
f69335e6 | 4137 | ac_status=$? |
4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4139 | (exit $ac_status); }; }; then | |
4140 | ac_header_compiler=yes | |
4141 | else | |
4142 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4143 | sed 's/^/| /' conftest.$ac_ext >&5 |
4144 | ||
81ae7da0 | 4145 | ac_header_compiler=no |
f69335e6 | 4146 | fi |
81ae7da0 BM |
4147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4148 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4149 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 4150 | |
4151 | # Is the header present? | |
81ae7da0 BM |
4152 | echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
4153 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6 | |
f69335e6 | 4154 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4155 | /* confdefs.h. */ |
4156 | _ACEOF | |
4157 | cat confdefs.h >>conftest.$ac_ext | |
4158 | cat >>conftest.$ac_ext <<_ACEOF | |
4159 | /* end confdefs.h. */ | |
f40ec73c | 4160 | #include <stddef.h> |
f69335e6 | 4161 | _ACEOF |
81ae7da0 BM |
4162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 4164 | ac_status=$? |
cbdd3138 | 4165 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 4166 | rm -f conftest.er1 |
4167 | cat conftest.err >&5 | |
4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4169 | (exit $ac_status); } >/dev/null; then | |
4170 | if test -s conftest.err; then | |
4171 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 4172 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 4173 | else |
4174 | ac_cpp_err= | |
4175 | fi | |
4176 | else | |
4177 | ac_cpp_err=yes | |
4178 | fi | |
4179 | if test -z "$ac_cpp_err"; then | |
4180 | ac_header_preproc=yes | |
4181 | else | |
4182 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4183 | sed 's/^/| /' conftest.$ac_ext >&5 |
4184 | ||
f69335e6 | 4185 | ac_header_preproc=no |
4186 | fi | |
4187 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
4188 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4189 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 4190 | |
4191 | # So? What about this header? | |
cbdd3138 BM |
4192 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4193 | yes:no: ) | |
f69335e6 | 4194 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4195 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
4196 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
4197 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} | |
4198 | ac_header_preproc=yes | |
4199 | ;; | |
4200 | no:yes:* ) | |
f69335e6 | 4201 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
4202 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
4203 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
4204 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} | |
4205 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 | |
4206 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} | |
4207 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4208 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 4209 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
4210 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
4211 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 | |
4212 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
4213 | ( |
4214 | cat <<\_ASBOX | |
4215 | ## ------------------------------------------ ## | |
4216 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4217 | ## ------------------------------------------ ## | |
4218 | _ASBOX | |
4219 | ) | | |
4220 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 4221 | ;; |
f69335e6 | 4222 | esac |
81ae7da0 BM |
4223 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
4224 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 | |
f69335e6 | 4225 | if test "${ac_cv_header_stddef_h+set}" = set; then |
4226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4227 | else | |
4228 | ac_cv_header_stddef_h=$ac_header_preproc | |
f40ec73c | 4229 | fi |
81ae7da0 BM |
4230 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
4231 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 | |
f69335e6 | 4232 | |
f40ec73c | 4233 | fi |
f69335e6 | 4234 | if test $ac_cv_header_stddef_h = yes; then |
4235 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 4236 | #define STDDEFH 1 |
f69335e6 | 4237 | _ACEOF |
f40ec73c | 4238 | |
f40ec73c | 4239 | fi |
4240 | ||
f69335e6 | 4241 | |
4242 | if test "${ac_cv_header_sys_syslog_h+set}" = set; then | |
81ae7da0 BM |
4243 | echo "$as_me:$LINENO: checking for sys/syslog.h" >&5 |
4244 | echo $ECHO_N "checking for sys/syslog.h... $ECHO_C" >&6 | |
f69335e6 | 4245 | if test "${ac_cv_header_sys_syslog_h+set}" = set; then |
4246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4247 | fi | |
81ae7da0 BM |
4248 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_syslog_h" >&5 |
4249 | echo "${ECHO_T}$ac_cv_header_sys_syslog_h" >&6 | |
f40ec73c | 4250 | else |
f69335e6 | 4251 | # Is the header compilable? |
81ae7da0 BM |
4252 | echo "$as_me:$LINENO: checking sys/syslog.h usability" >&5 |
4253 | echo $ECHO_N "checking sys/syslog.h usability... $ECHO_C" >&6 | |
f69335e6 | 4254 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4255 | /* confdefs.h. */ |
4256 | _ACEOF | |
4257 | cat confdefs.h >>conftest.$ac_ext | |
4258 | cat >>conftest.$ac_ext <<_ACEOF | |
4259 | /* end confdefs.h. */ | |
f69335e6 | 4260 | $ac_includes_default |
4261 | #include <sys/syslog.h> | |
4262 | _ACEOF | |
4263 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
4264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4265 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 4266 | ac_status=$? |
cbdd3138 BM |
4267 | grep -v '^ *+' conftest.er1 >conftest.err |
4268 | rm -f conftest.er1 | |
4269 | cat conftest.err >&5 | |
f69335e6 | 4270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4271 | (exit $ac_status); } && | |
64b46a71 | 4272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
4273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4274 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
4275 | ac_status=$? |
4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4277 | (exit $ac_status); }; } && | |
4278 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
4279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4280 | (eval $ac_try) 2>&5 | |
f69335e6 | 4281 | ac_status=$? |
4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4283 | (exit $ac_status); }; }; then | |
4284 | ac_header_compiler=yes | |
4285 | else | |
4286 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4287 | sed 's/^/| /' conftest.$ac_ext >&5 |
4288 | ||
81ae7da0 | 4289 | ac_header_compiler=no |
f69335e6 | 4290 | fi |
81ae7da0 BM |
4291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4292 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4293 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 4294 | |
4295 | # Is the header present? | |
81ae7da0 BM |
4296 | echo "$as_me:$LINENO: checking sys/syslog.h presence" >&5 |
4297 | echo $ECHO_N "checking sys/syslog.h presence... $ECHO_C" >&6 | |
f69335e6 | 4298 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4299 | /* confdefs.h. */ |
4300 | _ACEOF | |
4301 | cat confdefs.h >>conftest.$ac_ext | |
4302 | cat >>conftest.$ac_ext <<_ACEOF | |
4303 | /* end confdefs.h. */ | |
f40ec73c | 4304 | #include <sys/syslog.h> |
f69335e6 | 4305 | _ACEOF |
81ae7da0 BM |
4306 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4307 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 4308 | ac_status=$? |
cbdd3138 | 4309 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 4310 | rm -f conftest.er1 |
4311 | cat conftest.err >&5 | |
4312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4313 | (exit $ac_status); } >/dev/null; then | |
4314 | if test -s conftest.err; then | |
4315 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 4316 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 4317 | else |
4318 | ac_cpp_err= | |
4319 | fi | |
4320 | else | |
4321 | ac_cpp_err=yes | |
4322 | fi | |
4323 | if test -z "$ac_cpp_err"; then | |
4324 | ac_header_preproc=yes | |
4325 | else | |
4326 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4327 | sed 's/^/| /' conftest.$ac_ext >&5 |
4328 | ||
f69335e6 | 4329 | ac_header_preproc=no |
4330 | fi | |
4331 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
4332 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4333 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 4334 | |
4335 | # So? What about this header? | |
cbdd3138 BM |
4336 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4337 | yes:no: ) | |
f69335e6 | 4338 | { echo "$as_me:$LINENO: WARNING: sys/syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4339 | echo "$as_me: WARNING: sys/syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
4340 | { echo "$as_me:$LINENO: WARNING: sys/syslog.h: proceeding with the compiler's result" >&5 |
4341 | echo "$as_me: WARNING: sys/syslog.h: proceeding with the compiler's result" >&2;} | |
4342 | ac_header_preproc=yes | |
4343 | ;; | |
4344 | no:yes:* ) | |
f69335e6 | 4345 | { echo "$as_me:$LINENO: WARNING: sys/syslog.h: present but cannot be compiled" >&5 |
4346 | echo "$as_me: WARNING: sys/syslog.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
4347 | { echo "$as_me:$LINENO: WARNING: sys/syslog.h: check for missing prerequisite headers?" >&5 |
4348 | echo "$as_me: WARNING: sys/syslog.h: check for missing prerequisite headers?" >&2;} | |
4349 | { echo "$as_me:$LINENO: WARNING: sys/syslog.h: see the Autoconf documentation" >&5 | |
4350 | echo "$as_me: WARNING: sys/syslog.h: see the Autoconf documentation" >&2;} | |
4351 | { echo "$as_me:$LINENO: WARNING: sys/syslog.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4352 | echo "$as_me: WARNING: sys/syslog.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 4353 | { echo "$as_me:$LINENO: WARNING: sys/syslog.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
4354 | echo "$as_me: WARNING: sys/syslog.h: proceeding with the preprocessor's result" >&2;} |
4355 | { echo "$as_me:$LINENO: WARNING: sys/syslog.h: in the future, the compiler will take precedence" >&5 | |
4356 | echo "$as_me: WARNING: sys/syslog.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
4357 | ( |
4358 | cat <<\_ASBOX | |
4359 | ## ------------------------------------------ ## | |
4360 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4361 | ## ------------------------------------------ ## | |
4362 | _ASBOX | |
4363 | ) | | |
4364 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 4365 | ;; |
f69335e6 | 4366 | esac |
81ae7da0 BM |
4367 | echo "$as_me:$LINENO: checking for sys/syslog.h" >&5 |
4368 | echo $ECHO_N "checking for sys/syslog.h... $ECHO_C" >&6 | |
f69335e6 | 4369 | if test "${ac_cv_header_sys_syslog_h+set}" = set; then |
4370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4371 | else | |
4372 | ac_cv_header_sys_syslog_h=$ac_header_preproc | |
f40ec73c | 4373 | fi |
81ae7da0 BM |
4374 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_syslog_h" >&5 |
4375 | echo "${ECHO_T}$ac_cv_header_sys_syslog_h" >&6 | |
f69335e6 | 4376 | |
f40ec73c | 4377 | fi |
f69335e6 | 4378 | if test $ac_cv_header_sys_syslog_h = yes; then |
4379 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 4380 | #define SYSSYSLOGH 1 |
f69335e6 | 4381 | _ACEOF |
f40ec73c | 4382 | |
f40ec73c | 4383 | fi |
4384 | ||
f69335e6 | 4385 | |
4386 | if test "${ac_cv_header_unistd_h+set}" = set; then | |
81ae7da0 BM |
4387 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
4388 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 | |
f69335e6 | 4389 | if test "${ac_cv_header_unistd_h+set}" = set; then |
4390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4391 | fi | |
81ae7da0 BM |
4392 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
4393 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 | |
f40ec73c | 4394 | else |
f69335e6 | 4395 | # Is the header compilable? |
81ae7da0 BM |
4396 | echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
4397 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6 | |
f69335e6 | 4398 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4399 | /* confdefs.h. */ |
4400 | _ACEOF | |
4401 | cat confdefs.h >>conftest.$ac_ext | |
4402 | cat >>conftest.$ac_ext <<_ACEOF | |
4403 | /* end confdefs.h. */ | |
f69335e6 | 4404 | $ac_includes_default |
4405 | #include <unistd.h> | |
4406 | _ACEOF | |
4407 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
4408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4409 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 4410 | ac_status=$? |
cbdd3138 BM |
4411 | grep -v '^ *+' conftest.er1 >conftest.err |
4412 | rm -f conftest.er1 | |
4413 | cat conftest.err >&5 | |
f69335e6 | 4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4415 | (exit $ac_status); } && | |
64b46a71 | 4416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
4417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4418 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
4419 | ac_status=$? |
4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4421 | (exit $ac_status); }; } && | |
4422 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
4423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4424 | (eval $ac_try) 2>&5 | |
f69335e6 | 4425 | ac_status=$? |
4426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4427 | (exit $ac_status); }; }; then | |
4428 | ac_header_compiler=yes | |
4429 | else | |
4430 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4431 | sed 's/^/| /' conftest.$ac_ext >&5 |
4432 | ||
81ae7da0 | 4433 | ac_header_compiler=no |
f69335e6 | 4434 | fi |
81ae7da0 BM |
4435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4436 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4437 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 4438 | |
4439 | # Is the header present? | |
81ae7da0 BM |
4440 | echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
4441 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6 | |
f69335e6 | 4442 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4443 | /* confdefs.h. */ |
4444 | _ACEOF | |
4445 | cat confdefs.h >>conftest.$ac_ext | |
4446 | cat >>conftest.$ac_ext <<_ACEOF | |
4447 | /* end confdefs.h. */ | |
f40ec73c | 4448 | #include <unistd.h> |
f69335e6 | 4449 | _ACEOF |
81ae7da0 BM |
4450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 4452 | ac_status=$? |
cbdd3138 | 4453 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 4454 | rm -f conftest.er1 |
4455 | cat conftest.err >&5 | |
4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4457 | (exit $ac_status); } >/dev/null; then | |
4458 | if test -s conftest.err; then | |
4459 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 4460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 4461 | else |
4462 | ac_cpp_err= | |
4463 | fi | |
4464 | else | |
4465 | ac_cpp_err=yes | |
4466 | fi | |
4467 | if test -z "$ac_cpp_err"; then | |
4468 | ac_header_preproc=yes | |
4469 | else | |
4470 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4471 | sed 's/^/| /' conftest.$ac_ext >&5 |
4472 | ||
f69335e6 | 4473 | ac_header_preproc=no |
4474 | fi | |
4475 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
4476 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4477 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 4478 | |
4479 | # So? What about this header? | |
cbdd3138 BM |
4480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4481 | yes:no: ) | |
f69335e6 | 4482 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4483 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
4484 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
4485 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} | |
4486 | ac_header_preproc=yes | |
4487 | ;; | |
4488 | no:yes:* ) | |
f69335e6 | 4489 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
4490 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
4491 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
4492 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} | |
4493 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 | |
4494 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} | |
4495 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4496 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 4497 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
4498 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
4499 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 | |
4500 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
4501 | ( |
4502 | cat <<\_ASBOX | |
4503 | ## ------------------------------------------ ## | |
4504 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4505 | ## ------------------------------------------ ## | |
4506 | _ASBOX | |
4507 | ) | | |
4508 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 4509 | ;; |
f69335e6 | 4510 | esac |
81ae7da0 BM |
4511 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
4512 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 | |
f69335e6 | 4513 | if test "${ac_cv_header_unistd_h+set}" = set; then |
4514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4515 | else | |
4516 | ac_cv_header_unistd_h=$ac_header_preproc | |
f40ec73c | 4517 | fi |
81ae7da0 BM |
4518 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
4519 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 | |
f69335e6 | 4520 | |
f40ec73c | 4521 | fi |
f69335e6 | 4522 | if test $ac_cv_header_unistd_h = yes; then |
4523 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 4524 | #define UNISTDH 1 |
f69335e6 | 4525 | _ACEOF |
f40ec73c | 4526 | |
f40ec73c | 4527 | fi |
4528 | ||
f69335e6 | 4529 | |
4530 | if test "${ac_cv_header_string_h+set}" = set; then | |
81ae7da0 BM |
4531 | echo "$as_me:$LINENO: checking for string.h" >&5 |
4532 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 | |
f69335e6 | 4533 | if test "${ac_cv_header_string_h+set}" = set; then |
4534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4535 | fi | |
81ae7da0 BM |
4536 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
4537 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 | |
f40ec73c | 4538 | else |
f69335e6 | 4539 | # Is the header compilable? |
81ae7da0 BM |
4540 | echo "$as_me:$LINENO: checking string.h usability" >&5 |
4541 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 | |
f69335e6 | 4542 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4543 | /* confdefs.h. */ |
4544 | _ACEOF | |
4545 | cat confdefs.h >>conftest.$ac_ext | |
4546 | cat >>conftest.$ac_ext <<_ACEOF | |
4547 | /* end confdefs.h. */ | |
f69335e6 | 4548 | $ac_includes_default |
4549 | #include <string.h> | |
4550 | _ACEOF | |
4551 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
4552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4553 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 4554 | ac_status=$? |
cbdd3138 BM |
4555 | grep -v '^ *+' conftest.er1 >conftest.err |
4556 | rm -f conftest.er1 | |
4557 | cat conftest.err >&5 | |
f69335e6 | 4558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4559 | (exit $ac_status); } && | |
64b46a71 | 4560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
4561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4562 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
4563 | ac_status=$? |
4564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4565 | (exit $ac_status); }; } && | |
4566 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
4567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4568 | (eval $ac_try) 2>&5 | |
f69335e6 | 4569 | ac_status=$? |
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4571 | (exit $ac_status); }; }; then | |
4572 | ac_header_compiler=yes | |
4573 | else | |
4574 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4575 | sed 's/^/| /' conftest.$ac_ext >&5 |
4576 | ||
81ae7da0 | 4577 | ac_header_compiler=no |
f69335e6 | 4578 | fi |
81ae7da0 BM |
4579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4580 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4581 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 4582 | |
4583 | # Is the header present? | |
81ae7da0 BM |
4584 | echo "$as_me:$LINENO: checking string.h presence" >&5 |
4585 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 | |
f69335e6 | 4586 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4587 | /* confdefs.h. */ |
4588 | _ACEOF | |
4589 | cat confdefs.h >>conftest.$ac_ext | |
4590 | cat >>conftest.$ac_ext <<_ACEOF | |
4591 | /* end confdefs.h. */ | |
f40ec73c | 4592 | #include <string.h> |
f69335e6 | 4593 | _ACEOF |
81ae7da0 BM |
4594 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4595 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 4596 | ac_status=$? |
cbdd3138 | 4597 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 4598 | rm -f conftest.er1 |
4599 | cat conftest.err >&5 | |
4600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4601 | (exit $ac_status); } >/dev/null; then | |
4602 | if test -s conftest.err; then | |
4603 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 4604 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 4605 | else |
4606 | ac_cpp_err= | |
4607 | fi | |
4608 | else | |
4609 | ac_cpp_err=yes | |
4610 | fi | |
4611 | if test -z "$ac_cpp_err"; then | |
4612 | ac_header_preproc=yes | |
4613 | else | |
4614 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4615 | sed 's/^/| /' conftest.$ac_ext >&5 |
4616 | ||
f69335e6 | 4617 | ac_header_preproc=no |
4618 | fi | |
4619 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
4620 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4621 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 4622 | |
4623 | # So? What about this header? | |
cbdd3138 BM |
4624 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4625 | yes:no: ) | |
f69335e6 | 4626 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4627 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
4628 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
4629 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} | |
4630 | ac_header_preproc=yes | |
4631 | ;; | |
4632 | no:yes:* ) | |
f69335e6 | 4633 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
4634 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
4635 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
4636 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} | |
4637 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 | |
4638 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} | |
4639 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4640 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 4641 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
4642 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
4643 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 | |
4644 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
4645 | ( |
4646 | cat <<\_ASBOX | |
4647 | ## ------------------------------------------ ## | |
4648 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4649 | ## ------------------------------------------ ## | |
4650 | _ASBOX | |
4651 | ) | | |
4652 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 4653 | ;; |
f69335e6 | 4654 | esac |
81ae7da0 BM |
4655 | echo "$as_me:$LINENO: checking for string.h" >&5 |
4656 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 | |
f69335e6 | 4657 | if test "${ac_cv_header_string_h+set}" = set; then |
4658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4659 | else | |
4660 | ac_cv_header_string_h=$ac_header_preproc | |
f40ec73c | 4661 | fi |
81ae7da0 BM |
4662 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
4663 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 | |
f69335e6 | 4664 | |
f40ec73c | 4665 | fi |
f69335e6 | 4666 | if test $ac_cv_header_string_h = yes; then |
4667 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 4668 | #define STRINGH 1 |
f69335e6 | 4669 | _ACEOF |
f40ec73c | 4670 | |
f40ec73c | 4671 | fi |
4672 | ||
f69335e6 | 4673 | |
4674 | if test "${ac_cv_header_strings_h+set}" = set; then | |
81ae7da0 BM |
4675 | echo "$as_me:$LINENO: checking for strings.h" >&5 |
4676 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
f69335e6 | 4677 | if test "${ac_cv_header_strings_h+set}" = set; then |
4678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4679 | fi | |
81ae7da0 BM |
4680 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 |
4681 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
f40ec73c | 4682 | else |
f69335e6 | 4683 | # Is the header compilable? |
81ae7da0 BM |
4684 | echo "$as_me:$LINENO: checking strings.h usability" >&5 |
4685 | echo $ECHO_N "checking strings.h usability... $ECHO_C" >&6 | |
f69335e6 | 4686 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4687 | /* confdefs.h. */ |
4688 | _ACEOF | |
4689 | cat confdefs.h >>conftest.$ac_ext | |
4690 | cat >>conftest.$ac_ext <<_ACEOF | |
4691 | /* end confdefs.h. */ | |
f69335e6 | 4692 | $ac_includes_default |
4693 | #include <strings.h> | |
4694 | _ACEOF | |
4695 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
4696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4697 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 4698 | ac_status=$? |
cbdd3138 BM |
4699 | grep -v '^ *+' conftest.er1 >conftest.err |
4700 | rm -f conftest.er1 | |
4701 | cat conftest.err >&5 | |
f69335e6 | 4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4703 | (exit $ac_status); } && | |
64b46a71 | 4704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
4705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4706 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
4707 | ac_status=$? |
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4709 | (exit $ac_status); }; } && | |
4710 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
4711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4712 | (eval $ac_try) 2>&5 | |
f69335e6 | 4713 | ac_status=$? |
4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4715 | (exit $ac_status); }; }; then | |
4716 | ac_header_compiler=yes | |
4717 | else | |
4718 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4719 | sed 's/^/| /' conftest.$ac_ext >&5 |
4720 | ||
81ae7da0 | 4721 | ac_header_compiler=no |
f69335e6 | 4722 | fi |
81ae7da0 BM |
4723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4724 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4725 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 4726 | |
4727 | # Is the header present? | |
81ae7da0 BM |
4728 | echo "$as_me:$LINENO: checking strings.h presence" >&5 |
4729 | echo $ECHO_N "checking strings.h presence... $ECHO_C" >&6 | |
f69335e6 | 4730 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4731 | /* confdefs.h. */ |
4732 | _ACEOF | |
4733 | cat confdefs.h >>conftest.$ac_ext | |
4734 | cat >>conftest.$ac_ext <<_ACEOF | |
4735 | /* end confdefs.h. */ | |
f40ec73c | 4736 | #include <strings.h> |
f69335e6 | 4737 | _ACEOF |
81ae7da0 BM |
4738 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4739 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 4740 | ac_status=$? |
cbdd3138 | 4741 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 4742 | rm -f conftest.er1 |
4743 | cat conftest.err >&5 | |
4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4745 | (exit $ac_status); } >/dev/null; then | |
4746 | if test -s conftest.err; then | |
4747 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 4748 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 4749 | else |
4750 | ac_cpp_err= | |
4751 | fi | |
4752 | else | |
4753 | ac_cpp_err=yes | |
4754 | fi | |
4755 | if test -z "$ac_cpp_err"; then | |
4756 | ac_header_preproc=yes | |
4757 | else | |
4758 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4759 | sed 's/^/| /' conftest.$ac_ext >&5 |
4760 | ||
f69335e6 | 4761 | ac_header_preproc=no |
4762 | fi | |
4763 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
4764 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4765 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 4766 | |
4767 | # So? What about this header? | |
cbdd3138 BM |
4768 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4769 | yes:no: ) | |
f69335e6 | 4770 | { echo "$as_me:$LINENO: WARNING: strings.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4771 | echo "$as_me: WARNING: strings.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
4772 | { echo "$as_me:$LINENO: WARNING: strings.h: proceeding with the compiler's result" >&5 |
4773 | echo "$as_me: WARNING: strings.h: proceeding with the compiler's result" >&2;} | |
4774 | ac_header_preproc=yes | |
4775 | ;; | |
4776 | no:yes:* ) | |
f69335e6 | 4777 | { echo "$as_me:$LINENO: WARNING: strings.h: present but cannot be compiled" >&5 |
4778 | echo "$as_me: WARNING: strings.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
4779 | { echo "$as_me:$LINENO: WARNING: strings.h: check for missing prerequisite headers?" >&5 |
4780 | echo "$as_me: WARNING: strings.h: check for missing prerequisite headers?" >&2;} | |
4781 | { echo "$as_me:$LINENO: WARNING: strings.h: see the Autoconf documentation" >&5 | |
4782 | echo "$as_me: WARNING: strings.h: see the Autoconf documentation" >&2;} | |
4783 | { echo "$as_me:$LINENO: WARNING: strings.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4784 | echo "$as_me: WARNING: strings.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 4785 | { echo "$as_me:$LINENO: WARNING: strings.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
4786 | echo "$as_me: WARNING: strings.h: proceeding with the preprocessor's result" >&2;} |
4787 | { echo "$as_me:$LINENO: WARNING: strings.h: in the future, the compiler will take precedence" >&5 | |
4788 | echo "$as_me: WARNING: strings.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
4789 | ( |
4790 | cat <<\_ASBOX | |
4791 | ## ------------------------------------------ ## | |
4792 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4793 | ## ------------------------------------------ ## | |
4794 | _ASBOX | |
4795 | ) | | |
4796 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 4797 | ;; |
f69335e6 | 4798 | esac |
81ae7da0 BM |
4799 | echo "$as_me:$LINENO: checking for strings.h" >&5 |
4800 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
f69335e6 | 4801 | if test "${ac_cv_header_strings_h+set}" = set; then |
4802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4803 | else | |
4804 | ac_cv_header_strings_h=$ac_header_preproc | |
f40ec73c | 4805 | fi |
81ae7da0 BM |
4806 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 |
4807 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
f69335e6 | 4808 | |
f40ec73c | 4809 | fi |
f69335e6 | 4810 | if test $ac_cv_header_strings_h = yes; then |
4811 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 4812 | #define STRINGSH 1 |
f69335e6 | 4813 | _ACEOF |
f40ec73c | 4814 | |
f40ec73c | 4815 | fi |
4816 | ||
f69335e6 | 4817 | |
f69335e6 | 4818 | if test "${ac_cv_header_malloc_h+set}" = set; then |
81ae7da0 BM |
4819 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
4820 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 | |
f69335e6 | 4821 | if test "${ac_cv_header_malloc_h+set}" = set; then |
4822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4823 | fi | |
81ae7da0 BM |
4824 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
4825 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 | |
f40ec73c | 4826 | else |
f69335e6 | 4827 | # Is the header compilable? |
81ae7da0 BM |
4828 | echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
4829 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6 | |
f69335e6 | 4830 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4831 | /* confdefs.h. */ |
4832 | _ACEOF | |
4833 | cat confdefs.h >>conftest.$ac_ext | |
4834 | cat >>conftest.$ac_ext <<_ACEOF | |
4835 | /* end confdefs.h. */ | |
f69335e6 | 4836 | $ac_includes_default |
4837 | #include <malloc.h> | |
4838 | _ACEOF | |
4839 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
4840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4841 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 4842 | ac_status=$? |
cbdd3138 BM |
4843 | grep -v '^ *+' conftest.er1 >conftest.err |
4844 | rm -f conftest.er1 | |
4845 | cat conftest.err >&5 | |
f69335e6 | 4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4847 | (exit $ac_status); } && | |
64b46a71 | 4848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
4849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4850 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
4851 | ac_status=$? |
4852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4853 | (exit $ac_status); }; } && | |
4854 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
4855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4856 | (eval $ac_try) 2>&5 | |
f69335e6 | 4857 | ac_status=$? |
4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4859 | (exit $ac_status); }; }; then | |
4860 | ac_header_compiler=yes | |
4861 | else | |
4862 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4863 | sed 's/^/| /' conftest.$ac_ext >&5 |
4864 | ||
81ae7da0 | 4865 | ac_header_compiler=no |
f69335e6 | 4866 | fi |
81ae7da0 BM |
4867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4868 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4869 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 4870 | |
4871 | # Is the header present? | |
81ae7da0 BM |
4872 | echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
4873 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6 | |
f69335e6 | 4874 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4875 | /* confdefs.h. */ |
4876 | _ACEOF | |
4877 | cat confdefs.h >>conftest.$ac_ext | |
4878 | cat >>conftest.$ac_ext <<_ACEOF | |
4879 | /* end confdefs.h. */ | |
f40ec73c | 4880 | #include <malloc.h> |
f69335e6 | 4881 | _ACEOF |
81ae7da0 BM |
4882 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4883 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 4884 | ac_status=$? |
cbdd3138 | 4885 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 4886 | rm -f conftest.er1 |
4887 | cat conftest.err >&5 | |
4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4889 | (exit $ac_status); } >/dev/null; then | |
4890 | if test -s conftest.err; then | |
4891 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 4892 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 4893 | else |
4894 | ac_cpp_err= | |
4895 | fi | |
4896 | else | |
4897 | ac_cpp_err=yes | |
4898 | fi | |
4899 | if test -z "$ac_cpp_err"; then | |
4900 | ac_header_preproc=yes | |
4901 | else | |
4902 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
4903 | sed 's/^/| /' conftest.$ac_ext >&5 |
4904 | ||
f69335e6 | 4905 | ac_header_preproc=no |
4906 | fi | |
4907 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
4908 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4909 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 4910 | |
4911 | # So? What about this header? | |
cbdd3138 BM |
4912 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4913 | yes:no: ) | |
f69335e6 | 4914 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4915 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
4916 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
4917 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} | |
4918 | ac_header_preproc=yes | |
4919 | ;; | |
4920 | no:yes:* ) | |
f69335e6 | 4921 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
4922 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
4923 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
4924 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} | |
4925 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 | |
4926 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} | |
4927 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4928 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 4929 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
4930 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
4931 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 | |
4932 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
4933 | ( |
4934 | cat <<\_ASBOX | |
4935 | ## ------------------------------------------ ## | |
4936 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4937 | ## ------------------------------------------ ## | |
4938 | _ASBOX | |
4939 | ) | | |
4940 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 4941 | ;; |
f69335e6 | 4942 | esac |
81ae7da0 BM |
4943 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
4944 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 | |
f69335e6 | 4945 | if test "${ac_cv_header_malloc_h+set}" = set; then |
4946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4947 | else | |
4948 | ac_cv_header_malloc_h=$ac_header_preproc | |
f40ec73c | 4949 | fi |
81ae7da0 BM |
4950 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
4951 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 | |
f69335e6 | 4952 | |
f40ec73c | 4953 | fi |
f69335e6 | 4954 | if test $ac_cv_header_malloc_h = yes; then |
4955 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 4956 | #define MALLOCH <malloc.h> |
f69335e6 | 4957 | _ACEOF |
f40ec73c | 4958 | |
f40ec73c | 4959 | fi |
4960 | ||
f69335e6 | 4961 | |
4962 | if test "${ac_cv_header_sys_rusage_h+set}" = set; then | |
81ae7da0 BM |
4963 | echo "$as_me:$LINENO: checking for sys/rusage.h" >&5 |
4964 | echo $ECHO_N "checking for sys/rusage.h... $ECHO_C" >&6 | |
f69335e6 | 4965 | if test "${ac_cv_header_sys_rusage_h+set}" = set; then |
4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4967 | fi | |
81ae7da0 BM |
4968 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_rusage_h" >&5 |
4969 | echo "${ECHO_T}$ac_cv_header_sys_rusage_h" >&6 | |
f40ec73c | 4970 | else |
f69335e6 | 4971 | # Is the header compilable? |
81ae7da0 BM |
4972 | echo "$as_me:$LINENO: checking sys/rusage.h usability" >&5 |
4973 | echo $ECHO_N "checking sys/rusage.h usability... $ECHO_C" >&6 | |
f69335e6 | 4974 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
4975 | /* confdefs.h. */ |
4976 | _ACEOF | |
4977 | cat confdefs.h >>conftest.$ac_ext | |
4978 | cat >>conftest.$ac_ext <<_ACEOF | |
4979 | /* end confdefs.h. */ | |
f69335e6 | 4980 | $ac_includes_default |
4981 | #include <sys/rusage.h> | |
4982 | _ACEOF | |
4983 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
4984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4985 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 4986 | ac_status=$? |
cbdd3138 BM |
4987 | grep -v '^ *+' conftest.er1 >conftest.err |
4988 | rm -f conftest.er1 | |
4989 | cat conftest.err >&5 | |
f69335e6 | 4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4991 | (exit $ac_status); } && | |
64b46a71 | 4992 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
4993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4994 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
4995 | ac_status=$? |
4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4997 | (exit $ac_status); }; } && | |
4998 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
4999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5000 | (eval $ac_try) 2>&5 | |
f69335e6 | 5001 | ac_status=$? |
5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5003 | (exit $ac_status); }; }; then | |
5004 | ac_header_compiler=yes | |
5005 | else | |
5006 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5007 | sed 's/^/| /' conftest.$ac_ext >&5 |
5008 | ||
81ae7da0 | 5009 | ac_header_compiler=no |
f69335e6 | 5010 | fi |
81ae7da0 BM |
5011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5012 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5013 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 5014 | |
5015 | # Is the header present? | |
81ae7da0 BM |
5016 | echo "$as_me:$LINENO: checking sys/rusage.h presence" >&5 |
5017 | echo $ECHO_N "checking sys/rusage.h presence... $ECHO_C" >&6 | |
f69335e6 | 5018 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
5019 | /* confdefs.h. */ |
5020 | _ACEOF | |
5021 | cat confdefs.h >>conftest.$ac_ext | |
5022 | cat >>conftest.$ac_ext <<_ACEOF | |
5023 | /* end confdefs.h. */ | |
f40ec73c | 5024 | #include <sys/rusage.h> |
f69335e6 | 5025 | _ACEOF |
81ae7da0 BM |
5026 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5027 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 5028 | ac_status=$? |
cbdd3138 | 5029 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 5030 | rm -f conftest.er1 |
5031 | cat conftest.err >&5 | |
5032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5033 | (exit $ac_status); } >/dev/null; then | |
5034 | if test -s conftest.err; then | |
5035 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 5036 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 5037 | else |
5038 | ac_cpp_err= | |
5039 | fi | |
5040 | else | |
5041 | ac_cpp_err=yes | |
5042 | fi | |
5043 | if test -z "$ac_cpp_err"; then | |
5044 | ac_header_preproc=yes | |
5045 | else | |
5046 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5047 | sed 's/^/| /' conftest.$ac_ext >&5 |
5048 | ||
f69335e6 | 5049 | ac_header_preproc=no |
5050 | fi | |
5051 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
5052 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5053 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 5054 | |
5055 | # So? What about this header? | |
cbdd3138 BM |
5056 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5057 | yes:no: ) | |
f69335e6 | 5058 | { echo "$as_me:$LINENO: WARNING: sys/rusage.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
5059 | echo "$as_me: WARNING: sys/rusage.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
5060 | { echo "$as_me:$LINENO: WARNING: sys/rusage.h: proceeding with the compiler's result" >&5 |
5061 | echo "$as_me: WARNING: sys/rusage.h: proceeding with the compiler's result" >&2;} | |
5062 | ac_header_preproc=yes | |
5063 | ;; | |
5064 | no:yes:* ) | |
f69335e6 | 5065 | { echo "$as_me:$LINENO: WARNING: sys/rusage.h: present but cannot be compiled" >&5 |
5066 | echo "$as_me: WARNING: sys/rusage.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
5067 | { echo "$as_me:$LINENO: WARNING: sys/rusage.h: check for missing prerequisite headers?" >&5 |
5068 | echo "$as_me: WARNING: sys/rusage.h: check for missing prerequisite headers?" >&2;} | |
5069 | { echo "$as_me:$LINENO: WARNING: sys/rusage.h: see the Autoconf documentation" >&5 | |
5070 | echo "$as_me: WARNING: sys/rusage.h: see the Autoconf documentation" >&2;} | |
5071 | { echo "$as_me:$LINENO: WARNING: sys/rusage.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5072 | echo "$as_me: WARNING: sys/rusage.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 5073 | { echo "$as_me:$LINENO: WARNING: sys/rusage.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
5074 | echo "$as_me: WARNING: sys/rusage.h: proceeding with the preprocessor's result" >&2;} |
5075 | { echo "$as_me:$LINENO: WARNING: sys/rusage.h: in the future, the compiler will take precedence" >&5 | |
5076 | echo "$as_me: WARNING: sys/rusage.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
5077 | ( |
5078 | cat <<\_ASBOX | |
5079 | ## ------------------------------------------ ## | |
5080 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5081 | ## ------------------------------------------ ## | |
5082 | _ASBOX | |
5083 | ) | | |
5084 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 5085 | ;; |
f69335e6 | 5086 | esac |
81ae7da0 BM |
5087 | echo "$as_me:$LINENO: checking for sys/rusage.h" >&5 |
5088 | echo $ECHO_N "checking for sys/rusage.h... $ECHO_C" >&6 | |
f69335e6 | 5089 | if test "${ac_cv_header_sys_rusage_h+set}" = set; then |
5090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5091 | else | |
5092 | ac_cv_header_sys_rusage_h=$ac_header_preproc | |
f40ec73c | 5093 | fi |
81ae7da0 BM |
5094 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_rusage_h" >&5 |
5095 | echo "${ECHO_T}$ac_cv_header_sys_rusage_h" >&6 | |
f69335e6 | 5096 | |
f40ec73c | 5097 | fi |
f69335e6 | 5098 | if test $ac_cv_header_sys_rusage_h = yes; then |
5099 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 5100 | #define RUSAGEH 1 |
f69335e6 | 5101 | _ACEOF |
f40ec73c | 5102 | |
f40ec73c | 5103 | fi |
5104 | ||
f69335e6 | 5105 | |
5106 | if test "${ac_cv_header_glob_h+set}" = set; then | |
81ae7da0 BM |
5107 | echo "$as_me:$LINENO: checking for glob.h" >&5 |
5108 | echo $ECHO_N "checking for glob.h... $ECHO_C" >&6 | |
f69335e6 | 5109 | if test "${ac_cv_header_glob_h+set}" = set; then |
5110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5111 | fi | |
81ae7da0 BM |
5112 | echo "$as_me:$LINENO: result: $ac_cv_header_glob_h" >&5 |
5113 | echo "${ECHO_T}$ac_cv_header_glob_h" >&6 | |
e03c2382 | 5114 | else |
f69335e6 | 5115 | # Is the header compilable? |
81ae7da0 BM |
5116 | echo "$as_me:$LINENO: checking glob.h usability" >&5 |
5117 | echo $ECHO_N "checking glob.h usability... $ECHO_C" >&6 | |
f69335e6 | 5118 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
5119 | /* confdefs.h. */ |
5120 | _ACEOF | |
5121 | cat confdefs.h >>conftest.$ac_ext | |
5122 | cat >>conftest.$ac_ext <<_ACEOF | |
5123 | /* end confdefs.h. */ | |
f69335e6 | 5124 | $ac_includes_default |
5125 | #include <glob.h> | |
5126 | _ACEOF | |
5127 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5129 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5130 | ac_status=$? |
cbdd3138 BM |
5131 | grep -v '^ *+' conftest.er1 >conftest.err |
5132 | rm -f conftest.er1 | |
5133 | cat conftest.err >&5 | |
f69335e6 | 5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5135 | (exit $ac_status); } && | |
64b46a71 | 5136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5138 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5139 | ac_status=$? |
5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5141 | (exit $ac_status); }; } && | |
5142 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5144 | (eval $ac_try) 2>&5 | |
f69335e6 | 5145 | ac_status=$? |
5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5147 | (exit $ac_status); }; }; then | |
5148 | ac_header_compiler=yes | |
5149 | else | |
5150 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5151 | sed 's/^/| /' conftest.$ac_ext >&5 |
5152 | ||
81ae7da0 | 5153 | ac_header_compiler=no |
f69335e6 | 5154 | fi |
81ae7da0 BM |
5155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5156 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5157 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f69335e6 | 5158 | |
5159 | # Is the header present? | |
81ae7da0 BM |
5160 | echo "$as_me:$LINENO: checking glob.h presence" >&5 |
5161 | echo $ECHO_N "checking glob.h presence... $ECHO_C" >&6 | |
f69335e6 | 5162 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
5163 | /* confdefs.h. */ |
5164 | _ACEOF | |
5165 | cat confdefs.h >>conftest.$ac_ext | |
5166 | cat >>conftest.$ac_ext <<_ACEOF | |
5167 | /* end confdefs.h. */ | |
e03c2382 | 5168 | #include <glob.h> |
f69335e6 | 5169 | _ACEOF |
81ae7da0 BM |
5170 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5171 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
f69335e6 | 5172 | ac_status=$? |
cbdd3138 | 5173 | grep -v '^ *+' conftest.er1 >conftest.err |
f69335e6 | 5174 | rm -f conftest.er1 |
5175 | cat conftest.err >&5 | |
5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5177 | (exit $ac_status); } >/dev/null; then | |
5178 | if test -s conftest.err; then | |
5179 | ac_cpp_err=$ac_c_preproc_warn_flag | |
cbdd3138 | 5180 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f69335e6 | 5181 | else |
5182 | ac_cpp_err= | |
5183 | fi | |
5184 | else | |
5185 | ac_cpp_err=yes | |
5186 | fi | |
5187 | if test -z "$ac_cpp_err"; then | |
5188 | ac_header_preproc=yes | |
5189 | else | |
5190 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5191 | sed 's/^/| /' conftest.$ac_ext >&5 |
5192 | ||
f69335e6 | 5193 | ac_header_preproc=no |
5194 | fi | |
5195 | rm -f conftest.err conftest.$ac_ext | |
81ae7da0 BM |
5196 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5197 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
f69335e6 | 5198 | |
5199 | # So? What about this header? | |
cbdd3138 BM |
5200 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5201 | yes:no: ) | |
f69335e6 | 5202 | { echo "$as_me:$LINENO: WARNING: glob.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
5203 | echo "$as_me: WARNING: glob.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
cbdd3138 BM |
5204 | { echo "$as_me:$LINENO: WARNING: glob.h: proceeding with the compiler's result" >&5 |
5205 | echo "$as_me: WARNING: glob.h: proceeding with the compiler's result" >&2;} | |
5206 | ac_header_preproc=yes | |
5207 | ;; | |
5208 | no:yes:* ) | |
f69335e6 | 5209 | { echo "$as_me:$LINENO: WARNING: glob.h: present but cannot be compiled" >&5 |
5210 | echo "$as_me: WARNING: glob.h: present but cannot be compiled" >&2;} | |
cbdd3138 BM |
5211 | { echo "$as_me:$LINENO: WARNING: glob.h: check for missing prerequisite headers?" >&5 |
5212 | echo "$as_me: WARNING: glob.h: check for missing prerequisite headers?" >&2;} | |
5213 | { echo "$as_me:$LINENO: WARNING: glob.h: see the Autoconf documentation" >&5 | |
5214 | echo "$as_me: WARNING: glob.h: see the Autoconf documentation" >&2;} | |
5215 | { echo "$as_me:$LINENO: WARNING: glob.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5216 | echo "$as_me: WARNING: glob.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
f69335e6 | 5217 | { echo "$as_me:$LINENO: WARNING: glob.h: proceeding with the preprocessor's result" >&5 |
cbdd3138 BM |
5218 | echo "$as_me: WARNING: glob.h: proceeding with the preprocessor's result" >&2;} |
5219 | { echo "$as_me:$LINENO: WARNING: glob.h: in the future, the compiler will take precedence" >&5 | |
5220 | echo "$as_me: WARNING: glob.h: in the future, the compiler will take precedence" >&2;} | |
81ae7da0 BM |
5221 | ( |
5222 | cat <<\_ASBOX | |
5223 | ## ------------------------------------------ ## | |
5224 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5225 | ## ------------------------------------------ ## | |
5226 | _ASBOX | |
5227 | ) | | |
5228 | sed "s/^/$as_me: WARNING: /" >&2 | |
cbdd3138 | 5229 | ;; |
f69335e6 | 5230 | esac |
81ae7da0 BM |
5231 | echo "$as_me:$LINENO: checking for glob.h" >&5 |
5232 | echo $ECHO_N "checking for glob.h... $ECHO_C" >&6 | |
f69335e6 | 5233 | if test "${ac_cv_header_glob_h+set}" = set; then |
5234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5235 | else | |
5236 | ac_cv_header_glob_h=$ac_header_preproc | |
e03c2382 | 5237 | fi |
81ae7da0 BM |
5238 | echo "$as_me:$LINENO: result: $ac_cv_header_glob_h" >&5 |
5239 | echo "${ECHO_T}$ac_cv_header_glob_h" >&6 | |
f69335e6 | 5240 | |
e03c2382 | 5241 | fi |
f69335e6 | 5242 | if test $ac_cv_header_glob_h = yes; then |
5243 | cat >>confdefs.h <<\_ACEOF | |
e03c2382 | 5244 | #define GLOBH 1 |
f69335e6 | 5245 | _ACEOF |
e03c2382 | 5246 | |
e03c2382 | 5247 | fi |
5248 | ||
f69335e6 | 5249 | |
81ae7da0 BM |
5250 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5251 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
f69335e6 | 5252 | if test "${ac_cv_c_const+set}" = set; then |
5253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5254 | else | |
5255 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
5256 | /* confdefs.h. */ |
5257 | _ACEOF | |
5258 | cat confdefs.h >>conftest.$ac_ext | |
5259 | cat >>conftest.$ac_ext <<_ACEOF | |
5260 | /* end confdefs.h. */ | |
f69335e6 | 5261 | |
f69335e6 | 5262 | int |
5263 | main () | |
5264 | { | |
5265 | /* FIXME: Include the comments suggested by Paul. */ | |
5266 | #ifndef __cplusplus | |
5267 | /* Ultrix mips cc rejects this. */ | |
5268 | typedef int charset[2]; | |
5269 | const charset x; | |
5270 | /* SunOS 4.1.1 cc rejects this. */ | |
5271 | char const *const *ccp; | |
5272 | char **p; | |
5273 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5274 | struct point {int x, y;}; | |
5275 | static struct point const zero = {0,0}; | |
5276 | /* AIX XL C 1.02.0.0 rejects this. | |
5277 | It does not let you subtract one const X* pointer from another in | |
5278 | an arm of an if-expression whose if-part is not a constant | |
5279 | expression */ | |
5280 | const char *g = "string"; | |
5281 | ccp = &g + (g ? g-g : 0); | |
5282 | /* HPUX 7.0 cc rejects these. */ | |
5283 | ++ccp; | |
5284 | p = (char**) ccp; | |
5285 | ccp = (char const *const *) p; | |
5286 | { /* SCO 3.2v4 cc rejects this. */ | |
5287 | char *t; | |
5288 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5289 | ||
5290 | *t++ = 0; | |
5291 | } | |
5292 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5293 | int x[] = {25, 17}; | |
5294 | const int *foo = &x[0]; | |
5295 | ++foo; | |
5296 | } | |
5297 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5298 | typedef const int *iptr; | |
5299 | iptr p = 0; | |
5300 | ++p; | |
5301 | } | |
5302 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5303 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5304 | struct s { int j; const int *ap[3]; }; | |
5305 | struct s *b; b->j = 5; | |
5306 | } | |
5307 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5308 | const int foo = 10; | |
5309 | } | |
5310 | #endif | |
5311 | ||
5312 | ; | |
5313 | return 0; | |
5314 | } | |
5315 | _ACEOF | |
5316 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5318 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5319 | ac_status=$? |
cbdd3138 BM |
5320 | grep -v '^ *+' conftest.er1 >conftest.err |
5321 | rm -f conftest.er1 | |
5322 | cat conftest.err >&5 | |
f69335e6 | 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5324 | (exit $ac_status); } && | |
64b46a71 | 5325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5327 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5328 | ac_status=$? |
5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5330 | (exit $ac_status); }; } && | |
5331 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5333 | (eval $ac_try) 2>&5 | |
f69335e6 | 5334 | ac_status=$? |
5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5336 | (exit $ac_status); }; }; then | |
f40ec73c | 5337 | ac_cv_c_const=yes |
5338 | else | |
f69335e6 | 5339 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
5340 | sed 's/^/| /' conftest.$ac_ext >&5 |
5341 | ||
81ae7da0 | 5342 | ac_cv_c_const=no |
f40ec73c | 5343 | fi |
81ae7da0 | 5344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 5345 | fi |
81ae7da0 BM |
5346 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5347 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
f40ec73c | 5348 | if test $ac_cv_c_const = no; then |
f69335e6 | 5349 | |
5350 | cat >>confdefs.h <<\_ACEOF | |
5351 | #define const | |
5352 | _ACEOF | |
f40ec73c | 5353 | |
5354 | fi | |
5355 | ||
81ae7da0 BM |
5356 | echo "$as_me:$LINENO: checking for inline" >&5 |
5357 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
f69335e6 | 5358 | if test "${ac_cv_c_inline+set}" = set; then |
5359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 5360 | else |
5361 | ac_cv_c_inline=no | |
5362 | for ac_kw in inline __inline__ __inline; do | |
f69335e6 | 5363 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
5364 | /* confdefs.h. */ |
5365 | _ACEOF | |
5366 | cat confdefs.h >>conftest.$ac_ext | |
5367 | cat >>conftest.$ac_ext <<_ACEOF | |
5368 | /* end confdefs.h. */ | |
f69335e6 | 5369 | #ifndef __cplusplus |
cbdd3138 BM |
5370 | typedef int foo_t; |
5371 | static $ac_kw foo_t static_foo () {return 0; } | |
5372 | $ac_kw foo_t foo () {return 0; } | |
f69335e6 | 5373 | #endif |
f40ec73c | 5374 | |
f69335e6 | 5375 | _ACEOF |
5376 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5378 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5379 | ac_status=$? |
cbdd3138 BM |
5380 | grep -v '^ *+' conftest.er1 >conftest.err |
5381 | rm -f conftest.er1 | |
5382 | cat conftest.err >&5 | |
f69335e6 | 5383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5384 | (exit $ac_status); } && | |
64b46a71 | 5385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5387 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5388 | ac_status=$? |
5389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5390 | (exit $ac_status); }; } && | |
5391 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5393 | (eval $ac_try) 2>&5 | |
f69335e6 | 5394 | ac_status=$? |
5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5396 | (exit $ac_status); }; }; then | |
81ae7da0 | 5397 | ac_cv_c_inline=$ac_kw; break |
f40ec73c | 5398 | else |
f69335e6 | 5399 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
5400 | sed 's/^/| /' conftest.$ac_ext >&5 |
5401 | ||
f40ec73c | 5402 | fi |
81ae7da0 | 5403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 5404 | done |
5405 | ||
5406 | fi | |
81ae7da0 BM |
5407 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5408 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
cbdd3138 BM |
5409 | |
5410 | ||
f69335e6 | 5411 | case $ac_cv_c_inline in |
f40ec73c | 5412 | inline | yes) ;; |
cbdd3138 BM |
5413 | *) |
5414 | case $ac_cv_c_inline in | |
5415 | no) ac_val=;; | |
5416 | *) ac_val=$ac_cv_c_inline;; | |
5417 | esac | |
5418 | cat >>confdefs.h <<_ACEOF | |
5419 | #ifndef __cplusplus | |
5420 | #define inline $ac_val | |
5421 | #endif | |
f69335e6 | 5422 | _ACEOF |
cbdd3138 | 5423 | ;; |
f40ec73c | 5424 | esac |
5425 | ||
81ae7da0 BM |
5426 | echo "$as_me:$LINENO: checking for size_t" >&5 |
5427 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
f69335e6 | 5428 | if test "${ac_cv_type_size_t+set}" = set; then |
5429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 5430 | else |
f69335e6 | 5431 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
5432 | /* confdefs.h. */ |
5433 | _ACEOF | |
5434 | cat confdefs.h >>conftest.$ac_ext | |
5435 | cat >>conftest.$ac_ext <<_ACEOF | |
5436 | /* end confdefs.h. */ | |
f69335e6 | 5437 | $ac_includes_default |
f69335e6 | 5438 | int |
5439 | main () | |
5440 | { | |
81ae7da0 | 5441 | if ((size_t *) 0) |
f69335e6 | 5442 | return 0; |
81ae7da0 | 5443 | if (sizeof (size_t)) |
f69335e6 | 5444 | return 0; |
5445 | ; | |
5446 | return 0; | |
5447 | } | |
5448 | _ACEOF | |
5449 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5451 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5452 | ac_status=$? |
cbdd3138 BM |
5453 | grep -v '^ *+' conftest.er1 >conftest.err |
5454 | rm -f conftest.er1 | |
5455 | cat conftest.err >&5 | |
f69335e6 | 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5457 | (exit $ac_status); } && | |
64b46a71 | 5458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5460 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5461 | ac_status=$? |
5462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5463 | (exit $ac_status); }; } && | |
5464 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5466 | (eval $ac_try) 2>&5 | |
f69335e6 | 5467 | ac_status=$? |
5468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5469 | (exit $ac_status); }; }; then | |
5470 | ac_cv_type_size_t=yes | |
f40ec73c | 5471 | else |
f69335e6 | 5472 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
5473 | sed 's/^/| /' conftest.$ac_ext >&5 |
5474 | ||
81ae7da0 | 5475 | ac_cv_type_size_t=no |
f40ec73c | 5476 | fi |
81ae7da0 | 5477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 5478 | fi |
81ae7da0 BM |
5479 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5480 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
f69335e6 | 5481 | if test $ac_cv_type_size_t = yes; then |
f40ec73c | 5482 | : |
5483 | else | |
f40ec73c | 5484 | |
f69335e6 | 5485 | cat >>confdefs.h <<_ACEOF |
81ae7da0 | 5486 | #define size_t unsigned |
f69335e6 | 5487 | _ACEOF |
f40ec73c | 5488 | |
5489 | fi | |
5490 | ||
81ae7da0 BM |
5491 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
5492 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
f69335e6 | 5493 | if test "${ac_cv_header_time+set}" = set; then |
5494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 5495 | else |
f69335e6 | 5496 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
5497 | /* confdefs.h. */ |
5498 | _ACEOF | |
5499 | cat confdefs.h >>conftest.$ac_ext | |
5500 | cat >>conftest.$ac_ext <<_ACEOF | |
5501 | /* end confdefs.h. */ | |
f40ec73c | 5502 | #include <sys/types.h> |
5503 | #include <sys/time.h> | |
5504 | #include <time.h> | |
f69335e6 | 5505 | |
f69335e6 | 5506 | int |
5507 | main () | |
5508 | { | |
5509 | if ((struct tm *) 0) | |
5510 | return 0; | |
5511 | ; | |
5512 | return 0; | |
5513 | } | |
5514 | _ACEOF | |
5515 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5517 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5518 | ac_status=$? |
cbdd3138 BM |
5519 | grep -v '^ *+' conftest.er1 >conftest.err |
5520 | rm -f conftest.er1 | |
5521 | cat conftest.err >&5 | |
f69335e6 | 5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5523 | (exit $ac_status); } && | |
64b46a71 | 5524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5526 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5527 | ac_status=$? |
5528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5529 | (exit $ac_status); }; } && | |
5530 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5532 | (eval $ac_try) 2>&5 | |
f69335e6 | 5533 | ac_status=$? |
5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5535 | (exit $ac_status); }; }; then | |
f40ec73c | 5536 | ac_cv_header_time=yes |
5537 | else | |
f69335e6 | 5538 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
5539 | sed 's/^/| /' conftest.$ac_ext >&5 |
5540 | ||
81ae7da0 | 5541 | ac_cv_header_time=no |
f40ec73c | 5542 | fi |
81ae7da0 | 5543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 5544 | fi |
81ae7da0 BM |
5545 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
5546 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
f40ec73c | 5547 | if test $ac_cv_header_time = yes; then |
f69335e6 | 5548 | |
5549 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 5550 | #define TIME_WITH_SYS_TIME 1 |
f69335e6 | 5551 | _ACEOF |
f40ec73c | 5552 | |
5553 | fi | |
5554 | ||
81ae7da0 BM |
5555 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5556 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
f69335e6 | 5557 | if test "${ac_cv_struct_tm+set}" = set; then |
5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 5559 | else |
f69335e6 | 5560 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
5561 | /* confdefs.h. */ |
5562 | _ACEOF | |
5563 | cat confdefs.h >>conftest.$ac_ext | |
5564 | cat >>conftest.$ac_ext <<_ACEOF | |
5565 | /* end confdefs.h. */ | |
f40ec73c | 5566 | #include <sys/types.h> |
5567 | #include <time.h> | |
f69335e6 | 5568 | |
f69335e6 | 5569 | int |
5570 | main () | |
5571 | { | |
f40ec73c | 5572 | struct tm *tp; tp->tm_sec; |
f69335e6 | 5573 | ; |
5574 | return 0; | |
5575 | } | |
5576 | _ACEOF | |
5577 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5579 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5580 | ac_status=$? |
cbdd3138 BM |
5581 | grep -v '^ *+' conftest.er1 >conftest.err |
5582 | rm -f conftest.er1 | |
5583 | cat conftest.err >&5 | |
f69335e6 | 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5585 | (exit $ac_status); } && | |
64b46a71 | 5586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5588 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5589 | ac_status=$? |
5590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5591 | (exit $ac_status); }; } && | |
5592 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5594 | (eval $ac_try) 2>&5 | |
f69335e6 | 5595 | ac_status=$? |
5596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5597 | (exit $ac_status); }; }; then | |
f40ec73c | 5598 | ac_cv_struct_tm=time.h |
5599 | else | |
f69335e6 | 5600 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
5601 | sed 's/^/| /' conftest.$ac_ext >&5 |
5602 | ||
81ae7da0 | 5603 | ac_cv_struct_tm=sys/time.h |
f40ec73c | 5604 | fi |
81ae7da0 | 5605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 5606 | fi |
81ae7da0 BM |
5607 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5608 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
f40ec73c | 5609 | if test $ac_cv_struct_tm = sys/time.h; then |
f69335e6 | 5610 | |
5611 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 5612 | #define TM_IN_SYS_TIME 1 |
f69335e6 | 5613 | _ACEOF |
f40ec73c | 5614 | |
5615 | fi | |
5616 | ||
81ae7da0 BM |
5617 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
5618 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
f69335e6 | 5619 | if test "${ac_cv_type_uid_t+set}" = set; then |
5620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 5621 | else |
f69335e6 | 5622 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
5623 | /* confdefs.h. */ |
5624 | _ACEOF | |
5625 | cat confdefs.h >>conftest.$ac_ext | |
5626 | cat >>conftest.$ac_ext <<_ACEOF | |
5627 | /* end confdefs.h. */ | |
f40ec73c | 5628 | #include <sys/types.h> |
f69335e6 | 5629 | |
5630 | _ACEOF | |
f40ec73c | 5631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cbdd3138 | 5632 | $EGREP "uid_t" >/dev/null 2>&1; then |
f40ec73c | 5633 | ac_cv_type_uid_t=yes |
5634 | else | |
f40ec73c | 5635 | ac_cv_type_uid_t=no |
5636 | fi | |
5637 | rm -f conftest* | |
5638 | ||
5639 | fi | |
81ae7da0 BM |
5640 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
5641 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
f40ec73c | 5642 | if test $ac_cv_type_uid_t = no; then |
f69335e6 | 5643 | |
5644 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 5645 | #define uid_t int |
f69335e6 | 5646 | _ACEOF |
5647 | ||
f40ec73c | 5648 | |
f69335e6 | 5649 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 5650 | #define gid_t int |
f69335e6 | 5651 | _ACEOF |
5652 | ||
5653 | fi | |
5654 | ||
81ae7da0 BM |
5655 | echo "$as_me:$LINENO: checking for short" >&5 |
5656 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
f69335e6 | 5657 | if test "${ac_cv_type_short+set}" = set; then |
5658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5659 | else | |
5660 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
5661 | /* confdefs.h. */ |
5662 | _ACEOF | |
5663 | cat confdefs.h >>conftest.$ac_ext | |
5664 | cat >>conftest.$ac_ext <<_ACEOF | |
5665 | /* end confdefs.h. */ | |
f69335e6 | 5666 | $ac_includes_default |
f69335e6 | 5667 | int |
5668 | main () | |
5669 | { | |
81ae7da0 | 5670 | if ((short *) 0) |
f69335e6 | 5671 | return 0; |
81ae7da0 | 5672 | if (sizeof (short)) |
f69335e6 | 5673 | return 0; |
5674 | ; | |
5675 | return 0; | |
5676 | } | |
5677 | _ACEOF | |
5678 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5680 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5681 | ac_status=$? |
cbdd3138 BM |
5682 | grep -v '^ *+' conftest.er1 >conftest.err |
5683 | rm -f conftest.er1 | |
5684 | cat conftest.err >&5 | |
f69335e6 | 5685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5686 | (exit $ac_status); } && | |
64b46a71 | 5687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5689 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5690 | ac_status=$? |
5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5692 | (exit $ac_status); }; } && | |
5693 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5695 | (eval $ac_try) 2>&5 | |
f69335e6 | 5696 | ac_status=$? |
5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5698 | (exit $ac_status); }; }; then | |
5699 | ac_cv_type_short=yes | |
5700 | else | |
5701 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5702 | sed 's/^/| /' conftest.$ac_ext >&5 |
5703 | ||
81ae7da0 | 5704 | ac_cv_type_short=no |
f69335e6 | 5705 | fi |
81ae7da0 | 5706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 5707 | fi |
81ae7da0 BM |
5708 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
5709 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
f69335e6 | 5710 | |
81ae7da0 BM |
5711 | echo "$as_me:$LINENO: checking size of short" >&5 |
5712 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
f69335e6 | 5713 | if test "${ac_cv_sizeof_short+set}" = set; then |
5714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5715 | else | |
5716 | if test "$ac_cv_type_short" = yes; then | |
81ae7da0 | 5717 | # The cast to unsigned long works around a bug in the HP C Compiler |
f69335e6 | 5718 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
5719 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5720 | # This bug is HP SR number 8606223364. | |
5721 | if test "$cross_compiling" = yes; then | |
5722 | # Depending upon the size, compute the lo and hi bounds. | |
5723 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
5724 | /* confdefs.h. */ |
5725 | _ACEOF | |
5726 | cat confdefs.h >>conftest.$ac_ext | |
5727 | cat >>conftest.$ac_ext <<_ACEOF | |
5728 | /* end confdefs.h. */ | |
f69335e6 | 5729 | $ac_includes_default |
f69335e6 | 5730 | int |
5731 | main () | |
5732 | { | |
81ae7da0 | 5733 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
f69335e6 | 5734 | test_array [0] = 0 |
5735 | ||
5736 | ; | |
5737 | return 0; | |
5738 | } | |
5739 | _ACEOF | |
5740 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5742 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5743 | ac_status=$? |
cbdd3138 BM |
5744 | grep -v '^ *+' conftest.er1 >conftest.err |
5745 | rm -f conftest.er1 | |
5746 | cat conftest.err >&5 | |
f69335e6 | 5747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5748 | (exit $ac_status); } && | |
64b46a71 | 5749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5751 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5752 | ac_status=$? |
5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5754 | (exit $ac_status); }; } && | |
5755 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5757 | (eval $ac_try) 2>&5 | |
f69335e6 | 5758 | ac_status=$? |
5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5760 | (exit $ac_status); }; }; then | |
5761 | ac_lo=0 ac_mid=0 | |
5762 | while :; do | |
5763 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
5764 | /* confdefs.h. */ |
5765 | _ACEOF | |
5766 | cat confdefs.h >>conftest.$ac_ext | |
5767 | cat >>conftest.$ac_ext <<_ACEOF | |
5768 | /* end confdefs.h. */ | |
f69335e6 | 5769 | $ac_includes_default |
f69335e6 | 5770 | int |
5771 | main () | |
5772 | { | |
81ae7da0 | 5773 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
f69335e6 | 5774 | test_array [0] = 0 |
5775 | ||
5776 | ; | |
5777 | return 0; | |
5778 | } | |
5779 | _ACEOF | |
5780 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5782 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5783 | ac_status=$? |
cbdd3138 BM |
5784 | grep -v '^ *+' conftest.er1 >conftest.err |
5785 | rm -f conftest.er1 | |
5786 | cat conftest.err >&5 | |
f69335e6 | 5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5788 | (exit $ac_status); } && | |
64b46a71 | 5789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5791 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5792 | ac_status=$? |
5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5794 | (exit $ac_status); }; } && | |
5795 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5797 | (eval $ac_try) 2>&5 | |
f69335e6 | 5798 | ac_status=$? |
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5800 | (exit $ac_status); }; }; then | |
5801 | ac_hi=$ac_mid; break | |
5802 | else | |
5803 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5804 | sed 's/^/| /' conftest.$ac_ext >&5 |
5805 | ||
81ae7da0 BM |
5806 | ac_lo=`expr $ac_mid + 1` |
5807 | if test $ac_lo -le $ac_mid; then | |
5808 | ac_lo= ac_hi= | |
5809 | break | |
5810 | fi | |
5811 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f69335e6 | 5812 | fi |
81ae7da0 | 5813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 5814 | done |
5815 | else | |
5816 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5817 | sed 's/^/| /' conftest.$ac_ext >&5 |
5818 | ||
81ae7da0 | 5819 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
5820 | /* confdefs.h. */ |
5821 | _ACEOF | |
5822 | cat confdefs.h >>conftest.$ac_ext | |
5823 | cat >>conftest.$ac_ext <<_ACEOF | |
5824 | /* end confdefs.h. */ | |
f69335e6 | 5825 | $ac_includes_default |
f69335e6 | 5826 | int |
5827 | main () | |
5828 | { | |
81ae7da0 | 5829 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
f69335e6 | 5830 | test_array [0] = 0 |
5831 | ||
5832 | ; | |
5833 | return 0; | |
5834 | } | |
5835 | _ACEOF | |
5836 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5838 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5839 | ac_status=$? |
cbdd3138 BM |
5840 | grep -v '^ *+' conftest.er1 >conftest.err |
5841 | rm -f conftest.er1 | |
5842 | cat conftest.err >&5 | |
f69335e6 | 5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5844 | (exit $ac_status); } && | |
64b46a71 | 5845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5847 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5848 | ac_status=$? |
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5850 | (exit $ac_status); }; } && | |
5851 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5853 | (eval $ac_try) 2>&5 | |
f69335e6 | 5854 | ac_status=$? |
5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5856 | (exit $ac_status); }; }; then | |
5857 | ac_hi=-1 ac_mid=-1 | |
5858 | while :; do | |
5859 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
5860 | /* confdefs.h. */ |
5861 | _ACEOF | |
5862 | cat confdefs.h >>conftest.$ac_ext | |
5863 | cat >>conftest.$ac_ext <<_ACEOF | |
5864 | /* end confdefs.h. */ | |
f69335e6 | 5865 | $ac_includes_default |
f69335e6 | 5866 | int |
5867 | main () | |
5868 | { | |
81ae7da0 | 5869 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
f69335e6 | 5870 | test_array [0] = 0 |
5871 | ||
5872 | ; | |
5873 | return 0; | |
5874 | } | |
5875 | _ACEOF | |
5876 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5878 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5879 | ac_status=$? |
cbdd3138 BM |
5880 | grep -v '^ *+' conftest.er1 >conftest.err |
5881 | rm -f conftest.er1 | |
5882 | cat conftest.err >&5 | |
f69335e6 | 5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5884 | (exit $ac_status); } && | |
64b46a71 | 5885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5887 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5888 | ac_status=$? |
5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5890 | (exit $ac_status); }; } && | |
5891 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5893 | (eval $ac_try) 2>&5 | |
f69335e6 | 5894 | ac_status=$? |
5895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5896 | (exit $ac_status); }; }; then | |
5897 | ac_lo=$ac_mid; break | |
5898 | else | |
5899 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5900 | sed 's/^/| /' conftest.$ac_ext >&5 |
5901 | ||
81ae7da0 BM |
5902 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5903 | if test $ac_mid -le $ac_hi; then | |
5904 | ac_lo= ac_hi= | |
5905 | break | |
5906 | fi | |
5907 | ac_mid=`expr 2 '*' $ac_mid` | |
f69335e6 | 5908 | fi |
81ae7da0 | 5909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 5910 | done |
5911 | else | |
5912 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5913 | sed 's/^/| /' conftest.$ac_ext >&5 |
5914 | ||
81ae7da0 | 5915 | ac_lo= ac_hi= |
f69335e6 | 5916 | fi |
81ae7da0 | 5917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 5918 | fi |
81ae7da0 | 5919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 5920 | # Binary search between lo and hi bounds. |
5921 | while test "x$ac_lo" != "x$ac_hi"; do | |
5922 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5923 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
5924 | /* confdefs.h. */ |
5925 | _ACEOF | |
5926 | cat confdefs.h >>conftest.$ac_ext | |
5927 | cat >>conftest.$ac_ext <<_ACEOF | |
5928 | /* end confdefs.h. */ | |
f69335e6 | 5929 | $ac_includes_default |
f69335e6 | 5930 | int |
5931 | main () | |
5932 | { | |
81ae7da0 | 5933 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
f69335e6 | 5934 | test_array [0] = 0 |
5935 | ||
5936 | ; | |
5937 | return 0; | |
5938 | } | |
5939 | _ACEOF | |
5940 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
5941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5942 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 5943 | ac_status=$? |
cbdd3138 BM |
5944 | grep -v '^ *+' conftest.er1 >conftest.err |
5945 | rm -f conftest.er1 | |
5946 | cat conftest.err >&5 | |
f69335e6 | 5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5948 | (exit $ac_status); } && | |
64b46a71 | 5949 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
5950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5951 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
5952 | ac_status=$? |
5953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5954 | (exit $ac_status); }; } && | |
5955 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
5956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5957 | (eval $ac_try) 2>&5 | |
f69335e6 | 5958 | ac_status=$? |
5959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5960 | (exit $ac_status); }; }; then | |
5961 | ac_hi=$ac_mid | |
5962 | else | |
5963 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
5964 | sed 's/^/| /' conftest.$ac_ext >&5 |
5965 | ||
81ae7da0 | 5966 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f69335e6 | 5967 | fi |
81ae7da0 | 5968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 5969 | done |
5970 | case $ac_lo in | |
5971 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
81ae7da0 | 5972 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
cbdd3138 | 5973 | See \`config.log' for more details." >&5 |
81ae7da0 | 5974 | echo "$as_me: error: cannot compute sizeof (short), 77 |
cbdd3138 | 5975 | See \`config.log' for more details." >&2;} |
81ae7da0 | 5976 | { (exit 1); exit 1; }; } ;; |
f69335e6 | 5977 | esac |
81ae7da0 BM |
5978 | else |
5979 | if test "$cross_compiling" = yes; then | |
64b46a71 | 5980 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
5981 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
81ae7da0 | 5982 | { (exit 1); exit 1; }; } |
f69335e6 | 5983 | else |
5984 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
5985 | /* confdefs.h. */ |
5986 | _ACEOF | |
5987 | cat confdefs.h >>conftest.$ac_ext | |
5988 | cat >>conftest.$ac_ext <<_ACEOF | |
5989 | /* end confdefs.h. */ | |
f69335e6 | 5990 | $ac_includes_default |
81ae7da0 BM |
5991 | long longval () { return (long) (sizeof (short)); } |
5992 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
f69335e6 | 5993 | #include <stdio.h> |
5994 | #include <stdlib.h> | |
f69335e6 | 5995 | int |
5996 | main () | |
5997 | { | |
f40ec73c | 5998 | |
f69335e6 | 5999 | FILE *f = fopen ("conftest.val", "w"); |
6000 | if (! f) | |
81ae7da0 BM |
6001 | exit (1); |
6002 | if (((long) (sizeof (short))) < 0) | |
f69335e6 | 6003 | { |
81ae7da0 BM |
6004 | long i = longval (); |
6005 | if (i != ((long) (sizeof (short)))) | |
6006 | exit (1); | |
f69335e6 | 6007 | fprintf (f, "%ld\n", i); |
6008 | } | |
6009 | else | |
6010 | { | |
81ae7da0 BM |
6011 | unsigned long i = ulongval (); |
6012 | if (i != ((long) (sizeof (short)))) | |
6013 | exit (1); | |
f69335e6 | 6014 | fprintf (f, "%lu\n", i); |
6015 | } | |
81ae7da0 | 6016 | exit (ferror (f) || fclose (f) != 0); |
f69335e6 | 6017 | |
6018 | ; | |
6019 | return 0; | |
6020 | } | |
6021 | _ACEOF | |
6022 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
6023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6024 | (eval $ac_link) 2>&5 | |
f69335e6 | 6025 | ac_status=$? |
6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6027 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
6028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6029 | (eval $ac_try) 2>&5 | |
f69335e6 | 6030 | ac_status=$? |
6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6032 | (exit $ac_status); }; }; then | |
6033 | ac_cv_sizeof_short=`cat conftest.val` | |
6034 | else | |
6035 | echo "$as_me: program exited with status $ac_status" >&5 | |
6036 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6037 | sed 's/^/| /' conftest.$ac_ext >&5 |
6038 | ||
f69335e6 | 6039 | ( exit $ac_status ) |
81ae7da0 | 6040 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
cbdd3138 | 6041 | See \`config.log' for more details." >&5 |
81ae7da0 | 6042 | echo "$as_me: error: cannot compute sizeof (short), 77 |
cbdd3138 | 6043 | See \`config.log' for more details." >&2;} |
81ae7da0 BM |
6044 | { (exit 1); exit 1; }; } |
6045 | fi | |
6046 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f69335e6 | 6047 | fi |
6048 | fi | |
6049 | rm -f conftest.val | |
6050 | else | |
6051 | ac_cv_sizeof_short=0 | |
6052 | fi | |
f40ec73c | 6053 | fi |
81ae7da0 BM |
6054 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
6055 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
f69335e6 | 6056 | cat >>confdefs.h <<_ACEOF |
6057 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
6058 | _ACEOF | |
6059 | ||
f40ec73c | 6060 | |
81ae7da0 BM |
6061 | echo "$as_me:$LINENO: checking for int" >&5 |
6062 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
f69335e6 | 6063 | if test "${ac_cv_type_int+set}" = set; then |
6064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6065 | else | |
6066 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
6067 | /* confdefs.h. */ |
6068 | _ACEOF | |
6069 | cat confdefs.h >>conftest.$ac_ext | |
6070 | cat >>conftest.$ac_ext <<_ACEOF | |
6071 | /* end confdefs.h. */ | |
f69335e6 | 6072 | $ac_includes_default |
f69335e6 | 6073 | int |
6074 | main () | |
6075 | { | |
81ae7da0 | 6076 | if ((int *) 0) |
f69335e6 | 6077 | return 0; |
81ae7da0 | 6078 | if (sizeof (int)) |
f69335e6 | 6079 | return 0; |
6080 | ; | |
6081 | return 0; | |
6082 | } | |
6083 | _ACEOF | |
6084 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6086 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6087 | ac_status=$? |
cbdd3138 BM |
6088 | grep -v '^ *+' conftest.er1 >conftest.err |
6089 | rm -f conftest.er1 | |
6090 | cat conftest.err >&5 | |
f69335e6 | 6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6092 | (exit $ac_status); } && | |
64b46a71 | 6093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6095 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6096 | ac_status=$? |
6097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6098 | (exit $ac_status); }; } && | |
6099 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6101 | (eval $ac_try) 2>&5 | |
f69335e6 | 6102 | ac_status=$? |
6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6104 | (exit $ac_status); }; }; then | |
6105 | ac_cv_type_int=yes | |
6106 | else | |
6107 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6108 | sed 's/^/| /' conftest.$ac_ext >&5 |
6109 | ||
81ae7da0 | 6110 | ac_cv_type_int=no |
f69335e6 | 6111 | fi |
81ae7da0 | 6112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6113 | fi |
81ae7da0 BM |
6114 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
6115 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
f69335e6 | 6116 | |
81ae7da0 BM |
6117 | echo "$as_me:$LINENO: checking size of int" >&5 |
6118 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
f69335e6 | 6119 | if test "${ac_cv_sizeof_int+set}" = set; then |
6120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6121 | else | |
6122 | if test "$ac_cv_type_int" = yes; then | |
81ae7da0 | 6123 | # The cast to unsigned long works around a bug in the HP C Compiler |
f69335e6 | 6124 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
6125 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6126 | # This bug is HP SR number 8606223364. | |
6127 | if test "$cross_compiling" = yes; then | |
6128 | # Depending upon the size, compute the lo and hi bounds. | |
6129 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
6130 | /* confdefs.h. */ |
6131 | _ACEOF | |
6132 | cat confdefs.h >>conftest.$ac_ext | |
6133 | cat >>conftest.$ac_ext <<_ACEOF | |
6134 | /* end confdefs.h. */ | |
f69335e6 | 6135 | $ac_includes_default |
f69335e6 | 6136 | int |
6137 | main () | |
6138 | { | |
81ae7da0 | 6139 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
f69335e6 | 6140 | test_array [0] = 0 |
6141 | ||
6142 | ; | |
6143 | return 0; | |
6144 | } | |
6145 | _ACEOF | |
6146 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6148 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6149 | ac_status=$? |
cbdd3138 BM |
6150 | grep -v '^ *+' conftest.er1 >conftest.err |
6151 | rm -f conftest.er1 | |
6152 | cat conftest.err >&5 | |
f69335e6 | 6153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6154 | (exit $ac_status); } && | |
64b46a71 | 6155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6157 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6158 | ac_status=$? |
6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6160 | (exit $ac_status); }; } && | |
6161 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6163 | (eval $ac_try) 2>&5 | |
f69335e6 | 6164 | ac_status=$? |
6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6166 | (exit $ac_status); }; }; then | |
6167 | ac_lo=0 ac_mid=0 | |
6168 | while :; do | |
6169 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
6170 | /* confdefs.h. */ |
6171 | _ACEOF | |
6172 | cat confdefs.h >>conftest.$ac_ext | |
6173 | cat >>conftest.$ac_ext <<_ACEOF | |
6174 | /* end confdefs.h. */ | |
f69335e6 | 6175 | $ac_includes_default |
f69335e6 | 6176 | int |
6177 | main () | |
6178 | { | |
81ae7da0 | 6179 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
f69335e6 | 6180 | test_array [0] = 0 |
6181 | ||
6182 | ; | |
6183 | return 0; | |
6184 | } | |
6185 | _ACEOF | |
6186 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6188 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6189 | ac_status=$? |
cbdd3138 BM |
6190 | grep -v '^ *+' conftest.er1 >conftest.err |
6191 | rm -f conftest.er1 | |
6192 | cat conftest.err >&5 | |
f69335e6 | 6193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6194 | (exit $ac_status); } && | |
64b46a71 | 6195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6197 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6198 | ac_status=$? |
6199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6200 | (exit $ac_status); }; } && | |
6201 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6203 | (eval $ac_try) 2>&5 | |
f69335e6 | 6204 | ac_status=$? |
6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6206 | (exit $ac_status); }; }; then | |
6207 | ac_hi=$ac_mid; break | |
6208 | else | |
6209 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6210 | sed 's/^/| /' conftest.$ac_ext >&5 |
6211 | ||
81ae7da0 BM |
6212 | ac_lo=`expr $ac_mid + 1` |
6213 | if test $ac_lo -le $ac_mid; then | |
6214 | ac_lo= ac_hi= | |
6215 | break | |
6216 | fi | |
6217 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f69335e6 | 6218 | fi |
81ae7da0 | 6219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6220 | done |
6221 | else | |
6222 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6223 | sed 's/^/| /' conftest.$ac_ext >&5 |
6224 | ||
81ae7da0 | 6225 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
6226 | /* confdefs.h. */ |
6227 | _ACEOF | |
6228 | cat confdefs.h >>conftest.$ac_ext | |
6229 | cat >>conftest.$ac_ext <<_ACEOF | |
6230 | /* end confdefs.h. */ | |
f69335e6 | 6231 | $ac_includes_default |
f69335e6 | 6232 | int |
6233 | main () | |
6234 | { | |
81ae7da0 | 6235 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
f69335e6 | 6236 | test_array [0] = 0 |
6237 | ||
6238 | ; | |
6239 | return 0; | |
6240 | } | |
6241 | _ACEOF | |
6242 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6244 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6245 | ac_status=$? |
cbdd3138 BM |
6246 | grep -v '^ *+' conftest.er1 >conftest.err |
6247 | rm -f conftest.er1 | |
6248 | cat conftest.err >&5 | |
f69335e6 | 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6250 | (exit $ac_status); } && | |
64b46a71 | 6251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6253 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6254 | ac_status=$? |
6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6256 | (exit $ac_status); }; } && | |
6257 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6259 | (eval $ac_try) 2>&5 | |
f69335e6 | 6260 | ac_status=$? |
6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6262 | (exit $ac_status); }; }; then | |
6263 | ac_hi=-1 ac_mid=-1 | |
6264 | while :; do | |
6265 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
6266 | /* confdefs.h. */ |
6267 | _ACEOF | |
6268 | cat confdefs.h >>conftest.$ac_ext | |
6269 | cat >>conftest.$ac_ext <<_ACEOF | |
6270 | /* end confdefs.h. */ | |
f69335e6 | 6271 | $ac_includes_default |
f69335e6 | 6272 | int |
6273 | main () | |
6274 | { | |
81ae7da0 | 6275 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
f69335e6 | 6276 | test_array [0] = 0 |
6277 | ||
6278 | ; | |
6279 | return 0; | |
6280 | } | |
6281 | _ACEOF | |
6282 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6284 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6285 | ac_status=$? |
cbdd3138 BM |
6286 | grep -v '^ *+' conftest.er1 >conftest.err |
6287 | rm -f conftest.er1 | |
6288 | cat conftest.err >&5 | |
f69335e6 | 6289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6290 | (exit $ac_status); } && | |
64b46a71 | 6291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6293 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6294 | ac_status=$? |
6295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6296 | (exit $ac_status); }; } && | |
6297 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6299 | (eval $ac_try) 2>&5 | |
f69335e6 | 6300 | ac_status=$? |
6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6302 | (exit $ac_status); }; }; then | |
6303 | ac_lo=$ac_mid; break | |
6304 | else | |
6305 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6306 | sed 's/^/| /' conftest.$ac_ext >&5 |
6307 | ||
81ae7da0 BM |
6308 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6309 | if test $ac_mid -le $ac_hi; then | |
6310 | ac_lo= ac_hi= | |
6311 | break | |
6312 | fi | |
6313 | ac_mid=`expr 2 '*' $ac_mid` | |
f69335e6 | 6314 | fi |
81ae7da0 | 6315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6316 | done |
6317 | else | |
6318 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6319 | sed 's/^/| /' conftest.$ac_ext >&5 |
6320 | ||
81ae7da0 | 6321 | ac_lo= ac_hi= |
f69335e6 | 6322 | fi |
81ae7da0 | 6323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6324 | fi |
81ae7da0 | 6325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6326 | # Binary search between lo and hi bounds. |
6327 | while test "x$ac_lo" != "x$ac_hi"; do | |
6328 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6329 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
6330 | /* confdefs.h. */ |
6331 | _ACEOF | |
6332 | cat confdefs.h >>conftest.$ac_ext | |
6333 | cat >>conftest.$ac_ext <<_ACEOF | |
6334 | /* end confdefs.h. */ | |
f69335e6 | 6335 | $ac_includes_default |
f69335e6 | 6336 | int |
6337 | main () | |
6338 | { | |
81ae7da0 | 6339 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
f69335e6 | 6340 | test_array [0] = 0 |
6341 | ||
6342 | ; | |
6343 | return 0; | |
6344 | } | |
6345 | _ACEOF | |
6346 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6348 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6349 | ac_status=$? |
cbdd3138 BM |
6350 | grep -v '^ *+' conftest.er1 >conftest.err |
6351 | rm -f conftest.er1 | |
6352 | cat conftest.err >&5 | |
f69335e6 | 6353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6354 | (exit $ac_status); } && | |
64b46a71 | 6355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6357 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6358 | ac_status=$? |
6359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6360 | (exit $ac_status); }; } && | |
6361 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6363 | (eval $ac_try) 2>&5 | |
f69335e6 | 6364 | ac_status=$? |
6365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6366 | (exit $ac_status); }; }; then | |
6367 | ac_hi=$ac_mid | |
6368 | else | |
6369 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6370 | sed 's/^/| /' conftest.$ac_ext >&5 |
6371 | ||
81ae7da0 | 6372 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f69335e6 | 6373 | fi |
81ae7da0 | 6374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6375 | done |
6376 | case $ac_lo in | |
6377 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
81ae7da0 | 6378 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
cbdd3138 | 6379 | See \`config.log' for more details." >&5 |
81ae7da0 | 6380 | echo "$as_me: error: cannot compute sizeof (int), 77 |
cbdd3138 | 6381 | See \`config.log' for more details." >&2;} |
81ae7da0 | 6382 | { (exit 1); exit 1; }; } ;; |
f69335e6 | 6383 | esac |
81ae7da0 BM |
6384 | else |
6385 | if test "$cross_compiling" = yes; then | |
64b46a71 | 6386 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
6387 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
81ae7da0 | 6388 | { (exit 1); exit 1; }; } |
29ad0e8f | 6389 | else |
f69335e6 | 6390 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
6391 | /* confdefs.h. */ |
6392 | _ACEOF | |
6393 | cat confdefs.h >>conftest.$ac_ext | |
6394 | cat >>conftest.$ac_ext <<_ACEOF | |
6395 | /* end confdefs.h. */ | |
f69335e6 | 6396 | $ac_includes_default |
81ae7da0 BM |
6397 | long longval () { return (long) (sizeof (int)); } |
6398 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
29ad0e8f | 6399 | #include <stdio.h> |
f69335e6 | 6400 | #include <stdlib.h> |
f69335e6 | 6401 | int |
6402 | main () | |
29ad0e8f | 6403 | { |
f69335e6 | 6404 | |
6405 | FILE *f = fopen ("conftest.val", "w"); | |
6406 | if (! f) | |
81ae7da0 BM |
6407 | exit (1); |
6408 | if (((long) (sizeof (int))) < 0) | |
f69335e6 | 6409 | { |
81ae7da0 BM |
6410 | long i = longval (); |
6411 | if (i != ((long) (sizeof (int)))) | |
6412 | exit (1); | |
f69335e6 | 6413 | fprintf (f, "%ld\n", i); |
6414 | } | |
6415 | else | |
6416 | { | |
81ae7da0 BM |
6417 | unsigned long i = ulongval (); |
6418 | if (i != ((long) (sizeof (int)))) | |
6419 | exit (1); | |
f69335e6 | 6420 | fprintf (f, "%lu\n", i); |
6421 | } | |
81ae7da0 | 6422 | exit (ferror (f) || fclose (f) != 0); |
f69335e6 | 6423 | |
6424 | ; | |
6425 | return 0; | |
29ad0e8f | 6426 | } |
f69335e6 | 6427 | _ACEOF |
6428 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
6429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6430 | (eval $ac_link) 2>&5 | |
f69335e6 | 6431 | ac_status=$? |
6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6433 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
6434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6435 | (eval $ac_try) 2>&5 | |
f69335e6 | 6436 | ac_status=$? |
6437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6438 | (exit $ac_status); }; }; then | |
6439 | ac_cv_sizeof_int=`cat conftest.val` | |
6440 | else | |
6441 | echo "$as_me: program exited with status $ac_status" >&5 | |
6442 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6443 | sed 's/^/| /' conftest.$ac_ext >&5 |
6444 | ||
f69335e6 | 6445 | ( exit $ac_status ) |
81ae7da0 | 6446 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
cbdd3138 | 6447 | See \`config.log' for more details." >&5 |
81ae7da0 | 6448 | echo "$as_me: error: cannot compute sizeof (int), 77 |
cbdd3138 | 6449 | See \`config.log' for more details." >&2;} |
81ae7da0 BM |
6450 | { (exit 1); exit 1; }; } |
6451 | fi | |
6452 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f69335e6 | 6453 | fi |
6454 | fi | |
6455 | rm -f conftest.val | |
29ad0e8f | 6456 | else |
f69335e6 | 6457 | ac_cv_sizeof_int=0 |
29ad0e8f | 6458 | fi |
29ad0e8f | 6459 | fi |
81ae7da0 BM |
6460 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
6461 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
f69335e6 | 6462 | cat >>confdefs.h <<_ACEOF |
6463 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6464 | _ACEOF | |
f40ec73c | 6465 | |
29ad0e8f | 6466 | |
81ae7da0 BM |
6467 | echo "$as_me:$LINENO: checking for long" >&5 |
6468 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
f69335e6 | 6469 | if test "${ac_cv_type_long+set}" = set; then |
6470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 6471 | else |
f69335e6 | 6472 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
6473 | /* confdefs.h. */ |
6474 | _ACEOF | |
6475 | cat confdefs.h >>conftest.$ac_ext | |
6476 | cat >>conftest.$ac_ext <<_ACEOF | |
6477 | /* end confdefs.h. */ | |
f69335e6 | 6478 | $ac_includes_default |
f69335e6 | 6479 | int |
6480 | main () | |
6481 | { | |
81ae7da0 | 6482 | if ((long *) 0) |
f69335e6 | 6483 | return 0; |
81ae7da0 | 6484 | if (sizeof (long)) |
f69335e6 | 6485 | return 0; |
6486 | ; | |
6487 | return 0; | |
6488 | } | |
6489 | _ACEOF | |
6490 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6492 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6493 | ac_status=$? |
cbdd3138 BM |
6494 | grep -v '^ *+' conftest.er1 >conftest.err |
6495 | rm -f conftest.er1 | |
6496 | cat conftest.err >&5 | |
f69335e6 | 6497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6498 | (exit $ac_status); } && | |
64b46a71 | 6499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6501 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6502 | ac_status=$? |
6503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6504 | (exit $ac_status); }; } && | |
6505 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6507 | (eval $ac_try) 2>&5 | |
f69335e6 | 6508 | ac_status=$? |
6509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6510 | (exit $ac_status); }; }; then | |
6511 | ac_cv_type_long=yes | |
6512 | else | |
6513 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6514 | sed 's/^/| /' conftest.$ac_ext >&5 |
6515 | ||
81ae7da0 | 6516 | ac_cv_type_long=no |
f69335e6 | 6517 | fi |
81ae7da0 | 6518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6519 | fi |
81ae7da0 BM |
6520 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
6521 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
f69335e6 | 6522 | |
81ae7da0 BM |
6523 | echo "$as_me:$LINENO: checking size of long" >&5 |
6524 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
f69335e6 | 6525 | if test "${ac_cv_sizeof_long+set}" = set; then |
6526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6527 | else | |
6528 | if test "$ac_cv_type_long" = yes; then | |
81ae7da0 | 6529 | # The cast to unsigned long works around a bug in the HP C Compiler |
f69335e6 | 6530 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
6531 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6532 | # This bug is HP SR number 8606223364. | |
29ad0e8f | 6533 | if test "$cross_compiling" = yes; then |
f69335e6 | 6534 | # Depending upon the size, compute the lo and hi bounds. |
6535 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
6536 | /* confdefs.h. */ |
6537 | _ACEOF | |
6538 | cat confdefs.h >>conftest.$ac_ext | |
6539 | cat >>conftest.$ac_ext <<_ACEOF | |
6540 | /* end confdefs.h. */ | |
f69335e6 | 6541 | $ac_includes_default |
f69335e6 | 6542 | int |
6543 | main () | |
6544 | { | |
81ae7da0 | 6545 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
f69335e6 | 6546 | test_array [0] = 0 |
6547 | ||
6548 | ; | |
6549 | return 0; | |
6550 | } | |
6551 | _ACEOF | |
6552 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6554 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6555 | ac_status=$? |
cbdd3138 BM |
6556 | grep -v '^ *+' conftest.er1 >conftest.err |
6557 | rm -f conftest.er1 | |
6558 | cat conftest.err >&5 | |
f69335e6 | 6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6560 | (exit $ac_status); } && | |
64b46a71 | 6561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6563 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6564 | ac_status=$? |
6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6566 | (exit $ac_status); }; } && | |
6567 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6569 | (eval $ac_try) 2>&5 | |
f69335e6 | 6570 | ac_status=$? |
6571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6572 | (exit $ac_status); }; }; then | |
6573 | ac_lo=0 ac_mid=0 | |
6574 | while :; do | |
6575 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
6576 | /* confdefs.h. */ |
6577 | _ACEOF | |
6578 | cat confdefs.h >>conftest.$ac_ext | |
6579 | cat >>conftest.$ac_ext <<_ACEOF | |
6580 | /* end confdefs.h. */ | |
f69335e6 | 6581 | $ac_includes_default |
f69335e6 | 6582 | int |
6583 | main () | |
6584 | { | |
81ae7da0 | 6585 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
f69335e6 | 6586 | test_array [0] = 0 |
6587 | ||
6588 | ; | |
6589 | return 0; | |
6590 | } | |
6591 | _ACEOF | |
6592 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6594 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6595 | ac_status=$? |
cbdd3138 BM |
6596 | grep -v '^ *+' conftest.er1 >conftest.err |
6597 | rm -f conftest.er1 | |
6598 | cat conftest.err >&5 | |
f69335e6 | 6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6600 | (exit $ac_status); } && | |
64b46a71 | 6601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6603 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6604 | ac_status=$? |
6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6606 | (exit $ac_status); }; } && | |
6607 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6609 | (eval $ac_try) 2>&5 | |
f69335e6 | 6610 | ac_status=$? |
6611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6612 | (exit $ac_status); }; }; then | |
6613 | ac_hi=$ac_mid; break | |
6614 | else | |
6615 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6616 | sed 's/^/| /' conftest.$ac_ext >&5 |
6617 | ||
81ae7da0 BM |
6618 | ac_lo=`expr $ac_mid + 1` |
6619 | if test $ac_lo -le $ac_mid; then | |
6620 | ac_lo= ac_hi= | |
6621 | break | |
6622 | fi | |
6623 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f69335e6 | 6624 | fi |
81ae7da0 | 6625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6626 | done |
29ad0e8f | 6627 | else |
f69335e6 | 6628 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
6629 | sed 's/^/| /' conftest.$ac_ext >&5 |
6630 | ||
81ae7da0 | 6631 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
6632 | /* confdefs.h. */ |
6633 | _ACEOF | |
6634 | cat confdefs.h >>conftest.$ac_ext | |
6635 | cat >>conftest.$ac_ext <<_ACEOF | |
6636 | /* end confdefs.h. */ | |
f69335e6 | 6637 | $ac_includes_default |
f69335e6 | 6638 | int |
6639 | main () | |
6640 | { | |
81ae7da0 | 6641 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
f69335e6 | 6642 | test_array [0] = 0 |
6643 | ||
6644 | ; | |
6645 | return 0; | |
6646 | } | |
6647 | _ACEOF | |
6648 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6650 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6651 | ac_status=$? |
cbdd3138 BM |
6652 | grep -v '^ *+' conftest.er1 >conftest.err |
6653 | rm -f conftest.er1 | |
6654 | cat conftest.err >&5 | |
f69335e6 | 6655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6656 | (exit $ac_status); } && | |
64b46a71 | 6657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6659 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6660 | ac_status=$? |
6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6662 | (exit $ac_status); }; } && | |
6663 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6665 | (eval $ac_try) 2>&5 | |
f69335e6 | 6666 | ac_status=$? |
6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6668 | (exit $ac_status); }; }; then | |
6669 | ac_hi=-1 ac_mid=-1 | |
6670 | while :; do | |
6671 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
6672 | /* confdefs.h. */ |
6673 | _ACEOF | |
6674 | cat confdefs.h >>conftest.$ac_ext | |
6675 | cat >>conftest.$ac_ext <<_ACEOF | |
6676 | /* end confdefs.h. */ | |
f69335e6 | 6677 | $ac_includes_default |
f69335e6 | 6678 | int |
6679 | main () | |
29ad0e8f | 6680 | { |
81ae7da0 | 6681 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
f69335e6 | 6682 | test_array [0] = 0 |
6683 | ||
6684 | ; | |
6685 | return 0; | |
f40ec73c | 6686 | } |
f69335e6 | 6687 | _ACEOF |
6688 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6690 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6691 | ac_status=$? |
cbdd3138 BM |
6692 | grep -v '^ *+' conftest.er1 >conftest.err |
6693 | rm -f conftest.er1 | |
6694 | cat conftest.err >&5 | |
f69335e6 | 6695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6696 | (exit $ac_status); } && | |
64b46a71 | 6697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6699 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6700 | ac_status=$? |
6701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6702 | (exit $ac_status); }; } && | |
6703 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6705 | (eval $ac_try) 2>&5 | |
f69335e6 | 6706 | ac_status=$? |
6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6708 | (exit $ac_status); }; }; then | |
6709 | ac_lo=$ac_mid; break | |
6710 | else | |
6711 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6712 | sed 's/^/| /' conftest.$ac_ext >&5 |
6713 | ||
81ae7da0 BM |
6714 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6715 | if test $ac_mid -le $ac_hi; then | |
6716 | ac_lo= ac_hi= | |
6717 | break | |
6718 | fi | |
6719 | ac_mid=`expr 2 '*' $ac_mid` | |
f69335e6 | 6720 | fi |
81ae7da0 | 6721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6722 | done |
29ad0e8f | 6723 | else |
f69335e6 | 6724 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
6725 | sed 's/^/| /' conftest.$ac_ext >&5 |
6726 | ||
81ae7da0 | 6727 | ac_lo= ac_hi= |
29ad0e8f | 6728 | fi |
81ae7da0 | 6729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 6730 | fi |
81ae7da0 | 6731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6732 | # Binary search between lo and hi bounds. |
6733 | while test "x$ac_lo" != "x$ac_hi"; do | |
6734 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6735 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
6736 | /* confdefs.h. */ |
6737 | _ACEOF | |
6738 | cat confdefs.h >>conftest.$ac_ext | |
6739 | cat >>conftest.$ac_ext <<_ACEOF | |
6740 | /* end confdefs.h. */ | |
f69335e6 | 6741 | $ac_includes_default |
f69335e6 | 6742 | int |
6743 | main () | |
6744 | { | |
81ae7da0 | 6745 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
f69335e6 | 6746 | test_array [0] = 0 |
29ad0e8f | 6747 | |
f69335e6 | 6748 | ; |
6749 | return 0; | |
6750 | } | |
6751 | _ACEOF | |
6752 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6754 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6755 | ac_status=$? |
cbdd3138 BM |
6756 | grep -v '^ *+' conftest.er1 >conftest.err |
6757 | rm -f conftest.er1 | |
6758 | cat conftest.err >&5 | |
f69335e6 | 6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6760 | (exit $ac_status); } && | |
64b46a71 | 6761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6763 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6764 | ac_status=$? |
6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6766 | (exit $ac_status); }; } && | |
6767 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6769 | (eval $ac_try) 2>&5 | |
f69335e6 | 6770 | ac_status=$? |
6771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6772 | (exit $ac_status); }; }; then | |
6773 | ac_hi=$ac_mid | |
6774 | else | |
6775 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6776 | sed 's/^/| /' conftest.$ac_ext >&5 |
6777 | ||
81ae7da0 | 6778 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f69335e6 | 6779 | fi |
81ae7da0 | 6780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f69335e6 | 6781 | done |
6782 | case $ac_lo in | |
6783 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
81ae7da0 | 6784 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
cbdd3138 | 6785 | See \`config.log' for more details." >&5 |
81ae7da0 | 6786 | echo "$as_me: error: cannot compute sizeof (long), 77 |
cbdd3138 | 6787 | See \`config.log' for more details." >&2;} |
81ae7da0 | 6788 | { (exit 1); exit 1; }; } ;; |
f69335e6 | 6789 | esac |
81ae7da0 BM |
6790 | else |
6791 | if test "$cross_compiling" = yes; then | |
64b46a71 | 6792 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
6793 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
81ae7da0 | 6794 | { (exit 1); exit 1; }; } |
29ad0e8f | 6795 | else |
f69335e6 | 6796 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
6797 | /* confdefs.h. */ |
6798 | _ACEOF | |
6799 | cat confdefs.h >>conftest.$ac_ext | |
6800 | cat >>conftest.$ac_ext <<_ACEOF | |
6801 | /* end confdefs.h. */ | |
f69335e6 | 6802 | $ac_includes_default |
81ae7da0 BM |
6803 | long longval () { return (long) (sizeof (long)); } |
6804 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
29ad0e8f | 6805 | #include <stdio.h> |
f69335e6 | 6806 | #include <stdlib.h> |
f69335e6 | 6807 | int |
6808 | main () | |
29ad0e8f | 6809 | { |
f69335e6 | 6810 | |
6811 | FILE *f = fopen ("conftest.val", "w"); | |
6812 | if (! f) | |
81ae7da0 BM |
6813 | exit (1); |
6814 | if (((long) (sizeof (long))) < 0) | |
f69335e6 | 6815 | { |
81ae7da0 BM |
6816 | long i = longval (); |
6817 | if (i != ((long) (sizeof (long)))) | |
6818 | exit (1); | |
f69335e6 | 6819 | fprintf (f, "%ld\n", i); |
6820 | } | |
6821 | else | |
6822 | { | |
81ae7da0 BM |
6823 | unsigned long i = ulongval (); |
6824 | if (i != ((long) (sizeof (long)))) | |
6825 | exit (1); | |
f69335e6 | 6826 | fprintf (f, "%lu\n", i); |
6827 | } | |
81ae7da0 | 6828 | exit (ferror (f) || fclose (f) != 0); |
f69335e6 | 6829 | |
6830 | ; | |
6831 | return 0; | |
29ad0e8f | 6832 | } |
f69335e6 | 6833 | _ACEOF |
6834 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
6835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6836 | (eval $ac_link) 2>&5 | |
f69335e6 | 6837 | ac_status=$? |
6838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6839 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
6840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6841 | (eval $ac_try) 2>&5 | |
f69335e6 | 6842 | ac_status=$? |
6843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6844 | (exit $ac_status); }; }; then | |
6845 | ac_cv_sizeof_long=`cat conftest.val` | |
6846 | else | |
6847 | echo "$as_me: program exited with status $ac_status" >&5 | |
6848 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
6849 | sed 's/^/| /' conftest.$ac_ext >&5 |
6850 | ||
f69335e6 | 6851 | ( exit $ac_status ) |
81ae7da0 | 6852 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
cbdd3138 | 6853 | See \`config.log' for more details." >&5 |
81ae7da0 | 6854 | echo "$as_me: error: cannot compute sizeof (long), 77 |
cbdd3138 | 6855 | See \`config.log' for more details." >&2;} |
81ae7da0 BM |
6856 | { (exit 1); exit 1; }; } |
6857 | fi | |
6858 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f69335e6 | 6859 | fi |
6860 | fi | |
6861 | rm -f conftest.val | |
f40ec73c | 6862 | else |
29ad0e8f | 6863 | ac_cv_sizeof_long=0 |
6864 | fi | |
29ad0e8f | 6865 | fi |
81ae7da0 BM |
6866 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
6867 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
f69335e6 | 6868 | cat >>confdefs.h <<_ACEOF |
29ad0e8f | 6869 | #define SIZEOF_LONG $ac_cv_sizeof_long |
f69335e6 | 6870 | _ACEOF |
29ad0e8f | 6871 | |
6872 | ||
6873 | if test "$ac_cv_sizeof_int" = 2 ; then | |
81ae7da0 BM |
6874 | echo "$as_me:$LINENO: checking for int16_t" >&5 |
6875 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 | |
f69335e6 | 6876 | if test "${ac_cv_type_int16_t+set}" = set; then |
6877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 6878 | else |
f69335e6 | 6879 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
6880 | /* confdefs.h. */ |
6881 | _ACEOF | |
6882 | cat confdefs.h >>conftest.$ac_ext | |
6883 | cat >>conftest.$ac_ext <<_ACEOF | |
6884 | /* end confdefs.h. */ | |
f69335e6 | 6885 | $ac_includes_default |
f69335e6 | 6886 | int |
6887 | main () | |
6888 | { | |
81ae7da0 | 6889 | if ((int16_t *) 0) |
f69335e6 | 6890 | return 0; |
81ae7da0 | 6891 | if (sizeof (int16_t)) |
f69335e6 | 6892 | return 0; |
6893 | ; | |
6894 | return 0; | |
6895 | } | |
6896 | _ACEOF | |
6897 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6899 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6900 | ac_status=$? |
cbdd3138 BM |
6901 | grep -v '^ *+' conftest.er1 >conftest.err |
6902 | rm -f conftest.er1 | |
6903 | cat conftest.err >&5 | |
f69335e6 | 6904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6905 | (exit $ac_status); } && | |
64b46a71 | 6906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6908 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6909 | ac_status=$? |
6910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6911 | (exit $ac_status); }; } && | |
6912 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6914 | (eval $ac_try) 2>&5 | |
f69335e6 | 6915 | ac_status=$? |
6916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6917 | (exit $ac_status); }; }; then | |
29ad0e8f | 6918 | ac_cv_type_int16_t=yes |
6919 | else | |
f69335e6 | 6920 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
6921 | sed 's/^/| /' conftest.$ac_ext >&5 |
6922 | ||
81ae7da0 | 6923 | ac_cv_type_int16_t=no |
29ad0e8f | 6924 | fi |
81ae7da0 | 6925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 6926 | fi |
81ae7da0 BM |
6927 | echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 |
6928 | echo "${ECHO_T}$ac_cv_type_int16_t" >&6 | |
f69335e6 | 6929 | if test $ac_cv_type_int16_t = yes; then |
6930 | : | |
6931 | else | |
6932 | ||
6933 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 6934 | #define int16_t int |
f69335e6 | 6935 | _ACEOF |
29ad0e8f | 6936 | |
6937 | fi | |
6938 | ||
81ae7da0 BM |
6939 | echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
6940 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 | |
f69335e6 | 6941 | if test "${ac_cv_type_u_int16_t+set}" = set; then |
6942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 6943 | else |
f69335e6 | 6944 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
6945 | /* confdefs.h. */ |
6946 | _ACEOF | |
6947 | cat confdefs.h >>conftest.$ac_ext | |
6948 | cat >>conftest.$ac_ext <<_ACEOF | |
6949 | /* end confdefs.h. */ | |
f69335e6 | 6950 | $ac_includes_default |
f69335e6 | 6951 | int |
6952 | main () | |
6953 | { | |
81ae7da0 | 6954 | if ((u_int16_t *) 0) |
f69335e6 | 6955 | return 0; |
81ae7da0 | 6956 | if (sizeof (u_int16_t)) |
f69335e6 | 6957 | return 0; |
6958 | ; | |
6959 | return 0; | |
6960 | } | |
6961 | _ACEOF | |
6962 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
6963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6964 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 6965 | ac_status=$? |
cbdd3138 BM |
6966 | grep -v '^ *+' conftest.er1 >conftest.err |
6967 | rm -f conftest.er1 | |
6968 | cat conftest.err >&5 | |
f69335e6 | 6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6970 | (exit $ac_status); } && | |
64b46a71 | 6971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
6972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6973 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
6974 | ac_status=$? |
6975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6976 | (exit $ac_status); }; } && | |
6977 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
6978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6979 | (eval $ac_try) 2>&5 | |
f69335e6 | 6980 | ac_status=$? |
6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6982 | (exit $ac_status); }; }; then | |
29ad0e8f | 6983 | ac_cv_type_u_int16_t=yes |
6984 | else | |
f69335e6 | 6985 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
6986 | sed 's/^/| /' conftest.$ac_ext >&5 |
6987 | ||
81ae7da0 | 6988 | ac_cv_type_u_int16_t=no |
29ad0e8f | 6989 | fi |
81ae7da0 | 6990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 6991 | fi |
81ae7da0 BM |
6992 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
6993 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 | |
f69335e6 | 6994 | if test $ac_cv_type_u_int16_t = yes; then |
6995 | : | |
6996 | else | |
6997 | ||
6998 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 6999 | #define u_int16_t unsigned int |
f69335e6 | 7000 | _ACEOF |
29ad0e8f | 7001 | |
7002 | fi | |
7003 | ||
7004 | elif test "$ac_cv_sizeof_short" = 2 ; then | |
81ae7da0 BM |
7005 | echo "$as_me:$LINENO: checking for int16_t" >&5 |
7006 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 | |
f69335e6 | 7007 | if test "${ac_cv_type_int16_t+set}" = set; then |
7008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 7009 | else |
f69335e6 | 7010 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7011 | /* confdefs.h. */ |
7012 | _ACEOF | |
7013 | cat confdefs.h >>conftest.$ac_ext | |
7014 | cat >>conftest.$ac_ext <<_ACEOF | |
7015 | /* end confdefs.h. */ | |
f69335e6 | 7016 | $ac_includes_default |
f69335e6 | 7017 | int |
7018 | main () | |
7019 | { | |
81ae7da0 | 7020 | if ((int16_t *) 0) |
f69335e6 | 7021 | return 0; |
81ae7da0 | 7022 | if (sizeof (int16_t)) |
f69335e6 | 7023 | return 0; |
7024 | ; | |
7025 | return 0; | |
7026 | } | |
7027 | _ACEOF | |
7028 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7030 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 7031 | ac_status=$? |
cbdd3138 BM |
7032 | grep -v '^ *+' conftest.er1 >conftest.err |
7033 | rm -f conftest.er1 | |
7034 | cat conftest.err >&5 | |
f69335e6 | 7035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7036 | (exit $ac_status); } && | |
64b46a71 | 7037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7039 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7040 | ac_status=$? |
7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7042 | (exit $ac_status); }; } && | |
7043 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7045 | (eval $ac_try) 2>&5 | |
f69335e6 | 7046 | ac_status=$? |
7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7048 | (exit $ac_status); }; }; then | |
29ad0e8f | 7049 | ac_cv_type_int16_t=yes |
7050 | else | |
f69335e6 | 7051 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
7052 | sed 's/^/| /' conftest.$ac_ext >&5 |
7053 | ||
81ae7da0 | 7054 | ac_cv_type_int16_t=no |
29ad0e8f | 7055 | fi |
81ae7da0 | 7056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 7057 | fi |
81ae7da0 BM |
7058 | echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 |
7059 | echo "${ECHO_T}$ac_cv_type_int16_t" >&6 | |
f69335e6 | 7060 | if test $ac_cv_type_int16_t = yes; then |
7061 | : | |
7062 | else | |
7063 | ||
7064 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 7065 | #define int16_t short |
f69335e6 | 7066 | _ACEOF |
29ad0e8f | 7067 | |
7068 | fi | |
7069 | ||
81ae7da0 BM |
7070 | echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
7071 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 | |
f69335e6 | 7072 | if test "${ac_cv_type_u_int16_t+set}" = set; then |
7073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 7074 | else |
f69335e6 | 7075 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7076 | /* confdefs.h. */ |
7077 | _ACEOF | |
7078 | cat confdefs.h >>conftest.$ac_ext | |
7079 | cat >>conftest.$ac_ext <<_ACEOF | |
7080 | /* end confdefs.h. */ | |
f69335e6 | 7081 | $ac_includes_default |
f69335e6 | 7082 | int |
7083 | main () | |
7084 | { | |
81ae7da0 | 7085 | if ((u_int16_t *) 0) |
f69335e6 | 7086 | return 0; |
81ae7da0 | 7087 | if (sizeof (u_int16_t)) |
f69335e6 | 7088 | return 0; |
7089 | ; | |
7090 | return 0; | |
7091 | } | |
7092 | _ACEOF | |
7093 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7095 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 7096 | ac_status=$? |
cbdd3138 BM |
7097 | grep -v '^ *+' conftest.er1 >conftest.err |
7098 | rm -f conftest.er1 | |
7099 | cat conftest.err >&5 | |
f69335e6 | 7100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7101 | (exit $ac_status); } && | |
64b46a71 | 7102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7104 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7105 | ac_status=$? |
7106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7107 | (exit $ac_status); }; } && | |
7108 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7110 | (eval $ac_try) 2>&5 | |
f69335e6 | 7111 | ac_status=$? |
7112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7113 | (exit $ac_status); }; }; then | |
29ad0e8f | 7114 | ac_cv_type_u_int16_t=yes |
7115 | else | |
f69335e6 | 7116 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
7117 | sed 's/^/| /' conftest.$ac_ext >&5 |
7118 | ||
81ae7da0 | 7119 | ac_cv_type_u_int16_t=no |
f40ec73c | 7120 | fi |
81ae7da0 | 7121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 7122 | fi |
81ae7da0 BM |
7123 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
7124 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 | |
f69335e6 | 7125 | if test $ac_cv_type_u_int16_t = yes; then |
7126 | : | |
7127 | else | |
7128 | ||
7129 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 7130 | #define u_int16_t unsigned short |
f69335e6 | 7131 | _ACEOF |
29ad0e8f | 7132 | |
7133 | fi | |
7134 | ||
7135 | else | |
f69335e6 | 7136 | { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5 |
7137 | echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;} | |
7138 | { (exit 1); exit 1; }; } | |
29ad0e8f | 7139 | fi |
7140 | if test "$ac_cv_sizeof_int" = 4 ; then | |
81ae7da0 BM |
7141 | echo "$as_me:$LINENO: checking for int32_t" >&5 |
7142 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 | |
f69335e6 | 7143 | if test "${ac_cv_type_int32_t+set}" = set; then |
7144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 7145 | else |
f69335e6 | 7146 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7147 | /* confdefs.h. */ |
7148 | _ACEOF | |
7149 | cat confdefs.h >>conftest.$ac_ext | |
7150 | cat >>conftest.$ac_ext <<_ACEOF | |
7151 | /* end confdefs.h. */ | |
f69335e6 | 7152 | $ac_includes_default |
f69335e6 | 7153 | int |
7154 | main () | |
7155 | { | |
81ae7da0 | 7156 | if ((int32_t *) 0) |
f69335e6 | 7157 | return 0; |
81ae7da0 | 7158 | if (sizeof (int32_t)) |
f69335e6 | 7159 | return 0; |
7160 | ; | |
7161 | return 0; | |
7162 | } | |
7163 | _ACEOF | |
7164 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7166 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 7167 | ac_status=$? |
cbdd3138 BM |
7168 | grep -v '^ *+' conftest.er1 >conftest.err |
7169 | rm -f conftest.er1 | |
7170 | cat conftest.err >&5 | |
f69335e6 | 7171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7172 | (exit $ac_status); } && | |
64b46a71 | 7173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7175 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7176 | ac_status=$? |
7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7178 | (exit $ac_status); }; } && | |
7179 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7181 | (eval $ac_try) 2>&5 | |
f69335e6 | 7182 | ac_status=$? |
7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7184 | (exit $ac_status); }; }; then | |
29ad0e8f | 7185 | ac_cv_type_int32_t=yes |
7186 | else | |
f69335e6 | 7187 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
7188 | sed 's/^/| /' conftest.$ac_ext >&5 |
7189 | ||
81ae7da0 | 7190 | ac_cv_type_int32_t=no |
29ad0e8f | 7191 | fi |
81ae7da0 | 7192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 7193 | fi |
81ae7da0 BM |
7194 | echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 |
7195 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6 | |
f69335e6 | 7196 | if test $ac_cv_type_int32_t = yes; then |
7197 | : | |
7198 | else | |
7199 | ||
7200 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 7201 | #define int32_t int |
f69335e6 | 7202 | _ACEOF |
29ad0e8f | 7203 | |
7204 | fi | |
7205 | ||
81ae7da0 BM |
7206 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
7207 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
f69335e6 | 7208 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
7209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 7210 | else |
f69335e6 | 7211 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7212 | /* confdefs.h. */ |
7213 | _ACEOF | |
7214 | cat confdefs.h >>conftest.$ac_ext | |
7215 | cat >>conftest.$ac_ext <<_ACEOF | |
7216 | /* end confdefs.h. */ | |
f69335e6 | 7217 | $ac_includes_default |
f69335e6 | 7218 | int |
7219 | main () | |
7220 | { | |
81ae7da0 | 7221 | if ((u_int32_t *) 0) |
f69335e6 | 7222 | return 0; |
81ae7da0 | 7223 | if (sizeof (u_int32_t)) |
f69335e6 | 7224 | return 0; |
7225 | ; | |
7226 | return 0; | |
7227 | } | |
7228 | _ACEOF | |
7229 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7231 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 7232 | ac_status=$? |
cbdd3138 BM |
7233 | grep -v '^ *+' conftest.er1 >conftest.err |
7234 | rm -f conftest.er1 | |
7235 | cat conftest.err >&5 | |
f69335e6 | 7236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7237 | (exit $ac_status); } && | |
64b46a71 | 7238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7240 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7241 | ac_status=$? |
7242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7243 | (exit $ac_status); }; } && | |
7244 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7246 | (eval $ac_try) 2>&5 | |
f69335e6 | 7247 | ac_status=$? |
7248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7249 | (exit $ac_status); }; }; then | |
29ad0e8f | 7250 | ac_cv_type_u_int32_t=yes |
7251 | else | |
f69335e6 | 7252 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
7253 | sed 's/^/| /' conftest.$ac_ext >&5 |
7254 | ||
81ae7da0 | 7255 | ac_cv_type_u_int32_t=no |
29ad0e8f | 7256 | fi |
81ae7da0 | 7257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 7258 | fi |
81ae7da0 BM |
7259 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
7260 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
f69335e6 | 7261 | if test $ac_cv_type_u_int32_t = yes; then |
7262 | : | |
7263 | else | |
7264 | ||
7265 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 7266 | #define u_int32_t unsigned int |
f69335e6 | 7267 | _ACEOF |
29ad0e8f | 7268 | |
7269 | fi | |
7270 | ||
7271 | elif test "$ac_cv_sizeof_short" = 4 ; then | |
81ae7da0 BM |
7272 | echo "$as_me:$LINENO: checking for int32_t" >&5 |
7273 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 | |
f69335e6 | 7274 | if test "${ac_cv_type_int32_t+set}" = set; then |
7275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 7276 | else |
f69335e6 | 7277 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7278 | /* confdefs.h. */ |
7279 | _ACEOF | |
7280 | cat confdefs.h >>conftest.$ac_ext | |
7281 | cat >>conftest.$ac_ext <<_ACEOF | |
7282 | /* end confdefs.h. */ | |
f69335e6 | 7283 | $ac_includes_default |
f69335e6 | 7284 | int |
7285 | main () | |
7286 | { | |
81ae7da0 | 7287 | if ((int32_t *) 0) |
f69335e6 | 7288 | return 0; |
81ae7da0 | 7289 | if (sizeof (int32_t)) |
f69335e6 | 7290 | return 0; |
7291 | ; | |
7292 | return 0; | |
7293 | } | |
7294 | _ACEOF | |
7295 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7297 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 7298 | ac_status=$? |
cbdd3138 BM |
7299 | grep -v '^ *+' conftest.er1 >conftest.err |
7300 | rm -f conftest.er1 | |
7301 | cat conftest.err >&5 | |
f69335e6 | 7302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7303 | (exit $ac_status); } && | |
64b46a71 | 7304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7306 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7307 | ac_status=$? |
7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7309 | (exit $ac_status); }; } && | |
7310 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7312 | (eval $ac_try) 2>&5 | |
f69335e6 | 7313 | ac_status=$? |
7314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7315 | (exit $ac_status); }; }; then | |
29ad0e8f | 7316 | ac_cv_type_int32_t=yes |
7317 | else | |
f69335e6 | 7318 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
7319 | sed 's/^/| /' conftest.$ac_ext >&5 |
7320 | ||
81ae7da0 | 7321 | ac_cv_type_int32_t=no |
29ad0e8f | 7322 | fi |
81ae7da0 | 7323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 7324 | fi |
81ae7da0 BM |
7325 | echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 |
7326 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6 | |
f69335e6 | 7327 | if test $ac_cv_type_int32_t = yes; then |
7328 | : | |
7329 | else | |
7330 | ||
7331 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 7332 | #define int32_t short |
f69335e6 | 7333 | _ACEOF |
f40ec73c | 7334 | |
f40ec73c | 7335 | fi |
29ad0e8f | 7336 | |
81ae7da0 BM |
7337 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
7338 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
f69335e6 | 7339 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
7340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 7341 | else |
f69335e6 | 7342 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7343 | /* confdefs.h. */ |
7344 | _ACEOF | |
7345 | cat confdefs.h >>conftest.$ac_ext | |
7346 | cat >>conftest.$ac_ext <<_ACEOF | |
7347 | /* end confdefs.h. */ | |
f69335e6 | 7348 | $ac_includes_default |
f69335e6 | 7349 | int |
7350 | main () | |
7351 | { | |
81ae7da0 | 7352 | if ((u_int32_t *) 0) |
f69335e6 | 7353 | return 0; |
81ae7da0 | 7354 | if (sizeof (u_int32_t)) |
f69335e6 | 7355 | return 0; |
7356 | ; | |
7357 | return 0; | |
7358 | } | |
7359 | _ACEOF | |
7360 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7362 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 7363 | ac_status=$? |
cbdd3138 BM |
7364 | grep -v '^ *+' conftest.er1 >conftest.err |
7365 | rm -f conftest.er1 | |
7366 | cat conftest.err >&5 | |
f69335e6 | 7367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7368 | (exit $ac_status); } && | |
64b46a71 | 7369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7371 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7372 | ac_status=$? |
7373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7374 | (exit $ac_status); }; } && | |
7375 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7377 | (eval $ac_try) 2>&5 | |
f69335e6 | 7378 | ac_status=$? |
7379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7380 | (exit $ac_status); }; }; then | |
29ad0e8f | 7381 | ac_cv_type_u_int32_t=yes |
7382 | else | |
f69335e6 | 7383 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
7384 | sed 's/^/| /' conftest.$ac_ext >&5 |
7385 | ||
81ae7da0 | 7386 | ac_cv_type_u_int32_t=no |
29ad0e8f | 7387 | fi |
81ae7da0 | 7388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 7389 | fi |
81ae7da0 BM |
7390 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
7391 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
f69335e6 | 7392 | if test $ac_cv_type_u_int32_t = yes; then |
7393 | : | |
7394 | else | |
7395 | ||
7396 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 7397 | #define u_int32_t unsigned short |
f69335e6 | 7398 | _ACEOF |
29ad0e8f | 7399 | |
7400 | fi | |
7401 | ||
7402 | elif test "$ac_cv_sizeof_long" = 4 ; then | |
81ae7da0 BM |
7403 | echo "$as_me:$LINENO: checking for int32_t" >&5 |
7404 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 | |
f69335e6 | 7405 | if test "${ac_cv_type_int32_t+set}" = set; then |
7406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 7407 | else |
f69335e6 | 7408 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7409 | /* confdefs.h. */ |
7410 | _ACEOF | |
7411 | cat confdefs.h >>conftest.$ac_ext | |
7412 | cat >>conftest.$ac_ext <<_ACEOF | |
7413 | /* end confdefs.h. */ | |
f69335e6 | 7414 | $ac_includes_default |
f69335e6 | 7415 | int |
7416 | main () | |
7417 | { | |
81ae7da0 | 7418 | if ((int32_t *) 0) |
f69335e6 | 7419 | return 0; |
81ae7da0 | 7420 | if (sizeof (int32_t)) |
f69335e6 | 7421 | return 0; |
7422 | ; | |
7423 | return 0; | |
7424 | } | |
7425 | _ACEOF | |
7426 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7428 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 7429 | ac_status=$? |
cbdd3138 BM |
7430 | grep -v '^ *+' conftest.er1 >conftest.err |
7431 | rm -f conftest.er1 | |
7432 | cat conftest.err >&5 | |
f69335e6 | 7433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7434 | (exit $ac_status); } && | |
64b46a71 | 7435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7437 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7438 | ac_status=$? |
7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7440 | (exit $ac_status); }; } && | |
7441 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7443 | (eval $ac_try) 2>&5 | |
f69335e6 | 7444 | ac_status=$? |
7445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7446 | (exit $ac_status); }; }; then | |
29ad0e8f | 7447 | ac_cv_type_int32_t=yes |
7448 | else | |
f69335e6 | 7449 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
7450 | sed 's/^/| /' conftest.$ac_ext >&5 |
7451 | ||
81ae7da0 | 7452 | ac_cv_type_int32_t=no |
29ad0e8f | 7453 | fi |
81ae7da0 | 7454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 7455 | fi |
81ae7da0 BM |
7456 | echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 |
7457 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6 | |
f69335e6 | 7458 | if test $ac_cv_type_int32_t = yes; then |
7459 | : | |
7460 | else | |
7461 | ||
7462 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 7463 | #define int32_t long |
f69335e6 | 7464 | _ACEOF |
29ad0e8f | 7465 | |
7466 | fi | |
7467 | ||
81ae7da0 BM |
7468 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
7469 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
f69335e6 | 7470 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
7471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29ad0e8f | 7472 | else |
f69335e6 | 7473 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7474 | /* confdefs.h. */ |
7475 | _ACEOF | |
7476 | cat confdefs.h >>conftest.$ac_ext | |
7477 | cat >>conftest.$ac_ext <<_ACEOF | |
7478 | /* end confdefs.h. */ | |
f69335e6 | 7479 | $ac_includes_default |
f69335e6 | 7480 | int |
7481 | main () | |
7482 | { | |
81ae7da0 | 7483 | if ((u_int32_t *) 0) |
f69335e6 | 7484 | return 0; |
81ae7da0 | 7485 | if (sizeof (u_int32_t)) |
f69335e6 | 7486 | return 0; |
7487 | ; | |
7488 | return 0; | |
7489 | } | |
7490 | _ACEOF | |
7491 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7493 | (eval $ac_compile) 2>conftest.er1 | |
f69335e6 | 7494 | ac_status=$? |
cbdd3138 BM |
7495 | grep -v '^ *+' conftest.er1 >conftest.err |
7496 | rm -f conftest.er1 | |
7497 | cat conftest.err >&5 | |
f69335e6 | 7498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7499 | (exit $ac_status); } && | |
64b46a71 | 7500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7502 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7503 | ac_status=$? |
7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7505 | (exit $ac_status); }; } && | |
7506 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7508 | (eval $ac_try) 2>&5 | |
f69335e6 | 7509 | ac_status=$? |
7510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7511 | (exit $ac_status); }; }; then | |
29ad0e8f | 7512 | ac_cv_type_u_int32_t=yes |
7513 | else | |
f69335e6 | 7514 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
7515 | sed 's/^/| /' conftest.$ac_ext >&5 |
7516 | ||
81ae7da0 | 7517 | ac_cv_type_u_int32_t=no |
29ad0e8f | 7518 | fi |
81ae7da0 | 7519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
29ad0e8f | 7520 | fi |
81ae7da0 BM |
7521 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
7522 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
f69335e6 | 7523 | if test $ac_cv_type_u_int32_t = yes; then |
7524 | : | |
7525 | else | |
7526 | ||
7527 | cat >>confdefs.h <<_ACEOF | |
29ad0e8f | 7528 | #define u_int32_t unsigned long |
f69335e6 | 7529 | _ACEOF |
29ad0e8f | 7530 | |
7531 | fi | |
7532 | ||
7533 | else | |
f69335e6 | 7534 | { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5 |
7535 | echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;} | |
7536 | { (exit 1); exit 1; }; } | |
29ad0e8f | 7537 | fi |
81ae7da0 BM |
7538 | echo "$as_me:$LINENO: checking for rlim_t" >&5 |
7539 | echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 | |
efb54b62 | 7540 | if test "${ac_cv_type_rlim_t+set}" = set; then |
7541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7542 | else | |
7543 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
7544 | /* confdefs.h. */ |
7545 | _ACEOF | |
7546 | cat confdefs.h >>conftest.$ac_ext | |
7547 | cat >>conftest.$ac_ext <<_ACEOF | |
7548 | /* end confdefs.h. */ | |
efb54b62 | 7549 | $ac_includes_default |
efb54b62 | 7550 | int |
7551 | main () | |
7552 | { | |
81ae7da0 | 7553 | if ((rlim_t *) 0) |
efb54b62 | 7554 | return 0; |
81ae7da0 | 7555 | if (sizeof (rlim_t)) |
efb54b62 | 7556 | return 0; |
7557 | ; | |
7558 | return 0; | |
7559 | } | |
7560 | _ACEOF | |
7561 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7563 | (eval $ac_compile) 2>conftest.er1 | |
efb54b62 | 7564 | ac_status=$? |
cbdd3138 BM |
7565 | grep -v '^ *+' conftest.er1 >conftest.err |
7566 | rm -f conftest.er1 | |
7567 | cat conftest.err >&5 | |
efb54b62 | 7568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7569 | (exit $ac_status); } && | |
64b46a71 | 7570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7572 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7573 | ac_status=$? |
7574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7575 | (exit $ac_status); }; } && | |
7576 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7578 | (eval $ac_try) 2>&5 | |
efb54b62 | 7579 | ac_status=$? |
7580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7581 | (exit $ac_status); }; }; then | |
7582 | ac_cv_type_rlim_t=yes | |
7583 | else | |
7584 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
7585 | sed 's/^/| /' conftest.$ac_ext >&5 |
7586 | ||
81ae7da0 | 7587 | ac_cv_type_rlim_t=no |
efb54b62 | 7588 | fi |
81ae7da0 | 7589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
efb54b62 | 7590 | fi |
81ae7da0 BM |
7591 | echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
7592 | echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 | |
efb54b62 | 7593 | |
81ae7da0 BM |
7594 | echo "$as_me:$LINENO: checking size of rlim_t" >&5 |
7595 | echo $ECHO_N "checking size of rlim_t... $ECHO_C" >&6 | |
efb54b62 | 7596 | if test "${ac_cv_sizeof_rlim_t+set}" = set; then |
7597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7598 | else | |
7599 | if test "$ac_cv_type_rlim_t" = yes; then | |
81ae7da0 | 7600 | # The cast to unsigned long works around a bug in the HP C Compiler |
efb54b62 | 7601 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
7602 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7603 | # This bug is HP SR number 8606223364. | |
7604 | if test "$cross_compiling" = yes; then | |
7605 | # Depending upon the size, compute the lo and hi bounds. | |
7606 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
7607 | /* confdefs.h. */ |
7608 | _ACEOF | |
7609 | cat confdefs.h >>conftest.$ac_ext | |
7610 | cat >>conftest.$ac_ext <<_ACEOF | |
7611 | /* end confdefs.h. */ | |
efb54b62 | 7612 | $ac_includes_default |
efb54b62 | 7613 | int |
7614 | main () | |
7615 | { | |
81ae7da0 | 7616 | static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) >= 0)]; |
efb54b62 | 7617 | test_array [0] = 0 |
7618 | ||
7619 | ; | |
7620 | return 0; | |
7621 | } | |
7622 | _ACEOF | |
7623 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7625 | (eval $ac_compile) 2>conftest.er1 | |
efb54b62 | 7626 | ac_status=$? |
cbdd3138 BM |
7627 | grep -v '^ *+' conftest.er1 >conftest.err |
7628 | rm -f conftest.er1 | |
7629 | cat conftest.err >&5 | |
efb54b62 | 7630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7631 | (exit $ac_status); } && | |
64b46a71 | 7632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7634 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7635 | ac_status=$? |
7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7637 | (exit $ac_status); }; } && | |
7638 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7640 | (eval $ac_try) 2>&5 | |
efb54b62 | 7641 | ac_status=$? |
7642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7643 | (exit $ac_status); }; }; then | |
7644 | ac_lo=0 ac_mid=0 | |
7645 | while :; do | |
7646 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
7647 | /* confdefs.h. */ |
7648 | _ACEOF | |
7649 | cat confdefs.h >>conftest.$ac_ext | |
7650 | cat >>conftest.$ac_ext <<_ACEOF | |
7651 | /* end confdefs.h. */ | |
efb54b62 | 7652 | $ac_includes_default |
efb54b62 | 7653 | int |
7654 | main () | |
7655 | { | |
81ae7da0 | 7656 | static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) <= $ac_mid)]; |
efb54b62 | 7657 | test_array [0] = 0 |
7658 | ||
7659 | ; | |
7660 | return 0; | |
7661 | } | |
7662 | _ACEOF | |
7663 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7665 | (eval $ac_compile) 2>conftest.er1 | |
efb54b62 | 7666 | ac_status=$? |
cbdd3138 BM |
7667 | grep -v '^ *+' conftest.er1 >conftest.err |
7668 | rm -f conftest.er1 | |
7669 | cat conftest.err >&5 | |
efb54b62 | 7670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7671 | (exit $ac_status); } && | |
64b46a71 | 7672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7674 | (eval $ac_try) 2>&5 | |
efb54b62 | 7675 | ac_status=$? |
7676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
cbdd3138 BM |
7677 | (exit $ac_status); }; } && |
7678 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7680 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7681 | ac_status=$? |
7682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7683 | (exit $ac_status); }; }; then | |
efb54b62 | 7684 | ac_hi=$ac_mid; break |
7685 | else | |
7686 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
7687 | sed 's/^/| /' conftest.$ac_ext >&5 |
7688 | ||
81ae7da0 BM |
7689 | ac_lo=`expr $ac_mid + 1` |
7690 | if test $ac_lo -le $ac_mid; then | |
7691 | ac_lo= ac_hi= | |
7692 | break | |
7693 | fi | |
7694 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
efb54b62 | 7695 | fi |
81ae7da0 | 7696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
efb54b62 | 7697 | done |
7698 | else | |
7699 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
7700 | sed 's/^/| /' conftest.$ac_ext >&5 |
7701 | ||
81ae7da0 | 7702 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7703 | /* confdefs.h. */ |
7704 | _ACEOF | |
7705 | cat confdefs.h >>conftest.$ac_ext | |
7706 | cat >>conftest.$ac_ext <<_ACEOF | |
7707 | /* end confdefs.h. */ | |
efb54b62 | 7708 | $ac_includes_default |
efb54b62 | 7709 | int |
7710 | main () | |
7711 | { | |
81ae7da0 | 7712 | static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) < 0)]; |
efb54b62 | 7713 | test_array [0] = 0 |
7714 | ||
7715 | ; | |
7716 | return 0; | |
7717 | } | |
7718 | _ACEOF | |
7719 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7721 | (eval $ac_compile) 2>conftest.er1 | |
efb54b62 | 7722 | ac_status=$? |
cbdd3138 BM |
7723 | grep -v '^ *+' conftest.er1 >conftest.err |
7724 | rm -f conftest.er1 | |
7725 | cat conftest.err >&5 | |
efb54b62 | 7726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7727 | (exit $ac_status); } && | |
64b46a71 | 7728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7730 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7731 | ac_status=$? |
7732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7733 | (exit $ac_status); }; } && | |
7734 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7736 | (eval $ac_try) 2>&5 | |
efb54b62 | 7737 | ac_status=$? |
7738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7739 | (exit $ac_status); }; }; then | |
7740 | ac_hi=-1 ac_mid=-1 | |
7741 | while :; do | |
7742 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
7743 | /* confdefs.h. */ |
7744 | _ACEOF | |
7745 | cat confdefs.h >>conftest.$ac_ext | |
7746 | cat >>conftest.$ac_ext <<_ACEOF | |
7747 | /* end confdefs.h. */ | |
efb54b62 | 7748 | $ac_includes_default |
efb54b62 | 7749 | int |
7750 | main () | |
7751 | { | |
81ae7da0 | 7752 | static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) >= $ac_mid)]; |
efb54b62 | 7753 | test_array [0] = 0 |
7754 | ||
7755 | ; | |
7756 | return 0; | |
7757 | } | |
7758 | _ACEOF | |
7759 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7761 | (eval $ac_compile) 2>conftest.er1 | |
efb54b62 | 7762 | ac_status=$? |
cbdd3138 BM |
7763 | grep -v '^ *+' conftest.er1 >conftest.err |
7764 | rm -f conftest.er1 | |
7765 | cat conftest.err >&5 | |
efb54b62 | 7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7767 | (exit $ac_status); } && | |
64b46a71 | 7768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7770 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7771 | ac_status=$? |
7772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7773 | (exit $ac_status); }; } && | |
7774 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7776 | (eval $ac_try) 2>&5 | |
efb54b62 | 7777 | ac_status=$? |
7778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7779 | (exit $ac_status); }; }; then | |
7780 | ac_lo=$ac_mid; break | |
7781 | else | |
7782 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
7783 | sed 's/^/| /' conftest.$ac_ext >&5 |
7784 | ||
81ae7da0 BM |
7785 | ac_hi=`expr '(' $ac_mid ')' - 1` |
7786 | if test $ac_mid -le $ac_hi; then | |
7787 | ac_lo= ac_hi= | |
7788 | break | |
7789 | fi | |
7790 | ac_mid=`expr 2 '*' $ac_mid` | |
efb54b62 | 7791 | fi |
81ae7da0 | 7792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
efb54b62 | 7793 | done |
7794 | else | |
7795 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
7796 | sed 's/^/| /' conftest.$ac_ext >&5 |
7797 | ||
81ae7da0 | 7798 | ac_lo= ac_hi= |
efb54b62 | 7799 | fi |
81ae7da0 | 7800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
efb54b62 | 7801 | fi |
81ae7da0 | 7802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
efb54b62 | 7803 | # Binary search between lo and hi bounds. |
7804 | while test "x$ac_lo" != "x$ac_hi"; do | |
7805 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7806 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
7807 | /* confdefs.h. */ |
7808 | _ACEOF | |
7809 | cat confdefs.h >>conftest.$ac_ext | |
7810 | cat >>conftest.$ac_ext <<_ACEOF | |
7811 | /* end confdefs.h. */ | |
efb54b62 | 7812 | $ac_includes_default |
efb54b62 | 7813 | int |
7814 | main () | |
7815 | { | |
81ae7da0 | 7816 | static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) <= $ac_mid)]; |
efb54b62 | 7817 | test_array [0] = 0 |
7818 | ||
7819 | ; | |
7820 | return 0; | |
7821 | } | |
7822 | _ACEOF | |
7823 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
7824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7825 | (eval $ac_compile) 2>conftest.er1 | |
efb54b62 | 7826 | ac_status=$? |
cbdd3138 BM |
7827 | grep -v '^ *+' conftest.er1 >conftest.err |
7828 | rm -f conftest.er1 | |
7829 | cat conftest.err >&5 | |
efb54b62 | 7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7831 | (exit $ac_status); } && | |
64b46a71 | 7832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
7833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7834 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
7835 | ac_status=$? |
7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7837 | (exit $ac_status); }; } && | |
7838 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
7839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7840 | (eval $ac_try) 2>&5 | |
efb54b62 | 7841 | ac_status=$? |
7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7843 | (exit $ac_status); }; }; then | |
7844 | ac_hi=$ac_mid | |
7845 | else | |
7846 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
7847 | sed 's/^/| /' conftest.$ac_ext >&5 |
7848 | ||
81ae7da0 | 7849 | ac_lo=`expr '(' $ac_mid ')' + 1` |
efb54b62 | 7850 | fi |
81ae7da0 | 7851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
efb54b62 | 7852 | done |
7853 | case $ac_lo in | |
7854 | ?*) ac_cv_sizeof_rlim_t=$ac_lo;; | |
81ae7da0 | 7855 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t), 77 |
cbdd3138 | 7856 | See \`config.log' for more details." >&5 |
81ae7da0 | 7857 | echo "$as_me: error: cannot compute sizeof (rlim_t), 77 |
cbdd3138 | 7858 | See \`config.log' for more details." >&2;} |
81ae7da0 | 7859 | { (exit 1); exit 1; }; } ;; |
efb54b62 | 7860 | esac |
81ae7da0 BM |
7861 | else |
7862 | if test "$cross_compiling" = yes; then | |
64b46a71 | 7863 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
7864 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
81ae7da0 | 7865 | { (exit 1); exit 1; }; } |
efb54b62 | 7866 | else |
7867 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
7868 | /* confdefs.h. */ |
7869 | _ACEOF | |
7870 | cat confdefs.h >>conftest.$ac_ext | |
7871 | cat >>conftest.$ac_ext <<_ACEOF | |
7872 | /* end confdefs.h. */ | |
efb54b62 | 7873 | $ac_includes_default |
81ae7da0 BM |
7874 | long longval () { return (long) (sizeof (rlim_t)); } |
7875 | unsigned long ulongval () { return (long) (sizeof (rlim_t)); } | |
efb54b62 | 7876 | #include <stdio.h> |
7877 | #include <stdlib.h> | |
efb54b62 | 7878 | int |
7879 | main () | |
7880 | { | |
7881 | ||
7882 | FILE *f = fopen ("conftest.val", "w"); | |
7883 | if (! f) | |
81ae7da0 BM |
7884 | exit (1); |
7885 | if (((long) (sizeof (rlim_t))) < 0) | |
efb54b62 | 7886 | { |
81ae7da0 BM |
7887 | long i = longval (); |
7888 | if (i != ((long) (sizeof (rlim_t)))) | |
7889 | exit (1); | |
efb54b62 | 7890 | fprintf (f, "%ld\n", i); |
7891 | } | |
7892 | else | |
7893 | { | |
81ae7da0 BM |
7894 | unsigned long i = ulongval (); |
7895 | if (i != ((long) (sizeof (rlim_t)))) | |
7896 | exit (1); | |
efb54b62 | 7897 | fprintf (f, "%lu\n", i); |
7898 | } | |
81ae7da0 | 7899 | exit (ferror (f) || fclose (f) != 0); |
efb54b62 | 7900 | |
7901 | ; | |
7902 | return 0; | |
7903 | } | |
7904 | _ACEOF | |
7905 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
7906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7907 | (eval $ac_link) 2>&5 | |
efb54b62 | 7908 | ac_status=$? |
7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7910 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
7911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7912 | (eval $ac_try) 2>&5 | |
efb54b62 | 7913 | ac_status=$? |
7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7915 | (exit $ac_status); }; }; then | |
7916 | ac_cv_sizeof_rlim_t=`cat conftest.val` | |
7917 | else | |
7918 | echo "$as_me: program exited with status $ac_status" >&5 | |
7919 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
7920 | sed 's/^/| /' conftest.$ac_ext >&5 |
7921 | ||
efb54b62 | 7922 | ( exit $ac_status ) |
81ae7da0 | 7923 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t), 77 |
cbdd3138 | 7924 | See \`config.log' for more details." >&5 |
81ae7da0 | 7925 | echo "$as_me: error: cannot compute sizeof (rlim_t), 77 |
cbdd3138 | 7926 | See \`config.log' for more details." >&2;} |
81ae7da0 BM |
7927 | { (exit 1); exit 1; }; } |
7928 | fi | |
7929 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
efb54b62 | 7930 | fi |
7931 | fi | |
7932 | rm -f conftest.val | |
7933 | else | |
7934 | ac_cv_sizeof_rlim_t=0 | |
7935 | fi | |
7936 | fi | |
81ae7da0 BM |
7937 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_rlim_t" >&5 |
7938 | echo "${ECHO_T}$ac_cv_sizeof_rlim_t" >&6 | |
efb54b62 | 7939 | cat >>confdefs.h <<_ACEOF |
7940 | #define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t | |
7941 | _ACEOF | |
7942 | ||
7943 | ||
7944 | if test "$ac_cv_sizeof_rlim_t" = 8 ; then | |
7945 | cat >>confdefs.h <<\_ACEOF | |
7946 | #define LONG_LONG_RLIM_T 1 | |
7947 | _ACEOF | |
7948 | ||
7949 | fi | |
7950 | ||
29ad0e8f | 7951 | |
81ae7da0 BM |
7952 | echo "$as_me:$LINENO: checking what kind of nonblocking sockets you have" >&5 |
7953 | echo $ECHO_N "checking what kind of nonblocking sockets you have... $ECHO_C" >&6 | |
f69335e6 | 7954 | if test "${ac_cv_nonblocking+set}" = set; then |
7955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 7956 | else |
f69335e6 | 7957 | |
825ee732 | 7958 | save_libs="$LIBS" |
7959 | LIBS="$LIBS $SOCKLIB" | |
f40ec73c | 7960 | if test "$cross_compiling" = yes; then |
cbdd3138 BM |
7961 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
7962 | See \`config.log' for more details." >&5 | |
7963 | echo "$as_me: error: cannot run test program while cross compiling | |
7964 | See \`config.log' for more details." >&2;} | |
f69335e6 | 7965 | { (exit 1); exit 1; }; } |
f40ec73c | 7966 | else |
f69335e6 | 7967 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
7968 | /* confdefs.h. */ |
7969 | _ACEOF | |
7970 | cat confdefs.h >>conftest.$ac_ext | |
7971 | cat >>conftest.$ac_ext <<_ACEOF | |
7972 | /* end confdefs.h. */ | |
f40ec73c | 7973 | |
7974 | #include <sys/types.h> | |
7975 | #include <sys/socket.h> | |
7976 | #include <fcntl.h> | |
7977 | #include <sys/ioctl.h> | |
7978 | #include <sys/file.h> | |
7979 | #include <signal.h> | |
7980 | alarmed() { | |
7981 | exit(1); | |
7982 | } | |
7983 | int main() { | |
7984 | #ifdef O_NONBLOCK | |
7985 | char b[12], x[32]; | |
7986 | int f, l = sizeof(x); | |
7987 | f = socket(AF_INET, SOCK_DGRAM, 0); | |
7988 | if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK))) { | |
7989 | signal(SIGALRM, alarmed); | |
7990 | alarm(3); | |
7991 | recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l); | |
7992 | alarm(0); | |
7993 | exit(0); | |
7994 | } | |
7995 | #endif | |
7996 | exit(1); | |
7997 | } | |
7998 | ||
f69335e6 | 7999 | _ACEOF |
8000 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
8001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8002 | (eval $ac_link) 2>&5 | |
f69335e6 | 8003 | ac_status=$? |
8004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
8006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8007 | (eval $ac_try) 2>&5 | |
f69335e6 | 8008 | ac_status=$? |
8009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8010 | (exit $ac_status); }; }; then | |
f40ec73c | 8011 | ac_cv_nonblocking=O_NONBLOCK |
8012 | else | |
f69335e6 | 8013 | echo "$as_me: program exited with status $ac_status" >&5 |
8014 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8015 | sed 's/^/| /' conftest.$ac_ext >&5 |
8016 | ||
f69335e6 | 8017 | ( exit $ac_status ) |
8018 | ||
f40ec73c | 8019 | if test "$cross_compiling" = yes; then |
cbdd3138 BM |
8020 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
8021 | See \`config.log' for more details." >&5 | |
8022 | echo "$as_me: error: cannot run test program while cross compiling | |
8023 | See \`config.log' for more details." >&2;} | |
f69335e6 | 8024 | { (exit 1); exit 1; }; } |
f40ec73c | 8025 | else |
f69335e6 | 8026 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
8027 | /* confdefs.h. */ |
8028 | _ACEOF | |
8029 | cat confdefs.h >>conftest.$ac_ext | |
8030 | cat >>conftest.$ac_ext <<_ACEOF | |
8031 | /* end confdefs.h. */ | |
f40ec73c | 8032 | |
8033 | #include <sys/types.h> | |
8034 | #include <sys/socket.h> | |
8035 | #include <fcntl.h> | |
8036 | #include <sys/ioctl.h> | |
8037 | #include <sys/file.h> | |
8038 | #include <signal.h> | |
8039 | alarmed() { | |
8040 | exit(0); | |
8041 | } | |
8042 | int main() { | |
8043 | #ifdef O_NDELAY | |
8044 | char b[12], x[32]; | |
8045 | int f, l = sizeof(x); | |
8046 | f = socket(AF_INET, SOCK_DGRAM, 0); | |
8047 | if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY))) { | |
8048 | signal(SIGALRM, alarmed); | |
8049 | alarm(3); | |
8050 | recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l); | |
8051 | alarm(0); | |
8052 | exit(0); | |
8053 | } | |
8054 | #endif | |
8055 | exit(1); | |
8056 | } | |
f69335e6 | 8057 | _ACEOF |
8058 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
8059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8060 | (eval $ac_link) 2>&5 | |
f69335e6 | 8061 | ac_status=$? |
8062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8063 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
8064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8065 | (eval $ac_try) 2>&5 | |
f69335e6 | 8066 | ac_status=$? |
8067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8068 | (exit $ac_status); }; }; then | |
f40ec73c | 8069 | ac_cv_nonblocking=O_NDELAY |
8070 | else | |
f69335e6 | 8071 | echo "$as_me: program exited with status $ac_status" >&5 |
8072 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8073 | sed 's/^/| /' conftest.$ac_ext >&5 |
8074 | ||
f69335e6 | 8075 | ( exit $ac_status ) |
8076 | ||
f40ec73c | 8077 | if test "$cross_compiling" = yes; then |
cbdd3138 BM |
8078 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
8079 | See \`config.log' for more details." >&5 | |
8080 | echo "$as_me: error: cannot run test program while cross compiling | |
8081 | See \`config.log' for more details." >&2;} | |
f69335e6 | 8082 | { (exit 1); exit 1; }; } |
f40ec73c | 8083 | else |
f69335e6 | 8084 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
8085 | /* confdefs.h. */ |
8086 | _ACEOF | |
8087 | cat confdefs.h >>conftest.$ac_ext | |
8088 | cat >>conftest.$ac_ext <<_ACEOF | |
8089 | /* end confdefs.h. */ | |
f40ec73c | 8090 | |
8091 | #include <sys/types.h> | |
8092 | #include <sys/socket.h> | |
8093 | #include <fcntl.h> | |
8094 | #include <sys/ioctl.h> | |
8095 | #include <sys/file.h> | |
8096 | #include <signal.h> | |
8097 | alarmed() { | |
8098 | exit(1); | |
8099 | } | |
8100 | int main() { | |
8101 | #ifdef FIONBIO | |
8102 | char b[12], x[32]; | |
8103 | int f, l = sizeof(x); | |
8104 | f = socket(AF_INET, SOCK_DGRAM, 0); | |
8105 | if (f >= 0 && !(fcntl(f, F_SETFL, FIONBIO))) { | |
8106 | signal(SIGALRM, alarmed); | |
8107 | alarm(3); | |
8108 | recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l); | |
8109 | alarm(0); | |
8110 | exit(0); | |
8111 | } | |
8112 | #endif | |
8113 | exit(1); | |
8114 | ||
f69335e6 | 8115 | _ACEOF |
8116 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
8117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8118 | (eval $ac_link) 2>&5 | |
f69335e6 | 8119 | ac_status=$? |
8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8121 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
8122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8123 | (eval $ac_try) 2>&5 | |
f69335e6 | 8124 | ac_status=$? |
8125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8126 | (exit $ac_status); }; }; then | |
f40ec73c | 8127 | ac_cv_nonblocking=FIONBIO |
8128 | else | |
f69335e6 | 8129 | echo "$as_me: program exited with status $ac_status" >&5 |
8130 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8131 | sed 's/^/| /' conftest.$ac_ext >&5 |
8132 | ||
f69335e6 | 8133 | ( exit $ac_status ) |
8134 | ac_cv_nonblocking=none | |
f40ec73c | 8135 | fi |
81ae7da0 | 8136 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 8137 | fi |
f40ec73c | 8138 | fi |
81ae7da0 | 8139 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 8140 | fi |
f40ec73c | 8141 | fi |
81ae7da0 | 8142 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 8143 | fi |
f40ec73c | 8144 | fi |
81ae7da0 BM |
8145 | echo "$as_me:$LINENO: result: $ac_cv_nonblocking" >&5 |
8146 | echo "${ECHO_T}$ac_cv_nonblocking" >&6 | |
776fa42c | 8147 | if test "$ac_cv_nonblocking" = "O_NONBLOCK"; then |
f69335e6 | 8148 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 8149 | #define NBLOCK_POSIX 1 |
f69335e6 | 8150 | _ACEOF |
f40ec73c | 8151 | |
776fa42c | 8152 | elif test "$ac_cv_nonblocking" = "O_NDELAY"; then |
f69335e6 | 8153 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 8154 | #define NBLOCK_BSD 1 |
f69335e6 | 8155 | _ACEOF |
f40ec73c | 8156 | |
776fa42c | 8157 | elif test "$ac_cv_nonblocking" = "FIONBIO"; then |
f69335e6 | 8158 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 8159 | #define NBLOCK_SYSV 1 |
f69335e6 | 8160 | _ACEOF |
f40ec73c | 8161 | |
8162 | fi | |
825ee732 | 8163 | LIBS="$save_libs" |
f69335e6 | 8164 | if test $ac_cv_c_compiler_gnu = yes; then |
81ae7da0 BM |
8165 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
8166 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
f69335e6 | 8167 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
8168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 8169 | else |
8170 | ac_pattern="Autoconf.*'x'" | |
f69335e6 | 8171 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
8172 | /* confdefs.h. */ |
8173 | _ACEOF | |
8174 | cat confdefs.h >>conftest.$ac_ext | |
8175 | cat >>conftest.$ac_ext <<_ACEOF | |
8176 | /* end confdefs.h. */ | |
f40ec73c | 8177 | #include <sgtty.h> |
8178 | Autoconf TIOCGETP | |
f69335e6 | 8179 | _ACEOF |
f40ec73c | 8180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cbdd3138 | 8181 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
f40ec73c | 8182 | ac_cv_prog_gcc_traditional=yes |
8183 | else | |
f40ec73c | 8184 | ac_cv_prog_gcc_traditional=no |
8185 | fi | |
8186 | rm -f conftest* | |
8187 | ||
8188 | ||
8189 | if test $ac_cv_prog_gcc_traditional = no; then | |
f69335e6 | 8190 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
8191 | /* confdefs.h. */ |
8192 | _ACEOF | |
8193 | cat confdefs.h >>conftest.$ac_ext | |
8194 | cat >>conftest.$ac_ext <<_ACEOF | |
8195 | /* end confdefs.h. */ | |
f40ec73c | 8196 | #include <termio.h> |
8197 | Autoconf TCGETA | |
f69335e6 | 8198 | _ACEOF |
f40ec73c | 8199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cbdd3138 | 8200 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
f40ec73c | 8201 | ac_cv_prog_gcc_traditional=yes |
8202 | fi | |
8203 | rm -f conftest* | |
8204 | ||
8205 | fi | |
8206 | fi | |
81ae7da0 BM |
8207 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
8208 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
f40ec73c | 8209 | if test $ac_cv_prog_gcc_traditional = yes; then |
8210 | CC="$CC -traditional" | |
8211 | fi | |
8212 | fi | |
8213 | ||
81ae7da0 BM |
8214 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
8215 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
f69335e6 | 8216 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
8217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 8218 | else |
8219 | if test "$cross_compiling" = yes; then | |
f69335e6 | 8220 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
8221 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
8222 | { (exit 1); exit 1; }; } | |
f40ec73c | 8223 | else |
f69335e6 | 8224 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
8225 | /* confdefs.h. */ |
8226 | _ACEOF | |
8227 | cat confdefs.h >>conftest.$ac_ext | |
8228 | cat >>conftest.$ac_ext <<_ACEOF | |
8229 | /* end confdefs.h. */ | |
81ae7da0 BM |
8230 | #if HAVE_UNISTD_H |
8231 | # include <unistd.h> | |
8232 | #endif | |
8233 | ||
f69335e6 | 8234 | int |
8235 | main () | |
f40ec73c | 8236 | { |
f69335e6 | 8237 | /* If this system has a BSD-style setpgrp which takes arguments, |
8238 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
8239 | exit successfully. */ | |
81ae7da0 | 8240 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
f69335e6 | 8241 | ; |
8242 | return 0; | |
f40ec73c | 8243 | } |
f69335e6 | 8244 | _ACEOF |
8245 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
8246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8247 | (eval $ac_link) 2>&5 | |
f69335e6 | 8248 | ac_status=$? |
8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8250 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
8251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8252 | (eval $ac_try) 2>&5 | |
f69335e6 | 8253 | ac_status=$? |
8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8255 | (exit $ac_status); }; }; then | |
f40ec73c | 8256 | ac_cv_func_setpgrp_void=no |
8257 | else | |
f69335e6 | 8258 | echo "$as_me: program exited with status $ac_status" >&5 |
8259 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8260 | sed 's/^/| /' conftest.$ac_ext >&5 |
8261 | ||
f69335e6 | 8262 | ( exit $ac_status ) |
8263 | ac_cv_func_setpgrp_void=yes | |
f40ec73c | 8264 | fi |
81ae7da0 | 8265 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 8266 | fi |
f40ec73c | 8267 | fi |
81ae7da0 BM |
8268 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
8269 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
f40ec73c | 8270 | if test $ac_cv_func_setpgrp_void = yes; then |
f69335e6 | 8271 | |
8272 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 8273 | #define SETPGRP_VOID 1 |
f69335e6 | 8274 | _ACEOF |
f40ec73c | 8275 | |
8276 | fi | |
8277 | ||
81ae7da0 BM |
8278 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
8279 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 | |
8280 | if test "$ac_cv_prog_cc_stdc" != no; then | |
8281 | echo "$as_me:$LINENO: result: yes" >&5 | |
8282 | echo "${ECHO_T}yes" >&6 | |
cbdd3138 BM |
8283 | |
8284 | cat >>confdefs.h <<\_ACEOF | |
8285 | #define PROTOTYPES 1 | |
8286 | _ACEOF | |
8287 | ||
8288 | ||
8289 | cat >>confdefs.h <<\_ACEOF | |
8290 | #define __PROTOTYPES 1 | |
8291 | _ACEOF | |
8292 | ||
8293 | else | |
81ae7da0 BM |
8294 | echo "$as_me:$LINENO: result: no" >&5 |
8295 | echo "${ECHO_T}no" >&6 | |
cbdd3138 BM |
8296 | fi |
8297 | ||
81ae7da0 BM |
8298 | echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5 |
8299 | echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6 | |
f69335e6 | 8300 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then |
8301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 8302 | else |
cbdd3138 BM |
8303 | ac_cv_func_setvbuf_reversed=no |
8304 | cat >conftest.$ac_ext <<_ACEOF | |
8305 | /* confdefs.h. */ | |
8306 | _ACEOF | |
8307 | cat confdefs.h >>conftest.$ac_ext | |
8308 | cat >>conftest.$ac_ext <<_ACEOF | |
8309 | /* end confdefs.h. */ | |
8310 | #include <stdio.h> | |
8311 | # if PROTOTYPES | |
8312 | int (setvbuf) (FILE *, int, char *, size_t); | |
8313 | # endif | |
8314 | int | |
8315 | main () | |
8316 | { | |
8317 | char buf; return setvbuf (stdout, _IOLBF, &buf, 1); | |
8318 | ; | |
8319 | return 0; | |
8320 | } | |
8321 | _ACEOF | |
8322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
8323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8324 | (eval $ac_link) 2>conftest.er1 | |
cbdd3138 BM |
8325 | ac_status=$? |
8326 | grep -v '^ *+' conftest.er1 >conftest.err | |
8327 | rm -f conftest.er1 | |
8328 | cat conftest.err >&5 | |
8329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8330 | (exit $ac_status); } && | |
64b46a71 | 8331 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
8332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8333 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
8334 | ac_status=$? |
8335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8336 | (exit $ac_status); }; } && | |
8337 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
8338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8339 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
8340 | ac_status=$? |
8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8342 | (exit $ac_status); }; }; then | |
8343 | cat >conftest.$ac_ext <<_ACEOF | |
8344 | /* confdefs.h. */ | |
8345 | _ACEOF | |
8346 | cat confdefs.h >>conftest.$ac_ext | |
8347 | cat >>conftest.$ac_ext <<_ACEOF | |
8348 | /* end confdefs.h. */ | |
8349 | #include <stdio.h> | |
8350 | # if PROTOTYPES | |
8351 | int (setvbuf) (FILE *, int, char *, size_t); | |
8352 | # endif | |
8353 | int | |
8354 | main () | |
8355 | { | |
8356 | char buf; return setvbuf (stdout, &buf, _IOLBF, 1); | |
8357 | ; | |
8358 | return 0; | |
8359 | } | |
8360 | _ACEOF | |
8361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
8362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8363 | (eval $ac_link) 2>conftest.er1 | |
cbdd3138 BM |
8364 | ac_status=$? |
8365 | grep -v '^ *+' conftest.er1 >conftest.err | |
8366 | rm -f conftest.er1 | |
8367 | cat conftest.err >&5 | |
8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8369 | (exit $ac_status); } && | |
64b46a71 | 8370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
8371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8372 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
8373 | ac_status=$? |
8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8375 | (exit $ac_status); }; } && | |
8376 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
8377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8378 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
8379 | ac_status=$? |
8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8381 | (exit $ac_status); }; }; then | |
8382 | # It compiles and links either way, so it must not be declared | |
8383 | # with a prototype and most likely this is a K&R C compiler. | |
8384 | # Try running it. | |
8385 | if test "$cross_compiling" = yes; then | |
8386 | : # Assume setvbuf is not reversed when cross-compiling. | |
f40ec73c | 8387 | else |
f69335e6 | 8388 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
8389 | /* confdefs.h. */ |
8390 | _ACEOF | |
8391 | cat confdefs.h >>conftest.$ac_ext | |
8392 | cat >>conftest.$ac_ext <<_ACEOF | |
8393 | /* end confdefs.h. */ | |
81ae7da0 | 8394 | #include <stdio.h> |
f69335e6 | 8395 | int |
8396 | main () | |
8397 | { | |
cbdd3138 BM |
8398 | /* This call has the arguments reversed. |
8399 | A reversed system may check and see that the address of buf | |
8400 | is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ | |
8401 | char buf; | |
8402 | if (setvbuf (stdout, _IOLBF, &buf, 1) != 0) | |
81ae7da0 | 8403 | exit (1); |
cbdd3138 | 8404 | putchar ('\r'); |
81ae7da0 | 8405 | exit (0); /* Non-reversed systems SEGV here. */ |
cbdd3138 BM |
8406 | ; |
8407 | return 0; | |
f40ec73c | 8408 | } |
f69335e6 | 8409 | _ACEOF |
8410 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
8411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8412 | (eval $ac_link) 2>&5 | |
f69335e6 | 8413 | ac_status=$? |
8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
8416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8417 | (eval $ac_try) 2>&5 | |
f69335e6 | 8418 | ac_status=$? |
8419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8420 | (exit $ac_status); }; }; then | |
f40ec73c | 8421 | ac_cv_func_setvbuf_reversed=yes |
8422 | else | |
f69335e6 | 8423 | echo "$as_me: program exited with status $ac_status" >&5 |
8424 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8425 | sed 's/^/| /' conftest.$ac_ext >&5 |
8426 | ||
81ae7da0 BM |
8427 | ( exit $ac_status ) |
8428 | rm -f core *.core | |
f40ec73c | 8429 | fi |
81ae7da0 | 8430 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 8431 | fi |
cbdd3138 BM |
8432 | ac_cv_func_setvbuf_reversed=yes |
8433 | else | |
8434 | echo "$as_me: failed program was:" >&5 | |
8435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8436 | ||
8437 | fi | |
81ae7da0 | 8438 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 BM |
8439 | conftest$ac_exeext conftest.$ac_ext |
8440 | else | |
8441 | echo "$as_me: failed program was:" >&5 | |
8442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8443 | ||
8444 | fi | |
81ae7da0 | 8445 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 8446 | conftest$ac_exeext conftest.$ac_ext |
f40ec73c | 8447 | fi |
81ae7da0 BM |
8448 | echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5 |
8449 | echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6 | |
f40ec73c | 8450 | if test $ac_cv_func_setvbuf_reversed = yes; then |
f69335e6 | 8451 | |
8452 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 8453 | #define SETVBUF_REVERSED 1 |
f69335e6 | 8454 | _ACEOF |
f40ec73c | 8455 | |
704b6260 BM |
8456 | fi |
8457 | ||
8458 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8459 | # for constant arguments. Useless! | |
81ae7da0 BM |
8460 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8461 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
704b6260 BM |
8462 | if test "${ac_cv_working_alloca_h+set}" = set; then |
8463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8464 | else | |
8465 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
8466 | /* confdefs.h. */ |
8467 | _ACEOF | |
8468 | cat confdefs.h >>conftest.$ac_ext | |
8469 | cat >>conftest.$ac_ext <<_ACEOF | |
8470 | /* end confdefs.h. */ | |
704b6260 | 8471 | #include <alloca.h> |
704b6260 BM |
8472 | int |
8473 | main () | |
8474 | { | |
8475 | char *p = (char *) alloca (2 * sizeof (int)); | |
8476 | ; | |
8477 | return 0; | |
8478 | } | |
8479 | _ACEOF | |
8480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
8481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8482 | (eval $ac_link) 2>conftest.er1 | |
704b6260 | 8483 | ac_status=$? |
cbdd3138 BM |
8484 | grep -v '^ *+' conftest.er1 >conftest.err |
8485 | rm -f conftest.er1 | |
8486 | cat conftest.err >&5 | |
704b6260 BM |
8487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8488 | (exit $ac_status); } && | |
64b46a71 | 8489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
8490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8491 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
8492 | ac_status=$? |
8493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8494 | (exit $ac_status); }; } && | |
8495 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
8496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8497 | (eval $ac_try) 2>&5 | |
704b6260 BM |
8498 | ac_status=$? |
8499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8500 | (exit $ac_status); }; }; then | |
8501 | ac_cv_working_alloca_h=yes | |
8502 | else | |
8503 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8504 | sed 's/^/| /' conftest.$ac_ext >&5 |
8505 | ||
81ae7da0 | 8506 | ac_cv_working_alloca_h=no |
704b6260 | 8507 | fi |
81ae7da0 | 8508 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 8509 | conftest$ac_exeext conftest.$ac_ext |
704b6260 | 8510 | fi |
81ae7da0 BM |
8511 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8512 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
704b6260 BM |
8513 | if test $ac_cv_working_alloca_h = yes; then |
8514 | ||
8515 | cat >>confdefs.h <<\_ACEOF | |
8516 | #define HAVE_ALLOCA_H 1 | |
8517 | _ACEOF | |
8518 | ||
8519 | fi | |
8520 | ||
81ae7da0 BM |
8521 | echo "$as_me:$LINENO: checking for alloca" >&5 |
8522 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
704b6260 BM |
8523 | if test "${ac_cv_func_alloca_works+set}" = set; then |
8524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8525 | else | |
8526 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
8527 | /* confdefs.h. */ |
8528 | _ACEOF | |
8529 | cat confdefs.h >>conftest.$ac_ext | |
8530 | cat >>conftest.$ac_ext <<_ACEOF | |
8531 | /* end confdefs.h. */ | |
704b6260 BM |
8532 | #ifdef __GNUC__ |
8533 | # define alloca __builtin_alloca | |
8534 | #else | |
8535 | # ifdef _MSC_VER | |
8536 | # include <malloc.h> | |
8537 | # define alloca _alloca | |
8538 | # else | |
8539 | # if HAVE_ALLOCA_H | |
8540 | # include <alloca.h> | |
8541 | # else | |
8542 | # ifdef _AIX | |
8543 | #pragma alloca | |
8544 | # else | |
8545 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8546 | char *alloca (); | |
8547 | # endif | |
8548 | # endif | |
8549 | # endif | |
8550 | # endif | |
8551 | #endif | |
8552 | ||
704b6260 BM |
8553 | int |
8554 | main () | |
8555 | { | |
8556 | char *p = (char *) alloca (1); | |
8557 | ; | |
8558 | return 0; | |
8559 | } | |
8560 | _ACEOF | |
8561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
8562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8563 | (eval $ac_link) 2>conftest.er1 | |
704b6260 | 8564 | ac_status=$? |
cbdd3138 BM |
8565 | grep -v '^ *+' conftest.er1 >conftest.err |
8566 | rm -f conftest.er1 | |
8567 | cat conftest.err >&5 | |
704b6260 BM |
8568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8569 | (exit $ac_status); } && | |
64b46a71 | 8570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
8571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8572 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
8573 | ac_status=$? |
8574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8575 | (exit $ac_status); }; } && | |
8576 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
8577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8578 | (eval $ac_try) 2>&5 | |
704b6260 BM |
8579 | ac_status=$? |
8580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8581 | (exit $ac_status); }; }; then | |
8582 | ac_cv_func_alloca_works=yes | |
8583 | else | |
8584 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8585 | sed 's/^/| /' conftest.$ac_ext >&5 |
8586 | ||
81ae7da0 | 8587 | ac_cv_func_alloca_works=no |
704b6260 | 8588 | fi |
81ae7da0 | 8589 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 8590 | conftest$ac_exeext conftest.$ac_ext |
704b6260 | 8591 | fi |
81ae7da0 BM |
8592 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8593 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
704b6260 BM |
8594 | |
8595 | if test $ac_cv_func_alloca_works = yes; then | |
8596 | ||
8597 | cat >>confdefs.h <<\_ACEOF | |
8598 | #define HAVE_ALLOCA 1 | |
8599 | _ACEOF | |
8600 | ||
8601 | else | |
8602 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8603 | # that cause trouble. Some versions do not even contain alloca or | |
8604 | # contain a buggy version. If you still want to use their alloca, | |
8605 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8606 | ||
81ae7da0 | 8607 | ALLOCA=alloca.$ac_objext |
704b6260 BM |
8608 | |
8609 | cat >>confdefs.h <<\_ACEOF | |
8610 | #define C_ALLOCA 1 | |
8611 | _ACEOF | |
8612 | ||
8613 | ||
81ae7da0 BM |
8614 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8615 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
704b6260 BM |
8616 | if test "${ac_cv_os_cray+set}" = set; then |
8617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8618 | else | |
8619 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
8620 | /* confdefs.h. */ |
8621 | _ACEOF | |
8622 | cat confdefs.h >>conftest.$ac_ext | |
8623 | cat >>conftest.$ac_ext <<_ACEOF | |
8624 | /* end confdefs.h. */ | |
81ae7da0 | 8625 | #if defined(CRAY) && ! defined(CRAY2) |
704b6260 BM |
8626 | webecray |
8627 | #else | |
8628 | wenotbecray | |
8629 | #endif | |
8630 | ||
8631 | _ACEOF | |
8632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
cbdd3138 | 8633 | $EGREP "webecray" >/dev/null 2>&1; then |
704b6260 BM |
8634 | ac_cv_os_cray=yes |
8635 | else | |
8636 | ac_cv_os_cray=no | |
8637 | fi | |
8638 | rm -f conftest* | |
8639 | ||
8640 | fi | |
81ae7da0 BM |
8641 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8642 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
704b6260 BM |
8643 | if test $ac_cv_os_cray = yes; then |
8644 | for ac_func in _getb67 GETB67 getb67; do | |
8645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
81ae7da0 BM |
8646 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8648 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
704b6260 BM |
8649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8650 | else | |
8651 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
8652 | /* confdefs.h. */ |
8653 | _ACEOF | |
8654 | cat confdefs.h >>conftest.$ac_ext | |
8655 | cat >>conftest.$ac_ext <<_ACEOF | |
8656 | /* end confdefs.h. */ | |
8657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8659 | #define $ac_func innocuous_$ac_func | |
8660 | ||
704b6260 | 8661 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
8662 | which can conflict with char $ac_func (); below. |
8663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8664 | <limits.h> exists even on freestanding compilers. */ | |
8665 | ||
8666 | #ifdef __STDC__ | |
8667 | # include <limits.h> | |
8668 | #else | |
8669 | # include <assert.h> | |
8670 | #endif | |
8671 | ||
8672 | #undef $ac_func | |
8673 | ||
81ae7da0 | 8674 | /* Override any gcc2 internal prototype to avoid an error. */ |
704b6260 BM |
8675 | #ifdef __cplusplus |
8676 | extern "C" | |
81ae7da0 | 8677 | { |
704b6260 | 8678 | #endif |
81ae7da0 BM |
8679 | /* We use char because int might match the return type of a gcc2 |
8680 | builtin and then its argument prototype would still apply. */ | |
704b6260 | 8681 | char $ac_func (); |
704b6260 BM |
8682 | /* The GNU C library defines this for functions which it implements |
8683 | to always fail with ENOSYS. Some functions are actually named | |
8684 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 8685 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
704b6260 | 8686 | choke me |
81ae7da0 BM |
8687 | #else |
8688 | char (*f) () = $ac_func; | |
8689 | #endif | |
8690 | #ifdef __cplusplus | |
8691 | } | |
704b6260 BM |
8692 | #endif |
8693 | ||
cbdd3138 BM |
8694 | int |
8695 | main () | |
8696 | { | |
81ae7da0 | 8697 | return f != $ac_func; |
704b6260 BM |
8698 | ; |
8699 | return 0; | |
8700 | } | |
8701 | _ACEOF | |
8702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
8703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8704 | (eval $ac_link) 2>conftest.er1 | |
704b6260 | 8705 | ac_status=$? |
cbdd3138 BM |
8706 | grep -v '^ *+' conftest.er1 >conftest.err |
8707 | rm -f conftest.er1 | |
8708 | cat conftest.err >&5 | |
704b6260 BM |
8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8710 | (exit $ac_status); } && | |
64b46a71 | 8711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
8712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8713 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
8714 | ac_status=$? |
8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8716 | (exit $ac_status); }; } && | |
8717 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
8718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8719 | (eval $ac_try) 2>&5 | |
704b6260 BM |
8720 | ac_status=$? |
8721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8722 | (exit $ac_status); }; }; then | |
8723 | eval "$as_ac_var=yes" | |
8724 | else | |
8725 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8726 | sed 's/^/| /' conftest.$ac_ext >&5 |
8727 | ||
81ae7da0 | 8728 | eval "$as_ac_var=no" |
704b6260 | 8729 | fi |
81ae7da0 | 8730 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 8731 | conftest$ac_exeext conftest.$ac_ext |
704b6260 | 8732 | fi |
81ae7da0 BM |
8733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
8734 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
704b6260 BM |
8735 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8736 | ||
8737 | cat >>confdefs.h <<_ACEOF | |
8738 | #define CRAY_STACKSEG_END $ac_func | |
8739 | _ACEOF | |
8740 | ||
8741 | break | |
8742 | fi | |
8743 | ||
8744 | done | |
8745 | fi | |
8746 | ||
81ae7da0 BM |
8747 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8748 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
704b6260 BM |
8749 | if test "${ac_cv_c_stack_direction+set}" = set; then |
8750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8751 | else | |
8752 | if test "$cross_compiling" = yes; then | |
8753 | ac_cv_c_stack_direction=0 | |
8754 | else | |
8755 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
8756 | /* confdefs.h. */ |
8757 | _ACEOF | |
8758 | cat confdefs.h >>conftest.$ac_ext | |
8759 | cat >>conftest.$ac_ext <<_ACEOF | |
8760 | /* end confdefs.h. */ | |
704b6260 BM |
8761 | int |
8762 | find_stack_direction () | |
8763 | { | |
8764 | static char *addr = 0; | |
8765 | auto char dummy; | |
8766 | if (addr == 0) | |
8767 | { | |
8768 | addr = &dummy; | |
8769 | return find_stack_direction (); | |
8770 | } | |
8771 | else | |
8772 | return (&dummy > addr) ? 1 : -1; | |
8773 | } | |
8774 | ||
8775 | int | |
8776 | main () | |
8777 | { | |
81ae7da0 | 8778 | exit (find_stack_direction () < 0); |
704b6260 BM |
8779 | } |
8780 | _ACEOF | |
8781 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
8782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8783 | (eval $ac_link) 2>&5 | |
704b6260 BM |
8784 | ac_status=$? |
8785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
8787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8788 | (eval $ac_try) 2>&5 | |
704b6260 BM |
8789 | ac_status=$? |
8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8791 | (exit $ac_status); }; }; then | |
8792 | ac_cv_c_stack_direction=1 | |
8793 | else | |
8794 | echo "$as_me: program exited with status $ac_status" >&5 | |
8795 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8796 | sed 's/^/| /' conftest.$ac_ext >&5 |
8797 | ||
704b6260 BM |
8798 | ( exit $ac_status ) |
8799 | ac_cv_c_stack_direction=-1 | |
8800 | fi | |
81ae7da0 | 8801 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
704b6260 BM |
8802 | fi |
8803 | fi | |
81ae7da0 BM |
8804 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8805 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
704b6260 BM |
8806 | |
8807 | cat >>confdefs.h <<_ACEOF | |
8808 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8809 | _ACEOF | |
8810 | ||
8811 | ||
f40ec73c | 8812 | fi |
8813 | ||
f69335e6 | 8814 | |
491d6f70 | 8815 | for ac_func in snprintf |
8816 | do | |
f69335e6 | 8817 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
8818 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8819 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8820 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 8821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8822 | else | |
8823 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
8824 | /* confdefs.h. */ |
8825 | _ACEOF | |
8826 | cat confdefs.h >>conftest.$ac_ext | |
8827 | cat >>conftest.$ac_ext <<_ACEOF | |
8828 | /* end confdefs.h. */ | |
8829 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8830 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8831 | #define $ac_func innocuous_$ac_func | |
8832 | ||
491d6f70 | 8833 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
8834 | which can conflict with char $ac_func (); below. |
8835 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8836 | <limits.h> exists even on freestanding compilers. */ | |
8837 | ||
8838 | #ifdef __STDC__ | |
8839 | # include <limits.h> | |
8840 | #else | |
8841 | # include <assert.h> | |
8842 | #endif | |
8843 | ||
8844 | #undef $ac_func | |
8845 | ||
81ae7da0 | 8846 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 8847 | #ifdef __cplusplus |
8848 | extern "C" | |
81ae7da0 | 8849 | { |
f69335e6 | 8850 | #endif |
81ae7da0 BM |
8851 | /* We use char because int might match the return type of a gcc2 |
8852 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 8853 | char $ac_func (); |
491d6f70 | 8854 | /* The GNU C library defines this for functions which it implements |
8855 | to always fail with ENOSYS. Some functions are actually named | |
8856 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 8857 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
491d6f70 | 8858 | choke me |
81ae7da0 BM |
8859 | #else |
8860 | char (*f) () = $ac_func; | |
8861 | #endif | |
8862 | #ifdef __cplusplus | |
8863 | } | |
491d6f70 | 8864 | #endif |
8865 | ||
cbdd3138 BM |
8866 | int |
8867 | main () | |
8868 | { | |
81ae7da0 | 8869 | return f != $ac_func; |
f69335e6 | 8870 | ; |
8871 | return 0; | |
8872 | } | |
8873 | _ACEOF | |
8874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
8875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8876 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 8877 | ac_status=$? |
cbdd3138 BM |
8878 | grep -v '^ *+' conftest.er1 >conftest.err |
8879 | rm -f conftest.er1 | |
8880 | cat conftest.err >&5 | |
f69335e6 | 8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8882 | (exit $ac_status); } && | |
64b46a71 | 8883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
8884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8885 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
8886 | ac_status=$? |
8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8888 | (exit $ac_status); }; } && | |
8889 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
8890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8891 | (eval $ac_try) 2>&5 | |
f69335e6 | 8892 | ac_status=$? |
8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8894 | (exit $ac_status); }; }; then | |
8895 | eval "$as_ac_var=yes" | |
8896 | else | |
8897 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
8898 | sed 's/^/| /' conftest.$ac_ext >&5 |
8899 | ||
81ae7da0 | 8900 | eval "$as_ac_var=no" |
f69335e6 | 8901 | fi |
81ae7da0 | 8902 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 8903 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 8904 | fi |
81ae7da0 BM |
8905 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
8906 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 8907 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8908 | cat >>confdefs.h <<_ACEOF | |
8909 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8910 | _ACEOF | |
8911 | cat >>confdefs.h <<\_ACEOF | |
491d6f70 | 8912 | #define HAVE_SNPRINTF 1 |
f69335e6 | 8913 | _ACEOF |
491d6f70 | 8914 | |
491d6f70 | 8915 | fi |
8916 | done | |
8917 | ||
f69335e6 | 8918 | |
491d6f70 | 8919 | for ac_func in vsnprintf |
8920 | do | |
f69335e6 | 8921 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
8922 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8923 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8924 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 8925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8926 | else | |
8927 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
8928 | /* confdefs.h. */ |
8929 | _ACEOF | |
8930 | cat confdefs.h >>conftest.$ac_ext | |
8931 | cat >>conftest.$ac_ext <<_ACEOF | |
8932 | /* end confdefs.h. */ | |
8933 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8935 | #define $ac_func innocuous_$ac_func | |
8936 | ||
491d6f70 | 8937 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
8938 | which can conflict with char $ac_func (); below. |
8939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8940 | <limits.h> exists even on freestanding compilers. */ | |
8941 | ||
8942 | #ifdef __STDC__ | |
8943 | # include <limits.h> | |
8944 | #else | |
8945 | # include <assert.h> | |
8946 | #endif | |
8947 | ||
8948 | #undef $ac_func | |
8949 | ||
81ae7da0 | 8950 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 8951 | #ifdef __cplusplus |
8952 | extern "C" | |
81ae7da0 | 8953 | { |
f69335e6 | 8954 | #endif |
81ae7da0 BM |
8955 | /* We use char because int might match the return type of a gcc2 |
8956 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 8957 | char $ac_func (); |
491d6f70 | 8958 | /* The GNU C library defines this for functions which it implements |
8959 | to always fail with ENOSYS. Some functions are actually named | |
8960 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 8961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
491d6f70 | 8962 | choke me |
81ae7da0 BM |
8963 | #else |
8964 | char (*f) () = $ac_func; | |
8965 | #endif | |
8966 | #ifdef __cplusplus | |
8967 | } | |
491d6f70 | 8968 | #endif |
8969 | ||
cbdd3138 BM |
8970 | int |
8971 | main () | |
8972 | { | |
81ae7da0 | 8973 | return f != $ac_func; |
f69335e6 | 8974 | ; |
8975 | return 0; | |
8976 | } | |
8977 | _ACEOF | |
8978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
8979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8980 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 8981 | ac_status=$? |
cbdd3138 BM |
8982 | grep -v '^ *+' conftest.er1 >conftest.err |
8983 | rm -f conftest.er1 | |
8984 | cat conftest.err >&5 | |
f69335e6 | 8985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8986 | (exit $ac_status); } && | |
64b46a71 | 8987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
8988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8989 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
8990 | ac_status=$? |
8991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8992 | (exit $ac_status); }; } && | |
8993 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
8994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8995 | (eval $ac_try) 2>&5 | |
f69335e6 | 8996 | ac_status=$? |
8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8998 | (exit $ac_status); }; }; then | |
8999 | eval "$as_ac_var=yes" | |
9000 | else | |
9001 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9002 | sed 's/^/| /' conftest.$ac_ext >&5 |
9003 | ||
81ae7da0 | 9004 | eval "$as_ac_var=no" |
f69335e6 | 9005 | fi |
81ae7da0 | 9006 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 9007 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 9008 | fi |
81ae7da0 BM |
9009 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9010 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 9011 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9012 | cat >>confdefs.h <<_ACEOF | |
9013 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9014 | _ACEOF | |
9015 | cat >>confdefs.h <<\_ACEOF | |
491d6f70 | 9016 | #define HAVE_VSNPRINTF 1 |
f69335e6 | 9017 | _ACEOF |
491d6f70 | 9018 | |
491d6f70 | 9019 | fi |
9020 | done | |
9021 | ||
f69335e6 | 9022 | |
491d6f70 | 9023 | for ac_func in strlcpy |
9024 | do | |
f69335e6 | 9025 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
9026 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9027 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9028 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 9029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9030 | else | |
9031 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9032 | /* confdefs.h. */ |
9033 | _ACEOF | |
9034 | cat confdefs.h >>conftest.$ac_ext | |
9035 | cat >>conftest.$ac_ext <<_ACEOF | |
9036 | /* end confdefs.h. */ | |
9037 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9038 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9039 | #define $ac_func innocuous_$ac_func | |
9040 | ||
491d6f70 | 9041 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
9042 | which can conflict with char $ac_func (); below. |
9043 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9044 | <limits.h> exists even on freestanding compilers. */ | |
9045 | ||
9046 | #ifdef __STDC__ | |
9047 | # include <limits.h> | |
9048 | #else | |
9049 | # include <assert.h> | |
9050 | #endif | |
9051 | ||
9052 | #undef $ac_func | |
9053 | ||
81ae7da0 | 9054 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 9055 | #ifdef __cplusplus |
9056 | extern "C" | |
81ae7da0 | 9057 | { |
f69335e6 | 9058 | #endif |
81ae7da0 BM |
9059 | /* We use char because int might match the return type of a gcc2 |
9060 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 9061 | char $ac_func (); |
491d6f70 | 9062 | /* The GNU C library defines this for functions which it implements |
9063 | to always fail with ENOSYS. Some functions are actually named | |
9064 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 9065 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
491d6f70 | 9066 | choke me |
81ae7da0 BM |
9067 | #else |
9068 | char (*f) () = $ac_func; | |
9069 | #endif | |
9070 | #ifdef __cplusplus | |
9071 | } | |
491d6f70 | 9072 | #endif |
9073 | ||
cbdd3138 BM |
9074 | int |
9075 | main () | |
9076 | { | |
81ae7da0 | 9077 | return f != $ac_func; |
f69335e6 | 9078 | ; |
9079 | return 0; | |
9080 | } | |
9081 | _ACEOF | |
9082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
9083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9084 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 9085 | ac_status=$? |
cbdd3138 BM |
9086 | grep -v '^ *+' conftest.er1 >conftest.err |
9087 | rm -f conftest.er1 | |
9088 | cat conftest.err >&5 | |
f69335e6 | 9089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9090 | (exit $ac_status); } && | |
64b46a71 | 9091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
9092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9093 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
9094 | ac_status=$? |
9095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9096 | (exit $ac_status); }; } && | |
9097 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
9098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9099 | (eval $ac_try) 2>&5 | |
f69335e6 | 9100 | ac_status=$? |
9101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9102 | (exit $ac_status); }; }; then | |
9103 | eval "$as_ac_var=yes" | |
9104 | else | |
9105 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9106 | sed 's/^/| /' conftest.$ac_ext >&5 |
9107 | ||
81ae7da0 | 9108 | eval "$as_ac_var=no" |
f69335e6 | 9109 | fi |
81ae7da0 | 9110 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 9111 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 9112 | fi |
81ae7da0 BM |
9113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9114 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 9115 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9116 | cat >>confdefs.h <<_ACEOF | |
9117 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9118 | _ACEOF | |
9119 | cat >>confdefs.h <<\_ACEOF | |
491d6f70 | 9120 | #define HAVE_STRLCPY 1 |
f69335e6 | 9121 | _ACEOF |
491d6f70 | 9122 | |
491d6f70 | 9123 | fi |
9124 | done | |
9125 | ||
f69335e6 | 9126 | |
491d6f70 | 9127 | for ac_func in strlcat |
9128 | do | |
f69335e6 | 9129 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
9130 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9131 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9132 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 9133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9134 | else | |
9135 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9136 | /* confdefs.h. */ |
9137 | _ACEOF | |
9138 | cat confdefs.h >>conftest.$ac_ext | |
9139 | cat >>conftest.$ac_ext <<_ACEOF | |
9140 | /* end confdefs.h. */ | |
9141 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9142 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9143 | #define $ac_func innocuous_$ac_func | |
9144 | ||
491d6f70 | 9145 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
9146 | which can conflict with char $ac_func (); below. |
9147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9148 | <limits.h> exists even on freestanding compilers. */ | |
9149 | ||
9150 | #ifdef __STDC__ | |
9151 | # include <limits.h> | |
9152 | #else | |
9153 | # include <assert.h> | |
9154 | #endif | |
9155 | ||
9156 | #undef $ac_func | |
9157 | ||
81ae7da0 | 9158 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 9159 | #ifdef __cplusplus |
9160 | extern "C" | |
81ae7da0 | 9161 | { |
f69335e6 | 9162 | #endif |
81ae7da0 BM |
9163 | /* We use char because int might match the return type of a gcc2 |
9164 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 9165 | char $ac_func (); |
491d6f70 | 9166 | /* The GNU C library defines this for functions which it implements |
9167 | to always fail with ENOSYS. Some functions are actually named | |
9168 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 9169 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
491d6f70 | 9170 | choke me |
81ae7da0 BM |
9171 | #else |
9172 | char (*f) () = $ac_func; | |
9173 | #endif | |
9174 | #ifdef __cplusplus | |
9175 | } | |
491d6f70 | 9176 | #endif |
9177 | ||
cbdd3138 BM |
9178 | int |
9179 | main () | |
9180 | { | |
81ae7da0 | 9181 | return f != $ac_func; |
f69335e6 | 9182 | ; |
9183 | return 0; | |
9184 | } | |
9185 | _ACEOF | |
9186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
9187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9188 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 9189 | ac_status=$? |
cbdd3138 BM |
9190 | grep -v '^ *+' conftest.er1 >conftest.err |
9191 | rm -f conftest.er1 | |
9192 | cat conftest.err >&5 | |
f69335e6 | 9193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9194 | (exit $ac_status); } && | |
64b46a71 | 9195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
9196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9197 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
9198 | ac_status=$? |
9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9200 | (exit $ac_status); }; } && | |
9201 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
9202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9203 | (eval $ac_try) 2>&5 | |
f69335e6 | 9204 | ac_status=$? |
9205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9206 | (exit $ac_status); }; }; then | |
9207 | eval "$as_ac_var=yes" | |
9208 | else | |
9209 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9210 | sed 's/^/| /' conftest.$ac_ext >&5 |
9211 | ||
81ae7da0 | 9212 | eval "$as_ac_var=no" |
f69335e6 | 9213 | fi |
81ae7da0 | 9214 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 9215 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 9216 | fi |
81ae7da0 BM |
9217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9218 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 9219 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9220 | cat >>confdefs.h <<_ACEOF | |
9221 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9222 | _ACEOF | |
9223 | cat >>confdefs.h <<\_ACEOF | |
491d6f70 | 9224 | #define HAVE_STRLCAT 1 |
f69335e6 | 9225 | _ACEOF |
491d6f70 | 9226 | |
491d6f70 | 9227 | fi |
9228 | done | |
9229 | ||
f69335e6 | 9230 | |
491d6f70 | 9231 | for ac_func in strlncat |
9232 | do | |
f69335e6 | 9233 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
9234 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9235 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9236 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 9237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9238 | else | |
9239 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9240 | /* confdefs.h. */ |
9241 | _ACEOF | |
9242 | cat confdefs.h >>conftest.$ac_ext | |
9243 | cat >>conftest.$ac_ext <<_ACEOF | |
9244 | /* end confdefs.h. */ | |
9245 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9247 | #define $ac_func innocuous_$ac_func | |
9248 | ||
491d6f70 | 9249 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
9250 | which can conflict with char $ac_func (); below. |
9251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9252 | <limits.h> exists even on freestanding compilers. */ | |
9253 | ||
9254 | #ifdef __STDC__ | |
9255 | # include <limits.h> | |
9256 | #else | |
9257 | # include <assert.h> | |
9258 | #endif | |
9259 | ||
9260 | #undef $ac_func | |
9261 | ||
81ae7da0 | 9262 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 9263 | #ifdef __cplusplus |
9264 | extern "C" | |
81ae7da0 | 9265 | { |
f69335e6 | 9266 | #endif |
81ae7da0 BM |
9267 | /* We use char because int might match the return type of a gcc2 |
9268 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 9269 | char $ac_func (); |
491d6f70 | 9270 | /* The GNU C library defines this for functions which it implements |
9271 | to always fail with ENOSYS. Some functions are actually named | |
9272 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 9273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
491d6f70 | 9274 | choke me |
81ae7da0 BM |
9275 | #else |
9276 | char (*f) () = $ac_func; | |
9277 | #endif | |
9278 | #ifdef __cplusplus | |
9279 | } | |
491d6f70 | 9280 | #endif |
9281 | ||
cbdd3138 BM |
9282 | int |
9283 | main () | |
9284 | { | |
81ae7da0 | 9285 | return f != $ac_func; |
f69335e6 | 9286 | ; |
9287 | return 0; | |
9288 | } | |
9289 | _ACEOF | |
9290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
9291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9292 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 9293 | ac_status=$? |
cbdd3138 BM |
9294 | grep -v '^ *+' conftest.er1 >conftest.err |
9295 | rm -f conftest.er1 | |
9296 | cat conftest.err >&5 | |
f69335e6 | 9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9298 | (exit $ac_status); } && | |
64b46a71 | 9299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
9300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9301 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
9302 | ac_status=$? |
9303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9304 | (exit $ac_status); }; } && | |
9305 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
9306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9307 | (eval $ac_try) 2>&5 | |
f69335e6 | 9308 | ac_status=$? |
9309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9310 | (exit $ac_status); }; }; then | |
9311 | eval "$as_ac_var=yes" | |
9312 | else | |
9313 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9314 | sed 's/^/| /' conftest.$ac_ext >&5 |
9315 | ||
81ae7da0 | 9316 | eval "$as_ac_var=no" |
f69335e6 | 9317 | fi |
81ae7da0 | 9318 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 9319 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 9320 | fi |
81ae7da0 BM |
9321 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9322 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 9323 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9324 | cat >>confdefs.h <<_ACEOF | |
9325 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9326 | _ACEOF | |
9327 | cat >>confdefs.h <<\_ACEOF | |
491d6f70 | 9328 | #define HAVE_STRLNCAT 1 |
f69335e6 | 9329 | _ACEOF |
491d6f70 | 9330 | |
491d6f70 | 9331 | fi |
9332 | done | |
9333 | ||
9334 | ||
704b6260 BM |
9335 | for ac_func in inet_pton |
9336 | do | |
9337 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
81ae7da0 BM |
9338 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9339 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9340 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
704b6260 BM |
9341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9342 | else | |
9343 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9344 | /* confdefs.h. */ |
9345 | _ACEOF | |
9346 | cat confdefs.h >>conftest.$ac_ext | |
9347 | cat >>conftest.$ac_ext <<_ACEOF | |
9348 | /* end confdefs.h. */ | |
9349 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9350 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9351 | #define $ac_func innocuous_$ac_func | |
9352 | ||
704b6260 | 9353 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
9354 | which can conflict with char $ac_func (); below. |
9355 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9356 | <limits.h> exists even on freestanding compilers. */ | |
9357 | ||
9358 | #ifdef __STDC__ | |
9359 | # include <limits.h> | |
9360 | #else | |
9361 | # include <assert.h> | |
9362 | #endif | |
9363 | ||
9364 | #undef $ac_func | |
9365 | ||
81ae7da0 | 9366 | /* Override any gcc2 internal prototype to avoid an error. */ |
704b6260 BM |
9367 | #ifdef __cplusplus |
9368 | extern "C" | |
81ae7da0 | 9369 | { |
704b6260 | 9370 | #endif |
81ae7da0 BM |
9371 | /* We use char because int might match the return type of a gcc2 |
9372 | builtin and then its argument prototype would still apply. */ | |
704b6260 | 9373 | char $ac_func (); |
704b6260 BM |
9374 | /* The GNU C library defines this for functions which it implements |
9375 | to always fail with ENOSYS. Some functions are actually named | |
9376 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 9377 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
704b6260 | 9378 | choke me |
81ae7da0 BM |
9379 | #else |
9380 | char (*f) () = $ac_func; | |
9381 | #endif | |
9382 | #ifdef __cplusplus | |
9383 | } | |
704b6260 BM |
9384 | #endif |
9385 | ||
cbdd3138 BM |
9386 | int |
9387 | main () | |
9388 | { | |
81ae7da0 | 9389 | return f != $ac_func; |
704b6260 BM |
9390 | ; |
9391 | return 0; | |
9392 | } | |
9393 | _ACEOF | |
9394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
9395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9396 | (eval $ac_link) 2>conftest.er1 | |
704b6260 | 9397 | ac_status=$? |
cbdd3138 BM |
9398 | grep -v '^ *+' conftest.er1 >conftest.err |
9399 | rm -f conftest.er1 | |
9400 | cat conftest.err >&5 | |
704b6260 BM |
9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9402 | (exit $ac_status); } && | |
64b46a71 | 9403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
9404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9405 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
9406 | ac_status=$? |
9407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9408 | (exit $ac_status); }; } && | |
9409 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
9410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9411 | (eval $ac_try) 2>&5 | |
704b6260 BM |
9412 | ac_status=$? |
9413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9414 | (exit $ac_status); }; }; then | |
9415 | eval "$as_ac_var=yes" | |
9416 | else | |
9417 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9418 | sed 's/^/| /' conftest.$ac_ext >&5 |
9419 | ||
81ae7da0 | 9420 | eval "$as_ac_var=no" |
704b6260 | 9421 | fi |
81ae7da0 | 9422 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 9423 | conftest$ac_exeext conftest.$ac_ext |
704b6260 | 9424 | fi |
81ae7da0 BM |
9425 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9426 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
704b6260 BM |
9427 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9428 | cat >>confdefs.h <<_ACEOF | |
9429 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9430 | _ACEOF | |
9431 | cat >>confdefs.h <<\_ACEOF | |
9432 | #define HAVE_INET_PTON 1 | |
9433 | _ACEOF | |
9434 | ||
9435 | fi | |
9436 | done | |
9437 | ||
9438 | ||
9439 | for ac_func in inet_ntop | |
9440 | do | |
9441 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
81ae7da0 BM |
9442 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9443 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9444 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
704b6260 BM |
9445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9446 | else | |
9447 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9448 | /* confdefs.h. */ |
9449 | _ACEOF | |
9450 | cat confdefs.h >>conftest.$ac_ext | |
9451 | cat >>conftest.$ac_ext <<_ACEOF | |
9452 | /* end confdefs.h. */ | |
9453 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9454 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9455 | #define $ac_func innocuous_$ac_func | |
9456 | ||
704b6260 | 9457 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
9458 | which can conflict with char $ac_func (); below. |
9459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9460 | <limits.h> exists even on freestanding compilers. */ | |
9461 | ||
9462 | #ifdef __STDC__ | |
9463 | # include <limits.h> | |
9464 | #else | |
9465 | # include <assert.h> | |
9466 | #endif | |
9467 | ||
9468 | #undef $ac_func | |
9469 | ||
81ae7da0 | 9470 | /* Override any gcc2 internal prototype to avoid an error. */ |
704b6260 BM |
9471 | #ifdef __cplusplus |
9472 | extern "C" | |
81ae7da0 | 9473 | { |
704b6260 | 9474 | #endif |
81ae7da0 BM |
9475 | /* We use char because int might match the return type of a gcc2 |
9476 | builtin and then its argument prototype would still apply. */ | |
704b6260 | 9477 | char $ac_func (); |
704b6260 BM |
9478 | /* The GNU C library defines this for functions which it implements |
9479 | to always fail with ENOSYS. Some functions are actually named | |
9480 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 9481 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
704b6260 | 9482 | choke me |
81ae7da0 BM |
9483 | #else |
9484 | char (*f) () = $ac_func; | |
9485 | #endif | |
9486 | #ifdef __cplusplus | |
9487 | } | |
704b6260 BM |
9488 | #endif |
9489 | ||
cbdd3138 BM |
9490 | int |
9491 | main () | |
9492 | { | |
81ae7da0 | 9493 | return f != $ac_func; |
704b6260 BM |
9494 | ; |
9495 | return 0; | |
9496 | } | |
9497 | _ACEOF | |
9498 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
9499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9500 | (eval $ac_link) 2>conftest.er1 | |
704b6260 | 9501 | ac_status=$? |
cbdd3138 BM |
9502 | grep -v '^ *+' conftest.er1 >conftest.err |
9503 | rm -f conftest.er1 | |
9504 | cat conftest.err >&5 | |
704b6260 BM |
9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9506 | (exit $ac_status); } && | |
64b46a71 | 9507 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
9508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9509 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
9510 | ac_status=$? |
9511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9512 | (exit $ac_status); }; } && | |
9513 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
9514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9515 | (eval $ac_try) 2>&5 | |
704b6260 BM |
9516 | ac_status=$? |
9517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9518 | (exit $ac_status); }; }; then | |
9519 | eval "$as_ac_var=yes" | |
9520 | else | |
9521 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9522 | sed 's/^/| /' conftest.$ac_ext >&5 |
9523 | ||
81ae7da0 | 9524 | eval "$as_ac_var=no" |
704b6260 | 9525 | fi |
81ae7da0 | 9526 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 9527 | conftest$ac_exeext conftest.$ac_ext |
704b6260 | 9528 | fi |
81ae7da0 BM |
9529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9530 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
704b6260 BM |
9531 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9532 | cat >>confdefs.h <<_ACEOF | |
9533 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9534 | _ACEOF | |
9535 | cat >>confdefs.h <<\_ACEOF | |
9536 | #define HAVE_INET_NTOP 1 | |
9537 | _ACEOF | |
9538 | ||
9539 | fi | |
9540 | done | |
9541 | ||
81ae7da0 BM |
9542 | echo "$as_me:$LINENO: checking if C99 variable length arrays are supported" >&5 |
9543 | echo $ECHO_N "checking if C99 variable length arrays are supported... $ECHO_C" >&6 | |
704b6260 BM |
9544 | if test "${ac_cv_varlen_arrays+set}" = set; then |
9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9546 | else | |
9547 | ||
9548 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9549 | /* confdefs.h. */ |
9550 | _ACEOF | |
9551 | cat confdefs.h >>conftest.$ac_ext | |
9552 | cat >>conftest.$ac_ext <<_ACEOF | |
9553 | /* end confdefs.h. */ | |
704b6260 | 9554 | |
704b6260 BM |
9555 | int |
9556 | main () | |
9557 | { | |
9558 | ||
9559 | int main() { | |
9560 | int i = 5; | |
9561 | int a[i]; | |
9562 | a[0] = 1; | |
9563 | return 0; | |
9564 | } | |
9565 | ; | |
9566 | return 0; | |
9567 | } | |
9568 | _ACEOF | |
9569 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
9570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9571 | (eval $ac_compile) 2>conftest.er1 | |
704b6260 | 9572 | ac_status=$? |
cbdd3138 BM |
9573 | grep -v '^ *+' conftest.er1 >conftest.err |
9574 | rm -f conftest.er1 | |
9575 | cat conftest.err >&5 | |
704b6260 BM |
9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9577 | (exit $ac_status); } && | |
64b46a71 | 9578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
9579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9580 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
9581 | ac_status=$? |
9582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9583 | (exit $ac_status); }; } && | |
9584 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
9585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9586 | (eval $ac_try) 2>&5 | |
704b6260 BM |
9587 | ac_status=$? |
9588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9589 | (exit $ac_status); }; }; then | |
9590 | ac_cv_varlen_arrays=yes | |
9591 | else | |
9592 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9593 | sed 's/^/| /' conftest.$ac_ext >&5 |
9594 | ||
81ae7da0 | 9595 | ac_cv_varlen_arrays=no |
704b6260 | 9596 | fi |
81ae7da0 | 9597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
704b6260 BM |
9598 | |
9599 | fi | |
81ae7da0 BM |
9600 | echo "$as_me:$LINENO: result: $ac_cv_varlen_arrays" >&5 |
9601 | echo "${ECHO_T}$ac_cv_varlen_arrays" >&6 | |
704b6260 BM |
9602 | if test "$ac_cv_varlen_arrays" = "yes" ; then |
9603 | cat >>confdefs.h <<\_ACEOF | |
9604 | #define HAVE_C99_VARLEN_ARRAY 1 | |
9605 | _ACEOF | |
9606 | ||
9607 | fi | |
81ae7da0 BM |
9608 | echo "$as_me:$LINENO: checking if we can set the core size to unlimited" >&5 |
9609 | echo $ECHO_N "checking if we can set the core size to unlimited... $ECHO_C" >&6 | |
f69335e6 | 9610 | if test "${ac_cv_force_core+set}" = set; then |
9611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 9612 | else |
f69335e6 | 9613 | |
f40ec73c | 9614 | if test "$cross_compiling" = yes; then |
cbdd3138 BM |
9615 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
9616 | See \`config.log' for more details." >&5 | |
9617 | echo "$as_me: error: cannot run test program while cross compiling | |
9618 | See \`config.log' for more details." >&2;} | |
f69335e6 | 9619 | { (exit 1); exit 1; }; } |
f40ec73c | 9620 | else |
f69335e6 | 9621 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
9622 | /* confdefs.h. */ |
9623 | _ACEOF | |
9624 | cat confdefs.h >>conftest.$ac_ext | |
9625 | cat >>conftest.$ac_ext <<_ACEOF | |
9626 | /* end confdefs.h. */ | |
f40ec73c | 9627 | |
9628 | #include <sys/time.h> | |
9629 | #include <sys/resource.h> | |
9630 | #include <unistd.h> | |
9631 | int main() { | |
9632 | struct rlimit corelim; | |
9633 | corelim.rlim_cur = corelim.rlim_max = RLIM_INFINITY; | |
9634 | if (setrlimit(RLIMIT_CORE, &corelim)) | |
9635 | exit(1); | |
9636 | exit(0); | |
9637 | } | |
9638 | ||
f69335e6 | 9639 | _ACEOF |
9640 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
9641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9642 | (eval $ac_link) 2>&5 | |
f69335e6 | 9643 | ac_status=$? |
9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
9646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9647 | (eval $ac_try) 2>&5 | |
f69335e6 | 9648 | ac_status=$? |
9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9650 | (exit $ac_status); }; }; then | |
f40ec73c | 9651 | ac_cv_force_core=yes |
9652 | else | |
f69335e6 | 9653 | echo "$as_me: program exited with status $ac_status" >&5 |
9654 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9655 | sed 's/^/| /' conftest.$ac_ext >&5 |
9656 | ||
f69335e6 | 9657 | ( exit $ac_status ) |
9658 | ac_cv_force_core=no | |
f40ec73c | 9659 | fi |
81ae7da0 | 9660 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 9661 | fi |
9662 | ||
f40ec73c | 9663 | fi |
81ae7da0 BM |
9664 | echo "$as_me:$LINENO: result: $ac_cv_force_core" >&5 |
9665 | echo "${ECHO_T}$ac_cv_force_core" >&6 | |
776fa42c | 9666 | if test "$ac_cv_force_core" = "yes"; then |
f69335e6 | 9667 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 9668 | #define FORCE_CORE 1 |
f69335e6 | 9669 | _ACEOF |
f40ec73c | 9670 | |
9671 | fi | |
f69335e6 | 9672 | |
9673 | for ac_func in vprintf | |
9674 | do | |
9675 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
81ae7da0 BM |
9676 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9677 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9678 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 9679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9680 | else | |
9681 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9682 | /* confdefs.h. */ |
9683 | _ACEOF | |
9684 | cat confdefs.h >>conftest.$ac_ext | |
9685 | cat >>conftest.$ac_ext <<_ACEOF | |
9686 | /* end confdefs.h. */ | |
9687 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9688 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9689 | #define $ac_func innocuous_$ac_func | |
9690 | ||
f40ec73c | 9691 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
9692 | which can conflict with char $ac_func (); below. |
9693 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9694 | <limits.h> exists even on freestanding compilers. */ | |
9695 | ||
9696 | #ifdef __STDC__ | |
9697 | # include <limits.h> | |
9698 | #else | |
9699 | # include <assert.h> | |
9700 | #endif | |
9701 | ||
9702 | #undef $ac_func | |
9703 | ||
81ae7da0 | 9704 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 9705 | #ifdef __cplusplus |
9706 | extern "C" | |
81ae7da0 | 9707 | { |
f69335e6 | 9708 | #endif |
81ae7da0 BM |
9709 | /* We use char because int might match the return type of a gcc2 |
9710 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 9711 | char $ac_func (); |
f40ec73c | 9712 | /* The GNU C library defines this for functions which it implements |
9713 | to always fail with ENOSYS. Some functions are actually named | |
9714 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 9715 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 9716 | choke me |
81ae7da0 BM |
9717 | #else |
9718 | char (*f) () = $ac_func; | |
9719 | #endif | |
9720 | #ifdef __cplusplus | |
9721 | } | |
f40ec73c | 9722 | #endif |
9723 | ||
cbdd3138 BM |
9724 | int |
9725 | main () | |
9726 | { | |
81ae7da0 | 9727 | return f != $ac_func; |
f69335e6 | 9728 | ; |
9729 | return 0; | |
9730 | } | |
9731 | _ACEOF | |
9732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
9733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9734 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 9735 | ac_status=$? |
cbdd3138 BM |
9736 | grep -v '^ *+' conftest.er1 >conftest.err |
9737 | rm -f conftest.er1 | |
9738 | cat conftest.err >&5 | |
f69335e6 | 9739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9740 | (exit $ac_status); } && | |
64b46a71 | 9741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
9742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9743 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
9744 | ac_status=$? |
9745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9746 | (exit $ac_status); }; } && | |
9747 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
9748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9749 | (eval $ac_try) 2>&5 | |
f69335e6 | 9750 | ac_status=$? |
9751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9752 | (exit $ac_status); }; }; then | |
9753 | eval "$as_ac_var=yes" | |
9754 | else | |
9755 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9756 | sed 's/^/| /' conftest.$ac_ext >&5 |
9757 | ||
81ae7da0 | 9758 | eval "$as_ac_var=no" |
f69335e6 | 9759 | fi |
81ae7da0 | 9760 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 9761 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 9762 | fi |
81ae7da0 BM |
9763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9764 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 9765 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9766 | cat >>confdefs.h <<_ACEOF | |
9767 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9768 | _ACEOF | |
9769 | ||
81ae7da0 BM |
9770 | echo "$as_me:$LINENO: checking for _doprnt" >&5 |
9771 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
f69335e6 | 9772 | if test "${ac_cv_func__doprnt+set}" = set; then |
9773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9774 | else | |
9775 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9776 | /* confdefs.h. */ |
9777 | _ACEOF | |
9778 | cat confdefs.h >>conftest.$ac_ext | |
9779 | cat >>conftest.$ac_ext <<_ACEOF | |
9780 | /* end confdefs.h. */ | |
9781 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
9782 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9783 | #define _doprnt innocuous__doprnt | |
9784 | ||
f40ec73c | 9785 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
9786 | which can conflict with char _doprnt (); below. |
9787 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9788 | <limits.h> exists even on freestanding compilers. */ | |
9789 | ||
9790 | #ifdef __STDC__ | |
9791 | # include <limits.h> | |
9792 | #else | |
9793 | # include <assert.h> | |
9794 | #endif | |
9795 | ||
9796 | #undef _doprnt | |
9797 | ||
81ae7da0 | 9798 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 9799 | #ifdef __cplusplus |
9800 | extern "C" | |
81ae7da0 | 9801 | { |
f69335e6 | 9802 | #endif |
81ae7da0 BM |
9803 | /* We use char because int might match the return type of a gcc2 |
9804 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 9805 | char _doprnt (); |
f40ec73c | 9806 | /* The GNU C library defines this for functions which it implements |
9807 | to always fail with ENOSYS. Some functions are actually named | |
9808 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 9809 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
f40ec73c | 9810 | choke me |
81ae7da0 BM |
9811 | #else |
9812 | char (*f) () = _doprnt; | |
9813 | #endif | |
9814 | #ifdef __cplusplus | |
9815 | } | |
f40ec73c | 9816 | #endif |
9817 | ||
cbdd3138 BM |
9818 | int |
9819 | main () | |
9820 | { | |
81ae7da0 | 9821 | return f != _doprnt; |
f69335e6 | 9822 | ; |
9823 | return 0; | |
9824 | } | |
9825 | _ACEOF | |
9826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
9827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9828 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 9829 | ac_status=$? |
cbdd3138 BM |
9830 | grep -v '^ *+' conftest.er1 >conftest.err |
9831 | rm -f conftest.er1 | |
9832 | cat conftest.err >&5 | |
f69335e6 | 9833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9834 | (exit $ac_status); } && | |
64b46a71 | 9835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
9836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9837 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
9838 | ac_status=$? |
9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9840 | (exit $ac_status); }; } && | |
9841 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
9842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9843 | (eval $ac_try) 2>&5 | |
f69335e6 | 9844 | ac_status=$? |
9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9846 | (exit $ac_status); }; }; then | |
9847 | ac_cv_func__doprnt=yes | |
9848 | else | |
9849 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9850 | sed 's/^/| /' conftest.$ac_ext >&5 |
9851 | ||
81ae7da0 | 9852 | ac_cv_func__doprnt=no |
f69335e6 | 9853 | fi |
81ae7da0 | 9854 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 9855 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 9856 | fi |
81ae7da0 BM |
9857 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
9858 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
f69335e6 | 9859 | if test $ac_cv_func__doprnt = yes; then |
9860 | ||
9861 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 9862 | #define HAVE_DOPRNT 1 |
f69335e6 | 9863 | _ACEOF |
f40ec73c | 9864 | |
f40ec73c | 9865 | fi |
9866 | ||
9867 | fi | |
f69335e6 | 9868 | done |
9869 | ||
9870 | ||
f40ec73c | 9871 | |
9872 | for ac_func in gettimeofday | |
9873 | do | |
f69335e6 | 9874 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
9875 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9876 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9877 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 9878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9879 | else | |
9880 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9881 | /* confdefs.h. */ |
9882 | _ACEOF | |
9883 | cat confdefs.h >>conftest.$ac_ext | |
9884 | cat >>conftest.$ac_ext <<_ACEOF | |
9885 | /* end confdefs.h. */ | |
9886 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9887 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9888 | #define $ac_func innocuous_$ac_func | |
9889 | ||
f40ec73c | 9890 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
9891 | which can conflict with char $ac_func (); below. |
9892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9893 | <limits.h> exists even on freestanding compilers. */ | |
9894 | ||
9895 | #ifdef __STDC__ | |
9896 | # include <limits.h> | |
9897 | #else | |
9898 | # include <assert.h> | |
9899 | #endif | |
9900 | ||
9901 | #undef $ac_func | |
9902 | ||
81ae7da0 | 9903 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 9904 | #ifdef __cplusplus |
9905 | extern "C" | |
81ae7da0 | 9906 | { |
f69335e6 | 9907 | #endif |
81ae7da0 BM |
9908 | /* We use char because int might match the return type of a gcc2 |
9909 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 9910 | char $ac_func (); |
f40ec73c | 9911 | /* The GNU C library defines this for functions which it implements |
9912 | to always fail with ENOSYS. Some functions are actually named | |
9913 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 9914 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 9915 | choke me |
81ae7da0 BM |
9916 | #else |
9917 | char (*f) () = $ac_func; | |
9918 | #endif | |
9919 | #ifdef __cplusplus | |
9920 | } | |
f40ec73c | 9921 | #endif |
9922 | ||
cbdd3138 BM |
9923 | int |
9924 | main () | |
9925 | { | |
81ae7da0 | 9926 | return f != $ac_func; |
f69335e6 | 9927 | ; |
9928 | return 0; | |
9929 | } | |
9930 | _ACEOF | |
9931 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
9932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9933 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 9934 | ac_status=$? |
cbdd3138 BM |
9935 | grep -v '^ *+' conftest.er1 >conftest.err |
9936 | rm -f conftest.er1 | |
9937 | cat conftest.err >&5 | |
f69335e6 | 9938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9939 | (exit $ac_status); } && | |
64b46a71 | 9940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
9941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9942 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
9943 | ac_status=$? |
9944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9945 | (exit $ac_status); }; } && | |
9946 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
9947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9948 | (eval $ac_try) 2>&5 | |
f69335e6 | 9949 | ac_status=$? |
9950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9951 | (exit $ac_status); }; }; then | |
9952 | eval "$as_ac_var=yes" | |
9953 | else | |
9954 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
9955 | sed 's/^/| /' conftest.$ac_ext >&5 |
9956 | ||
81ae7da0 | 9957 | eval "$as_ac_var=no" |
f69335e6 | 9958 | fi |
81ae7da0 | 9959 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 9960 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 9961 | fi |
81ae7da0 BM |
9962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9963 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 9964 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9965 | cat >>confdefs.h <<_ACEOF | |
9966 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9967 | _ACEOF | |
9968 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 9969 | #define GETTIMEOFDAY 1 |
f69335e6 | 9970 | _ACEOF |
f40ec73c | 9971 | |
9972 | else | |
f69335e6 | 9973 | |
f40ec73c | 9974 | for ac_func in lrand48 |
9975 | do | |
f69335e6 | 9976 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
9977 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9978 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9979 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 9980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9981 | else | |
9982 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
9983 | /* confdefs.h. */ |
9984 | _ACEOF | |
9985 | cat confdefs.h >>conftest.$ac_ext | |
9986 | cat >>conftest.$ac_ext <<_ACEOF | |
9987 | /* end confdefs.h. */ | |
9988 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9989 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9990 | #define $ac_func innocuous_$ac_func | |
9991 | ||
f40ec73c | 9992 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
9993 | which can conflict with char $ac_func (); below. |
9994 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9995 | <limits.h> exists even on freestanding compilers. */ | |
9996 | ||
9997 | #ifdef __STDC__ | |
9998 | # include <limits.h> | |
9999 | #else | |
10000 | # include <assert.h> | |
10001 | #endif | |
10002 | ||
10003 | #undef $ac_func | |
10004 | ||
81ae7da0 | 10005 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 10006 | #ifdef __cplusplus |
10007 | extern "C" | |
81ae7da0 | 10008 | { |
f69335e6 | 10009 | #endif |
81ae7da0 BM |
10010 | /* We use char because int might match the return type of a gcc2 |
10011 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 10012 | char $ac_func (); |
f40ec73c | 10013 | /* The GNU C library defines this for functions which it implements |
10014 | to always fail with ENOSYS. Some functions are actually named | |
10015 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 10016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 10017 | choke me |
81ae7da0 BM |
10018 | #else |
10019 | char (*f) () = $ac_func; | |
10020 | #endif | |
10021 | #ifdef __cplusplus | |
10022 | } | |
f40ec73c | 10023 | #endif |
10024 | ||
cbdd3138 BM |
10025 | int |
10026 | main () | |
10027 | { | |
81ae7da0 | 10028 | return f != $ac_func; |
f69335e6 | 10029 | ; |
10030 | return 0; | |
10031 | } | |
10032 | _ACEOF | |
10033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
10034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10035 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 10036 | ac_status=$? |
cbdd3138 BM |
10037 | grep -v '^ *+' conftest.er1 >conftest.err |
10038 | rm -f conftest.er1 | |
10039 | cat conftest.err >&5 | |
f69335e6 | 10040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10041 | (exit $ac_status); } && | |
64b46a71 | 10042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
10043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10044 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
10045 | ac_status=$? |
10046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10047 | (exit $ac_status); }; } && | |
10048 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
10049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10050 | (eval $ac_try) 2>&5 | |
f69335e6 | 10051 | ac_status=$? |
10052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10053 | (exit $ac_status); }; }; then | |
10054 | eval "$as_ac_var=yes" | |
10055 | else | |
10056 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10057 | sed 's/^/| /' conftest.$ac_ext >&5 |
10058 | ||
81ae7da0 | 10059 | eval "$as_ac_var=no" |
f69335e6 | 10060 | fi |
81ae7da0 | 10061 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 10062 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 10063 | fi |
81ae7da0 BM |
10064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10065 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 10066 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10067 | cat >>confdefs.h <<_ACEOF | |
10068 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10069 | _ACEOF | |
10070 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 10071 | #define LRADN48 1 |
f69335e6 | 10072 | _ACEOF |
f40ec73c | 10073 | |
f40ec73c | 10074 | fi |
10075 | done | |
10076 | ||
10077 | fi | |
10078 | done | |
10079 | ||
f69335e6 | 10080 | |
f40ec73c | 10081 | for ac_func in getrusage |
10082 | do | |
f69335e6 | 10083 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
10084 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10085 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10086 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 10087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10088 | else | |
10089 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
10090 | /* confdefs.h. */ |
10091 | _ACEOF | |
10092 | cat confdefs.h >>conftest.$ac_ext | |
10093 | cat >>conftest.$ac_ext <<_ACEOF | |
10094 | /* end confdefs.h. */ | |
10095 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10096 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10097 | #define $ac_func innocuous_$ac_func | |
10098 | ||
f40ec73c | 10099 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
10100 | which can conflict with char $ac_func (); below. |
10101 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10102 | <limits.h> exists even on freestanding compilers. */ | |
10103 | ||
10104 | #ifdef __STDC__ | |
10105 | # include <limits.h> | |
10106 | #else | |
10107 | # include <assert.h> | |
10108 | #endif | |
10109 | ||
10110 | #undef $ac_func | |
10111 | ||
81ae7da0 | 10112 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 10113 | #ifdef __cplusplus |
10114 | extern "C" | |
81ae7da0 | 10115 | { |
f69335e6 | 10116 | #endif |
81ae7da0 BM |
10117 | /* We use char because int might match the return type of a gcc2 |
10118 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 10119 | char $ac_func (); |
f40ec73c | 10120 | /* The GNU C library defines this for functions which it implements |
10121 | to always fail with ENOSYS. Some functions are actually named | |
10122 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 10123 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 10124 | choke me |
81ae7da0 BM |
10125 | #else |
10126 | char (*f) () = $ac_func; | |
10127 | #endif | |
10128 | #ifdef __cplusplus | |
10129 | } | |
f40ec73c | 10130 | #endif |
10131 | ||
cbdd3138 BM |
10132 | int |
10133 | main () | |
10134 | { | |
81ae7da0 | 10135 | return f != $ac_func; |
f69335e6 | 10136 | ; |
10137 | return 0; | |
10138 | } | |
10139 | _ACEOF | |
10140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
10141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10142 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 10143 | ac_status=$? |
cbdd3138 BM |
10144 | grep -v '^ *+' conftest.er1 >conftest.err |
10145 | rm -f conftest.er1 | |
10146 | cat conftest.err >&5 | |
f69335e6 | 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10148 | (exit $ac_status); } && | |
64b46a71 | 10149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
10150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10151 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
10152 | ac_status=$? |
10153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10154 | (exit $ac_status); }; } && | |
10155 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
10156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10157 | (eval $ac_try) 2>&5 | |
f69335e6 | 10158 | ac_status=$? |
10159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10160 | (exit $ac_status); }; }; then | |
10161 | eval "$as_ac_var=yes" | |
10162 | else | |
10163 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10164 | sed 's/^/| /' conftest.$ac_ext >&5 |
10165 | ||
81ae7da0 | 10166 | eval "$as_ac_var=no" |
f69335e6 | 10167 | fi |
81ae7da0 | 10168 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 10169 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 10170 | fi |
81ae7da0 BM |
10171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10172 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 10173 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10174 | cat >>confdefs.h <<_ACEOF | |
10175 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10176 | _ACEOF | |
10177 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 10178 | #define GETRUSAGE_2 1 |
f69335e6 | 10179 | _ACEOF |
f40ec73c | 10180 | |
10181 | else | |
f69335e6 | 10182 | |
f40ec73c | 10183 | for ac_func in times |
10184 | do | |
f69335e6 | 10185 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
10186 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10187 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10188 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 10189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10190 | else | |
10191 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
10192 | /* confdefs.h. */ |
10193 | _ACEOF | |
10194 | cat confdefs.h >>conftest.$ac_ext | |
10195 | cat >>conftest.$ac_ext <<_ACEOF | |
10196 | /* end confdefs.h. */ | |
10197 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10198 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10199 | #define $ac_func innocuous_$ac_func | |
10200 | ||
f40ec73c | 10201 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
10202 | which can conflict with char $ac_func (); below. |
10203 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10204 | <limits.h> exists even on freestanding compilers. */ | |
10205 | ||
10206 | #ifdef __STDC__ | |
10207 | # include <limits.h> | |
10208 | #else | |
10209 | # include <assert.h> | |
10210 | #endif | |
10211 | ||
10212 | #undef $ac_func | |
10213 | ||
81ae7da0 | 10214 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 10215 | #ifdef __cplusplus |
10216 | extern "C" | |
81ae7da0 | 10217 | { |
f69335e6 | 10218 | #endif |
81ae7da0 BM |
10219 | /* We use char because int might match the return type of a gcc2 |
10220 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 10221 | char $ac_func (); |
f40ec73c | 10222 | /* The GNU C library defines this for functions which it implements |
10223 | to always fail with ENOSYS. Some functions are actually named | |
10224 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 10225 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 10226 | choke me |
81ae7da0 BM |
10227 | #else |
10228 | char (*f) () = $ac_func; | |
10229 | #endif | |
10230 | #ifdef __cplusplus | |
10231 | } | |
f40ec73c | 10232 | #endif |
10233 | ||
cbdd3138 BM |
10234 | int |
10235 | main () | |
10236 | { | |
81ae7da0 | 10237 | return f != $ac_func; |
f69335e6 | 10238 | ; |
10239 | return 0; | |
10240 | } | |
10241 | _ACEOF | |
10242 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
10243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10244 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 10245 | ac_status=$? |
cbdd3138 BM |
10246 | grep -v '^ *+' conftest.er1 >conftest.err |
10247 | rm -f conftest.er1 | |
10248 | cat conftest.err >&5 | |
f69335e6 | 10249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10250 | (exit $ac_status); } && | |
64b46a71 | 10251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
10252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10253 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
10254 | ac_status=$? |
10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10256 | (exit $ac_status); }; } && | |
10257 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
10258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10259 | (eval $ac_try) 2>&5 | |
f69335e6 | 10260 | ac_status=$? |
10261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10262 | (exit $ac_status); }; }; then | |
10263 | eval "$as_ac_var=yes" | |
10264 | else | |
10265 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10266 | sed 's/^/| /' conftest.$ac_ext >&5 |
10267 | ||
81ae7da0 | 10268 | eval "$as_ac_var=no" |
f69335e6 | 10269 | fi |
81ae7da0 | 10270 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 10271 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 10272 | fi |
81ae7da0 BM |
10273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10274 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 10275 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10276 | cat >>confdefs.h <<_ACEOF | |
10277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10278 | _ACEOF | |
10279 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 10280 | #define TIMES_2 1 |
f69335e6 | 10281 | _ACEOF |
f40ec73c | 10282 | |
f40ec73c | 10283 | fi |
10284 | done | |
10285 | ||
10286 | fi | |
10287 | done | |
10288 | ||
f69335e6 | 10289 | |
b9602884 | 10290 | for ac_func in setproctitle |
10291 | do | |
f69335e6 | 10292 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
10293 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10294 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10295 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 10296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10297 | else | |
10298 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
10299 | /* confdefs.h. */ |
10300 | _ACEOF | |
10301 | cat confdefs.h >>conftest.$ac_ext | |
10302 | cat >>conftest.$ac_ext <<_ACEOF | |
10303 | /* end confdefs.h. */ | |
10304 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10306 | #define $ac_func innocuous_$ac_func | |
10307 | ||
b9602884 | 10308 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
10309 | which can conflict with char $ac_func (); below. |
10310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10311 | <limits.h> exists even on freestanding compilers. */ | |
10312 | ||
10313 | #ifdef __STDC__ | |
10314 | # include <limits.h> | |
10315 | #else | |
10316 | # include <assert.h> | |
10317 | #endif | |
10318 | ||
10319 | #undef $ac_func | |
10320 | ||
81ae7da0 | 10321 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 10322 | #ifdef __cplusplus |
10323 | extern "C" | |
81ae7da0 | 10324 | { |
f69335e6 | 10325 | #endif |
81ae7da0 BM |
10326 | /* We use char because int might match the return type of a gcc2 |
10327 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 10328 | char $ac_func (); |
b9602884 | 10329 | /* The GNU C library defines this for functions which it implements |
10330 | to always fail with ENOSYS. Some functions are actually named | |
10331 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 10332 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b9602884 | 10333 | choke me |
81ae7da0 BM |
10334 | #else |
10335 | char (*f) () = $ac_func; | |
10336 | #endif | |
10337 | #ifdef __cplusplus | |
10338 | } | |
b9602884 | 10339 | #endif |
10340 | ||
cbdd3138 BM |
10341 | int |
10342 | main () | |
10343 | { | |
81ae7da0 | 10344 | return f != $ac_func; |
f69335e6 | 10345 | ; |
10346 | return 0; | |
10347 | } | |
10348 | _ACEOF | |
10349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
10350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10351 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 10352 | ac_status=$? |
cbdd3138 BM |
10353 | grep -v '^ *+' conftest.er1 >conftest.err |
10354 | rm -f conftest.er1 | |
10355 | cat conftest.err >&5 | |
f69335e6 | 10356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10357 | (exit $ac_status); } && | |
64b46a71 | 10358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
10359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10360 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
10361 | ac_status=$? |
10362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10363 | (exit $ac_status); }; } && | |
10364 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
10365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10366 | (eval $ac_try) 2>&5 | |
f69335e6 | 10367 | ac_status=$? |
10368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10369 | (exit $ac_status); }; }; then | |
10370 | eval "$as_ac_var=yes" | |
10371 | else | |
10372 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10373 | sed 's/^/| /' conftest.$ac_ext >&5 |
10374 | ||
81ae7da0 | 10375 | eval "$as_ac_var=no" |
f69335e6 | 10376 | fi |
81ae7da0 | 10377 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 10378 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 10379 | fi |
81ae7da0 BM |
10380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10381 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 10382 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10383 | cat >>confdefs.h <<_ACEOF | |
10384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10385 | _ACEOF | |
10386 | cat >>confdefs.h <<\_ACEOF | |
b9602884 | 10387 | #define HAVE_SETPROCTITLE 1 |
f69335e6 | 10388 | _ACEOF |
b9602884 | 10389 | |
10390 | else | |
f69335e6 | 10391 | |
81ae7da0 BM |
10392 | echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5 |
10393 | echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6 | |
f69335e6 | 10394 | if test "${ac_cv_lib_util_setproctitle+set}" = set; then |
10395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
afebe156 | 10396 | else |
f69335e6 | 10397 | ac_check_lib_save_LIBS=$LIBS |
afebe156 | 10398 | LIBS="-lutil $LIBS" |
f69335e6 | 10399 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
10400 | /* confdefs.h. */ |
10401 | _ACEOF | |
10402 | cat confdefs.h >>conftest.$ac_ext | |
10403 | cat >>conftest.$ac_ext <<_ACEOF | |
10404 | /* end confdefs.h. */ | |
f69335e6 | 10405 | |
81ae7da0 | 10406 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 10407 | #ifdef __cplusplus |
10408 | extern "C" | |
10409 | #endif | |
81ae7da0 BM |
10410 | /* We use char because int might match the return type of a gcc2 |
10411 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 10412 | char setproctitle (); |
f69335e6 | 10413 | int |
10414 | main () | |
10415 | { | |
81ae7da0 | 10416 | setproctitle (); |
f69335e6 | 10417 | ; |
10418 | return 0; | |
10419 | } | |
10420 | _ACEOF | |
10421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
10422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10423 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 10424 | ac_status=$? |
cbdd3138 BM |
10425 | grep -v '^ *+' conftest.er1 >conftest.err |
10426 | rm -f conftest.er1 | |
10427 | cat conftest.err >&5 | |
f69335e6 | 10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10429 | (exit $ac_status); } && | |
64b46a71 | 10430 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
10431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10432 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
10433 | ac_status=$? |
10434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10435 | (exit $ac_status); }; } && | |
10436 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
10437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10438 | (eval $ac_try) 2>&5 | |
f69335e6 | 10439 | ac_status=$? |
10440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10441 | (exit $ac_status); }; }; then | |
10442 | ac_cv_lib_util_setproctitle=yes | |
10443 | else | |
10444 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10445 | sed 's/^/| /' conftest.$ac_ext >&5 |
10446 | ||
81ae7da0 | 10447 | ac_cv_lib_util_setproctitle=no |
f69335e6 | 10448 | fi |
81ae7da0 | 10449 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 10450 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 10451 | LIBS=$ac_check_lib_save_LIBS |
10452 | fi | |
81ae7da0 BM |
10453 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5 |
10454 | echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6 | |
f69335e6 | 10455 | if test $ac_cv_lib_util_setproctitle = yes; then |
10456 | cat >>confdefs.h <<\_ACEOF | |
afebe156 | 10457 | #define HAVE_SETPROCTITLE 1 |
f69335e6 | 10458 | _ACEOF |
afebe156 | 10459 | IRCDLIBS="$IRCDLIBS-lutil" |
10460 | else | |
ab9db562 | 10461 | |
f69335e6 | 10462 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
10463 | /* confdefs.h. */ |
10464 | _ACEOF | |
10465 | cat confdefs.h >>conftest.$ac_ext | |
10466 | cat >>conftest.$ac_ext <<_ACEOF | |
10467 | /* end confdefs.h. */ | |
ab9db562 | 10468 | #include <sys/exec.h> |
f69335e6 | 10469 | |
10470 | _ACEOF | |
ab9db562 | 10471 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cbdd3138 | 10472 | $EGREP "#define.*PS_STRINGS.*" >/dev/null 2>&1; then |
f69335e6 | 10473 | cat >>confdefs.h <<\_ACEOF |
ab9db562 | 10474 | #define HAVE_PSSTRINGS 1 |
f69335e6 | 10475 | _ACEOF |
ab9db562 | 10476 | |
10477 | else | |
f69335e6 | 10478 | |
10479 | ||
ab9db562 | 10480 | for ac_func in pstat |
10481 | do | |
f69335e6 | 10482 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
10483 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10484 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10485 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 10486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10487 | else | |
10488 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
10489 | /* confdefs.h. */ |
10490 | _ACEOF | |
10491 | cat confdefs.h >>conftest.$ac_ext | |
10492 | cat >>conftest.$ac_ext <<_ACEOF | |
10493 | /* end confdefs.h. */ | |
10494 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10495 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10496 | #define $ac_func innocuous_$ac_func | |
10497 | ||
ab9db562 | 10498 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
10499 | which can conflict with char $ac_func (); below. |
10500 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10501 | <limits.h> exists even on freestanding compilers. */ | |
10502 | ||
10503 | #ifdef __STDC__ | |
10504 | # include <limits.h> | |
10505 | #else | |
10506 | # include <assert.h> | |
10507 | #endif | |
10508 | ||
10509 | #undef $ac_func | |
10510 | ||
81ae7da0 | 10511 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 10512 | #ifdef __cplusplus |
10513 | extern "C" | |
81ae7da0 | 10514 | { |
f69335e6 | 10515 | #endif |
81ae7da0 BM |
10516 | /* We use char because int might match the return type of a gcc2 |
10517 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 10518 | char $ac_func (); |
ab9db562 | 10519 | /* The GNU C library defines this for functions which it implements |
10520 | to always fail with ENOSYS. Some functions are actually named | |
10521 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 10522 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
ab9db562 | 10523 | choke me |
81ae7da0 BM |
10524 | #else |
10525 | char (*f) () = $ac_func; | |
10526 | #endif | |
10527 | #ifdef __cplusplus | |
10528 | } | |
ab9db562 | 10529 | #endif |
10530 | ||
cbdd3138 BM |
10531 | int |
10532 | main () | |
10533 | { | |
81ae7da0 | 10534 | return f != $ac_func; |
f69335e6 | 10535 | ; |
10536 | return 0; | |
10537 | } | |
10538 | _ACEOF | |
10539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
10540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10541 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 10542 | ac_status=$? |
cbdd3138 BM |
10543 | grep -v '^ *+' conftest.er1 >conftest.err |
10544 | rm -f conftest.er1 | |
10545 | cat conftest.err >&5 | |
f69335e6 | 10546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10547 | (exit $ac_status); } && | |
64b46a71 | 10548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
10549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10550 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
10551 | ac_status=$? |
10552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10553 | (exit $ac_status); }; } && | |
10554 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
10555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10556 | (eval $ac_try) 2>&5 | |
f69335e6 | 10557 | ac_status=$? |
10558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10559 | (exit $ac_status); }; }; then | |
10560 | eval "$as_ac_var=yes" | |
10561 | else | |
10562 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10563 | sed 's/^/| /' conftest.$ac_ext >&5 |
10564 | ||
81ae7da0 | 10565 | eval "$as_ac_var=no" |
f69335e6 | 10566 | fi |
81ae7da0 | 10567 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 10568 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 10569 | fi |
81ae7da0 BM |
10570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10571 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 10572 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10573 | cat >>confdefs.h <<_ACEOF | |
10574 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10575 | _ACEOF | |
10576 | cat >>confdefs.h <<\_ACEOF | |
ab9db562 | 10577 | #define HAVE_PSTAT 1 |
f69335e6 | 10578 | _ACEOF |
ab9db562 | 10579 | |
ab9db562 | 10580 | fi |
10581 | done | |
10582 | ||
10583 | ||
10584 | fi | |
10585 | rm -f conftest* | |
10586 | ||
10587 | ||
10588 | fi | |
10589 | ||
10590 | ||
10591 | fi | |
10592 | done | |
10593 | ||
81ae7da0 BM |
10594 | echo "$as_me:$LINENO: checking what type of signals you have" >&5 |
10595 | echo $ECHO_N "checking what type of signals you have... $ECHO_C" >&6 | |
f69335e6 | 10596 | if test "${ac_cv_sigtype+set}" = set; then |
10597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 10598 | else |
f69335e6 | 10599 | |
f40ec73c | 10600 | if test "$cross_compiling" = yes; then |
cbdd3138 BM |
10601 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
10602 | See \`config.log' for more details." >&5 | |
10603 | echo "$as_me: error: cannot run test program while cross compiling | |
10604 | See \`config.log' for more details." >&2;} | |
f69335e6 | 10605 | { (exit 1); exit 1; }; } |
f40ec73c | 10606 | else |
f69335e6 | 10607 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
10608 | /* confdefs.h. */ |
10609 | _ACEOF | |
10610 | cat confdefs.h >>conftest.$ac_ext | |
10611 | cat >>conftest.$ac_ext <<_ACEOF | |
10612 | /* end confdefs.h. */ | |
f40ec73c | 10613 | |
10614 | #include <signal.h> | |
10615 | int main() { | |
10616 | sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L); | |
10617 | } | |
10618 | ||
f69335e6 | 10619 | _ACEOF |
10620 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
10621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10622 | (eval $ac_link) 2>&5 | |
f69335e6 | 10623 | ac_status=$? |
10624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10625 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
10626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10627 | (eval $ac_try) 2>&5 | |
f69335e6 | 10628 | ac_status=$? |
10629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10630 | (exit $ac_status); }; }; then | |
f40ec73c | 10631 | ac_cv_sigtype=POSIX |
10632 | else | |
f69335e6 | 10633 | echo "$as_me: program exited with status $ac_status" >&5 |
10634 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10635 | sed 's/^/| /' conftest.$ac_ext >&5 |
10636 | ||
f69335e6 | 10637 | ( exit $ac_status ) |
10638 | ||
f40ec73c | 10639 | if test "$cross_compiling" = yes; then |
cbdd3138 BM |
10640 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
10641 | See \`config.log' for more details." >&5 | |
10642 | echo "$as_me: error: cannot run test program while cross compiling | |
10643 | See \`config.log' for more details." >&2;} | |
f69335e6 | 10644 | { (exit 1); exit 1; }; } |
f40ec73c | 10645 | else |
f69335e6 | 10646 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
10647 | /* confdefs.h. */ |
10648 | _ACEOF | |
10649 | cat confdefs.h >>conftest.$ac_ext | |
10650 | cat >>conftest.$ac_ext <<_ACEOF | |
10651 | /* end confdefs.h. */ | |
f40ec73c | 10652 | |
10653 | #include <signal.h> | |
10654 | int calls = 0; | |
10655 | void handler() | |
10656 | { | |
10657 | if (calls) | |
10658 | return; | |
10659 | calls++; | |
10660 | kill(getpid(), SIGTERM); | |
10661 | sleep(1); | |
10662 | } | |
10663 | ||
10664 | int main() { | |
10665 | signal(SIGTERM, handler); | |
10666 | kill(getpid(), SIGTERM); | |
10667 | exit(0); | |
10668 | } | |
10669 | ||
f69335e6 | 10670 | _ACEOF |
10671 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
10672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10673 | (eval $ac_link) 2>&5 | |
f69335e6 | 10674 | ac_status=$? |
10675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10676 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
10677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10678 | (eval $ac_try) 2>&5 | |
f69335e6 | 10679 | ac_status=$? |
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10681 | (exit $ac_status); }; }; then | |
f40ec73c | 10682 | ac_cv_sigtype=BSD |
10683 | else | |
f69335e6 | 10684 | echo "$as_me: program exited with status $ac_status" >&5 |
10685 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10686 | sed 's/^/| /' conftest.$ac_ext >&5 |
10687 | ||
f69335e6 | 10688 | ( exit $ac_status ) |
10689 | ac_cv_sigtype=SYSV | |
f40ec73c | 10690 | fi |
81ae7da0 | 10691 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 10692 | fi |
f40ec73c | 10693 | fi |
81ae7da0 | 10694 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 10695 | fi |
f40ec73c | 10696 | fi |
81ae7da0 BM |
10697 | echo "$as_me:$LINENO: result: $ac_cv_sigtype" >&5 |
10698 | echo "${ECHO_T}$ac_cv_sigtype" >&6 | |
f40ec73c | 10699 | |
776fa42c | 10700 | if test "$ac_cv_sigtype" = "POSIX"; then |
f69335e6 | 10701 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 10702 | #define POSIX_SIGNALS 1 |
f69335e6 | 10703 | _ACEOF |
f40ec73c | 10704 | |
776fa42c | 10705 | elif test "$ac_cv_sigtype" = "BSD"; then |
f69335e6 | 10706 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 10707 | #define BSD_RELIABLE_SIGNALS 1 |
f69335e6 | 10708 | _ACEOF |
f40ec73c | 10709 | |
10710 | else | |
f69335e6 | 10711 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 10712 | #define SYSV_UNRELIABLE_SIGNALS 1 |
f69335e6 | 10713 | _ACEOF |
10714 | ||
10715 | fi | |
f40ec73c | 10716 | |
f40ec73c | 10717 | for ac_func in strtoken |
10718 | do | |
f69335e6 | 10719 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
10720 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10721 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10722 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 10723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10724 | else | |
10725 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
10726 | /* confdefs.h. */ |
10727 | _ACEOF | |
10728 | cat confdefs.h >>conftest.$ac_ext | |
10729 | cat >>conftest.$ac_ext <<_ACEOF | |
10730 | /* end confdefs.h. */ | |
10731 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10732 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10733 | #define $ac_func innocuous_$ac_func | |
10734 | ||
f40ec73c | 10735 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
10736 | which can conflict with char $ac_func (); below. |
10737 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10738 | <limits.h> exists even on freestanding compilers. */ | |
10739 | ||
10740 | #ifdef __STDC__ | |
10741 | # include <limits.h> | |
10742 | #else | |
10743 | # include <assert.h> | |
10744 | #endif | |
10745 | ||
10746 | #undef $ac_func | |
10747 | ||
81ae7da0 | 10748 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 10749 | #ifdef __cplusplus |
10750 | extern "C" | |
81ae7da0 | 10751 | { |
f69335e6 | 10752 | #endif |
81ae7da0 BM |
10753 | /* We use char because int might match the return type of a gcc2 |
10754 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 10755 | char $ac_func (); |
f40ec73c | 10756 | /* The GNU C library defines this for functions which it implements |
10757 | to always fail with ENOSYS. Some functions are actually named | |
10758 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 10759 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 10760 | choke me |
81ae7da0 BM |
10761 | #else |
10762 | char (*f) () = $ac_func; | |
10763 | #endif | |
10764 | #ifdef __cplusplus | |
10765 | } | |
f40ec73c | 10766 | #endif |
10767 | ||
cbdd3138 BM |
10768 | int |
10769 | main () | |
10770 | { | |
81ae7da0 | 10771 | return f != $ac_func; |
f69335e6 | 10772 | ; |
10773 | return 0; | |
10774 | } | |
10775 | _ACEOF | |
10776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
10777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10778 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 10779 | ac_status=$? |
cbdd3138 BM |
10780 | grep -v '^ *+' conftest.er1 >conftest.err |
10781 | rm -f conftest.er1 | |
10782 | cat conftest.err >&5 | |
f69335e6 | 10783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10784 | (exit $ac_status); } && | |
64b46a71 | 10785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
10786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10787 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
10788 | ac_status=$? |
10789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10790 | (exit $ac_status); }; } && | |
10791 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
10792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10793 | (eval $ac_try) 2>&5 | |
f69335e6 | 10794 | ac_status=$? |
10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10796 | (exit $ac_status); }; }; then | |
10797 | eval "$as_ac_var=yes" | |
10798 | else | |
10799 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10800 | sed 's/^/| /' conftest.$ac_ext >&5 |
10801 | ||
81ae7da0 | 10802 | eval "$as_ac_var=no" |
f69335e6 | 10803 | fi |
81ae7da0 | 10804 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 10805 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 10806 | fi |
81ae7da0 BM |
10807 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10808 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 10809 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10810 | cat >>confdefs.h <<_ACEOF | |
10811 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10812 | _ACEOF | |
10813 | ||
10814 | else | |
10815 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 10816 | #define NEED_STRTOKEN 1 |
f69335e6 | 10817 | _ACEOF |
f40ec73c | 10818 | |
10819 | fi | |
10820 | done | |
10821 | ||
f69335e6 | 10822 | |
f40ec73c | 10823 | for ac_func in strtok |
10824 | do | |
f69335e6 | 10825 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
10826 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10827 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10828 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 10829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10830 | else | |
10831 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
10832 | /* confdefs.h. */ |
10833 | _ACEOF | |
10834 | cat confdefs.h >>conftest.$ac_ext | |
10835 | cat >>conftest.$ac_ext <<_ACEOF | |
10836 | /* end confdefs.h. */ | |
10837 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10838 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10839 | #define $ac_func innocuous_$ac_func | |
10840 | ||
f40ec73c | 10841 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
10842 | which can conflict with char $ac_func (); below. |
10843 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10844 | <limits.h> exists even on freestanding compilers. */ | |
10845 | ||
10846 | #ifdef __STDC__ | |
10847 | # include <limits.h> | |
10848 | #else | |
10849 | # include <assert.h> | |
10850 | #endif | |
10851 | ||
10852 | #undef $ac_func | |
10853 | ||
81ae7da0 | 10854 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 10855 | #ifdef __cplusplus |
10856 | extern "C" | |
81ae7da0 | 10857 | { |
f69335e6 | 10858 | #endif |
81ae7da0 BM |
10859 | /* We use char because int might match the return type of a gcc2 |
10860 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 10861 | char $ac_func (); |
f40ec73c | 10862 | /* The GNU C library defines this for functions which it implements |
10863 | to always fail with ENOSYS. Some functions are actually named | |
10864 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 10865 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 10866 | choke me |
81ae7da0 BM |
10867 | #else |
10868 | char (*f) () = $ac_func; | |
10869 | #endif | |
10870 | #ifdef __cplusplus | |
10871 | } | |
f40ec73c | 10872 | #endif |
10873 | ||
cbdd3138 BM |
10874 | int |
10875 | main () | |
10876 | { | |
81ae7da0 | 10877 | return f != $ac_func; |
f69335e6 | 10878 | ; |
10879 | return 0; | |
10880 | } | |
10881 | _ACEOF | |
10882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
10883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10884 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 10885 | ac_status=$? |
cbdd3138 BM |
10886 | grep -v '^ *+' conftest.er1 >conftest.err |
10887 | rm -f conftest.er1 | |
10888 | cat conftest.err >&5 | |
f69335e6 | 10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10890 | (exit $ac_status); } && | |
64b46a71 | 10891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
10892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10893 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
10894 | ac_status=$? |
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 | (exit $ac_status); }; } && | |
10897 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
10898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10899 | (eval $ac_try) 2>&5 | |
f69335e6 | 10900 | ac_status=$? |
10901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10902 | (exit $ac_status); }; }; then | |
10903 | eval "$as_ac_var=yes" | |
10904 | else | |
10905 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
10906 | sed 's/^/| /' conftest.$ac_ext >&5 |
10907 | ||
81ae7da0 | 10908 | eval "$as_ac_var=no" |
f69335e6 | 10909 | fi |
81ae7da0 | 10910 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 10911 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 10912 | fi |
81ae7da0 BM |
10913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10914 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 10915 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10916 | cat >>confdefs.h <<_ACEOF | |
10917 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10918 | _ACEOF | |
10919 | ||
10920 | else | |
10921 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 10922 | #define NEED_STRTOK 1 |
f69335e6 | 10923 | _ACEOF |
f40ec73c | 10924 | |
10925 | fi | |
10926 | done | |
10927 | ||
f69335e6 | 10928 | |
f40ec73c | 10929 | for ac_func in strerror |
10930 | do | |
f69335e6 | 10931 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
10932 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10933 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10934 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 10935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10936 | else | |
10937 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
10938 | /* confdefs.h. */ |
10939 | _ACEOF | |
10940 | cat confdefs.h >>conftest.$ac_ext | |
10941 | cat >>conftest.$ac_ext <<_ACEOF | |
10942 | /* end confdefs.h. */ | |
10943 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10945 | #define $ac_func innocuous_$ac_func | |
10946 | ||
f40ec73c | 10947 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
10948 | which can conflict with char $ac_func (); below. |
10949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10950 | <limits.h> exists even on freestanding compilers. */ | |
10951 | ||
10952 | #ifdef __STDC__ | |
10953 | # include <limits.h> | |
10954 | #else | |
10955 | # include <assert.h> | |
10956 | #endif | |
10957 | ||
10958 | #undef $ac_func | |
10959 | ||
81ae7da0 | 10960 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 10961 | #ifdef __cplusplus |
10962 | extern "C" | |
81ae7da0 | 10963 | { |
f69335e6 | 10964 | #endif |
81ae7da0 BM |
10965 | /* We use char because int might match the return type of a gcc2 |
10966 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 10967 | char $ac_func (); |
f40ec73c | 10968 | /* The GNU C library defines this for functions which it implements |
10969 | to always fail with ENOSYS. Some functions are actually named | |
10970 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 10971 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 10972 | choke me |
81ae7da0 BM |
10973 | #else |
10974 | char (*f) () = $ac_func; | |
10975 | #endif | |
10976 | #ifdef __cplusplus | |
10977 | } | |
f40ec73c | 10978 | #endif |
10979 | ||
cbdd3138 BM |
10980 | int |
10981 | main () | |
10982 | { | |
81ae7da0 | 10983 | return f != $ac_func; |
f69335e6 | 10984 | ; |
10985 | return 0; | |
10986 | } | |
10987 | _ACEOF | |
10988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
10989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10990 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 10991 | ac_status=$? |
cbdd3138 BM |
10992 | grep -v '^ *+' conftest.er1 >conftest.err |
10993 | rm -f conftest.er1 | |
10994 | cat conftest.err >&5 | |
f69335e6 | 10995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10996 | (exit $ac_status); } && | |
64b46a71 | 10997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
10998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10999 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11000 | ac_status=$? |
11001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11002 | (exit $ac_status); }; } && | |
11003 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11005 | (eval $ac_try) 2>&5 | |
f69335e6 | 11006 | ac_status=$? |
11007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11008 | (exit $ac_status); }; }; then | |
11009 | eval "$as_ac_var=yes" | |
11010 | else | |
11011 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11012 | sed 's/^/| /' conftest.$ac_ext >&5 |
11013 | ||
81ae7da0 | 11014 | eval "$as_ac_var=no" |
f69335e6 | 11015 | fi |
81ae7da0 | 11016 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11017 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11018 | fi |
81ae7da0 BM |
11019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11020 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11021 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11022 | cat >>confdefs.h <<_ACEOF | |
11023 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11024 | _ACEOF | |
11025 | ||
11026 | else | |
11027 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 11028 | #define NEED_STRERROR 1 |
f69335e6 | 11029 | _ACEOF |
f40ec73c | 11030 | |
11031 | fi | |
11032 | done | |
11033 | ||
f69335e6 | 11034 | |
f40ec73c | 11035 | for ac_func in index |
11036 | do | |
f69335e6 | 11037 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11038 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11039 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11040 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11042 | else | |
11043 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11044 | /* confdefs.h. */ |
11045 | _ACEOF | |
11046 | cat confdefs.h >>conftest.$ac_ext | |
11047 | cat >>conftest.$ac_ext <<_ACEOF | |
11048 | /* end confdefs.h. */ | |
11049 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11050 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11051 | #define $ac_func innocuous_$ac_func | |
11052 | ||
f40ec73c | 11053 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
11054 | which can conflict with char $ac_func (); below. |
11055 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11056 | <limits.h> exists even on freestanding compilers. */ | |
11057 | ||
11058 | #ifdef __STDC__ | |
11059 | # include <limits.h> | |
11060 | #else | |
11061 | # include <assert.h> | |
11062 | #endif | |
11063 | ||
11064 | #undef $ac_func | |
11065 | ||
81ae7da0 | 11066 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 11067 | #ifdef __cplusplus |
11068 | extern "C" | |
81ae7da0 | 11069 | { |
f69335e6 | 11070 | #endif |
81ae7da0 BM |
11071 | /* We use char because int might match the return type of a gcc2 |
11072 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 11073 | char $ac_func (); |
f40ec73c | 11074 | /* The GNU C library defines this for functions which it implements |
11075 | to always fail with ENOSYS. Some functions are actually named | |
11076 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 11077 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 11078 | choke me |
81ae7da0 BM |
11079 | #else |
11080 | char (*f) () = $ac_func; | |
11081 | #endif | |
11082 | #ifdef __cplusplus | |
11083 | } | |
f40ec73c | 11084 | #endif |
11085 | ||
cbdd3138 BM |
11086 | int |
11087 | main () | |
11088 | { | |
81ae7da0 | 11089 | return f != $ac_func; |
f69335e6 | 11090 | ; |
11091 | return 0; | |
11092 | } | |
11093 | _ACEOF | |
11094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
11095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11096 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 11097 | ac_status=$? |
cbdd3138 BM |
11098 | grep -v '^ *+' conftest.er1 >conftest.err |
11099 | rm -f conftest.er1 | |
11100 | cat conftest.err >&5 | |
f69335e6 | 11101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11102 | (exit $ac_status); } && | |
64b46a71 | 11103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
11104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11105 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11106 | ac_status=$? |
11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11108 | (exit $ac_status); }; } && | |
11109 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11111 | (eval $ac_try) 2>&5 | |
f69335e6 | 11112 | ac_status=$? |
11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11114 | (exit $ac_status); }; }; then | |
11115 | eval "$as_ac_var=yes" | |
11116 | else | |
11117 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11118 | sed 's/^/| /' conftest.$ac_ext >&5 |
11119 | ||
81ae7da0 | 11120 | eval "$as_ac_var=no" |
f69335e6 | 11121 | fi |
81ae7da0 | 11122 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11123 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11124 | fi |
81ae7da0 BM |
11125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11126 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11127 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11128 | cat >>confdefs.h <<_ACEOF | |
11129 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11130 | _ACEOF | |
11131 | ||
11132 | else | |
11133 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 11134 | #define NOINDEX 1 |
f69335e6 | 11135 | _ACEOF |
f40ec73c | 11136 | |
11137 | fi | |
11138 | done | |
11139 | ||
f69335e6 | 11140 | |
f40ec73c | 11141 | for ac_func in strtoul |
11142 | do | |
f69335e6 | 11143 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11144 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11145 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11146 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11148 | else | |
11149 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11150 | /* confdefs.h. */ |
11151 | _ACEOF | |
11152 | cat confdefs.h >>conftest.$ac_ext | |
11153 | cat >>conftest.$ac_ext <<_ACEOF | |
11154 | /* end confdefs.h. */ | |
11155 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11156 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11157 | #define $ac_func innocuous_$ac_func | |
11158 | ||
f40ec73c | 11159 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
11160 | which can conflict with char $ac_func (); below. |
11161 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11162 | <limits.h> exists even on freestanding compilers. */ | |
11163 | ||
11164 | #ifdef __STDC__ | |
11165 | # include <limits.h> | |
11166 | #else | |
11167 | # include <assert.h> | |
11168 | #endif | |
11169 | ||
11170 | #undef $ac_func | |
11171 | ||
81ae7da0 | 11172 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 11173 | #ifdef __cplusplus |
11174 | extern "C" | |
81ae7da0 | 11175 | { |
f69335e6 | 11176 | #endif |
81ae7da0 BM |
11177 | /* We use char because int might match the return type of a gcc2 |
11178 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 11179 | char $ac_func (); |
f40ec73c | 11180 | /* The GNU C library defines this for functions which it implements |
11181 | to always fail with ENOSYS. Some functions are actually named | |
11182 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 11183 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 11184 | choke me |
81ae7da0 BM |
11185 | #else |
11186 | char (*f) () = $ac_func; | |
11187 | #endif | |
11188 | #ifdef __cplusplus | |
11189 | } | |
f40ec73c | 11190 | #endif |
11191 | ||
cbdd3138 BM |
11192 | int |
11193 | main () | |
11194 | { | |
81ae7da0 | 11195 | return f != $ac_func; |
f69335e6 | 11196 | ; |
11197 | return 0; | |
11198 | } | |
11199 | _ACEOF | |
11200 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
11201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11202 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 11203 | ac_status=$? |
cbdd3138 BM |
11204 | grep -v '^ *+' conftest.er1 >conftest.err |
11205 | rm -f conftest.er1 | |
11206 | cat conftest.err >&5 | |
f69335e6 | 11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11208 | (exit $ac_status); } && | |
64b46a71 | 11209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
11210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11211 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11212 | ac_status=$? |
11213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11214 | (exit $ac_status); }; } && | |
11215 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11217 | (eval $ac_try) 2>&5 | |
f69335e6 | 11218 | ac_status=$? |
11219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11220 | (exit $ac_status); }; }; then | |
11221 | eval "$as_ac_var=yes" | |
11222 | else | |
11223 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11224 | sed 's/^/| /' conftest.$ac_ext >&5 |
11225 | ||
81ae7da0 | 11226 | eval "$as_ac_var=no" |
f69335e6 | 11227 | fi |
81ae7da0 | 11228 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11229 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11230 | fi |
81ae7da0 BM |
11231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11232 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11233 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11234 | cat >>confdefs.h <<_ACEOF | |
11235 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11236 | _ACEOF | |
11237 | ||
11238 | else | |
11239 | STRTOUL="strtoul.o" | |
f40ec73c | 11240 | fi |
11241 | done | |
11242 | ||
f69335e6 | 11243 | |
f40ec73c | 11244 | for ac_func in bcopy |
11245 | do | |
f69335e6 | 11246 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11247 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11248 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11249 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11251 | else | |
11252 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11253 | /* confdefs.h. */ |
11254 | _ACEOF | |
11255 | cat confdefs.h >>conftest.$ac_ext | |
11256 | cat >>conftest.$ac_ext <<_ACEOF | |
11257 | /* end confdefs.h. */ | |
11258 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11259 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11260 | #define $ac_func innocuous_$ac_func | |
11261 | ||
f40ec73c | 11262 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
11263 | which can conflict with char $ac_func (); below. |
11264 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11265 | <limits.h> exists even on freestanding compilers. */ | |
11266 | ||
11267 | #ifdef __STDC__ | |
11268 | # include <limits.h> | |
11269 | #else | |
11270 | # include <assert.h> | |
11271 | #endif | |
11272 | ||
11273 | #undef $ac_func | |
11274 | ||
81ae7da0 | 11275 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 11276 | #ifdef __cplusplus |
11277 | extern "C" | |
81ae7da0 | 11278 | { |
f69335e6 | 11279 | #endif |
81ae7da0 BM |
11280 | /* We use char because int might match the return type of a gcc2 |
11281 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 11282 | char $ac_func (); |
f40ec73c | 11283 | /* The GNU C library defines this for functions which it implements |
11284 | to always fail with ENOSYS. Some functions are actually named | |
11285 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 11286 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 11287 | choke me |
81ae7da0 BM |
11288 | #else |
11289 | char (*f) () = $ac_func; | |
11290 | #endif | |
11291 | #ifdef __cplusplus | |
11292 | } | |
f40ec73c | 11293 | #endif |
11294 | ||
cbdd3138 BM |
11295 | int |
11296 | main () | |
11297 | { | |
81ae7da0 | 11298 | return f != $ac_func; |
f69335e6 | 11299 | ; |
11300 | return 0; | |
11301 | } | |
11302 | _ACEOF | |
11303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
11304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11305 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 11306 | ac_status=$? |
cbdd3138 BM |
11307 | grep -v '^ *+' conftest.er1 >conftest.err |
11308 | rm -f conftest.er1 | |
11309 | cat conftest.err >&5 | |
f69335e6 | 11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11311 | (exit $ac_status); } && | |
64b46a71 | 11312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
11313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11314 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11315 | ac_status=$? |
11316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11317 | (exit $ac_status); }; } && | |
11318 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11320 | (eval $ac_try) 2>&5 | |
f69335e6 | 11321 | ac_status=$? |
11322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11323 | (exit $ac_status); }; }; then | |
11324 | eval "$as_ac_var=yes" | |
11325 | else | |
11326 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11327 | sed 's/^/| /' conftest.$ac_ext >&5 |
11328 | ||
81ae7da0 | 11329 | eval "$as_ac_var=no" |
f69335e6 | 11330 | fi |
81ae7da0 | 11331 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11332 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11333 | fi |
81ae7da0 BM |
11334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11335 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11336 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11337 | cat >>confdefs.h <<_ACEOF | |
11338 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11339 | _ACEOF | |
11340 | ||
11341 | else | |
11342 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 11343 | #define NEED_BCOPY 1 |
f69335e6 | 11344 | _ACEOF |
f40ec73c | 11345 | |
11346 | fi | |
11347 | done | |
11348 | ||
f69335e6 | 11349 | |
f40ec73c | 11350 | for ac_func in bcmp |
11351 | do | |
f69335e6 | 11352 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11353 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11354 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11355 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11357 | else | |
11358 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11359 | /* confdefs.h. */ |
11360 | _ACEOF | |
11361 | cat confdefs.h >>conftest.$ac_ext | |
11362 | cat >>conftest.$ac_ext <<_ACEOF | |
11363 | /* end confdefs.h. */ | |
11364 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11365 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11366 | #define $ac_func innocuous_$ac_func | |
11367 | ||
f40ec73c | 11368 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
11369 | which can conflict with char $ac_func (); below. |
11370 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11371 | <limits.h> exists even on freestanding compilers. */ | |
11372 | ||
11373 | #ifdef __STDC__ | |
11374 | # include <limits.h> | |
11375 | #else | |
11376 | # include <assert.h> | |
11377 | #endif | |
11378 | ||
11379 | #undef $ac_func | |
11380 | ||
81ae7da0 | 11381 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 11382 | #ifdef __cplusplus |
11383 | extern "C" | |
81ae7da0 | 11384 | { |
f69335e6 | 11385 | #endif |
81ae7da0 BM |
11386 | /* We use char because int might match the return type of a gcc2 |
11387 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 11388 | char $ac_func (); |
f40ec73c | 11389 | /* The GNU C library defines this for functions which it implements |
11390 | to always fail with ENOSYS. Some functions are actually named | |
11391 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 11392 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 11393 | choke me |
81ae7da0 BM |
11394 | #else |
11395 | char (*f) () = $ac_func; | |
11396 | #endif | |
11397 | #ifdef __cplusplus | |
11398 | } | |
f40ec73c | 11399 | #endif |
11400 | ||
cbdd3138 BM |
11401 | int |
11402 | main () | |
11403 | { | |
81ae7da0 | 11404 | return f != $ac_func; |
f69335e6 | 11405 | ; |
11406 | return 0; | |
11407 | } | |
11408 | _ACEOF | |
11409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
11410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11411 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 11412 | ac_status=$? |
cbdd3138 BM |
11413 | grep -v '^ *+' conftest.er1 >conftest.err |
11414 | rm -f conftest.er1 | |
11415 | cat conftest.err >&5 | |
f69335e6 | 11416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11417 | (exit $ac_status); } && | |
64b46a71 | 11418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
11419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11420 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11421 | ac_status=$? |
11422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11423 | (exit $ac_status); }; } && | |
11424 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11426 | (eval $ac_try) 2>&5 | |
f69335e6 | 11427 | ac_status=$? |
11428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11429 | (exit $ac_status); }; }; then | |
11430 | eval "$as_ac_var=yes" | |
11431 | else | |
11432 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11433 | sed 's/^/| /' conftest.$ac_ext >&5 |
11434 | ||
81ae7da0 | 11435 | eval "$as_ac_var=no" |
f69335e6 | 11436 | fi |
81ae7da0 | 11437 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11438 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11439 | fi |
81ae7da0 BM |
11440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11441 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11442 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11443 | cat >>confdefs.h <<_ACEOF | |
11444 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11445 | _ACEOF | |
11446 | ||
11447 | else | |
11448 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 11449 | #define NEED_BCMP 1 |
f69335e6 | 11450 | _ACEOF |
f40ec73c | 11451 | |
11452 | fi | |
11453 | done | |
11454 | ||
f69335e6 | 11455 | |
f40ec73c | 11456 | for ac_func in bzero |
11457 | do | |
f69335e6 | 11458 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11459 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11460 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11461 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11463 | else | |
11464 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11465 | /* confdefs.h. */ |
11466 | _ACEOF | |
11467 | cat confdefs.h >>conftest.$ac_ext | |
11468 | cat >>conftest.$ac_ext <<_ACEOF | |
11469 | /* end confdefs.h. */ | |
11470 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11471 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11472 | #define $ac_func innocuous_$ac_func | |
11473 | ||
f40ec73c | 11474 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
11475 | which can conflict with char $ac_func (); below. |
11476 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11477 | <limits.h> exists even on freestanding compilers. */ | |
11478 | ||
11479 | #ifdef __STDC__ | |
11480 | # include <limits.h> | |
11481 | #else | |
11482 | # include <assert.h> | |
11483 | #endif | |
11484 | ||
11485 | #undef $ac_func | |
11486 | ||
81ae7da0 | 11487 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 11488 | #ifdef __cplusplus |
11489 | extern "C" | |
81ae7da0 | 11490 | { |
f69335e6 | 11491 | #endif |
81ae7da0 BM |
11492 | /* We use char because int might match the return type of a gcc2 |
11493 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 11494 | char $ac_func (); |
f40ec73c | 11495 | /* The GNU C library defines this for functions which it implements |
11496 | to always fail with ENOSYS. Some functions are actually named | |
11497 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 11498 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 11499 | choke me |
81ae7da0 BM |
11500 | #else |
11501 | char (*f) () = $ac_func; | |
11502 | #endif | |
11503 | #ifdef __cplusplus | |
11504 | } | |
f40ec73c | 11505 | #endif |
11506 | ||
cbdd3138 BM |
11507 | int |
11508 | main () | |
11509 | { | |
81ae7da0 | 11510 | return f != $ac_func; |
f69335e6 | 11511 | ; |
11512 | return 0; | |
11513 | } | |
11514 | _ACEOF | |
11515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
11516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11517 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 11518 | ac_status=$? |
cbdd3138 BM |
11519 | grep -v '^ *+' conftest.er1 >conftest.err |
11520 | rm -f conftest.er1 | |
11521 | cat conftest.err >&5 | |
f69335e6 | 11522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11523 | (exit $ac_status); } && | |
64b46a71 | 11524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
11525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11526 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11527 | ac_status=$? |
11528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11529 | (exit $ac_status); }; } && | |
11530 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11532 | (eval $ac_try) 2>&5 | |
f69335e6 | 11533 | ac_status=$? |
11534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11535 | (exit $ac_status); }; }; then | |
11536 | eval "$as_ac_var=yes" | |
11537 | else | |
11538 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11539 | sed 's/^/| /' conftest.$ac_ext >&5 |
11540 | ||
81ae7da0 | 11541 | eval "$as_ac_var=no" |
f69335e6 | 11542 | fi |
81ae7da0 | 11543 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11544 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11545 | fi |
81ae7da0 BM |
11546 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11547 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11548 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11549 | cat >>confdefs.h <<_ACEOF | |
11550 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11551 | _ACEOF | |
11552 | ||
11553 | else | |
11554 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 11555 | #define NEED_BZERO 1 |
f69335e6 | 11556 | _ACEOF |
f40ec73c | 11557 | |
11558 | fi | |
11559 | done | |
11560 | ||
f69335e6 | 11561 | |
f40ec73c | 11562 | for ac_func in strcasecmp |
11563 | do | |
f69335e6 | 11564 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11565 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11566 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11567 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11569 | else | |
11570 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11571 | /* confdefs.h. */ |
11572 | _ACEOF | |
11573 | cat confdefs.h >>conftest.$ac_ext | |
11574 | cat >>conftest.$ac_ext <<_ACEOF | |
11575 | /* end confdefs.h. */ | |
11576 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11577 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11578 | #define $ac_func innocuous_$ac_func | |
11579 | ||
f40ec73c | 11580 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
11581 | which can conflict with char $ac_func (); below. |
11582 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11583 | <limits.h> exists even on freestanding compilers. */ | |
11584 | ||
11585 | #ifdef __STDC__ | |
11586 | # include <limits.h> | |
11587 | #else | |
11588 | # include <assert.h> | |
11589 | #endif | |
11590 | ||
11591 | #undef $ac_func | |
11592 | ||
81ae7da0 | 11593 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 11594 | #ifdef __cplusplus |
11595 | extern "C" | |
81ae7da0 | 11596 | { |
f69335e6 | 11597 | #endif |
81ae7da0 BM |
11598 | /* We use char because int might match the return type of a gcc2 |
11599 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 11600 | char $ac_func (); |
f40ec73c | 11601 | /* The GNU C library defines this for functions which it implements |
11602 | to always fail with ENOSYS. Some functions are actually named | |
11603 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 11604 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 11605 | choke me |
81ae7da0 BM |
11606 | #else |
11607 | char (*f) () = $ac_func; | |
11608 | #endif | |
11609 | #ifdef __cplusplus | |
11610 | } | |
f40ec73c | 11611 | #endif |
11612 | ||
cbdd3138 BM |
11613 | int |
11614 | main () | |
11615 | { | |
81ae7da0 | 11616 | return f != $ac_func; |
f69335e6 | 11617 | ; |
11618 | return 0; | |
11619 | } | |
11620 | _ACEOF | |
11621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
11622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11623 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 11624 | ac_status=$? |
cbdd3138 BM |
11625 | grep -v '^ *+' conftest.er1 >conftest.err |
11626 | rm -f conftest.er1 | |
11627 | cat conftest.err >&5 | |
f69335e6 | 11628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11629 | (exit $ac_status); } && | |
64b46a71 | 11630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
11631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11632 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11633 | ac_status=$? |
11634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11635 | (exit $ac_status); }; } && | |
11636 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11638 | (eval $ac_try) 2>&5 | |
f69335e6 | 11639 | ac_status=$? |
11640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11641 | (exit $ac_status); }; }; then | |
11642 | eval "$as_ac_var=yes" | |
11643 | else | |
11644 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11645 | sed 's/^/| /' conftest.$ac_ext >&5 |
11646 | ||
81ae7da0 | 11647 | eval "$as_ac_var=no" |
f69335e6 | 11648 | fi |
81ae7da0 | 11649 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11650 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11651 | fi |
81ae7da0 BM |
11652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11653 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11654 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11655 | cat >>confdefs.h <<_ACEOF | |
11656 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11657 | _ACEOF | |
11658 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 11659 | #define GOT_STRCASECMP 1 |
f69335e6 | 11660 | _ACEOF |
f40ec73c | 11661 | |
f40ec73c | 11662 | fi |
11663 | done | |
11664 | ||
825ee732 | 11665 | save_libs="$LIBS" |
11666 | LIBS="$LIBS $SOCKLIB $INETLIB" | |
f69335e6 | 11667 | |
f40ec73c | 11668 | for ac_func in inet_addr |
11669 | do | |
f69335e6 | 11670 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11671 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11672 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11673 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11675 | else | |
11676 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11677 | /* confdefs.h. */ |
11678 | _ACEOF | |
11679 | cat confdefs.h >>conftest.$ac_ext | |
11680 | cat >>conftest.$ac_ext <<_ACEOF | |
11681 | /* end confdefs.h. */ | |
11682 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11683 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11684 | #define $ac_func innocuous_$ac_func | |
11685 | ||
f40ec73c | 11686 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
11687 | which can conflict with char $ac_func (); below. |
11688 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11689 | <limits.h> exists even on freestanding compilers. */ | |
11690 | ||
11691 | #ifdef __STDC__ | |
11692 | # include <limits.h> | |
11693 | #else | |
11694 | # include <assert.h> | |
11695 | #endif | |
11696 | ||
11697 | #undef $ac_func | |
11698 | ||
81ae7da0 | 11699 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 11700 | #ifdef __cplusplus |
11701 | extern "C" | |
81ae7da0 | 11702 | { |
f69335e6 | 11703 | #endif |
81ae7da0 BM |
11704 | /* We use char because int might match the return type of a gcc2 |
11705 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 11706 | char $ac_func (); |
f40ec73c | 11707 | /* The GNU C library defines this for functions which it implements |
11708 | to always fail with ENOSYS. Some functions are actually named | |
11709 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 11710 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 11711 | choke me |
81ae7da0 BM |
11712 | #else |
11713 | char (*f) () = $ac_func; | |
11714 | #endif | |
11715 | #ifdef __cplusplus | |
11716 | } | |
f40ec73c | 11717 | #endif |
11718 | ||
cbdd3138 BM |
11719 | int |
11720 | main () | |
11721 | { | |
81ae7da0 | 11722 | return f != $ac_func; |
f69335e6 | 11723 | ; |
11724 | return 0; | |
11725 | } | |
11726 | _ACEOF | |
11727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
11728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11729 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 11730 | ac_status=$? |
cbdd3138 BM |
11731 | grep -v '^ *+' conftest.er1 >conftest.err |
11732 | rm -f conftest.er1 | |
11733 | cat conftest.err >&5 | |
f69335e6 | 11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11735 | (exit $ac_status); } && | |
64b46a71 | 11736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
11737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11738 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11739 | ac_status=$? |
11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11741 | (exit $ac_status); }; } && | |
11742 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11744 | (eval $ac_try) 2>&5 | |
f69335e6 | 11745 | ac_status=$? |
11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11747 | (exit $ac_status); }; }; then | |
11748 | eval "$as_ac_var=yes" | |
11749 | else | |
11750 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11751 | sed 's/^/| /' conftest.$ac_ext >&5 |
11752 | ||
81ae7da0 | 11753 | eval "$as_ac_var=no" |
f69335e6 | 11754 | fi |
81ae7da0 | 11755 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11756 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11757 | fi |
81ae7da0 BM |
11758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11759 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11760 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11761 | cat >>confdefs.h <<_ACEOF | |
11762 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11763 | _ACEOF | |
11764 | ||
11765 | else | |
11766 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 11767 | #define NEED_INET_ADDR 1 |
f69335e6 | 11768 | _ACEOF |
f40ec73c | 11769 | |
11770 | fi | |
11771 | done | |
11772 | ||
f69335e6 | 11773 | |
f40ec73c | 11774 | for ac_func in inet_ntoa |
11775 | do | |
f69335e6 | 11776 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11777 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11778 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11779 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11781 | else | |
11782 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11783 | /* confdefs.h. */ |
11784 | _ACEOF | |
11785 | cat confdefs.h >>conftest.$ac_ext | |
11786 | cat >>conftest.$ac_ext <<_ACEOF | |
11787 | /* end confdefs.h. */ | |
11788 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11789 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11790 | #define $ac_func innocuous_$ac_func | |
11791 | ||
f40ec73c | 11792 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
11793 | which can conflict with char $ac_func (); below. |
11794 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11795 | <limits.h> exists even on freestanding compilers. */ | |
11796 | ||
11797 | #ifdef __STDC__ | |
11798 | # include <limits.h> | |
11799 | #else | |
11800 | # include <assert.h> | |
11801 | #endif | |
11802 | ||
11803 | #undef $ac_func | |
11804 | ||
81ae7da0 | 11805 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 11806 | #ifdef __cplusplus |
11807 | extern "C" | |
81ae7da0 | 11808 | { |
f69335e6 | 11809 | #endif |
81ae7da0 BM |
11810 | /* We use char because int might match the return type of a gcc2 |
11811 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 11812 | char $ac_func (); |
f40ec73c | 11813 | /* The GNU C library defines this for functions which it implements |
11814 | to always fail with ENOSYS. Some functions are actually named | |
11815 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 11816 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 11817 | choke me |
81ae7da0 BM |
11818 | #else |
11819 | char (*f) () = $ac_func; | |
11820 | #endif | |
11821 | #ifdef __cplusplus | |
11822 | } | |
f40ec73c | 11823 | #endif |
11824 | ||
cbdd3138 BM |
11825 | int |
11826 | main () | |
11827 | { | |
81ae7da0 | 11828 | return f != $ac_func; |
f69335e6 | 11829 | ; |
11830 | return 0; | |
11831 | } | |
11832 | _ACEOF | |
11833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
11834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11835 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 11836 | ac_status=$? |
cbdd3138 BM |
11837 | grep -v '^ *+' conftest.er1 >conftest.err |
11838 | rm -f conftest.er1 | |
11839 | cat conftest.err >&5 | |
f69335e6 | 11840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11841 | (exit $ac_status); } && | |
64b46a71 | 11842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
11843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11844 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11845 | ac_status=$? |
11846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11847 | (exit $ac_status); }; } && | |
11848 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11850 | (eval $ac_try) 2>&5 | |
f69335e6 | 11851 | ac_status=$? |
11852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11853 | (exit $ac_status); }; }; then | |
11854 | eval "$as_ac_var=yes" | |
11855 | else | |
11856 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11857 | sed 's/^/| /' conftest.$ac_ext >&5 |
11858 | ||
81ae7da0 | 11859 | eval "$as_ac_var=no" |
f69335e6 | 11860 | fi |
81ae7da0 | 11861 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11862 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11863 | fi |
81ae7da0 BM |
11864 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11865 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11866 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11867 | cat >>confdefs.h <<_ACEOF | |
11868 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11869 | _ACEOF | |
11870 | ||
11871 | else | |
11872 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 11873 | #define NEED_INET_NTOA 1 |
f69335e6 | 11874 | _ACEOF |
f40ec73c | 11875 | |
11876 | fi | |
11877 | done | |
11878 | ||
f69335e6 | 11879 | |
f40ec73c | 11880 | for ac_func in inet_netof |
11881 | do | |
f69335e6 | 11882 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11883 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11884 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11885 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11887 | else | |
11888 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11889 | /* confdefs.h. */ |
11890 | _ACEOF | |
11891 | cat confdefs.h >>conftest.$ac_ext | |
11892 | cat >>conftest.$ac_ext <<_ACEOF | |
11893 | /* end confdefs.h. */ | |
11894 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11895 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11896 | #define $ac_func innocuous_$ac_func | |
11897 | ||
f40ec73c | 11898 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
11899 | which can conflict with char $ac_func (); below. |
11900 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11901 | <limits.h> exists even on freestanding compilers. */ | |
11902 | ||
11903 | #ifdef __STDC__ | |
11904 | # include <limits.h> | |
11905 | #else | |
11906 | # include <assert.h> | |
11907 | #endif | |
11908 | ||
11909 | #undef $ac_func | |
11910 | ||
81ae7da0 | 11911 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 11912 | #ifdef __cplusplus |
11913 | extern "C" | |
81ae7da0 | 11914 | { |
f69335e6 | 11915 | #endif |
81ae7da0 BM |
11916 | /* We use char because int might match the return type of a gcc2 |
11917 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 11918 | char $ac_func (); |
f40ec73c | 11919 | /* The GNU C library defines this for functions which it implements |
11920 | to always fail with ENOSYS. Some functions are actually named | |
11921 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 11922 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
f40ec73c | 11923 | choke me |
81ae7da0 BM |
11924 | #else |
11925 | char (*f) () = $ac_func; | |
11926 | #endif | |
11927 | #ifdef __cplusplus | |
11928 | } | |
f40ec73c | 11929 | #endif |
11930 | ||
cbdd3138 BM |
11931 | int |
11932 | main () | |
11933 | { | |
81ae7da0 | 11934 | return f != $ac_func; |
f69335e6 | 11935 | ; |
11936 | return 0; | |
11937 | } | |
11938 | _ACEOF | |
11939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
11940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11941 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 11942 | ac_status=$? |
cbdd3138 BM |
11943 | grep -v '^ *+' conftest.er1 >conftest.err |
11944 | rm -f conftest.er1 | |
11945 | cat conftest.err >&5 | |
f69335e6 | 11946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11947 | (exit $ac_status); } && | |
64b46a71 | 11948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
11949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11950 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
11951 | ac_status=$? |
11952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11953 | (exit $ac_status); }; } && | |
11954 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
11955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11956 | (eval $ac_try) 2>&5 | |
f69335e6 | 11957 | ac_status=$? |
11958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11959 | (exit $ac_status); }; }; then | |
11960 | eval "$as_ac_var=yes" | |
11961 | else | |
11962 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
11963 | sed 's/^/| /' conftest.$ac_ext >&5 |
11964 | ||
81ae7da0 | 11965 | eval "$as_ac_var=no" |
f69335e6 | 11966 | fi |
81ae7da0 | 11967 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 11968 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 11969 | fi |
81ae7da0 BM |
11970 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11971 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 11972 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11973 | cat >>confdefs.h <<_ACEOF | |
11974 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11975 | _ACEOF | |
11976 | ||
11977 | else | |
11978 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 11979 | #define NEED_INET_NETOF 1 |
f69335e6 | 11980 | _ACEOF |
f40ec73c | 11981 | |
11982 | fi | |
11983 | done | |
11984 | ||
825ee732 | 11985 | LIBS="$save_libs" |
f69335e6 | 11986 | |
65a2668e | 11987 | for ac_func in syslog |
11988 | do | |
f69335e6 | 11989 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
11990 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11991 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11992 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 11993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11994 | else | |
11995 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
11996 | /* confdefs.h. */ |
11997 | _ACEOF | |
11998 | cat confdefs.h >>conftest.$ac_ext | |
11999 | cat >>conftest.$ac_ext <<_ACEOF | |
12000 | /* end confdefs.h. */ | |
12001 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12002 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12003 | #define $ac_func innocuous_$ac_func | |
12004 | ||
65a2668e | 12005 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
12006 | which can conflict with char $ac_func (); below. |
12007 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12008 | <limits.h> exists even on freestanding compilers. */ | |
12009 | ||
12010 | #ifdef __STDC__ | |
12011 | # include <limits.h> | |
12012 | #else | |
12013 | # include <assert.h> | |
12014 | #endif | |
12015 | ||
12016 | #undef $ac_func | |
12017 | ||
81ae7da0 | 12018 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 12019 | #ifdef __cplusplus |
12020 | extern "C" | |
81ae7da0 | 12021 | { |
f69335e6 | 12022 | #endif |
81ae7da0 BM |
12023 | /* We use char because int might match the return type of a gcc2 |
12024 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 12025 | char $ac_func (); |
65a2668e | 12026 | /* The GNU C library defines this for functions which it implements |
12027 | to always fail with ENOSYS. Some functions are actually named | |
12028 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 12029 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
65a2668e | 12030 | choke me |
81ae7da0 BM |
12031 | #else |
12032 | char (*f) () = $ac_func; | |
12033 | #endif | |
12034 | #ifdef __cplusplus | |
12035 | } | |
65a2668e | 12036 | #endif |
12037 | ||
cbdd3138 BM |
12038 | int |
12039 | main () | |
12040 | { | |
81ae7da0 | 12041 | return f != $ac_func; |
f69335e6 | 12042 | ; |
12043 | return 0; | |
12044 | } | |
12045 | _ACEOF | |
12046 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
12047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12048 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 12049 | ac_status=$? |
cbdd3138 BM |
12050 | grep -v '^ *+' conftest.er1 >conftest.err |
12051 | rm -f conftest.er1 | |
12052 | cat conftest.err >&5 | |
f69335e6 | 12053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12054 | (exit $ac_status); } && | |
64b46a71 | 12055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
12056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12057 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
12058 | ac_status=$? |
12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12060 | (exit $ac_status); }; } && | |
12061 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
12062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12063 | (eval $ac_try) 2>&5 | |
f69335e6 | 12064 | ac_status=$? |
12065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12066 | (exit $ac_status); }; }; then | |
12067 | eval "$as_ac_var=yes" | |
12068 | else | |
12069 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
12070 | sed 's/^/| /' conftest.$ac_ext >&5 |
12071 | ||
81ae7da0 | 12072 | eval "$as_ac_var=no" |
f69335e6 | 12073 | fi |
81ae7da0 | 12074 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 12075 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 12076 | fi |
81ae7da0 BM |
12077 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
12078 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 12079 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12080 | cat >>confdefs.h <<_ACEOF | |
12081 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12082 | _ACEOF | |
12083 | cat >>confdefs.h <<\_ACEOF | |
65a2668e | 12084 | #define HAVE_SYSLOG 1 |
f69335e6 | 12085 | _ACEOF |
65a2668e | 12086 | |
65a2668e | 12087 | fi |
12088 | done | |
12089 | ||
f69335e6 | 12090 | |
65a2668e | 12091 | for ac_func in vsyslog |
12092 | do | |
f69335e6 | 12093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
81ae7da0 BM |
12094 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12096 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f69335e6 | 12097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12098 | else | |
12099 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
12100 | /* confdefs.h. */ |
12101 | _ACEOF | |
12102 | cat confdefs.h >>conftest.$ac_ext | |
12103 | cat >>conftest.$ac_ext <<_ACEOF | |
12104 | /* end confdefs.h. */ | |
12105 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12107 | #define $ac_func innocuous_$ac_func | |
12108 | ||
65a2668e | 12109 | /* System header to define __stub macros and hopefully few prototypes, |
cbdd3138 BM |
12110 | which can conflict with char $ac_func (); below. |
12111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12112 | <limits.h> exists even on freestanding compilers. */ | |
12113 | ||
12114 | #ifdef __STDC__ | |
12115 | # include <limits.h> | |
12116 | #else | |
12117 | # include <assert.h> | |
12118 | #endif | |
12119 | ||
12120 | #undef $ac_func | |
12121 | ||
81ae7da0 | 12122 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 12123 | #ifdef __cplusplus |
12124 | extern "C" | |
81ae7da0 | 12125 | { |
f69335e6 | 12126 | #endif |
81ae7da0 BM |
12127 | /* We use char because int might match the return type of a gcc2 |
12128 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 12129 | char $ac_func (); |
65a2668e | 12130 | /* The GNU C library defines this for functions which it implements |
12131 | to always fail with ENOSYS. Some functions are actually named | |
12132 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 12133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
65a2668e | 12134 | choke me |
81ae7da0 BM |
12135 | #else |
12136 | char (*f) () = $ac_func; | |
12137 | #endif | |
12138 | #ifdef __cplusplus | |
12139 | } | |
65a2668e | 12140 | #endif |
12141 | ||
cbdd3138 BM |
12142 | int |
12143 | main () | |
12144 | { | |
81ae7da0 | 12145 | return f != $ac_func; |
f69335e6 | 12146 | ; |
12147 | return 0; | |
12148 | } | |
12149 | _ACEOF | |
12150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
12151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12152 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 12153 | ac_status=$? |
cbdd3138 BM |
12154 | grep -v '^ *+' conftest.er1 >conftest.err |
12155 | rm -f conftest.er1 | |
12156 | cat conftest.err >&5 | |
f69335e6 | 12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12158 | (exit $ac_status); } && | |
64b46a71 | 12159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
12160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12161 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
12162 | ac_status=$? |
12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12164 | (exit $ac_status); }; } && | |
12165 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
12166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12167 | (eval $ac_try) 2>&5 | |
f69335e6 | 12168 | ac_status=$? |
12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12170 | (exit $ac_status); }; }; then | |
12171 | eval "$as_ac_var=yes" | |
12172 | else | |
12173 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
12174 | sed 's/^/| /' conftest.$ac_ext >&5 |
12175 | ||
81ae7da0 | 12176 | eval "$as_ac_var=no" |
f69335e6 | 12177 | fi |
81ae7da0 | 12178 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 12179 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 12180 | fi |
81ae7da0 BM |
12181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
12182 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
f69335e6 | 12183 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12184 | cat >>confdefs.h <<_ACEOF | |
12185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12186 | _ACEOF | |
12187 | cat >>confdefs.h <<\_ACEOF | |
65a2668e | 12188 | #define HAVE_VSYSLOG 1 |
f69335e6 | 12189 | _ACEOF |
65a2668e | 12190 | |
65a2668e | 12191 | fi |
12192 | done | |
12193 | ||
f40ec73c | 12194 | |
12195 | ||
12196 | ||
12197 | ||
81ae7da0 | 12198 | # Check whether --with-listen or --without-listen was given. |
f40ec73c | 12199 | if test "${with_listen+set}" = set; then |
81ae7da0 BM |
12200 | withval="$with_listen" |
12201 | cat >>confdefs.h <<_ACEOF | |
f40ec73c | 12202 | #define LISTEN_SIZE $withval |
f69335e6 | 12203 | _ACEOF |
f40ec73c | 12204 | |
12205 | else | |
f69335e6 | 12206 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 12207 | #define LISTEN_SIZE 5 |
f69335e6 | 12208 | _ACEOF |
f40ec73c | 12209 | |
81ae7da0 | 12210 | fi; |
f40ec73c | 12211 | |
81ae7da0 | 12212 | # Check whether --with-nick-history or --without-nick-history was given. |
f40ec73c | 12213 | if test "${with_nick_history+set}" = set; then |
81ae7da0 BM |
12214 | withval="$with_nick_history" |
12215 | cat >>confdefs.h <<_ACEOF | |
f40ec73c | 12216 | #define NICKNAMEHISTORYLENGTH $withval |
f69335e6 | 12217 | _ACEOF |
f40ec73c | 12218 | |
12219 | else | |
f69335e6 | 12220 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 12221 | #define NICKNAMEHISTORYLENGTH 2000 |
f69335e6 | 12222 | _ACEOF |
f40ec73c | 12223 | |
81ae7da0 | 12224 | fi; |
f40ec73c | 12225 | |
81ae7da0 | 12226 | # Check whether --with-sendq or --without-sendq was given. |
f40ec73c | 12227 | if test "${with_sendq+set}" = set; then |
81ae7da0 BM |
12228 | withval="$with_sendq" |
12229 | cat >>confdefs.h <<_ACEOF | |
f40ec73c | 12230 | #define MAXSENDQLENGTH $withval |
f69335e6 | 12231 | _ACEOF |
f40ec73c | 12232 | |
12233 | else | |
f69335e6 | 12234 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 12235 | #define MAXSENDQLENGTH 3000000 |
f69335e6 | 12236 | _ACEOF |
f40ec73c | 12237 | |
81ae7da0 | 12238 | fi; |
f40ec73c | 12239 | |
81ae7da0 | 12240 | # Check whether --with-bufferpool or --without-bufferpool was given. |
f40ec73c | 12241 | if test "${with_bufferpool+set}" = set; then |
81ae7da0 BM |
12242 | withval="$with_bufferpool" |
12243 | cat >>confdefs.h <<_ACEOF | |
12eabdba | 12244 | #define BUFFERPOOL ($withval * MAXSENDQLENGTH) |
f69335e6 | 12245 | _ACEOF |
f40ec73c | 12246 | |
12247 | else | |
f69335e6 | 12248 | cat >>confdefs.h <<\_ACEOF |
0778c391 | 12249 | #define BUFFERPOOL (18 * MAXSENDQLENGTH) |
f69335e6 | 12250 | _ACEOF |
f40ec73c | 12251 | |
81ae7da0 | 12252 | fi; |
f40ec73c | 12253 | |
81ae7da0 | 12254 | # Check whether --with-permissions or --without-permissions was given. |
f40ec73c | 12255 | if test "${with_permissions+set}" = set; then |
81ae7da0 BM |
12256 | withval="$with_permissions" |
12257 | cat >>confdefs.h <<_ACEOF | |
f40ec73c | 12258 | #define DEFAULT_PERMISSIONS $withval |
f69335e6 | 12259 | _ACEOF |
f40ec73c | 12260 | |
12261 | else | |
f69335e6 | 12262 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 12263 | #define DEFAULT_PERMISSIONS 0600 |
f69335e6 | 12264 | _ACEOF |
12265 | ||
81ae7da0 | 12266 | fi; |
f40ec73c | 12267 | |
81ae7da0 | 12268 | # Check whether --with-dpath or --without-dpath was given. |
f40ec73c | 12269 | if test "${with_dpath+set}" = set; then |
81ae7da0 BM |
12270 | withval="$with_dpath" |
12271 | cat >>confdefs.h <<_ACEOF | |
f40ec73c | 12272 | #define DPATH "$withval" |
f69335e6 | 12273 | _ACEOF |
704b6260 | 12274 | IRCDDIR="$withval" |
f40ec73c | 12275 | else |
f69335e6 | 12276 | cat >>confdefs.h <<_ACEOF |
f40ec73c | 12277 | #define DPATH "`pwd`" |
f69335e6 | 12278 | _ACEOF |
704b6260 | 12279 | IRCDDIR="`pwd`" |
81ae7da0 | 12280 | fi; |
f40ec73c | 12281 | |
81ae7da0 | 12282 | # Check whether --with-fd-setsize or --without-fd-setsize was given. |
f40ec73c | 12283 | if test "${with_fd_setsize+set}" = set; then |
81ae7da0 BM |
12284 | withval="$with_fd_setsize" |
12285 | ac_fd=$withval | |
f40ec73c | 12286 | else |
12287 | ac_fd=1024 | |
81ae7da0 | 12288 | fi; |
f69335e6 | 12289 | cat >>confdefs.h <<_ACEOF |
519a8f89 | 12290 | #define MAXCONNECTIONS $ac_fd |
f69335e6 | 12291 | _ACEOF |
12292 | ||
3b0d1625 | 12293 | |
81ae7da0 | 12294 | # Check whether --with-spath or --without-spath was given. |
f40ec73c | 12295 | if test "${with_spath+set}" = set; then |
81ae7da0 BM |
12296 | withval="$with_spath" |
12297 | cat >>confdefs.h <<_ACEOF | |
ee772480 | 12298 | #define SPATH "$withval/ircd" |
f69335e6 | 12299 | _ACEOF |
29b7ea7e | 12300 | BINDIR="$withval" |
f40ec73c | 12301 | else |
f69335e6 | 12302 | cat >>confdefs.h <<_ACEOF |
f40ec73c | 12303 | #define SPATH "`pwd`/src/ircd" |
f69335e6 | 12304 | _ACEOF |
29b7ea7e | 12305 | BINDIR="`pwd`/src/ircd" |
81ae7da0 BM |
12306 | fi; |
12307 | # Check whether --enable-nospoof or --disable-nospoof was given. | |
f40ec73c | 12308 | if test "${enable_nospoof+set}" = set; then |
81ae7da0 BM |
12309 | enableval="$enable_nospoof" |
12310 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 12311 | #define NOSPOOF 1 |
f69335e6 | 12312 | _ACEOF |
f40ec73c | 12313 | |
81ae7da0 BM |
12314 | fi; |
12315 | # Check whether --enable-prefixaq or --disable-prefixaq was given. | |
948b4e61 | 12316 | if test "${enable_prefixaq+set}" = set; then |
81ae7da0 BM |
12317 | enableval="$enable_prefixaq" |
12318 | cat >>confdefs.h <<\_ACEOF | |
948b4e61 BM |
12319 | #define PREFIX_AQ 1 |
12320 | _ACEOF | |
12321 | ||
81ae7da0 BM |
12322 | fi; |
12323 | # Check whether --enable-hub or --disable-hub was given. | |
f40ec73c | 12324 | if test "${enable_hub+set}" = set; then |
81ae7da0 BM |
12325 | enableval="$enable_hub" |
12326 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 12327 | #define HUB 1 |
f69335e6 | 12328 | _ACEOF |
f40ec73c | 12329 | |
81ae7da0 | 12330 | fi; |
06dc8646 | 12331 | |
81ae7da0 | 12332 | # Check whether --with-showlistmodes or --without-showlistmodes was given. |
704b6260 | 12333 | if test "${with_showlistmodes+set}" = set; then |
81ae7da0 BM |
12334 | withval="$with_showlistmodes" |
12335 | cat >>confdefs.h <<\_ACEOF | |
704b6260 BM |
12336 | #define LIST_SHOW_MODES 1 |
12337 | _ACEOF | |
12338 | ||
81ae7da0 | 12339 | fi; |
704b6260 | 12340 | |
81ae7da0 | 12341 | # Check whether --with-topicisnuhost or --without-topicisnuhost was given. |
704b6260 | 12342 | if test "${with_topicisnuhost+set}" = set; then |
81ae7da0 BM |
12343 | withval="$with_topicisnuhost" |
12344 | cat >>confdefs.h <<\_ACEOF | |
704b6260 BM |
12345 | #define TOPIC_NICK_IS_NUHOST 1 |
12346 | _ACEOF | |
12347 | ||
81ae7da0 | 12348 | fi; |
704b6260 | 12349 | |
81ae7da0 | 12350 | # Check whether --with-shunnotices or --without-shunnotices was given. |
704b6260 | 12351 | if test "${with_shunnotices+set}" = set; then |
81ae7da0 BM |
12352 | withval="$with_shunnotices" |
12353 | cat >>confdefs.h <<\_ACEOF | |
704b6260 BM |
12354 | #define SHUN_NOTICES 1 |
12355 | _ACEOF | |
12356 | ||
81ae7da0 | 12357 | fi; |
704b6260 | 12358 | |
81ae7da0 | 12359 | # Check whether --with-no-operoverride or --without-no-operoverride was given. |
704b6260 | 12360 | if test "${with_no_operoverride+set}" = set; then |
81ae7da0 BM |
12361 | withval="$with_no_operoverride" |
12362 | cat >>confdefs.h <<\_ACEOF | |
704b6260 BM |
12363 | #define NO_OPEROVERRIDE 1 |
12364 | _ACEOF | |
12365 | ||
81ae7da0 | 12366 | fi; |
704b6260 | 12367 | |
81ae7da0 | 12368 | # Check whether --with-disableusermod or --without-disableusermod was given. |
704b6260 | 12369 | if test "${with_disableusermod+set}" = set; then |
81ae7da0 BM |
12370 | withval="$with_disableusermod" |
12371 | cat >>confdefs.h <<\_ACEOF | |
704b6260 BM |
12372 | #define DISABLE_USERMOD 1 |
12373 | _ACEOF | |
12374 | ||
81ae7da0 | 12375 | fi; |
704b6260 | 12376 | |
81ae7da0 | 12377 | # Check whether --with-operoverride-verify or --without-operoverride-verify was given. |
704b6260 | 12378 | if test "${with_operoverride_verify+set}" = set; then |
81ae7da0 BM |
12379 | withval="$with_operoverride_verify" |
12380 | cat >>confdefs.h <<\_ACEOF | |
704b6260 BM |
12381 | #define OPEROVERRIDE_VERIFY 1 |
12382 | _ACEOF | |
12383 | ||
81ae7da0 | 12384 | fi; |
704b6260 | 12385 | |
542fa2bc | 12386 | # Check whether --with-disable-extendedban-stacking or --without-disable-extendedban-stacking was given. |
12387 | if test "${with_disable_extendedban_stacking+set}" = set; then | |
12388 | withval="$with_disable_extendedban_stacking" | |
12389 | cat >>confdefs.h <<\_ACEOF | |
12390 | #define DISABLE_STACKED_EXTBANS 1 | |
12391 | _ACEOF | |
12392 | ||
12393 | fi; | |
b4f2619a | 12394 | MODULES_WHICH=commandsandmodules |
12395 | echo "$as_me:$LINENO: checking for how much module building work we need to do" >&5 | |
12396 | echo $ECHO_N "checking for how much module building work we need to do... $ECHO_C" >&6 | |
12397 | ||
12398 | # Check whether --with-moduleswhich or --without-moduleswhich was given. | |
12399 | if test "${with_moduleswhich+set}" = set; then | |
12400 | withval="$with_moduleswhich" | |
12401 | case "$withval" in | |
12402 | yes|no) | |
12403 | ;; | |
12404 | * ) | |
12405 | MODULES_WHICH="$withval" | |
12406 | ;; | |
12407 | esac | |
12408 | fi; | |
12409 | ||
12410 | echo "$as_me:$LINENO: result: $MODULES_WHICH" >&5 | |
12411 | echo "${ECHO_T}$MODULES_WHICH" >&6 | |
542fa2bc | 12412 | |
81ae7da0 | 12413 | # Check whether --enable-ssl or --disable-ssl was given. |
f40ec73c | 12414 | if test "${enable_ssl+set}" = set; then |
81ae7da0 BM |
12415 | enableval="$enable_ssl" |
12416 | ||
12417 | echo "$as_me:$LINENO: checking for openssl" >&5 | |
12418 | echo $ECHO_N "checking for openssl... $ECHO_C" >&6 | |
af289c86 | 12419 | for dir in $enableval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do |
06dc8646 | 12420 | ssldir="$dir" |
12421 | if test -f "$dir/include/openssl/ssl.h"; then | |
81ae7da0 BM |
12422 | echo "$as_me:$LINENO: result: found in $ssldir/include/openssl" >&5 |
12423 | echo "${ECHO_T}found in $ssldir/include/openssl" >&6 | |
06dc8646 | 12424 | found_ssl="yes"; |
dc112427 | 12425 | if test ! "$ssldir" = "/usr" ; then |
12426 | CFLAGS="$CFLAGS -I$ssldir/include"; | |
12427 | fi | |
06dc8646 | 12428 | break; |
12429 | fi | |
12430 | if test -f "$dir/include/ssl.h"; then | |
81ae7da0 BM |
12431 | echo "$as_me:$LINENO: result: found in $ssldir/include" >&5 |
12432 | echo "${ECHO_T}found in $ssldir/include" >&6 | |
06dc8646 | 12433 | found_ssl="yes"; |
dc112427 | 12434 | if test ! "$ssldir" = "/usr" ; then |
12435 | CFLAGS="$CFLAGS -I$ssldir/include"; | |
12436 | fi | |
06dc8646 | 12437 | break |
12438 | fi | |
12439 | done | |
12440 | if test x_$found_ssl != x_yes; then | |
81ae7da0 BM |
12441 | echo "$as_me:$LINENO: result: not found" >&5 |
12442 | echo "${ECHO_T}not found" >&6 | |
cbdd3138 BM |
12443 | echo "" |
12444 | echo "Apparently you do not have both the openssl binary and openssl development libraries installed." | |
12445 | echo "You have two options:" | |
12446 | echo "a) Install the needed binaries and libraries" | |
12447 | echo " and run ./Config" | |
12448 | echo "OR" | |
12449 | echo "b) If you don't need SSL..." | |
12450 | echo " Run ./Config and say 'no' when asked about SSL" | |
12451 | echo "" | |
12452 | exit 1 | |
06dc8646 | 12453 | else |
12454 | CRYPTOLIB="-lssl -lcrypto"; | |
dc112427 | 12455 | if test ! "$ssldir" = "/usr" ; then |
12456 | LDFLAGS="$LDFLAGS -L$ssldir/lib"; | |
12457 | fi | |
4ce745ca | 12458 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 12459 | #define USE_SSL 1 |
f69335e6 | 12460 | _ACEOF |
f40ec73c | 12461 | |
4ce745ca | 12462 | fi |
f69335e6 | 12463 | |
81ae7da0 | 12464 | fi; |
871948d2 | 12465 | |
06dc8646 | 12466 | |
81ae7da0 | 12467 | # Check whether --enable-ziplinks or --disable-ziplinks was given. |
32843244 | 12468 | if test "${enable_ziplinks+set}" = set; then |
81ae7da0 BM |
12469 | enableval="$enable_ziplinks" |
12470 | ||
12471 | echo "$as_me:$LINENO: checking for zlib" >&5 | |
12472 | echo $ECHO_N "checking for zlib... $ECHO_C" >&6 | |
af289c86 | 12473 | for dir in $enableval /usr/local /usr /usr/pkg; do |
06dc8646 | 12474 | zlibdir="$dir" |
12475 | if test -f "$dir/include/zlib.h"; then | |
81ae7da0 BM |
12476 | echo "$as_me:$LINENO: result: found in $zlibdir" >&5 |
12477 | echo "${ECHO_T}found in $zlibdir" >&6 | |
06dc8646 | 12478 | found_zlib="yes"; |
12479 | if test "$zlibdir" = "/usr" ; then | |
12480 | CFLAGS="$CFLAGS -DZIP_LINKS"; | |
12481 | else | |
12482 | CFLAGS="$CFLAGS -I$zlibdir/include -DZIP_LINKS"; | |
12483 | fi | |
12484 | break; | |
12485 | fi | |
12486 | done | |
12487 | if test x_$found_zlib != x_yes; then | |
81ae7da0 BM |
12488 | echo "$as_me:$LINENO: result: not found" >&5 |
12489 | echo "${ECHO_T}not found" >&6 | |
cbdd3138 BM |
12490 | echo "" |
12491 | echo "Apparently you do not have the zlib development library installed." | |
12492 | echo "You have two options:" | |
12493 | echo "a) Install the zlib development library" | |
12494 | echo " and run ./Config" | |
12495 | echo "OR" | |
12496 | echo "b) If you don't need compressed links..." | |
12497 | echo " Run ./Config and say 'no' when asked about ziplinks support" | |
12498 | echo "" | |
12499 | exit 1 | |
06dc8646 | 12500 | else |
12501 | IRCDLIBS="$IRCDLIBS -lz"; | |
12502 | if test "$zlibdir" != "/usr" ; then | |
12503 | LDFLAGS="$LDFLAGS -L$zlibdir/lib"; | |
12504 | fi | |
12505 | HAVE_ZLIB=yes | |
12506 | fi | |
12507 | ||
f40ec73c | 12508 | |
81ae7da0 | 12509 | fi; |
3be92d02 | 12510 | |
12511 | ||
81ae7da0 | 12512 | # Check whether --enable-libcurl or --disable-libcurl was given. |
3be92d02 | 12513 | if test "${enable_libcurl+set}" = set; then |
81ae7da0 BM |
12514 | enableval="$enable_libcurl" |
12515 | ||
3be92d02 | 12516 | CURLCFLAG=`$enableval/bin/curl-config --cflags` |
3be92d02 | 12517 | CURLLIBS=`$enableval/bin/curl-config --libs` |
12518 | ||
cbdd3138 BM |
12519 | if test "x`echo $CURLLIBS |grep ares`" != x ; then |
12520 | XCURLLIBS="`echo "$CURLLIBS"|sed -r 's/([^ ]+ [^ ]+ )([^ ]+ [^ ]+ )(.+)/\1\3/g' 2>/dev/null`" | |
12521 | if test x"$XCURLLIBS" = x; then | |
12522 | XCURLLIBS="`echo "$CURLLIBS"|sed -E 's/([^ ]+ [^ ]+ )([^ ]+ [^ ]+ )(.+)/\1\3/g' 2>/dev/null`" | |
12523 | if test x"$XCURLLIBS" = x; then | |
12524 | { { echo "$as_me:$LINENO: error: sed appears to be broken. It is needed for a remote includes compile hack." >&5 | |
12525 | echo "$as_me: error: sed appears to be broken. It is needed for a remote includes compile hack." >&2;} | |
12526 | { (exit 1); exit 1; }; } | |
12527 | fi | |
12528 | fi | |
12529 | CURLLIBS="$XCURLLIBS" | |
3be92d02 | 12530 | fi |
cbdd3138 | 12531 | |
3be92d02 | 12532 | IRCDLIBS="$IRCDLIBS $CURLLIBS" |
cbdd3138 | 12533 | CFLAGS="$CFLAGS $CURLCFLAG -DUSE_LIBCURL" |
3be92d02 | 12534 | URL="url.o" |
12535 | ||
12536 | ||
81ae7da0 | 12537 | fi; |
f69335e6 | 12538 | |
81ae7da0 | 12539 | # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given. |
32843244 | 12540 | if test "${enable_dynamic_linking+set}" = set; then |
81ae7da0 BM |
12541 | enableval="$enable_dynamic_linking" |
12542 | ||
12543 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
12544 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
f69335e6 | 12545 | if test "${ac_cv_func_dlopen+set}" = set; then |
12546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 12547 | else |
f69335e6 | 12548 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
12549 | /* confdefs.h. */ |
12550 | _ACEOF | |
12551 | cat confdefs.h >>conftest.$ac_ext | |
12552 | cat >>conftest.$ac_ext <<_ACEOF | |
12553 | /* end confdefs.h. */ | |
12554 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
12555 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12556 | #define dlopen innocuous_dlopen | |
12557 | ||
12558 | /* System header to define __stub macros and hopefully few prototypes, | |
12559 | which can conflict with char dlopen (); below. | |
12560 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12561 | <limits.h> exists even on freestanding compilers. */ | |
12562 | ||
12563 | #ifdef __STDC__ | |
12564 | # include <limits.h> | |
12565 | #else | |
12566 | # include <assert.h> | |
12567 | #endif | |
12568 | ||
12569 | #undef dlopen | |
12570 | ||
81ae7da0 | 12571 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 12572 | #ifdef __cplusplus |
12573 | extern "C" | |
81ae7da0 | 12574 | { |
f69335e6 | 12575 | #endif |
81ae7da0 BM |
12576 | /* We use char because int might match the return type of a gcc2 |
12577 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 12578 | char dlopen (); |
f40ec73c | 12579 | /* The GNU C library defines this for functions which it implements |
12580 | to always fail with ENOSYS. Some functions are actually named | |
12581 | something starting with __ and the normal name is an alias. */ | |
81ae7da0 | 12582 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
f40ec73c | 12583 | choke me |
81ae7da0 BM |
12584 | #else |
12585 | char (*f) () = dlopen; | |
12586 | #endif | |
12587 | #ifdef __cplusplus | |
12588 | } | |
f40ec73c | 12589 | #endif |
12590 | ||
cbdd3138 BM |
12591 | int |
12592 | main () | |
12593 | { | |
81ae7da0 | 12594 | return f != dlopen; |
f69335e6 | 12595 | ; |
12596 | return 0; | |
12597 | } | |
12598 | _ACEOF | |
12599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
12600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12601 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 12602 | ac_status=$? |
cbdd3138 BM |
12603 | grep -v '^ *+' conftest.er1 >conftest.err |
12604 | rm -f conftest.er1 | |
12605 | cat conftest.err >&5 | |
f69335e6 | 12606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12607 | (exit $ac_status); } && | |
64b46a71 | 12608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
12609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12610 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
12611 | ac_status=$? |
12612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12613 | (exit $ac_status); }; } && | |
12614 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
12615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12616 | (eval $ac_try) 2>&5 | |
f69335e6 | 12617 | ac_status=$? |
12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12619 | (exit $ac_status); }; }; then | |
12620 | ac_cv_func_dlopen=yes | |
12621 | else | |
12622 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
12623 | sed 's/^/| /' conftest.$ac_ext >&5 |
12624 | ||
81ae7da0 | 12625 | ac_cv_func_dlopen=no |
f69335e6 | 12626 | fi |
81ae7da0 | 12627 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 12628 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 12629 | fi |
81ae7da0 BM |
12630 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
12631 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
f69335e6 | 12632 | if test $ac_cv_func_dlopen = yes; then |
f40ec73c | 12633 | : |
12634 | else | |
81ae7da0 BM |
12635 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12636 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
f69335e6 | 12637 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
12638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 12639 | else |
f69335e6 | 12640 | ac_check_lib_save_LIBS=$LIBS |
f40ec73c | 12641 | LIBS="-ldl $LIBS" |
f69335e6 | 12642 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
12643 | /* confdefs.h. */ |
12644 | _ACEOF | |
12645 | cat confdefs.h >>conftest.$ac_ext | |
12646 | cat >>conftest.$ac_ext <<_ACEOF | |
12647 | /* end confdefs.h. */ | |
f69335e6 | 12648 | |
81ae7da0 | 12649 | /* Override any gcc2 internal prototype to avoid an error. */ |
f69335e6 | 12650 | #ifdef __cplusplus |
12651 | extern "C" | |
12652 | #endif | |
81ae7da0 BM |
12653 | /* We use char because int might match the return type of a gcc2 |
12654 | builtin and then its argument prototype would still apply. */ | |
f69335e6 | 12655 | char dlopen (); |
f69335e6 | 12656 | int |
12657 | main () | |
12658 | { | |
81ae7da0 | 12659 | dlopen (); |
f69335e6 | 12660 | ; |
12661 | return 0; | |
12662 | } | |
12663 | _ACEOF | |
12664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
12665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12666 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 12667 | ac_status=$? |
cbdd3138 BM |
12668 | grep -v '^ *+' conftest.er1 >conftest.err |
12669 | rm -f conftest.er1 | |
12670 | cat conftest.err >&5 | |
f69335e6 | 12671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12672 | (exit $ac_status); } && | |
64b46a71 | 12673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
12674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12675 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
12676 | ac_status=$? |
12677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12678 | (exit $ac_status); }; } && | |
12679 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
12680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12681 | (eval $ac_try) 2>&5 | |
f69335e6 | 12682 | ac_status=$? |
12683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12684 | (exit $ac_status); }; }; then | |
12685 | ac_cv_lib_dl_dlopen=yes | |
12686 | else | |
12687 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
12688 | sed 's/^/| /' conftest.$ac_ext >&5 |
12689 | ||
81ae7da0 | 12690 | ac_cv_lib_dl_dlopen=no |
f69335e6 | 12691 | fi |
81ae7da0 | 12692 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 12693 | conftest$ac_exeext conftest.$ac_ext |
f69335e6 | 12694 | LIBS=$ac_check_lib_save_LIBS |
12695 | fi | |
81ae7da0 BM |
12696 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12697 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
f69335e6 | 12698 | if test $ac_cv_lib_dl_dlopen = yes; then |
0ca9f4c2 | 12699 | IRCDLIBS="$IRCDLIBS -ldl" |
f40ec73c | 12700 | else |
775f3fe2 | 12701 | |
12702 | { echo "$as_me:$LINENO: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5 | |
12703 | echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;} | |
12704 | cat >>confdefs.h <<\_ACEOF | |
f40ec73c | 12705 | #define STATIC_LINKING 1 |
f69335e6 | 12706 | _ACEOF |
f40ec73c | 12707 | |
775f3fe2 | 12708 | |
f40ec73c | 12709 | fi |
12710 | ||
12711 | fi | |
12712 | ||
775f3fe2 | 12713 | |
f40ec73c | 12714 | hold_cflags=$CFLAGS |
12715 | CFLAGS="$CFLAGS -export-dynamic" | |
81ae7da0 BM |
12716 | echo "$as_me:$LINENO: checking if we need the -export-dynamic flag" >&5 |
12717 | echo $ECHO_N "checking if we need the -export-dynamic flag... $ECHO_C" >&6 | |
f69335e6 | 12718 | if test "${ac_cv_export_dynamic+set}" = set; then |
12719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 12720 | else |
f69335e6 | 12721 | |
12722 | cat >conftest.$ac_ext <<_ACEOF | |
cbdd3138 BM |
12723 | /* confdefs.h. */ |
12724 | _ACEOF | |
12725 | cat confdefs.h >>conftest.$ac_ext | |
12726 | cat >>conftest.$ac_ext <<_ACEOF | |
12727 | /* end confdefs.h. */ | |
f40ec73c | 12728 | |
f69335e6 | 12729 | int |
12730 | main () | |
12731 | { | |
f40ec73c | 12732 | int i; |
f69335e6 | 12733 | ; |
12734 | return 0; | |
12735 | } | |
12736 | _ACEOF | |
12737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
81ae7da0 BM |
12738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12739 | (eval $ac_link) 2>conftest.er1 | |
f69335e6 | 12740 | ac_status=$? |
cbdd3138 BM |
12741 | grep -v '^ *+' conftest.er1 >conftest.err |
12742 | rm -f conftest.er1 | |
12743 | cat conftest.err >&5 | |
f69335e6 | 12744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12745 | (exit $ac_status); } && | |
64b46a71 | 12746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
12747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12748 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
12749 | ac_status=$? |
12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12751 | (exit $ac_status); }; } && | |
12752 | { ac_try='test -s conftest$ac_exeext' | |
81ae7da0 BM |
12753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12754 | (eval $ac_try) 2>&5 | |
f69335e6 | 12755 | ac_status=$? |
12756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12757 | (exit $ac_status); }; }; then | |
f40ec73c | 12758 | ac_cv_export_dynamic=yes |
12759 | else | |
f69335e6 | 12760 | echo "$as_me: failed program was:" >&5 |
cbdd3138 BM |
12761 | sed 's/^/| /' conftest.$ac_ext >&5 |
12762 | ||
81ae7da0 | 12763 | ac_cv_export_dynamic=no |
f40ec73c | 12764 | fi |
81ae7da0 | 12765 | rm -f conftest.err conftest.$ac_objext \ |
cbdd3138 | 12766 | conftest$ac_exeext conftest.$ac_ext |
f40ec73c | 12767 | fi |
81ae7da0 BM |
12768 | echo "$as_me:$LINENO: result: $ac_cv_export_dynamic" >&5 |
12769 | echo "${ECHO_T}$ac_cv_export_dynamic" >&6 | |
776fa42c | 12770 | if test "$ac_cv_export_dynamic" = "no"; then |
f40ec73c | 12771 | CFLAGS=$hold_cflags |
f40ec73c | 12772 | fi |
12773 | ||
81ae7da0 BM |
12774 | echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 |
12775 | echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6 | |
f69335e6 | 12776 | if test "${ac_cv_pic+set}" = set; then |
12777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f40ec73c | 12778 | else |
f69335e6 | 12779 | |
12780 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
f40ec73c | 12781 | ac_cv_pic="-fPIC -DPIC -shared" |
878a0f89 | 12782 | case `uname -s` in |
12783 | Darwin*) | |
12784 | ac_cv_pic="-bundle -flat_namespace -undefined suppress" | |
12785 | ;; | |
704b6260 BM |
12786 | HP-UX*) |
12787 | ac_cv_pic="-fPIC" | |
12788 | ;; | |
878a0f89 | 12789 | esac |
f40ec73c | 12790 | else |
12791 | case `uname -s` in | |
12792 | SunOS*) | |
12793 | ac_cv_pic="-KPIC -DPIC -G" | |
12794 | ;; | |
12795 | esac | |
12796 | fi | |
12797 | ||
12798 | fi | |
81ae7da0 BM |
12799 | echo "$as_me:$LINENO: result: $ac_cv_pic" >&5 |
12800 | echo "${ECHO_T}$ac_cv_pic" >&6 | |
12801 | echo "$as_me:$LINENO: checking if your system prepends an underscore on symbols" >&5 | |
12802 | echo $ECHO_N "checking if your system prepends an underscore on symbols... $ECHO_C" >&6 | |
f69335e6 | 12803 | if test "${ac_cv_underscore+set}" = set; then |
12804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d29b6498 | 12805 | else |
f69335e6 | 12806 | |
d29b6498 | 12807 | cat >uscore.c << __EOF__ |
12808 | int main() { | |
12809 | return 0; | |
12810 | } | |
12811 | __EOF__ | |
12812 | $CC -o uscore $CFLAGS uscore.c 1>&5 | |
12813 | if test -z "`strings -a uscore |grep '^_main$'`"; then | |
12814 | ac_cv_underscore=no | |
12815 | else | |
12816 | ac_cv_underscore=yes | |
12817 | fi | |
4f1345c3 | 12818 | rm -f uscore uscore.c |
e77382c1 | 12819 | |
12820 | fi | |
81ae7da0 BM |
12821 | echo "$as_me:$LINENO: result: $ac_cv_underscore" >&5 |
12822 | echo "${ECHO_T}$ac_cv_underscore" >&6 | |
d29b6498 | 12823 | if test "$ac_cv_underscore" = "yes"; then |
f69335e6 | 12824 | cat >>confdefs.h <<\_ACEOF |
d29b6498 | 12825 | #define UNDERSCORE 1 |
f69335e6 | 12826 | _ACEOF |
d29b6498 | 12827 | |
12828 | fi | |
12829 | ||
5ceda9a5 | 12830 | MODULEFLAGS=$ac_cv_pic |
f69335e6 | 12831 | cat >>confdefs.h <<\_ACEOF |
f40ec73c | 12832 | #define DYNAMIC_LINKING 1 |
f69335e6 | 12833 | _ACEOF |
f40ec73c | 12834 | |
12835 | ||
cbdd3138 BM |
12836 | else |
12837 | cat >>confdefs.h <<\_ACEOF | |
12838 | #define STATIC_LINKING 1 | |
12839 | _ACEOF | |
12840 | ||
81ae7da0 BM |
12841 | fi; |
12842 | # Check whether --enable-inet6 or --disable-inet6 was given. | |
32843244 | 12843 | if test "${enable_inet6+set}" = set; then |
81ae7da0 BM |
12844 | enableval="$enable_inet6" |
12845 | ||
12846 | echo "$as_me:$LINENO: checking if your system has IPv6 support" >&5 | |
12847 | echo $ECHO_N "checking if your system has IPv6 support... $ECHO_C" >&6 | |
f69335e6 | 12848 | if test "${ac_cv_ip6+set}" = set; then |
12849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3b0d1625 | 12850 | else |
f69335e6 | 12851 | |
825ee732 | 12852 | save_libs="$LIBS" |
12853 | LIBS="$LIBS $SOCKLIB" | |
3b0d1625 | 12854 | if test "$cross_compiling" = yes; then |
cbdd3138 BM |
12855 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
12856 | See \`config.log' for more details." >&5 | |
12857 | echo "$as_me: error: cannot run test program while cross compiling | |
12858 | See \`config.log' for more details." >&2;} | |
f69335e6 | 12859 | { (exit 1); exit 1; }; } |
3b0d1625 | 12860 | else |
f69335e6 | 12861 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
12862 | /* confdefs.h. */ |
12863 | _ACEOF | |
12864 | cat confdefs.h >>conftest.$ac_ext | |
12865 | cat >>conftest.$ac_ext <<_ACEOF | |
12866 | /* end confdefs.h. */ | |
3b0d1625 | 12867 | |
12868 | #include <sys/types.h> | |
12869 | #include <sys/socket.h> | |
12870 | int main() { | |
12871 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | |
12872 | exit(1); | |
12873 | exit(0); | |
12874 | } | |
12875 | ||
f69335e6 | 12876 | _ACEOF |
12877 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
12878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12879 | (eval $ac_link) 2>&5 | |
f69335e6 | 12880 | ac_status=$? |
12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12882 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
12883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12884 | (eval $ac_try) 2>&5 | |
f69335e6 | 12885 | ac_status=$? |
12886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12887 | (exit $ac_status); }; }; then | |
3b0d1625 | 12888 | ac_cv_ip6=yes |
12889 | else | |
f69335e6 | 12890 | echo "$as_me: program exited with status $ac_status" >&5 |
12891 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
12892 | sed 's/^/| /' conftest.$ac_ext >&5 |
12893 | ||
f69335e6 | 12894 | ( exit $ac_status ) |
12895 | ac_cv_ip6=no | |
3b0d1625 | 12896 | fi |
81ae7da0 | 12897 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3b0d1625 | 12898 | fi |
12899 | ||
3b0d1625 | 12900 | fi |
81ae7da0 BM |
12901 | echo "$as_me:$LINENO: result: $ac_cv_ip6" >&5 |
12902 | echo "${ECHO_T}$ac_cv_ip6" >&6 | |
7680ec83 | 12903 | if test "$ac_cv_ip6" = "no"; then |
f69335e6 | 12904 | { echo "$as_me:$LINENO: WARNING: Your system does not support IPv6 so it will not be enabled" >&5 |
12905 | echo "$as_me: WARNING: Your system does not support IPv6 so it will not be enabled" >&2;} | |
7680ec83 | 12906 | else |
f69335e6 | 12907 | cat >>confdefs.h <<\_ACEOF |
7680ec83 | 12908 | #define INET6 1 |
f69335e6 | 12909 | _ACEOF |
3b0d1625 | 12910 | |
81ae7da0 BM |
12911 | echo "$as_me:$LINENO: checking for struct in6addr_any" >&5 |
12912 | echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6 | |
cbdd3138 BM |
12913 | cat >conftest.$ac_ext <<_ACEOF |
12914 | /* confdefs.h. */ | |
12915 | _ACEOF | |
12916 | cat confdefs.h >>conftest.$ac_ext | |
12917 | cat >>conftest.$ac_ext <<_ACEOF | |
12918 | /* end confdefs.h. */ | |
12919 | #define IN_AUTOCONF | |
12920 | #include <sys/types.h> | |
12921 | #include <sys/socket.h> | |
12922 | #include <netinet/in.h> | |
12923 | int | |
12924 | main () | |
12925 | { | |
12926 | struct in6_addr a = in6addr_any; | |
12927 | ||
12928 | ; | |
12929 | return 0; | |
12930 | } | |
12931 | _ACEOF | |
12932 | rm -f conftest.$ac_objext | |
81ae7da0 BM |
12933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12934 | (eval $ac_compile) 2>conftest.er1 | |
cbdd3138 BM |
12935 | ac_status=$? |
12936 | grep -v '^ *+' conftest.er1 >conftest.err | |
12937 | rm -f conftest.er1 | |
12938 | cat conftest.err >&5 | |
12939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12940 | (exit $ac_status); } && | |
64b46a71 | 12941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
81ae7da0 BM |
12942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12943 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
12944 | ac_status=$? |
12945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12946 | (exit $ac_status); }; } && | |
12947 | { ac_try='test -s conftest.$ac_objext' | |
81ae7da0 BM |
12948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12949 | (eval $ac_try) 2>&5 | |
cbdd3138 BM |
12950 | ac_status=$? |
12951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12952 | (exit $ac_status); }; }; then | |
81ae7da0 BM |
12953 | echo "$as_me:$LINENO: result: yes" >&5 |
12954 | echo "${ECHO_T}yes" >&6 | |
cbdd3138 BM |
12955 | else |
12956 | echo "$as_me: failed program was:" >&5 | |
12957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12958 | ||
12959 | ||
81ae7da0 BM |
12960 | echo "$as_me:$LINENO: result: no" >&5 |
12961 | echo "${ECHO_T}no" >&6 | |
cbdd3138 BM |
12962 | cat >>confdefs.h <<\_ACEOF |
12963 | #define NO_IN6ADDR_ANY 1 | |
12964 | _ACEOF | |
12965 | ||
12966 | ||
12967 | ||
12968 | fi | |
81ae7da0 | 12969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 12970 | fi |
825ee732 | 12971 | LIBS="$save_libs" |
f40ec73c | 12972 | |
81ae7da0 | 12973 | fi; |
f40ec73c | 12974 | |
12975 | ||
81ae7da0 BM |
12976 | echo "$as_me:$LINENO: checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors" >&5 |
12977 | echo $ECHO_N "checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors... $ECHO_C" >&6 | |
f40ec73c | 12978 | if test "$cross_compiling" = yes; then |
cbdd3138 BM |
12979 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
12980 | See \`config.log' for more details." >&5 | |
12981 | echo "$as_me: error: cannot run test program while cross compiling | |
12982 | See \`config.log' for more details." >&2;} | |
f69335e6 | 12983 | { (exit 1); exit 1; }; } |
f40ec73c | 12984 | else |
f69335e6 | 12985 | cat >conftest.$ac_ext <<_ACEOF |
cbdd3138 BM |
12986 | /* confdefs.h. */ |
12987 | _ACEOF | |
12988 | cat confdefs.h >>conftest.$ac_ext | |
12989 | cat >>conftest.$ac_ext <<_ACEOF | |
12990 | /* end confdefs.h. */ | |
f40ec73c | 12991 | |
12992 | #include <sys/types.h> | |
12993 | #include <sys/time.h> | |
12994 | int main() { | |
12995 | if (FD_SETSIZE >= $ac_fd) | |
12996 | exit(0); | |
12997 | exit(1); | |
12998 | } | |
12999 | ||
f69335e6 | 13000 | _ACEOF |
13001 | rm -f conftest$ac_exeext | |
81ae7da0 BM |
13002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13003 | (eval $ac_link) 2>&5 | |
f69335e6 | 13004 | ac_status=$? |
13005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13006 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
81ae7da0 BM |
13007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13008 | (eval $ac_try) 2>&5 | |
f69335e6 | 13009 | ac_status=$? |
13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13011 | (exit $ac_status); }; }; then | |
81ae7da0 BM |
13012 | echo "$as_me:$LINENO: result: yes" >&5 |
13013 | echo "${ECHO_T}yes" >&6 | |
f69335e6 | 13014 | else |
13015 | echo "$as_me: program exited with status $ac_status" >&5 | |
13016 | echo "$as_me: failed program was:" >&5 | |
cbdd3138 BM |
13017 | sed 's/^/| /' conftest.$ac_ext >&5 |
13018 | ||
f69335e6 | 13019 | ( exit $ac_status ) |
f8f82984 | 13020 | |
13021 | FD_SETSIZE="-DFD_SETSIZE=$ac_fd" | |
81ae7da0 BM |
13022 | echo "$as_me:$LINENO: result: no" >&5 |
13023 | echo "${ECHO_T}no" >&6 | |
f8f82984 | 13024 | |
f69335e6 | 13025 | fi |
81ae7da0 | 13026 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f40ec73c | 13027 | fi |
13028 | ||
730c302c | 13029 | case `uname -s` in |
2c3eb033 | 13030 | *SunOS*) |
13031 | CFLAGS="$CFLAGS -D_SOLARIS" | |
13032 | IRCDLIBS="$IRCDLIBS -lresolv " | |
7f62aab7 | 13033 | ;; |
351a8b48 | 13034 | *solaris*) |
13035 | CFLAGS="$CFLAGS -D_SOLARIS" | |
c8c5ff95 | 13036 | IRCDLIBS="$IRCDLIBS -lresolv " |
7de9d2d6 | 13037 | ;; |
7f62aab7 | 13038 | esac |
51462f5e | 13039 | |
64b46a71 | 13040 | tre_version="7.2" |
13041 | echo "$as_me:$LINENO: result: extracting PCRE regex library" >&5 | |
13042 | echo "${ECHO_T}extracting PCRE regex library" >&6 | |
ce14fdec | 13043 | cur_dir=`pwd` |
13044 | cd extras | |
64b46a71 | 13045 | rm -rf pcre-$tre_version |
ddcec35e | 13046 | if test "x$ac_cv_path_GUNZIP" = "x" ; then |
64b46a71 | 13047 | tar xfz pcre.tar.gz |
13048 | else | |
13049 | cp pcre.tar.gz pcre.tar.gz.bak | |
13050 | gunzip -f pcre.tar.gz | |
13051 | cp pcre.tar.gz.bak pcre.tar.gz | |
13052 | tar xf pcre.tar | |
13053 | fi | |
13054 | echo "$as_me:$LINENO: result: configuring PCRE regex library" >&5 | |
13055 | echo "${ECHO_T}configuring PCRE regex library" >&6 | |
13056 | cd pcre-$tre_version | |
13057 | ./configure --disable-shared --disable-system-abi --disable-utf8 --prefix=$cur_dir/extras/regexp || exit 1 | |
13058 | echo "$as_me:$LINENO: result: compiling PCRE regex library" >&5 | |
13059 | echo "${ECHO_T}compiling PCRE regex library" >&6 | |
cbdd3138 | 13060 | $ac_cv_prog_MAKER || exit 1 |
64b46a71 | 13061 | echo "$as_me:$LINENO: result: installing PCRE regex library" >&5 |
13062 | echo "${ECHO_T}installing PCRE regex library" >&6 | |
cbdd3138 | 13063 | $ac_cv_prog_MAKER install || exit 1 |
759be00e | 13064 | TREINCDIR="$cur_dir/extras/regexp/include" |
13065 | ||
6be3ab92 | 13066 | if test "x$ac_cv_path_PKGCONFIG" = "x" ; then |
64b46a71 | 13067 | TRELIBS="-L../extras/regexp/lib -lpcreposix -lpcre" |
6be3ab92 | 13068 | else |
64b46a71 | 13069 | TRELIBS="`$ac_cv_path_PKGCONFIG --libs libpcre.pc` -lpcreposix -lpcre" |
6be3ab92 | 13070 | fi |
13071 | ||
ce14fdec | 13072 | cd $cur_dir |
cbdd3138 BM |
13073 | |
13074 | ||
d03f91e9 | 13075 | cares_version="1.4.0" |
81ae7da0 BM |
13076 | echo "$as_me:$LINENO: result: extracting c-ares resolver library" >&5 |
13077 | echo "${ECHO_T}extracting c-ares resolver library" >&6 | |
cbdd3138 BM |
13078 | cur_dir=`pwd` |
13079 | cd extras | |
13080 | rm -rf c-ares-$cares_version | |
13081 | if test "x$ac_cv_path_GUNZIP" = "x" ; then | |
13082 | tar xfz c-ares.tar.gz | |
13083 | else | |
13084 | cp c-ares.tar.gz c-ares.tar.gz.bak | |
13085 | gunzip -f c-ares.tar.gz | |
13086 | cp c-ares.tar.gz.bak c-ares.tar.gz | |
13087 | tar xf c-ares.tar | |
13088 | fi | |
81ae7da0 BM |
13089 | echo "$as_me:$LINENO: result: configuring c-ares library" >&5 |
13090 | echo "${ECHO_T}configuring c-ares library" >&6 | |
cbdd3138 BM |
13091 | cd c-ares-$cares_version |
13092 | ./configure --prefix=$cur_dir/extras/c-ares || exit 1 | |
81ae7da0 BM |
13093 | echo "$as_me:$LINENO: result: compiling c-ares resolver library" >&5 |
13094 | echo "${ECHO_T}compiling c-ares resolver library" >&6 | |
cbdd3138 | 13095 | $ac_cv_prog_MAKER || exit 1 |
81ae7da0 BM |
13096 | echo "$as_me:$LINENO: result: installing c-ares resolver library" >&5 |
13097 | echo "${ECHO_T}installing c-ares resolver library" >&6 | |
cbdd3138 BM |
13098 | $ac_cv_prog_MAKER install || exit 1 |
13099 | CARESINCDIR="$cur_dir/extras/c-ares/include" | |
13100 | ||
13101 | CARESLIBDIR="-L../extras/c-ares/lib" | |
13102 | ||
13103 | CARESLIBS="-lcares" | |
13104 | ||
13105 | cd $cur_dir | |
13106 | ||
13107 | ||
81ae7da0 | 13108 | ac_config_files="$ac_config_files Makefile src/modules/Makefile src/modules/chanmodes/Makefile unreal ircdcron/ircdchk" |
f69335e6 | 13109 | cat >confcache <<\_ACEOF |
f40ec73c | 13110 | # This file is a shell script that caches the results of configure |
13111 | # tests run on this system so they can be shared between configure | |
f69335e6 | 13112 | # scripts and configure runs, see configure's option --config-cache. |
13113 | # It is not useful on other systems. If it contains results you don't | |
13114 | # want to keep, you may remove or edit it. | |
f40ec73c | 13115 | # |
f69335e6 | 13116 | # config.status only pays attention to the cache file if you give it |
13117 | # the --recheck option to rerun configure. | |
f40ec73c | 13118 | # |
cbdd3138 | 13119 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
f69335e6 | 13120 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
13121 | # following values. | |
13122 | ||
13123 | _ACEOF | |
13124 | ||
f40ec73c | 13125 | # The following way of writing the cache mishandles newlines in values, |
13126 | # but we know of no workaround that is simple, portable, and efficient. | |
81ae7da0 | 13127 | # So, don't put newlines in cache variables' values. |
f40ec73c | 13128 | # Ultrix sh set writes to stderr and can't be redirected directly, |
13129 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ae7da0 | 13130 | { |
32843244 | 13131 | (set) 2>&1 | |
81ae7da0 BM |
13132 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
13133 | *ac_space=\ *) | |
32843244 | 13134 | # `set' does not quote correctly, so add quotes (double-quote |
13135 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
f69335e6 | 13136 | sed -n \ |
cbdd3138 BM |
13137 | "s/'/'\\\\''/g; |
13138 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ae7da0 | 13139 | ;; |
f69335e6 | 13140 | *) |
13141 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ae7da0 BM |
13142 | sed -n \ |
13143 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
f69335e6 | 13144 | ;; |
81ae7da0 BM |
13145 | esac; |
13146 | } | | |
f69335e6 | 13147 | sed ' |
13148 | t clear | |
81ae7da0 | 13149 | : clear |
f69335e6 | 13150 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13151 | t end | |
81ae7da0 BM |
13152 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13153 | : end' >>confcache | |
13154 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
13155 | if test -w $cache_file; then | |
13156 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
f69335e6 | 13157 | cat confcache >$cache_file |
f40ec73c | 13158 | else |
81ae7da0 | 13159 | echo "not updating unwritable cache $cache_file" |
f40ec73c | 13160 | fi |
13161 | fi | |
13162 | rm -f confcache | |
13163 | ||
f40ec73c | 13164 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13165 | # Let make expand exec_prefix. | |
13166 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13167 | ||
81ae7da0 BM |
13168 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13169 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13170 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13171 | # (actually we leave an empty line to preserve line numbers). | |
13172 | if test "x$srcdir" = x.; then | |
13173 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13174 | s/:*\$(srcdir):*/:/; | |
13175 | s/:*\${srcdir}:*/:/; | |
13176 | s/:*@srcdir@:*/:/; | |
13177 | s/^\([^=]*=[ ]*\):*/\1/; | |
13178 | s/:*$//; | |
13179 | s/^[^=]*=[ ]*$//; | |
13180 | }' | |
13181 | fi | |
13182 | ||
f40ec73c | 13183 | DEFS=-DHAVE_CONFIG_H |
13184 | ||
cbdd3138 BM |
13185 | ac_libobjs= |
13186 | ac_ltlibobjs= | |
13187 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
13188 | # 1. Remove the extension, and $U if already installed. | |
81ae7da0 BM |
13189 | ac_i=`echo "$ac_i" | |
13190 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
13191 | # 2. Add them. | |
13192 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
13193 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
cbdd3138 BM |
13194 | done |
13195 | LIBOBJS=$ac_libobjs | |
13196 | ||
13197 | LTLIBOBJS=$ac_ltlibobjs | |
13198 | ||
13199 | ||
f40ec73c | 13200 | |
f69335e6 | 13201 | : ${CONFIG_STATUS=./config.status} |
13202 | ac_clean_files_save=$ac_clean_files | |
13203 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
13204 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
13205 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13206 | cat >$CONFIG_STATUS <<_ACEOF | |
13207 | #! $SHELL | |
13208 | # Generated by $as_me. | |
f40ec73c | 13209 | # Run this file to recreate the current configuration. |
f40ec73c | 13210 | # Compiler output produced by configure, useful for debugging |
f69335e6 | 13211 | # configure, is in config.log if it exists. |
f40ec73c | 13212 | |
f69335e6 | 13213 | debug=false |
cbdd3138 BM |
13214 | ac_cs_recheck=false |
13215 | ac_cs_silent=false | |
f69335e6 | 13216 | SHELL=\${CONFIG_SHELL-$SHELL} |
13217 | _ACEOF | |
13218 | ||
13219 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f69335e6 | 13220 | ## --------------------- ## |
13221 | ## M4sh Initialization. ## | |
13222 | ## --------------------- ## | |
13223 | ||
13224 | # Be Bourne compatible | |
13225 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
13226 | emulate sh | |
13227 | NULLCMD=: | |
cbdd3138 BM |
13228 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
13229 | # is contrary to our usage. Disable this feature. | |
13230 | alias -g '${1+"$@"}'='"$@"' | |
81ae7da0 BM |
13231 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
13232 | set -o posix | |
f69335e6 | 13233 | fi |
cbdd3138 | 13234 | DUALCASE=1; export DUALCASE # for MKS sh |
f69335e6 | 13235 | |
f69335e6 | 13236 | # Support unset when possible. |
cbdd3138 | 13237 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
f69335e6 | 13238 | as_unset=unset |
13239 | else | |
13240 | as_unset=false | |
13241 | fi | |
13242 | ||
cbdd3138 BM |
13243 | |
13244 | # Work around bugs in pre-3.0 UWIN ksh. | |
81ae7da0 | 13245 | $as_unset ENV MAIL MAILPATH |
cbdd3138 BM |
13246 | PS1='$ ' |
13247 | PS2='> ' | |
13248 | PS4='+ ' | |
13249 | ||
13250 | # NLS nuisances. | |
13251 | for as_var in \ | |
13252 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
13253 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
13254 | LC_TELEPHONE LC_TIME | |
13255 | do | |
13256 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
13257 | eval $as_var=C; export $as_var | |
13258 | else | |
81ae7da0 | 13259 | $as_unset $as_var |
cbdd3138 BM |
13260 | fi |
13261 | done | |
13262 | ||
13263 | # Required to use basename. | |
81ae7da0 | 13264 | if expr a : '\(a\)' >/dev/null 2>&1; then |
cbdd3138 BM |
13265 | as_expr=expr |
13266 | else | |
13267 | as_expr=false | |
13268 | fi | |
13269 | ||
81ae7da0 | 13270 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
cbdd3138 BM |
13271 | as_basename=basename |
13272 | else | |
13273 | as_basename=false | |
13274 | fi | |
f69335e6 | 13275 | |
13276 | ||
13277 | # Name of the executable. | |
81ae7da0 | 13278 | as_me=`$as_basename "$0" || |
f69335e6 | 13279 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13280 | X"$0" : 'X\(//\)$' \| \ | |
81ae7da0 BM |
13281 | X"$0" : 'X\(/\)$' \| \ |
13282 | . : '\(.\)' 2>/dev/null || | |
f69335e6 | 13283 | echo X/"$0" | |
81ae7da0 BM |
13284 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
13285 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
13286 | /^X\/\(\/\).*/{ s//\1/; q; } | |
13287 | s/.*/./; q'` | |
f69335e6 | 13288 | |
f69335e6 | 13289 | |
81ae7da0 BM |
13290 | # PATH needs CR, and LINENO needs CR and PATH. |
13291 | # Avoid depending upon Character Ranges. | |
13292 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13293 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13294 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13295 | as_cr_digits='0123456789' | |
13296 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13297 | ||
13298 | # The user is always right. | |
13299 | if test "${PATH_SEPARATOR+set}" != set; then | |
13300 | echo "#! /bin/sh" >conf$$.sh | |
13301 | echo "exit 0" >>conf$$.sh | |
13302 | chmod +x conf$$.sh | |
13303 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13304 | PATH_SEPARATOR=';' | |
13305 | else | |
13306 | PATH_SEPARATOR=: | |
13307 | fi | |
13308 | rm -f conf$$.sh | |
13309 | fi | |
f69335e6 | 13310 | |
f69335e6 | 13311 | |
f69335e6 | 13312 | as_lineno_1=$LINENO |
13313 | as_lineno_2=$LINENO | |
81ae7da0 | 13314 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
f69335e6 | 13315 | test "x$as_lineno_1" != "x$as_lineno_2" && |
81ae7da0 BM |
13316 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
13317 | # Find who we are. Look in the path if we contain no path at all | |
13318 | # relative or not. | |
13319 | case $0 in | |
13320 | *[\\/]* ) as_myself=$0 ;; | |
13321 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13322 | for as_dir in $PATH | |
13323 | do | |
13324 | IFS=$as_save_IFS | |
13325 | test -z "$as_dir" && as_dir=. | |
13326 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13327 | done | |
13328 | ||
13329 | ;; | |
13330 | esac | |
13331 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13332 | # in which case we are not to be found in the path. | |
13333 | if test "x$as_myself" = x; then | |
13334 | as_myself=$0 | |
13335 | fi | |
13336 | if test ! -f "$as_myself"; then | |
13337 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
13338 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
13339 | { (exit 1); exit 1; }; } | |
13340 | fi | |
13341 | case $CONFIG_SHELL in | |
13342 | '') | |
13343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13344 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
13345 | do | |
13346 | IFS=$as_save_IFS | |
13347 | test -z "$as_dir" && as_dir=. | |
13348 | for as_base in sh bash ksh sh5; do | |
13349 | case $as_dir in | |
13350 | /*) | |
13351 | if ("$as_dir/$as_base" -c ' | |
13352 | as_lineno_1=$LINENO | |
13353 | as_lineno_2=$LINENO | |
13354 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
13355 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13356 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
13357 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
13358 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
13359 | CONFIG_SHELL=$as_dir/$as_base | |
13360 | export CONFIG_SHELL | |
13361 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
13362 | fi;; | |
13363 | esac | |
13364 | done | |
13365 | done | |
13366 | ;; | |
13367 | esac | |
f40ec73c | 13368 | |
f69335e6 | 13369 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
13370 | # uniformly replaced by the line number. The first 'sed' inserts a | |
81ae7da0 BM |
13371 | # line-number line before each line; the second 'sed' does the real |
13372 | # work. The second script uses 'N' to pair each line-number line | |
13373 | # with the numbered line, and appends trailing '-' during | |
13374 | # substitution so that $LINENO is not a special case at line end. | |
f69335e6 | 13375 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
81ae7da0 BM |
13376 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
13377 | sed '=' <$as_myself | | |
f69335e6 | 13378 | sed ' |
13379 | N | |
81ae7da0 BM |
13380 | s,$,-, |
13381 | : loop | |
13382 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
f69335e6 | 13383 | t loop |
81ae7da0 BM |
13384 | s,-$,, |
13385 | s,^['$as_cr_digits']*\n,, | |
f69335e6 | 13386 | ' >$as_me.lineno && |
81ae7da0 BM |
13387 | chmod +x $as_me.lineno || |
13388 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
13389 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
f69335e6 | 13390 | { (exit 1); exit 1; }; } |
13391 | ||
13392 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13393 | # (the dirname of $[0] is not the place where we might find the | |
81ae7da0 BM |
13394 | # original and so on. Autoconf is especially sensible to this). |
13395 | . ./$as_me.lineno | |
f69335e6 | 13396 | # Exit status is that of the last command. |
13397 | exit | |
13398 | } | |
f40ec73c | 13399 | |
f40ec73c | 13400 | |
81ae7da0 BM |
13401 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
13402 | *c*,-n*) ECHO_N= ECHO_C=' | |
13403 | ' ECHO_T=' ' ;; | |
13404 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
13405 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
f69335e6 | 13406 | esac |
f40ec73c | 13407 | |
81ae7da0 | 13408 | if expr a : '\(a\)' >/dev/null 2>&1; then |
f69335e6 | 13409 | as_expr=expr |
13410 | else | |
13411 | as_expr=false | |
13412 | fi | |
13413 | ||
13414 | rm -f conf$$ conf$$.exe conf$$.file | |
13415 | echo >conf$$.file | |
13416 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
81ae7da0 BM |
13417 | # We could just check for DJGPP; but this test a) works b) is more generic |
13418 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
13419 | if test -f conf$$.exe; then | |
13420 | # Don't use ln at all; we don't have any links | |
f69335e6 | 13421 | as_ln_s='cp -p' |
81ae7da0 BM |
13422 | else |
13423 | as_ln_s='ln -s' | |
13424 | fi | |
f69335e6 | 13425 | elif ln conf$$.file conf$$ 2>/dev/null; then |
13426 | as_ln_s=ln | |
13427 | else | |
13428 | as_ln_s='cp -p' | |
13429 | fi | |
81ae7da0 | 13430 | rm -f conf$$ conf$$.exe conf$$.file |
f69335e6 | 13431 | |
cbdd3138 BM |
13432 | if mkdir -p . 2>/dev/null; then |
13433 | as_mkdir_p=: | |
13434 | else | |
13435 | test -d ./-p && rmdir ./-p | |
13436 | as_mkdir_p=false | |
13437 | fi | |
13438 | ||
81ae7da0 | 13439 | as_executable_p="test -f" |
f69335e6 | 13440 | |
13441 | # Sed expression to map a string onto a valid CPP name. | |
cbdd3138 | 13442 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
f69335e6 | 13443 | |
13444 | # Sed expression to map a string onto a valid variable name. | |
cbdd3138 | 13445 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
f69335e6 | 13446 | |
13447 | ||
81ae7da0 BM |
13448 | # IFS |
13449 | # We need space, tab and new line, in precisely that order. | |
13450 | as_nl=' | |
13451 | ' | |
13452 | IFS=" $as_nl" | |
13453 | ||
13454 | # CDPATH. | |
13455 | $as_unset CDPATH | |
13456 | ||
f69335e6 | 13457 | exec 6>&1 |
13458 | ||
81ae7da0 | 13459 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
f69335e6 | 13460 | # report actual input values of CONFIG_FILES etc. instead of their |
81ae7da0 BM |
13461 | # values after options handling. Logging --version etc. is OK. |
13462 | exec 5>>config.log | |
13463 | { | |
13464 | echo | |
13465 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13466 | ## Running $as_me. ## | |
13467 | _ASBOX | |
13468 | } >&5 | |
13469 | cat >&5 <<_CSEOF | |
13470 | ||
f69335e6 | 13471 | This file was extended by $as_me, which was |
81ae7da0 | 13472 | generated by GNU Autoconf 2.59. Invocation command line was |
f69335e6 | 13473 | |
13474 | CONFIG_FILES = $CONFIG_FILES | |
13475 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13476 | CONFIG_LINKS = $CONFIG_LINKS | |
13477 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13478 | $ $0 $@ | |
13479 | ||
81ae7da0 BM |
13480 | _CSEOF |
13481 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
13482 | echo >&5 | |
f69335e6 | 13483 | _ACEOF |
13484 | ||
13485 | # Files that config.status was made for. | |
81ae7da0 BM |
13486 | if test -n "$ac_config_files"; then |
13487 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
13488 | fi | |
f69335e6 | 13489 | |
81ae7da0 BM |
13490 | if test -n "$ac_config_headers"; then |
13491 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
13492 | fi | |
13493 | ||
13494 | if test -n "$ac_config_links"; then | |
13495 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
13496 | fi | |
13497 | ||
13498 | if test -n "$ac_config_commands"; then | |
13499 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
13500 | fi | |
f69335e6 | 13501 | |
13502 | cat >>$CONFIG_STATUS <<\_ACEOF | |
81ae7da0 | 13503 | |
f69335e6 | 13504 | ac_cs_usage="\ |
13505 | \`$as_me' instantiates files from templates according to the | |
13506 | current configuration. | |
13507 | ||
13508 | Usage: $0 [OPTIONS] [FILE]... | |
13509 | ||
13510 | -h, --help print this help, then exit | |
13511 | -V, --version print version number, then exit | |
cbdd3138 | 13512 | -q, --quiet do not print progress messages |
f69335e6 | 13513 | -d, --debug don't remove temporary files |
13514 | --recheck update $as_me by reconfiguring in the same conditions | |
13515 | --file=FILE[:TEMPLATE] | |
cbdd3138 | 13516 | instantiate the configuration file FILE |
f69335e6 | 13517 | --header=FILE[:TEMPLATE] |
cbdd3138 | 13518 | instantiate the configuration header FILE |
f69335e6 | 13519 | |
13520 | Configuration files: | |
13521 | $config_files | |
13522 | ||
13523 | Configuration headers: | |
13524 | $config_headers | |
13525 | ||
13526 | Report bugs to <bug-autoconf@gnu.org>." | |
32843244 | 13527 | _ACEOF |
81ae7da0 | 13528 | |
f69335e6 | 13529 | cat >>$CONFIG_STATUS <<_ACEOF |
13530 | ac_cs_version="\\ | |
13531 | config.status | |
81ae7da0 BM |
13532 | configured by $0, generated by GNU Autoconf 2.59, |
13533 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
f69335e6 | 13534 | |
81ae7da0 | 13535 | Copyright (C) 2003 Free Software Foundation, Inc. |
f69335e6 | 13536 | This config.status script is free software; the Free Software Foundation |
13537 | gives unlimited permission to copy, distribute and modify it." | |
81ae7da0 | 13538 | srcdir=$srcdir |
f69335e6 | 13539 | _ACEOF |
13540 | ||
13541 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13542 | # If no file are specified by the user, then we need to provide default | |
13543 | # value. By we need to know if files were specified by the user. | |
13544 | ac_need_defaults=: | |
13545 | while test $# != 0 | |
13546 | do | |
13547 | case $1 in | |
13548 | --*=*) | |
81ae7da0 BM |
13549 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
13550 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
cbdd3138 BM |
13551 | ac_shift=: |
13552 | ;; | |
81ae7da0 | 13553 | -*) |
cbdd3138 BM |
13554 | ac_option=$1 |
13555 | ac_optarg=$2 | |
13556 | ac_shift=shift | |
f69335e6 | 13557 | ;; |
81ae7da0 BM |
13558 | *) # This is not an option, so the user has probably given explicit |
13559 | # arguments. | |
13560 | ac_option=$1 | |
13561 | ac_need_defaults=false;; | |
f69335e6 | 13562 | esac |
13563 | ||
cbdd3138 | 13564 | case $ac_option in |
f69335e6 | 13565 | # Handling of the options. |
81ae7da0 BM |
13566 | _ACEOF |
13567 | cat >>$CONFIG_STATUS <<\_ACEOF | |
cbdd3138 BM |
13568 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13569 | ac_cs_recheck=: ;; | |
81ae7da0 BM |
13570 | --version | --vers* | -V ) |
13571 | echo "$ac_cs_version"; exit 0 ;; | |
13572 | --he | --h) | |
13573 | # Conflict between --help and --header | |
13574 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
13575 | Try \`$0 --help' for more information." >&5 | |
13576 | echo "$as_me: error: ambiguous option: $1 | |
13577 | Try \`$0 --help' for more information." >&2;} | |
13578 | { (exit 1); exit 1; }; };; | |
13579 | --help | --hel | -h ) | |
13580 | echo "$ac_cs_usage"; exit 0 ;; | |
13581 | --debug | --d* | -d ) | |
f69335e6 | 13582 | debug=: ;; |
13583 | --file | --fil | --fi | --f ) | |
cbdd3138 BM |
13584 | $ac_shift |
13585 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
f69335e6 | 13586 | ac_need_defaults=false;; |
13587 | --header | --heade | --head | --hea ) | |
cbdd3138 BM |
13588 | $ac_shift |
13589 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
f69335e6 | 13590 | ac_need_defaults=false;; |
cbdd3138 BM |
13591 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13592 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13593 | ac_cs_silent=: ;; | |
f69335e6 | 13594 | |
13595 | # This is an error. | |
81ae7da0 BM |
13596 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
13597 | Try \`$0 --help' for more information." >&5 | |
13598 | echo "$as_me: error: unrecognized option: $1 | |
13599 | Try \`$0 --help' for more information." >&2;} | |
f69335e6 | 13600 | { (exit 1); exit 1; }; } ;; |
13601 | ||
81ae7da0 | 13602 | *) ac_config_targets="$ac_config_targets $1" ;; |
f69335e6 | 13603 | |
13604 | esac | |
13605 | shift | |
13606 | done | |
13607 | ||
cbdd3138 BM |
13608 | ac_configure_extra_args= |
13609 | ||
13610 | if $ac_cs_silent; then | |
13611 | exec 6>/dev/null | |
13612 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13613 | fi | |
13614 | ||
13615 | _ACEOF | |
13616 | cat >>$CONFIG_STATUS <<_ACEOF | |
13617 | if \$ac_cs_recheck; then | |
81ae7da0 BM |
13618 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
13619 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
cbdd3138 BM |
13620 | fi |
13621 | ||
f69335e6 | 13622 | _ACEOF |
13623 | ||
f69335e6 | 13624 | |
32843244 | 13625 | |
81ae7da0 BM |
13626 | |
13627 | ||
13628 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f69335e6 | 13629 | for ac_config_target in $ac_config_targets |
13630 | do | |
81ae7da0 BM |
13631 | case "$ac_config_target" in |
13632 | # Handling of arguments. | |
13633 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13634 | "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; | |
13635 | "src/modules/chanmodes/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/chanmodes/Makefile" ;; | |
13636 | "unreal" ) CONFIG_FILES="$CONFIG_FILES unreal" ;; | |
13637 | "ircdcron/ircdchk" ) CONFIG_FILES="$CONFIG_FILES ircdcron/ircdchk" ;; | |
13638 | "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
f69335e6 | 13639 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13640 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
13641 | { (exit 1); exit 1; }; };; | |
13642 | esac | |
f40ec73c | 13643 | done |
f69335e6 | 13644 | |
13645 | # If the user did not use the arguments to specify the items to instantiate, | |
13646 | # then the envvar interface is used. Set only those that are not. | |
13647 | # We use the long form for the default assignment because of an extremely | |
13648 | # bizarre bug on SunOS 4.1.3. | |
13649 | if $ac_need_defaults; then | |
13650 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13651 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
f40ec73c | 13652 | fi |
f40ec73c | 13653 | |
cbdd3138 | 13654 | # Have a temporary directory for convenience. Make it in the build tree |
81ae7da0 | 13655 | # simply because there is no reason to put it here, and in addition, |
cbdd3138 | 13656 | # creating and moving files from /tmp can sometimes cause problems. |
81ae7da0 | 13657 | # Create a temporary directory, and hook for its removal unless debugging. |
f69335e6 | 13658 | $debug || |
13659 | { | |
81ae7da0 | 13660 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
f69335e6 | 13661 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13662 | } | |
81ae7da0 | 13663 | |
f69335e6 | 13664 | # Create a (secure) tmp directory for tmp files. |
cbdd3138 | 13665 | |
f69335e6 | 13666 | { |
81ae7da0 | 13667 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
f69335e6 | 13668 | test -n "$tmp" && test -d "$tmp" |
13669 | } || | |
13670 | { | |
81ae7da0 BM |
13671 | tmp=./confstat$$-$RANDOM |
13672 | (umask 077 && mkdir $tmp) | |
f69335e6 | 13673 | } || |
13674 | { | |
cbdd3138 | 13675 | echo "$me: cannot create a temporary directory in ." >&2 |
f69335e6 | 13676 | { (exit 1); exit 1; } |
13677 | } | |
13678 | ||
81ae7da0 BM |
13679 | _ACEOF |
13680 | ||
13681 | cat >>$CONFIG_STATUS <<_ACEOF | |
13682 | ||
f69335e6 | 13683 | # |
81ae7da0 | 13684 | # CONFIG_FILES section. |
f69335e6 | 13685 | # |
13686 | ||
13687 | # No need to generate the scripts if there are no CONFIG_FILES. | |
13688 | # This happens for instance when ./config.status config.h | |
81ae7da0 BM |
13689 | if test -n "\$CONFIG_FILES"; then |
13690 | # Protect against being on the right side of a sed subst in config.status. | |
13691 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
13692 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
13693 | s,@SHELL@,$SHELL,;t t | |
13694 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
13695 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
13696 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
13697 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
13698 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
13699 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
13700 | s,@exec_prefix@,$exec_prefix,;t t | |
13701 | s,@prefix@,$prefix,;t t | |
13702 | s,@program_transform_name@,$program_transform_name,;t t | |
13703 | s,@bindir@,$bindir,;t t | |
13704 | s,@sbindir@,$sbindir,;t t | |
13705 | s,@libexecdir@,$libexecdir,;t t | |
13706 | s,@datadir@,$datadir,;t t | |
13707 | s,@sysconfdir@,$sysconfdir,;t t | |
13708 | s,@sharedstatedir@,$sharedstatedir,;t t | |
13709 | s,@localstatedir@,$localstatedir,;t t | |
13710 | s,@libdir@,$libdir,;t t | |
13711 | s,@includedir@,$includedir,;t t | |
13712 | s,@oldincludedir@,$oldincludedir,;t t | |
13713 | s,@infodir@,$infodir,;t t | |
13714 | s,@mandir@,$mandir,;t t | |
13715 | s,@build_alias@,$build_alias,;t t | |
13716 | s,@host_alias@,$host_alias,;t t | |
13717 | s,@target_alias@,$target_alias,;t t | |
13718 | s,@DEFS@,$DEFS,;t t | |
13719 | s,@ECHO_C@,$ECHO_C,;t t | |
13720 | s,@ECHO_N@,$ECHO_N,;t t | |
13721 | s,@ECHO_T@,$ECHO_T,;t t | |
13722 | s,@LIBS@,$LIBS,;t t | |
13723 | s,@CC@,$CC,;t t | |
13724 | s,@CFLAGS@,$CFLAGS,;t t | |
13725 | s,@LDFLAGS@,$LDFLAGS,;t t | |
13726 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
13727 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
13728 | s,@EXEEXT@,$EXEEXT,;t t | |
13729 | s,@OBJEXT@,$OBJEXT,;t t | |
0e87ac8a | 13730 | s,@CXX@,$CXX,;t t |
13731 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
13732 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
81ae7da0 BM |
13733 | s,@RM@,$RM,;t t |
13734 | s,@CP@,$CP,;t t | |
13735 | s,@TOUCH@,$TOUCH,;t t | |
13736 | s,@OPENSSLPATH@,$OPENSSLPATH,;t t | |
13737 | s,@INSTALL@,$INSTALL,;t t | |
13738 | s,@MAKER@,$MAKER,;t t | |
13739 | s,@GMAKE@,$GMAKE,;t t | |
13740 | s,@GUNZIP@,$GUNZIP,;t t | |
13741 | s,@PKGCONFIG@,$PKGCONFIG,;t t | |
13742 | s,@IRCDLIBS@,$IRCDLIBS,;t t | |
13743 | s,@MKPASSWDLIBS@,$MKPASSWDLIBS,;t t | |
13744 | s,@CPP@,$CPP,;t t | |
13745 | s,@EGREP@,$EGREP,;t t | |
13746 | s,@ALLOCA@,$ALLOCA,;t t | |
13747 | s,@STRTOUL@,$STRTOUL,;t t | |
13748 | s,@CRYPTOLIB@,$CRYPTOLIB,;t t | |
13749 | s,@MODULEFLAGS@,$MODULEFLAGS,;t t | |
b4f2619a | 13750 | s,@MODULES_WHICH@,$MODULES_WHICH,;t t |
81ae7da0 BM |
13751 | s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t |
13752 | s,@URL@,$URL,;t t | |
13753 | s,@IRCDDIR@,$IRCDDIR,;t t | |
13754 | s,@BINDIR@,$BINDIR,;t t | |
13755 | s,@FD_SETSIZE@,$FD_SETSIZE,;t t | |
13756 | s,@TREINCDIR@,$TREINCDIR,;t t | |
13757 | s,@TRELIBS@,$TRELIBS,;t t | |
13758 | s,@CARESINCDIR@,$CARESINCDIR,;t t | |
13759 | s,@CARESLIBDIR@,$CARESLIBDIR,;t t | |
13760 | s,@CARESLIBS@,$CARESLIBS,;t t | |
13761 | s,@LIBOBJS@,$LIBOBJS,;t t | |
13762 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
13763 | CEOF | |
13764 | ||
13765 | _ACEOF | |
13766 | ||
13767 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13768 | # Split the substitutions into bite-sized pieces for seds with | |
13769 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13770 | ac_max_sed_lines=48 | |
13771 | ac_sed_frag=1 # Number of current file. | |
13772 | ac_beg=1 # First line for current file. | |
13773 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
13774 | ac_more_lines=: | |
13775 | ac_sed_cmds= | |
13776 | while $ac_more_lines; do | |
13777 | if test $ac_beg -gt 1; then | |
13778 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
13779 | else | |
13780 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
13781 | fi | |
13782 | if test ! -s $tmp/subs.frag; then | |
13783 | ac_more_lines=false | |
13784 | else | |
13785 | # The purpose of the label and of the branching condition is to | |
13786 | # speed up the sed processing (if there are no `@' at all, there | |
13787 | # is no need to browse any of the substitutions). | |
13788 | # These are the two extra sed commands mentioned above. | |
13789 | (echo ':t | |
13790 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
13791 | if test -z "$ac_sed_cmds"; then | |
13792 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
13793 | else | |
13794 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
13795 | fi | |
13796 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
13797 | ac_beg=$ac_end | |
13798 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
13799 | fi | |
13800 | done | |
13801 | if test -z "$ac_sed_cmds"; then | |
13802 | ac_sed_cmds=cat | |
f69335e6 | 13803 | fi |
81ae7da0 | 13804 | fi # test -n "$CONFIG_FILES" |
32843244 | 13805 | |
f69335e6 | 13806 | _ACEOF |
13807 | cat >>$CONFIG_STATUS <<\_ACEOF | |
81ae7da0 BM |
13808 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
13809 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13810 | case $ac_file in | |
13811 | - | *:- | *:-:* ) # input from stdin | |
13812 | cat >$tmp/stdin | |
13813 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13814 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13815 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13816 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13817 | * ) ac_file_in=$ac_file.in ;; | |
f69335e6 | 13818 | esac |
13819 | ||
81ae7da0 BM |
13820 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
13821 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
f69335e6 | 13822 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
cbdd3138 BM |
13823 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
13824 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ae7da0 BM |
13825 | X"$ac_file" : 'X\(/\)' \| \ |
13826 | . : '\(.\)' 2>/dev/null || | |
f69335e6 | 13827 | echo X"$ac_file" | |
81ae7da0 BM |
13828 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13829 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13830 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13831 | /^X\(\/\).*/{ s//\1/; q; } | |
13832 | s/.*/./; q'` | |
13833 | { if $as_mkdir_p; then | |
13834 | mkdir -p "$ac_dir" | |
13835 | else | |
13836 | as_dir="$ac_dir" | |
cbdd3138 | 13837 | as_dirs= |
81ae7da0 BM |
13838 | while test ! -d "$as_dir"; do |
13839 | as_dirs="$as_dir $as_dirs" | |
13840 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
cbdd3138 BM |
13841 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13842 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13843 | X"$as_dir" : 'X\(//\)$' \| \ | |
81ae7da0 BM |
13844 | X"$as_dir" : 'X\(/\)' \| \ |
13845 | . : '\(.\)' 2>/dev/null || | |
cbdd3138 | 13846 | echo X"$as_dir" | |
81ae7da0 BM |
13847 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13848 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13849 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13850 | /^X\(\/\).*/{ s//\1/; q; } | |
13851 | s/.*/./; q'` | |
cbdd3138 | 13852 | done |
81ae7da0 BM |
13853 | test ! -n "$as_dirs" || mkdir $as_dirs |
13854 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13855 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
cbdd3138 | 13856 | { (exit 1); exit 1; }; }; } |
81ae7da0 | 13857 | |
f69335e6 | 13858 | ac_builddir=. |
f40ec73c | 13859 | |
81ae7da0 | 13860 | if test "$ac_dir" != .; then |
f69335e6 | 13861 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
81ae7da0 BM |
13862 | # A "../" for each directory in $ac_dir_suffix. |
13863 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
13864 | else | |
13865 | ac_dir_suffix= ac_top_builddir= | |
13866 | fi | |
f40ec73c | 13867 | |
f69335e6 | 13868 | case $srcdir in |
81ae7da0 | 13869 | .) # No --srcdir option. We are building in place. |
f69335e6 | 13870 | ac_srcdir=. |
81ae7da0 BM |
13871 | if test -z "$ac_top_builddir"; then |
13872 | ac_top_srcdir=. | |
13873 | else | |
13874 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
13875 | fi ;; | |
13876 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
f69335e6 | 13877 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ae7da0 BM |
13878 | ac_top_srcdir=$srcdir ;; |
13879 | *) # Relative path. | |
13880 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
13881 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
f69335e6 | 13882 | esac |
cbdd3138 | 13883 | |
81ae7da0 BM |
13884 | # Do not use `cd foo && pwd` to compute absolute paths, because |
13885 | # the directories may not exist. | |
13886 | case `pwd` in | |
13887 | .) ac_abs_builddir="$ac_dir";; | |
13888 | *) | |
13889 | case "$ac_dir" in | |
13890 | .) ac_abs_builddir=`pwd`;; | |
13891 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
13892 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
13893 | esac;; | |
13894 | esac | |
13895 | case $ac_abs_builddir in | |
13896 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13897 | *) | |
13898 | case ${ac_top_builddir}. in | |
13899 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
13900 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13901 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
13902 | esac;; | |
13903 | esac | |
13904 | case $ac_abs_builddir in | |
13905 | .) ac_abs_srcdir=$ac_srcdir;; | |
13906 | *) | |
13907 | case $ac_srcdir in | |
13908 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
13909 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
13910 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
13911 | esac;; | |
13912 | esac | |
13913 | case $ac_abs_builddir in | |
13914 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13915 | *) | |
13916 | case $ac_top_srcdir in | |
13917 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
13918 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13919 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
13920 | esac;; | |
13921 | esac | |
f40ec73c | 13922 | |
13923 | ||
f40ec73c | 13924 | |
81ae7da0 BM |
13925 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13926 | # use $as_me), people would be surprised to read: | |
13927 | # /* config.h. Generated by config.status. */ | |
13928 | if test x"$ac_file" = x-; then | |
13929 | configure_input= | |
13930 | else | |
13931 | configure_input="$ac_file. " | |
13932 | fi | |
13933 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
13934 | sed 's,.*/,,'` by configure." | |
13935 | ||
13936 | # First look for the input files in the build tree, otherwise in the | |
13937 | # src tree. | |
13938 | ac_file_inputs=`IFS=: | |
13939 | for f in $ac_file_in; do | |
13940 | case $f in | |
13941 | -) echo $tmp/stdin ;; | |
13942 | [\\/$]*) | |
13943 | # Absolute (can't be DOS-style, as IFS=:) | |
13944 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13945 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13946 | { (exit 1); exit 1; }; } | |
13947 | echo "$f";; | |
13948 | *) # Relative | |
13949 | if test -f "$f"; then | |
13950 | # Build tree | |
13951 | echo "$f" | |
13952 | elif test -f "$srcdir/$f"; then | |
13953 | # Source tree | |
13954 | echo "$srcdir/$f" | |
13955 | else | |
13956 | # /dev/null tree | |
13957 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13958 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13959 | { (exit 1); exit 1; }; } | |
13960 | fi;; | |
13961 | esac | |
13962 | done` || { (exit 1); exit 1; } | |
64b46a71 | 13963 | |
13964 | if test x"$ac_file" != x-; then | |
13965 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13966 | echo "$as_me: creating $ac_file" >&6;} | |
13967 | rm -f "$ac_file" | |
13968 | fi | |
81ae7da0 | 13969 | _ACEOF |
f69335e6 | 13970 | cat >>$CONFIG_STATUS <<_ACEOF |
13971 | sed "$ac_vpsub | |
13972 | $extrasub | |
13973 | _ACEOF | |
13974 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13975 | :t | |
13976 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ae7da0 BM |
13977 | s,@configure_input@,$configure_input,;t t |
13978 | s,@srcdir@,$ac_srcdir,;t t | |
13979 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
13980 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
13981 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
13982 | s,@builddir@,$ac_builddir,;t t | |
13983 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
13984 | s,@top_builddir@,$ac_top_builddir,;t t | |
13985 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
13986 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
13987 | rm -f $tmp/stdin | |
13988 | if test x"$ac_file" != x-; then | |
13989 | mv $tmp/out $ac_file | |
13990 | else | |
13991 | cat $tmp/out | |
13992 | rm -f $tmp/out | |
13993 | fi | |
13994 | ||
13995 | done | |
13996 | _ACEOF | |
13997 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13998 | ||
13999 | # | |
14000 | # CONFIG_HEADER section. | |
14001 | # | |
14002 | ||
14003 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
14004 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
14005 | # | |
14006 | # ac_d sets the value in "#define NAME VALUE" lines. | |
14007 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
14008 | ac_dB='[ ].*$,\1#\2' | |
14009 | ac_dC=' ' | |
14010 | ac_dD=',;t' | |
14011 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
14012 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
14013 | ac_uB='$,\1#\2define\3' | |
14014 | ac_uC=' ' | |
14015 | ac_uD=',;t' | |
14016 | ||
14017 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
14018 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
f69335e6 | 14019 | case $ac_file in |
81ae7da0 BM |
14020 | - | *:- | *:-:* ) # input from stdin |
14021 | cat >$tmp/stdin | |
14022 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14023 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14024 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14025 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14026 | * ) ac_file_in=$ac_file.in ;; | |
f40ec73c | 14027 | esac |
81ae7da0 BM |
14028 | |
14029 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14030 | echo "$as_me: creating $ac_file" >&6;} | |
14031 | ||
14032 | # First look for the input files in the build tree, otherwise in the | |
14033 | # src tree. | |
14034 | ac_file_inputs=`IFS=: | |
14035 | for f in $ac_file_in; do | |
14036 | case $f in | |
14037 | -) echo $tmp/stdin ;; | |
14038 | [\\/$]*) | |
14039 | # Absolute (can't be DOS-style, as IFS=:) | |
14040 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14041 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14042 | { (exit 1); exit 1; }; } | |
14043 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
14044 | echo "$f";; | |
14045 | *) # Relative | |
14046 | if test -f "$f"; then | |
14047 | # Build tree | |
14048 | echo "$f" | |
14049 | elif test -f "$srcdir/$f"; then | |
14050 | # Source tree | |
14051 | echo "$srcdir/$f" | |
14052 | else | |
14053 | # /dev/null tree | |
14054 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14055 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14056 | { (exit 1); exit 1; }; } | |
14057 | fi;; | |
14058 | esac | |
14059 | done` || { (exit 1); exit 1; } | |
14060 | # Remove the trailing spaces. | |
14061 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
14062 | ||
14063 | _ACEOF | |
14064 | ||
14065 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
14066 | # `conftest.undefs', that substitutes the proper values into | |
14067 | # config.h.in to produce config.h. The first handles `#define' | |
14068 | # templates, and the second `#undef' templates. | |
14069 | # And first: Protect against being on the right side of a sed subst in | |
14070 | # config.status. Protect against being in an unquoted here document | |
14071 | # in config.status. | |
14072 | rm -f conftest.defines conftest.undefs | |
14073 | # Using a here document instead of a string reduces the quoting nightmare. | |
14074 | # Putting comments in sed scripts is not portable. | |
14075 | # | |
14076 | # `end' is used to avoid that the second main sed command (meant for | |
14077 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
14078 | # See the Autoconf documentation for `clear'. | |
14079 | cat >confdef2sed.sed <<\_ACEOF | |
14080 | s/[\\&,]/\\&/g | |
14081 | s,[\\$`],\\&,g | |
14082 | t clear | |
14083 | : clear | |
14084 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
14085 | t end | |
14086 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
14087 | : end | |
14088 | _ACEOF | |
14089 | # If some macros were called several times there might be several times | |
14090 | # the same #defines, which is useless. Nevertheless, we may not want to | |
14091 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
14092 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
14093 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
14094 | rm -f confdef2sed.sed | |
14095 | ||
14096 | # This sed command replaces #undef with comments. This is necessary, for | |
f40ec73c | 14097 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
14098 | # on some systems where configure will not decide to define it. | |
81ae7da0 BM |
14099 | cat >>conftest.undefs <<\_ACEOF |
14100 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
14101 | _ACEOF | |
14102 | ||
14103 | # Break up conftest.defines because some shells have a limit on the size | |
14104 | # of here documents, and old seds have small limits too (100 cmds). | |
14105 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
14106 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
14107 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
14108 | echo ' :' >>$CONFIG_STATUS | |
14109 | rm -f conftest.tail | |
14110 | while grep . conftest.defines >/dev/null | |
f69335e6 | 14111 | do |
81ae7da0 BM |
14112 | # Write a limited-size here document to $tmp/defines.sed. |
14113 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
14114 | # Speed up: don't consider the non `#define' lines. | |
14115 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
14116 | # Work around the forget-to-reset-the-flag bug. | |
14117 | echo 't clr' >>$CONFIG_STATUS | |
14118 | echo ': clr' >>$CONFIG_STATUS | |
14119 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
f69335e6 | 14120 | echo 'CEOF |
81ae7da0 BM |
14121 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
14122 | rm -f $tmp/in | |
14123 | mv $tmp/out $tmp/in | |
14124 | ' >>$CONFIG_STATUS | |
14125 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
f69335e6 | 14126 | rm -f conftest.defines |
14127 | mv conftest.tail conftest.defines | |
14128 | done | |
81ae7da0 BM |
14129 | rm -f conftest.defines |
14130 | echo ' fi # grep' >>$CONFIG_STATUS | |
14131 | echo >>$CONFIG_STATUS | |
14132 | ||
14133 | # Break up conftest.undefs because some shells have a limit on the size | |
14134 | # of here documents, and old seds have small limits too (100 cmds). | |
14135 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
14136 | rm -f conftest.tail | |
14137 | while grep . conftest.undefs >/dev/null | |
14138 | do | |
14139 | # Write a limited-size here document to $tmp/undefs.sed. | |
14140 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
14141 | # Speed up: don't consider the non `#undef' | |
14142 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
14143 | # Work around the forget-to-reset-the-flag bug. | |
14144 | echo 't clr' >>$CONFIG_STATUS | |
14145 | echo ': clr' >>$CONFIG_STATUS | |
14146 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
14147 | echo 'CEOF | |
14148 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
14149 | rm -f $tmp/in | |
14150 | mv $tmp/out $tmp/in | |
14151 | ' >>$CONFIG_STATUS | |
14152 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
14153 | rm -f conftest.undefs | |
14154 | mv conftest.tail conftest.undefs | |
14155 | done | |
14156 | rm -f conftest.undefs | |
f69335e6 | 14157 | |
14158 | cat >>$CONFIG_STATUS <<\_ACEOF | |
81ae7da0 BM |
14159 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14160 | # use $as_me), people would be surprised to read: | |
14161 | # /* config.h. Generated by config.status. */ | |
14162 | if test x"$ac_file" = x-; then | |
14163 | echo "/* Generated by configure. */" >$tmp/config.h | |
14164 | else | |
14165 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
14166 | fi | |
14167 | cat $tmp/in >>$tmp/config.h | |
14168 | rm -f $tmp/in | |
f69335e6 | 14169 | if test x"$ac_file" != x-; then |
81ae7da0 | 14170 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
f69335e6 | 14171 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
14172 | echo "$as_me: $ac_file is unchanged" >&6;} | |
14173 | else | |
81ae7da0 BM |
14174 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
14175 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14176 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14177 | X"$ac_file" : 'X\(//\)$' \| \ | |
14178 | X"$ac_file" : 'X\(/\)' \| \ | |
14179 | . : '\(.\)' 2>/dev/null || | |
14180 | echo X"$ac_file" | | |
14181 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14182 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14183 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14184 | /^X\(\/\).*/{ s//\1/; q; } | |
14185 | s/.*/./; q'` | |
14186 | { if $as_mkdir_p; then | |
14187 | mkdir -p "$ac_dir" | |
14188 | else | |
14189 | as_dir="$ac_dir" | |
14190 | as_dirs= | |
14191 | while test ! -d "$as_dir"; do | |
14192 | as_dirs="$as_dir $as_dirs" | |
14193 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14194 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14195 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14196 | X"$as_dir" : 'X\(//\)$' \| \ | |
14197 | X"$as_dir" : 'X\(/\)' \| \ | |
14198 | . : '\(.\)' 2>/dev/null || | |
14199 | echo X"$as_dir" | | |
14200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14201 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14202 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14203 | /^X\(\/\).*/{ s//\1/; q; } | |
14204 | s/.*/./; q'` | |
14205 | done | |
14206 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14207 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
14208 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
14209 | { (exit 1); exit 1; }; }; } | |
14210 | ||
f69335e6 | 14211 | rm -f $ac_file |
81ae7da0 | 14212 | mv $tmp/config.h $ac_file |
f69335e6 | 14213 | fi |
14214 | else | |
81ae7da0 BM |
14215 | cat $tmp/config.h |
14216 | rm -f $tmp/config.h | |
f69335e6 | 14217 | fi |
81ae7da0 BM |
14218 | done |
14219 | _ACEOF | |
f40ec73c | 14220 | |
81ae7da0 | 14221 | cat >>$CONFIG_STATUS <<\_ACEOF |
f40ec73c | 14222 | |
f69335e6 | 14223 | { (exit 0); exit 0; } |
14224 | _ACEOF | |
f40ec73c | 14225 | chmod +x $CONFIG_STATUS |
f69335e6 | 14226 | ac_clean_files=$ac_clean_files_save |
14227 | ||
14228 | ||
14229 | # configure is writing to config.log, and then calls config.status. | |
14230 | # config.status does its own redirection, appending to config.log. | |
14231 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14232 | # by configure, so config.status won't be able to write to it; its | |
14233 | # output is simply discarded. So we exec the FD to /dev/null, | |
14234 | # effectively closing config.log, so it can be properly (re)opened and | |
14235 | # appended to by config.status. When coming back to configure, we | |
14236 | # need to make the FD available again. | |
14237 | if test "$no_create" != yes; then | |
14238 | ac_cs_success=: | |
cbdd3138 BM |
14239 | ac_config_status_args= |
14240 | test "$silent" = yes && | |
14241 | ac_config_status_args="$ac_config_status_args --quiet" | |
f69335e6 | 14242 | exec 5>/dev/null |
cbdd3138 | 14243 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
f69335e6 | 14244 | exec 5>>config.log |
14245 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14246 | # would make configure fail if this is the last instruction. | |
14247 | $ac_cs_success || { (exit 1); exit 1; } | |
14248 | fi | |
f40ec73c | 14249 | |
cad8d532 | 14250 | chmod 0700 unreal |
4bda94ac | 14251 | chmod 0700 ircdcron/ircdchk |