1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for ifplugd 0.23. |
---|
4 | # |
---|
5 | # Report bugs to <mzvscyhtq (at) 0pointer (dot) de>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | ## --------------------- ## |
---|
11 | ## M4sh Initialization. ## |
---|
12 | ## --------------------- ## |
---|
13 | |
---|
14 | # Be Bourne compatible |
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
16 | emulate sh |
---|
17 | NULLCMD=: |
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
19 | # is contrary to our usage. Disable this feature. |
---|
20 | alias -g '${1+"$@"}'='"$@"' |
---|
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
22 | set -o posix |
---|
23 | fi |
---|
24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
25 | |
---|
26 | # Support unset when possible. |
---|
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
28 | as_unset=unset |
---|
29 | else |
---|
30 | as_unset=false |
---|
31 | fi |
---|
32 | |
---|
33 | |
---|
34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
35 | $as_unset ENV MAIL MAILPATH |
---|
36 | PS1='$ ' |
---|
37 | PS2='> ' |
---|
38 | PS4='+ ' |
---|
39 | |
---|
40 | # NLS nuisances. |
---|
41 | for as_var in \ |
---|
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
44 | LC_TELEPHONE LC_TIME |
---|
45 | do |
---|
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
47 | eval $as_var=C; export $as_var |
---|
48 | else |
---|
49 | $as_unset $as_var |
---|
50 | fi |
---|
51 | done |
---|
52 | |
---|
53 | # Required to use basename. |
---|
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
55 | as_expr=expr |
---|
56 | else |
---|
57 | as_expr=false |
---|
58 | fi |
---|
59 | |
---|
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
61 | as_basename=basename |
---|
62 | else |
---|
63 | as_basename=false |
---|
64 | fi |
---|
65 | |
---|
66 | |
---|
67 | # Name of the executable. |
---|
68 | as_me=`$as_basename "$0" || |
---|
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
70 | X"$0" : 'X\(//\)$' \| \ |
---|
71 | X"$0" : 'X\(/\)$' \| \ |
---|
72 | . : '\(.\)' 2>/dev/null || |
---|
73 | echo X/"$0" | |
---|
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
77 | s/.*/./; q'` |
---|
78 | |
---|
79 | |
---|
80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
81 | # Avoid depending upon Character Ranges. |
---|
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
85 | as_cr_digits='0123456789' |
---|
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
87 | |
---|
88 | # The user is always right. |
---|
89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
90 | echo "#! /bin/sh" >conf$$.sh |
---|
91 | echo "exit 0" >>conf$$.sh |
---|
92 | chmod +x conf$$.sh |
---|
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
94 | PATH_SEPARATOR=';' |
---|
95 | else |
---|
96 | PATH_SEPARATOR=: |
---|
97 | fi |
---|
98 | rm -f conf$$.sh |
---|
99 | fi |
---|
100 | |
---|
101 | |
---|
102 | as_lineno_1=$LINENO |
---|
103 | as_lineno_2=$LINENO |
---|
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
107 | # Find who we are. Look in the path if we contain no path at all |
---|
108 | # relative or not. |
---|
109 | case $0 in |
---|
110 | *[\\/]* ) as_myself=$0 ;; |
---|
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
112 | for as_dir in $PATH |
---|
113 | do |
---|
114 | IFS=$as_save_IFS |
---|
115 | test -z "$as_dir" && as_dir=. |
---|
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
117 | done |
---|
118 | |
---|
119 | ;; |
---|
120 | esac |
---|
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
122 | # in which case we are not to be found in the path. |
---|
123 | if test "x$as_myself" = x; then |
---|
124 | as_myself=$0 |
---|
125 | fi |
---|
126 | if test ! -f "$as_myself"; then |
---|
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
128 | { (exit 1); exit 1; }; } |
---|
129 | fi |
---|
130 | case $CONFIG_SHELL in |
---|
131 | '') |
---|
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
134 | do |
---|
135 | IFS=$as_save_IFS |
---|
136 | test -z "$as_dir" && as_dir=. |
---|
137 | for as_base in sh bash ksh sh5; do |
---|
138 | case $as_dir in |
---|
139 | /*) |
---|
140 | if ("$as_dir/$as_base" -c ' |
---|
141 | as_lineno_1=$LINENO |
---|
142 | as_lineno_2=$LINENO |
---|
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
148 | CONFIG_SHELL=$as_dir/$as_base |
---|
149 | export CONFIG_SHELL |
---|
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
151 | fi;; |
---|
152 | esac |
---|
153 | done |
---|
154 | done |
---|
155 | ;; |
---|
156 | esac |
---|
157 | |
---|
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
160 | # line-number line before each line; the second 'sed' does the real |
---|
161 | # work. The second script uses 'N' to pair each line-number line |
---|
162 | # with the numbered line, and appends trailing '-' during |
---|
163 | # substitution so that $LINENO is not a special case at line end. |
---|
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
166 | sed '=' <$as_myself | |
---|
167 | sed ' |
---|
168 | N |
---|
169 | s,$,-, |
---|
170 | : loop |
---|
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
172 | t loop |
---|
173 | s,-$,, |
---|
174 | s,^['$as_cr_digits']*\n,, |
---|
175 | ' >$as_me.lineno && |
---|
176 | chmod +x $as_me.lineno || |
---|
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
178 | { (exit 1); exit 1; }; } |
---|
179 | |
---|
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
181 | # (the dirname of $[0] is not the place where we might find the |
---|
182 | # original and so on. Autoconf is especially sensible to this). |
---|
183 | . ./$as_me.lineno |
---|
184 | # Exit status is that of the last command. |
---|
185 | exit |
---|
186 | } |
---|
187 | |
---|
188 | |
---|
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
191 | ' ECHO_T=' ' ;; |
---|
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
194 | esac |
---|
195 | |
---|
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
197 | as_expr=expr |
---|
198 | else |
---|
199 | as_expr=false |
---|
200 | fi |
---|
201 | |
---|
202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
203 | echo >conf$$.file |
---|
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
207 | if test -f conf$$.exe; then |
---|
208 | # Don't use ln at all; we don't have any links |
---|
209 | as_ln_s='cp -p' |
---|
210 | else |
---|
211 | as_ln_s='ln -s' |
---|
212 | fi |
---|
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
214 | as_ln_s=ln |
---|
215 | else |
---|
216 | as_ln_s='cp -p' |
---|
217 | fi |
---|
218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
219 | |
---|
220 | if mkdir -p . 2>/dev/null; then |
---|
221 | as_mkdir_p=: |
---|
222 | else |
---|
223 | test -d ./-p && rmdir ./-p |
---|
224 | as_mkdir_p=false |
---|
225 | fi |
---|
226 | |
---|
227 | as_executable_p="test -f" |
---|
228 | |
---|
229 | # Sed expression to map a string onto a valid CPP name. |
---|
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
231 | |
---|
232 | # Sed expression to map a string onto a valid variable name. |
---|
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
234 | |
---|
235 | |
---|
236 | # IFS |
---|
237 | # We need space, tab and new line, in precisely that order. |
---|
238 | as_nl=' |
---|
239 | ' |
---|
240 | IFS=" $as_nl" |
---|
241 | |
---|
242 | # CDPATH. |
---|
243 | $as_unset CDPATH |
---|
244 | |
---|
245 | |
---|
246 | # Name of the host. |
---|
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
248 | # so uname gets run too. |
---|
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
250 | |
---|
251 | exec 6>&1 |
---|
252 | |
---|
253 | # |
---|
254 | # Initializations. |
---|
255 | # |
---|
256 | ac_default_prefix=/usr/local |
---|
257 | ac_config_libobj_dir=. |
---|
258 | cross_compiling=no |
---|
259 | subdirs= |
---|
260 | MFLAGS= |
---|
261 | MAKEFLAGS= |
---|
262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
263 | |
---|
264 | # Maximum number of lines to put in a shell here document. |
---|
265 | # This variable seems obsolete. It should probably be removed, and |
---|
266 | # only ac_max_sed_lines should be used. |
---|
267 | : ${ac_max_here_lines=38} |
---|
268 | |
---|
269 | # Identity of this package. |
---|
270 | PACKAGE_NAME='ifplugd' |
---|
271 | PACKAGE_TARNAME='ifplugd' |
---|
272 | PACKAGE_VERSION='0.23' |
---|
273 | PACKAGE_STRING='ifplugd 0.23' |
---|
274 | PACKAGE_BUGREPORT='mzvscyhtq (at) 0pointer (dot) de' |
---|
275 | |
---|
276 | ac_unique_file="src/ifplugd.c" |
---|
277 | # Factoring default headers for most tests. |
---|
278 | ac_includes_default="\ |
---|
279 | #include <stdio.h> |
---|
280 | #if HAVE_SYS_TYPES_H |
---|
281 | # include <sys/types.h> |
---|
282 | #endif |
---|
283 | #if HAVE_SYS_STAT_H |
---|
284 | # include <sys/stat.h> |
---|
285 | #endif |
---|
286 | #if STDC_HEADERS |
---|
287 | # include <stdlib.h> |
---|
288 | # include <stddef.h> |
---|
289 | #else |
---|
290 | # if HAVE_STDLIB_H |
---|
291 | # include <stdlib.h> |
---|
292 | # endif |
---|
293 | #endif |
---|
294 | #if HAVE_STRING_H |
---|
295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
296 | # include <memory.h> |
---|
297 | # endif |
---|
298 | # include <string.h> |
---|
299 | #endif |
---|
300 | #if HAVE_STRINGS_H |
---|
301 | # include <strings.h> |
---|
302 | #endif |
---|
303 | #if HAVE_INTTYPES_H |
---|
304 | # include <inttypes.h> |
---|
305 | #else |
---|
306 | # if HAVE_STDINT_H |
---|
307 | # include <stdint.h> |
---|
308 | # endif |
---|
309 | #endif |
---|
310 | #if HAVE_UNISTD_H |
---|
311 | # include <unistd.h> |
---|
312 | #endif" |
---|
313 | |
---|
314 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot PACKAGE_URL CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S EGREP LIBOBJS PKG_CONFIG LIBDAEMON_CFLAGS LIBDAEMON_LIBS SYSINITDIR have_lynx USE_LYNX_TRUE USE_LYNX_FALSE have_xmltoman USE_XMLTOMAN_TRUE USE_XMLTOMAN_FALSE have_subversion USE_SUBVERSION_TRUE USE_SUBVERSION_FALSE LTLIBOBJS' |
---|
315 | ac_subst_files='' |
---|
316 | |
---|
317 | # Initialize some variables set by options. |
---|
318 | ac_init_help= |
---|
319 | ac_init_version=false |
---|
320 | # The variables have the same names as the options, with |
---|
321 | # dashes changed to underlines. |
---|
322 | cache_file=/dev/null |
---|
323 | exec_prefix=NONE |
---|
324 | no_create= |
---|
325 | no_recursion= |
---|
326 | prefix=NONE |
---|
327 | program_prefix=NONE |
---|
328 | program_suffix=NONE |
---|
329 | program_transform_name=s,x,x, |
---|
330 | silent= |
---|
331 | site= |
---|
332 | srcdir= |
---|
333 | verbose= |
---|
334 | x_includes=NONE |
---|
335 | x_libraries=NONE |
---|
336 | |
---|
337 | # Installation directory options. |
---|
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
339 | # and all the variables that are supposed to be based on exec_prefix |
---|
340 | # by default will actually change. |
---|
341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
342 | bindir='${exec_prefix}/bin' |
---|
343 | sbindir='${exec_prefix}/sbin' |
---|
344 | libexecdir='${exec_prefix}/libexec' |
---|
345 | datadir='${prefix}/share' |
---|
346 | sysconfdir='${prefix}/etc' |
---|
347 | sharedstatedir='${prefix}/com' |
---|
348 | localstatedir='${prefix}/var' |
---|
349 | libdir='${exec_prefix}/lib' |
---|
350 | includedir='${prefix}/include' |
---|
351 | oldincludedir='/usr/include' |
---|
352 | infodir='${prefix}/info' |
---|
353 | mandir='${prefix}/man' |
---|
354 | |
---|
355 | ac_prev= |
---|
356 | for ac_option |
---|
357 | do |
---|
358 | # If the previous option needs an argument, assign it. |
---|
359 | if test -n "$ac_prev"; then |
---|
360 | eval "$ac_prev=\$ac_option" |
---|
361 | ac_prev= |
---|
362 | continue |
---|
363 | fi |
---|
364 | |
---|
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
366 | |
---|
367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
368 | |
---|
369 | case $ac_option in |
---|
370 | |
---|
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
372 | ac_prev=bindir ;; |
---|
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
374 | bindir=$ac_optarg ;; |
---|
375 | |
---|
376 | -build | --build | --buil | --bui | --bu) |
---|
377 | ac_prev=build_alias ;; |
---|
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
379 | build_alias=$ac_optarg ;; |
---|
380 | |
---|
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
383 | ac_prev=cache_file ;; |
---|
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
386 | cache_file=$ac_optarg ;; |
---|
387 | |
---|
388 | --config-cache | -C) |
---|
389 | cache_file=config.cache ;; |
---|
390 | |
---|
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
392 | ac_prev=datadir ;; |
---|
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
394 | | --da=*) |
---|
395 | datadir=$ac_optarg ;; |
---|
396 | |
---|
397 | -disable-* | --disable-*) |
---|
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
399 | # Reject names that are not valid shell variable names. |
---|
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
402 | { (exit 1); exit 1; }; } |
---|
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
404 | eval "enable_$ac_feature=no" ;; |
---|
405 | |
---|
406 | -enable-* | --enable-*) |
---|
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
408 | # Reject names that are not valid shell variable names. |
---|
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
411 | { (exit 1); exit 1; }; } |
---|
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
413 | case $ac_option in |
---|
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
415 | *) ac_optarg=yes ;; |
---|
416 | esac |
---|
417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
418 | |
---|
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
421 | | --exec | --exe | --ex) |
---|
422 | ac_prev=exec_prefix ;; |
---|
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
425 | | --exec=* | --exe=* | --ex=*) |
---|
426 | exec_prefix=$ac_optarg ;; |
---|
427 | |
---|
428 | -gas | --gas | --ga | --g) |
---|
429 | # Obsolete; use --with-gas. |
---|
430 | with_gas=yes ;; |
---|
431 | |
---|
432 | -help | --help | --hel | --he | -h) |
---|
433 | ac_init_help=long ;; |
---|
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
435 | ac_init_help=recursive ;; |
---|
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
437 | ac_init_help=short ;; |
---|
438 | |
---|
439 | -host | --host | --hos | --ho) |
---|
440 | ac_prev=host_alias ;; |
---|
441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
442 | host_alias=$ac_optarg ;; |
---|
443 | |
---|
444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
445 | | --includ | --inclu | --incl | --inc) |
---|
446 | ac_prev=includedir ;; |
---|
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
449 | includedir=$ac_optarg ;; |
---|
450 | |
---|
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
452 | ac_prev=infodir ;; |
---|
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
454 | infodir=$ac_optarg ;; |
---|
455 | |
---|
456 | -libdir | --libdir | --libdi | --libd) |
---|
457 | ac_prev=libdir ;; |
---|
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
459 | libdir=$ac_optarg ;; |
---|
460 | |
---|
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
462 | | --libexe | --libex | --libe) |
---|
463 | ac_prev=libexecdir ;; |
---|
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
465 | | --libexe=* | --libex=* | --libe=*) |
---|
466 | libexecdir=$ac_optarg ;; |
---|
467 | |
---|
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
469 | | --localstate | --localstat | --localsta | --localst \ |
---|
470 | | --locals | --local | --loca | --loc | --lo) |
---|
471 | ac_prev=localstatedir ;; |
---|
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
475 | localstatedir=$ac_optarg ;; |
---|
476 | |
---|
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
478 | ac_prev=mandir ;; |
---|
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
480 | mandir=$ac_optarg ;; |
---|
481 | |
---|
482 | -nfp | --nfp | --nf) |
---|
483 | # Obsolete; use --without-fp. |
---|
484 | with_fp=no ;; |
---|
485 | |
---|
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
487 | | --no-cr | --no-c | -n) |
---|
488 | no_create=yes ;; |
---|
489 | |
---|
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
492 | no_recursion=yes ;; |
---|
493 | |
---|
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
496 | | --oldin | --oldi | --old | --ol | --o) |
---|
497 | ac_prev=oldincludedir ;; |
---|
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
501 | oldincludedir=$ac_optarg ;; |
---|
502 | |
---|
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
504 | ac_prev=prefix ;; |
---|
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
506 | prefix=$ac_optarg ;; |
---|
507 | |
---|
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
509 | | --program-pre | --program-pr | --program-p) |
---|
510 | ac_prev=program_prefix ;; |
---|
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
513 | program_prefix=$ac_optarg ;; |
---|
514 | |
---|
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
516 | | --program-suf | --program-su | --program-s) |
---|
517 | ac_prev=program_suffix ;; |
---|
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
520 | program_suffix=$ac_optarg ;; |
---|
521 | |
---|
522 | -program-transform-name | --program-transform-name \ |
---|
523 | | --program-transform-nam | --program-transform-na \ |
---|
524 | | --program-transform-n | --program-transform- \ |
---|
525 | | --program-transform | --program-transfor \ |
---|
526 | | --program-transfo | --program-transf \ |
---|
527 | | --program-trans | --program-tran \ |
---|
528 | | --progr-tra | --program-tr | --program-t) |
---|
529 | ac_prev=program_transform_name ;; |
---|
530 | -program-transform-name=* | --program-transform-name=* \ |
---|
531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
532 | | --program-transform-n=* | --program-transform-=* \ |
---|
533 | | --program-transform=* | --program-transfor=* \ |
---|
534 | | --program-transfo=* | --program-transf=* \ |
---|
535 | | --program-trans=* | --program-tran=* \ |
---|
536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
537 | program_transform_name=$ac_optarg ;; |
---|
538 | |
---|
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
540 | | -silent | --silent | --silen | --sile | --sil) |
---|
541 | silent=yes ;; |
---|
542 | |
---|
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
544 | ac_prev=sbindir ;; |
---|
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
546 | | --sbi=* | --sb=*) |
---|
547 | sbindir=$ac_optarg ;; |
---|
548 | |
---|
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
552 | | --sha | --sh) |
---|
553 | ac_prev=sharedstatedir ;; |
---|
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
557 | | --sha=* | --sh=*) |
---|
558 | sharedstatedir=$ac_optarg ;; |
---|
559 | |
---|
560 | -site | --site | --sit) |
---|
561 | ac_prev=site ;; |
---|
562 | -site=* | --site=* | --sit=*) |
---|
563 | site=$ac_optarg ;; |
---|
564 | |
---|
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
566 | ac_prev=srcdir ;; |
---|
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
568 | srcdir=$ac_optarg ;; |
---|
569 | |
---|
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
572 | ac_prev=sysconfdir ;; |
---|
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
575 | sysconfdir=$ac_optarg ;; |
---|
576 | |
---|
577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
578 | ac_prev=target_alias ;; |
---|
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
580 | target_alias=$ac_optarg ;; |
---|
581 | |
---|
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
583 | verbose=yes ;; |
---|
584 | |
---|
585 | -version | --version | --versio | --versi | --vers | -V) |
---|
586 | ac_init_version=: ;; |
---|
587 | |
---|
588 | -with-* | --with-*) |
---|
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
590 | # Reject names that are not valid shell variable names. |
---|
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
593 | { (exit 1); exit 1; }; } |
---|
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
595 | case $ac_option in |
---|
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
597 | *) ac_optarg=yes ;; |
---|
598 | esac |
---|
599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
600 | |
---|
601 | -without-* | --without-*) |
---|
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
603 | # Reject names that are not valid shell variable names. |
---|
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
606 | { (exit 1); exit 1; }; } |
---|
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
608 | eval "with_$ac_package=no" ;; |
---|
609 | |
---|
610 | --x) |
---|
611 | # Obsolete; use --with-x. |
---|
612 | with_x=yes ;; |
---|
613 | |
---|
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
616 | ac_prev=x_includes ;; |
---|
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
619 | x_includes=$ac_optarg ;; |
---|
620 | |
---|
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
623 | ac_prev=x_libraries ;; |
---|
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
626 | x_libraries=$ac_optarg ;; |
---|
627 | |
---|
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
629 | Try \`$0 --help' for more information." >&2 |
---|
630 | { (exit 1); exit 1; }; } |
---|
631 | ;; |
---|
632 | |
---|
633 | *=*) |
---|
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
635 | # Reject names that are not valid shell variable names. |
---|
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
638 | { (exit 1); exit 1; }; } |
---|
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
640 | eval "$ac_envvar='$ac_optarg'" |
---|
641 | export $ac_envvar ;; |
---|
642 | |
---|
643 | *) |
---|
644 | # FIXME: should be removed in autoconf 3.0. |
---|
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
649 | ;; |
---|
650 | |
---|
651 | esac |
---|
652 | done |
---|
653 | |
---|
654 | if test -n "$ac_prev"; then |
---|
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
657 | { (exit 1); exit 1; }; } |
---|
658 | fi |
---|
659 | |
---|
660 | # Be sure to have absolute paths. |
---|
661 | for ac_var in exec_prefix prefix |
---|
662 | do |
---|
663 | eval ac_val=$`echo $ac_var` |
---|
664 | case $ac_val in |
---|
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
667 | { (exit 1); exit 1; }; };; |
---|
668 | esac |
---|
669 | done |
---|
670 | |
---|
671 | # Be sure to have absolute paths. |
---|
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
674 | do |
---|
675 | eval ac_val=$`echo $ac_var` |
---|
676 | case $ac_val in |
---|
677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
679 | { (exit 1); exit 1; }; };; |
---|
680 | esac |
---|
681 | done |
---|
682 | |
---|
683 | # There might be people who depend on the old broken behavior: `$host' |
---|
684 | # used to hold the argument of --host etc. |
---|
685 | # FIXME: To remove some day. |
---|
686 | build=$build_alias |
---|
687 | host=$host_alias |
---|
688 | target=$target_alias |
---|
689 | |
---|
690 | # FIXME: To remove some day. |
---|
691 | if test "x$host_alias" != x; then |
---|
692 | if test "x$build_alias" = x; then |
---|
693 | cross_compiling=maybe |
---|
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
697 | cross_compiling=yes |
---|
698 | fi |
---|
699 | fi |
---|
700 | |
---|
701 | ac_tool_prefix= |
---|
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
703 | |
---|
704 | test "$silent" = yes && exec 6>/dev/null |
---|
705 | |
---|
706 | |
---|
707 | # Find the source files, if location was not specified. |
---|
708 | if test -z "$srcdir"; then |
---|
709 | ac_srcdir_defaulted=yes |
---|
710 | # Try the directory containing this script, then its parent. |
---|
711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
714 | X"$0" : 'X\(//\)$' \| \ |
---|
715 | X"$0" : 'X\(/\)' \| \ |
---|
716 | . : '\(.\)' 2>/dev/null || |
---|
717 | echo X"$0" | |
---|
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
722 | s/.*/./; q'` |
---|
723 | srcdir=$ac_confdir |
---|
724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
725 | srcdir=.. |
---|
726 | fi |
---|
727 | else |
---|
728 | ac_srcdir_defaulted=no |
---|
729 | fi |
---|
730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
733 | { (exit 1); exit 1; }; } |
---|
734 | else |
---|
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
736 | { (exit 1); exit 1; }; } |
---|
737 | fi |
---|
738 | fi |
---|
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
741 | { (exit 1); exit 1; }; } |
---|
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
743 | ac_env_build_alias_set=${build_alias+set} |
---|
744 | ac_env_build_alias_value=$build_alias |
---|
745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
746 | ac_cv_env_build_alias_value=$build_alias |
---|
747 | ac_env_host_alias_set=${host_alias+set} |
---|
748 | ac_env_host_alias_value=$host_alias |
---|
749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
750 | ac_cv_env_host_alias_value=$host_alias |
---|
751 | ac_env_target_alias_set=${target_alias+set} |
---|
752 | ac_env_target_alias_value=$target_alias |
---|
753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
754 | ac_cv_env_target_alias_value=$target_alias |
---|
755 | ac_env_CXX_set=${CXX+set} |
---|
756 | ac_env_CXX_value=$CXX |
---|
757 | ac_cv_env_CXX_set=${CXX+set} |
---|
758 | ac_cv_env_CXX_value=$CXX |
---|
759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
771 | ac_env_CC_set=${CC+set} |
---|
772 | ac_env_CC_value=$CC |
---|
773 | ac_cv_env_CC_set=${CC+set} |
---|
774 | ac_cv_env_CC_value=$CC |
---|
775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
776 | ac_env_CFLAGS_value=$CFLAGS |
---|
777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
779 | ac_env_CPP_set=${CPP+set} |
---|
780 | ac_env_CPP_value=$CPP |
---|
781 | ac_cv_env_CPP_set=${CPP+set} |
---|
782 | ac_cv_env_CPP_value=$CPP |
---|
783 | |
---|
784 | # |
---|
785 | # Report the --help message. |
---|
786 | # |
---|
787 | if test "$ac_init_help" = "long"; then |
---|
788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
790 | cat <<_ACEOF |
---|
791 | \`configure' configures ifplugd 0.23 to adapt to many kinds of systems. |
---|
792 | |
---|
793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
794 | |
---|
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
797 | |
---|
798 | Defaults for the options are specified in brackets. |
---|
799 | |
---|
800 | Configuration: |
---|
801 | -h, --help display this help and exit |
---|
802 | --help=short display options specific to this package |
---|
803 | --help=recursive display the short help of all the included packages |
---|
804 | -V, --version display version information and exit |
---|
805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
808 | -n, --no-create do not create output files |
---|
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
810 | |
---|
811 | _ACEOF |
---|
812 | |
---|
813 | cat <<_ACEOF |
---|
814 | Installation directories: |
---|
815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
816 | [$ac_default_prefix] |
---|
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
818 | [PREFIX] |
---|
819 | |
---|
820 | By default, \`make install' will install all the files in |
---|
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
823 | for instance \`--prefix=\$HOME'. |
---|
824 | |
---|
825 | For better control, use the options below. |
---|
826 | |
---|
827 | Fine tuning of the installation directories: |
---|
828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
836 | --includedir=DIR C header files [PREFIX/include] |
---|
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
838 | --infodir=DIR info documentation [PREFIX/info] |
---|
839 | --mandir=DIR man documentation [PREFIX/man] |
---|
840 | _ACEOF |
---|
841 | |
---|
842 | cat <<\_ACEOF |
---|
843 | |
---|
844 | Program names: |
---|
845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
848 | _ACEOF |
---|
849 | fi |
---|
850 | |
---|
851 | if test -n "$ac_init_help"; then |
---|
852 | case $ac_init_help in |
---|
853 | short | recursive ) echo "Configuration of ifplugd 0.23:";; |
---|
854 | esac |
---|
855 | cat <<\_ACEOF |
---|
856 | |
---|
857 | Optional Features: |
---|
858 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
859 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
860 | --disable-dependency-tracking Speeds up one-time builds |
---|
861 | --enable-dependency-tracking Do not reject slow dependency extractors |
---|
862 | --disable-lynx Turn off lynx usage for documentation generation |
---|
863 | --disable-xmltoman Disable rebuilding of man pages with xmltoman |
---|
864 | --disable-subversion Disable rebuilding of svn-release.h |
---|
865 | |
---|
866 | Optional Packages: |
---|
867 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
868 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
869 | --with-initdir=DIR Install init script in DIR (system dependent |
---|
870 | default) |
---|
871 | |
---|
872 | Some influential environment variables: |
---|
873 | CXX C++ compiler command |
---|
874 | CXXFLAGS C++ compiler flags |
---|
875 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
876 | nonstandard directory <lib dir> |
---|
877 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
878 | headers in a nonstandard directory <include dir> |
---|
879 | CC C compiler command |
---|
880 | CFLAGS C compiler flags |
---|
881 | CPP C preprocessor |
---|
882 | |
---|
883 | Use these variables to override the choices made by `configure' or to help |
---|
884 | it to find libraries and programs with nonstandard names/locations. |
---|
885 | |
---|
886 | Report bugs to <mzvscyhtq (at) 0pointer (dot) de>. |
---|
887 | _ACEOF |
---|
888 | fi |
---|
889 | |
---|
890 | if test "$ac_init_help" = "recursive"; then |
---|
891 | # If there are subdirs, report their specific --help. |
---|
892 | ac_popdir=`pwd` |
---|
893 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
894 | test -d $ac_dir || continue |
---|
895 | ac_builddir=. |
---|
896 | |
---|
897 | if test "$ac_dir" != .; then |
---|
898 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
899 | # A "../" for each directory in $ac_dir_suffix. |
---|
900 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
901 | else |
---|
902 | ac_dir_suffix= ac_top_builddir= |
---|
903 | fi |
---|
904 | |
---|
905 | case $srcdir in |
---|
906 | .) # No --srcdir option. We are building in place. |
---|
907 | ac_srcdir=. |
---|
908 | if test -z "$ac_top_builddir"; then |
---|
909 | ac_top_srcdir=. |
---|
910 | else |
---|
911 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
912 | fi ;; |
---|
913 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
914 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
915 | ac_top_srcdir=$srcdir ;; |
---|
916 | *) # Relative path. |
---|
917 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
918 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
919 | esac |
---|
920 | |
---|
921 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
922 | # the directories may not exist. |
---|
923 | case `pwd` in |
---|
924 | .) ac_abs_builddir="$ac_dir";; |
---|
925 | *) |
---|
926 | case "$ac_dir" in |
---|
927 | .) ac_abs_builddir=`pwd`;; |
---|
928 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
929 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
930 | esac;; |
---|
931 | esac |
---|
932 | case $ac_abs_builddir in |
---|
933 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
934 | *) |
---|
935 | case ${ac_top_builddir}. in |
---|
936 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
937 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
938 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
939 | esac;; |
---|
940 | esac |
---|
941 | case $ac_abs_builddir in |
---|
942 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
943 | *) |
---|
944 | case $ac_srcdir in |
---|
945 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
946 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
947 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
948 | esac;; |
---|
949 | esac |
---|
950 | case $ac_abs_builddir in |
---|
951 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
952 | *) |
---|
953 | case $ac_top_srcdir in |
---|
954 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
955 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
956 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
957 | esac;; |
---|
958 | esac |
---|
959 | |
---|
960 | cd $ac_dir |
---|
961 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
962 | if test -f $ac_srcdir/configure.gnu; then |
---|
963 | echo |
---|
964 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
965 | elif test -f $ac_srcdir/configure; then |
---|
966 | echo |
---|
967 | $SHELL $ac_srcdir/configure --help=recursive |
---|
968 | elif test -f $ac_srcdir/configure.ac || |
---|
969 | test -f $ac_srcdir/configure.in; then |
---|
970 | echo |
---|
971 | $ac_configure --help |
---|
972 | else |
---|
973 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
974 | fi |
---|
975 | cd "$ac_popdir" |
---|
976 | done |
---|
977 | fi |
---|
978 | |
---|
979 | test -n "$ac_init_help" && exit 0 |
---|
980 | if $ac_init_version; then |
---|
981 | cat <<\_ACEOF |
---|
982 | ifplugd configure 0.23 |
---|
983 | generated by GNU Autoconf 2.59 |
---|
984 | |
---|
985 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
986 | This configure script is free software; the Free Software Foundation |
---|
987 | gives unlimited permission to copy, distribute and modify it. |
---|
988 | _ACEOF |
---|
989 | exit 0 |
---|
990 | fi |
---|
991 | exec 5>config.log |
---|
992 | cat >&5 <<_ACEOF |
---|
993 | This file contains any messages produced by compilers while |
---|
994 | running configure, to aid debugging if configure makes a mistake. |
---|
995 | |
---|
996 | It was created by ifplugd $as_me 0.23, which was |
---|
997 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
998 | |
---|
999 | $ $0 $@ |
---|
1000 | |
---|
1001 | _ACEOF |
---|
1002 | { |
---|
1003 | cat <<_ASUNAME |
---|
1004 | ## --------- ## |
---|
1005 | ## Platform. ## |
---|
1006 | ## --------- ## |
---|
1007 | |
---|
1008 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1009 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1010 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1011 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1012 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1013 | |
---|
1014 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1015 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1016 | |
---|
1017 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1018 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1019 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1020 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1021 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1022 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1023 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1024 | |
---|
1025 | _ASUNAME |
---|
1026 | |
---|
1027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1028 | for as_dir in $PATH |
---|
1029 | do |
---|
1030 | IFS=$as_save_IFS |
---|
1031 | test -z "$as_dir" && as_dir=. |
---|
1032 | echo "PATH: $as_dir" |
---|
1033 | done |
---|
1034 | |
---|
1035 | } >&5 |
---|
1036 | |
---|
1037 | cat >&5 <<_ACEOF |
---|
1038 | |
---|
1039 | |
---|
1040 | ## ----------- ## |
---|
1041 | ## Core tests. ## |
---|
1042 | ## ----------- ## |
---|
1043 | |
---|
1044 | _ACEOF |
---|
1045 | |
---|
1046 | |
---|
1047 | # Keep a trace of the command line. |
---|
1048 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1049 | # Strip out --silent because we don't want to record it for future runs. |
---|
1050 | # Also quote any args containing shell meta-characters. |
---|
1051 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1052 | ac_configure_args= |
---|
1053 | ac_configure_args0= |
---|
1054 | ac_configure_args1= |
---|
1055 | ac_sep= |
---|
1056 | ac_must_keep_next=false |
---|
1057 | for ac_pass in 1 2 |
---|
1058 | do |
---|
1059 | for ac_arg |
---|
1060 | do |
---|
1061 | case $ac_arg in |
---|
1062 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1064 | | -silent | --silent | --silen | --sile | --sil) |
---|
1065 | continue ;; |
---|
1066 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1067 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1068 | esac |
---|
1069 | case $ac_pass in |
---|
1070 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1071 | 2) |
---|
1072 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1073 | if test $ac_must_keep_next = true; then |
---|
1074 | ac_must_keep_next=false # Got value, back to normal. |
---|
1075 | else |
---|
1076 | case $ac_arg in |
---|
1077 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1078 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1079 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1080 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1081 | case "$ac_configure_args0 " in |
---|
1082 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1083 | esac |
---|
1084 | ;; |
---|
1085 | -* ) ac_must_keep_next=true ;; |
---|
1086 | esac |
---|
1087 | fi |
---|
1088 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1089 | # Get rid of the leading space. |
---|
1090 | ac_sep=" " |
---|
1091 | ;; |
---|
1092 | esac |
---|
1093 | done |
---|
1094 | done |
---|
1095 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1096 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1097 | |
---|
1098 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1099 | # config.log. We remove comments because anyway the quotes in there |
---|
1100 | # would cause problems or look ugly. |
---|
1101 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1102 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1103 | trap 'exit_status=$? |
---|
1104 | # Save into config.log some information that might help in debugging. |
---|
1105 | { |
---|
1106 | echo |
---|
1107 | |
---|
1108 | cat <<\_ASBOX |
---|
1109 | ## ---------------- ## |
---|
1110 | ## Cache variables. ## |
---|
1111 | ## ---------------- ## |
---|
1112 | _ASBOX |
---|
1113 | echo |
---|
1114 | # The following way of writing the cache mishandles newlines in values, |
---|
1115 | { |
---|
1116 | (set) 2>&1 | |
---|
1117 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1118 | *ac_space=\ *) |
---|
1119 | sed -n \ |
---|
1120 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1122 | ;; |
---|
1123 | *) |
---|
1124 | sed -n \ |
---|
1125 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1126 | ;; |
---|
1127 | esac; |
---|
1128 | } |
---|
1129 | echo |
---|
1130 | |
---|
1131 | cat <<\_ASBOX |
---|
1132 | ## ----------------- ## |
---|
1133 | ## Output variables. ## |
---|
1134 | ## ----------------- ## |
---|
1135 | _ASBOX |
---|
1136 | echo |
---|
1137 | for ac_var in $ac_subst_vars |
---|
1138 | do |
---|
1139 | eval ac_val=$`echo $ac_var` |
---|
1140 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1141 | done | sort |
---|
1142 | echo |
---|
1143 | |
---|
1144 | if test -n "$ac_subst_files"; then |
---|
1145 | cat <<\_ASBOX |
---|
1146 | ## ------------- ## |
---|
1147 | ## Output files. ## |
---|
1148 | ## ------------- ## |
---|
1149 | _ASBOX |
---|
1150 | echo |
---|
1151 | for ac_var in $ac_subst_files |
---|
1152 | do |
---|
1153 | eval ac_val=$`echo $ac_var` |
---|
1154 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1155 | done | sort |
---|
1156 | echo |
---|
1157 | fi |
---|
1158 | |
---|
1159 | if test -s confdefs.h; then |
---|
1160 | cat <<\_ASBOX |
---|
1161 | ## ----------- ## |
---|
1162 | ## confdefs.h. ## |
---|
1163 | ## ----------- ## |
---|
1164 | _ASBOX |
---|
1165 | echo |
---|
1166 | sed "/^$/d" confdefs.h | sort |
---|
1167 | echo |
---|
1168 | fi |
---|
1169 | test "$ac_signal" != 0 && |
---|
1170 | echo "$as_me: caught signal $ac_signal" |
---|
1171 | echo "$as_me: exit $exit_status" |
---|
1172 | } >&5 |
---|
1173 | rm -f core *.core && |
---|
1174 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1175 | exit $exit_status |
---|
1176 | ' 0 |
---|
1177 | for ac_signal in 1 2 13 15; do |
---|
1178 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1179 | done |
---|
1180 | ac_signal=0 |
---|
1181 | |
---|
1182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1183 | rm -rf conftest* confdefs.h |
---|
1184 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1185 | echo >confdefs.h |
---|
1186 | |
---|
1187 | # Predefined preprocessor variables. |
---|
1188 | |
---|
1189 | cat >>confdefs.h <<_ACEOF |
---|
1190 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1191 | _ACEOF |
---|
1192 | |
---|
1193 | |
---|
1194 | cat >>confdefs.h <<_ACEOF |
---|
1195 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1196 | _ACEOF |
---|
1197 | |
---|
1198 | |
---|
1199 | cat >>confdefs.h <<_ACEOF |
---|
1200 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1201 | _ACEOF |
---|
1202 | |
---|
1203 | |
---|
1204 | cat >>confdefs.h <<_ACEOF |
---|
1205 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1206 | _ACEOF |
---|
1207 | |
---|
1208 | |
---|
1209 | cat >>confdefs.h <<_ACEOF |
---|
1210 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1211 | _ACEOF |
---|
1212 | |
---|
1213 | |
---|
1214 | # Let the site file select an alternate cache file if it wants to. |
---|
1215 | # Prefer explicitly selected file to automatically selected ones. |
---|
1216 | if test -z "$CONFIG_SITE"; then |
---|
1217 | if test "x$prefix" != xNONE; then |
---|
1218 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1219 | else |
---|
1220 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1221 | fi |
---|
1222 | fi |
---|
1223 | for ac_site_file in $CONFIG_SITE; do |
---|
1224 | if test -r "$ac_site_file"; then |
---|
1225 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1226 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1227 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1228 | . "$ac_site_file" |
---|
1229 | fi |
---|
1230 | done |
---|
1231 | |
---|
1232 | if test -r "$cache_file"; then |
---|
1233 | # Some versions of bash will fail to source /dev/null (special |
---|
1234 | # files actually), so we avoid doing that. |
---|
1235 | if test -f "$cache_file"; then |
---|
1236 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1237 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1238 | case $cache_file in |
---|
1239 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1240 | *) . ./$cache_file;; |
---|
1241 | esac |
---|
1242 | fi |
---|
1243 | else |
---|
1244 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1245 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1246 | >$cache_file |
---|
1247 | fi |
---|
1248 | |
---|
1249 | # Check that the precious variables saved in the cache have kept the same |
---|
1250 | # value. |
---|
1251 | ac_cache_corrupted=false |
---|
1252 | for ac_var in `(set) 2>&1 | |
---|
1253 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1254 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1255 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1256 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1257 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1258 | case $ac_old_set,$ac_new_set in |
---|
1259 | set,) |
---|
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1261 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1262 | ac_cache_corrupted=: ;; |
---|
1263 | ,set) |
---|
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1265 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1266 | ac_cache_corrupted=: ;; |
---|
1267 | ,);; |
---|
1268 | *) |
---|
1269 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1270 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1271 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1272 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1273 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1274 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1275 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1276 | ac_cache_corrupted=: |
---|
1277 | fi;; |
---|
1278 | esac |
---|
1279 | # Pass precious variables to config.status. |
---|
1280 | if test "$ac_new_set" = set; then |
---|
1281 | case $ac_new_val in |
---|
1282 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1283 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1284 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1285 | esac |
---|
1286 | case " $ac_configure_args " in |
---|
1287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1288 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1289 | esac |
---|
1290 | fi |
---|
1291 | done |
---|
1292 | if $ac_cache_corrupted; then |
---|
1293 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1294 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1295 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1296 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1297 | { (exit 1); exit 1; }; } |
---|
1298 | fi |
---|
1299 | |
---|
1300 | ac_ext=c |
---|
1301 | ac_cpp='$CPP $CPPFLAGS' |
---|
1302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1305 | |
---|
1306 | |
---|
1307 | |
---|
1308 | |
---|
1309 | |
---|
1310 | |
---|
1311 | |
---|
1312 | |
---|
1313 | |
---|
1314 | |
---|
1315 | |
---|
1316 | |
---|
1317 | |
---|
1318 | |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | |
---|
1324 | |
---|
1325 | |
---|
1326 | |
---|
1327 | |
---|
1328 | |
---|
1329 | |
---|
1330 | |
---|
1331 | |
---|
1332 | |
---|
1333 | ac_config_headers="$ac_config_headers config.h" |
---|
1334 | |
---|
1335 | am__api_version="1.7" |
---|
1336 | ac_aux_dir= |
---|
1337 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1338 | if test -f $ac_dir/install-sh; then |
---|
1339 | ac_aux_dir=$ac_dir |
---|
1340 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1341 | break |
---|
1342 | elif test -f $ac_dir/install.sh; then |
---|
1343 | ac_aux_dir=$ac_dir |
---|
1344 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1345 | break |
---|
1346 | elif test -f $ac_dir/shtool; then |
---|
1347 | ac_aux_dir=$ac_dir |
---|
1348 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1349 | break |
---|
1350 | fi |
---|
1351 | done |
---|
1352 | if test -z "$ac_aux_dir"; then |
---|
1353 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1354 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1355 | { (exit 1); exit 1; }; } |
---|
1356 | fi |
---|
1357 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1358 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1359 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1360 | |
---|
1361 | # Find a good install program. We prefer a C program (faster), |
---|
1362 | # so one script is as good as another. But avoid the broken or |
---|
1363 | # incompatible versions: |
---|
1364 | # SysV /etc/install, /usr/sbin/install |
---|
1365 | # SunOS /usr/etc/install |
---|
1366 | # IRIX /sbin/install |
---|
1367 | # AIX /bin/install |
---|
1368 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1369 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1370 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1371 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1372 | # OS/2's system install, which has a completely different semantic |
---|
1373 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1374 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1375 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1376 | if test -z "$INSTALL"; then |
---|
1377 | if test "${ac_cv_path_install+set}" = set; then |
---|
1378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1379 | else |
---|
1380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1381 | for as_dir in $PATH |
---|
1382 | do |
---|
1383 | IFS=$as_save_IFS |
---|
1384 | test -z "$as_dir" && as_dir=. |
---|
1385 | # Account for people who put trailing slashes in PATH elements. |
---|
1386 | case $as_dir/ in |
---|
1387 | ./ | .// | /cC/* | \ |
---|
1388 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1389 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1390 | /usr/ucb/* ) ;; |
---|
1391 | *) |
---|
1392 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1393 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1394 | # by default. |
---|
1395 | for ac_prog in ginstall scoinst install; do |
---|
1396 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1397 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1398 | if test $ac_prog = install && |
---|
1399 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1400 | # AIX install. It has an incompatible calling convention. |
---|
1401 | : |
---|
1402 | elif test $ac_prog = install && |
---|
1403 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1404 | # program-specific install script used by HP pwplus--don't use. |
---|
1405 | : |
---|
1406 | else |
---|
1407 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1408 | break 3 |
---|
1409 | fi |
---|
1410 | fi |
---|
1411 | done |
---|
1412 | done |
---|
1413 | ;; |
---|
1414 | esac |
---|
1415 | done |
---|
1416 | |
---|
1417 | |
---|
1418 | fi |
---|
1419 | if test "${ac_cv_path_install+set}" = set; then |
---|
1420 | INSTALL=$ac_cv_path_install |
---|
1421 | else |
---|
1422 | # As a last resort, use the slow shell script. We don't cache a |
---|
1423 | # path for INSTALL within a source directory, because that will |
---|
1424 | # break other packages using the cache if that directory is |
---|
1425 | # removed, or if the path is relative. |
---|
1426 | INSTALL=$ac_install_sh |
---|
1427 | fi |
---|
1428 | fi |
---|
1429 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1430 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1431 | |
---|
1432 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1433 | # It thinks the first close brace ends the variable substitution. |
---|
1434 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1435 | |
---|
1436 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1437 | |
---|
1438 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1439 | |
---|
1440 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1441 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1442 | # Just in case |
---|
1443 | sleep 1 |
---|
1444 | echo timestamp > conftest.file |
---|
1445 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1446 | # arguments. Must try -L first in case configure is actually a |
---|
1447 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1448 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1449 | # directory). |
---|
1450 | if ( |
---|
1451 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1452 | if test "$*" = "X"; then |
---|
1453 | # -L didn't work. |
---|
1454 | set X `ls -t $srcdir/configure conftest.file` |
---|
1455 | fi |
---|
1456 | rm -f conftest.file |
---|
1457 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1458 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1459 | |
---|
1460 | # If neither matched, then we have a broken ls. This can happen |
---|
1461 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1462 | # broken ls alias from the environment. This has actually |
---|
1463 | # happened. Such a system could not be considered "sane". |
---|
1464 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1465 | alias in your environment" >&5 |
---|
1466 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1467 | alias in your environment" >&2;} |
---|
1468 | { (exit 1); exit 1; }; } |
---|
1469 | fi |
---|
1470 | |
---|
1471 | test "$2" = conftest.file |
---|
1472 | ) |
---|
1473 | then |
---|
1474 | # Ok. |
---|
1475 | : |
---|
1476 | else |
---|
1477 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1478 | Check your system clock" >&5 |
---|
1479 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1480 | Check your system clock" >&2;} |
---|
1481 | { (exit 1); exit 1; }; } |
---|
1482 | fi |
---|
1483 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1484 | echo "${ECHO_T}yes" >&6 |
---|
1485 | test "$program_prefix" != NONE && |
---|
1486 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1487 | # Use a double $ so make ignores it. |
---|
1488 | test "$program_suffix" != NONE && |
---|
1489 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1490 | # Double any \ or $. echo might interpret backslashes. |
---|
1491 | # By default was `s,x,x', remove it if useless. |
---|
1492 | cat <<\_ACEOF >conftest.sed |
---|
1493 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1494 | _ACEOF |
---|
1495 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1496 | rm conftest.sed |
---|
1497 | |
---|
1498 | |
---|
1499 | # expand $ac_aux_dir to an absolute path |
---|
1500 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1501 | |
---|
1502 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1503 | # Use eval to expand $SHELL |
---|
1504 | if eval "$MISSING --run true"; then |
---|
1505 | am_missing_run="$MISSING --run " |
---|
1506 | else |
---|
1507 | am_missing_run= |
---|
1508 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1509 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1510 | fi |
---|
1511 | |
---|
1512 | for ac_prog in gawk mawk nawk awk |
---|
1513 | do |
---|
1514 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1515 | set dummy $ac_prog; ac_word=$2 |
---|
1516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1518 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1520 | else |
---|
1521 | if test -n "$AWK"; then |
---|
1522 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1523 | else |
---|
1524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1525 | for as_dir in $PATH |
---|
1526 | do |
---|
1527 | IFS=$as_save_IFS |
---|
1528 | test -z "$as_dir" && as_dir=. |
---|
1529 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1530 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1531 | ac_cv_prog_AWK="$ac_prog" |
---|
1532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1533 | break 2 |
---|
1534 | fi |
---|
1535 | done |
---|
1536 | done |
---|
1537 | |
---|
1538 | fi |
---|
1539 | fi |
---|
1540 | AWK=$ac_cv_prog_AWK |
---|
1541 | if test -n "$AWK"; then |
---|
1542 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1543 | echo "${ECHO_T}$AWK" >&6 |
---|
1544 | else |
---|
1545 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1546 | echo "${ECHO_T}no" >&6 |
---|
1547 | fi |
---|
1548 | |
---|
1549 | test -n "$AWK" && break |
---|
1550 | done |
---|
1551 | |
---|
1552 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1553 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1554 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1555 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1557 | else |
---|
1558 | cat >conftest.make <<\_ACEOF |
---|
1559 | all: |
---|
1560 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1561 | _ACEOF |
---|
1562 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1563 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1564 | if test -n "$ac_maketemp"; then |
---|
1565 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1566 | else |
---|
1567 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1568 | fi |
---|
1569 | rm -f conftest.make |
---|
1570 | fi |
---|
1571 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1572 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1573 | echo "${ECHO_T}yes" >&6 |
---|
1574 | SET_MAKE= |
---|
1575 | else |
---|
1576 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1577 | echo "${ECHO_T}no" >&6 |
---|
1578 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1579 | fi |
---|
1580 | |
---|
1581 | rm -rf .tst 2>/dev/null |
---|
1582 | mkdir .tst 2>/dev/null |
---|
1583 | if test -d .tst; then |
---|
1584 | am__leading_dot=. |
---|
1585 | else |
---|
1586 | am__leading_dot=_ |
---|
1587 | fi |
---|
1588 | rmdir .tst 2>/dev/null |
---|
1589 | |
---|
1590 | # test to see if srcdir already configured |
---|
1591 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1592 | test -f $srcdir/config.status; then |
---|
1593 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1594 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1595 | { (exit 1); exit 1; }; } |
---|
1596 | fi |
---|
1597 | |
---|
1598 | # test whether we have cygpath |
---|
1599 | if test -z "$CYGPATH_W"; then |
---|
1600 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1601 | CYGPATH_W='cygpath -w' |
---|
1602 | else |
---|
1603 | CYGPATH_W=echo |
---|
1604 | fi |
---|
1605 | fi |
---|
1606 | |
---|
1607 | |
---|
1608 | # Define the identity of the package. |
---|
1609 | PACKAGE='ifplugd' |
---|
1610 | VERSION='0.23' |
---|
1611 | |
---|
1612 | |
---|
1613 | cat >>confdefs.h <<_ACEOF |
---|
1614 | #define PACKAGE "$PACKAGE" |
---|
1615 | _ACEOF |
---|
1616 | |
---|
1617 | |
---|
1618 | cat >>confdefs.h <<_ACEOF |
---|
1619 | #define VERSION "$VERSION" |
---|
1620 | _ACEOF |
---|
1621 | |
---|
1622 | # Some tools Automake needs. |
---|
1623 | |
---|
1624 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1625 | |
---|
1626 | |
---|
1627 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1628 | |
---|
1629 | |
---|
1630 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1631 | |
---|
1632 | |
---|
1633 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1634 | |
---|
1635 | |
---|
1636 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1637 | |
---|
1638 | |
---|
1639 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1640 | |
---|
1641 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1642 | |
---|
1643 | # Installed binaries are usually stripped using `strip' when the user |
---|
1644 | # run `make install-strip'. However `strip' might not be the right |
---|
1645 | # tool to use in cross-compilation environments, therefore Automake |
---|
1646 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1647 | if test "$cross_compiling" != no; then |
---|
1648 | if test -n "$ac_tool_prefix"; then |
---|
1649 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1650 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1653 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1655 | else |
---|
1656 | if test -n "$STRIP"; then |
---|
1657 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1658 | else |
---|
1659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1660 | for as_dir in $PATH |
---|
1661 | do |
---|
1662 | IFS=$as_save_IFS |
---|
1663 | test -z "$as_dir" && as_dir=. |
---|
1664 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1666 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1668 | break 2 |
---|
1669 | fi |
---|
1670 | done |
---|
1671 | done |
---|
1672 | |
---|
1673 | fi |
---|
1674 | fi |
---|
1675 | STRIP=$ac_cv_prog_STRIP |
---|
1676 | if test -n "$STRIP"; then |
---|
1677 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1678 | echo "${ECHO_T}$STRIP" >&6 |
---|
1679 | else |
---|
1680 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1681 | echo "${ECHO_T}no" >&6 |
---|
1682 | fi |
---|
1683 | |
---|
1684 | fi |
---|
1685 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1686 | ac_ct_STRIP=$STRIP |
---|
1687 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1688 | set dummy strip; ac_word=$2 |
---|
1689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1691 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1693 | else |
---|
1694 | if test -n "$ac_ct_STRIP"; then |
---|
1695 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1696 | else |
---|
1697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1698 | for as_dir in $PATH |
---|
1699 | do |
---|
1700 | IFS=$as_save_IFS |
---|
1701 | test -z "$as_dir" && as_dir=. |
---|
1702 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1703 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1704 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1706 | break 2 |
---|
1707 | fi |
---|
1708 | done |
---|
1709 | done |
---|
1710 | |
---|
1711 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1712 | fi |
---|
1713 | fi |
---|
1714 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1715 | if test -n "$ac_ct_STRIP"; then |
---|
1716 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1717 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1718 | else |
---|
1719 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1720 | echo "${ECHO_T}no" >&6 |
---|
1721 | fi |
---|
1722 | |
---|
1723 | STRIP=$ac_ct_STRIP |
---|
1724 | else |
---|
1725 | STRIP="$ac_cv_prog_STRIP" |
---|
1726 | fi |
---|
1727 | |
---|
1728 | fi |
---|
1729 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1730 | |
---|
1731 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1732 | # some platforms. |
---|
1733 | |
---|
1734 | |
---|
1735 | |
---|
1736 | |
---|
1737 | PACKAGE_URL=http://0pointer.de/lennart/projects/ifplugd/ |
---|
1738 | |
---|
1739 | |
---|
1740 | if type -p stow > /dev/null && test -d /usr/local/stow ; then |
---|
1741 | { echo "$as_me:$LINENO: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5 |
---|
1742 | echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;} |
---|
1743 | ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" |
---|
1744 | fi |
---|
1745 | |
---|
1746 | # Checks for programs. |
---|
1747 | ac_ext=cc |
---|
1748 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1749 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1750 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1751 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1752 | if test -n "$ac_tool_prefix"; then |
---|
1753 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1754 | do |
---|
1755 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1756 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1757 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1758 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1759 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1761 | else |
---|
1762 | if test -n "$CXX"; then |
---|
1763 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1764 | else |
---|
1765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1766 | for as_dir in $PATH |
---|
1767 | do |
---|
1768 | IFS=$as_save_IFS |
---|
1769 | test -z "$as_dir" && as_dir=. |
---|
1770 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1772 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1773 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1774 | break 2 |
---|
1775 | fi |
---|
1776 | done |
---|
1777 | done |
---|
1778 | |
---|
1779 | fi |
---|
1780 | fi |
---|
1781 | CXX=$ac_cv_prog_CXX |
---|
1782 | if test -n "$CXX"; then |
---|
1783 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1784 | echo "${ECHO_T}$CXX" >&6 |
---|
1785 | else |
---|
1786 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1787 | echo "${ECHO_T}no" >&6 |
---|
1788 | fi |
---|
1789 | |
---|
1790 | test -n "$CXX" && break |
---|
1791 | done |
---|
1792 | fi |
---|
1793 | if test -z "$CXX"; then |
---|
1794 | ac_ct_CXX=$CXX |
---|
1795 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1796 | do |
---|
1797 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1798 | set dummy $ac_prog; ac_word=$2 |
---|
1799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1801 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1803 | else |
---|
1804 | if test -n "$ac_ct_CXX"; then |
---|
1805 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1806 | else |
---|
1807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1808 | for as_dir in $PATH |
---|
1809 | do |
---|
1810 | IFS=$as_save_IFS |
---|
1811 | test -z "$as_dir" && as_dir=. |
---|
1812 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1814 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1816 | break 2 |
---|
1817 | fi |
---|
1818 | done |
---|
1819 | done |
---|
1820 | |
---|
1821 | fi |
---|
1822 | fi |
---|
1823 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1824 | if test -n "$ac_ct_CXX"; then |
---|
1825 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1826 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1827 | else |
---|
1828 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1829 | echo "${ECHO_T}no" >&6 |
---|
1830 | fi |
---|
1831 | |
---|
1832 | test -n "$ac_ct_CXX" && break |
---|
1833 | done |
---|
1834 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1835 | |
---|
1836 | CXX=$ac_ct_CXX |
---|
1837 | fi |
---|
1838 | |
---|
1839 | |
---|
1840 | # Provide some information about the compiler. |
---|
1841 | echo "$as_me:$LINENO:" \ |
---|
1842 | "checking for C++ compiler version" >&5 |
---|
1843 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1844 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1845 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1846 | ac_status=$? |
---|
1847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1848 | (exit $ac_status); } |
---|
1849 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1850 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1851 | ac_status=$? |
---|
1852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1853 | (exit $ac_status); } |
---|
1854 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1855 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1856 | ac_status=$? |
---|
1857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1858 | (exit $ac_status); } |
---|
1859 | |
---|
1860 | cat >conftest.$ac_ext <<_ACEOF |
---|
1861 | /* confdefs.h. */ |
---|
1862 | _ACEOF |
---|
1863 | cat confdefs.h >>conftest.$ac_ext |
---|
1864 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1865 | /* end confdefs.h. */ |
---|
1866 | |
---|
1867 | int |
---|
1868 | main () |
---|
1869 | { |
---|
1870 | |
---|
1871 | ; |
---|
1872 | return 0; |
---|
1873 | } |
---|
1874 | _ACEOF |
---|
1875 | ac_clean_files_save=$ac_clean_files |
---|
1876 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1877 | # Try to create an executable without -o first, disregard a.out. |
---|
1878 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1879 | # of exeext. |
---|
1880 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1881 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1882 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1883 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1884 | (eval $ac_link_default) 2>&5 |
---|
1885 | ac_status=$? |
---|
1886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1887 | (exit $ac_status); }; then |
---|
1888 | # Find the output, starting from the most likely. This scheme is |
---|
1889 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1890 | # resort. |
---|
1891 | |
---|
1892 | # Be careful to initialize this variable, since it used to be cached. |
---|
1893 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1894 | ac_cv_exeext= |
---|
1895 | # b.out is created by i960 compilers. |
---|
1896 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1897 | do |
---|
1898 | test -f "$ac_file" || continue |
---|
1899 | case $ac_file in |
---|
1900 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1901 | ;; |
---|
1902 | conftest.$ac_ext ) |
---|
1903 | # This is the source file. |
---|
1904 | ;; |
---|
1905 | [ab].out ) |
---|
1906 | # We found the default executable, but exeext='' is most |
---|
1907 | # certainly right. |
---|
1908 | break;; |
---|
1909 | *.* ) |
---|
1910 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1911 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
1912 | # but it would be cool to find out if it's true. Does anybody |
---|
1913 | # maintain Libtool? --akim. |
---|
1914 | export ac_cv_exeext |
---|
1915 | break;; |
---|
1916 | * ) |
---|
1917 | break;; |
---|
1918 | esac |
---|
1919 | done |
---|
1920 | else |
---|
1921 | echo "$as_me: failed program was:" >&5 |
---|
1922 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1923 | |
---|
1924 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
1925 | See \`config.log' for more details." >&5 |
---|
1926 | echo "$as_me: error: C++ compiler cannot create executables |
---|
1927 | See \`config.log' for more details." >&2;} |
---|
1928 | { (exit 77); exit 77; }; } |
---|
1929 | fi |
---|
1930 | |
---|
1931 | ac_exeext=$ac_cv_exeext |
---|
1932 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1933 | echo "${ECHO_T}$ac_file" >&6 |
---|
1934 | |
---|
1935 | # Check the compiler produces executables we can run. If not, either |
---|
1936 | # the compiler is broken, or we cross compile. |
---|
1937 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
1938 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
1939 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1940 | # If not cross compiling, check that we can run a simple program. |
---|
1941 | if test "$cross_compiling" != yes; then |
---|
1942 | if { ac_try='./$ac_file' |
---|
1943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1944 | (eval $ac_try) 2>&5 |
---|
1945 | ac_status=$? |
---|
1946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1947 | (exit $ac_status); }; }; then |
---|
1948 | cross_compiling=no |
---|
1949 | else |
---|
1950 | if test "$cross_compiling" = maybe; then |
---|
1951 | cross_compiling=yes |
---|
1952 | else |
---|
1953 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
1954 | If you meant to cross compile, use \`--host'. |
---|
1955 | See \`config.log' for more details." >&5 |
---|
1956 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
1957 | If you meant to cross compile, use \`--host'. |
---|
1958 | See \`config.log' for more details." >&2;} |
---|
1959 | { (exit 1); exit 1; }; } |
---|
1960 | fi |
---|
1961 | fi |
---|
1962 | fi |
---|
1963 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1964 | echo "${ECHO_T}yes" >&6 |
---|
1965 | |
---|
1966 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
1967 | ac_clean_files=$ac_clean_files_save |
---|
1968 | # Check the compiler produces executables we can run. If not, either |
---|
1969 | # the compiler is broken, or we cross compile. |
---|
1970 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
1971 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
1972 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
1973 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
1974 | |
---|
1975 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
1976 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
1977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
1978 | (eval $ac_link) 2>&5 |
---|
1979 | ac_status=$? |
---|
1980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1981 | (exit $ac_status); }; then |
---|
1982 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
1983 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
1984 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
1985 | # `rm'. |
---|
1986 | for ac_file in conftest.exe conftest conftest.*; do |
---|
1987 | test -f "$ac_file" || continue |
---|
1988 | case $ac_file in |
---|
1989 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
1990 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1991 | export ac_cv_exeext |
---|
1992 | break;; |
---|
1993 | * ) break;; |
---|
1994 | esac |
---|
1995 | done |
---|
1996 | else |
---|
1997 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
1998 | See \`config.log' for more details." >&5 |
---|
1999 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2000 | See \`config.log' for more details." >&2;} |
---|
2001 | { (exit 1); exit 1; }; } |
---|
2002 | fi |
---|
2003 | |
---|
2004 | rm -f conftest$ac_cv_exeext |
---|
2005 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2006 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2007 | |
---|
2008 | rm -f conftest.$ac_ext |
---|
2009 | EXEEXT=$ac_cv_exeext |
---|
2010 | ac_exeext=$EXEEXT |
---|
2011 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2012 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2013 | if test "${ac_cv_objext+set}" = set; then |
---|
2014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2015 | else |
---|
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 | |
---|
2023 | int |
---|
2024 | main () |
---|
2025 | { |
---|
2026 | |
---|
2027 | ; |
---|
2028 | return 0; |
---|
2029 | } |
---|
2030 | _ACEOF |
---|
2031 | rm -f conftest.o conftest.obj |
---|
2032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2033 | (eval $ac_compile) 2>&5 |
---|
2034 | ac_status=$? |
---|
2035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2036 | (exit $ac_status); }; then |
---|
2037 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2038 | case $ac_file in |
---|
2039 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2040 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2041 | break;; |
---|
2042 | esac |
---|
2043 | done |
---|
2044 | else |
---|
2045 | echo "$as_me: failed program was:" >&5 |
---|
2046 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2047 | |
---|
2048 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2049 | See \`config.log' for more details." >&5 |
---|
2050 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2051 | See \`config.log' for more details." >&2;} |
---|
2052 | { (exit 1); exit 1; }; } |
---|
2053 | fi |
---|
2054 | |
---|
2055 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2056 | fi |
---|
2057 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2058 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2059 | OBJEXT=$ac_cv_objext |
---|
2060 | ac_objext=$OBJEXT |
---|
2061 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2062 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2063 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2065 | else |
---|
2066 | cat >conftest.$ac_ext <<_ACEOF |
---|
2067 | /* confdefs.h. */ |
---|
2068 | _ACEOF |
---|
2069 | cat confdefs.h >>conftest.$ac_ext |
---|
2070 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2071 | /* end confdefs.h. */ |
---|
2072 | |
---|
2073 | int |
---|
2074 | main () |
---|
2075 | { |
---|
2076 | #ifndef __GNUC__ |
---|
2077 | choke me |
---|
2078 | #endif |
---|
2079 | |
---|
2080 | ; |
---|
2081 | return 0; |
---|
2082 | } |
---|
2083 | _ACEOF |
---|
2084 | rm -f conftest.$ac_objext |
---|
2085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2086 | (eval $ac_compile) 2>conftest.er1 |
---|
2087 | ac_status=$? |
---|
2088 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2089 | rm -f conftest.er1 |
---|
2090 | cat conftest.err >&5 |
---|
2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2092 | (exit $ac_status); } && |
---|
2093 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2095 | (eval $ac_try) 2>&5 |
---|
2096 | ac_status=$? |
---|
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2098 | (exit $ac_status); }; } && |
---|
2099 | { ac_try='test -s conftest.$ac_objext' |
---|
2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2101 | (eval $ac_try) 2>&5 |
---|
2102 | ac_status=$? |
---|
2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2104 | (exit $ac_status); }; }; then |
---|
2105 | ac_compiler_gnu=yes |
---|
2106 | else |
---|
2107 | echo "$as_me: failed program was:" >&5 |
---|
2108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2109 | |
---|
2110 | ac_compiler_gnu=no |
---|
2111 | fi |
---|
2112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2113 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2114 | |
---|
2115 | fi |
---|
2116 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2117 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2118 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2119 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2120 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2121 | CXXFLAGS="-g" |
---|
2122 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2123 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2124 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2126 | else |
---|
2127 | cat >conftest.$ac_ext <<_ACEOF |
---|
2128 | /* confdefs.h. */ |
---|
2129 | _ACEOF |
---|
2130 | cat confdefs.h >>conftest.$ac_ext |
---|
2131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2132 | /* end confdefs.h. */ |
---|
2133 | |
---|
2134 | int |
---|
2135 | main () |
---|
2136 | { |
---|
2137 | |
---|
2138 | ; |
---|
2139 | return 0; |
---|
2140 | } |
---|
2141 | _ACEOF |
---|
2142 | rm -f conftest.$ac_objext |
---|
2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2144 | (eval $ac_compile) 2>conftest.er1 |
---|
2145 | ac_status=$? |
---|
2146 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2147 | rm -f conftest.er1 |
---|
2148 | cat conftest.err >&5 |
---|
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2150 | (exit $ac_status); } && |
---|
2151 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
2152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2153 | (eval $ac_try) 2>&5 |
---|
2154 | ac_status=$? |
---|
2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2156 | (exit $ac_status); }; } && |
---|
2157 | { ac_try='test -s conftest.$ac_objext' |
---|
2158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2159 | (eval $ac_try) 2>&5 |
---|
2160 | ac_status=$? |
---|
2161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2162 | (exit $ac_status); }; }; then |
---|
2163 | ac_cv_prog_cxx_g=yes |
---|
2164 | else |
---|
2165 | echo "$as_me: failed program was:" >&5 |
---|
2166 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2167 | |
---|
2168 | ac_cv_prog_cxx_g=no |
---|
2169 | fi |
---|
2170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2171 | fi |
---|
2172 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2173 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2174 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2175 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2176 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2177 | if test "$GXX" = yes; then |
---|
2178 | CXXFLAGS="-g -O2" |
---|
2179 | else |
---|
2180 | CXXFLAGS="-g" |
---|
2181 | fi |
---|
2182 | else |
---|
2183 | if test "$GXX" = yes; then |
---|
2184 | CXXFLAGS="-O2" |
---|
2185 | else |
---|
2186 | CXXFLAGS= |
---|
2187 | fi |
---|
2188 | fi |
---|
2189 | for ac_declaration in \ |
---|
2190 | '' \ |
---|
2191 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2192 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2193 | 'extern "C" void exit (int) throw ();' \ |
---|
2194 | 'extern "C" void exit (int);' \ |
---|
2195 | 'void exit (int);' |
---|
2196 | do |
---|
2197 | cat >conftest.$ac_ext <<_ACEOF |
---|
2198 | /* confdefs.h. */ |
---|
2199 | _ACEOF |
---|
2200 | cat confdefs.h >>conftest.$ac_ext |
---|
2201 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2202 | /* end confdefs.h. */ |
---|
2203 | $ac_declaration |
---|
2204 | #include <stdlib.h> |
---|
2205 | int |
---|
2206 | main () |
---|
2207 | { |
---|
2208 | exit (42); |
---|
2209 | ; |
---|
2210 | return 0; |
---|
2211 | } |
---|
2212 | _ACEOF |
---|
2213 | rm -f conftest.$ac_objext |
---|
2214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2215 | (eval $ac_compile) 2>conftest.er1 |
---|
2216 | ac_status=$? |
---|
2217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2218 | rm -f conftest.er1 |
---|
2219 | cat conftest.err >&5 |
---|
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2221 | (exit $ac_status); } && |
---|
2222 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
2223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2224 | (eval $ac_try) 2>&5 |
---|
2225 | ac_status=$? |
---|
2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2227 | (exit $ac_status); }; } && |
---|
2228 | { ac_try='test -s conftest.$ac_objext' |
---|
2229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2230 | (eval $ac_try) 2>&5 |
---|
2231 | ac_status=$? |
---|
2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2233 | (exit $ac_status); }; }; then |
---|
2234 | : |
---|
2235 | else |
---|
2236 | echo "$as_me: failed program was:" >&5 |
---|
2237 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2238 | |
---|
2239 | continue |
---|
2240 | fi |
---|
2241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2242 | cat >conftest.$ac_ext <<_ACEOF |
---|
2243 | /* confdefs.h. */ |
---|
2244 | _ACEOF |
---|
2245 | cat confdefs.h >>conftest.$ac_ext |
---|
2246 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2247 | /* end confdefs.h. */ |
---|
2248 | $ac_declaration |
---|
2249 | int |
---|
2250 | main () |
---|
2251 | { |
---|
2252 | exit (42); |
---|
2253 | ; |
---|
2254 | return 0; |
---|
2255 | } |
---|
2256 | _ACEOF |
---|
2257 | rm -f conftest.$ac_objext |
---|
2258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2259 | (eval $ac_compile) 2>conftest.er1 |
---|
2260 | ac_status=$? |
---|
2261 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2262 | rm -f conftest.er1 |
---|
2263 | cat conftest.err >&5 |
---|
2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2265 | (exit $ac_status); } && |
---|
2266 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2268 | (eval $ac_try) 2>&5 |
---|
2269 | ac_status=$? |
---|
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2271 | (exit $ac_status); }; } && |
---|
2272 | { ac_try='test -s conftest.$ac_objext' |
---|
2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2274 | (eval $ac_try) 2>&5 |
---|
2275 | ac_status=$? |
---|
2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2277 | (exit $ac_status); }; }; then |
---|
2278 | break |
---|
2279 | else |
---|
2280 | echo "$as_me: failed program was:" >&5 |
---|
2281 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2282 | |
---|
2283 | fi |
---|
2284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2285 | done |
---|
2286 | rm -f conftest* |
---|
2287 | if test -n "$ac_declaration"; then |
---|
2288 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2289 | echo $ac_declaration >>confdefs.h |
---|
2290 | echo '#endif' >>confdefs.h |
---|
2291 | fi |
---|
2292 | |
---|
2293 | ac_ext=c |
---|
2294 | ac_cpp='$CPP $CPPFLAGS' |
---|
2295 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2296 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2297 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2298 | DEPDIR="${am__leading_dot}deps" |
---|
2299 | |
---|
2300 | ac_config_commands="$ac_config_commands depfiles" |
---|
2301 | |
---|
2302 | |
---|
2303 | am_make=${MAKE-make} |
---|
2304 | cat > confinc << 'END' |
---|
2305 | am__doit: |
---|
2306 | @echo done |
---|
2307 | .PHONY: am__doit |
---|
2308 | END |
---|
2309 | # If we don't find an include directive, just comment out the code. |
---|
2310 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2311 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2312 | am__include="#" |
---|
2313 | am__quote= |
---|
2314 | _am_result=none |
---|
2315 | # First try GNU make style include. |
---|
2316 | echo "include confinc" > confmf |
---|
2317 | # We grep out `Entering directory' and `Leaving directory' |
---|
2318 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2319 | # In particular we don't look at `^make:' because GNU make might |
---|
2320 | # be invoked under some other name (usually "gmake"), in which |
---|
2321 | # case it prints its new name instead of `make'. |
---|
2322 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2323 | am__include=include |
---|
2324 | am__quote= |
---|
2325 | _am_result=GNU |
---|
2326 | fi |
---|
2327 | # Now try BSD make style include. |
---|
2328 | if test "$am__include" = "#"; then |
---|
2329 | echo '.include "confinc"' > confmf |
---|
2330 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2331 | am__include=.include |
---|
2332 | am__quote="\"" |
---|
2333 | _am_result=BSD |
---|
2334 | fi |
---|
2335 | fi |
---|
2336 | |
---|
2337 | |
---|
2338 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2339 | echo "${ECHO_T}$_am_result" >&6 |
---|
2340 | rm -f confinc confmf |
---|
2341 | |
---|
2342 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2343 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2344 | enableval="$enable_dependency_tracking" |
---|
2345 | |
---|
2346 | fi; |
---|
2347 | if test "x$enable_dependency_tracking" != xno; then |
---|
2348 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2349 | AMDEPBACKSLASH='\' |
---|
2350 | fi |
---|
2351 | |
---|
2352 | |
---|
2353 | if test "x$enable_dependency_tracking" != xno; then |
---|
2354 | AMDEP_TRUE= |
---|
2355 | AMDEP_FALSE='#' |
---|
2356 | else |
---|
2357 | AMDEP_TRUE='#' |
---|
2358 | AMDEP_FALSE= |
---|
2359 | fi |
---|
2360 | |
---|
2361 | |
---|
2362 | |
---|
2363 | |
---|
2364 | depcc="$CXX" am_compiler_list= |
---|
2365 | |
---|
2366 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2367 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2368 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2370 | else |
---|
2371 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2372 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2373 | # making bogus files that we don't know about and never remove. For |
---|
2374 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2375 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2376 | # in D'. |
---|
2377 | mkdir conftest.dir |
---|
2378 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2379 | # using a relative directory. |
---|
2380 | cp "$am_depcomp" conftest.dir |
---|
2381 | cd conftest.dir |
---|
2382 | # We will build objects and dependencies in a subdirectory because |
---|
2383 | # it helps to detect inapplicable dependency modes. For instance |
---|
2384 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2385 | # side effect of compilation, but ICC will put the dependencies in |
---|
2386 | # the current directory while Tru64 will put them in the object |
---|
2387 | # directory. |
---|
2388 | mkdir sub |
---|
2389 | |
---|
2390 | am_cv_CXX_dependencies_compiler_type=none |
---|
2391 | if test "$am_compiler_list" = ""; then |
---|
2392 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2393 | fi |
---|
2394 | for depmode in $am_compiler_list; do |
---|
2395 | # Setup a source with many dependencies, because some compilers |
---|
2396 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2397 | # we should not choose a depcomp mode which is confused by this. |
---|
2398 | # |
---|
2399 | # We need to recreate these files for each test, as the compiler may |
---|
2400 | # overwrite some of them when testing with obscure command lines. |
---|
2401 | # This happens at least with the AIX C compiler. |
---|
2402 | : > sub/conftest.c |
---|
2403 | for i in 1 2 3 4 5 6; do |
---|
2404 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2405 | : > sub/conftst$i.h |
---|
2406 | done |
---|
2407 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2408 | |
---|
2409 | case $depmode in |
---|
2410 | nosideeffect) |
---|
2411 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2412 | # only be used when explicitly requested |
---|
2413 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2414 | continue |
---|
2415 | else |
---|
2416 | break |
---|
2417 | fi |
---|
2418 | ;; |
---|
2419 | none) break ;; |
---|
2420 | esac |
---|
2421 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2422 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2423 | # handle `-M -o', and we need to detect this. |
---|
2424 | if depmode=$depmode \ |
---|
2425 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2426 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2427 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2428 | >/dev/null 2>conftest.err && |
---|
2429 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2430 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2431 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2432 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2433 | # (even with -Werror). So we grep stderr for any message |
---|
2434 | # that says an option was ignored. |
---|
2435 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
2436 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2437 | break |
---|
2438 | fi |
---|
2439 | fi |
---|
2440 | done |
---|
2441 | |
---|
2442 | cd .. |
---|
2443 | rm -rf conftest.dir |
---|
2444 | else |
---|
2445 | am_cv_CXX_dependencies_compiler_type=none |
---|
2446 | fi |
---|
2447 | |
---|
2448 | fi |
---|
2449 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2450 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2451 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2452 | |
---|
2453 | |
---|
2454 | |
---|
2455 | if |
---|
2456 | test "x$enable_dependency_tracking" != xno \ |
---|
2457 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2458 | am__fastdepCXX_TRUE= |
---|
2459 | am__fastdepCXX_FALSE='#' |
---|
2460 | else |
---|
2461 | am__fastdepCXX_TRUE='#' |
---|
2462 | am__fastdepCXX_FALSE= |
---|
2463 | fi |
---|
2464 | |
---|
2465 | |
---|
2466 | ac_ext=c |
---|
2467 | ac_cpp='$CPP $CPPFLAGS' |
---|
2468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2471 | if test -n "$ac_tool_prefix"; then |
---|
2472 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2473 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2474 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2476 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2478 | else |
---|
2479 | if test -n "$CC"; then |
---|
2480 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2481 | else |
---|
2482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2483 | for as_dir in $PATH |
---|
2484 | do |
---|
2485 | IFS=$as_save_IFS |
---|
2486 | test -z "$as_dir" && as_dir=. |
---|
2487 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2488 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2489 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2491 | break 2 |
---|
2492 | fi |
---|
2493 | done |
---|
2494 | done |
---|
2495 | |
---|
2496 | fi |
---|
2497 | fi |
---|
2498 | CC=$ac_cv_prog_CC |
---|
2499 | if test -n "$CC"; then |
---|
2500 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2501 | echo "${ECHO_T}$CC" >&6 |
---|
2502 | else |
---|
2503 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2504 | echo "${ECHO_T}no" >&6 |
---|
2505 | fi |
---|
2506 | |
---|
2507 | fi |
---|
2508 | if test -z "$ac_cv_prog_CC"; then |
---|
2509 | ac_ct_CC=$CC |
---|
2510 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2511 | set dummy gcc; ac_word=$2 |
---|
2512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2514 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2516 | else |
---|
2517 | if test -n "$ac_ct_CC"; then |
---|
2518 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2519 | else |
---|
2520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2521 | for as_dir in $PATH |
---|
2522 | do |
---|
2523 | IFS=$as_save_IFS |
---|
2524 | test -z "$as_dir" && as_dir=. |
---|
2525 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2526 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2527 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2529 | break 2 |
---|
2530 | fi |
---|
2531 | done |
---|
2532 | done |
---|
2533 | |
---|
2534 | fi |
---|
2535 | fi |
---|
2536 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2537 | if test -n "$ac_ct_CC"; then |
---|
2538 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2539 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2540 | else |
---|
2541 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2542 | echo "${ECHO_T}no" >&6 |
---|
2543 | fi |
---|
2544 | |
---|
2545 | CC=$ac_ct_CC |
---|
2546 | else |
---|
2547 | CC="$ac_cv_prog_CC" |
---|
2548 | fi |
---|
2549 | |
---|
2550 | if test -z "$CC"; then |
---|
2551 | if test -n "$ac_tool_prefix"; then |
---|
2552 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2553 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2554 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2556 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2558 | else |
---|
2559 | if test -n "$CC"; then |
---|
2560 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2561 | else |
---|
2562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2563 | for as_dir in $PATH |
---|
2564 | do |
---|
2565 | IFS=$as_save_IFS |
---|
2566 | test -z "$as_dir" && as_dir=. |
---|
2567 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2568 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2569 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2571 | break 2 |
---|
2572 | fi |
---|
2573 | done |
---|
2574 | done |
---|
2575 | |
---|
2576 | fi |
---|
2577 | fi |
---|
2578 | CC=$ac_cv_prog_CC |
---|
2579 | if test -n "$CC"; then |
---|
2580 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2581 | echo "${ECHO_T}$CC" >&6 |
---|
2582 | else |
---|
2583 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2584 | echo "${ECHO_T}no" >&6 |
---|
2585 | fi |
---|
2586 | |
---|
2587 | fi |
---|
2588 | if test -z "$ac_cv_prog_CC"; then |
---|
2589 | ac_ct_CC=$CC |
---|
2590 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2591 | set dummy cc; ac_word=$2 |
---|
2592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2594 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2596 | else |
---|
2597 | if test -n "$ac_ct_CC"; then |
---|
2598 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2599 | else |
---|
2600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2601 | for as_dir in $PATH |
---|
2602 | do |
---|
2603 | IFS=$as_save_IFS |
---|
2604 | test -z "$as_dir" && as_dir=. |
---|
2605 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2606 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2607 | ac_cv_prog_ac_ct_CC="cc" |
---|
2608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2609 | break 2 |
---|
2610 | fi |
---|
2611 | done |
---|
2612 | done |
---|
2613 | |
---|
2614 | fi |
---|
2615 | fi |
---|
2616 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2617 | if test -n "$ac_ct_CC"; then |
---|
2618 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2619 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2620 | else |
---|
2621 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2622 | echo "${ECHO_T}no" >&6 |
---|
2623 | fi |
---|
2624 | |
---|
2625 | CC=$ac_ct_CC |
---|
2626 | else |
---|
2627 | CC="$ac_cv_prog_CC" |
---|
2628 | fi |
---|
2629 | |
---|
2630 | fi |
---|
2631 | if test -z "$CC"; then |
---|
2632 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2633 | set dummy cc; ac_word=$2 |
---|
2634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2636 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2638 | else |
---|
2639 | if test -n "$CC"; then |
---|
2640 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2641 | else |
---|
2642 | ac_prog_rejected=no |
---|
2643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2644 | for as_dir in $PATH |
---|
2645 | do |
---|
2646 | IFS=$as_save_IFS |
---|
2647 | test -z "$as_dir" && as_dir=. |
---|
2648 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2649 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2650 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2651 | ac_prog_rejected=yes |
---|
2652 | continue |
---|
2653 | fi |
---|
2654 | ac_cv_prog_CC="cc" |
---|
2655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2656 | break 2 |
---|
2657 | fi |
---|
2658 | done |
---|
2659 | done |
---|
2660 | |
---|
2661 | if test $ac_prog_rejected = yes; then |
---|
2662 | # We found a bogon in the path, so make sure we never use it. |
---|
2663 | set dummy $ac_cv_prog_CC |
---|
2664 | shift |
---|
2665 | if test $# != 0; then |
---|
2666 | # We chose a different compiler from the bogus one. |
---|
2667 | # However, it has the same basename, so the bogon will be chosen |
---|
2668 | # first if we set CC to just the basename; use the full file name. |
---|
2669 | shift |
---|
2670 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2671 | fi |
---|
2672 | fi |
---|
2673 | fi |
---|
2674 | fi |
---|
2675 | CC=$ac_cv_prog_CC |
---|
2676 | if test -n "$CC"; then |
---|
2677 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2678 | echo "${ECHO_T}$CC" >&6 |
---|
2679 | else |
---|
2680 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2681 | echo "${ECHO_T}no" >&6 |
---|
2682 | fi |
---|
2683 | |
---|
2684 | fi |
---|
2685 | if test -z "$CC"; then |
---|
2686 | if test -n "$ac_tool_prefix"; then |
---|
2687 | for ac_prog in cl |
---|
2688 | do |
---|
2689 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2690 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2693 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2695 | else |
---|
2696 | if test -n "$CC"; then |
---|
2697 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2698 | else |
---|
2699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2700 | for as_dir in $PATH |
---|
2701 | do |
---|
2702 | IFS=$as_save_IFS |
---|
2703 | test -z "$as_dir" && as_dir=. |
---|
2704 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2705 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2706 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2708 | break 2 |
---|
2709 | fi |
---|
2710 | done |
---|
2711 | done |
---|
2712 | |
---|
2713 | fi |
---|
2714 | fi |
---|
2715 | CC=$ac_cv_prog_CC |
---|
2716 | if test -n "$CC"; then |
---|
2717 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2718 | echo "${ECHO_T}$CC" >&6 |
---|
2719 | else |
---|
2720 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2721 | echo "${ECHO_T}no" >&6 |
---|
2722 | fi |
---|
2723 | |
---|
2724 | test -n "$CC" && break |
---|
2725 | done |
---|
2726 | fi |
---|
2727 | if test -z "$CC"; then |
---|
2728 | ac_ct_CC=$CC |
---|
2729 | for ac_prog in cl |
---|
2730 | do |
---|
2731 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2732 | set dummy $ac_prog; ac_word=$2 |
---|
2733 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2735 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2737 | else |
---|
2738 | if test -n "$ac_ct_CC"; then |
---|
2739 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2740 | else |
---|
2741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2742 | for as_dir in $PATH |
---|
2743 | do |
---|
2744 | IFS=$as_save_IFS |
---|
2745 | test -z "$as_dir" && as_dir=. |
---|
2746 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2747 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2748 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2749 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2750 | break 2 |
---|
2751 | fi |
---|
2752 | done |
---|
2753 | done |
---|
2754 | |
---|
2755 | fi |
---|
2756 | fi |
---|
2757 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2758 | if test -n "$ac_ct_CC"; then |
---|
2759 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2760 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2761 | else |
---|
2762 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2763 | echo "${ECHO_T}no" >&6 |
---|
2764 | fi |
---|
2765 | |
---|
2766 | test -n "$ac_ct_CC" && break |
---|
2767 | done |
---|
2768 | |
---|
2769 | CC=$ac_ct_CC |
---|
2770 | fi |
---|
2771 | |
---|
2772 | fi |
---|
2773 | |
---|
2774 | |
---|
2775 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2776 | See \`config.log' for more details." >&5 |
---|
2777 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2778 | See \`config.log' for more details." >&2;} |
---|
2779 | { (exit 1); exit 1; }; } |
---|
2780 | |
---|
2781 | # Provide some information about the compiler. |
---|
2782 | echo "$as_me:$LINENO:" \ |
---|
2783 | "checking for C compiler version" >&5 |
---|
2784 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2785 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2786 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2787 | ac_status=$? |
---|
2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2789 | (exit $ac_status); } |
---|
2790 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2791 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2792 | ac_status=$? |
---|
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2794 | (exit $ac_status); } |
---|
2795 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2796 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2797 | ac_status=$? |
---|
2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2799 | (exit $ac_status); } |
---|
2800 | |
---|
2801 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2802 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2803 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2805 | else |
---|
2806 | cat >conftest.$ac_ext <<_ACEOF |
---|
2807 | /* confdefs.h. */ |
---|
2808 | _ACEOF |
---|
2809 | cat confdefs.h >>conftest.$ac_ext |
---|
2810 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2811 | /* end confdefs.h. */ |
---|
2812 | |
---|
2813 | int |
---|
2814 | main () |
---|
2815 | { |
---|
2816 | #ifndef __GNUC__ |
---|
2817 | choke me |
---|
2818 | #endif |
---|
2819 | |
---|
2820 | ; |
---|
2821 | return 0; |
---|
2822 | } |
---|
2823 | _ACEOF |
---|
2824 | rm -f conftest.$ac_objext |
---|
2825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2826 | (eval $ac_compile) 2>conftest.er1 |
---|
2827 | ac_status=$? |
---|
2828 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2829 | rm -f conftest.er1 |
---|
2830 | cat conftest.err >&5 |
---|
2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2832 | (exit $ac_status); } && |
---|
2833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2835 | (eval $ac_try) 2>&5 |
---|
2836 | ac_status=$? |
---|
2837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2838 | (exit $ac_status); }; } && |
---|
2839 | { ac_try='test -s conftest.$ac_objext' |
---|
2840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2841 | (eval $ac_try) 2>&5 |
---|
2842 | ac_status=$? |
---|
2843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2844 | (exit $ac_status); }; }; then |
---|
2845 | ac_compiler_gnu=yes |
---|
2846 | else |
---|
2847 | echo "$as_me: failed program was:" >&5 |
---|
2848 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2849 | |
---|
2850 | ac_compiler_gnu=no |
---|
2851 | fi |
---|
2852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2853 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2854 | |
---|
2855 | fi |
---|
2856 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2857 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2858 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2859 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2860 | ac_save_CFLAGS=$CFLAGS |
---|
2861 | CFLAGS="-g" |
---|
2862 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2863 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2864 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2866 | else |
---|
2867 | cat >conftest.$ac_ext <<_ACEOF |
---|
2868 | /* confdefs.h. */ |
---|
2869 | _ACEOF |
---|
2870 | cat confdefs.h >>conftest.$ac_ext |
---|
2871 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2872 | /* end confdefs.h. */ |
---|
2873 | |
---|
2874 | int |
---|
2875 | main () |
---|
2876 | { |
---|
2877 | |
---|
2878 | ; |
---|
2879 | return 0; |
---|
2880 | } |
---|
2881 | _ACEOF |
---|
2882 | rm -f conftest.$ac_objext |
---|
2883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2884 | (eval $ac_compile) 2>conftest.er1 |
---|
2885 | ac_status=$? |
---|
2886 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2887 | rm -f conftest.er1 |
---|
2888 | cat conftest.err >&5 |
---|
2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2890 | (exit $ac_status); } && |
---|
2891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2893 | (eval $ac_try) 2>&5 |
---|
2894 | ac_status=$? |
---|
2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2896 | (exit $ac_status); }; } && |
---|
2897 | { ac_try='test -s conftest.$ac_objext' |
---|
2898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2899 | (eval $ac_try) 2>&5 |
---|
2900 | ac_status=$? |
---|
2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2902 | (exit $ac_status); }; }; then |
---|
2903 | ac_cv_prog_cc_g=yes |
---|
2904 | else |
---|
2905 | echo "$as_me: failed program was:" >&5 |
---|
2906 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2907 | |
---|
2908 | ac_cv_prog_cc_g=no |
---|
2909 | fi |
---|
2910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2911 | fi |
---|
2912 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2913 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2914 | if test "$ac_test_CFLAGS" = set; then |
---|
2915 | CFLAGS=$ac_save_CFLAGS |
---|
2916 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2917 | if test "$GCC" = yes; then |
---|
2918 | CFLAGS="-g -O2" |
---|
2919 | else |
---|
2920 | CFLAGS="-g" |
---|
2921 | fi |
---|
2922 | else |
---|
2923 | if test "$GCC" = yes; then |
---|
2924 | CFLAGS="-O2" |
---|
2925 | else |
---|
2926 | CFLAGS= |
---|
2927 | fi |
---|
2928 | fi |
---|
2929 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2930 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2931 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2933 | else |
---|
2934 | ac_cv_prog_cc_stdc=no |
---|
2935 | ac_save_CC=$CC |
---|
2936 | cat >conftest.$ac_ext <<_ACEOF |
---|
2937 | /* confdefs.h. */ |
---|
2938 | _ACEOF |
---|
2939 | cat confdefs.h >>conftest.$ac_ext |
---|
2940 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2941 | /* end confdefs.h. */ |
---|
2942 | #include <stdarg.h> |
---|
2943 | #include <stdio.h> |
---|
2944 | #include <sys/types.h> |
---|
2945 | #include <sys/stat.h> |
---|
2946 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2947 | struct buf { int x; }; |
---|
2948 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2949 | static char *e (p, i) |
---|
2950 | char **p; |
---|
2951 | int i; |
---|
2952 | { |
---|
2953 | return p[i]; |
---|
2954 | } |
---|
2955 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2956 | { |
---|
2957 | char *s; |
---|
2958 | va_list v; |
---|
2959 | va_start (v,p); |
---|
2960 | s = g (p, va_arg (v,int)); |
---|
2961 | va_end (v); |
---|
2962 | return s; |
---|
2963 | } |
---|
2964 | |
---|
2965 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2966 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2967 | These don't provoke an error unfortunately, instead are silently treated |
---|
2968 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2969 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2970 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2971 | that's true only with -std1. */ |
---|
2972 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2973 | |
---|
2974 | int test (int i, double x); |
---|
2975 | struct s1 {int (*f) (int a);}; |
---|
2976 | struct s2 {int (*f) (double a);}; |
---|
2977 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2978 | int argc; |
---|
2979 | char **argv; |
---|
2980 | int |
---|
2981 | main () |
---|
2982 | { |
---|
2983 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2984 | ; |
---|
2985 | return 0; |
---|
2986 | } |
---|
2987 | _ACEOF |
---|
2988 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2989 | # breaks some systems' header files. |
---|
2990 | # AIX -qlanglvl=ansi |
---|
2991 | # Ultrix and OSF/1 -std1 |
---|
2992 | # HP-UX 10.20 and later -Ae |
---|
2993 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2994 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2995 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2996 | do |
---|
2997 | CC="$ac_save_CC $ac_arg" |
---|
2998 | rm -f conftest.$ac_objext |
---|
2999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3000 | (eval $ac_compile) 2>conftest.er1 |
---|
3001 | ac_status=$? |
---|
3002 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3003 | rm -f conftest.er1 |
---|
3004 | cat conftest.err >&5 |
---|
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3006 | (exit $ac_status); } && |
---|
3007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
3008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3009 | (eval $ac_try) 2>&5 |
---|
3010 | ac_status=$? |
---|
3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3012 | (exit $ac_status); }; } && |
---|
3013 | { ac_try='test -s conftest.$ac_objext' |
---|
3014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3015 | (eval $ac_try) 2>&5 |
---|
3016 | ac_status=$? |
---|
3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3018 | (exit $ac_status); }; }; then |
---|
3019 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3020 | break |
---|
3021 | else |
---|
3022 | echo "$as_me: failed program was:" >&5 |
---|
3023 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3024 | |
---|
3025 | fi |
---|
3026 | rm -f conftest.err conftest.$ac_objext |
---|
3027 | done |
---|
3028 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3029 | CC=$ac_save_CC |
---|
3030 | |
---|
3031 | fi |
---|
3032 | |
---|
3033 | case "x$ac_cv_prog_cc_stdc" in |
---|
3034 | x|xno) |
---|
3035 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3036 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3037 | *) |
---|
3038 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3039 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3040 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3041 | esac |
---|
3042 | |
---|
3043 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3044 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3045 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3046 | # the declaration of exit, since it's the most demanding environment. |
---|
3047 | cat >conftest.$ac_ext <<_ACEOF |
---|
3048 | #ifndef __cplusplus |
---|
3049 | choke me |
---|
3050 | #endif |
---|
3051 | _ACEOF |
---|
3052 | rm -f conftest.$ac_objext |
---|
3053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3054 | (eval $ac_compile) 2>conftest.er1 |
---|
3055 | ac_status=$? |
---|
3056 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3057 | rm -f conftest.er1 |
---|
3058 | cat conftest.err >&5 |
---|
3059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3060 | (exit $ac_status); } && |
---|
3061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
3062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3063 | (eval $ac_try) 2>&5 |
---|
3064 | ac_status=$? |
---|
3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3066 | (exit $ac_status); }; } && |
---|
3067 | { ac_try='test -s conftest.$ac_objext' |
---|
3068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3069 | (eval $ac_try) 2>&5 |
---|
3070 | ac_status=$? |
---|
3071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3072 | (exit $ac_status); }; }; then |
---|
3073 | for ac_declaration in \ |
---|
3074 | '' \ |
---|
3075 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3076 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3077 | 'extern "C" void exit (int) throw ();' \ |
---|
3078 | 'extern "C" void exit (int);' \ |
---|
3079 | 'void exit (int);' |
---|
3080 | do |
---|
3081 | cat >conftest.$ac_ext <<_ACEOF |
---|
3082 | /* confdefs.h. */ |
---|
3083 | _ACEOF |
---|
3084 | cat confdefs.h >>conftest.$ac_ext |
---|
3085 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3086 | /* end confdefs.h. */ |
---|
3087 | $ac_declaration |
---|
3088 | #include <stdlib.h> |
---|
3089 | int |
---|
3090 | main () |
---|
3091 | { |
---|
3092 | exit (42); |
---|
3093 | ; |
---|
3094 | return 0; |
---|
3095 | } |
---|
3096 | _ACEOF |
---|
3097 | rm -f conftest.$ac_objext |
---|
3098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3099 | (eval $ac_compile) 2>conftest.er1 |
---|
3100 | ac_status=$? |
---|
3101 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3102 | rm -f conftest.er1 |
---|
3103 | cat conftest.err >&5 |
---|
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3105 | (exit $ac_status); } && |
---|
3106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
3107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3108 | (eval $ac_try) 2>&5 |
---|
3109 | ac_status=$? |
---|
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3111 | (exit $ac_status); }; } && |
---|
3112 | { ac_try='test -s conftest.$ac_objext' |
---|
3113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3114 | (eval $ac_try) 2>&5 |
---|
3115 | ac_status=$? |
---|
3116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3117 | (exit $ac_status); }; }; then |
---|
3118 | : |
---|
3119 | else |
---|
3120 | echo "$as_me: failed program was:" >&5 |
---|
3121 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3122 | |
---|
3123 | continue |
---|
3124 | fi |
---|
3125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3126 | cat >conftest.$ac_ext <<_ACEOF |
---|
3127 | /* confdefs.h. */ |
---|
3128 | _ACEOF |
---|
3129 | cat confdefs.h >>conftest.$ac_ext |
---|
3130 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3131 | /* end confdefs.h. */ |
---|
3132 | $ac_declaration |
---|
3133 | int |
---|
3134 | main () |
---|
3135 | { |
---|
3136 | exit (42); |
---|
3137 | ; |
---|
3138 | return 0; |
---|
3139 | } |
---|
3140 | _ACEOF |
---|
3141 | rm -f conftest.$ac_objext |
---|
3142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3143 | (eval $ac_compile) 2>conftest.er1 |
---|
3144 | ac_status=$? |
---|
3145 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3146 | rm -f conftest.er1 |
---|
3147 | cat conftest.err >&5 |
---|
3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3149 | (exit $ac_status); } && |
---|
3150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
3151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3152 | (eval $ac_try) 2>&5 |
---|
3153 | ac_status=$? |
---|
3154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3155 | (exit $ac_status); }; } && |
---|
3156 | { ac_try='test -s conftest.$ac_objext' |
---|
3157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3158 | (eval $ac_try) 2>&5 |
---|
3159 | ac_status=$? |
---|
3160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3161 | (exit $ac_status); }; }; then |
---|
3162 | break |
---|
3163 | else |
---|
3164 | echo "$as_me: failed program was:" >&5 |
---|
3165 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3166 | |
---|
3167 | fi |
---|
3168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3169 | done |
---|
3170 | rm -f conftest* |
---|
3171 | if test -n "$ac_declaration"; then |
---|
3172 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3173 | echo $ac_declaration >>confdefs.h |
---|
3174 | echo '#endif' >>confdefs.h |
---|
3175 | fi |
---|
3176 | |
---|
3177 | else |
---|
3178 | echo "$as_me: failed program was:" >&5 |
---|
3179 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3180 | |
---|
3181 | fi |
---|
3182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3183 | ac_ext=c |
---|
3184 | ac_cpp='$CPP $CPPFLAGS' |
---|
3185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3188 | |
---|
3189 | depcc="$CC" am_compiler_list= |
---|
3190 | |
---|
3191 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3192 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3193 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3195 | else |
---|
3196 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3197 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3198 | # making bogus files that we don't know about and never remove. For |
---|
3199 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3200 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3201 | # in D'. |
---|
3202 | mkdir conftest.dir |
---|
3203 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3204 | # using a relative directory. |
---|
3205 | cp "$am_depcomp" conftest.dir |
---|
3206 | cd conftest.dir |
---|
3207 | # We will build objects and dependencies in a subdirectory because |
---|
3208 | # it helps to detect inapplicable dependency modes. For instance |
---|
3209 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3210 | # side effect of compilation, but ICC will put the dependencies in |
---|
3211 | # the current directory while Tru64 will put them in the object |
---|
3212 | # directory. |
---|
3213 | mkdir sub |
---|
3214 | |
---|
3215 | am_cv_CC_dependencies_compiler_type=none |
---|
3216 | if test "$am_compiler_list" = ""; then |
---|
3217 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3218 | fi |
---|
3219 | for depmode in $am_compiler_list; do |
---|
3220 | # Setup a source with many dependencies, because some compilers |
---|
3221 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3222 | # we should not choose a depcomp mode which is confused by this. |
---|
3223 | # |
---|
3224 | # We need to recreate these files for each test, as the compiler may |
---|
3225 | # overwrite some of them when testing with obscure command lines. |
---|
3226 | # This happens at least with the AIX C compiler. |
---|
3227 | : > sub/conftest.c |
---|
3228 | for i in 1 2 3 4 5 6; do |
---|
3229 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3230 | : > sub/conftst$i.h |
---|
3231 | done |
---|
3232 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3233 | |
---|
3234 | case $depmode in |
---|
3235 | nosideeffect) |
---|
3236 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3237 | # only be used when explicitly requested |
---|
3238 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3239 | continue |
---|
3240 | else |
---|
3241 | break |
---|
3242 | fi |
---|
3243 | ;; |
---|
3244 | none) break ;; |
---|
3245 | esac |
---|
3246 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3247 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3248 | # handle `-M -o', and we need to detect this. |
---|
3249 | if depmode=$depmode \ |
---|
3250 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3251 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3252 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3253 | >/dev/null 2>conftest.err && |
---|
3254 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3255 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3256 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3257 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3258 | # (even with -Werror). So we grep stderr for any message |
---|
3259 | # that says an option was ignored. |
---|
3260 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
3261 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3262 | break |
---|
3263 | fi |
---|
3264 | fi |
---|
3265 | done |
---|
3266 | |
---|
3267 | cd .. |
---|
3268 | rm -rf conftest.dir |
---|
3269 | else |
---|
3270 | am_cv_CC_dependencies_compiler_type=none |
---|
3271 | fi |
---|
3272 | |
---|
3273 | fi |
---|
3274 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3275 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3276 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3277 | |
---|
3278 | |
---|
3279 | |
---|
3280 | if |
---|
3281 | test "x$enable_dependency_tracking" != xno \ |
---|
3282 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3283 | am__fastdepCC_TRUE= |
---|
3284 | am__fastdepCC_FALSE='#' |
---|
3285 | else |
---|
3286 | am__fastdepCC_TRUE='#' |
---|
3287 | am__fastdepCC_FALSE= |
---|
3288 | fi |
---|
3289 | |
---|
3290 | |
---|
3291 | ac_ext=c |
---|
3292 | ac_cpp='$CPP $CPPFLAGS' |
---|
3293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3296 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3297 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3298 | # On Suns, sometimes $CPP names a directory. |
---|
3299 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3300 | CPP= |
---|
3301 | fi |
---|
3302 | if test -z "$CPP"; then |
---|
3303 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3305 | else |
---|
3306 | # Double quotes because CPP needs to be expanded |
---|
3307 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3308 | do |
---|
3309 | ac_preproc_ok=false |
---|
3310 | for ac_c_preproc_warn_flag in '' yes |
---|
3311 | do |
---|
3312 | # Use a header file that comes with gcc, so configuring glibc |
---|
3313 | # with a fresh cross-compiler works. |
---|
3314 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3315 | # <limits.h> exists even on freestanding compilers. |
---|
3316 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3317 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3318 | cat >conftest.$ac_ext <<_ACEOF |
---|
3319 | /* confdefs.h. */ |
---|
3320 | _ACEOF |
---|
3321 | cat confdefs.h >>conftest.$ac_ext |
---|
3322 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3323 | /* end confdefs.h. */ |
---|
3324 | #ifdef __STDC__ |
---|
3325 | # include <limits.h> |
---|
3326 | #else |
---|
3327 | # include <assert.h> |
---|
3328 | #endif |
---|
3329 | Syntax error |
---|
3330 | _ACEOF |
---|
3331 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3332 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3333 | ac_status=$? |
---|
3334 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3335 | rm -f conftest.er1 |
---|
3336 | cat conftest.err >&5 |
---|
3337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3338 | (exit $ac_status); } >/dev/null; then |
---|
3339 | if test -s conftest.err; then |
---|
3340 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3341 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3342 | else |
---|
3343 | ac_cpp_err= |
---|
3344 | fi |
---|
3345 | else |
---|
3346 | ac_cpp_err=yes |
---|
3347 | fi |
---|
3348 | if test -z "$ac_cpp_err"; then |
---|
3349 | : |
---|
3350 | else |
---|
3351 | echo "$as_me: failed program was:" >&5 |
---|
3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3353 | |
---|
3354 | # Broken: fails on valid input. |
---|
3355 | continue |
---|
3356 | fi |
---|
3357 | rm -f conftest.err conftest.$ac_ext |
---|
3358 | |
---|
3359 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3360 | # can be detected and how. |
---|
3361 | cat >conftest.$ac_ext <<_ACEOF |
---|
3362 | /* confdefs.h. */ |
---|
3363 | _ACEOF |
---|
3364 | cat confdefs.h >>conftest.$ac_ext |
---|
3365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3366 | /* end confdefs.h. */ |
---|
3367 | #include <ac_nonexistent.h> |
---|
3368 | _ACEOF |
---|
3369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3371 | ac_status=$? |
---|
3372 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3373 | rm -f conftest.er1 |
---|
3374 | cat conftest.err >&5 |
---|
3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3376 | (exit $ac_status); } >/dev/null; then |
---|
3377 | if test -s conftest.err; then |
---|
3378 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3379 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3380 | else |
---|
3381 | ac_cpp_err= |
---|
3382 | fi |
---|
3383 | else |
---|
3384 | ac_cpp_err=yes |
---|
3385 | fi |
---|
3386 | if test -z "$ac_cpp_err"; then |
---|
3387 | # Broken: success on invalid input. |
---|
3388 | continue |
---|
3389 | else |
---|
3390 | echo "$as_me: failed program was:" >&5 |
---|
3391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3392 | |
---|
3393 | # Passes both tests. |
---|
3394 | ac_preproc_ok=: |
---|
3395 | break |
---|
3396 | fi |
---|
3397 | rm -f conftest.err conftest.$ac_ext |
---|
3398 | |
---|
3399 | done |
---|
3400 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3401 | rm -f conftest.err conftest.$ac_ext |
---|
3402 | if $ac_preproc_ok; then |
---|
3403 | break |
---|
3404 | fi |
---|
3405 | |
---|
3406 | done |
---|
3407 | ac_cv_prog_CPP=$CPP |
---|
3408 | |
---|
3409 | fi |
---|
3410 | CPP=$ac_cv_prog_CPP |
---|
3411 | else |
---|
3412 | ac_cv_prog_CPP=$CPP |
---|
3413 | fi |
---|
3414 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3415 | echo "${ECHO_T}$CPP" >&6 |
---|
3416 | ac_preproc_ok=false |
---|
3417 | for ac_c_preproc_warn_flag in '' yes |
---|
3418 | do |
---|
3419 | # Use a header file that comes with gcc, so configuring glibc |
---|
3420 | # with a fresh cross-compiler works. |
---|
3421 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3422 | # <limits.h> exists even on freestanding compilers. |
---|
3423 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3424 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3425 | cat >conftest.$ac_ext <<_ACEOF |
---|
3426 | /* confdefs.h. */ |
---|
3427 | _ACEOF |
---|
3428 | cat confdefs.h >>conftest.$ac_ext |
---|
3429 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3430 | /* end confdefs.h. */ |
---|
3431 | #ifdef __STDC__ |
---|
3432 | # include <limits.h> |
---|
3433 | #else |
---|
3434 | # include <assert.h> |
---|
3435 | #endif |
---|
3436 | Syntax error |
---|
3437 | _ACEOF |
---|
3438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3440 | ac_status=$? |
---|
3441 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3442 | rm -f conftest.er1 |
---|
3443 | cat conftest.err >&5 |
---|
3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3445 | (exit $ac_status); } >/dev/null; then |
---|
3446 | if test -s conftest.err; then |
---|
3447 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3449 | else |
---|
3450 | ac_cpp_err= |
---|
3451 | fi |
---|
3452 | else |
---|
3453 | ac_cpp_err=yes |
---|
3454 | fi |
---|
3455 | if test -z "$ac_cpp_err"; then |
---|
3456 | : |
---|
3457 | else |
---|
3458 | echo "$as_me: failed program was:" >&5 |
---|
3459 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3460 | |
---|
3461 | # Broken: fails on valid input. |
---|
3462 | continue |
---|
3463 | fi |
---|
3464 | rm -f conftest.err conftest.$ac_ext |
---|
3465 | |
---|
3466 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3467 | # can be detected and how. |
---|
3468 | cat >conftest.$ac_ext <<_ACEOF |
---|
3469 | /* confdefs.h. */ |
---|
3470 | _ACEOF |
---|
3471 | cat confdefs.h >>conftest.$ac_ext |
---|
3472 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3473 | /* end confdefs.h. */ |
---|
3474 | #include <ac_nonexistent.h> |
---|
3475 | _ACEOF |
---|
3476 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3477 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3478 | ac_status=$? |
---|
3479 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3480 | rm -f conftest.er1 |
---|
3481 | cat conftest.err >&5 |
---|
3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3483 | (exit $ac_status); } >/dev/null; then |
---|
3484 | if test -s conftest.err; then |
---|
3485 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3487 | else |
---|
3488 | ac_cpp_err= |
---|
3489 | fi |
---|
3490 | else |
---|
3491 | ac_cpp_err=yes |
---|
3492 | fi |
---|
3493 | if test -z "$ac_cpp_err"; then |
---|
3494 | # Broken: success on invalid input. |
---|
3495 | continue |
---|
3496 | else |
---|
3497 | echo "$as_me: failed program was:" >&5 |
---|
3498 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3499 | |
---|
3500 | # Passes both tests. |
---|
3501 | ac_preproc_ok=: |
---|
3502 | break |
---|
3503 | fi |
---|
3504 | rm -f conftest.err conftest.$ac_ext |
---|
3505 | |
---|
3506 | done |
---|
3507 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3508 | rm -f conftest.err conftest.$ac_ext |
---|
3509 | if $ac_preproc_ok; then |
---|
3510 | : |
---|
3511 | else |
---|
3512 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3513 | See \`config.log' for more details." >&5 |
---|
3514 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3515 | See \`config.log' for more details." >&2;} |
---|
3516 | { (exit 1); exit 1; }; } |
---|
3517 | fi |
---|
3518 | |
---|
3519 | ac_ext=c |
---|
3520 | ac_cpp='$CPP $CPPFLAGS' |
---|
3521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3524 | |
---|
3525 | # Find a good install program. We prefer a C program (faster), |
---|
3526 | # so one script is as good as another. But avoid the broken or |
---|
3527 | # incompatible versions: |
---|
3528 | # SysV /etc/install, /usr/sbin/install |
---|
3529 | # SunOS /usr/etc/install |
---|
3530 | # IRIX /sbin/install |
---|
3531 | # AIX /bin/install |
---|
3532 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3533 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3534 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3535 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3536 | # OS/2's system install, which has a completely different semantic |
---|
3537 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3538 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3539 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
3540 | if test -z "$INSTALL"; then |
---|
3541 | if test "${ac_cv_path_install+set}" = set; then |
---|
3542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3543 | else |
---|
3544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3545 | for as_dir in $PATH |
---|
3546 | do |
---|
3547 | IFS=$as_save_IFS |
---|
3548 | test -z "$as_dir" && as_dir=. |
---|
3549 | # Account for people who put trailing slashes in PATH elements. |
---|
3550 | case $as_dir/ in |
---|
3551 | ./ | .// | /cC/* | \ |
---|
3552 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3553 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
3554 | /usr/ucb/* ) ;; |
---|
3555 | *) |
---|
3556 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3557 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3558 | # by default. |
---|
3559 | for ac_prog in ginstall scoinst install; do |
---|
3560 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3561 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
3562 | if test $ac_prog = install && |
---|
3563 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3564 | # AIX install. It has an incompatible calling convention. |
---|
3565 | : |
---|
3566 | elif test $ac_prog = install && |
---|
3567 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3568 | # program-specific install script used by HP pwplus--don't use. |
---|
3569 | : |
---|
3570 | else |
---|
3571 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3572 | break 3 |
---|
3573 | fi |
---|
3574 | fi |
---|
3575 | done |
---|
3576 | done |
---|
3577 | ;; |
---|
3578 | esac |
---|
3579 | done |
---|
3580 | |
---|
3581 | |
---|
3582 | fi |
---|
3583 | if test "${ac_cv_path_install+set}" = set; then |
---|
3584 | INSTALL=$ac_cv_path_install |
---|
3585 | else |
---|
3586 | # As a last resort, use the slow shell script. We don't cache a |
---|
3587 | # path for INSTALL within a source directory, because that will |
---|
3588 | # break other packages using the cache if that directory is |
---|
3589 | # removed, or if the path is relative. |
---|
3590 | INSTALL=$ac_install_sh |
---|
3591 | fi |
---|
3592 | fi |
---|
3593 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3594 | echo "${ECHO_T}$INSTALL" >&6 |
---|
3595 | |
---|
3596 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3597 | # It thinks the first close brace ends the variable substitution. |
---|
3598 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3599 | |
---|
3600 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3601 | |
---|
3602 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3603 | |
---|
3604 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
3605 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
3606 | LN_S=$as_ln_s |
---|
3607 | if test "$LN_S" = "ln -s"; then |
---|
3608 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3609 | echo "${ECHO_T}yes" >&6 |
---|
3610 | else |
---|
3611 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
3612 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
3613 | fi |
---|
3614 | |
---|
3615 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
3616 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
3617 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
3618 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
3619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3620 | else |
---|
3621 | cat >conftest.make <<\_ACEOF |
---|
3622 | all: |
---|
3623 | @echo 'ac_maketemp="$(MAKE)"' |
---|
3624 | _ACEOF |
---|
3625 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
3626 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
3627 | if test -n "$ac_maketemp"; then |
---|
3628 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
3629 | else |
---|
3630 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
3631 | fi |
---|
3632 | rm -f conftest.make |
---|
3633 | fi |
---|
3634 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
3635 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3636 | echo "${ECHO_T}yes" >&6 |
---|
3637 | SET_MAKE= |
---|
3638 | else |
---|
3639 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3640 | echo "${ECHO_T}no" >&6 |
---|
3641 | SET_MAKE="MAKE=${MAKE-make}" |
---|
3642 | fi |
---|
3643 | |
---|
3644 | |
---|
3645 | # If using GCC specifiy some additional parameters |
---|
3646 | if test "x$GCC" = "xyes" ; then |
---|
3647 | CFLAGS="$CFLAGS -pipe -Wall" |
---|
3648 | fi |
---|
3649 | |
---|
3650 | # Checks for header files. |
---|
3651 | |
---|
3652 | |
---|
3653 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3654 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3655 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3657 | else |
---|
3658 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3659 | then ac_cv_prog_egrep='grep -E' |
---|
3660 | else ac_cv_prog_egrep='egrep' |
---|
3661 | fi |
---|
3662 | fi |
---|
3663 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3664 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3665 | EGREP=$ac_cv_prog_egrep |
---|
3666 | |
---|
3667 | |
---|
3668 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3669 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3670 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3672 | else |
---|
3673 | cat >conftest.$ac_ext <<_ACEOF |
---|
3674 | /* confdefs.h. */ |
---|
3675 | _ACEOF |
---|
3676 | cat confdefs.h >>conftest.$ac_ext |
---|
3677 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3678 | /* end confdefs.h. */ |
---|
3679 | #include <stdlib.h> |
---|
3680 | #include <stdarg.h> |
---|
3681 | #include <string.h> |
---|
3682 | #include <float.h> |
---|
3683 | |
---|
3684 | int |
---|
3685 | main () |
---|
3686 | { |
---|
3687 | |
---|
3688 | ; |
---|
3689 | return 0; |
---|
3690 | } |
---|
3691 | _ACEOF |
---|
3692 | rm -f conftest.$ac_objext |
---|
3693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3694 | (eval $ac_compile) 2>conftest.er1 |
---|
3695 | ac_status=$? |
---|
3696 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3697 | rm -f conftest.er1 |
---|
3698 | cat conftest.err >&5 |
---|
3699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3700 | (exit $ac_status); } && |
---|
3701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
3702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3703 | (eval $ac_try) 2>&5 |
---|
3704 | ac_status=$? |
---|
3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3706 | (exit $ac_status); }; } && |
---|
3707 | { ac_try='test -s conftest.$ac_objext' |
---|
3708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3709 | (eval $ac_try) 2>&5 |
---|
3710 | ac_status=$? |
---|
3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3712 | (exit $ac_status); }; }; then |
---|
3713 | ac_cv_header_stdc=yes |
---|
3714 | else |
---|
3715 | echo "$as_me: failed program was:" >&5 |
---|
3716 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3717 | |
---|
3718 | ac_cv_header_stdc=no |
---|
3719 | fi |
---|
3720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3721 | |
---|
3722 | if test $ac_cv_header_stdc = yes; then |
---|
3723 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3724 | cat >conftest.$ac_ext <<_ACEOF |
---|
3725 | /* confdefs.h. */ |
---|
3726 | _ACEOF |
---|
3727 | cat confdefs.h >>conftest.$ac_ext |
---|
3728 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3729 | /* end confdefs.h. */ |
---|
3730 | #include <string.h> |
---|
3731 | |
---|
3732 | _ACEOF |
---|
3733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3734 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3735 | : |
---|
3736 | else |
---|
3737 | ac_cv_header_stdc=no |
---|
3738 | fi |
---|
3739 | rm -f conftest* |
---|
3740 | |
---|
3741 | fi |
---|
3742 | |
---|
3743 | if test $ac_cv_header_stdc = yes; then |
---|
3744 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3745 | cat >conftest.$ac_ext <<_ACEOF |
---|
3746 | /* confdefs.h. */ |
---|
3747 | _ACEOF |
---|
3748 | cat confdefs.h >>conftest.$ac_ext |
---|
3749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3750 | /* end confdefs.h. */ |
---|
3751 | #include <stdlib.h> |
---|
3752 | |
---|
3753 | _ACEOF |
---|
3754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3755 | $EGREP "free" >/dev/null 2>&1; then |
---|
3756 | : |
---|
3757 | else |
---|
3758 | ac_cv_header_stdc=no |
---|
3759 | fi |
---|
3760 | rm -f conftest* |
---|
3761 | |
---|
3762 | fi |
---|
3763 | |
---|
3764 | if test $ac_cv_header_stdc = yes; then |
---|
3765 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3766 | if test "$cross_compiling" = yes; then |
---|
3767 | : |
---|
3768 | else |
---|
3769 | cat >conftest.$ac_ext <<_ACEOF |
---|
3770 | /* confdefs.h. */ |
---|
3771 | _ACEOF |
---|
3772 | cat confdefs.h >>conftest.$ac_ext |
---|
3773 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3774 | /* end confdefs.h. */ |
---|
3775 | #include <ctype.h> |
---|
3776 | #if ((' ' & 0x0FF) == 0x020) |
---|
3777 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3778 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3779 | #else |
---|
3780 | # define ISLOWER(c) \ |
---|
3781 | (('a' <= (c) && (c) <= 'i') \ |
---|
3782 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3783 | || ('s' <= (c) && (c) <= 'z')) |
---|
3784 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3785 | #endif |
---|
3786 | |
---|
3787 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3788 | int |
---|
3789 | main () |
---|
3790 | { |
---|
3791 | int i; |
---|
3792 | for (i = 0; i < 256; i++) |
---|
3793 | if (XOR (islower (i), ISLOWER (i)) |
---|
3794 | || toupper (i) != TOUPPER (i)) |
---|
3795 | exit(2); |
---|
3796 | exit (0); |
---|
3797 | } |
---|
3798 | _ACEOF |
---|
3799 | rm -f conftest$ac_exeext |
---|
3800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3801 | (eval $ac_link) 2>&5 |
---|
3802 | ac_status=$? |
---|
3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3806 | (eval $ac_try) 2>&5 |
---|
3807 | ac_status=$? |
---|
3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3809 | (exit $ac_status); }; }; then |
---|
3810 | : |
---|
3811 | else |
---|
3812 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3813 | echo "$as_me: failed program was:" >&5 |
---|
3814 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3815 | |
---|
3816 | ( exit $ac_status ) |
---|
3817 | ac_cv_header_stdc=no |
---|
3818 | fi |
---|
3819 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3820 | fi |
---|
3821 | fi |
---|
3822 | fi |
---|
3823 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3824 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3825 | if test $ac_cv_header_stdc = yes; then |
---|
3826 | |
---|
3827 | cat >>confdefs.h <<\_ACEOF |
---|
3828 | #define STDC_HEADERS 1 |
---|
3829 | _ACEOF |
---|
3830 | |
---|
3831 | fi |
---|
3832 | |
---|
3833 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
---|
3834 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
---|
3835 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
---|
3836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3837 | else |
---|
3838 | cat >conftest.$ac_ext <<_ACEOF |
---|
3839 | /* confdefs.h. */ |
---|
3840 | _ACEOF |
---|
3841 | cat confdefs.h >>conftest.$ac_ext |
---|
3842 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3843 | /* end confdefs.h. */ |
---|
3844 | #include <sys/types.h> |
---|
3845 | #include <sys/wait.h> |
---|
3846 | #ifndef WEXITSTATUS |
---|
3847 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
---|
3848 | #endif |
---|
3849 | #ifndef WIFEXITED |
---|
3850 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
---|
3851 | #endif |
---|
3852 | |
---|
3853 | int |
---|
3854 | main () |
---|
3855 | { |
---|
3856 | int s; |
---|
3857 | wait (&s); |
---|
3858 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
---|
3859 | ; |
---|
3860 | return 0; |
---|
3861 | } |
---|
3862 | _ACEOF |
---|
3863 | rm -f conftest.$ac_objext |
---|
3864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3865 | (eval $ac_compile) 2>conftest.er1 |
---|
3866 | ac_status=$? |
---|
3867 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3868 | rm -f conftest.er1 |
---|
3869 | cat conftest.err >&5 |
---|
3870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3871 | (exit $ac_status); } && |
---|
3872 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
3873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3874 | (eval $ac_try) 2>&5 |
---|
3875 | ac_status=$? |
---|
3876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3877 | (exit $ac_status); }; } && |
---|
3878 | { ac_try='test -s conftest.$ac_objext' |
---|
3879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3880 | (eval $ac_try) 2>&5 |
---|
3881 | ac_status=$? |
---|
3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3883 | (exit $ac_status); }; }; then |
---|
3884 | ac_cv_header_sys_wait_h=yes |
---|
3885 | else |
---|
3886 | echo "$as_me: failed program was:" >&5 |
---|
3887 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3888 | |
---|
3889 | ac_cv_header_sys_wait_h=no |
---|
3890 | fi |
---|
3891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3892 | fi |
---|
3893 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
---|
3894 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
---|
3895 | if test $ac_cv_header_sys_wait_h = yes; then |
---|
3896 | |
---|
3897 | cat >>confdefs.h <<\_ACEOF |
---|
3898 | #define HAVE_SYS_WAIT_H 1 |
---|
3899 | _ACEOF |
---|
3900 | |
---|
3901 | fi |
---|
3902 | |
---|
3903 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3904 | |
---|
3905 | |
---|
3906 | |
---|
3907 | |
---|
3908 | |
---|
3909 | |
---|
3910 | |
---|
3911 | |
---|
3912 | |
---|
3913 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3914 | inttypes.h stdint.h unistd.h |
---|
3915 | do |
---|
3916 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3917 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3921 | else |
---|
3922 | cat >conftest.$ac_ext <<_ACEOF |
---|
3923 | /* confdefs.h. */ |
---|
3924 | _ACEOF |
---|
3925 | cat confdefs.h >>conftest.$ac_ext |
---|
3926 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3927 | /* end confdefs.h. */ |
---|
3928 | $ac_includes_default |
---|
3929 | |
---|
3930 | #include <$ac_header> |
---|
3931 | _ACEOF |
---|
3932 | rm -f conftest.$ac_objext |
---|
3933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3934 | (eval $ac_compile) 2>conftest.er1 |
---|
3935 | ac_status=$? |
---|
3936 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3937 | rm -f conftest.er1 |
---|
3938 | cat conftest.err >&5 |
---|
3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3940 | (exit $ac_status); } && |
---|
3941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
3942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3943 | (eval $ac_try) 2>&5 |
---|
3944 | ac_status=$? |
---|
3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3946 | (exit $ac_status); }; } && |
---|
3947 | { ac_try='test -s conftest.$ac_objext' |
---|
3948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3949 | (eval $ac_try) 2>&5 |
---|
3950 | ac_status=$? |
---|
3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3952 | (exit $ac_status); }; }; then |
---|
3953 | eval "$as_ac_Header=yes" |
---|
3954 | else |
---|
3955 | echo "$as_me: failed program was:" >&5 |
---|
3956 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3957 | |
---|
3958 | eval "$as_ac_Header=no" |
---|
3959 | fi |
---|
3960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3961 | fi |
---|
3962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3963 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3964 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3965 | cat >>confdefs.h <<_ACEOF |
---|
3966 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3967 | _ACEOF |
---|
3968 | |
---|
3969 | fi |
---|
3970 | |
---|
3971 | done |
---|
3972 | |
---|
3973 | |
---|
3974 | |
---|
3975 | |
---|
3976 | |
---|
3977 | |
---|
3978 | |
---|
3979 | |
---|
3980 | |
---|
3981 | |
---|
3982 | |
---|
3983 | for ac_header in fcntl.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/time.h syslog.h unistd.h |
---|
3984 | do |
---|
3985 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3987 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3988 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3989 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3991 | fi |
---|
3992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3993 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3994 | else |
---|
3995 | # Is the header compilable? |
---|
3996 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3997 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3998 | cat >conftest.$ac_ext <<_ACEOF |
---|
3999 | /* confdefs.h. */ |
---|
4000 | _ACEOF |
---|
4001 | cat confdefs.h >>conftest.$ac_ext |
---|
4002 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4003 | /* end confdefs.h. */ |
---|
4004 | $ac_includes_default |
---|
4005 | #include <$ac_header> |
---|
4006 | _ACEOF |
---|
4007 | rm -f conftest.$ac_objext |
---|
4008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4009 | (eval $ac_compile) 2>conftest.er1 |
---|
4010 | ac_status=$? |
---|
4011 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4012 | rm -f conftest.er1 |
---|
4013 | cat conftest.err >&5 |
---|
4014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4015 | (exit $ac_status); } && |
---|
4016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4018 | (eval $ac_try) 2>&5 |
---|
4019 | ac_status=$? |
---|
4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4021 | (exit $ac_status); }; } && |
---|
4022 | { ac_try='test -s conftest.$ac_objext' |
---|
4023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4024 | (eval $ac_try) 2>&5 |
---|
4025 | ac_status=$? |
---|
4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4027 | (exit $ac_status); }; }; then |
---|
4028 | ac_header_compiler=yes |
---|
4029 | else |
---|
4030 | echo "$as_me: failed program was:" >&5 |
---|
4031 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4032 | |
---|
4033 | ac_header_compiler=no |
---|
4034 | fi |
---|
4035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4036 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4037 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4038 | |
---|
4039 | # Is the header present? |
---|
4040 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4041 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4042 | cat >conftest.$ac_ext <<_ACEOF |
---|
4043 | /* confdefs.h. */ |
---|
4044 | _ACEOF |
---|
4045 | cat confdefs.h >>conftest.$ac_ext |
---|
4046 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4047 | /* end confdefs.h. */ |
---|
4048 | #include <$ac_header> |
---|
4049 | _ACEOF |
---|
4050 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4051 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4052 | ac_status=$? |
---|
4053 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4054 | rm -f conftest.er1 |
---|
4055 | cat conftest.err >&5 |
---|
4056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4057 | (exit $ac_status); } >/dev/null; then |
---|
4058 | if test -s conftest.err; then |
---|
4059 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4060 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4061 | else |
---|
4062 | ac_cpp_err= |
---|
4063 | fi |
---|
4064 | else |
---|
4065 | ac_cpp_err=yes |
---|
4066 | fi |
---|
4067 | if test -z "$ac_cpp_err"; then |
---|
4068 | ac_header_preproc=yes |
---|
4069 | else |
---|
4070 | echo "$as_me: failed program was:" >&5 |
---|
4071 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4072 | |
---|
4073 | ac_header_preproc=no |
---|
4074 | fi |
---|
4075 | rm -f conftest.err conftest.$ac_ext |
---|
4076 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4077 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4078 | |
---|
4079 | # So? What about this header? |
---|
4080 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4081 | yes:no: ) |
---|
4082 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4083 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4084 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4085 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4086 | ac_header_preproc=yes |
---|
4087 | ;; |
---|
4088 | no:yes:* ) |
---|
4089 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4090 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4091 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4092 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4093 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4094 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4095 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4096 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4098 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4099 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4100 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4101 | ( |
---|
4102 | cat <<\_ASBOX |
---|
4103 | ## ----------------------------------------------- ## |
---|
4104 | ## Report this to mzvscyhtq (at) 0pointer (dot) de ## |
---|
4105 | ## ----------------------------------------------- ## |
---|
4106 | _ASBOX |
---|
4107 | ) | |
---|
4108 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4109 | ;; |
---|
4110 | esac |
---|
4111 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4115 | else |
---|
4116 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4117 | fi |
---|
4118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4119 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4120 | |
---|
4121 | fi |
---|
4122 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4123 | cat >>confdefs.h <<_ACEOF |
---|
4124 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4125 | _ACEOF |
---|
4126 | |
---|
4127 | fi |
---|
4128 | |
---|
4129 | done |
---|
4130 | |
---|
4131 | |
---|
4132 | # Checks for typedefs, structures, and compiler characteristics. |
---|
4133 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
4134 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
4135 | if test "${ac_cv_c_const+set}" = set; then |
---|
4136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4137 | else |
---|
4138 | cat >conftest.$ac_ext <<_ACEOF |
---|
4139 | /* confdefs.h. */ |
---|
4140 | _ACEOF |
---|
4141 | cat confdefs.h >>conftest.$ac_ext |
---|
4142 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4143 | /* end confdefs.h. */ |
---|
4144 | |
---|
4145 | int |
---|
4146 | main () |
---|
4147 | { |
---|
4148 | /* FIXME: Include the comments suggested by Paul. */ |
---|
4149 | #ifndef __cplusplus |
---|
4150 | /* Ultrix mips cc rejects this. */ |
---|
4151 | typedef int charset[2]; |
---|
4152 | const charset x; |
---|
4153 | /* SunOS 4.1.1 cc rejects this. */ |
---|
4154 | char const *const *ccp; |
---|
4155 | char **p; |
---|
4156 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
4157 | struct point {int x, y;}; |
---|
4158 | static struct point const zero = {0,0}; |
---|
4159 | /* AIX XL C 1.02.0.0 rejects this. |
---|
4160 | It does not let you subtract one const X* pointer from another in |
---|
4161 | an arm of an if-expression whose if-part is not a constant |
---|
4162 | expression */ |
---|
4163 | const char *g = "string"; |
---|
4164 | ccp = &g + (g ? g-g : 0); |
---|
4165 | /* HPUX 7.0 cc rejects these. */ |
---|
4166 | ++ccp; |
---|
4167 | p = (char**) ccp; |
---|
4168 | ccp = (char const *const *) p; |
---|
4169 | { /* SCO 3.2v4 cc rejects this. */ |
---|
4170 | char *t; |
---|
4171 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
4172 | |
---|
4173 | *t++ = 0; |
---|
4174 | } |
---|
4175 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
4176 | int x[] = {25, 17}; |
---|
4177 | const int *foo = &x[0]; |
---|
4178 | ++foo; |
---|
4179 | } |
---|
4180 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
4181 | typedef const int *iptr; |
---|
4182 | iptr p = 0; |
---|
4183 | ++p; |
---|
4184 | } |
---|
4185 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
4186 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
4187 | struct s { int j; const int *ap[3]; }; |
---|
4188 | struct s *b; b->j = 5; |
---|
4189 | } |
---|
4190 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
4191 | const int foo = 10; |
---|
4192 | } |
---|
4193 | #endif |
---|
4194 | |
---|
4195 | ; |
---|
4196 | return 0; |
---|
4197 | } |
---|
4198 | _ACEOF |
---|
4199 | rm -f conftest.$ac_objext |
---|
4200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4201 | (eval $ac_compile) 2>conftest.er1 |
---|
4202 | ac_status=$? |
---|
4203 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4204 | rm -f conftest.er1 |
---|
4205 | cat conftest.err >&5 |
---|
4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4207 | (exit $ac_status); } && |
---|
4208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4210 | (eval $ac_try) 2>&5 |
---|
4211 | ac_status=$? |
---|
4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4213 | (exit $ac_status); }; } && |
---|
4214 | { ac_try='test -s conftest.$ac_objext' |
---|
4215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4216 | (eval $ac_try) 2>&5 |
---|
4217 | ac_status=$? |
---|
4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4219 | (exit $ac_status); }; }; then |
---|
4220 | ac_cv_c_const=yes |
---|
4221 | else |
---|
4222 | echo "$as_me: failed program was:" >&5 |
---|
4223 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4224 | |
---|
4225 | ac_cv_c_const=no |
---|
4226 | fi |
---|
4227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4228 | fi |
---|
4229 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
4230 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
4231 | if test $ac_cv_c_const = no; then |
---|
4232 | |
---|
4233 | cat >>confdefs.h <<\_ACEOF |
---|
4234 | #define const |
---|
4235 | _ACEOF |
---|
4236 | |
---|
4237 | fi |
---|
4238 | |
---|
4239 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
---|
4240 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
---|
4241 | if test "${ac_cv_type_pid_t+set}" = set; then |
---|
4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4243 | else |
---|
4244 | cat >conftest.$ac_ext <<_ACEOF |
---|
4245 | /* confdefs.h. */ |
---|
4246 | _ACEOF |
---|
4247 | cat confdefs.h >>conftest.$ac_ext |
---|
4248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4249 | /* end confdefs.h. */ |
---|
4250 | $ac_includes_default |
---|
4251 | int |
---|
4252 | main () |
---|
4253 | { |
---|
4254 | if ((pid_t *) 0) |
---|
4255 | return 0; |
---|
4256 | if (sizeof (pid_t)) |
---|
4257 | return 0; |
---|
4258 | ; |
---|
4259 | return 0; |
---|
4260 | } |
---|
4261 | _ACEOF |
---|
4262 | rm -f conftest.$ac_objext |
---|
4263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4264 | (eval $ac_compile) 2>conftest.er1 |
---|
4265 | ac_status=$? |
---|
4266 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4267 | rm -f conftest.er1 |
---|
4268 | cat conftest.err >&5 |
---|
4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4270 | (exit $ac_status); } && |
---|
4271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4273 | (eval $ac_try) 2>&5 |
---|
4274 | ac_status=$? |
---|
4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4276 | (exit $ac_status); }; } && |
---|
4277 | { ac_try='test -s conftest.$ac_objext' |
---|
4278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4279 | (eval $ac_try) 2>&5 |
---|
4280 | ac_status=$? |
---|
4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4282 | (exit $ac_status); }; }; then |
---|
4283 | ac_cv_type_pid_t=yes |
---|
4284 | else |
---|
4285 | echo "$as_me: failed program was:" >&5 |
---|
4286 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4287 | |
---|
4288 | ac_cv_type_pid_t=no |
---|
4289 | fi |
---|
4290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4291 | fi |
---|
4292 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
---|
4293 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
---|
4294 | if test $ac_cv_type_pid_t = yes; then |
---|
4295 | : |
---|
4296 | else |
---|
4297 | |
---|
4298 | cat >>confdefs.h <<_ACEOF |
---|
4299 | #define pid_t int |
---|
4300 | _ACEOF |
---|
4301 | |
---|
4302 | fi |
---|
4303 | |
---|
4304 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
---|
4305 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
---|
4306 | if test "${ac_cv_header_time+set}" = set; then |
---|
4307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4308 | else |
---|
4309 | cat >conftest.$ac_ext <<_ACEOF |
---|
4310 | /* confdefs.h. */ |
---|
4311 | _ACEOF |
---|
4312 | cat confdefs.h >>conftest.$ac_ext |
---|
4313 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4314 | /* end confdefs.h. */ |
---|
4315 | #include <sys/types.h> |
---|
4316 | #include <sys/time.h> |
---|
4317 | #include <time.h> |
---|
4318 | |
---|
4319 | int |
---|
4320 | main () |
---|
4321 | { |
---|
4322 | if ((struct tm *) 0) |
---|
4323 | return 0; |
---|
4324 | ; |
---|
4325 | return 0; |
---|
4326 | } |
---|
4327 | _ACEOF |
---|
4328 | rm -f conftest.$ac_objext |
---|
4329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4330 | (eval $ac_compile) 2>conftest.er1 |
---|
4331 | ac_status=$? |
---|
4332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4333 | rm -f conftest.er1 |
---|
4334 | cat conftest.err >&5 |
---|
4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4336 | (exit $ac_status); } && |
---|
4337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4339 | (eval $ac_try) 2>&5 |
---|
4340 | ac_status=$? |
---|
4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4342 | (exit $ac_status); }; } && |
---|
4343 | { ac_try='test -s conftest.$ac_objext' |
---|
4344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4345 | (eval $ac_try) 2>&5 |
---|
4346 | ac_status=$? |
---|
4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4348 | (exit $ac_status); }; }; then |
---|
4349 | ac_cv_header_time=yes |
---|
4350 | else |
---|
4351 | echo "$as_me: failed program was:" >&5 |
---|
4352 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4353 | |
---|
4354 | ac_cv_header_time=no |
---|
4355 | fi |
---|
4356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4357 | fi |
---|
4358 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
---|
4359 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
---|
4360 | if test $ac_cv_header_time = yes; then |
---|
4361 | |
---|
4362 | cat >>confdefs.h <<\_ACEOF |
---|
4363 | #define TIME_WITH_SYS_TIME 1 |
---|
4364 | _ACEOF |
---|
4365 | |
---|
4366 | fi |
---|
4367 | |
---|
4368 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
---|
4369 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
---|
4370 | if test "${ac_cv_c_volatile+set}" = set; then |
---|
4371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4372 | else |
---|
4373 | cat >conftest.$ac_ext <<_ACEOF |
---|
4374 | /* confdefs.h. */ |
---|
4375 | _ACEOF |
---|
4376 | cat confdefs.h >>conftest.$ac_ext |
---|
4377 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4378 | /* end confdefs.h. */ |
---|
4379 | |
---|
4380 | int |
---|
4381 | main () |
---|
4382 | { |
---|
4383 | |
---|
4384 | volatile int x; |
---|
4385 | int * volatile y; |
---|
4386 | ; |
---|
4387 | return 0; |
---|
4388 | } |
---|
4389 | _ACEOF |
---|
4390 | rm -f conftest.$ac_objext |
---|
4391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4392 | (eval $ac_compile) 2>conftest.er1 |
---|
4393 | ac_status=$? |
---|
4394 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4395 | rm -f conftest.er1 |
---|
4396 | cat conftest.err >&5 |
---|
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4398 | (exit $ac_status); } && |
---|
4399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4401 | (eval $ac_try) 2>&5 |
---|
4402 | ac_status=$? |
---|
4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4404 | (exit $ac_status); }; } && |
---|
4405 | { ac_try='test -s conftest.$ac_objext' |
---|
4406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4407 | (eval $ac_try) 2>&5 |
---|
4408 | ac_status=$? |
---|
4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4410 | (exit $ac_status); }; }; then |
---|
4411 | ac_cv_c_volatile=yes |
---|
4412 | else |
---|
4413 | echo "$as_me: failed program was:" >&5 |
---|
4414 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4415 | |
---|
4416 | ac_cv_c_volatile=no |
---|
4417 | fi |
---|
4418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4419 | fi |
---|
4420 | echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
---|
4421 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
---|
4422 | if test $ac_cv_c_volatile = no; then |
---|
4423 | |
---|
4424 | cat >>confdefs.h <<\_ACEOF |
---|
4425 | #define volatile |
---|
4426 | _ACEOF |
---|
4427 | |
---|
4428 | fi |
---|
4429 | |
---|
4430 | |
---|
4431 | # Checks for library functions. |
---|
4432 | |
---|
4433 | |
---|
4434 | for ac_header in unistd.h vfork.h |
---|
4435 | do |
---|
4436 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4442 | fi |
---|
4443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4445 | else |
---|
4446 | # Is the header compilable? |
---|
4447 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4448 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4449 | cat >conftest.$ac_ext <<_ACEOF |
---|
4450 | /* confdefs.h. */ |
---|
4451 | _ACEOF |
---|
4452 | cat confdefs.h >>conftest.$ac_ext |
---|
4453 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4454 | /* end confdefs.h. */ |
---|
4455 | $ac_includes_default |
---|
4456 | #include <$ac_header> |
---|
4457 | _ACEOF |
---|
4458 | rm -f conftest.$ac_objext |
---|
4459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4460 | (eval $ac_compile) 2>conftest.er1 |
---|
4461 | ac_status=$? |
---|
4462 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4463 | rm -f conftest.er1 |
---|
4464 | cat conftest.err >&5 |
---|
4465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4466 | (exit $ac_status); } && |
---|
4467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4469 | (eval $ac_try) 2>&5 |
---|
4470 | ac_status=$? |
---|
4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4472 | (exit $ac_status); }; } && |
---|
4473 | { ac_try='test -s conftest.$ac_objext' |
---|
4474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4475 | (eval $ac_try) 2>&5 |
---|
4476 | ac_status=$? |
---|
4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4478 | (exit $ac_status); }; }; then |
---|
4479 | ac_header_compiler=yes |
---|
4480 | else |
---|
4481 | echo "$as_me: failed program was:" >&5 |
---|
4482 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4483 | |
---|
4484 | ac_header_compiler=no |
---|
4485 | fi |
---|
4486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4487 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4488 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4489 | |
---|
4490 | # Is the header present? |
---|
4491 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4492 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4493 | cat >conftest.$ac_ext <<_ACEOF |
---|
4494 | /* confdefs.h. */ |
---|
4495 | _ACEOF |
---|
4496 | cat confdefs.h >>conftest.$ac_ext |
---|
4497 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4498 | /* end confdefs.h. */ |
---|
4499 | #include <$ac_header> |
---|
4500 | _ACEOF |
---|
4501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4503 | ac_status=$? |
---|
4504 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4505 | rm -f conftest.er1 |
---|
4506 | cat conftest.err >&5 |
---|
4507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4508 | (exit $ac_status); } >/dev/null; then |
---|
4509 | if test -s conftest.err; then |
---|
4510 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4511 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4512 | else |
---|
4513 | ac_cpp_err= |
---|
4514 | fi |
---|
4515 | else |
---|
4516 | ac_cpp_err=yes |
---|
4517 | fi |
---|
4518 | if test -z "$ac_cpp_err"; then |
---|
4519 | ac_header_preproc=yes |
---|
4520 | else |
---|
4521 | echo "$as_me: failed program was:" >&5 |
---|
4522 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4523 | |
---|
4524 | ac_header_preproc=no |
---|
4525 | fi |
---|
4526 | rm -f conftest.err conftest.$ac_ext |
---|
4527 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4528 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4529 | |
---|
4530 | # So? What about this header? |
---|
4531 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4532 | yes:no: ) |
---|
4533 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4534 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4535 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4536 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4537 | ac_header_preproc=yes |
---|
4538 | ;; |
---|
4539 | no:yes:* ) |
---|
4540 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4541 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4542 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4543 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4544 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4545 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4546 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4547 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4548 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4549 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4550 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4551 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4552 | ( |
---|
4553 | cat <<\_ASBOX |
---|
4554 | ## ----------------------------------------------- ## |
---|
4555 | ## Report this to mzvscyhtq (at) 0pointer (dot) de ## |
---|
4556 | ## ----------------------------------------------- ## |
---|
4557 | _ASBOX |
---|
4558 | ) | |
---|
4559 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4560 | ;; |
---|
4561 | esac |
---|
4562 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4566 | else |
---|
4567 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4568 | fi |
---|
4569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4570 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4571 | |
---|
4572 | fi |
---|
4573 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4574 | cat >>confdefs.h <<_ACEOF |
---|
4575 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4576 | _ACEOF |
---|
4577 | |
---|
4578 | fi |
---|
4579 | |
---|
4580 | done |
---|
4581 | |
---|
4582 | |
---|
4583 | |
---|
4584 | for ac_func in fork vfork |
---|
4585 | do |
---|
4586 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
4587 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
4588 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
4589 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
4590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4591 | else |
---|
4592 | cat >conftest.$ac_ext <<_ACEOF |
---|
4593 | /* confdefs.h. */ |
---|
4594 | _ACEOF |
---|
4595 | cat confdefs.h >>conftest.$ac_ext |
---|
4596 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4597 | /* end confdefs.h. */ |
---|
4598 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
4599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
4600 | #define $ac_func innocuous_$ac_func |
---|
4601 | |
---|
4602 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4603 | which can conflict with char $ac_func (); below. |
---|
4604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4605 | <limits.h> exists even on freestanding compilers. */ |
---|
4606 | |
---|
4607 | #ifdef __STDC__ |
---|
4608 | # include <limits.h> |
---|
4609 | #else |
---|
4610 | # include <assert.h> |
---|
4611 | #endif |
---|
4612 | |
---|
4613 | #undef $ac_func |
---|
4614 | |
---|
4615 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4616 | #ifdef __cplusplus |
---|
4617 | extern "C" |
---|
4618 | { |
---|
4619 | #endif |
---|
4620 | /* We use char because int might match the return type of a gcc2 |
---|
4621 | builtin and then its argument prototype would still apply. */ |
---|
4622 | char $ac_func (); |
---|
4623 | /* The GNU C library defines this for functions which it implements |
---|
4624 | to always fail with ENOSYS. Some functions are actually named |
---|
4625 | something starting with __ and the normal name is an alias. */ |
---|
4626 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4627 | choke me |
---|
4628 | #else |
---|
4629 | char (*f) () = $ac_func; |
---|
4630 | #endif |
---|
4631 | #ifdef __cplusplus |
---|
4632 | } |
---|
4633 | #endif |
---|
4634 | |
---|
4635 | int |
---|
4636 | main () |
---|
4637 | { |
---|
4638 | return f != $ac_func; |
---|
4639 | ; |
---|
4640 | return 0; |
---|
4641 | } |
---|
4642 | _ACEOF |
---|
4643 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4645 | (eval $ac_link) 2>conftest.er1 |
---|
4646 | ac_status=$? |
---|
4647 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4648 | rm -f conftest.er1 |
---|
4649 | cat conftest.err >&5 |
---|
4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4651 | (exit $ac_status); } && |
---|
4652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
4653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4654 | (eval $ac_try) 2>&5 |
---|
4655 | ac_status=$? |
---|
4656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4657 | (exit $ac_status); }; } && |
---|
4658 | { ac_try='test -s conftest$ac_exeext' |
---|
4659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4660 | (eval $ac_try) 2>&5 |
---|
4661 | ac_status=$? |
---|
4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4663 | (exit $ac_status); }; }; then |
---|
4664 | eval "$as_ac_var=yes" |
---|
4665 | else |
---|
4666 | echo "$as_me: failed program was:" >&5 |
---|
4667 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4668 | |
---|
4669 | eval "$as_ac_var=no" |
---|
4670 | fi |
---|
4671 | rm -f conftest.err conftest.$ac_objext \ |
---|
4672 | conftest$ac_exeext conftest.$ac_ext |
---|
4673 | fi |
---|
4674 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
4675 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
4676 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
4677 | cat >>confdefs.h <<_ACEOF |
---|
4678 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
4679 | _ACEOF |
---|
4680 | |
---|
4681 | fi |
---|
4682 | done |
---|
4683 | |
---|
4684 | if test "x$ac_cv_func_fork" = xyes; then |
---|
4685 | echo "$as_me:$LINENO: checking for working fork" >&5 |
---|
4686 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
---|
4687 | if test "${ac_cv_func_fork_works+set}" = set; then |
---|
4688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4689 | else |
---|
4690 | if test "$cross_compiling" = yes; then |
---|
4691 | ac_cv_func_fork_works=cross |
---|
4692 | else |
---|
4693 | cat >conftest.$ac_ext <<_ACEOF |
---|
4694 | /* By Ruediger Kuhlmann. */ |
---|
4695 | #include <sys/types.h> |
---|
4696 | #if HAVE_UNISTD_H |
---|
4697 | # include <unistd.h> |
---|
4698 | #endif |
---|
4699 | /* Some systems only have a dummy stub for fork() */ |
---|
4700 | int main () |
---|
4701 | { |
---|
4702 | if (fork() < 0) |
---|
4703 | exit (1); |
---|
4704 | exit (0); |
---|
4705 | } |
---|
4706 | _ACEOF |
---|
4707 | rm -f conftest$ac_exeext |
---|
4708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4709 | (eval $ac_link) 2>&5 |
---|
4710 | ac_status=$? |
---|
4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4712 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4714 | (eval $ac_try) 2>&5 |
---|
4715 | ac_status=$? |
---|
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4717 | (exit $ac_status); }; }; then |
---|
4718 | ac_cv_func_fork_works=yes |
---|
4719 | else |
---|
4720 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4721 | echo "$as_me: failed program was:" >&5 |
---|
4722 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4723 | |
---|
4724 | ( exit $ac_status ) |
---|
4725 | ac_cv_func_fork_works=no |
---|
4726 | fi |
---|
4727 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4728 | fi |
---|
4729 | fi |
---|
4730 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
---|
4731 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
---|
4732 | |
---|
4733 | else |
---|
4734 | ac_cv_func_fork_works=$ac_cv_func_fork |
---|
4735 | fi |
---|
4736 | if test "x$ac_cv_func_fork_works" = xcross; then |
---|
4737 | case $host in |
---|
4738 | *-*-amigaos* | *-*-msdosdjgpp*) |
---|
4739 | # Override, as these systems have only a dummy fork() stub |
---|
4740 | ac_cv_func_fork_works=no |
---|
4741 | ;; |
---|
4742 | *) |
---|
4743 | ac_cv_func_fork_works=yes |
---|
4744 | ;; |
---|
4745 | esac |
---|
4746 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
---|
4747 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
---|
4748 | fi |
---|
4749 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
---|
4750 | if test "x$ac_cv_func_vfork" = xyes; then |
---|
4751 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
---|
4752 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
---|
4753 | if test "${ac_cv_func_vfork_works+set}" = set; then |
---|
4754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4755 | else |
---|
4756 | if test "$cross_compiling" = yes; then |
---|
4757 | ac_cv_func_vfork_works=cross |
---|
4758 | else |
---|
4759 | cat >conftest.$ac_ext <<_ACEOF |
---|
4760 | /* confdefs.h. */ |
---|
4761 | _ACEOF |
---|
4762 | cat confdefs.h >>conftest.$ac_ext |
---|
4763 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4764 | /* end confdefs.h. */ |
---|
4765 | /* Thanks to Paul Eggert for this test. */ |
---|
4766 | #include <stdio.h> |
---|
4767 | #include <stdlib.h> |
---|
4768 | #include <sys/types.h> |
---|
4769 | #include <sys/stat.h> |
---|
4770 | #include <sys/wait.h> |
---|
4771 | #if HAVE_UNISTD_H |
---|
4772 | # include <unistd.h> |
---|
4773 | #endif |
---|
4774 | #if HAVE_VFORK_H |
---|
4775 | # include <vfork.h> |
---|
4776 | #endif |
---|
4777 | /* On some sparc systems, changes by the child to local and incoming |
---|
4778 | argument registers are propagated back to the parent. The compiler |
---|
4779 | is told about this with #include <vfork.h>, but some compilers |
---|
4780 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
---|
4781 | static variable whose address is put into a register that is |
---|
4782 | clobbered by the vfork. */ |
---|
4783 | static void |
---|
4784 | #ifdef __cplusplus |
---|
4785 | sparc_address_test (int arg) |
---|
4786 | # else |
---|
4787 | sparc_address_test (arg) int arg; |
---|
4788 | #endif |
---|
4789 | { |
---|
4790 | static pid_t child; |
---|
4791 | if (!child) { |
---|
4792 | child = vfork (); |
---|
4793 | if (child < 0) { |
---|
4794 | perror ("vfork"); |
---|
4795 | _exit(2); |
---|
4796 | } |
---|
4797 | if (!child) { |
---|
4798 | arg = getpid(); |
---|
4799 | write(-1, "", 0); |
---|
4800 | _exit (arg); |
---|
4801 | } |
---|
4802 | } |
---|
4803 | } |
---|
4804 | |
---|
4805 | int |
---|
4806 | main () |
---|
4807 | { |
---|
4808 | pid_t parent = getpid (); |
---|
4809 | pid_t child; |
---|
4810 | |
---|
4811 | sparc_address_test (0); |
---|
4812 | |
---|
4813 | child = vfork (); |
---|
4814 | |
---|
4815 | if (child == 0) { |
---|
4816 | /* Here is another test for sparc vfork register problems. This |
---|
4817 | test uses lots of local variables, at least as many local |
---|
4818 | variables as main has allocated so far including compiler |
---|
4819 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
---|
4820 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
---|
4821 | reuse the register of parent for one of the local variables, |
---|
4822 | since it will think that parent can't possibly be used any more |
---|
4823 | in this routine. Assigning to the local variable will thus |
---|
4824 | munge parent in the parent process. */ |
---|
4825 | pid_t |
---|
4826 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
---|
4827 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
---|
4828 | /* Convince the compiler that p..p7 are live; otherwise, it might |
---|
4829 | use the same hardware register for all 8 local variables. */ |
---|
4830 | if (p != p1 || p != p2 || p != p3 || p != p4 |
---|
4831 | || p != p5 || p != p6 || p != p7) |
---|
4832 | _exit(1); |
---|
4833 | |
---|
4834 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
---|
4835 | from child file descriptors. If the child closes a descriptor |
---|
4836 | before it execs or exits, this munges the parent's descriptor |
---|
4837 | as well. Test for this by closing stdout in the child. */ |
---|
4838 | _exit(close(fileno(stdout)) != 0); |
---|
4839 | } else { |
---|
4840 | int status; |
---|
4841 | struct stat st; |
---|
4842 | |
---|
4843 | while (wait(&status) != child) |
---|
4844 | ; |
---|
4845 | exit( |
---|
4846 | /* Was there some problem with vforking? */ |
---|
4847 | child < 0 |
---|
4848 | |
---|
4849 | /* Did the child fail? (This shouldn't happen.) */ |
---|
4850 | || status |
---|
4851 | |
---|
4852 | /* Did the vfork/compiler bug occur? */ |
---|
4853 | || parent != getpid() |
---|
4854 | |
---|
4855 | /* Did the file descriptor bug occur? */ |
---|
4856 | || fstat(fileno(stdout), &st) != 0 |
---|
4857 | ); |
---|
4858 | } |
---|
4859 | } |
---|
4860 | _ACEOF |
---|
4861 | rm -f conftest$ac_exeext |
---|
4862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4863 | (eval $ac_link) 2>&5 |
---|
4864 | ac_status=$? |
---|
4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4866 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4868 | (eval $ac_try) 2>&5 |
---|
4869 | ac_status=$? |
---|
4870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4871 | (exit $ac_status); }; }; then |
---|
4872 | ac_cv_func_vfork_works=yes |
---|
4873 | else |
---|
4874 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4875 | echo "$as_me: failed program was:" >&5 |
---|
4876 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4877 | |
---|
4878 | ( exit $ac_status ) |
---|
4879 | ac_cv_func_vfork_works=no |
---|
4880 | fi |
---|
4881 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4882 | fi |
---|
4883 | fi |
---|
4884 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
---|
4885 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
---|
4886 | |
---|
4887 | fi; |
---|
4888 | if test "x$ac_cv_func_fork_works" = xcross; then |
---|
4889 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
---|
4890 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
---|
4891 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
---|
4892 | fi |
---|
4893 | |
---|
4894 | if test "x$ac_cv_func_vfork_works" = xyes; then |
---|
4895 | |
---|
4896 | cat >>confdefs.h <<\_ACEOF |
---|
4897 | #define HAVE_WORKING_VFORK 1 |
---|
4898 | _ACEOF |
---|
4899 | |
---|
4900 | else |
---|
4901 | |
---|
4902 | cat >>confdefs.h <<\_ACEOF |
---|
4903 | #define vfork fork |
---|
4904 | _ACEOF |
---|
4905 | |
---|
4906 | fi |
---|
4907 | if test "x$ac_cv_func_fork_works" = xyes; then |
---|
4908 | |
---|
4909 | cat >>confdefs.h <<\_ACEOF |
---|
4910 | #define HAVE_WORKING_FORK 1 |
---|
4911 | _ACEOF |
---|
4912 | |
---|
4913 | fi |
---|
4914 | |
---|
4915 | if test $ac_cv_c_compiler_gnu = yes; then |
---|
4916 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
---|
4917 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
---|
4918 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
---|
4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4920 | else |
---|
4921 | ac_pattern="Autoconf.*'x'" |
---|
4922 | cat >conftest.$ac_ext <<_ACEOF |
---|
4923 | /* confdefs.h. */ |
---|
4924 | _ACEOF |
---|
4925 | cat confdefs.h >>conftest.$ac_ext |
---|
4926 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4927 | /* end confdefs.h. */ |
---|
4928 | #include <sgtty.h> |
---|
4929 | Autoconf TIOCGETP |
---|
4930 | _ACEOF |
---|
4931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4932 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
4933 | ac_cv_prog_gcc_traditional=yes |
---|
4934 | else |
---|
4935 | ac_cv_prog_gcc_traditional=no |
---|
4936 | fi |
---|
4937 | rm -f conftest* |
---|
4938 | |
---|
4939 | |
---|
4940 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
4941 | cat >conftest.$ac_ext <<_ACEOF |
---|
4942 | /* confdefs.h. */ |
---|
4943 | _ACEOF |
---|
4944 | cat confdefs.h >>conftest.$ac_ext |
---|
4945 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4946 | /* end confdefs.h. */ |
---|
4947 | #include <termio.h> |
---|
4948 | Autoconf TCGETA |
---|
4949 | _ACEOF |
---|
4950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4951 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
4952 | ac_cv_prog_gcc_traditional=yes |
---|
4953 | fi |
---|
4954 | rm -f conftest* |
---|
4955 | |
---|
4956 | fi |
---|
4957 | fi |
---|
4958 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
---|
4959 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
---|
4960 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
4961 | CC="$CC -traditional" |
---|
4962 | fi |
---|
4963 | fi |
---|
4964 | |
---|
4965 | |
---|
4966 | |
---|
4967 | for ac_header in sys/select.h sys/socket.h |
---|
4968 | do |
---|
4969 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4970 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4971 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4972 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4973 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4975 | fi |
---|
4976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4977 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4978 | else |
---|
4979 | # Is the header compilable? |
---|
4980 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4981 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4982 | cat >conftest.$ac_ext <<_ACEOF |
---|
4983 | /* confdefs.h. */ |
---|
4984 | _ACEOF |
---|
4985 | cat confdefs.h >>conftest.$ac_ext |
---|
4986 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4987 | /* end confdefs.h. */ |
---|
4988 | $ac_includes_default |
---|
4989 | #include <$ac_header> |
---|
4990 | _ACEOF |
---|
4991 | rm -f conftest.$ac_objext |
---|
4992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4993 | (eval $ac_compile) 2>conftest.er1 |
---|
4994 | ac_status=$? |
---|
4995 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4996 | rm -f conftest.er1 |
---|
4997 | cat conftest.err >&5 |
---|
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4999 | (exit $ac_status); } && |
---|
5000 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
5001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5002 | (eval $ac_try) 2>&5 |
---|
5003 | ac_status=$? |
---|
5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5005 | (exit $ac_status); }; } && |
---|
5006 | { ac_try='test -s conftest.$ac_objext' |
---|
5007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5008 | (eval $ac_try) 2>&5 |
---|
5009 | ac_status=$? |
---|
5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5011 | (exit $ac_status); }; }; then |
---|
5012 | ac_header_compiler=yes |
---|
5013 | else |
---|
5014 | echo "$as_me: failed program was:" >&5 |
---|
5015 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5016 | |
---|
5017 | ac_header_compiler=no |
---|
5018 | fi |
---|
5019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5020 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5021 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5022 | |
---|
5023 | # Is the header present? |
---|
5024 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5025 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5026 | cat >conftest.$ac_ext <<_ACEOF |
---|
5027 | /* confdefs.h. */ |
---|
5028 | _ACEOF |
---|
5029 | cat confdefs.h >>conftest.$ac_ext |
---|
5030 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5031 | /* end confdefs.h. */ |
---|
5032 | #include <$ac_header> |
---|
5033 | _ACEOF |
---|
5034 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5035 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5036 | ac_status=$? |
---|
5037 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5038 | rm -f conftest.er1 |
---|
5039 | cat conftest.err >&5 |
---|
5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5041 | (exit $ac_status); } >/dev/null; then |
---|
5042 | if test -s conftest.err; then |
---|
5043 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5044 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5045 | else |
---|
5046 | ac_cpp_err= |
---|
5047 | fi |
---|
5048 | else |
---|
5049 | ac_cpp_err=yes |
---|
5050 | fi |
---|
5051 | if test -z "$ac_cpp_err"; then |
---|
5052 | ac_header_preproc=yes |
---|
5053 | else |
---|
5054 | echo "$as_me: failed program was:" >&5 |
---|
5055 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5056 | |
---|
5057 | ac_header_preproc=no |
---|
5058 | fi |
---|
5059 | rm -f conftest.err conftest.$ac_ext |
---|
5060 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5061 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5062 | |
---|
5063 | # So? What about this header? |
---|
5064 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5065 | yes:no: ) |
---|
5066 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5067 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5069 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5070 | ac_header_preproc=yes |
---|
5071 | ;; |
---|
5072 | no:yes:* ) |
---|
5073 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5074 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5075 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5076 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5077 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5078 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5079 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5080 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5081 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5082 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5083 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5084 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5085 | ( |
---|
5086 | cat <<\_ASBOX |
---|
5087 | ## ----------------------------------------------- ## |
---|
5088 | ## Report this to mzvscyhtq (at) 0pointer (dot) de ## |
---|
5089 | ## ----------------------------------------------- ## |
---|
5090 | _ASBOX |
---|
5091 | ) | |
---|
5092 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5093 | ;; |
---|
5094 | esac |
---|
5095 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5097 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5099 | else |
---|
5100 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5101 | fi |
---|
5102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5104 | |
---|
5105 | fi |
---|
5106 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5107 | cat >>confdefs.h <<_ACEOF |
---|
5108 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5109 | _ACEOF |
---|
5110 | |
---|
5111 | fi |
---|
5112 | |
---|
5113 | done |
---|
5114 | |
---|
5115 | echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
---|
5116 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 |
---|
5117 | if test "${ac_cv_func_select_args+set}" = set; then |
---|
5118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5119 | else |
---|
5120 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
---|
5121 | for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do |
---|
5122 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
---|
5123 | cat >conftest.$ac_ext <<_ACEOF |
---|
5124 | /* confdefs.h. */ |
---|
5125 | _ACEOF |
---|
5126 | cat confdefs.h >>conftest.$ac_ext |
---|
5127 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5128 | /* end confdefs.h. */ |
---|
5129 | $ac_includes_default |
---|
5130 | #if HAVE_SYS_SELECT_H |
---|
5131 | # include <sys/select.h> |
---|
5132 | #endif |
---|
5133 | #if HAVE_SYS_SOCKET_H |
---|
5134 | # include <sys/socket.h> |
---|
5135 | #endif |
---|
5136 | |
---|
5137 | int |
---|
5138 | main () |
---|
5139 | { |
---|
5140 | extern int select ($ac_arg1, |
---|
5141 | $ac_arg234, $ac_arg234, $ac_arg234, |
---|
5142 | $ac_arg5); |
---|
5143 | ; |
---|
5144 | return 0; |
---|
5145 | } |
---|
5146 | _ACEOF |
---|
5147 | rm -f conftest.$ac_objext |
---|
5148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5149 | (eval $ac_compile) 2>conftest.er1 |
---|
5150 | ac_status=$? |
---|
5151 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5152 | rm -f conftest.er1 |
---|
5153 | cat conftest.err >&5 |
---|
5154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5155 | (exit $ac_status); } && |
---|
5156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
5157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5158 | (eval $ac_try) 2>&5 |
---|
5159 | ac_status=$? |
---|
5160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5161 | (exit $ac_status); }; } && |
---|
5162 | { ac_try='test -s conftest.$ac_objext' |
---|
5163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5164 | (eval $ac_try) 2>&5 |
---|
5165 | ac_status=$? |
---|
5166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5167 | (exit $ac_status); }; }; then |
---|
5168 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
---|
5169 | else |
---|
5170 | echo "$as_me: failed program was:" >&5 |
---|
5171 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5172 | |
---|
5173 | fi |
---|
5174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5175 | done |
---|
5176 | done |
---|
5177 | done |
---|
5178 | # Provide a safe default value. |
---|
5179 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} |
---|
5180 | |
---|
5181 | fi |
---|
5182 | echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
---|
5183 | echo "${ECHO_T}$ac_cv_func_select_args" >&6 |
---|
5184 | ac_save_IFS=$IFS; IFS=',' |
---|
5185 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
---|
5186 | IFS=$ac_save_IFS |
---|
5187 | shift |
---|
5188 | |
---|
5189 | cat >>confdefs.h <<_ACEOF |
---|
5190 | #define SELECT_TYPE_ARG1 $1 |
---|
5191 | _ACEOF |
---|
5192 | |
---|
5193 | |
---|
5194 | cat >>confdefs.h <<_ACEOF |
---|
5195 | #define SELECT_TYPE_ARG234 ($2) |
---|
5196 | _ACEOF |
---|
5197 | |
---|
5198 | |
---|
5199 | cat >>confdefs.h <<_ACEOF |
---|
5200 | #define SELECT_TYPE_ARG5 ($3) |
---|
5201 | _ACEOF |
---|
5202 | |
---|
5203 | rm -f conftest* |
---|
5204 | |
---|
5205 | |
---|
5206 | for ac_header in stdlib.h |
---|
5207 | do |
---|
5208 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5214 | fi |
---|
5215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5216 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5217 | else |
---|
5218 | # Is the header compilable? |
---|
5219 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5220 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5221 | cat >conftest.$ac_ext <<_ACEOF |
---|
5222 | /* confdefs.h. */ |
---|
5223 | _ACEOF |
---|
5224 | cat confdefs.h >>conftest.$ac_ext |
---|
5225 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5226 | /* end confdefs.h. */ |
---|
5227 | $ac_includes_default |
---|
5228 | #include <$ac_header> |
---|
5229 | _ACEOF |
---|
5230 | rm -f conftest.$ac_objext |
---|
5231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5232 | (eval $ac_compile) 2>conftest.er1 |
---|
5233 | ac_status=$? |
---|
5234 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5235 | rm -f conftest.er1 |
---|
5236 | cat conftest.err >&5 |
---|
5237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5238 | (exit $ac_status); } && |
---|
5239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
5240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5241 | (eval $ac_try) 2>&5 |
---|
5242 | ac_status=$? |
---|
5243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5244 | (exit $ac_status); }; } && |
---|
5245 | { ac_try='test -s conftest.$ac_objext' |
---|
5246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5247 | (eval $ac_try) 2>&5 |
---|
5248 | ac_status=$? |
---|
5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5250 | (exit $ac_status); }; }; then |
---|
5251 | ac_header_compiler=yes |
---|
5252 | else |
---|
5253 | echo "$as_me: failed program was:" >&5 |
---|
5254 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5255 | |
---|
5256 | ac_header_compiler=no |
---|
5257 | fi |
---|
5258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5259 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5260 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5261 | |
---|
5262 | # Is the header present? |
---|
5263 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5264 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5265 | cat >conftest.$ac_ext <<_ACEOF |
---|
5266 | /* confdefs.h. */ |
---|
5267 | _ACEOF |
---|
5268 | cat confdefs.h >>conftest.$ac_ext |
---|
5269 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5270 | /* end confdefs.h. */ |
---|
5271 | #include <$ac_header> |
---|
5272 | _ACEOF |
---|
5273 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5274 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5275 | ac_status=$? |
---|
5276 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5277 | rm -f conftest.er1 |
---|
5278 | cat conftest.err >&5 |
---|
5279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5280 | (exit $ac_status); } >/dev/null; then |
---|
5281 | if test -s conftest.err; then |
---|
5282 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5284 | else |
---|
5285 | ac_cpp_err= |
---|
5286 | fi |
---|
5287 | else |
---|
5288 | ac_cpp_err=yes |
---|
5289 | fi |
---|
5290 | if test -z "$ac_cpp_err"; then |
---|
5291 | ac_header_preproc=yes |
---|
5292 | else |
---|
5293 | echo "$as_me: failed program was:" >&5 |
---|
5294 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5295 | |
---|
5296 | ac_header_preproc=no |
---|
5297 | fi |
---|
5298 | rm -f conftest.err conftest.$ac_ext |
---|
5299 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5300 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5301 | |
---|
5302 | # So? What about this header? |
---|
5303 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5304 | yes:no: ) |
---|
5305 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5306 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5307 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5308 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5309 | ac_header_preproc=yes |
---|
5310 | ;; |
---|
5311 | no:yes:* ) |
---|
5312 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5313 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5314 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5315 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5316 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5317 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5318 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5319 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5321 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5322 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5323 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5324 | ( |
---|
5325 | cat <<\_ASBOX |
---|
5326 | ## ----------------------------------------------- ## |
---|
5327 | ## Report this to mzvscyhtq (at) 0pointer (dot) de ## |
---|
5328 | ## ----------------------------------------------- ## |
---|
5329 | _ASBOX |
---|
5330 | ) | |
---|
5331 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5332 | ;; |
---|
5333 | esac |
---|
5334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5338 | else |
---|
5339 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5340 | fi |
---|
5341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5342 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5343 | |
---|
5344 | fi |
---|
5345 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5346 | cat >>confdefs.h <<_ACEOF |
---|
5347 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5348 | _ACEOF |
---|
5349 | |
---|
5350 | fi |
---|
5351 | |
---|
5352 | done |
---|
5353 | |
---|
5354 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
5355 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
5356 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
5357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5358 | else |
---|
5359 | if test "$cross_compiling" = yes; then |
---|
5360 | ac_cv_func_malloc_0_nonnull=no |
---|
5361 | else |
---|
5362 | cat >conftest.$ac_ext <<_ACEOF |
---|
5363 | /* confdefs.h. */ |
---|
5364 | _ACEOF |
---|
5365 | cat confdefs.h >>conftest.$ac_ext |
---|
5366 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5367 | /* end confdefs.h. */ |
---|
5368 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
5369 | # include <stdlib.h> |
---|
5370 | #else |
---|
5371 | char *malloc (); |
---|
5372 | #endif |
---|
5373 | |
---|
5374 | int |
---|
5375 | main () |
---|
5376 | { |
---|
5377 | exit (malloc (0) ? 0 : 1); |
---|
5378 | ; |
---|
5379 | return 0; |
---|
5380 | } |
---|
5381 | _ACEOF |
---|
5382 | rm -f conftest$ac_exeext |
---|
5383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5384 | (eval $ac_link) 2>&5 |
---|
5385 | ac_status=$? |
---|
5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5387 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5389 | (eval $ac_try) 2>&5 |
---|
5390 | ac_status=$? |
---|
5391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5392 | (exit $ac_status); }; }; then |
---|
5393 | ac_cv_func_malloc_0_nonnull=yes |
---|
5394 | else |
---|
5395 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5396 | echo "$as_me: failed program was:" >&5 |
---|
5397 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5398 | |
---|
5399 | ( exit $ac_status ) |
---|
5400 | ac_cv_func_malloc_0_nonnull=no |
---|
5401 | fi |
---|
5402 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5403 | fi |
---|
5404 | fi |
---|
5405 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
5406 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
5407 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
5408 | |
---|
5409 | cat >>confdefs.h <<\_ACEOF |
---|
5410 | #define HAVE_MALLOC 1 |
---|
5411 | _ACEOF |
---|
5412 | |
---|
5413 | else |
---|
5414 | cat >>confdefs.h <<\_ACEOF |
---|
5415 | #define HAVE_MALLOC 0 |
---|
5416 | _ACEOF |
---|
5417 | |
---|
5418 | case $LIBOBJS in |
---|
5419 | "malloc.$ac_objext" | \ |
---|
5420 | *" malloc.$ac_objext" | \ |
---|
5421 | "malloc.$ac_objext "* | \ |
---|
5422 | *" malloc.$ac_objext "* ) ;; |
---|
5423 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
5424 | esac |
---|
5425 | |
---|
5426 | |
---|
5427 | cat >>confdefs.h <<\_ACEOF |
---|
5428 | #define malloc rpl_malloc |
---|
5429 | _ACEOF |
---|
5430 | |
---|
5431 | fi |
---|
5432 | |
---|
5433 | |
---|
5434 | |
---|
5435 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
5436 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
---|
5437 | if test "${ac_cv_type_signal+set}" = set; then |
---|
5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5439 | else |
---|
5440 | cat >conftest.$ac_ext <<_ACEOF |
---|
5441 | /* confdefs.h. */ |
---|
5442 | _ACEOF |
---|
5443 | cat confdefs.h >>conftest.$ac_ext |
---|
5444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5445 | /* end confdefs.h. */ |
---|
5446 | #include <sys/types.h> |
---|
5447 | #include <signal.h> |
---|
5448 | #ifdef signal |
---|
5449 | # undef signal |
---|
5450 | #endif |
---|
5451 | #ifdef __cplusplus |
---|
5452 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
5453 | #else |
---|
5454 | void (*signal ()) (); |
---|
5455 | #endif |
---|
5456 | |
---|
5457 | int |
---|
5458 | main () |
---|
5459 | { |
---|
5460 | int i; |
---|
5461 | ; |
---|
5462 | return 0; |
---|
5463 | } |
---|
5464 | _ACEOF |
---|
5465 | rm -f conftest.$ac_objext |
---|
5466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5467 | (eval $ac_compile) 2>conftest.er1 |
---|
5468 | ac_status=$? |
---|
5469 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5470 | rm -f conftest.er1 |
---|
5471 | cat conftest.err >&5 |
---|
5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5473 | (exit $ac_status); } && |
---|
5474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
5475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5476 | (eval $ac_try) 2>&5 |
---|
5477 | ac_status=$? |
---|
5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5479 | (exit $ac_status); }; } && |
---|
5480 | { ac_try='test -s conftest.$ac_objext' |
---|
5481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5482 | (eval $ac_try) 2>&5 |
---|
5483 | ac_status=$? |
---|
5484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5485 | (exit $ac_status); }; }; then |
---|
5486 | ac_cv_type_signal=void |
---|
5487 | else |
---|
5488 | echo "$as_me: failed program was:" >&5 |
---|
5489 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5490 | |
---|
5491 | ac_cv_type_signal=int |
---|
5492 | fi |
---|
5493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5494 | fi |
---|
5495 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
5496 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
---|
5497 | |
---|
5498 | cat >>confdefs.h <<_ACEOF |
---|
5499 | #define RETSIGTYPE $ac_cv_type_signal |
---|
5500 | _ACEOF |
---|
5501 | |
---|
5502 | |
---|
5503 | |
---|
5504 | for ac_func in vprintf |
---|
5505 | do |
---|
5506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5507 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
5508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
5509 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
5510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5511 | else |
---|
5512 | cat >conftest.$ac_ext <<_ACEOF |
---|
5513 | /* confdefs.h. */ |
---|
5514 | _ACEOF |
---|
5515 | cat confdefs.h >>conftest.$ac_ext |
---|
5516 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5517 | /* end confdefs.h. */ |
---|
5518 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
5519 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
5520 | #define $ac_func innocuous_$ac_func |
---|
5521 | |
---|
5522 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5523 | which can conflict with char $ac_func (); below. |
---|
5524 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5525 | <limits.h> exists even on freestanding compilers. */ |
---|
5526 | |
---|
5527 | #ifdef __STDC__ |
---|
5528 | # include <limits.h> |
---|
5529 | #else |
---|
5530 | # include <assert.h> |
---|
5531 | #endif |
---|
5532 | |
---|
5533 | #undef $ac_func |
---|
5534 | |
---|
5535 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5536 | #ifdef __cplusplus |
---|
5537 | extern "C" |
---|
5538 | { |
---|
5539 | #endif |
---|
5540 | /* We use char because int might match the return type of a gcc2 |
---|
5541 | builtin and then its argument prototype would still apply. */ |
---|
5542 | char $ac_func (); |
---|
5543 | /* The GNU C library defines this for functions which it implements |
---|
5544 | to always fail with ENOSYS. Some functions are actually named |
---|
5545 | something starting with __ and the normal name is an alias. */ |
---|
5546 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5547 | choke me |
---|
5548 | #else |
---|
5549 | char (*f) () = $ac_func; |
---|
5550 | #endif |
---|
5551 | #ifdef __cplusplus |
---|
5552 | } |
---|
5553 | #endif |
---|
5554 | |
---|
5555 | int |
---|
5556 | main () |
---|
5557 | { |
---|
5558 | return f != $ac_func; |
---|
5559 | ; |
---|
5560 | return 0; |
---|
5561 | } |
---|
5562 | _ACEOF |
---|
5563 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5565 | (eval $ac_link) 2>conftest.er1 |
---|
5566 | ac_status=$? |
---|
5567 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5568 | rm -f conftest.er1 |
---|
5569 | cat conftest.err >&5 |
---|
5570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5571 | (exit $ac_status); } && |
---|
5572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
5573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5574 | (eval $ac_try) 2>&5 |
---|
5575 | ac_status=$? |
---|
5576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5577 | (exit $ac_status); }; } && |
---|
5578 | { ac_try='test -s conftest$ac_exeext' |
---|
5579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5580 | (eval $ac_try) 2>&5 |
---|
5581 | ac_status=$? |
---|
5582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5583 | (exit $ac_status); }; }; then |
---|
5584 | eval "$as_ac_var=yes" |
---|
5585 | else |
---|
5586 | echo "$as_me: failed program was:" >&5 |
---|
5587 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5588 | |
---|
5589 | eval "$as_ac_var=no" |
---|
5590 | fi |
---|
5591 | rm -f conftest.err conftest.$ac_objext \ |
---|
5592 | conftest$ac_exeext conftest.$ac_ext |
---|
5593 | fi |
---|
5594 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
5595 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
5596 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5597 | cat >>confdefs.h <<_ACEOF |
---|
5598 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5599 | _ACEOF |
---|
5600 | |
---|
5601 | echo "$as_me:$LINENO: checking for _doprnt" >&5 |
---|
5602 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 |
---|
5603 | if test "${ac_cv_func__doprnt+set}" = set; then |
---|
5604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5605 | else |
---|
5606 | cat >conftest.$ac_ext <<_ACEOF |
---|
5607 | /* confdefs.h. */ |
---|
5608 | _ACEOF |
---|
5609 | cat confdefs.h >>conftest.$ac_ext |
---|
5610 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5611 | /* end confdefs.h. */ |
---|
5612 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
---|
5613 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
5614 | #define _doprnt innocuous__doprnt |
---|
5615 | |
---|
5616 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5617 | which can conflict with char _doprnt (); below. |
---|
5618 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5619 | <limits.h> exists even on freestanding compilers. */ |
---|
5620 | |
---|
5621 | #ifdef __STDC__ |
---|
5622 | # include <limits.h> |
---|
5623 | #else |
---|
5624 | # include <assert.h> |
---|
5625 | #endif |
---|
5626 | |
---|
5627 | #undef _doprnt |
---|
5628 | |
---|
5629 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5630 | #ifdef __cplusplus |
---|
5631 | extern "C" |
---|
5632 | { |
---|
5633 | #endif |
---|
5634 | /* We use char because int might match the return type of a gcc2 |
---|
5635 | builtin and then its argument prototype would still apply. */ |
---|
5636 | char _doprnt (); |
---|
5637 | /* The GNU C library defines this for functions which it implements |
---|
5638 | to always fail with ENOSYS. Some functions are actually named |
---|
5639 | something starting with __ and the normal name is an alias. */ |
---|
5640 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
5641 | choke me |
---|
5642 | #else |
---|
5643 | char (*f) () = _doprnt; |
---|
5644 | #endif |
---|
5645 | #ifdef __cplusplus |
---|
5646 | } |
---|
5647 | #endif |
---|
5648 | |
---|
5649 | int |
---|
5650 | main () |
---|
5651 | { |
---|
5652 | return f != _doprnt; |
---|
5653 | ; |
---|
5654 | return 0; |
---|
5655 | } |
---|
5656 | _ACEOF |
---|
5657 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5659 | (eval $ac_link) 2>conftest.er1 |
---|
5660 | ac_status=$? |
---|
5661 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5662 | rm -f conftest.er1 |
---|
5663 | cat conftest.err >&5 |
---|
5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5665 | (exit $ac_status); } && |
---|
5666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
5667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5668 | (eval $ac_try) 2>&5 |
---|
5669 | ac_status=$? |
---|
5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5671 | (exit $ac_status); }; } && |
---|
5672 | { ac_try='test -s conftest$ac_exeext' |
---|
5673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5674 | (eval $ac_try) 2>&5 |
---|
5675 | ac_status=$? |
---|
5676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5677 | (exit $ac_status); }; }; then |
---|
5678 | ac_cv_func__doprnt=yes |
---|
5679 | else |
---|
5680 | echo "$as_me: failed program was:" >&5 |
---|
5681 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5682 | |
---|
5683 | ac_cv_func__doprnt=no |
---|
5684 | fi |
---|
5685 | rm -f conftest.err conftest.$ac_objext \ |
---|
5686 | conftest$ac_exeext conftest.$ac_ext |
---|
5687 | fi |
---|
5688 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
---|
5689 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 |
---|
5690 | if test $ac_cv_func__doprnt = yes; then |
---|
5691 | |
---|
5692 | cat >>confdefs.h <<\_ACEOF |
---|
5693 | #define HAVE_DOPRNT 1 |
---|
5694 | _ACEOF |
---|
5695 | |
---|
5696 | fi |
---|
5697 | |
---|
5698 | fi |
---|
5699 | done |
---|
5700 | |
---|
5701 | |
---|
5702 | |
---|
5703 | |
---|
5704 | |
---|
5705 | |
---|
5706 | |
---|
5707 | |
---|
5708 | |
---|
5709 | |
---|
5710 | |
---|
5711 | |
---|
5712 | |
---|
5713 | for ac_func in alarm dup2 memset select setenv socket strchr strdup strerror strrchr strspn |
---|
5714 | do |
---|
5715 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5716 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
5717 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
5718 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5720 | else |
---|
5721 | cat >conftest.$ac_ext <<_ACEOF |
---|
5722 | /* confdefs.h. */ |
---|
5723 | _ACEOF |
---|
5724 | cat confdefs.h >>conftest.$ac_ext |
---|
5725 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5726 | /* end confdefs.h. */ |
---|
5727 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
5728 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
5729 | #define $ac_func innocuous_$ac_func |
---|
5730 | |
---|
5731 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5732 | which can conflict with char $ac_func (); below. |
---|
5733 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5734 | <limits.h> exists even on freestanding compilers. */ |
---|
5735 | |
---|
5736 | #ifdef __STDC__ |
---|
5737 | # include <limits.h> |
---|
5738 | #else |
---|
5739 | # include <assert.h> |
---|
5740 | #endif |
---|
5741 | |
---|
5742 | #undef $ac_func |
---|
5743 | |
---|
5744 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5745 | #ifdef __cplusplus |
---|
5746 | extern "C" |
---|
5747 | { |
---|
5748 | #endif |
---|
5749 | /* We use char because int might match the return type of a gcc2 |
---|
5750 | builtin and then its argument prototype would still apply. */ |
---|
5751 | char $ac_func (); |
---|
5752 | /* The GNU C library defines this for functions which it implements |
---|
5753 | to always fail with ENOSYS. Some functions are actually named |
---|
5754 | something starting with __ and the normal name is an alias. */ |
---|
5755 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5756 | choke me |
---|
5757 | #else |
---|
5758 | char (*f) () = $ac_func; |
---|
5759 | #endif |
---|
5760 | #ifdef __cplusplus |
---|
5761 | } |
---|
5762 | #endif |
---|
5763 | |
---|
5764 | int |
---|
5765 | main () |
---|
5766 | { |
---|
5767 | return f != $ac_func; |
---|
5768 | ; |
---|
5769 | return 0; |
---|
5770 | } |
---|
5771 | _ACEOF |
---|
5772 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5774 | (eval $ac_link) 2>conftest.er1 |
---|
5775 | ac_status=$? |
---|
5776 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5777 | rm -f conftest.er1 |
---|
5778 | cat conftest.err >&5 |
---|
5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5780 | (exit $ac_status); } && |
---|
5781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
5782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5783 | (eval $ac_try) 2>&5 |
---|
5784 | ac_status=$? |
---|
5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5786 | (exit $ac_status); }; } && |
---|
5787 | { ac_try='test -s conftest$ac_exeext' |
---|
5788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5789 | (eval $ac_try) 2>&5 |
---|
5790 | ac_status=$? |
---|
5791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5792 | (exit $ac_status); }; }; then |
---|
5793 | eval "$as_ac_var=yes" |
---|
5794 | else |
---|
5795 | echo "$as_me: failed program was:" >&5 |
---|
5796 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5797 | |
---|
5798 | eval "$as_ac_var=no" |
---|
5799 | fi |
---|
5800 | rm -f conftest.err conftest.$ac_objext \ |
---|
5801 | conftest$ac_exeext conftest.$ac_ext |
---|
5802 | fi |
---|
5803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
5804 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
5805 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5806 | cat >>confdefs.h <<_ACEOF |
---|
5807 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5808 | _ACEOF |
---|
5809 | |
---|
5810 | fi |
---|
5811 | done |
---|
5812 | |
---|
5813 | |
---|
5814 | |
---|
5815 | succeeded=no |
---|
5816 | |
---|
5817 | if test -z "$PKG_CONFIG"; then |
---|
5818 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
5819 | set dummy pkg-config; ac_word=$2 |
---|
5820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5822 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
5823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5824 | else |
---|
5825 | case $PKG_CONFIG in |
---|
5826 | [\\/]* | ?:[\\/]*) |
---|
5827 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
5828 | ;; |
---|
5829 | *) |
---|
5830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5831 | for as_dir in $PATH |
---|
5832 | do |
---|
5833 | IFS=$as_save_IFS |
---|
5834 | test -z "$as_dir" && as_dir=. |
---|
5835 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5836 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5837 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
5838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5839 | break 2 |
---|
5840 | fi |
---|
5841 | done |
---|
5842 | done |
---|
5843 | |
---|
5844 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
---|
5845 | ;; |
---|
5846 | esac |
---|
5847 | fi |
---|
5848 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
5849 | |
---|
5850 | if test -n "$PKG_CONFIG"; then |
---|
5851 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
5852 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
5853 | else |
---|
5854 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5855 | echo "${ECHO_T}no" >&6 |
---|
5856 | fi |
---|
5857 | |
---|
5858 | fi |
---|
5859 | |
---|
5860 | if test "$PKG_CONFIG" = "no" ; then |
---|
5861 | echo "*** The pkg-config script could not be found. Make sure it is" |
---|
5862 | echo "*** in your path, or set the PKG_CONFIG environment variable" |
---|
5863 | echo "*** to the full path to pkg-config." |
---|
5864 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." |
---|
5865 | else |
---|
5866 | PKG_CONFIG_MIN_VERSION=0.9.0 |
---|
5867 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
---|
5868 | echo "$as_me:$LINENO: checking for libdaemon >= 0.5 " >&5 |
---|
5869 | echo $ECHO_N "checking for libdaemon >= 0.5 ... $ECHO_C" >&6 |
---|
5870 | |
---|
5871 | if $PKG_CONFIG --exists " libdaemon >= 0.5 " ; then |
---|
5872 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5873 | echo "${ECHO_T}yes" >&6 |
---|
5874 | succeeded=yes |
---|
5875 | |
---|
5876 | echo "$as_me:$LINENO: checking LIBDAEMON_CFLAGS" >&5 |
---|
5877 | echo $ECHO_N "checking LIBDAEMON_CFLAGS... $ECHO_C" >&6 |
---|
5878 | LIBDAEMON_CFLAGS=`$PKG_CONFIG --cflags " libdaemon >= 0.5 "` |
---|
5879 | echo "$as_me:$LINENO: result: $LIBDAEMON_CFLAGS" >&5 |
---|
5880 | echo "${ECHO_T}$LIBDAEMON_CFLAGS" >&6 |
---|
5881 | |
---|
5882 | echo "$as_me:$LINENO: checking LIBDAEMON_LIBS" >&5 |
---|
5883 | echo $ECHO_N "checking LIBDAEMON_LIBS... $ECHO_C" >&6 |
---|
5884 | LIBDAEMON_LIBS=`$PKG_CONFIG --libs " libdaemon >= 0.5 "` |
---|
5885 | echo "$as_me:$LINENO: result: $LIBDAEMON_LIBS" >&5 |
---|
5886 | echo "${ECHO_T}$LIBDAEMON_LIBS" >&6 |
---|
5887 | else |
---|
5888 | LIBDAEMON_CFLAGS="" |
---|
5889 | LIBDAEMON_LIBS="" |
---|
5890 | ## If we have a custom action on failure, don't print errors, but |
---|
5891 | ## do set a variable so people can do so. |
---|
5892 | LIBDAEMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " libdaemon >= 0.5 "` |
---|
5893 | echo $LIBDAEMON_PKG_ERRORS |
---|
5894 | fi |
---|
5895 | |
---|
5896 | |
---|
5897 | |
---|
5898 | else |
---|
5899 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
---|
5900 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
---|
5901 | fi |
---|
5902 | fi |
---|
5903 | |
---|
5904 | if test $succeeded = yes; then |
---|
5905 | : |
---|
5906 | else |
---|
5907 | { { echo "$as_me:$LINENO: error: Library requirements ( libdaemon >= 0.5 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 |
---|
5908 | echo "$as_me: error: Library requirements ( libdaemon >= 0.5 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} |
---|
5909 | { (exit 1); exit 1; }; } |
---|
5910 | fi |
---|
5911 | |
---|
5912 | |
---|
5913 | |
---|
5914 | |
---|
5915 | # Init script location |
---|
5916 | |
---|
5917 | # Check whether --with-initdir or --without-initdir was given. |
---|
5918 | if test "${with_initdir+set}" = set; then |
---|
5919 | withval="$with_initdir" |
---|
5920 | |
---|
5921 | fi; |
---|
5922 | |
---|
5923 | test "x$with_initdir" = xyes -o "x$with_initdir" = xno && with_initdir= |
---|
5924 | |
---|
5925 | if test "x$with_initdir" = x ; then |
---|
5926 | if test -d /etc/init.d ; then |
---|
5927 | SYSINITDIR=/etc/init.d |
---|
5928 | else |
---|
5929 | if test -d /etc/rc.d/init.d ; then |
---|
5930 | SYSINITDIR=/etc/rc.d/init.d |
---|
5931 | else |
---|
5932 | { { echo "$as_me:$LINENO: error: missing --with-initdir=DIR" >&5 |
---|
5933 | echo "$as_me: error: missing --with-initdir=DIR" >&2;} |
---|
5934 | { (exit 1); exit 1; }; } |
---|
5935 | fi |
---|
5936 | fi |
---|
5937 | else |
---|
5938 | SYSINITDIR="$with_initdir" |
---|
5939 | fi |
---|
5940 | |
---|
5941 | { echo "$as_me:$LINENO: *** Init sript will be installed in $SYSINITDIR ***" >&5 |
---|
5942 | echo "$as_me: *** Init sript will be installed in $SYSINITDIR ***" >&6;} |
---|
5943 | |
---|
5944 | |
---|
5945 | # LYNX documentation generation |
---|
5946 | # Check whether --enable-lynx or --disable-lynx was given. |
---|
5947 | if test "${enable_lynx+set}" = set; then |
---|
5948 | enableval="$enable_lynx" |
---|
5949 | case "${enableval}" in |
---|
5950 | yes) lynx=yes ;; |
---|
5951 | no) lynx=no ;; |
---|
5952 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-lynx" >&5 |
---|
5953 | echo "$as_me: error: bad value ${enableval} for --disable-lynx" >&2;} |
---|
5954 | { (exit 1); exit 1; }; } ;; |
---|
5955 | esac |
---|
5956 | else |
---|
5957 | lynx=yes |
---|
5958 | fi; |
---|
5959 | |
---|
5960 | if test x$lynx = xyes ; then |
---|
5961 | # Extract the first word of "lynx", so it can be a program name with args. |
---|
5962 | set dummy lynx; ac_word=$2 |
---|
5963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5965 | if test "${ac_cv_prog_have_lynx+set}" = set; then |
---|
5966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5967 | else |
---|
5968 | if test -n "$have_lynx"; then |
---|
5969 | ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test. |
---|
5970 | else |
---|
5971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5972 | for as_dir in $PATH |
---|
5973 | do |
---|
5974 | IFS=$as_save_IFS |
---|
5975 | test -z "$as_dir" && as_dir=. |
---|
5976 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5978 | ac_cv_prog_have_lynx="yes" |
---|
5979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5980 | break 2 |
---|
5981 | fi |
---|
5982 | done |
---|
5983 | done |
---|
5984 | |
---|
5985 | test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no" |
---|
5986 | fi |
---|
5987 | fi |
---|
5988 | have_lynx=$ac_cv_prog_have_lynx |
---|
5989 | if test -n "$have_lynx"; then |
---|
5990 | echo "$as_me:$LINENO: result: $have_lynx" >&5 |
---|
5991 | echo "${ECHO_T}$have_lynx" >&6 |
---|
5992 | else |
---|
5993 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5994 | echo "${ECHO_T}no" >&6 |
---|
5995 | fi |
---|
5996 | |
---|
5997 | |
---|
5998 | if test x$have_lynx = xno ; then |
---|
5999 | { { echo "$as_me:$LINENO: error: *** Sorry, you have to install lynx or use --disable-lynx ***" >&5 |
---|
6000 | echo "$as_me: error: *** Sorry, you have to install lynx or use --disable-lynx ***" >&2;} |
---|
6001 | { (exit 1); exit 1; }; } |
---|
6002 | fi |
---|
6003 | fi |
---|
6004 | |
---|
6005 | |
---|
6006 | |
---|
6007 | if test "x$lynx" = xyes; then |
---|
6008 | USE_LYNX_TRUE= |
---|
6009 | USE_LYNX_FALSE='#' |
---|
6010 | else |
---|
6011 | USE_LYNX_TRUE='#' |
---|
6012 | USE_LYNX_FALSE= |
---|
6013 | fi |
---|
6014 | |
---|
6015 | |
---|
6016 | # XMLTOMAN manpage generation |
---|
6017 | # Check whether --enable-xmltoman or --disable-xmltoman was given. |
---|
6018 | if test "${enable_xmltoman+set}" = set; then |
---|
6019 | enableval="$enable_xmltoman" |
---|
6020 | case "${enableval}" in |
---|
6021 | yes) xmltoman=yes ;; |
---|
6022 | no) xmltoman=no ;; |
---|
6023 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-xmltoman" >&5 |
---|
6024 | echo "$as_me: error: bad value ${enableval} for --disable-xmltoman" >&2;} |
---|
6025 | { (exit 1); exit 1; }; } ;; |
---|
6026 | esac |
---|
6027 | else |
---|
6028 | xmltoman=yes |
---|
6029 | fi; |
---|
6030 | |
---|
6031 | if test x$xmltoman = xyes ; then |
---|
6032 | # Extract the first word of "xmltoman", so it can be a program name with args. |
---|
6033 | set dummy xmltoman; ac_word=$2 |
---|
6034 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6036 | if test "${ac_cv_prog_have_xmltoman+set}" = set; then |
---|
6037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6038 | else |
---|
6039 | if test -n "$have_xmltoman"; then |
---|
6040 | ac_cv_prog_have_xmltoman="$have_xmltoman" # Let the user override the test. |
---|
6041 | else |
---|
6042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6043 | for as_dir in $PATH |
---|
6044 | do |
---|
6045 | IFS=$as_save_IFS |
---|
6046 | test -z "$as_dir" && as_dir=. |
---|
6047 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6048 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6049 | ac_cv_prog_have_xmltoman="yes" |
---|
6050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6051 | break 2 |
---|
6052 | fi |
---|
6053 | done |
---|
6054 | done |
---|
6055 | |
---|
6056 | test -z "$ac_cv_prog_have_xmltoman" && ac_cv_prog_have_xmltoman="no" |
---|
6057 | fi |
---|
6058 | fi |
---|
6059 | have_xmltoman=$ac_cv_prog_have_xmltoman |
---|
6060 | if test -n "$have_xmltoman"; then |
---|
6061 | echo "$as_me:$LINENO: result: $have_xmltoman" >&5 |
---|
6062 | echo "${ECHO_T}$have_xmltoman" >&6 |
---|
6063 | else |
---|
6064 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6065 | echo "${ECHO_T}no" >&6 |
---|
6066 | fi |
---|
6067 | |
---|
6068 | |
---|
6069 | if test x$have_xmltoman = xno ; then |
---|
6070 | { echo "$as_me:$LINENO: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&5 |
---|
6071 | echo "$as_me: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&2;} |
---|
6072 | xmltoman=no |
---|
6073 | fi |
---|
6074 | fi |
---|
6075 | |
---|
6076 | |
---|
6077 | |
---|
6078 | if test "x$xmltoman" = xyes; then |
---|
6079 | USE_XMLTOMAN_TRUE= |
---|
6080 | USE_XMLTOMAN_FALSE='#' |
---|
6081 | else |
---|
6082 | USE_XMLTOMAN_TRUE='#' |
---|
6083 | USE_XMLTOMAN_FALSE= |
---|
6084 | fi |
---|
6085 | |
---|
6086 | |
---|
6087 | # subversion release number generation |
---|
6088 | # Check whether --enable-subversion or --disable-subversion was given. |
---|
6089 | if test "${enable_subversion+set}" = set; then |
---|
6090 | enableval="$enable_subversion" |
---|
6091 | case "${enableval}" in |
---|
6092 | yes) subversion=yes ;; |
---|
6093 | no) subversion=no ;; |
---|
6094 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-subversion" >&5 |
---|
6095 | echo "$as_me: error: bad value ${enableval} for --disable-subversion" >&2;} |
---|
6096 | { (exit 1); exit 1; }; } ;; |
---|
6097 | esac |
---|
6098 | else |
---|
6099 | subversion=yes |
---|
6100 | fi; |
---|
6101 | |
---|
6102 | if test x$subversion = xyes ; then |
---|
6103 | # Extract the first word of "svn", so it can be a program name with args. |
---|
6104 | set dummy svn; ac_word=$2 |
---|
6105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6107 | if test "${ac_cv_prog_have_subversion+set}" = set; then |
---|
6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6109 | else |
---|
6110 | if test -n "$have_subversion"; then |
---|
6111 | ac_cv_prog_have_subversion="$have_subversion" # Let the user override the test. |
---|
6112 | else |
---|
6113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6114 | for as_dir in $PATH |
---|
6115 | do |
---|
6116 | IFS=$as_save_IFS |
---|
6117 | test -z "$as_dir" && as_dir=. |
---|
6118 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6120 | ac_cv_prog_have_subversion="yes" |
---|
6121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6122 | break 2 |
---|
6123 | fi |
---|
6124 | done |
---|
6125 | done |
---|
6126 | |
---|
6127 | test -z "$ac_cv_prog_have_subversion" && ac_cv_prog_have_subversion="no" |
---|
6128 | fi |
---|
6129 | fi |
---|
6130 | have_subversion=$ac_cv_prog_have_subversion |
---|
6131 | if test -n "$have_subversion"; then |
---|
6132 | echo "$as_me:$LINENO: result: $have_subversion" >&5 |
---|
6133 | echo "${ECHO_T}$have_subversion" >&6 |
---|
6134 | else |
---|
6135 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6136 | echo "${ECHO_T}no" >&6 |
---|
6137 | fi |
---|
6138 | |
---|
6139 | |
---|
6140 | if test x$have_subversion = xno ; then |
---|
6141 | { echo "$as_me:$LINENO: WARNING: *** Not rebuilding svn-release.h as subversion is not found ***" >&5 |
---|
6142 | echo "$as_me: WARNING: *** Not rebuilding svn-release.h as subversion is not found ***" >&2;} |
---|
6143 | subversion=no |
---|
6144 | fi |
---|
6145 | fi |
---|
6146 | |
---|
6147 | |
---|
6148 | |
---|
6149 | if test "x$subversion" = xyes; then |
---|
6150 | USE_SUBVERSION_TRUE= |
---|
6151 | USE_SUBVERSION_FALSE='#' |
---|
6152 | else |
---|
6153 | USE_SUBVERSION_TRUE='#' |
---|
6154 | USE_SUBVERSION_FALSE= |
---|
6155 | fi |
---|
6156 | |
---|
6157 | |
---|
6158 | ac_config_files="$ac_config_files src/Makefile Makefile man/Makefile conf/Makefile doc/Makefile doc/README.html patches/Makefile ifplugd.spec" |
---|
6159 | |
---|
6160 | cat >confcache <<\_ACEOF |
---|
6161 | # This file is a shell script that caches the results of configure |
---|
6162 | # tests run on this system so they can be shared between configure |
---|
6163 | # scripts and configure runs, see configure's option --config-cache. |
---|
6164 | # It is not useful on other systems. If it contains results you don't |
---|
6165 | # want to keep, you may remove or edit it. |
---|
6166 | # |
---|
6167 | # config.status only pays attention to the cache file if you give it |
---|
6168 | # the --recheck option to rerun configure. |
---|
6169 | # |
---|
6170 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6171 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6172 | # following values. |
---|
6173 | |
---|
6174 | _ACEOF |
---|
6175 | |
---|
6176 | # The following way of writing the cache mishandles newlines in values, |
---|
6177 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6178 | # So, don't put newlines in cache variables' values. |
---|
6179 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6180 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6181 | { |
---|
6182 | (set) 2>&1 | |
---|
6183 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
6184 | *ac_space=\ *) |
---|
6185 | # `set' does not quote correctly, so add quotes (double-quote |
---|
6186 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
6187 | sed -n \ |
---|
6188 | "s/'/'\\\\''/g; |
---|
6189 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6190 | ;; |
---|
6191 | *) |
---|
6192 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6193 | sed -n \ |
---|
6194 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
6195 | ;; |
---|
6196 | esac; |
---|
6197 | } | |
---|
6198 | sed ' |
---|
6199 | t clear |
---|
6200 | : clear |
---|
6201 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6202 | t end |
---|
6203 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6204 | : end' >>confcache |
---|
6205 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
6206 | if test -w $cache_file; then |
---|
6207 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
6208 | cat confcache >$cache_file |
---|
6209 | else |
---|
6210 | echo "not updating unwritable cache $cache_file" |
---|
6211 | fi |
---|
6212 | fi |
---|
6213 | rm -f confcache |
---|
6214 | |
---|
6215 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6216 | # Let make expand exec_prefix. |
---|
6217 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6218 | |
---|
6219 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
6220 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
6221 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6222 | # (actually we leave an empty line to preserve line numbers). |
---|
6223 | if test "x$srcdir" = x.; then |
---|
6224 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
6225 | s/:*\$(srcdir):*/:/; |
---|
6226 | s/:*\${srcdir}:*/:/; |
---|
6227 | s/:*@srcdir@:*/:/; |
---|
6228 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
6229 | s/:*$//; |
---|
6230 | s/^[^=]*=[ ]*$//; |
---|
6231 | }' |
---|
6232 | fi |
---|
6233 | |
---|
6234 | DEFS=-DHAVE_CONFIG_H |
---|
6235 | |
---|
6236 | ac_libobjs= |
---|
6237 | ac_ltlibobjs= |
---|
6238 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6239 | # 1. Remove the extension, and $U if already installed. |
---|
6240 | ac_i=`echo "$ac_i" | |
---|
6241 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
6242 | # 2. Add them. |
---|
6243 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
6244 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
6245 | done |
---|
6246 | LIBOBJS=$ac_libobjs |
---|
6247 | |
---|
6248 | LTLIBOBJS=$ac_ltlibobjs |
---|
6249 | |
---|
6250 | |
---|
6251 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6252 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
6253 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6254 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
6255 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6256 | { (exit 1); exit 1; }; } |
---|
6257 | fi |
---|
6258 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6259 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6260 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6261 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6262 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6263 | { (exit 1); exit 1; }; } |
---|
6264 | fi |
---|
6265 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6266 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
6267 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6268 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
6269 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6270 | { (exit 1); exit 1; }; } |
---|
6271 | fi |
---|
6272 | if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then |
---|
6273 | { { echo "$as_me:$LINENO: error: conditional \"USE_LYNX\" was never defined. |
---|
6274 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6275 | echo "$as_me: error: conditional \"USE_LYNX\" was never defined. |
---|
6276 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6277 | { (exit 1); exit 1; }; } |
---|
6278 | fi |
---|
6279 | if test -z "${USE_XMLTOMAN_TRUE}" && test -z "${USE_XMLTOMAN_FALSE}"; then |
---|
6280 | { { echo "$as_me:$LINENO: error: conditional \"USE_XMLTOMAN\" was never defined. |
---|
6281 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6282 | echo "$as_me: error: conditional \"USE_XMLTOMAN\" was never defined. |
---|
6283 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6284 | { (exit 1); exit 1; }; } |
---|
6285 | fi |
---|
6286 | if test -z "${USE_SUBVERSION_TRUE}" && test -z "${USE_SUBVERSION_FALSE}"; then |
---|
6287 | { { echo "$as_me:$LINENO: error: conditional \"USE_SUBVERSION\" was never defined. |
---|
6288 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6289 | echo "$as_me: error: conditional \"USE_SUBVERSION\" was never defined. |
---|
6290 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6291 | { (exit 1); exit 1; }; } |
---|
6292 | fi |
---|
6293 | |
---|
6294 | : ${CONFIG_STATUS=./config.status} |
---|
6295 | ac_clean_files_save=$ac_clean_files |
---|
6296 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6297 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
6298 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6299 | cat >$CONFIG_STATUS <<_ACEOF |
---|
6300 | #! $SHELL |
---|
6301 | # Generated by $as_me. |
---|
6302 | # Run this file to recreate the current configuration. |
---|
6303 | # Compiler output produced by configure, useful for debugging |
---|
6304 | # configure, is in config.log if it exists. |
---|
6305 | |
---|
6306 | debug=false |
---|
6307 | ac_cs_recheck=false |
---|
6308 | ac_cs_silent=false |
---|
6309 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6310 | _ACEOF |
---|
6311 | |
---|
6312 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6313 | ## --------------------- ## |
---|
6314 | ## M4sh Initialization. ## |
---|
6315 | ## --------------------- ## |
---|
6316 | |
---|
6317 | # Be Bourne compatible |
---|
6318 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
6319 | emulate sh |
---|
6320 | NULLCMD=: |
---|
6321 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
6322 | # is contrary to our usage. Disable this feature. |
---|
6323 | alias -g '${1+"$@"}'='"$@"' |
---|
6324 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
6325 | set -o posix |
---|
6326 | fi |
---|
6327 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6328 | |
---|
6329 | # Support unset when possible. |
---|
6330 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
6331 | as_unset=unset |
---|
6332 | else |
---|
6333 | as_unset=false |
---|
6334 | fi |
---|
6335 | |
---|
6336 | |
---|
6337 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
6338 | $as_unset ENV MAIL MAILPATH |
---|
6339 | PS1='$ ' |
---|
6340 | PS2='> ' |
---|
6341 | PS4='+ ' |
---|
6342 | |
---|
6343 | # NLS nuisances. |
---|
6344 | for as_var in \ |
---|
6345 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
6346 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
6347 | LC_TELEPHONE LC_TIME |
---|
6348 | do |
---|
6349 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
6350 | eval $as_var=C; export $as_var |
---|
6351 | else |
---|
6352 | $as_unset $as_var |
---|
6353 | fi |
---|
6354 | done |
---|
6355 | |
---|
6356 | # Required to use basename. |
---|
6357 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6358 | as_expr=expr |
---|
6359 | else |
---|
6360 | as_expr=false |
---|
6361 | fi |
---|
6362 | |
---|
6363 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
6364 | as_basename=basename |
---|
6365 | else |
---|
6366 | as_basename=false |
---|
6367 | fi |
---|
6368 | |
---|
6369 | |
---|
6370 | # Name of the executable. |
---|
6371 | as_me=`$as_basename "$0" || |
---|
6372 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6373 | X"$0" : 'X\(//\)$' \| \ |
---|
6374 | X"$0" : 'X\(/\)$' \| \ |
---|
6375 | . : '\(.\)' 2>/dev/null || |
---|
6376 | echo X/"$0" | |
---|
6377 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
6378 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
6379 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
6380 | s/.*/./; q'` |
---|
6381 | |
---|
6382 | |
---|
6383 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
6384 | # Avoid depending upon Character Ranges. |
---|
6385 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6386 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6387 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6388 | as_cr_digits='0123456789' |
---|
6389 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6390 | |
---|
6391 | # The user is always right. |
---|
6392 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6393 | echo "#! /bin/sh" >conf$$.sh |
---|
6394 | echo "exit 0" >>conf$$.sh |
---|
6395 | chmod +x conf$$.sh |
---|
6396 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
6397 | PATH_SEPARATOR=';' |
---|
6398 | else |
---|
6399 | PATH_SEPARATOR=: |
---|
6400 | fi |
---|
6401 | rm -f conf$$.sh |
---|
6402 | fi |
---|
6403 | |
---|
6404 | |
---|
6405 | as_lineno_1=$LINENO |
---|
6406 | as_lineno_2=$LINENO |
---|
6407 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6408 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6409 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
6410 | # Find who we are. Look in the path if we contain no path at all |
---|
6411 | # relative or not. |
---|
6412 | case $0 in |
---|
6413 | *[\\/]* ) as_myself=$0 ;; |
---|
6414 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6415 | for as_dir in $PATH |
---|
6416 | do |
---|
6417 | IFS=$as_save_IFS |
---|
6418 | test -z "$as_dir" && as_dir=. |
---|
6419 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6420 | done |
---|
6421 | |
---|
6422 | ;; |
---|
6423 | esac |
---|
6424 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6425 | # in which case we are not to be found in the path. |
---|
6426 | if test "x$as_myself" = x; then |
---|
6427 | as_myself=$0 |
---|
6428 | fi |
---|
6429 | if test ! -f "$as_myself"; then |
---|
6430 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
6431 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
6432 | { (exit 1); exit 1; }; } |
---|
6433 | fi |
---|
6434 | case $CONFIG_SHELL in |
---|
6435 | '') |
---|
6436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6437 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
6438 | do |
---|
6439 | IFS=$as_save_IFS |
---|
6440 | test -z "$as_dir" && as_dir=. |
---|
6441 | for as_base in sh bash ksh sh5; do |
---|
6442 | case $as_dir in |
---|
6443 | /*) |
---|
6444 | if ("$as_dir/$as_base" -c ' |
---|
6445 | as_lineno_1=$LINENO |
---|
6446 | as_lineno_2=$LINENO |
---|
6447 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6448 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6449 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
6450 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
6451 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
6452 | CONFIG_SHELL=$as_dir/$as_base |
---|
6453 | export CONFIG_SHELL |
---|
6454 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
6455 | fi;; |
---|
6456 | esac |
---|
6457 | done |
---|
6458 | done |
---|
6459 | ;; |
---|
6460 | esac |
---|
6461 | |
---|
6462 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
6463 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
6464 | # line-number line before each line; the second 'sed' does the real |
---|
6465 | # work. The second script uses 'N' to pair each line-number line |
---|
6466 | # with the numbered line, and appends trailing '-' during |
---|
6467 | # substitution so that $LINENO is not a special case at line end. |
---|
6468 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
6469 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
6470 | sed '=' <$as_myself | |
---|
6471 | sed ' |
---|
6472 | N |
---|
6473 | s,$,-, |
---|
6474 | : loop |
---|
6475 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
6476 | t loop |
---|
6477 | s,-$,, |
---|
6478 | s,^['$as_cr_digits']*\n,, |
---|
6479 | ' >$as_me.lineno && |
---|
6480 | chmod +x $as_me.lineno || |
---|
6481 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
6482 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
6483 | { (exit 1); exit 1; }; } |
---|
6484 | |
---|
6485 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
6486 | # (the dirname of $[0] is not the place where we might find the |
---|
6487 | # original and so on. Autoconf is especially sensible to this). |
---|
6488 | . ./$as_me.lineno |
---|
6489 | # Exit status is that of the last command. |
---|
6490 | exit |
---|
6491 | } |
---|
6492 | |
---|
6493 | |
---|
6494 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
6495 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
6496 | ' ECHO_T=' ' ;; |
---|
6497 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
6498 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
6499 | esac |
---|
6500 | |
---|
6501 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6502 | as_expr=expr |
---|
6503 | else |
---|
6504 | as_expr=false |
---|
6505 | fi |
---|
6506 | |
---|
6507 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6508 | echo >conf$$.file |
---|
6509 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6510 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
6511 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
6512 | if test -f conf$$.exe; then |
---|
6513 | # Don't use ln at all; we don't have any links |
---|
6514 | as_ln_s='cp -p' |
---|
6515 | else |
---|
6516 | as_ln_s='ln -s' |
---|
6517 | fi |
---|
6518 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6519 | as_ln_s=ln |
---|
6520 | else |
---|
6521 | as_ln_s='cp -p' |
---|
6522 | fi |
---|
6523 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6524 | |
---|
6525 | if mkdir -p . 2>/dev/null; then |
---|
6526 | as_mkdir_p=: |
---|
6527 | else |
---|
6528 | test -d ./-p && rmdir ./-p |
---|
6529 | as_mkdir_p=false |
---|
6530 | fi |
---|
6531 | |
---|
6532 | as_executable_p="test -f" |
---|
6533 | |
---|
6534 | # Sed expression to map a string onto a valid CPP name. |
---|
6535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6536 | |
---|
6537 | # Sed expression to map a string onto a valid variable name. |
---|
6538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6539 | |
---|
6540 | |
---|
6541 | # IFS |
---|
6542 | # We need space, tab and new line, in precisely that order. |
---|
6543 | as_nl=' |
---|
6544 | ' |
---|
6545 | IFS=" $as_nl" |
---|
6546 | |
---|
6547 | # CDPATH. |
---|
6548 | $as_unset CDPATH |
---|
6549 | |
---|
6550 | exec 6>&1 |
---|
6551 | |
---|
6552 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
6553 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6554 | # values after options handling. Logging --version etc. is OK. |
---|
6555 | exec 5>>config.log |
---|
6556 | { |
---|
6557 | echo |
---|
6558 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6559 | ## Running $as_me. ## |
---|
6560 | _ASBOX |
---|
6561 | } >&5 |
---|
6562 | cat >&5 <<_CSEOF |
---|
6563 | |
---|
6564 | This file was extended by ifplugd $as_me 0.23, which was |
---|
6565 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
6566 | |
---|
6567 | CONFIG_FILES = $CONFIG_FILES |
---|
6568 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6569 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6570 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6571 | $ $0 $@ |
---|
6572 | |
---|
6573 | _CSEOF |
---|
6574 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
6575 | echo >&5 |
---|
6576 | _ACEOF |
---|
6577 | |
---|
6578 | # Files that config.status was made for. |
---|
6579 | if test -n "$ac_config_files"; then |
---|
6580 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
6581 | fi |
---|
6582 | |
---|
6583 | if test -n "$ac_config_headers"; then |
---|
6584 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
6585 | fi |
---|
6586 | |
---|
6587 | if test -n "$ac_config_links"; then |
---|
6588 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
6589 | fi |
---|
6590 | |
---|
6591 | if test -n "$ac_config_commands"; then |
---|
6592 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
6593 | fi |
---|
6594 | |
---|
6595 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6596 | |
---|
6597 | ac_cs_usage="\ |
---|
6598 | \`$as_me' instantiates files from templates according to the |
---|
6599 | current configuration. |
---|
6600 | |
---|
6601 | Usage: $0 [OPTIONS] [FILE]... |
---|
6602 | |
---|
6603 | -h, --help print this help, then exit |
---|
6604 | -V, --version print version number, then exit |
---|
6605 | -q, --quiet do not print progress messages |
---|
6606 | -d, --debug don't remove temporary files |
---|
6607 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6608 | --file=FILE[:TEMPLATE] |
---|
6609 | instantiate the configuration file FILE |
---|
6610 | --header=FILE[:TEMPLATE] |
---|
6611 | instantiate the configuration header FILE |
---|
6612 | |
---|
6613 | Configuration files: |
---|
6614 | $config_files |
---|
6615 | |
---|
6616 | Configuration headers: |
---|
6617 | $config_headers |
---|
6618 | |
---|
6619 | Configuration commands: |
---|
6620 | $config_commands |
---|
6621 | |
---|
6622 | Report bugs to <bug-autoconf@gnu.org>." |
---|
6623 | _ACEOF |
---|
6624 | |
---|
6625 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6626 | ac_cs_version="\\ |
---|
6627 | ifplugd config.status 0.23 |
---|
6628 | configured by $0, generated by GNU Autoconf 2.59, |
---|
6629 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
6630 | |
---|
6631 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
6632 | This config.status script is free software; the Free Software Foundation |
---|
6633 | gives unlimited permission to copy, distribute and modify it." |
---|
6634 | srcdir=$srcdir |
---|
6635 | INSTALL="$INSTALL" |
---|
6636 | _ACEOF |
---|
6637 | |
---|
6638 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6639 | # If no file are specified by the user, then we need to provide default |
---|
6640 | # value. By we need to know if files were specified by the user. |
---|
6641 | ac_need_defaults=: |
---|
6642 | while test $# != 0 |
---|
6643 | do |
---|
6644 | case $1 in |
---|
6645 | --*=*) |
---|
6646 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
6647 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
6648 | ac_shift=: |
---|
6649 | ;; |
---|
6650 | -*) |
---|
6651 | ac_option=$1 |
---|
6652 | ac_optarg=$2 |
---|
6653 | ac_shift=shift |
---|
6654 | ;; |
---|
6655 | *) # This is not an option, so the user has probably given explicit |
---|
6656 | # arguments. |
---|
6657 | ac_option=$1 |
---|
6658 | ac_need_defaults=false;; |
---|
6659 | esac |
---|
6660 | |
---|
6661 | case $ac_option in |
---|
6662 | # Handling of the options. |
---|
6663 | _ACEOF |
---|
6664 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6665 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6666 | ac_cs_recheck=: ;; |
---|
6667 | --version | --vers* | -V ) |
---|
6668 | echo "$ac_cs_version"; exit 0 ;; |
---|
6669 | --he | --h) |
---|
6670 | # Conflict between --help and --header |
---|
6671 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
6672 | Try \`$0 --help' for more information." >&5 |
---|
6673 | echo "$as_me: error: ambiguous option: $1 |
---|
6674 | Try \`$0 --help' for more information." >&2;} |
---|
6675 | { (exit 1); exit 1; }; };; |
---|
6676 | --help | --hel | -h ) |
---|
6677 | echo "$ac_cs_usage"; exit 0 ;; |
---|
6678 | --debug | --d* | -d ) |
---|
6679 | debug=: ;; |
---|
6680 | --file | --fil | --fi | --f ) |
---|
6681 | $ac_shift |
---|
6682 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
6683 | ac_need_defaults=false;; |
---|
6684 | --header | --heade | --head | --hea ) |
---|
6685 | $ac_shift |
---|
6686 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
6687 | ac_need_defaults=false;; |
---|
6688 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6689 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6690 | ac_cs_silent=: ;; |
---|
6691 | |
---|
6692 | # This is an error. |
---|
6693 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
6694 | Try \`$0 --help' for more information." >&5 |
---|
6695 | echo "$as_me: error: unrecognized option: $1 |
---|
6696 | Try \`$0 --help' for more information." >&2;} |
---|
6697 | { (exit 1); exit 1; }; } ;; |
---|
6698 | |
---|
6699 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
6700 | |
---|
6701 | esac |
---|
6702 | shift |
---|
6703 | done |
---|
6704 | |
---|
6705 | ac_configure_extra_args= |
---|
6706 | |
---|
6707 | if $ac_cs_silent; then |
---|
6708 | exec 6>/dev/null |
---|
6709 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6710 | fi |
---|
6711 | |
---|
6712 | _ACEOF |
---|
6713 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6714 | if \$ac_cs_recheck; then |
---|
6715 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
6716 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6717 | fi |
---|
6718 | |
---|
6719 | _ACEOF |
---|
6720 | |
---|
6721 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6722 | # |
---|
6723 | # INIT-COMMANDS section. |
---|
6724 | # |
---|
6725 | |
---|
6726 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6727 | |
---|
6728 | _ACEOF |
---|
6729 | |
---|
6730 | |
---|
6731 | |
---|
6732 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6733 | for ac_config_target in $ac_config_targets |
---|
6734 | do |
---|
6735 | case "$ac_config_target" in |
---|
6736 | # Handling of arguments. |
---|
6737 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6738 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6739 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
---|
6740 | "conf/Makefile" ) CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; |
---|
6741 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
---|
6742 | "doc/README.html" ) CONFIG_FILES="$CONFIG_FILES doc/README.html" ;; |
---|
6743 | "patches/Makefile" ) CONFIG_FILES="$CONFIG_FILES patches/Makefile" ;; |
---|
6744 | "ifplugd.spec" ) CONFIG_FILES="$CONFIG_FILES ifplugd.spec" ;; |
---|
6745 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6746 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6747 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
6748 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
6749 | { (exit 1); exit 1; }; };; |
---|
6750 | esac |
---|
6751 | done |
---|
6752 | |
---|
6753 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6754 | # then the envvar interface is used. Set only those that are not. |
---|
6755 | # We use the long form for the default assignment because of an extremely |
---|
6756 | # bizarre bug on SunOS 4.1.3. |
---|
6757 | if $ac_need_defaults; then |
---|
6758 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6759 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6760 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6761 | fi |
---|
6762 | |
---|
6763 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6764 | # simply because there is no reason to put it here, and in addition, |
---|
6765 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6766 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
6767 | $debug || |
---|
6768 | { |
---|
6769 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
6770 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
6771 | } |
---|
6772 | |
---|
6773 | # Create a (secure) tmp directory for tmp files. |
---|
6774 | |
---|
6775 | { |
---|
6776 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
6777 | test -n "$tmp" && test -d "$tmp" |
---|
6778 | } || |
---|
6779 | { |
---|
6780 | tmp=./confstat$$-$RANDOM |
---|
6781 | (umask 077 && mkdir $tmp) |
---|
6782 | } || |
---|
6783 | { |
---|
6784 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
6785 | { (exit 1); exit 1; } |
---|
6786 | } |
---|
6787 | |
---|
6788 | _ACEOF |
---|
6789 | |
---|
6790 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6791 | |
---|
6792 | # |
---|
6793 | # CONFIG_FILES section. |
---|
6794 | # |
---|
6795 | |
---|
6796 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
6797 | # This happens for instance when ./config.status config.h |
---|
6798 | if test -n "\$CONFIG_FILES"; then |
---|
6799 | # Protect against being on the right side of a sed subst in config.status. |
---|
6800 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
6801 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
6802 | s,@SHELL@,$SHELL,;t t |
---|
6803 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
6804 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
6805 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
6806 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
6807 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
6808 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
6809 | s,@exec_prefix@,$exec_prefix,;t t |
---|
6810 | s,@prefix@,$prefix,;t t |
---|
6811 | s,@program_transform_name@,$program_transform_name,;t t |
---|
6812 | s,@bindir@,$bindir,;t t |
---|
6813 | s,@sbindir@,$sbindir,;t t |
---|
6814 | s,@libexecdir@,$libexecdir,;t t |
---|
6815 | s,@datadir@,$datadir,;t t |
---|
6816 | s,@sysconfdir@,$sysconfdir,;t t |
---|
6817 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
6818 | s,@localstatedir@,$localstatedir,;t t |
---|
6819 | s,@libdir@,$libdir,;t t |
---|
6820 | s,@includedir@,$includedir,;t t |
---|
6821 | s,@oldincludedir@,$oldincludedir,;t t |
---|
6822 | s,@infodir@,$infodir,;t t |
---|
6823 | s,@mandir@,$mandir,;t t |
---|
6824 | s,@build_alias@,$build_alias,;t t |
---|
6825 | s,@host_alias@,$host_alias,;t t |
---|
6826 | s,@target_alias@,$target_alias,;t t |
---|
6827 | s,@DEFS@,$DEFS,;t t |
---|
6828 | s,@ECHO_C@,$ECHO_C,;t t |
---|
6829 | s,@ECHO_N@,$ECHO_N,;t t |
---|
6830 | s,@ECHO_T@,$ECHO_T,;t t |
---|
6831 | s,@LIBS@,$LIBS,;t t |
---|
6832 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
6833 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
6834 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
6835 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
6836 | s,@PACKAGE@,$PACKAGE,;t t |
---|
6837 | s,@VERSION@,$VERSION,;t t |
---|
6838 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
6839 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
6840 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
6841 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
6842 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
6843 | s,@AMTAR@,$AMTAR,;t t |
---|
6844 | s,@install_sh@,$install_sh,;t t |
---|
6845 | s,@STRIP@,$STRIP,;t t |
---|
6846 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
6847 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
6848 | s,@AWK@,$AWK,;t t |
---|
6849 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
6850 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
6851 | s,@PACKAGE_URL@,$PACKAGE_URL,;t t |
---|
6852 | s,@CXX@,$CXX,;t t |
---|
6853 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
6854 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
6855 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
6856 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
6857 | s,@EXEEXT@,$EXEEXT,;t t |
---|
6858 | s,@OBJEXT@,$OBJEXT,;t t |
---|
6859 | s,@DEPDIR@,$DEPDIR,;t t |
---|
6860 | s,@am__include@,$am__include,;t t |
---|
6861 | s,@am__quote@,$am__quote,;t t |
---|
6862 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
6863 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
6864 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
6865 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
6866 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
6867 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
6868 | s,@CC@,$CC,;t t |
---|
6869 | s,@CFLAGS@,$CFLAGS,;t t |
---|
6870 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
6871 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
6872 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
6873 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
6874 | s,@CPP@,$CPP,;t t |
---|
6875 | s,@LN_S@,$LN_S,;t t |
---|
6876 | s,@EGREP@,$EGREP,;t t |
---|
6877 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
6878 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
6879 | s,@LIBDAEMON_CFLAGS@,$LIBDAEMON_CFLAGS,;t t |
---|
6880 | s,@LIBDAEMON_LIBS@,$LIBDAEMON_LIBS,;t t |
---|
6881 | s,@SYSINITDIR@,$SYSINITDIR,;t t |
---|
6882 | s,@have_lynx@,$have_lynx,;t t |
---|
6883 | s,@USE_LYNX_TRUE@,$USE_LYNX_TRUE,;t t |
---|
6884 | s,@USE_LYNX_FALSE@,$USE_LYNX_FALSE,;t t |
---|
6885 | s,@have_xmltoman@,$have_xmltoman,;t t |
---|
6886 | s,@USE_XMLTOMAN_TRUE@,$USE_XMLTOMAN_TRUE,;t t |
---|
6887 | s,@USE_XMLTOMAN_FALSE@,$USE_XMLTOMAN_FALSE,;t t |
---|
6888 | s,@have_subversion@,$have_subversion,;t t |
---|
6889 | s,@USE_SUBVERSION_TRUE@,$USE_SUBVERSION_TRUE,;t t |
---|
6890 | s,@USE_SUBVERSION_FALSE@,$USE_SUBVERSION_FALSE,;t t |
---|
6891 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
6892 | CEOF |
---|
6893 | |
---|
6894 | _ACEOF |
---|
6895 | |
---|
6896 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6897 | # Split the substitutions into bite-sized pieces for seds with |
---|
6898 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6899 | ac_max_sed_lines=48 |
---|
6900 | ac_sed_frag=1 # Number of current file. |
---|
6901 | ac_beg=1 # First line for current file. |
---|
6902 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
6903 | ac_more_lines=: |
---|
6904 | ac_sed_cmds= |
---|
6905 | while $ac_more_lines; do |
---|
6906 | if test $ac_beg -gt 1; then |
---|
6907 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6908 | else |
---|
6909 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6910 | fi |
---|
6911 | if test ! -s $tmp/subs.frag; then |
---|
6912 | ac_more_lines=false |
---|
6913 | else |
---|
6914 | # The purpose of the label and of the branching condition is to |
---|
6915 | # speed up the sed processing (if there are no `@' at all, there |
---|
6916 | # is no need to browse any of the substitutions). |
---|
6917 | # These are the two extra sed commands mentioned above. |
---|
6918 | (echo ':t |
---|
6919 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
6920 | if test -z "$ac_sed_cmds"; then |
---|
6921 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6922 | else |
---|
6923 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6924 | fi |
---|
6925 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
6926 | ac_beg=$ac_end |
---|
6927 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
6928 | fi |
---|
6929 | done |
---|
6930 | if test -z "$ac_sed_cmds"; then |
---|
6931 | ac_sed_cmds=cat |
---|
6932 | fi |
---|
6933 | fi # test -n "$CONFIG_FILES" |
---|
6934 | |
---|
6935 | _ACEOF |
---|
6936 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6937 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
6938 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6939 | case $ac_file in |
---|
6940 | - | *:- | *:-:* ) # input from stdin |
---|
6941 | cat >$tmp/stdin |
---|
6942 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6943 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6944 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6945 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6946 | * ) ac_file_in=$ac_file.in ;; |
---|
6947 | esac |
---|
6948 | |
---|
6949 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
6950 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6951 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6952 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6953 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6954 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6955 | . : '\(.\)' 2>/dev/null || |
---|
6956 | echo X"$ac_file" | |
---|
6957 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6958 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6959 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6960 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6961 | s/.*/./; q'` |
---|
6962 | { if $as_mkdir_p; then |
---|
6963 | mkdir -p "$ac_dir" |
---|
6964 | else |
---|
6965 | as_dir="$ac_dir" |
---|
6966 | as_dirs= |
---|
6967 | while test ! -d "$as_dir"; do |
---|
6968 | as_dirs="$as_dir $as_dirs" |
---|
6969 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6970 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6971 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6972 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6973 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6974 | . : '\(.\)' 2>/dev/null || |
---|
6975 | echo X"$as_dir" | |
---|
6976 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6977 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6978 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6979 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6980 | s/.*/./; q'` |
---|
6981 | done |
---|
6982 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6983 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
6984 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
6985 | { (exit 1); exit 1; }; }; } |
---|
6986 | |
---|
6987 | ac_builddir=. |
---|
6988 | |
---|
6989 | if test "$ac_dir" != .; then |
---|
6990 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
6991 | # A "../" for each directory in $ac_dir_suffix. |
---|
6992 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
6993 | else |
---|
6994 | ac_dir_suffix= ac_top_builddir= |
---|
6995 | fi |
---|
6996 | |
---|
6997 | case $srcdir in |
---|
6998 | .) # No --srcdir option. We are building in place. |
---|
6999 | ac_srcdir=. |
---|
7000 | if test -z "$ac_top_builddir"; then |
---|
7001 | ac_top_srcdir=. |
---|
7002 | else |
---|
7003 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7004 | fi ;; |
---|
7005 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7006 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7007 | ac_top_srcdir=$srcdir ;; |
---|
7008 | *) # Relative path. |
---|
7009 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7010 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7011 | esac |
---|
7012 | |
---|
7013 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
7014 | # the directories may not exist. |
---|
7015 | case `pwd` in |
---|
7016 | .) ac_abs_builddir="$ac_dir";; |
---|
7017 | *) |
---|
7018 | case "$ac_dir" in |
---|
7019 | .) ac_abs_builddir=`pwd`;; |
---|
7020 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
7021 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
7022 | esac;; |
---|
7023 | esac |
---|
7024 | case $ac_abs_builddir in |
---|
7025 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7026 | *) |
---|
7027 | case ${ac_top_builddir}. in |
---|
7028 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
7029 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7030 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
7031 | esac;; |
---|
7032 | esac |
---|
7033 | case $ac_abs_builddir in |
---|
7034 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
7035 | *) |
---|
7036 | case $ac_srcdir in |
---|
7037 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
7038 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
7039 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
7040 | esac;; |
---|
7041 | esac |
---|
7042 | case $ac_abs_builddir in |
---|
7043 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7044 | *) |
---|
7045 | case $ac_top_srcdir in |
---|
7046 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
7047 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7048 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
7049 | esac;; |
---|
7050 | esac |
---|
7051 | |
---|
7052 | |
---|
7053 | case $INSTALL in |
---|
7054 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7055 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
7056 | esac |
---|
7057 | |
---|
7058 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7059 | # use $as_me), people would be surprised to read: |
---|
7060 | # /* config.h. Generated by config.status. */ |
---|
7061 | if test x"$ac_file" = x-; then |
---|
7062 | configure_input= |
---|
7063 | else |
---|
7064 | configure_input="$ac_file. " |
---|
7065 | fi |
---|
7066 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
7067 | sed 's,.*/,,'` by configure." |
---|
7068 | |
---|
7069 | # First look for the input files in the build tree, otherwise in the |
---|
7070 | # src tree. |
---|
7071 | ac_file_inputs=`IFS=: |
---|
7072 | for f in $ac_file_in; do |
---|
7073 | case $f in |
---|
7074 | -) echo $tmp/stdin ;; |
---|
7075 | [\\/$]*) |
---|
7076 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7077 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7078 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7079 | { (exit 1); exit 1; }; } |
---|
7080 | echo "$f";; |
---|
7081 | *) # Relative |
---|
7082 | if test -f "$f"; then |
---|
7083 | # Build tree |
---|
7084 | echo "$f" |
---|
7085 | elif test -f "$srcdir/$f"; then |
---|
7086 | # Source tree |
---|
7087 | echo "$srcdir/$f" |
---|
7088 | else |
---|
7089 | # /dev/null tree |
---|
7090 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7091 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7092 | { (exit 1); exit 1; }; } |
---|
7093 | fi;; |
---|
7094 | esac |
---|
7095 | done` || { (exit 1); exit 1; } |
---|
7096 | |
---|
7097 | if test x"$ac_file" != x-; then |
---|
7098 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7099 | echo "$as_me: creating $ac_file" >&6;} |
---|
7100 | rm -f "$ac_file" |
---|
7101 | fi |
---|
7102 | _ACEOF |
---|
7103 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7104 | sed "$ac_vpsub |
---|
7105 | $extrasub |
---|
7106 | _ACEOF |
---|
7107 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7108 | :t |
---|
7109 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7110 | s,@configure_input@,$configure_input,;t t |
---|
7111 | s,@srcdir@,$ac_srcdir,;t t |
---|
7112 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
7113 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
7114 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
7115 | s,@builddir@,$ac_builddir,;t t |
---|
7116 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
7117 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
7118 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
7119 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
7120 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
7121 | rm -f $tmp/stdin |
---|
7122 | if test x"$ac_file" != x-; then |
---|
7123 | mv $tmp/out $ac_file |
---|
7124 | else |
---|
7125 | cat $tmp/out |
---|
7126 | rm -f $tmp/out |
---|
7127 | fi |
---|
7128 | |
---|
7129 | done |
---|
7130 | _ACEOF |
---|
7131 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7132 | |
---|
7133 | # |
---|
7134 | # CONFIG_HEADER section. |
---|
7135 | # |
---|
7136 | |
---|
7137 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
7138 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
7139 | # |
---|
7140 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
7141 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
7142 | ac_dB='[ ].*$,\1#\2' |
---|
7143 | ac_dC=' ' |
---|
7144 | ac_dD=',;t' |
---|
7145 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
7146 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7147 | ac_uB='$,\1#\2define\3' |
---|
7148 | ac_uC=' ' |
---|
7149 | ac_uD=',;t' |
---|
7150 | |
---|
7151 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
7152 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7153 | case $ac_file in |
---|
7154 | - | *:- | *:-:* ) # input from stdin |
---|
7155 | cat >$tmp/stdin |
---|
7156 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7157 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7158 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7159 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7160 | * ) ac_file_in=$ac_file.in ;; |
---|
7161 | esac |
---|
7162 | |
---|
7163 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7164 | echo "$as_me: creating $ac_file" >&6;} |
---|
7165 | |
---|
7166 | # First look for the input files in the build tree, otherwise in the |
---|
7167 | # src tree. |
---|
7168 | ac_file_inputs=`IFS=: |
---|
7169 | for f in $ac_file_in; do |
---|
7170 | case $f in |
---|
7171 | -) echo $tmp/stdin ;; |
---|
7172 | [\\/$]*) |
---|
7173 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7174 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7175 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7176 | { (exit 1); exit 1; }; } |
---|
7177 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
7178 | echo "$f";; |
---|
7179 | *) # Relative |
---|
7180 | if test -f "$f"; then |
---|
7181 | # Build tree |
---|
7182 | echo "$f" |
---|
7183 | elif test -f "$srcdir/$f"; then |
---|
7184 | # Source tree |
---|
7185 | echo "$srcdir/$f" |
---|
7186 | else |
---|
7187 | # /dev/null tree |
---|
7188 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7189 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7190 | { (exit 1); exit 1; }; } |
---|
7191 | fi;; |
---|
7192 | esac |
---|
7193 | done` || { (exit 1); exit 1; } |
---|
7194 | # Remove the trailing spaces. |
---|
7195 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
7196 | |
---|
7197 | _ACEOF |
---|
7198 | |
---|
7199 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
7200 | # `conftest.undefs', that substitutes the proper values into |
---|
7201 | # config.h.in to produce config.h. The first handles `#define' |
---|
7202 | # templates, and the second `#undef' templates. |
---|
7203 | # And first: Protect against being on the right side of a sed subst in |
---|
7204 | # config.status. Protect against being in an unquoted here document |
---|
7205 | # in config.status. |
---|
7206 | rm -f conftest.defines conftest.undefs |
---|
7207 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
7208 | # Putting comments in sed scripts is not portable. |
---|
7209 | # |
---|
7210 | # `end' is used to avoid that the second main sed command (meant for |
---|
7211 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
7212 | # See the Autoconf documentation for `clear'. |
---|
7213 | cat >confdef2sed.sed <<\_ACEOF |
---|
7214 | s/[\\&,]/\\&/g |
---|
7215 | s,[\\$`],\\&,g |
---|
7216 | t clear |
---|
7217 | : clear |
---|
7218 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
7219 | t end |
---|
7220 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
7221 | : end |
---|
7222 | _ACEOF |
---|
7223 | # If some macros were called several times there might be several times |
---|
7224 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
7225 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
7226 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
7227 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
7228 | rm -f confdef2sed.sed |
---|
7229 | |
---|
7230 | # This sed command replaces #undef with comments. This is necessary, for |
---|
7231 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
7232 | # on some systems where configure will not decide to define it. |
---|
7233 | cat >>conftest.undefs <<\_ACEOF |
---|
7234 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
7235 | _ACEOF |
---|
7236 | |
---|
7237 | # Break up conftest.defines because some shells have a limit on the size |
---|
7238 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7239 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
7240 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
7241 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
7242 | echo ' :' >>$CONFIG_STATUS |
---|
7243 | rm -f conftest.tail |
---|
7244 | while grep . conftest.defines >/dev/null |
---|
7245 | do |
---|
7246 | # Write a limited-size here document to $tmp/defines.sed. |
---|
7247 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
7248 | # Speed up: don't consider the non `#define' lines. |
---|
7249 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
7250 | # Work around the forget-to-reset-the-flag bug. |
---|
7251 | echo 't clr' >>$CONFIG_STATUS |
---|
7252 | echo ': clr' >>$CONFIG_STATUS |
---|
7253 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
7254 | echo 'CEOF |
---|
7255 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
7256 | rm -f $tmp/in |
---|
7257 | mv $tmp/out $tmp/in |
---|
7258 | ' >>$CONFIG_STATUS |
---|
7259 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
7260 | rm -f conftest.defines |
---|
7261 | mv conftest.tail conftest.defines |
---|
7262 | done |
---|
7263 | rm -f conftest.defines |
---|
7264 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
7265 | echo >>$CONFIG_STATUS |
---|
7266 | |
---|
7267 | # Break up conftest.undefs because some shells have a limit on the size |
---|
7268 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7269 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
7270 | rm -f conftest.tail |
---|
7271 | while grep . conftest.undefs >/dev/null |
---|
7272 | do |
---|
7273 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
7274 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
7275 | # Speed up: don't consider the non `#undef' |
---|
7276 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
7277 | # Work around the forget-to-reset-the-flag bug. |
---|
7278 | echo 't clr' >>$CONFIG_STATUS |
---|
7279 | echo ': clr' >>$CONFIG_STATUS |
---|
7280 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
7281 | echo 'CEOF |
---|
7282 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
7283 | rm -f $tmp/in |
---|
7284 | mv $tmp/out $tmp/in |
---|
7285 | ' >>$CONFIG_STATUS |
---|
7286 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
7287 | rm -f conftest.undefs |
---|
7288 | mv conftest.tail conftest.undefs |
---|
7289 | done |
---|
7290 | rm -f conftest.undefs |
---|
7291 | |
---|
7292 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7293 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7294 | # use $as_me), people would be surprised to read: |
---|
7295 | # /* config.h. Generated by config.status. */ |
---|
7296 | if test x"$ac_file" = x-; then |
---|
7297 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
7298 | else |
---|
7299 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
7300 | fi |
---|
7301 | cat $tmp/in >>$tmp/config.h |
---|
7302 | rm -f $tmp/in |
---|
7303 | if test x"$ac_file" != x-; then |
---|
7304 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
7305 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
7306 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7307 | else |
---|
7308 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
7309 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7310 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7311 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7312 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7313 | . : '\(.\)' 2>/dev/null || |
---|
7314 | echo X"$ac_file" | |
---|
7315 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7316 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7317 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7318 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7319 | s/.*/./; q'` |
---|
7320 | { if $as_mkdir_p; then |
---|
7321 | mkdir -p "$ac_dir" |
---|
7322 | else |
---|
7323 | as_dir="$ac_dir" |
---|
7324 | as_dirs= |
---|
7325 | while test ! -d "$as_dir"; do |
---|
7326 | as_dirs="$as_dir $as_dirs" |
---|
7327 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7328 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7329 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7330 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7331 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7332 | . : '\(.\)' 2>/dev/null || |
---|
7333 | echo X"$as_dir" | |
---|
7334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7335 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7336 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7337 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7338 | s/.*/./; q'` |
---|
7339 | done |
---|
7340 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7341 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7342 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7343 | { (exit 1); exit 1; }; }; } |
---|
7344 | |
---|
7345 | rm -f $ac_file |
---|
7346 | mv $tmp/config.h $ac_file |
---|
7347 | fi |
---|
7348 | else |
---|
7349 | cat $tmp/config.h |
---|
7350 | rm -f $tmp/config.h |
---|
7351 | fi |
---|
7352 | # Compute $ac_file's index in $config_headers. |
---|
7353 | _am_stamp_count=1 |
---|
7354 | for _am_header in $config_headers :; do |
---|
7355 | case $_am_header in |
---|
7356 | $ac_file | $ac_file:* ) |
---|
7357 | break ;; |
---|
7358 | * ) |
---|
7359 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7360 | esac |
---|
7361 | done |
---|
7362 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
7363 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7364 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
7365 | X$ac_file : 'X\(//\)$' \| \ |
---|
7366 | X$ac_file : 'X\(/\)' \| \ |
---|
7367 | . : '\(.\)' 2>/dev/null || |
---|
7368 | echo X$ac_file | |
---|
7369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7370 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7371 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7372 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7373 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7374 | done |
---|
7375 | _ACEOF |
---|
7376 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7377 | |
---|
7378 | # |
---|
7379 | # CONFIG_COMMANDS section. |
---|
7380 | # |
---|
7381 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
7382 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
7383 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7384 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
7385 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7386 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
7387 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
7388 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
7389 | . : '\(.\)' 2>/dev/null || |
---|
7390 | echo X"$ac_dest" | |
---|
7391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7392 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7393 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7394 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7395 | s/.*/./; q'` |
---|
7396 | { if $as_mkdir_p; then |
---|
7397 | mkdir -p "$ac_dir" |
---|
7398 | else |
---|
7399 | as_dir="$ac_dir" |
---|
7400 | as_dirs= |
---|
7401 | while test ! -d "$as_dir"; do |
---|
7402 | as_dirs="$as_dir $as_dirs" |
---|
7403 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7404 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7405 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7406 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7407 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7408 | . : '\(.\)' 2>/dev/null || |
---|
7409 | echo X"$as_dir" | |
---|
7410 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7411 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7412 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7413 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7414 | s/.*/./; q'` |
---|
7415 | done |
---|
7416 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7417 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7418 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7419 | { (exit 1); exit 1; }; }; } |
---|
7420 | |
---|
7421 | ac_builddir=. |
---|
7422 | |
---|
7423 | if test "$ac_dir" != .; then |
---|
7424 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7425 | # A "../" for each directory in $ac_dir_suffix. |
---|
7426 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7427 | else |
---|
7428 | ac_dir_suffix= ac_top_builddir= |
---|
7429 | fi |
---|
7430 | |
---|
7431 | case $srcdir in |
---|
7432 | .) # No --srcdir option. We are building in place. |
---|
7433 | ac_srcdir=. |
---|
7434 | if test -z "$ac_top_builddir"; then |
---|
7435 | ac_top_srcdir=. |
---|
7436 | else |
---|
7437 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7438 | fi ;; |
---|
7439 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7440 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7441 | ac_top_srcdir=$srcdir ;; |
---|
7442 | *) # Relative path. |
---|
7443 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7444 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7445 | esac |
---|
7446 | |
---|
7447 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
7448 | # the directories may not exist. |
---|
7449 | case `pwd` in |
---|
7450 | .) ac_abs_builddir="$ac_dir";; |
---|
7451 | *) |
---|
7452 | case "$ac_dir" in |
---|
7453 | .) ac_abs_builddir=`pwd`;; |
---|
7454 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
7455 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
7456 | esac;; |
---|
7457 | esac |
---|
7458 | case $ac_abs_builddir in |
---|
7459 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7460 | *) |
---|
7461 | case ${ac_top_builddir}. in |
---|
7462 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
7463 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7464 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
7465 | esac;; |
---|
7466 | esac |
---|
7467 | case $ac_abs_builddir in |
---|
7468 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
7469 | *) |
---|
7470 | case $ac_srcdir in |
---|
7471 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
7472 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
7473 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
7474 | esac;; |
---|
7475 | esac |
---|
7476 | case $ac_abs_builddir in |
---|
7477 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7478 | *) |
---|
7479 | case $ac_top_srcdir in |
---|
7480 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
7481 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7482 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
7483 | esac;; |
---|
7484 | esac |
---|
7485 | |
---|
7486 | |
---|
7487 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
7488 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
7489 | case $ac_dest in |
---|
7490 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
7491 | # Strip MF so we end up with the name of the file. |
---|
7492 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7493 | # Check whether this is an Automake generated Makefile or not. |
---|
7494 | # We used to match only the files named `Makefile.in', but |
---|
7495 | # some people rename them; so instead we look at the file content. |
---|
7496 | # Grep'ing the first line is not enough: some people post-process |
---|
7497 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7498 | # So let's grep whole file. |
---|
7499 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
7500 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
7501 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7502 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7503 | X"$mf" : 'X\(//\)$' \| \ |
---|
7504 | X"$mf" : 'X\(/\)' \| \ |
---|
7505 | . : '\(.\)' 2>/dev/null || |
---|
7506 | echo X"$mf" | |
---|
7507 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7508 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7509 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7510 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7511 | s/.*/./; q'` |
---|
7512 | else |
---|
7513 | continue |
---|
7514 | fi |
---|
7515 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
7516 | # Extract the definition of DEP_FILES from the Makefile without |
---|
7517 | # running `make'. |
---|
7518 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
7519 | test -z "$DEPDIR" && continue |
---|
7520 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7521 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
7522 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
7523 | # We invoke sed twice because it is the simplest approach to |
---|
7524 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
7525 | for file in `sed -n -e ' |
---|
7526 | /^DEP_FILES = .*\\\\$/ { |
---|
7527 | s/^DEP_FILES = // |
---|
7528 | :loop |
---|
7529 | s/\\\\$// |
---|
7530 | p |
---|
7531 | n |
---|
7532 | /\\\\$/ b loop |
---|
7533 | p |
---|
7534 | } |
---|
7535 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
7536 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7537 | # Make sure the directory exists. |
---|
7538 | test -f "$dirpart/$file" && continue |
---|
7539 | fdir=`(dirname "$file") 2>/dev/null || |
---|
7540 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7541 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7542 | X"$file" : 'X\(//\)$' \| \ |
---|
7543 | X"$file" : 'X\(/\)' \| \ |
---|
7544 | . : '\(.\)' 2>/dev/null || |
---|
7545 | echo X"$file" | |
---|
7546 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7547 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7548 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7549 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7550 | s/.*/./; q'` |
---|
7551 | { if $as_mkdir_p; then |
---|
7552 | mkdir -p $dirpart/$fdir |
---|
7553 | else |
---|
7554 | as_dir=$dirpart/$fdir |
---|
7555 | as_dirs= |
---|
7556 | while test ! -d "$as_dir"; do |
---|
7557 | as_dirs="$as_dir $as_dirs" |
---|
7558 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7559 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7560 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7561 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7562 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7563 | . : '\(.\)' 2>/dev/null || |
---|
7564 | echo X"$as_dir" | |
---|
7565 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7566 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7567 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7568 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7569 | s/.*/./; q'` |
---|
7570 | done |
---|
7571 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7572 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
7573 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
7574 | { (exit 1); exit 1; }; }; } |
---|
7575 | |
---|
7576 | # echo "creating $dirpart/$file" |
---|
7577 | echo '# dummy' > "$dirpart/$file" |
---|
7578 | done |
---|
7579 | done |
---|
7580 | ;; |
---|
7581 | esac |
---|
7582 | done |
---|
7583 | _ACEOF |
---|
7584 | |
---|
7585 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7586 | |
---|
7587 | { (exit 0); exit 0; } |
---|
7588 | _ACEOF |
---|
7589 | chmod +x $CONFIG_STATUS |
---|
7590 | ac_clean_files=$ac_clean_files_save |
---|
7591 | |
---|
7592 | |
---|
7593 | # configure is writing to config.log, and then calls config.status. |
---|
7594 | # config.status does its own redirection, appending to config.log. |
---|
7595 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7596 | # by configure, so config.status won't be able to write to it; its |
---|
7597 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7598 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7599 | # appended to by config.status. When coming back to configure, we |
---|
7600 | # need to make the FD available again. |
---|
7601 | if test "$no_create" != yes; then |
---|
7602 | ac_cs_success=: |
---|
7603 | ac_config_status_args= |
---|
7604 | test "$silent" = yes && |
---|
7605 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7606 | exec 5>/dev/null |
---|
7607 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7608 | exec 5>>config.log |
---|
7609 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7610 | # would make configure fail if this is the last instruction. |
---|
7611 | $ac_cs_success || { (exit 1); exit 1; } |
---|
7612 | fi |
---|
7613 | |
---|