1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.57 for Jabber Windowgram Client beta5. |
---|
4 | # |
---|
5 | # Report bugs to <jadestorm@users.sourceforge.net>. |
---|
6 | # |
---|
7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
8 | # Free Software Foundation, Inc. |
---|
9 | # This configure script is free software; the Free Software Foundation |
---|
10 | # gives unlimited permission to copy, distribute and modify it. |
---|
11 | ## --------------------- ## |
---|
12 | ## M4sh Initialization. ## |
---|
13 | ## --------------------- ## |
---|
14 | |
---|
15 | # Be Bourne compatible |
---|
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
17 | emulate sh |
---|
18 | NULLCMD=: |
---|
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
20 | # is contrary to our usage. Disable this feature. |
---|
21 | alias -g '${1+"$@"}'='"$@"' |
---|
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
23 | set -o posix |
---|
24 | fi |
---|
25 | |
---|
26 | # Support unset when possible. |
---|
27 | if (FOO=FOO; unset FOO) >/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 -n "`(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 | as_mkdir_p=false |
---|
224 | fi |
---|
225 | |
---|
226 | as_executable_p="test -f" |
---|
227 | |
---|
228 | # Sed expression to map a string onto a valid CPP name. |
---|
229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
230 | |
---|
231 | # Sed expression to map a string onto a valid variable name. |
---|
232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
233 | |
---|
234 | |
---|
235 | # IFS |
---|
236 | # We need space, tab and new line, in precisely that order. |
---|
237 | as_nl=' |
---|
238 | ' |
---|
239 | IFS=" $as_nl" |
---|
240 | |
---|
241 | # CDPATH. |
---|
242 | $as_unset CDPATH |
---|
243 | |
---|
244 | |
---|
245 | # Name of the host. |
---|
246 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
247 | # so uname gets run too. |
---|
248 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
249 | |
---|
250 | exec 6>&1 |
---|
251 | |
---|
252 | # |
---|
253 | # Initializations. |
---|
254 | # |
---|
255 | ac_default_prefix=/usr/local |
---|
256 | ac_config_libobj_dir=. |
---|
257 | cross_compiling=no |
---|
258 | subdirs= |
---|
259 | MFLAGS= |
---|
260 | MAKEFLAGS= |
---|
261 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
262 | |
---|
263 | # Maximum number of lines to put in a shell here document. |
---|
264 | # This variable seems obsolete. It should probably be removed, and |
---|
265 | # only ac_max_sed_lines should be used. |
---|
266 | : ${ac_max_here_lines=38} |
---|
267 | |
---|
268 | # Identity of this package. |
---|
269 | PACKAGE_NAME='Jabber Windowgram Client' |
---|
270 | PACKAGE_TARNAME='jwgc' |
---|
271 | PACKAGE_VERSION='beta5' |
---|
272 | PACKAGE_STRING='Jabber Windowgram Client beta5' |
---|
273 | PACKAGE_BUGREPORT='jadestorm@users.sourceforge.net' |
---|
274 | |
---|
275 | ac_unique_file="config.h.in" |
---|
276 | # Factoring default headers for most tests. |
---|
277 | ac_includes_default="\ |
---|
278 | #include <stdio.h> |
---|
279 | #if HAVE_SYS_TYPES_H |
---|
280 | # include <sys/types.h> |
---|
281 | #endif |
---|
282 | #if HAVE_SYS_STAT_H |
---|
283 | # include <sys/stat.h> |
---|
284 | #endif |
---|
285 | #if STDC_HEADERS |
---|
286 | # include <stdlib.h> |
---|
287 | # include <stddef.h> |
---|
288 | #else |
---|
289 | # if HAVE_STDLIB_H |
---|
290 | # include <stdlib.h> |
---|
291 | # endif |
---|
292 | #endif |
---|
293 | #if HAVE_STRING_H |
---|
294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
295 | # include <memory.h> |
---|
296 | # endif |
---|
297 | # include <string.h> |
---|
298 | #endif |
---|
299 | #if HAVE_STRINGS_H |
---|
300 | # include <strings.h> |
---|
301 | #endif |
---|
302 | #if HAVE_INTTYPES_H |
---|
303 | # include <inttypes.h> |
---|
304 | #else |
---|
305 | # if HAVE_STDINT_H |
---|
306 | # include <stdint.h> |
---|
307 | # endif |
---|
308 | #endif |
---|
309 | #if HAVE_UNISTD_H |
---|
310 | # include <unistd.h> |
---|
311 | #endif" |
---|
312 | |
---|
313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE YACC RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS LTLIBOBJS' |
---|
314 | ac_subst_files='' |
---|
315 | |
---|
316 | # Initialize some variables set by options. |
---|
317 | ac_init_help= |
---|
318 | ac_init_version=false |
---|
319 | # The variables have the same names as the options, with |
---|
320 | # dashes changed to underlines. |
---|
321 | cache_file=/dev/null |
---|
322 | exec_prefix=NONE |
---|
323 | no_create= |
---|
324 | no_recursion= |
---|
325 | prefix=NONE |
---|
326 | program_prefix=NONE |
---|
327 | program_suffix=NONE |
---|
328 | program_transform_name=s,x,x, |
---|
329 | silent= |
---|
330 | site= |
---|
331 | srcdir= |
---|
332 | verbose= |
---|
333 | x_includes=NONE |
---|
334 | x_libraries=NONE |
---|
335 | |
---|
336 | # Installation directory options. |
---|
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
338 | # and all the variables that are supposed to be based on exec_prefix |
---|
339 | # by default will actually change. |
---|
340 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
341 | bindir='${exec_prefix}/bin' |
---|
342 | sbindir='${exec_prefix}/sbin' |
---|
343 | libexecdir='${exec_prefix}/libexec' |
---|
344 | datadir='${prefix}/share' |
---|
345 | sysconfdir='${prefix}/etc' |
---|
346 | sharedstatedir='${prefix}/com' |
---|
347 | localstatedir='${prefix}/var' |
---|
348 | libdir='${exec_prefix}/lib' |
---|
349 | includedir='${prefix}/include' |
---|
350 | oldincludedir='/usr/include' |
---|
351 | infodir='${prefix}/info' |
---|
352 | mandir='${prefix}/man' |
---|
353 | |
---|
354 | ac_prev= |
---|
355 | for ac_option |
---|
356 | do |
---|
357 | # If the previous option needs an argument, assign it. |
---|
358 | if test -n "$ac_prev"; then |
---|
359 | eval "$ac_prev=\$ac_option" |
---|
360 | ac_prev= |
---|
361 | continue |
---|
362 | fi |
---|
363 | |
---|
364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
365 | |
---|
366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
367 | |
---|
368 | case $ac_option in |
---|
369 | |
---|
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
371 | ac_prev=bindir ;; |
---|
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
373 | bindir=$ac_optarg ;; |
---|
374 | |
---|
375 | -build | --build | --buil | --bui | --bu) |
---|
376 | ac_prev=build_alias ;; |
---|
377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
378 | build_alias=$ac_optarg ;; |
---|
379 | |
---|
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
382 | ac_prev=cache_file ;; |
---|
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
385 | cache_file=$ac_optarg ;; |
---|
386 | |
---|
387 | --config-cache | -C) |
---|
388 | cache_file=config.cache ;; |
---|
389 | |
---|
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
391 | ac_prev=datadir ;; |
---|
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
393 | | --da=*) |
---|
394 | datadir=$ac_optarg ;; |
---|
395 | |
---|
396 | -disable-* | --disable-*) |
---|
397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
398 | # Reject names that are not valid shell variable names. |
---|
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
401 | { (exit 1); exit 1; }; } |
---|
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
403 | eval "enable_$ac_feature=no" ;; |
---|
404 | |
---|
405 | -enable-* | --enable-*) |
---|
406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
407 | # Reject names that are not valid shell variable names. |
---|
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
410 | { (exit 1); exit 1; }; } |
---|
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
412 | case $ac_option in |
---|
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
414 | *) ac_optarg=yes ;; |
---|
415 | esac |
---|
416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
417 | |
---|
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
420 | | --exec | --exe | --ex) |
---|
421 | ac_prev=exec_prefix ;; |
---|
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
424 | | --exec=* | --exe=* | --ex=*) |
---|
425 | exec_prefix=$ac_optarg ;; |
---|
426 | |
---|
427 | -gas | --gas | --ga | --g) |
---|
428 | # Obsolete; use --with-gas. |
---|
429 | with_gas=yes ;; |
---|
430 | |
---|
431 | -help | --help | --hel | --he | -h) |
---|
432 | ac_init_help=long ;; |
---|
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
434 | ac_init_help=recursive ;; |
---|
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
436 | ac_init_help=short ;; |
---|
437 | |
---|
438 | -host | --host | --hos | --ho) |
---|
439 | ac_prev=host_alias ;; |
---|
440 | -host=* | --host=* | --hos=* | --ho=*) |
---|
441 | host_alias=$ac_optarg ;; |
---|
442 | |
---|
443 | -includedir | --includedir | --includedi | --included | --include \ |
---|
444 | | --includ | --inclu | --incl | --inc) |
---|
445 | ac_prev=includedir ;; |
---|
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
448 | includedir=$ac_optarg ;; |
---|
449 | |
---|
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
451 | ac_prev=infodir ;; |
---|
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
453 | infodir=$ac_optarg ;; |
---|
454 | |
---|
455 | -libdir | --libdir | --libdi | --libd) |
---|
456 | ac_prev=libdir ;; |
---|
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
458 | libdir=$ac_optarg ;; |
---|
459 | |
---|
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
461 | | --libexe | --libex | --libe) |
---|
462 | ac_prev=libexecdir ;; |
---|
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
464 | | --libexe=* | --libex=* | --libe=*) |
---|
465 | libexecdir=$ac_optarg ;; |
---|
466 | |
---|
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
468 | | --localstate | --localstat | --localsta | --localst \ |
---|
469 | | --locals | --local | --loca | --loc | --lo) |
---|
470 | ac_prev=localstatedir ;; |
---|
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
474 | localstatedir=$ac_optarg ;; |
---|
475 | |
---|
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
477 | ac_prev=mandir ;; |
---|
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
479 | mandir=$ac_optarg ;; |
---|
480 | |
---|
481 | -nfp | --nfp | --nf) |
---|
482 | # Obsolete; use --without-fp. |
---|
483 | with_fp=no ;; |
---|
484 | |
---|
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
486 | | --no-cr | --no-c | -n) |
---|
487 | no_create=yes ;; |
---|
488 | |
---|
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
491 | no_recursion=yes ;; |
---|
492 | |
---|
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
495 | | --oldin | --oldi | --old | --ol | --o) |
---|
496 | ac_prev=oldincludedir ;; |
---|
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
500 | oldincludedir=$ac_optarg ;; |
---|
501 | |
---|
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
503 | ac_prev=prefix ;; |
---|
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
505 | prefix=$ac_optarg ;; |
---|
506 | |
---|
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
508 | | --program-pre | --program-pr | --program-p) |
---|
509 | ac_prev=program_prefix ;; |
---|
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
512 | program_prefix=$ac_optarg ;; |
---|
513 | |
---|
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
515 | | --program-suf | --program-su | --program-s) |
---|
516 | ac_prev=program_suffix ;; |
---|
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
519 | program_suffix=$ac_optarg ;; |
---|
520 | |
---|
521 | -program-transform-name | --program-transform-name \ |
---|
522 | | --program-transform-nam | --program-transform-na \ |
---|
523 | | --program-transform-n | --program-transform- \ |
---|
524 | | --program-transform | --program-transfor \ |
---|
525 | | --program-transfo | --program-transf \ |
---|
526 | | --program-trans | --program-tran \ |
---|
527 | | --progr-tra | --program-tr | --program-t) |
---|
528 | ac_prev=program_transform_name ;; |
---|
529 | -program-transform-name=* | --program-transform-name=* \ |
---|
530 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
531 | | --program-transform-n=* | --program-transform-=* \ |
---|
532 | | --program-transform=* | --program-transfor=* \ |
---|
533 | | --program-transfo=* | --program-transf=* \ |
---|
534 | | --program-trans=* | --program-tran=* \ |
---|
535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
536 | program_transform_name=$ac_optarg ;; |
---|
537 | |
---|
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
539 | | -silent | --silent | --silen | --sile | --sil) |
---|
540 | silent=yes ;; |
---|
541 | |
---|
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
543 | ac_prev=sbindir ;; |
---|
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
545 | | --sbi=* | --sb=*) |
---|
546 | sbindir=$ac_optarg ;; |
---|
547 | |
---|
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
550 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
551 | | --sha | --sh) |
---|
552 | ac_prev=sharedstatedir ;; |
---|
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
556 | | --sha=* | --sh=*) |
---|
557 | sharedstatedir=$ac_optarg ;; |
---|
558 | |
---|
559 | -site | --site | --sit) |
---|
560 | ac_prev=site ;; |
---|
561 | -site=* | --site=* | --sit=*) |
---|
562 | site=$ac_optarg ;; |
---|
563 | |
---|
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
565 | ac_prev=srcdir ;; |
---|
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
567 | srcdir=$ac_optarg ;; |
---|
568 | |
---|
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
570 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
571 | ac_prev=sysconfdir ;; |
---|
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
574 | sysconfdir=$ac_optarg ;; |
---|
575 | |
---|
576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
577 | ac_prev=target_alias ;; |
---|
578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
579 | target_alias=$ac_optarg ;; |
---|
580 | |
---|
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
582 | verbose=yes ;; |
---|
583 | |
---|
584 | -version | --version | --versio | --versi | --vers | -V) |
---|
585 | ac_init_version=: ;; |
---|
586 | |
---|
587 | -with-* | --with-*) |
---|
588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
589 | # Reject names that are not valid shell variable names. |
---|
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
592 | { (exit 1); exit 1; }; } |
---|
593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
594 | case $ac_option in |
---|
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
596 | *) ac_optarg=yes ;; |
---|
597 | esac |
---|
598 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
599 | |
---|
600 | -without-* | --without-*) |
---|
601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
602 | # Reject names that are not valid shell variable names. |
---|
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
605 | { (exit 1); exit 1; }; } |
---|
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
607 | eval "with_$ac_package=no" ;; |
---|
608 | |
---|
609 | --x) |
---|
610 | # Obsolete; use --with-x. |
---|
611 | with_x=yes ;; |
---|
612 | |
---|
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
614 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
615 | ac_prev=x_includes ;; |
---|
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
618 | x_includes=$ac_optarg ;; |
---|
619 | |
---|
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
622 | ac_prev=x_libraries ;; |
---|
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
625 | x_libraries=$ac_optarg ;; |
---|
626 | |
---|
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
628 | Try \`$0 --help' for more information." >&2 |
---|
629 | { (exit 1); exit 1; }; } |
---|
630 | ;; |
---|
631 | |
---|
632 | *=*) |
---|
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
634 | # Reject names that are not valid shell variable names. |
---|
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
637 | { (exit 1); exit 1; }; } |
---|
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
639 | eval "$ac_envvar='$ac_optarg'" |
---|
640 | export $ac_envvar ;; |
---|
641 | |
---|
642 | *) |
---|
643 | # FIXME: should be removed in autoconf 3.0. |
---|
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
648 | ;; |
---|
649 | |
---|
650 | esac |
---|
651 | done |
---|
652 | |
---|
653 | if test -n "$ac_prev"; then |
---|
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
656 | { (exit 1); exit 1; }; } |
---|
657 | fi |
---|
658 | |
---|
659 | # Be sure to have absolute paths. |
---|
660 | for ac_var in exec_prefix prefix |
---|
661 | do |
---|
662 | eval ac_val=$`echo $ac_var` |
---|
663 | case $ac_val in |
---|
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
666 | { (exit 1); exit 1; }; };; |
---|
667 | esac |
---|
668 | done |
---|
669 | |
---|
670 | # Be sure to have absolute paths. |
---|
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
672 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
673 | do |
---|
674 | eval ac_val=$`echo $ac_var` |
---|
675 | case $ac_val in |
---|
676 | [\\/$]* | ?:[\\/]* ) ;; |
---|
677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
678 | { (exit 1); exit 1; }; };; |
---|
679 | esac |
---|
680 | done |
---|
681 | |
---|
682 | # There might be people who depend on the old broken behavior: `$host' |
---|
683 | # used to hold the argument of --host etc. |
---|
684 | # FIXME: To remove some day. |
---|
685 | build=$build_alias |
---|
686 | host=$host_alias |
---|
687 | target=$target_alias |
---|
688 | |
---|
689 | # FIXME: To remove some day. |
---|
690 | if test "x$host_alias" != x; then |
---|
691 | if test "x$build_alias" = x; then |
---|
692 | cross_compiling=maybe |
---|
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
695 | elif test "x$build_alias" != "x$host_alias"; then |
---|
696 | cross_compiling=yes |
---|
697 | fi |
---|
698 | fi |
---|
699 | |
---|
700 | ac_tool_prefix= |
---|
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
702 | |
---|
703 | test "$silent" = yes && exec 6>/dev/null |
---|
704 | |
---|
705 | |
---|
706 | # Find the source files, if location was not specified. |
---|
707 | if test -z "$srcdir"; then |
---|
708 | ac_srcdir_defaulted=yes |
---|
709 | # Try the directory containing this script, then its parent. |
---|
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
712 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
713 | X"$0" : 'X\(//\)$' \| \ |
---|
714 | X"$0" : 'X\(/\)' \| \ |
---|
715 | . : '\(.\)' 2>/dev/null || |
---|
716 | echo X"$0" | |
---|
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
719 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
720 | /^X\(\/\).*/{ s//\1/; q; } |
---|
721 | s/.*/./; q'` |
---|
722 | srcdir=$ac_confdir |
---|
723 | if test ! -r $srcdir/$ac_unique_file; then |
---|
724 | srcdir=.. |
---|
725 | fi |
---|
726 | else |
---|
727 | ac_srcdir_defaulted=no |
---|
728 | fi |
---|
729 | if test ! -r $srcdir/$ac_unique_file; then |
---|
730 | if test "$ac_srcdir_defaulted" = yes; then |
---|
731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
732 | { (exit 1); exit 1; }; } |
---|
733 | else |
---|
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
735 | { (exit 1); exit 1; }; } |
---|
736 | fi |
---|
737 | fi |
---|
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
740 | { (exit 1); exit 1; }; } |
---|
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
742 | ac_env_build_alias_set=${build_alias+set} |
---|
743 | ac_env_build_alias_value=$build_alias |
---|
744 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
745 | ac_cv_env_build_alias_value=$build_alias |
---|
746 | ac_env_host_alias_set=${host_alias+set} |
---|
747 | ac_env_host_alias_value=$host_alias |
---|
748 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
749 | ac_cv_env_host_alias_value=$host_alias |
---|
750 | ac_env_target_alias_set=${target_alias+set} |
---|
751 | ac_env_target_alias_value=$target_alias |
---|
752 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
753 | ac_cv_env_target_alias_value=$target_alias |
---|
754 | ac_env_CC_set=${CC+set} |
---|
755 | ac_env_CC_value=$CC |
---|
756 | ac_cv_env_CC_set=${CC+set} |
---|
757 | ac_cv_env_CC_value=$CC |
---|
758 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
759 | ac_env_CFLAGS_value=$CFLAGS |
---|
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
761 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
763 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
770 | ac_env_CPP_set=${CPP+set} |
---|
771 | ac_env_CPP_value=$CPP |
---|
772 | ac_cv_env_CPP_set=${CPP+set} |
---|
773 | ac_cv_env_CPP_value=$CPP |
---|
774 | |
---|
775 | # |
---|
776 | # Report the --help message. |
---|
777 | # |
---|
778 | if test "$ac_init_help" = "long"; then |
---|
779 | # Omit some internal or obsolete options to make the list less imposing. |
---|
780 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
781 | cat <<_ACEOF |
---|
782 | \`configure' configures Jabber Windowgram Client beta5 to adapt to many kinds of systems. |
---|
783 | |
---|
784 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
785 | |
---|
786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
787 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
788 | |
---|
789 | Defaults for the options are specified in brackets. |
---|
790 | |
---|
791 | Configuration: |
---|
792 | -h, --help display this help and exit |
---|
793 | --help=short display options specific to this package |
---|
794 | --help=recursive display the short help of all the included packages |
---|
795 | -V, --version display version information and exit |
---|
796 | -q, --quiet, --silent do not print \`checking...' messages |
---|
797 | --cache-file=FILE cache test results in FILE [disabled] |
---|
798 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
799 | -n, --no-create do not create output files |
---|
800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
801 | |
---|
802 | _ACEOF |
---|
803 | |
---|
804 | cat <<_ACEOF |
---|
805 | Installation directories: |
---|
806 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
807 | [$ac_default_prefix] |
---|
808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
809 | [PREFIX] |
---|
810 | |
---|
811 | By default, \`make install' will install all the files in |
---|
812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
814 | for instance \`--prefix=\$HOME'. |
---|
815 | |
---|
816 | For better control, use the options below. |
---|
817 | |
---|
818 | Fine tuning of the installation directories: |
---|
819 | --bindir=DIR user executables [EPREFIX/bin] |
---|
820 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
821 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
826 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
827 | --includedir=DIR C header files [PREFIX/include] |
---|
828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
829 | --infodir=DIR info documentation [PREFIX/info] |
---|
830 | --mandir=DIR man documentation [PREFIX/man] |
---|
831 | _ACEOF |
---|
832 | |
---|
833 | cat <<\_ACEOF |
---|
834 | |
---|
835 | Program names: |
---|
836 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
837 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
838 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
839 | |
---|
840 | X features: |
---|
841 | --x-includes=DIR X include files are in DIR |
---|
842 | --x-libraries=DIR X library files are in DIR |
---|
843 | |
---|
844 | System types: |
---|
845 | --build=BUILD configure for building on BUILD [guessed] |
---|
846 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
847 | _ACEOF |
---|
848 | fi |
---|
849 | |
---|
850 | if test -n "$ac_init_help"; then |
---|
851 | case $ac_init_help in |
---|
852 | short | recursive ) echo "Configuration of Jabber Windowgram Client beta5:";; |
---|
853 | esac |
---|
854 | cat <<\_ACEOF |
---|
855 | |
---|
856 | Optional Features: |
---|
857 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
858 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
859 | --enable-nodebug disable debugging functionality |
---|
860 | --disable-dependency-tracking Speeds up one-time builds |
---|
861 | --enable-dependency-tracking Do not reject slow dependency extractors |
---|
862 | |
---|
863 | Optional Packages: |
---|
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
866 | --with-default-server=SERVER change default server (jabber.org) |
---|
867 | --with-default-port=PORT change default port (5222) |
---|
868 | --with-default-sslport=PORT change default ssl port (5223) |
---|
869 | --with-default-resource=RESOURCE change default resource (jwgc) |
---|
870 | --with-default-presence=PRESENCE change default presence (available) |
---|
871 | --with-default-priority=PRIORITY change default priority (0) |
---|
872 | --with-default-usessl=BOOL default ssl usage (false) |
---|
873 | --with-default-usegpg=BOOL default gpg usage (false) |
---|
874 | --with-desc-user=FILENAME user desc filename (.jwgc.desc) |
---|
875 | --with-desc-default=FILENAME default desc filename (jwgc.desc) |
---|
876 | --with-vars-default=FILENAME default vars filename (jwgc.vars) |
---|
877 | --with-vars-user=FILENAME user vars filename (.jwgc.vars) |
---|
878 | --with-vars-fixed=FILENAME fixed vars filename (jwgc.vars.fixed) |
---|
879 | --with-ssl-dir=PATH path to OpenSSL installation |
---|
880 | --with-ssl-include=PATH path to OpenSSL header files |
---|
881 | --with-ssl-lib=PATH path to OpenSSL libraries |
---|
882 | --with-gpgme-dir=PATH path to GPGME installation |
---|
883 | --with-gpgme-include=PATH path to GPGME header files |
---|
884 | --with-gpgme-lib=PATH path to GPGME libraries |
---|
885 | --with-iconv-dir=PATH path to iconv installation |
---|
886 | --with-iconv-include=PATH path to iconv header files |
---|
887 | --with-iconv-lib=PATH path to iconv libraries |
---|
888 | --with-x use the X Window System |
---|
889 | |
---|
890 | Some influential environment variables: |
---|
891 | CC C compiler command |
---|
892 | CFLAGS C compiler flags |
---|
893 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
894 | nonstandard directory <lib dir> |
---|
895 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
896 | headers in a nonstandard directory <include dir> |
---|
897 | CPP C preprocessor |
---|
898 | |
---|
899 | Use these variables to override the choices made by `configure' or to help |
---|
900 | it to find libraries and programs with nonstandard names/locations. |
---|
901 | |
---|
902 | Report bugs to <jadestorm@users.sourceforge.net>. |
---|
903 | _ACEOF |
---|
904 | fi |
---|
905 | |
---|
906 | if test "$ac_init_help" = "recursive"; then |
---|
907 | # If there are subdirs, report their specific --help. |
---|
908 | ac_popdir=`pwd` |
---|
909 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
910 | test -d $ac_dir || continue |
---|
911 | ac_builddir=. |
---|
912 | |
---|
913 | if test "$ac_dir" != .; then |
---|
914 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
915 | # A "../" for each directory in $ac_dir_suffix. |
---|
916 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
917 | else |
---|
918 | ac_dir_suffix= ac_top_builddir= |
---|
919 | fi |
---|
920 | |
---|
921 | case $srcdir in |
---|
922 | .) # No --srcdir option. We are building in place. |
---|
923 | ac_srcdir=. |
---|
924 | if test -z "$ac_top_builddir"; then |
---|
925 | ac_top_srcdir=. |
---|
926 | else |
---|
927 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
928 | fi ;; |
---|
929 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
930 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
931 | ac_top_srcdir=$srcdir ;; |
---|
932 | *) # Relative path. |
---|
933 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
934 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
935 | esac |
---|
936 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
937 | # absolute. |
---|
938 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
939 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
940 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
941 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
942 | |
---|
943 | cd $ac_dir |
---|
944 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
945 | if test -f $ac_srcdir/configure.gnu; then |
---|
946 | echo |
---|
947 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
948 | elif test -f $ac_srcdir/configure; then |
---|
949 | echo |
---|
950 | $SHELL $ac_srcdir/configure --help=recursive |
---|
951 | elif test -f $ac_srcdir/configure.ac || |
---|
952 | test -f $ac_srcdir/configure.in; then |
---|
953 | echo |
---|
954 | $ac_configure --help |
---|
955 | else |
---|
956 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
957 | fi |
---|
958 | cd $ac_popdir |
---|
959 | done |
---|
960 | fi |
---|
961 | |
---|
962 | test -n "$ac_init_help" && exit 0 |
---|
963 | if $ac_init_version; then |
---|
964 | cat <<\_ACEOF |
---|
965 | Jabber Windowgram Client configure beta5 |
---|
966 | generated by GNU Autoconf 2.57 |
---|
967 | |
---|
968 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
969 | Free Software Foundation, Inc. |
---|
970 | This configure script is free software; the Free Software Foundation |
---|
971 | gives unlimited permission to copy, distribute and modify it. |
---|
972 | _ACEOF |
---|
973 | exit 0 |
---|
974 | fi |
---|
975 | exec 5>config.log |
---|
976 | cat >&5 <<_ACEOF |
---|
977 | This file contains any messages produced by compilers while |
---|
978 | running configure, to aid debugging if configure makes a mistake. |
---|
979 | |
---|
980 | It was created by Jabber Windowgram Client $as_me beta5, which was |
---|
981 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
982 | |
---|
983 | $ $0 $@ |
---|
984 | |
---|
985 | _ACEOF |
---|
986 | { |
---|
987 | cat <<_ASUNAME |
---|
988 | ## --------- ## |
---|
989 | ## Platform. ## |
---|
990 | ## --------- ## |
---|
991 | |
---|
992 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
993 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
994 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
995 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
996 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
997 | |
---|
998 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
999 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1000 | |
---|
1001 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1002 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1003 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1004 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1005 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1006 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1007 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1008 | |
---|
1009 | _ASUNAME |
---|
1010 | |
---|
1011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1012 | for as_dir in $PATH |
---|
1013 | do |
---|
1014 | IFS=$as_save_IFS |
---|
1015 | test -z "$as_dir" && as_dir=. |
---|
1016 | echo "PATH: $as_dir" |
---|
1017 | done |
---|
1018 | |
---|
1019 | } >&5 |
---|
1020 | |
---|
1021 | cat >&5 <<_ACEOF |
---|
1022 | |
---|
1023 | |
---|
1024 | ## ----------- ## |
---|
1025 | ## Core tests. ## |
---|
1026 | ## ----------- ## |
---|
1027 | |
---|
1028 | _ACEOF |
---|
1029 | |
---|
1030 | |
---|
1031 | # Keep a trace of the command line. |
---|
1032 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1033 | # Strip out --silent because we don't want to record it for future runs. |
---|
1034 | # Also quote any args containing shell meta-characters. |
---|
1035 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1036 | ac_configure_args= |
---|
1037 | ac_configure_args0= |
---|
1038 | ac_configure_args1= |
---|
1039 | ac_sep= |
---|
1040 | ac_must_keep_next=false |
---|
1041 | for ac_pass in 1 2 |
---|
1042 | do |
---|
1043 | for ac_arg |
---|
1044 | do |
---|
1045 | case $ac_arg in |
---|
1046 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1047 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1048 | | -silent | --silent | --silen | --sile | --sil) |
---|
1049 | continue ;; |
---|
1050 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1051 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1052 | esac |
---|
1053 | case $ac_pass in |
---|
1054 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1055 | 2) |
---|
1056 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1057 | if test $ac_must_keep_next = true; then |
---|
1058 | ac_must_keep_next=false # Got value, back to normal. |
---|
1059 | else |
---|
1060 | case $ac_arg in |
---|
1061 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1062 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1063 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1064 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1065 | case "$ac_configure_args0 " in |
---|
1066 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1067 | esac |
---|
1068 | ;; |
---|
1069 | -* ) ac_must_keep_next=true ;; |
---|
1070 | esac |
---|
1071 | fi |
---|
1072 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1073 | # Get rid of the leading space. |
---|
1074 | ac_sep=" " |
---|
1075 | ;; |
---|
1076 | esac |
---|
1077 | done |
---|
1078 | done |
---|
1079 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1080 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1081 | |
---|
1082 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1083 | # config.log. We remove comments because anyway the quotes in there |
---|
1084 | # would cause problems or look ugly. |
---|
1085 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1086 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1087 | trap 'exit_status=$? |
---|
1088 | # Save into config.log some information that might help in debugging. |
---|
1089 | { |
---|
1090 | echo |
---|
1091 | |
---|
1092 | cat <<\_ASBOX |
---|
1093 | ## ---------------- ## |
---|
1094 | ## Cache variables. ## |
---|
1095 | ## ---------------- ## |
---|
1096 | _ASBOX |
---|
1097 | echo |
---|
1098 | # The following way of writing the cache mishandles newlines in values, |
---|
1099 | { |
---|
1100 | (set) 2>&1 | |
---|
1101 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1102 | *ac_space=\ *) |
---|
1103 | sed -n \ |
---|
1104 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1105 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1106 | ;; |
---|
1107 | *) |
---|
1108 | sed -n \ |
---|
1109 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1110 | ;; |
---|
1111 | esac; |
---|
1112 | } |
---|
1113 | echo |
---|
1114 | |
---|
1115 | cat <<\_ASBOX |
---|
1116 | ## ----------------- ## |
---|
1117 | ## Output variables. ## |
---|
1118 | ## ----------------- ## |
---|
1119 | _ASBOX |
---|
1120 | echo |
---|
1121 | for ac_var in $ac_subst_vars |
---|
1122 | do |
---|
1123 | eval ac_val=$`echo $ac_var` |
---|
1124 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1125 | done | sort |
---|
1126 | echo |
---|
1127 | |
---|
1128 | if test -n "$ac_subst_files"; then |
---|
1129 | cat <<\_ASBOX |
---|
1130 | ## ------------- ## |
---|
1131 | ## Output files. ## |
---|
1132 | ## ------------- ## |
---|
1133 | _ASBOX |
---|
1134 | echo |
---|
1135 | for ac_var in $ac_subst_files |
---|
1136 | do |
---|
1137 | eval ac_val=$`echo $ac_var` |
---|
1138 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1139 | done | sort |
---|
1140 | echo |
---|
1141 | fi |
---|
1142 | |
---|
1143 | if test -s confdefs.h; then |
---|
1144 | cat <<\_ASBOX |
---|
1145 | ## ----------- ## |
---|
1146 | ## confdefs.h. ## |
---|
1147 | ## ----------- ## |
---|
1148 | _ASBOX |
---|
1149 | echo |
---|
1150 | sed "/^$/d" confdefs.h | sort |
---|
1151 | echo |
---|
1152 | fi |
---|
1153 | test "$ac_signal" != 0 && |
---|
1154 | echo "$as_me: caught signal $ac_signal" |
---|
1155 | echo "$as_me: exit $exit_status" |
---|
1156 | } >&5 |
---|
1157 | rm -f core core.* *.core && |
---|
1158 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1159 | exit $exit_status |
---|
1160 | ' 0 |
---|
1161 | for ac_signal in 1 2 13 15; do |
---|
1162 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1163 | done |
---|
1164 | ac_signal=0 |
---|
1165 | |
---|
1166 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1167 | rm -rf conftest* confdefs.h |
---|
1168 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1169 | echo >confdefs.h |
---|
1170 | |
---|
1171 | # Predefined preprocessor variables. |
---|
1172 | |
---|
1173 | cat >>confdefs.h <<_ACEOF |
---|
1174 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1175 | _ACEOF |
---|
1176 | |
---|
1177 | |
---|
1178 | cat >>confdefs.h <<_ACEOF |
---|
1179 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1180 | _ACEOF |
---|
1181 | |
---|
1182 | |
---|
1183 | cat >>confdefs.h <<_ACEOF |
---|
1184 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1185 | _ACEOF |
---|
1186 | |
---|
1187 | |
---|
1188 | cat >>confdefs.h <<_ACEOF |
---|
1189 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1190 | _ACEOF |
---|
1191 | |
---|
1192 | |
---|
1193 | cat >>confdefs.h <<_ACEOF |
---|
1194 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1195 | _ACEOF |
---|
1196 | |
---|
1197 | |
---|
1198 | # Let the site file select an alternate cache file if it wants to. |
---|
1199 | # Prefer explicitly selected file to automatically selected ones. |
---|
1200 | if test -z "$CONFIG_SITE"; then |
---|
1201 | if test "x$prefix" != xNONE; then |
---|
1202 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1203 | else |
---|
1204 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1205 | fi |
---|
1206 | fi |
---|
1207 | for ac_site_file in $CONFIG_SITE; do |
---|
1208 | if test -r "$ac_site_file"; then |
---|
1209 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1210 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1211 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1212 | . "$ac_site_file" |
---|
1213 | fi |
---|
1214 | done |
---|
1215 | |
---|
1216 | if test -r "$cache_file"; then |
---|
1217 | # Some versions of bash will fail to source /dev/null (special |
---|
1218 | # files actually), so we avoid doing that. |
---|
1219 | if test -f "$cache_file"; then |
---|
1220 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1221 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1222 | case $cache_file in |
---|
1223 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1224 | *) . ./$cache_file;; |
---|
1225 | esac |
---|
1226 | fi |
---|
1227 | else |
---|
1228 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1229 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1230 | >$cache_file |
---|
1231 | fi |
---|
1232 | |
---|
1233 | # Check that the precious variables saved in the cache have kept the same |
---|
1234 | # value. |
---|
1235 | ac_cache_corrupted=false |
---|
1236 | for ac_var in `(set) 2>&1 | |
---|
1237 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1238 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1239 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1240 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1241 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1242 | case $ac_old_set,$ac_new_set in |
---|
1243 | set,) |
---|
1244 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1245 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1246 | ac_cache_corrupted=: ;; |
---|
1247 | ,set) |
---|
1248 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1249 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1250 | ac_cache_corrupted=: ;; |
---|
1251 | ,);; |
---|
1252 | *) |
---|
1253 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1254 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1255 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1256 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1257 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1258 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1259 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1260 | ac_cache_corrupted=: |
---|
1261 | fi;; |
---|
1262 | esac |
---|
1263 | # Pass precious variables to config.status. |
---|
1264 | if test "$ac_new_set" = set; then |
---|
1265 | case $ac_new_val in |
---|
1266 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1267 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1268 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1269 | esac |
---|
1270 | case " $ac_configure_args " in |
---|
1271 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1272 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1273 | esac |
---|
1274 | fi |
---|
1275 | done |
---|
1276 | if $ac_cache_corrupted; then |
---|
1277 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1278 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1279 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1280 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1281 | { (exit 1); exit 1; }; } |
---|
1282 | fi |
---|
1283 | |
---|
1284 | ac_ext=c |
---|
1285 | ac_cpp='$CPP $CPPFLAGS' |
---|
1286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1289 | |
---|
1290 | |
---|
1291 | |
---|
1292 | |
---|
1293 | |
---|
1294 | |
---|
1295 | |
---|
1296 | |
---|
1297 | |
---|
1298 | |
---|
1299 | |
---|
1300 | |
---|
1301 | |
---|
1302 | |
---|
1303 | |
---|
1304 | |
---|
1305 | |
---|
1306 | |
---|
1307 | |
---|
1308 | |
---|
1309 | |
---|
1310 | |
---|
1311 | |
---|
1312 | |
---|
1313 | |
---|
1314 | |
---|
1315 | |
---|
1316 | |
---|
1317 | ac_config_headers="$ac_config_headers config.h" |
---|
1318 | |
---|
1319 | ac_aux_dir= |
---|
1320 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1321 | if test -f $ac_dir/install-sh; then |
---|
1322 | ac_aux_dir=$ac_dir |
---|
1323 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1324 | break |
---|
1325 | elif test -f $ac_dir/install.sh; then |
---|
1326 | ac_aux_dir=$ac_dir |
---|
1327 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1328 | break |
---|
1329 | elif test -f $ac_dir/shtool; then |
---|
1330 | ac_aux_dir=$ac_dir |
---|
1331 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1332 | break |
---|
1333 | fi |
---|
1334 | done |
---|
1335 | if test -z "$ac_aux_dir"; then |
---|
1336 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1337 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1338 | { (exit 1); exit 1; }; } |
---|
1339 | fi |
---|
1340 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1341 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1342 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1343 | |
---|
1344 | # Make sure we can run config.sub. |
---|
1345 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1346 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1347 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1348 | { (exit 1); exit 1; }; } |
---|
1349 | |
---|
1350 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1351 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1352 | if test "${ac_cv_build+set}" = set; then |
---|
1353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1354 | else |
---|
1355 | ac_cv_build_alias=$build_alias |
---|
1356 | test -z "$ac_cv_build_alias" && |
---|
1357 | ac_cv_build_alias=`$ac_config_guess` |
---|
1358 | test -z "$ac_cv_build_alias" && |
---|
1359 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1360 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1361 | { (exit 1); exit 1; }; } |
---|
1362 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1363 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1364 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1365 | { (exit 1); exit 1; }; } |
---|
1366 | |
---|
1367 | fi |
---|
1368 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1369 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1370 | build=$ac_cv_build |
---|
1371 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1372 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1373 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1374 | |
---|
1375 | |
---|
1376 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1377 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1378 | if test "${ac_cv_host+set}" = set; then |
---|
1379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1380 | else |
---|
1381 | ac_cv_host_alias=$host_alias |
---|
1382 | test -z "$ac_cv_host_alias" && |
---|
1383 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1384 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1385 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1386 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1387 | { (exit 1); exit 1; }; } |
---|
1388 | |
---|
1389 | fi |
---|
1390 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1391 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1392 | host=$ac_cv_host |
---|
1393 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1394 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1395 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1396 | |
---|
1397 | |
---|
1398 | am__api_version="1.7" |
---|
1399 | # Find a good install program. We prefer a C program (faster), |
---|
1400 | # so one script is as good as another. But avoid the broken or |
---|
1401 | # incompatible versions: |
---|
1402 | # SysV /etc/install, /usr/sbin/install |
---|
1403 | # SunOS /usr/etc/install |
---|
1404 | # IRIX /sbin/install |
---|
1405 | # AIX /bin/install |
---|
1406 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1407 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1408 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1409 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1410 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1411 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1412 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1413 | if test -z "$INSTALL"; then |
---|
1414 | if test "${ac_cv_path_install+set}" = set; then |
---|
1415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1416 | else |
---|
1417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1418 | for as_dir in $PATH |
---|
1419 | do |
---|
1420 | IFS=$as_save_IFS |
---|
1421 | test -z "$as_dir" && as_dir=. |
---|
1422 | # Account for people who put trailing slashes in PATH elements. |
---|
1423 | case $as_dir/ in |
---|
1424 | ./ | .// | /cC/* | \ |
---|
1425 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1426 | /usr/ucb/* ) ;; |
---|
1427 | *) |
---|
1428 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1429 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1430 | # by default. |
---|
1431 | for ac_prog in ginstall scoinst install; do |
---|
1432 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1433 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1434 | if test $ac_prog = install && |
---|
1435 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1436 | # AIX install. It has an incompatible calling convention. |
---|
1437 | : |
---|
1438 | elif test $ac_prog = install && |
---|
1439 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1440 | # program-specific install script used by HP pwplus--don't use. |
---|
1441 | : |
---|
1442 | else |
---|
1443 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1444 | break 3 |
---|
1445 | fi |
---|
1446 | fi |
---|
1447 | done |
---|
1448 | done |
---|
1449 | ;; |
---|
1450 | esac |
---|
1451 | done |
---|
1452 | |
---|
1453 | |
---|
1454 | fi |
---|
1455 | if test "${ac_cv_path_install+set}" = set; then |
---|
1456 | INSTALL=$ac_cv_path_install |
---|
1457 | else |
---|
1458 | # As a last resort, use the slow shell script. We don't cache a |
---|
1459 | # path for INSTALL within a source directory, because that will |
---|
1460 | # break other packages using the cache if that directory is |
---|
1461 | # removed, or if the path is relative. |
---|
1462 | INSTALL=$ac_install_sh |
---|
1463 | fi |
---|
1464 | fi |
---|
1465 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1466 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1467 | |
---|
1468 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1469 | # It thinks the first close brace ends the variable substitution. |
---|
1470 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1471 | |
---|
1472 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1473 | |
---|
1474 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1475 | |
---|
1476 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1477 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1478 | # Just in case |
---|
1479 | sleep 1 |
---|
1480 | echo timestamp > conftest.file |
---|
1481 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1482 | # arguments. Must try -L first in case configure is actually a |
---|
1483 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1484 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1485 | # directory). |
---|
1486 | if ( |
---|
1487 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1488 | if test "$*" = "X"; then |
---|
1489 | # -L didn't work. |
---|
1490 | set X `ls -t $srcdir/configure conftest.file` |
---|
1491 | fi |
---|
1492 | rm -f conftest.file |
---|
1493 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1494 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1495 | |
---|
1496 | # If neither matched, then we have a broken ls. This can happen |
---|
1497 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1498 | # broken ls alias from the environment. This has actually |
---|
1499 | # happened. Such a system could not be considered "sane". |
---|
1500 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1501 | alias in your environment" >&5 |
---|
1502 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1503 | alias in your environment" >&2;} |
---|
1504 | { (exit 1); exit 1; }; } |
---|
1505 | fi |
---|
1506 | |
---|
1507 | test "$2" = conftest.file |
---|
1508 | ) |
---|
1509 | then |
---|
1510 | # Ok. |
---|
1511 | : |
---|
1512 | else |
---|
1513 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1514 | Check your system clock" >&5 |
---|
1515 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1516 | Check your system clock" >&2;} |
---|
1517 | { (exit 1); exit 1; }; } |
---|
1518 | fi |
---|
1519 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1520 | echo "${ECHO_T}yes" >&6 |
---|
1521 | test "$program_prefix" != NONE && |
---|
1522 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1523 | # Use a double $ so make ignores it. |
---|
1524 | test "$program_suffix" != NONE && |
---|
1525 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1526 | # Double any \ or $. echo might interpret backslashes. |
---|
1527 | # By default was `s,x,x', remove it if useless. |
---|
1528 | cat <<\_ACEOF >conftest.sed |
---|
1529 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1530 | _ACEOF |
---|
1531 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1532 | rm conftest.sed |
---|
1533 | |
---|
1534 | |
---|
1535 | # expand $ac_aux_dir to an absolute path |
---|
1536 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1537 | |
---|
1538 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1539 | # Use eval to expand $SHELL |
---|
1540 | if eval "$MISSING --run true"; then |
---|
1541 | am_missing_run="$MISSING --run " |
---|
1542 | else |
---|
1543 | am_missing_run= |
---|
1544 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1545 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1546 | fi |
---|
1547 | |
---|
1548 | for ac_prog in gawk mawk nawk awk |
---|
1549 | do |
---|
1550 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1551 | set dummy $ac_prog; ac_word=$2 |
---|
1552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1554 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1556 | else |
---|
1557 | if test -n "$AWK"; then |
---|
1558 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1559 | else |
---|
1560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1561 | for as_dir in $PATH |
---|
1562 | do |
---|
1563 | IFS=$as_save_IFS |
---|
1564 | test -z "$as_dir" && as_dir=. |
---|
1565 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1567 | ac_cv_prog_AWK="$ac_prog" |
---|
1568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1569 | break 2 |
---|
1570 | fi |
---|
1571 | done |
---|
1572 | done |
---|
1573 | |
---|
1574 | fi |
---|
1575 | fi |
---|
1576 | AWK=$ac_cv_prog_AWK |
---|
1577 | if test -n "$AWK"; then |
---|
1578 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1579 | echo "${ECHO_T}$AWK" >&6 |
---|
1580 | else |
---|
1581 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1582 | echo "${ECHO_T}no" >&6 |
---|
1583 | fi |
---|
1584 | |
---|
1585 | test -n "$AWK" && break |
---|
1586 | done |
---|
1587 | |
---|
1588 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1589 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1590 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
---|
1591 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1593 | else |
---|
1594 | cat >conftest.make <<\_ACEOF |
---|
1595 | all: |
---|
1596 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1597 | _ACEOF |
---|
1598 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1599 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1600 | if test -n "$ac_maketemp"; then |
---|
1601 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1602 | else |
---|
1603 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1604 | fi |
---|
1605 | rm -f conftest.make |
---|
1606 | fi |
---|
1607 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1608 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1609 | echo "${ECHO_T}yes" >&6 |
---|
1610 | SET_MAKE= |
---|
1611 | else |
---|
1612 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1613 | echo "${ECHO_T}no" >&6 |
---|
1614 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1615 | fi |
---|
1616 | |
---|
1617 | rm -rf .tst 2>/dev/null |
---|
1618 | mkdir .tst 2>/dev/null |
---|
1619 | if test -d .tst; then |
---|
1620 | am__leading_dot=. |
---|
1621 | else |
---|
1622 | am__leading_dot=_ |
---|
1623 | fi |
---|
1624 | rmdir .tst 2>/dev/null |
---|
1625 | |
---|
1626 | # test to see if srcdir already configured |
---|
1627 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1628 | test -f $srcdir/config.status; then |
---|
1629 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1630 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1631 | { (exit 1); exit 1; }; } |
---|
1632 | fi |
---|
1633 | |
---|
1634 | # test whether we have cygpath |
---|
1635 | if test -z "$CYGPATH_W"; then |
---|
1636 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1637 | CYGPATH_W='cygpath -w' |
---|
1638 | else |
---|
1639 | CYGPATH_W=echo |
---|
1640 | fi |
---|
1641 | fi |
---|
1642 | |
---|
1643 | |
---|
1644 | # Define the identity of the package. |
---|
1645 | PACKAGE='jwgc' |
---|
1646 | VERSION='beta5' |
---|
1647 | |
---|
1648 | |
---|
1649 | cat >>confdefs.h <<_ACEOF |
---|
1650 | #define PACKAGE "$PACKAGE" |
---|
1651 | _ACEOF |
---|
1652 | |
---|
1653 | |
---|
1654 | cat >>confdefs.h <<_ACEOF |
---|
1655 | #define VERSION "$VERSION" |
---|
1656 | _ACEOF |
---|
1657 | |
---|
1658 | # Some tools Automake needs. |
---|
1659 | |
---|
1660 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1661 | |
---|
1662 | |
---|
1663 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1664 | |
---|
1665 | |
---|
1666 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1667 | |
---|
1668 | |
---|
1669 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1670 | |
---|
1671 | |
---|
1672 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1673 | |
---|
1674 | |
---|
1675 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1676 | |
---|
1677 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1678 | |
---|
1679 | # Installed binaries are usually stripped using `strip' when the user |
---|
1680 | # run `make install-strip'. However `strip' might not be the right |
---|
1681 | # tool to use in cross-compilation environments, therefore Automake |
---|
1682 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1683 | if test "$cross_compiling" != no; then |
---|
1684 | if test -n "$ac_tool_prefix"; then |
---|
1685 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1686 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1687 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1689 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1691 | else |
---|
1692 | if test -n "$STRIP"; then |
---|
1693 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1694 | else |
---|
1695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1696 | for as_dir in $PATH |
---|
1697 | do |
---|
1698 | IFS=$as_save_IFS |
---|
1699 | test -z "$as_dir" && as_dir=. |
---|
1700 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1701 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1702 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1704 | break 2 |
---|
1705 | fi |
---|
1706 | done |
---|
1707 | done |
---|
1708 | |
---|
1709 | fi |
---|
1710 | fi |
---|
1711 | STRIP=$ac_cv_prog_STRIP |
---|
1712 | if test -n "$STRIP"; then |
---|
1713 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1714 | echo "${ECHO_T}$STRIP" >&6 |
---|
1715 | else |
---|
1716 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1717 | echo "${ECHO_T}no" >&6 |
---|
1718 | fi |
---|
1719 | |
---|
1720 | fi |
---|
1721 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1722 | ac_ct_STRIP=$STRIP |
---|
1723 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1724 | set dummy strip; ac_word=$2 |
---|
1725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1727 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1729 | else |
---|
1730 | if test -n "$ac_ct_STRIP"; then |
---|
1731 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1732 | else |
---|
1733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1734 | for as_dir in $PATH |
---|
1735 | do |
---|
1736 | IFS=$as_save_IFS |
---|
1737 | test -z "$as_dir" && as_dir=. |
---|
1738 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1740 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1742 | break 2 |
---|
1743 | fi |
---|
1744 | done |
---|
1745 | done |
---|
1746 | |
---|
1747 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1748 | fi |
---|
1749 | fi |
---|
1750 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1751 | if test -n "$ac_ct_STRIP"; then |
---|
1752 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1753 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1754 | else |
---|
1755 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1756 | echo "${ECHO_T}no" >&6 |
---|
1757 | fi |
---|
1758 | |
---|
1759 | STRIP=$ac_ct_STRIP |
---|
1760 | else |
---|
1761 | STRIP="$ac_cv_prog_STRIP" |
---|
1762 | fi |
---|
1763 | |
---|
1764 | fi |
---|
1765 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1766 | |
---|
1767 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1768 | # some platforms. |
---|
1769 | |
---|
1770 | |
---|
1771 | |
---|
1772 | |
---|
1773 | case "$host" in |
---|
1774 | *-*-netbsd*) |
---|
1775 | need_dash_r=1 |
---|
1776 | ;; |
---|
1777 | *-*-solaris*) |
---|
1778 | need_dash_r=1 |
---|
1779 | ;; |
---|
1780 | esac |
---|
1781 | |
---|
1782 | |
---|
1783 | # Check whether --with-default-server or --without-default-server was given. |
---|
1784 | if test "${with_default_server+set}" = set; then |
---|
1785 | withval="$with_default_server" |
---|
1786 | |
---|
1787 | |
---|
1788 | cat >>confdefs.h <<_ACEOF |
---|
1789 | #define DEFSERVER "$withval" |
---|
1790 | _ACEOF |
---|
1791 | |
---|
1792 | |
---|
1793 | |
---|
1794 | fi; |
---|
1795 | |
---|
1796 | # Check whether --with-default-port or --without-default-port was given. |
---|
1797 | if test "${with_default_port+set}" = set; then |
---|
1798 | withval="$with_default_port" |
---|
1799 | |
---|
1800 | |
---|
1801 | cat >>confdefs.h <<_ACEOF |
---|
1802 | #define DEFPORT "$withval" |
---|
1803 | _ACEOF |
---|
1804 | |
---|
1805 | |
---|
1806 | |
---|
1807 | fi; |
---|
1808 | |
---|
1809 | # Check whether --with-default-sslport or --without-default-sslport was given. |
---|
1810 | if test "${with_default_sslport+set}" = set; then |
---|
1811 | withval="$with_default_sslport" |
---|
1812 | |
---|
1813 | |
---|
1814 | cat >>confdefs.h <<_ACEOF |
---|
1815 | #define DEFSSLPORT "$withval" |
---|
1816 | _ACEOF |
---|
1817 | |
---|
1818 | |
---|
1819 | |
---|
1820 | fi; |
---|
1821 | |
---|
1822 | # Check whether --with-default-resource or --without-default-resource was given. |
---|
1823 | if test "${with_default_resource+set}" = set; then |
---|
1824 | withval="$with_default_resource" |
---|
1825 | |
---|
1826 | |
---|
1827 | cat >>confdefs.h <<_ACEOF |
---|
1828 | #define DEFRESOURCE "$withval" |
---|
1829 | _ACEOF |
---|
1830 | |
---|
1831 | |
---|
1832 | |
---|
1833 | fi; |
---|
1834 | |
---|
1835 | # Check whether --with-default-presence or --without-default-presence was given. |
---|
1836 | if test "${with_default_presence+set}" = set; then |
---|
1837 | withval="$with_default_presence" |
---|
1838 | |
---|
1839 | |
---|
1840 | cat >>confdefs.h <<_ACEOF |
---|
1841 | #define DEFPRESENCE "$withval" |
---|
1842 | _ACEOF |
---|
1843 | |
---|
1844 | |
---|
1845 | |
---|
1846 | fi; |
---|
1847 | |
---|
1848 | # Check whether --with-default-priority or --without-default-priority was given. |
---|
1849 | if test "${with_default_priority+set}" = set; then |
---|
1850 | withval="$with_default_priority" |
---|
1851 | |
---|
1852 | |
---|
1853 | cat >>confdefs.h <<_ACEOF |
---|
1854 | #define DEFPRIORITY "$withval" |
---|
1855 | _ACEOF |
---|
1856 | |
---|
1857 | |
---|
1858 | |
---|
1859 | fi; |
---|
1860 | |
---|
1861 | # Check whether --with-default-usessl or --without-default-usessl was given. |
---|
1862 | if test "${with_default_usessl+set}" = set; then |
---|
1863 | withval="$with_default_usessl" |
---|
1864 | |
---|
1865 | |
---|
1866 | cat >>confdefs.h <<_ACEOF |
---|
1867 | #define DEFUSESSL "$withval" |
---|
1868 | _ACEOF |
---|
1869 | |
---|
1870 | |
---|
1871 | |
---|
1872 | fi; |
---|
1873 | |
---|
1874 | # Check whether --with-default-usegpg or --without-default-usegpg was given. |
---|
1875 | if test "${with_default_usegpg+set}" = set; then |
---|
1876 | withval="$with_default_usegpg" |
---|
1877 | |
---|
1878 | |
---|
1879 | cat >>confdefs.h <<_ACEOF |
---|
1880 | #define DEFUSEGPG "$withval" |
---|
1881 | _ACEOF |
---|
1882 | |
---|
1883 | |
---|
1884 | |
---|
1885 | fi; |
---|
1886 | |
---|
1887 | # Check whether --with-desc-user or --without-desc-user was given. |
---|
1888 | if test "${with_desc_user+set}" = set; then |
---|
1889 | withval="$with_desc_user" |
---|
1890 | |
---|
1891 | |
---|
1892 | cat >>confdefs.h <<_ACEOF |
---|
1893 | #define USRDESC "$withval" |
---|
1894 | _ACEOF |
---|
1895 | |
---|
1896 | |
---|
1897 | |
---|
1898 | fi; |
---|
1899 | |
---|
1900 | # Check whether --with-desc-default or --without-desc-default was given. |
---|
1901 | if test "${with_desc_default+set}" = set; then |
---|
1902 | withval="$with_desc_default" |
---|
1903 | |
---|
1904 | |
---|
1905 | cat >>confdefs.h <<_ACEOF |
---|
1906 | #define DEFDESC "$withval" |
---|
1907 | _ACEOF |
---|
1908 | |
---|
1909 | |
---|
1910 | |
---|
1911 | fi; |
---|
1912 | |
---|
1913 | # Check whether --with-vars-default or --without-vars-default was given. |
---|
1914 | if test "${with_vars_default+set}" = set; then |
---|
1915 | withval="$with_vars_default" |
---|
1916 | |
---|
1917 | |
---|
1918 | cat >>confdefs.h <<_ACEOF |
---|
1919 | #define DEFVARS "$withval" |
---|
1920 | _ACEOF |
---|
1921 | |
---|
1922 | |
---|
1923 | |
---|
1924 | fi; |
---|
1925 | |
---|
1926 | # Check whether --with-vars-user or --without-vars-user was given. |
---|
1927 | if test "${with_vars_user+set}" = set; then |
---|
1928 | withval="$with_vars_user" |
---|
1929 | |
---|
1930 | |
---|
1931 | cat >>confdefs.h <<_ACEOF |
---|
1932 | #define USRVARS "$withval" |
---|
1933 | _ACEOF |
---|
1934 | |
---|
1935 | |
---|
1936 | |
---|
1937 | fi; |
---|
1938 | |
---|
1939 | # Check whether --with-vars-fixed or --without-vars-fixed was given. |
---|
1940 | if test "${with_vars_fixed+set}" = set; then |
---|
1941 | withval="$with_vars_fixed" |
---|
1942 | |
---|
1943 | |
---|
1944 | cat >>confdefs.h <<_ACEOF |
---|
1945 | #define FIXEDVARS "$withval" |
---|
1946 | _ACEOF |
---|
1947 | |
---|
1948 | |
---|
1949 | |
---|
1950 | fi; |
---|
1951 | |
---|
1952 | # Check whether --with-ssl-dir or --without-ssl-dir was given. |
---|
1953 | if test "${with_ssl_dir+set}" = set; then |
---|
1954 | withval="$with_ssl_dir" |
---|
1955 | |
---|
1956 | CFLAGS="$CFLAGS -I${withval}/include" |
---|
1957 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
---|
1958 | LDFLAGS="$LDFLAGS -L${withval}/lib" |
---|
1959 | if test -n "${need_dash_r}"; then |
---|
1960 | LDFLAGS="$LDFLAGS -R${withval}/lib" |
---|
1961 | fi |
---|
1962 | |
---|
1963 | |
---|
1964 | fi; |
---|
1965 | |
---|
1966 | # Check whether --with-ssl-include or --without-ssl-include was given. |
---|
1967 | if test "${with_ssl_include+set}" = set; then |
---|
1968 | withval="$with_ssl_include" |
---|
1969 | |
---|
1970 | CFLAGS="$CFLAGS -I${withval}" |
---|
1971 | CPPFLAGS="$CPPFLAGS -I${withval}" |
---|
1972 | |
---|
1973 | |
---|
1974 | fi; |
---|
1975 | |
---|
1976 | # Check whether --with-ssl-lib or --without-ssl-lib was given. |
---|
1977 | if test "${with_ssl_lib+set}" = set; then |
---|
1978 | withval="$with_ssl_lib" |
---|
1979 | |
---|
1980 | LDFLAGS="$LDFLAGS -L${withval}" |
---|
1981 | if test -n "${need_dash_r}"; then |
---|
1982 | LDFLAGS="$LDFLAGS -R${withval}" |
---|
1983 | fi |
---|
1984 | |
---|
1985 | |
---|
1986 | fi; |
---|
1987 | |
---|
1988 | # Check whether --with-gpgme-dir or --without-gpgme-dir was given. |
---|
1989 | if test "${with_gpgme_dir+set}" = set; then |
---|
1990 | withval="$with_gpgme_dir" |
---|
1991 | |
---|
1992 | CFLAGS="$CFLAGS -I${withval}/include" |
---|
1993 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
---|
1994 | LDFLAGS="$LDFLAGS -L${withval}/lib" |
---|
1995 | if test -n "${need_dash_r}"; then |
---|
1996 | LDFLAGS="$LDFLAGS -R${withval}/lib" |
---|
1997 | fi |
---|
1998 | |
---|
1999 | |
---|
2000 | fi; |
---|
2001 | |
---|
2002 | # Check whether --with-gpgme-include or --without-gpgme-include was given. |
---|
2003 | if test "${with_gpgme_include+set}" = set; then |
---|
2004 | withval="$with_gpgme_include" |
---|
2005 | |
---|
2006 | CFLAGS="$CFLAGS -I${withval}" |
---|
2007 | CPPFLAGS="$CPPFLAGS -I${withval}" |
---|
2008 | |
---|
2009 | |
---|
2010 | fi; |
---|
2011 | |
---|
2012 | # Check whether --with-gpgme-lib or --without-gpgme-lib was given. |
---|
2013 | if test "${with_gpgme_lib+set}" = set; then |
---|
2014 | withval="$with_gpgme_lib" |
---|
2015 | |
---|
2016 | LDFLAGS="$LDFLAGS -L${withval}" |
---|
2017 | if test -n "${need_dash_r}"; then |
---|
2018 | LDFLAGS="$LDFLAGS -R${withval}" |
---|
2019 | fi |
---|
2020 | |
---|
2021 | |
---|
2022 | fi; |
---|
2023 | |
---|
2024 | # Check whether --with-iconv-dir or --without-iconv-dir was given. |
---|
2025 | if test "${with_iconv_dir+set}" = set; then |
---|
2026 | withval="$with_iconv_dir" |
---|
2027 | |
---|
2028 | CFLAGS="$CFLAGS -I${withval}/include" |
---|
2029 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
---|
2030 | LDFLAGS="$LDFLAGS -L${withval}/lib" |
---|
2031 | if test -n "${need_dash_r}"; then |
---|
2032 | LDFLAGS="$LDFLAGS -R${withval}/lib" |
---|
2033 | fi |
---|
2034 | |
---|
2035 | |
---|
2036 | fi; |
---|
2037 | |
---|
2038 | # Check whether --with-iconv-include or --without-iconv-include was given. |
---|
2039 | if test "${with_iconv_include+set}" = set; then |
---|
2040 | withval="$with_iconv_include" |
---|
2041 | |
---|
2042 | CFLAGS="$CFLAGS -I${withval}" |
---|
2043 | CPPFLAGS="$CPPFLAGS -I${withval}" |
---|
2044 | |
---|
2045 | |
---|
2046 | fi; |
---|
2047 | |
---|
2048 | # Check whether --with-iconv-lib or --without-iconv-lib was given. |
---|
2049 | if test "${with_iconv_lib+set}" = set; then |
---|
2050 | withval="$with_iconv_lib" |
---|
2051 | |
---|
2052 | LDFLAGS="$LDFLAGS -L${withval}" |
---|
2053 | if test -n "${need_dash_r}"; then |
---|
2054 | LDFLAGS="$LDFLAGS -R${withval}" |
---|
2055 | fi |
---|
2056 | |
---|
2057 | |
---|
2058 | fi; |
---|
2059 | # Check whether --enable-nodebug or --disable-nodebug was given. |
---|
2060 | if test "${enable_nodebug+set}" = set; then |
---|
2061 | enableval="$enable_nodebug" |
---|
2062 | |
---|
2063 | |
---|
2064 | cat >>confdefs.h <<\_ACEOF |
---|
2065 | #define NODEBUG 1 |
---|
2066 | _ACEOF |
---|
2067 | |
---|
2068 | |
---|
2069 | |
---|
2070 | fi; |
---|
2071 | |
---|
2072 | ac_ext=c |
---|
2073 | ac_cpp='$CPP $CPPFLAGS' |
---|
2074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2077 | if test -n "$ac_tool_prefix"; then |
---|
2078 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2079 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2080 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2082 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2084 | else |
---|
2085 | if test -n "$CC"; then |
---|
2086 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2087 | else |
---|
2088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2089 | for as_dir in $PATH |
---|
2090 | do |
---|
2091 | IFS=$as_save_IFS |
---|
2092 | test -z "$as_dir" && as_dir=. |
---|
2093 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2094 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2095 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2096 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2097 | break 2 |
---|
2098 | fi |
---|
2099 | done |
---|
2100 | done |
---|
2101 | |
---|
2102 | fi |
---|
2103 | fi |
---|
2104 | CC=$ac_cv_prog_CC |
---|
2105 | if test -n "$CC"; then |
---|
2106 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2107 | echo "${ECHO_T}$CC" >&6 |
---|
2108 | else |
---|
2109 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2110 | echo "${ECHO_T}no" >&6 |
---|
2111 | fi |
---|
2112 | |
---|
2113 | fi |
---|
2114 | if test -z "$ac_cv_prog_CC"; then |
---|
2115 | ac_ct_CC=$CC |
---|
2116 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2117 | set dummy gcc; ac_word=$2 |
---|
2118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2120 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2122 | else |
---|
2123 | if test -n "$ac_ct_CC"; then |
---|
2124 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2125 | else |
---|
2126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2127 | for as_dir in $PATH |
---|
2128 | do |
---|
2129 | IFS=$as_save_IFS |
---|
2130 | test -z "$as_dir" && as_dir=. |
---|
2131 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2132 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2133 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2134 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2135 | break 2 |
---|
2136 | fi |
---|
2137 | done |
---|
2138 | done |
---|
2139 | |
---|
2140 | fi |
---|
2141 | fi |
---|
2142 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2143 | if test -n "$ac_ct_CC"; then |
---|
2144 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2145 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2146 | else |
---|
2147 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2148 | echo "${ECHO_T}no" >&6 |
---|
2149 | fi |
---|
2150 | |
---|
2151 | CC=$ac_ct_CC |
---|
2152 | else |
---|
2153 | CC="$ac_cv_prog_CC" |
---|
2154 | fi |
---|
2155 | |
---|
2156 | if test -z "$CC"; then |
---|
2157 | if test -n "$ac_tool_prefix"; then |
---|
2158 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2159 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2162 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2164 | else |
---|
2165 | if test -n "$CC"; then |
---|
2166 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2167 | else |
---|
2168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2169 | for as_dir in $PATH |
---|
2170 | do |
---|
2171 | IFS=$as_save_IFS |
---|
2172 | test -z "$as_dir" && as_dir=. |
---|
2173 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2175 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2177 | break 2 |
---|
2178 | fi |
---|
2179 | done |
---|
2180 | done |
---|
2181 | |
---|
2182 | fi |
---|
2183 | fi |
---|
2184 | CC=$ac_cv_prog_CC |
---|
2185 | if test -n "$CC"; then |
---|
2186 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2187 | echo "${ECHO_T}$CC" >&6 |
---|
2188 | else |
---|
2189 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2190 | echo "${ECHO_T}no" >&6 |
---|
2191 | fi |
---|
2192 | |
---|
2193 | fi |
---|
2194 | if test -z "$ac_cv_prog_CC"; then |
---|
2195 | ac_ct_CC=$CC |
---|
2196 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2197 | set dummy cc; ac_word=$2 |
---|
2198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2200 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2202 | else |
---|
2203 | if test -n "$ac_ct_CC"; then |
---|
2204 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2205 | else |
---|
2206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2207 | for as_dir in $PATH |
---|
2208 | do |
---|
2209 | IFS=$as_save_IFS |
---|
2210 | test -z "$as_dir" && as_dir=. |
---|
2211 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2212 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2213 | ac_cv_prog_ac_ct_CC="cc" |
---|
2214 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2215 | break 2 |
---|
2216 | fi |
---|
2217 | done |
---|
2218 | done |
---|
2219 | |
---|
2220 | fi |
---|
2221 | fi |
---|
2222 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2223 | if test -n "$ac_ct_CC"; then |
---|
2224 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2225 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2226 | else |
---|
2227 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2228 | echo "${ECHO_T}no" >&6 |
---|
2229 | fi |
---|
2230 | |
---|
2231 | CC=$ac_ct_CC |
---|
2232 | else |
---|
2233 | CC="$ac_cv_prog_CC" |
---|
2234 | fi |
---|
2235 | |
---|
2236 | fi |
---|
2237 | if test -z "$CC"; then |
---|
2238 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2239 | set dummy cc; ac_word=$2 |
---|
2240 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2242 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2244 | else |
---|
2245 | if test -n "$CC"; then |
---|
2246 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2247 | else |
---|
2248 | ac_prog_rejected=no |
---|
2249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2250 | for as_dir in $PATH |
---|
2251 | do |
---|
2252 | IFS=$as_save_IFS |
---|
2253 | test -z "$as_dir" && as_dir=. |
---|
2254 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2255 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2256 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2257 | ac_prog_rejected=yes |
---|
2258 | continue |
---|
2259 | fi |
---|
2260 | ac_cv_prog_CC="cc" |
---|
2261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2262 | break 2 |
---|
2263 | fi |
---|
2264 | done |
---|
2265 | done |
---|
2266 | |
---|
2267 | if test $ac_prog_rejected = yes; then |
---|
2268 | # We found a bogon in the path, so make sure we never use it. |
---|
2269 | set dummy $ac_cv_prog_CC |
---|
2270 | shift |
---|
2271 | if test $# != 0; then |
---|
2272 | # We chose a different compiler from the bogus one. |
---|
2273 | # However, it has the same basename, so the bogon will be chosen |
---|
2274 | # first if we set CC to just the basename; use the full file name. |
---|
2275 | shift |
---|
2276 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2277 | fi |
---|
2278 | fi |
---|
2279 | fi |
---|
2280 | fi |
---|
2281 | CC=$ac_cv_prog_CC |
---|
2282 | if test -n "$CC"; then |
---|
2283 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2284 | echo "${ECHO_T}$CC" >&6 |
---|
2285 | else |
---|
2286 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2287 | echo "${ECHO_T}no" >&6 |
---|
2288 | fi |
---|
2289 | |
---|
2290 | fi |
---|
2291 | if test -z "$CC"; then |
---|
2292 | if test -n "$ac_tool_prefix"; then |
---|
2293 | for ac_prog in cl |
---|
2294 | do |
---|
2295 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2296 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2299 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2301 | else |
---|
2302 | if test -n "$CC"; then |
---|
2303 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2304 | else |
---|
2305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2306 | for as_dir in $PATH |
---|
2307 | do |
---|
2308 | IFS=$as_save_IFS |
---|
2309 | test -z "$as_dir" && as_dir=. |
---|
2310 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2311 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2312 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2314 | break 2 |
---|
2315 | fi |
---|
2316 | done |
---|
2317 | done |
---|
2318 | |
---|
2319 | fi |
---|
2320 | fi |
---|
2321 | CC=$ac_cv_prog_CC |
---|
2322 | if test -n "$CC"; then |
---|
2323 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2324 | echo "${ECHO_T}$CC" >&6 |
---|
2325 | else |
---|
2326 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2327 | echo "${ECHO_T}no" >&6 |
---|
2328 | fi |
---|
2329 | |
---|
2330 | test -n "$CC" && break |
---|
2331 | done |
---|
2332 | fi |
---|
2333 | if test -z "$CC"; then |
---|
2334 | ac_ct_CC=$CC |
---|
2335 | for ac_prog in cl |
---|
2336 | do |
---|
2337 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2338 | set dummy $ac_prog; ac_word=$2 |
---|
2339 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2341 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2343 | else |
---|
2344 | if test -n "$ac_ct_CC"; then |
---|
2345 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2346 | else |
---|
2347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2348 | for as_dir in $PATH |
---|
2349 | do |
---|
2350 | IFS=$as_save_IFS |
---|
2351 | test -z "$as_dir" && as_dir=. |
---|
2352 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2353 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2354 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2356 | break 2 |
---|
2357 | fi |
---|
2358 | done |
---|
2359 | done |
---|
2360 | |
---|
2361 | fi |
---|
2362 | fi |
---|
2363 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2364 | if test -n "$ac_ct_CC"; then |
---|
2365 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2366 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2367 | else |
---|
2368 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2369 | echo "${ECHO_T}no" >&6 |
---|
2370 | fi |
---|
2371 | |
---|
2372 | test -n "$ac_ct_CC" && break |
---|
2373 | done |
---|
2374 | |
---|
2375 | CC=$ac_ct_CC |
---|
2376 | fi |
---|
2377 | |
---|
2378 | fi |
---|
2379 | |
---|
2380 | |
---|
2381 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2382 | See \`config.log' for more details." >&5 |
---|
2383 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2384 | See \`config.log' for more details." >&2;} |
---|
2385 | { (exit 1); exit 1; }; } |
---|
2386 | |
---|
2387 | # Provide some information about the compiler. |
---|
2388 | echo "$as_me:$LINENO:" \ |
---|
2389 | "checking for C compiler version" >&5 |
---|
2390 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2391 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2392 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2393 | ac_status=$? |
---|
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2395 | (exit $ac_status); } |
---|
2396 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2397 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2398 | ac_status=$? |
---|
2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2400 | (exit $ac_status); } |
---|
2401 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2402 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2403 | ac_status=$? |
---|
2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2405 | (exit $ac_status); } |
---|
2406 | |
---|
2407 | cat >conftest.$ac_ext <<_ACEOF |
---|
2408 | #line $LINENO "configure" |
---|
2409 | /* confdefs.h. */ |
---|
2410 | _ACEOF |
---|
2411 | cat confdefs.h >>conftest.$ac_ext |
---|
2412 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2413 | /* end confdefs.h. */ |
---|
2414 | |
---|
2415 | int |
---|
2416 | main () |
---|
2417 | { |
---|
2418 | |
---|
2419 | ; |
---|
2420 | return 0; |
---|
2421 | } |
---|
2422 | _ACEOF |
---|
2423 | ac_clean_files_save=$ac_clean_files |
---|
2424 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2425 | # Try to create an executable without -o first, disregard a.out. |
---|
2426 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2427 | # of exeext. |
---|
2428 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
---|
2429 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
---|
2430 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2431 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2432 | (eval $ac_link_default) 2>&5 |
---|
2433 | ac_status=$? |
---|
2434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2435 | (exit $ac_status); }; then |
---|
2436 | # Find the output, starting from the most likely. This scheme is |
---|
2437 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2438 | # resort. |
---|
2439 | |
---|
2440 | # Be careful to initialize this variable, since it used to be cached. |
---|
2441 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2442 | ac_cv_exeext= |
---|
2443 | # b.out is created by i960 compilers. |
---|
2444 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2445 | do |
---|
2446 | test -f "$ac_file" || continue |
---|
2447 | case $ac_file in |
---|
2448 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2449 | ;; |
---|
2450 | conftest.$ac_ext ) |
---|
2451 | # This is the source file. |
---|
2452 | ;; |
---|
2453 | [ab].out ) |
---|
2454 | # We found the default executable, but exeext='' is most |
---|
2455 | # certainly right. |
---|
2456 | break;; |
---|
2457 | *.* ) |
---|
2458 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2459 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2460 | # but it would be cool to find out if it's true. Does anybody |
---|
2461 | # maintain Libtool? --akim. |
---|
2462 | export ac_cv_exeext |
---|
2463 | break;; |
---|
2464 | * ) |
---|
2465 | break;; |
---|
2466 | esac |
---|
2467 | done |
---|
2468 | else |
---|
2469 | echo "$as_me: failed program was:" >&5 |
---|
2470 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2471 | |
---|
2472 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2473 | See \`config.log' for more details." >&5 |
---|
2474 | echo "$as_me: error: C compiler cannot create executables |
---|
2475 | See \`config.log' for more details." >&2;} |
---|
2476 | { (exit 77); exit 77; }; } |
---|
2477 | fi |
---|
2478 | |
---|
2479 | ac_exeext=$ac_cv_exeext |
---|
2480 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2481 | echo "${ECHO_T}$ac_file" >&6 |
---|
2482 | |
---|
2483 | # Check the compiler produces executables we can run. If not, either |
---|
2484 | # the compiler is broken, or we cross compile. |
---|
2485 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2486 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2487 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2488 | # If not cross compiling, check that we can run a simple program. |
---|
2489 | if test "$cross_compiling" != yes; then |
---|
2490 | if { ac_try='./$ac_file' |
---|
2491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2492 | (eval $ac_try) 2>&5 |
---|
2493 | ac_status=$? |
---|
2494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2495 | (exit $ac_status); }; }; then |
---|
2496 | cross_compiling=no |
---|
2497 | else |
---|
2498 | if test "$cross_compiling" = maybe; then |
---|
2499 | cross_compiling=yes |
---|
2500 | else |
---|
2501 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2502 | If you meant to cross compile, use \`--host'. |
---|
2503 | See \`config.log' for more details." >&5 |
---|
2504 | echo "$as_me: error: cannot run C compiled programs. |
---|
2505 | If you meant to cross compile, use \`--host'. |
---|
2506 | See \`config.log' for more details." >&2;} |
---|
2507 | { (exit 1); exit 1; }; } |
---|
2508 | fi |
---|
2509 | fi |
---|
2510 | fi |
---|
2511 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2512 | echo "${ECHO_T}yes" >&6 |
---|
2513 | |
---|
2514 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2515 | ac_clean_files=$ac_clean_files_save |
---|
2516 | # Check the compiler produces executables we can run. If not, either |
---|
2517 | # the compiler is broken, or we cross compile. |
---|
2518 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2519 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2520 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2521 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2522 | |
---|
2523 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2524 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2526 | (eval $ac_link) 2>&5 |
---|
2527 | ac_status=$? |
---|
2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2529 | (exit $ac_status); }; then |
---|
2530 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2531 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2532 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2533 | # `rm'. |
---|
2534 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2535 | test -f "$ac_file" || continue |
---|
2536 | case $ac_file in |
---|
2537 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2538 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2539 | export ac_cv_exeext |
---|
2540 | break;; |
---|
2541 | * ) break;; |
---|
2542 | esac |
---|
2543 | done |
---|
2544 | else |
---|
2545 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2546 | See \`config.log' for more details." >&5 |
---|
2547 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2548 | See \`config.log' for more details." >&2;} |
---|
2549 | { (exit 1); exit 1; }; } |
---|
2550 | fi |
---|
2551 | |
---|
2552 | rm -f conftest$ac_cv_exeext |
---|
2553 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2554 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2555 | |
---|
2556 | rm -f conftest.$ac_ext |
---|
2557 | EXEEXT=$ac_cv_exeext |
---|
2558 | ac_exeext=$EXEEXT |
---|
2559 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2560 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2561 | if test "${ac_cv_objext+set}" = set; then |
---|
2562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2563 | else |
---|
2564 | cat >conftest.$ac_ext <<_ACEOF |
---|
2565 | #line $LINENO "configure" |
---|
2566 | /* confdefs.h. */ |
---|
2567 | _ACEOF |
---|
2568 | cat confdefs.h >>conftest.$ac_ext |
---|
2569 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2570 | /* end confdefs.h. */ |
---|
2571 | |
---|
2572 | int |
---|
2573 | main () |
---|
2574 | { |
---|
2575 | |
---|
2576 | ; |
---|
2577 | return 0; |
---|
2578 | } |
---|
2579 | _ACEOF |
---|
2580 | rm -f conftest.o conftest.obj |
---|
2581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2582 | (eval $ac_compile) 2>&5 |
---|
2583 | ac_status=$? |
---|
2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2585 | (exit $ac_status); }; then |
---|
2586 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2587 | case $ac_file in |
---|
2588 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2589 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2590 | break;; |
---|
2591 | esac |
---|
2592 | done |
---|
2593 | else |
---|
2594 | echo "$as_me: failed program was:" >&5 |
---|
2595 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2596 | |
---|
2597 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2598 | See \`config.log' for more details." >&5 |
---|
2599 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2600 | See \`config.log' for more details." >&2;} |
---|
2601 | { (exit 1); exit 1; }; } |
---|
2602 | fi |
---|
2603 | |
---|
2604 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2605 | fi |
---|
2606 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2607 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2608 | OBJEXT=$ac_cv_objext |
---|
2609 | ac_objext=$OBJEXT |
---|
2610 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2611 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2612 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2614 | else |
---|
2615 | cat >conftest.$ac_ext <<_ACEOF |
---|
2616 | #line $LINENO "configure" |
---|
2617 | /* confdefs.h. */ |
---|
2618 | _ACEOF |
---|
2619 | cat confdefs.h >>conftest.$ac_ext |
---|
2620 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2621 | /* end confdefs.h. */ |
---|
2622 | |
---|
2623 | int |
---|
2624 | main () |
---|
2625 | { |
---|
2626 | #ifndef __GNUC__ |
---|
2627 | choke me |
---|
2628 | #endif |
---|
2629 | |
---|
2630 | ; |
---|
2631 | return 0; |
---|
2632 | } |
---|
2633 | _ACEOF |
---|
2634 | rm -f conftest.$ac_objext |
---|
2635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2636 | (eval $ac_compile) 2>&5 |
---|
2637 | ac_status=$? |
---|
2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2639 | (exit $ac_status); } && |
---|
2640 | { ac_try='test -s conftest.$ac_objext' |
---|
2641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2642 | (eval $ac_try) 2>&5 |
---|
2643 | ac_status=$? |
---|
2644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2645 | (exit $ac_status); }; }; then |
---|
2646 | ac_compiler_gnu=yes |
---|
2647 | else |
---|
2648 | echo "$as_me: failed program was:" >&5 |
---|
2649 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2650 | |
---|
2651 | ac_compiler_gnu=no |
---|
2652 | fi |
---|
2653 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2654 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2655 | |
---|
2656 | fi |
---|
2657 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2658 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2659 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2660 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2661 | ac_save_CFLAGS=$CFLAGS |
---|
2662 | CFLAGS="-g" |
---|
2663 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2664 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2665 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2667 | else |
---|
2668 | cat >conftest.$ac_ext <<_ACEOF |
---|
2669 | #line $LINENO "configure" |
---|
2670 | /* confdefs.h. */ |
---|
2671 | _ACEOF |
---|
2672 | cat confdefs.h >>conftest.$ac_ext |
---|
2673 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2674 | /* end confdefs.h. */ |
---|
2675 | |
---|
2676 | int |
---|
2677 | main () |
---|
2678 | { |
---|
2679 | |
---|
2680 | ; |
---|
2681 | return 0; |
---|
2682 | } |
---|
2683 | _ACEOF |
---|
2684 | rm -f conftest.$ac_objext |
---|
2685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2686 | (eval $ac_compile) 2>&5 |
---|
2687 | ac_status=$? |
---|
2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2689 | (exit $ac_status); } && |
---|
2690 | { ac_try='test -s conftest.$ac_objext' |
---|
2691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2692 | (eval $ac_try) 2>&5 |
---|
2693 | ac_status=$? |
---|
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2695 | (exit $ac_status); }; }; then |
---|
2696 | ac_cv_prog_cc_g=yes |
---|
2697 | else |
---|
2698 | echo "$as_me: failed program was:" >&5 |
---|
2699 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2700 | |
---|
2701 | ac_cv_prog_cc_g=no |
---|
2702 | fi |
---|
2703 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2704 | fi |
---|
2705 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2706 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2707 | if test "$ac_test_CFLAGS" = set; then |
---|
2708 | CFLAGS=$ac_save_CFLAGS |
---|
2709 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2710 | if test "$GCC" = yes; then |
---|
2711 | CFLAGS="-g -O2" |
---|
2712 | else |
---|
2713 | CFLAGS="-g" |
---|
2714 | fi |
---|
2715 | else |
---|
2716 | if test "$GCC" = yes; then |
---|
2717 | CFLAGS="-O2" |
---|
2718 | else |
---|
2719 | CFLAGS= |
---|
2720 | fi |
---|
2721 | fi |
---|
2722 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2723 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2724 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2726 | else |
---|
2727 | ac_cv_prog_cc_stdc=no |
---|
2728 | ac_save_CC=$CC |
---|
2729 | cat >conftest.$ac_ext <<_ACEOF |
---|
2730 | #line $LINENO "configure" |
---|
2731 | /* confdefs.h. */ |
---|
2732 | _ACEOF |
---|
2733 | cat confdefs.h >>conftest.$ac_ext |
---|
2734 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2735 | /* end confdefs.h. */ |
---|
2736 | #include <stdarg.h> |
---|
2737 | #include <stdio.h> |
---|
2738 | #include <sys/types.h> |
---|
2739 | #include <sys/stat.h> |
---|
2740 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2741 | struct buf { int x; }; |
---|
2742 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2743 | static char *e (p, i) |
---|
2744 | char **p; |
---|
2745 | int i; |
---|
2746 | { |
---|
2747 | return p[i]; |
---|
2748 | } |
---|
2749 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2750 | { |
---|
2751 | char *s; |
---|
2752 | va_list v; |
---|
2753 | va_start (v,p); |
---|
2754 | s = g (p, va_arg (v,int)); |
---|
2755 | va_end (v); |
---|
2756 | return s; |
---|
2757 | } |
---|
2758 | int test (int i, double x); |
---|
2759 | struct s1 {int (*f) (int a);}; |
---|
2760 | struct s2 {int (*f) (double a);}; |
---|
2761 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2762 | int argc; |
---|
2763 | char **argv; |
---|
2764 | int |
---|
2765 | main () |
---|
2766 | { |
---|
2767 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2768 | ; |
---|
2769 | return 0; |
---|
2770 | } |
---|
2771 | _ACEOF |
---|
2772 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2773 | # breaks some systems' header files. |
---|
2774 | # AIX -qlanglvl=ansi |
---|
2775 | # Ultrix and OSF/1 -std1 |
---|
2776 | # HP-UX 10.20 and later -Ae |
---|
2777 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2778 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2779 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2780 | do |
---|
2781 | CC="$ac_save_CC $ac_arg" |
---|
2782 | rm -f conftest.$ac_objext |
---|
2783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2784 | (eval $ac_compile) 2>&5 |
---|
2785 | ac_status=$? |
---|
2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2787 | (exit $ac_status); } && |
---|
2788 | { ac_try='test -s conftest.$ac_objext' |
---|
2789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2790 | (eval $ac_try) 2>&5 |
---|
2791 | ac_status=$? |
---|
2792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2793 | (exit $ac_status); }; }; then |
---|
2794 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2795 | break |
---|
2796 | else |
---|
2797 | echo "$as_me: failed program was:" >&5 |
---|
2798 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2799 | |
---|
2800 | fi |
---|
2801 | rm -f conftest.$ac_objext |
---|
2802 | done |
---|
2803 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2804 | CC=$ac_save_CC |
---|
2805 | |
---|
2806 | fi |
---|
2807 | |
---|
2808 | case "x$ac_cv_prog_cc_stdc" in |
---|
2809 | x|xno) |
---|
2810 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2811 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2812 | *) |
---|
2813 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2814 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2815 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2816 | esac |
---|
2817 | |
---|
2818 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2819 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2820 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2821 | # the declaration of exit, since it's the most demanding environment. |
---|
2822 | cat >conftest.$ac_ext <<_ACEOF |
---|
2823 | #ifndef __cplusplus |
---|
2824 | choke me |
---|
2825 | #endif |
---|
2826 | _ACEOF |
---|
2827 | rm -f conftest.$ac_objext |
---|
2828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2829 | (eval $ac_compile) 2>&5 |
---|
2830 | ac_status=$? |
---|
2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2832 | (exit $ac_status); } && |
---|
2833 | { ac_try='test -s conftest.$ac_objext' |
---|
2834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2835 | (eval $ac_try) 2>&5 |
---|
2836 | ac_status=$? |
---|
2837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2838 | (exit $ac_status); }; }; then |
---|
2839 | for ac_declaration in \ |
---|
2840 | ''\ |
---|
2841 | '#include <stdlib.h>' \ |
---|
2842 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2843 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2844 | 'extern "C" void exit (int) throw ();' \ |
---|
2845 | 'extern "C" void exit (int);' \ |
---|
2846 | 'void exit (int);' |
---|
2847 | do |
---|
2848 | cat >conftest.$ac_ext <<_ACEOF |
---|
2849 | #line $LINENO "configure" |
---|
2850 | /* confdefs.h. */ |
---|
2851 | _ACEOF |
---|
2852 | cat confdefs.h >>conftest.$ac_ext |
---|
2853 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2854 | /* end confdefs.h. */ |
---|
2855 | #include <stdlib.h> |
---|
2856 | $ac_declaration |
---|
2857 | int |
---|
2858 | main () |
---|
2859 | { |
---|
2860 | exit (42); |
---|
2861 | ; |
---|
2862 | return 0; |
---|
2863 | } |
---|
2864 | _ACEOF |
---|
2865 | rm -f conftest.$ac_objext |
---|
2866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2867 | (eval $ac_compile) 2>&5 |
---|
2868 | ac_status=$? |
---|
2869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2870 | (exit $ac_status); } && |
---|
2871 | { ac_try='test -s conftest.$ac_objext' |
---|
2872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2873 | (eval $ac_try) 2>&5 |
---|
2874 | ac_status=$? |
---|
2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2876 | (exit $ac_status); }; }; then |
---|
2877 | : |
---|
2878 | else |
---|
2879 | echo "$as_me: failed program was:" >&5 |
---|
2880 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2881 | |
---|
2882 | continue |
---|
2883 | fi |
---|
2884 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2885 | cat >conftest.$ac_ext <<_ACEOF |
---|
2886 | #line $LINENO "configure" |
---|
2887 | /* confdefs.h. */ |
---|
2888 | _ACEOF |
---|
2889 | cat confdefs.h >>conftest.$ac_ext |
---|
2890 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2891 | /* end confdefs.h. */ |
---|
2892 | $ac_declaration |
---|
2893 | int |
---|
2894 | main () |
---|
2895 | { |
---|
2896 | exit (42); |
---|
2897 | ; |
---|
2898 | return 0; |
---|
2899 | } |
---|
2900 | _ACEOF |
---|
2901 | rm -f conftest.$ac_objext |
---|
2902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2903 | (eval $ac_compile) 2>&5 |
---|
2904 | ac_status=$? |
---|
2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2906 | (exit $ac_status); } && |
---|
2907 | { ac_try='test -s conftest.$ac_objext' |
---|
2908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2909 | (eval $ac_try) 2>&5 |
---|
2910 | ac_status=$? |
---|
2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2912 | (exit $ac_status); }; }; then |
---|
2913 | break |
---|
2914 | else |
---|
2915 | echo "$as_me: failed program was:" >&5 |
---|
2916 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2917 | |
---|
2918 | fi |
---|
2919 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2920 | done |
---|
2921 | rm -f conftest* |
---|
2922 | if test -n "$ac_declaration"; then |
---|
2923 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2924 | echo $ac_declaration >>confdefs.h |
---|
2925 | echo '#endif' >>confdefs.h |
---|
2926 | fi |
---|
2927 | |
---|
2928 | else |
---|
2929 | echo "$as_me: failed program was:" >&5 |
---|
2930 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2931 | |
---|
2932 | fi |
---|
2933 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2934 | ac_ext=c |
---|
2935 | ac_cpp='$CPP $CPPFLAGS' |
---|
2936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2939 | DEPDIR="${am__leading_dot}deps" |
---|
2940 | |
---|
2941 | ac_config_commands="$ac_config_commands depfiles" |
---|
2942 | |
---|
2943 | |
---|
2944 | am_make=${MAKE-make} |
---|
2945 | cat > confinc << 'END' |
---|
2946 | am__doit: |
---|
2947 | @echo done |
---|
2948 | .PHONY: am__doit |
---|
2949 | END |
---|
2950 | # If we don't find an include directive, just comment out the code. |
---|
2951 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2952 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2953 | am__include="#" |
---|
2954 | am__quote= |
---|
2955 | _am_result=none |
---|
2956 | # First try GNU make style include. |
---|
2957 | echo "include confinc" > confmf |
---|
2958 | # We grep out `Entering directory' and `Leaving directory' |
---|
2959 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2960 | # In particular we don't look at `^make:' because GNU make might |
---|
2961 | # be invoked under some other name (usually "gmake"), in which |
---|
2962 | # case it prints its new name instead of `make'. |
---|
2963 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2964 | am__include=include |
---|
2965 | am__quote= |
---|
2966 | _am_result=GNU |
---|
2967 | fi |
---|
2968 | # Now try BSD make style include. |
---|
2969 | if test "$am__include" = "#"; then |
---|
2970 | echo '.include "confinc"' > confmf |
---|
2971 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2972 | am__include=.include |
---|
2973 | am__quote="\"" |
---|
2974 | _am_result=BSD |
---|
2975 | fi |
---|
2976 | fi |
---|
2977 | |
---|
2978 | |
---|
2979 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2980 | echo "${ECHO_T}$_am_result" >&6 |
---|
2981 | rm -f confinc confmf |
---|
2982 | |
---|
2983 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2984 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2985 | enableval="$enable_dependency_tracking" |
---|
2986 | |
---|
2987 | fi; |
---|
2988 | if test "x$enable_dependency_tracking" != xno; then |
---|
2989 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2990 | AMDEPBACKSLASH='\' |
---|
2991 | fi |
---|
2992 | |
---|
2993 | |
---|
2994 | if test "x$enable_dependency_tracking" != xno; then |
---|
2995 | AMDEP_TRUE= |
---|
2996 | AMDEP_FALSE='#' |
---|
2997 | else |
---|
2998 | AMDEP_TRUE='#' |
---|
2999 | AMDEP_FALSE= |
---|
3000 | fi |
---|
3001 | |
---|
3002 | |
---|
3003 | |
---|
3004 | |
---|
3005 | depcc="$CC" am_compiler_list= |
---|
3006 | |
---|
3007 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3008 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3009 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3011 | else |
---|
3012 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3013 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3014 | # making bogus files that we don't know about and never remove. For |
---|
3015 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3016 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3017 | # in D'. |
---|
3018 | mkdir conftest.dir |
---|
3019 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3020 | # using a relative directory. |
---|
3021 | cp "$am_depcomp" conftest.dir |
---|
3022 | cd conftest.dir |
---|
3023 | # We will build objects and dependencies in a subdirectory because |
---|
3024 | # it helps to detect inapplicable dependency modes. For instance |
---|
3025 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3026 | # side effect of compilation, but ICC will put the dependencies in |
---|
3027 | # the current directory while Tru64 will put them in the object |
---|
3028 | # directory. |
---|
3029 | mkdir sub |
---|
3030 | |
---|
3031 | am_cv_CC_dependencies_compiler_type=none |
---|
3032 | if test "$am_compiler_list" = ""; then |
---|
3033 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3034 | fi |
---|
3035 | for depmode in $am_compiler_list; do |
---|
3036 | # Setup a source with many dependencies, because some compilers |
---|
3037 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3038 | # we should not choose a depcomp mode which is confused by this. |
---|
3039 | # |
---|
3040 | # We need to recreate these files for each test, as the compiler may |
---|
3041 | # overwrite some of them when testing with obscure command lines. |
---|
3042 | # This happens at least with the AIX C compiler. |
---|
3043 | : > sub/conftest.c |
---|
3044 | for i in 1 2 3 4 5 6; do |
---|
3045 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3046 | : > sub/conftst$i.h |
---|
3047 | done |
---|
3048 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3049 | |
---|
3050 | case $depmode in |
---|
3051 | nosideeffect) |
---|
3052 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3053 | # only be used when explicitly requested |
---|
3054 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3055 | continue |
---|
3056 | else |
---|
3057 | break |
---|
3058 | fi |
---|
3059 | ;; |
---|
3060 | none) break ;; |
---|
3061 | esac |
---|
3062 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3063 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3064 | # handle `-M -o', and we need to detect this. |
---|
3065 | if depmode=$depmode \ |
---|
3066 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3067 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3068 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3069 | >/dev/null 2>conftest.err && |
---|
3070 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3071 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3072 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3073 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3074 | # (even with -Werror). So we grep stderr for any message |
---|
3075 | # that says an option was ignored. |
---|
3076 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
3077 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3078 | break |
---|
3079 | fi |
---|
3080 | fi |
---|
3081 | done |
---|
3082 | |
---|
3083 | cd .. |
---|
3084 | rm -rf conftest.dir |
---|
3085 | else |
---|
3086 | am_cv_CC_dependencies_compiler_type=none |
---|
3087 | fi |
---|
3088 | |
---|
3089 | fi |
---|
3090 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3091 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3092 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3093 | |
---|
3094 | |
---|
3095 | |
---|
3096 | if |
---|
3097 | test "x$enable_dependency_tracking" != xno \ |
---|
3098 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3099 | am__fastdepCC_TRUE= |
---|
3100 | am__fastdepCC_FALSE='#' |
---|
3101 | else |
---|
3102 | am__fastdepCC_TRUE='#' |
---|
3103 | am__fastdepCC_FALSE= |
---|
3104 | fi |
---|
3105 | |
---|
3106 | |
---|
3107 | # Find a good install program. We prefer a C program (faster), |
---|
3108 | # so one script is as good as another. But avoid the broken or |
---|
3109 | # incompatible versions: |
---|
3110 | # SysV /etc/install, /usr/sbin/install |
---|
3111 | # SunOS /usr/etc/install |
---|
3112 | # IRIX /sbin/install |
---|
3113 | # AIX /bin/install |
---|
3114 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3115 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3116 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3117 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3118 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3119 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3120 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
3121 | if test -z "$INSTALL"; then |
---|
3122 | if test "${ac_cv_path_install+set}" = set; then |
---|
3123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3124 | else |
---|
3125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3126 | for as_dir in $PATH |
---|
3127 | do |
---|
3128 | IFS=$as_save_IFS |
---|
3129 | test -z "$as_dir" && as_dir=. |
---|
3130 | # Account for people who put trailing slashes in PATH elements. |
---|
3131 | case $as_dir/ in |
---|
3132 | ./ | .// | /cC/* | \ |
---|
3133 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3134 | /usr/ucb/* ) ;; |
---|
3135 | *) |
---|
3136 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3137 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3138 | # by default. |
---|
3139 | for ac_prog in ginstall scoinst install; do |
---|
3140 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3141 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
3142 | if test $ac_prog = install && |
---|
3143 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3144 | # AIX install. It has an incompatible calling convention. |
---|
3145 | : |
---|
3146 | elif test $ac_prog = install && |
---|
3147 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3148 | # program-specific install script used by HP pwplus--don't use. |
---|
3149 | : |
---|
3150 | else |
---|
3151 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3152 | break 3 |
---|
3153 | fi |
---|
3154 | fi |
---|
3155 | done |
---|
3156 | done |
---|
3157 | ;; |
---|
3158 | esac |
---|
3159 | done |
---|
3160 | |
---|
3161 | |
---|
3162 | fi |
---|
3163 | if test "${ac_cv_path_install+set}" = set; then |
---|
3164 | INSTALL=$ac_cv_path_install |
---|
3165 | else |
---|
3166 | # As a last resort, use the slow shell script. We don't cache a |
---|
3167 | # path for INSTALL within a source directory, because that will |
---|
3168 | # break other packages using the cache if that directory is |
---|
3169 | # removed, or if the path is relative. |
---|
3170 | INSTALL=$ac_install_sh |
---|
3171 | fi |
---|
3172 | fi |
---|
3173 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3174 | echo "${ECHO_T}$INSTALL" >&6 |
---|
3175 | |
---|
3176 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3177 | # It thinks the first close brace ends the variable substitution. |
---|
3178 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3179 | |
---|
3180 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3181 | |
---|
3182 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3183 | |
---|
3184 | for ac_prog in gawk mawk nawk awk |
---|
3185 | do |
---|
3186 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3187 | set dummy $ac_prog; ac_word=$2 |
---|
3188 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3190 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
3191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3192 | else |
---|
3193 | if test -n "$AWK"; then |
---|
3194 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3195 | else |
---|
3196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3197 | for as_dir in $PATH |
---|
3198 | do |
---|
3199 | IFS=$as_save_IFS |
---|
3200 | test -z "$as_dir" && as_dir=. |
---|
3201 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3202 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3203 | ac_cv_prog_AWK="$ac_prog" |
---|
3204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3205 | break 2 |
---|
3206 | fi |
---|
3207 | done |
---|
3208 | done |
---|
3209 | |
---|
3210 | fi |
---|
3211 | fi |
---|
3212 | AWK=$ac_cv_prog_AWK |
---|
3213 | if test -n "$AWK"; then |
---|
3214 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
3215 | echo "${ECHO_T}$AWK" >&6 |
---|
3216 | else |
---|
3217 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3218 | echo "${ECHO_T}no" >&6 |
---|
3219 | fi |
---|
3220 | |
---|
3221 | test -n "$AWK" && break |
---|
3222 | done |
---|
3223 | |
---|
3224 | for ac_prog in 'bison -y' byacc |
---|
3225 | do |
---|
3226 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3227 | set dummy $ac_prog; ac_word=$2 |
---|
3228 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3229 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3230 | if test "${ac_cv_prog_YACC+set}" = set; then |
---|
3231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3232 | else |
---|
3233 | if test -n "$YACC"; then |
---|
3234 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
3235 | else |
---|
3236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3237 | for as_dir in $PATH |
---|
3238 | do |
---|
3239 | IFS=$as_save_IFS |
---|
3240 | test -z "$as_dir" && as_dir=. |
---|
3241 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3242 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3243 | ac_cv_prog_YACC="$ac_prog" |
---|
3244 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3245 | break 2 |
---|
3246 | fi |
---|
3247 | done |
---|
3248 | done |
---|
3249 | |
---|
3250 | fi |
---|
3251 | fi |
---|
3252 | YACC=$ac_cv_prog_YACC |
---|
3253 | if test -n "$YACC"; then |
---|
3254 | echo "$as_me:$LINENO: result: $YACC" >&5 |
---|
3255 | echo "${ECHO_T}$YACC" >&6 |
---|
3256 | else |
---|
3257 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3258 | echo "${ECHO_T}no" >&6 |
---|
3259 | fi |
---|
3260 | |
---|
3261 | test -n "$YACC" && break |
---|
3262 | done |
---|
3263 | test -n "$YACC" || YACC="yacc" |
---|
3264 | |
---|
3265 | if test -n "$ac_tool_prefix"; then |
---|
3266 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
3267 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
3268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3270 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
3271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3272 | else |
---|
3273 | if test -n "$RANLIB"; then |
---|
3274 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
3275 | else |
---|
3276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3277 | for as_dir in $PATH |
---|
3278 | do |
---|
3279 | IFS=$as_save_IFS |
---|
3280 | test -z "$as_dir" && as_dir=. |
---|
3281 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3282 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3283 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
3284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3285 | break 2 |
---|
3286 | fi |
---|
3287 | done |
---|
3288 | done |
---|
3289 | |
---|
3290 | fi |
---|
3291 | fi |
---|
3292 | RANLIB=$ac_cv_prog_RANLIB |
---|
3293 | if test -n "$RANLIB"; then |
---|
3294 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
3295 | echo "${ECHO_T}$RANLIB" >&6 |
---|
3296 | else |
---|
3297 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3298 | echo "${ECHO_T}no" >&6 |
---|
3299 | fi |
---|
3300 | |
---|
3301 | fi |
---|
3302 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
3303 | ac_ct_RANLIB=$RANLIB |
---|
3304 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
3305 | set dummy ranlib; ac_word=$2 |
---|
3306 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3308 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
3309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3310 | else |
---|
3311 | if test -n "$ac_ct_RANLIB"; then |
---|
3312 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
3313 | else |
---|
3314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3315 | for as_dir in $PATH |
---|
3316 | do |
---|
3317 | IFS=$as_save_IFS |
---|
3318 | test -z "$as_dir" && as_dir=. |
---|
3319 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3320 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3321 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
3322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3323 | break 2 |
---|
3324 | fi |
---|
3325 | done |
---|
3326 | done |
---|
3327 | |
---|
3328 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
3329 | fi |
---|
3330 | fi |
---|
3331 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
3332 | if test -n "$ac_ct_RANLIB"; then |
---|
3333 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
3334 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
3335 | else |
---|
3336 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3337 | echo "${ECHO_T}no" >&6 |
---|
3338 | fi |
---|
3339 | |
---|
3340 | RANLIB=$ac_ct_RANLIB |
---|
3341 | else |
---|
3342 | RANLIB="$ac_cv_prog_RANLIB" |
---|
3343 | fi |
---|
3344 | |
---|
3345 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
3346 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
3347 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
---|
3348 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
3349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3350 | else |
---|
3351 | cat >conftest.make <<\_ACEOF |
---|
3352 | all: |
---|
3353 | @echo 'ac_maketemp="$(MAKE)"' |
---|
3354 | _ACEOF |
---|
3355 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
3356 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
3357 | if test -n "$ac_maketemp"; then |
---|
3358 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
3359 | else |
---|
3360 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
3361 | fi |
---|
3362 | rm -f conftest.make |
---|
3363 | fi |
---|
3364 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
3365 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3366 | echo "${ECHO_T}yes" >&6 |
---|
3367 | SET_MAKE= |
---|
3368 | else |
---|
3369 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3370 | echo "${ECHO_T}no" >&6 |
---|
3371 | SET_MAKE="MAKE=${MAKE-make}" |
---|
3372 | fi |
---|
3373 | |
---|
3374 | |
---|
3375 | |
---|
3376 | ac_ext=c |
---|
3377 | ac_cpp='$CPP $CPPFLAGS' |
---|
3378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3381 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3382 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3383 | # On Suns, sometimes $CPP names a directory. |
---|
3384 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3385 | CPP= |
---|
3386 | fi |
---|
3387 | if test -z "$CPP"; then |
---|
3388 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3390 | else |
---|
3391 | # Double quotes because CPP needs to be expanded |
---|
3392 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3393 | do |
---|
3394 | ac_preproc_ok=false |
---|
3395 | for ac_c_preproc_warn_flag in '' yes |
---|
3396 | do |
---|
3397 | # Use a header file that comes with gcc, so configuring glibc |
---|
3398 | # with a fresh cross-compiler works. |
---|
3399 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3400 | # <limits.h> exists even on freestanding compilers. |
---|
3401 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3402 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3403 | cat >conftest.$ac_ext <<_ACEOF |
---|
3404 | #line $LINENO "configure" |
---|
3405 | /* confdefs.h. */ |
---|
3406 | _ACEOF |
---|
3407 | cat confdefs.h >>conftest.$ac_ext |
---|
3408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3409 | /* end confdefs.h. */ |
---|
3410 | #ifdef __STDC__ |
---|
3411 | # include <limits.h> |
---|
3412 | #else |
---|
3413 | # include <assert.h> |
---|
3414 | #endif |
---|
3415 | Syntax error |
---|
3416 | _ACEOF |
---|
3417 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3418 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3419 | ac_status=$? |
---|
3420 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3421 | rm -f conftest.er1 |
---|
3422 | cat conftest.err >&5 |
---|
3423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3424 | (exit $ac_status); } >/dev/null; then |
---|
3425 | if test -s conftest.err; then |
---|
3426 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3427 | else |
---|
3428 | ac_cpp_err= |
---|
3429 | fi |
---|
3430 | else |
---|
3431 | ac_cpp_err=yes |
---|
3432 | fi |
---|
3433 | if test -z "$ac_cpp_err"; then |
---|
3434 | : |
---|
3435 | else |
---|
3436 | echo "$as_me: failed program was:" >&5 |
---|
3437 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3438 | |
---|
3439 | # Broken: fails on valid input. |
---|
3440 | continue |
---|
3441 | fi |
---|
3442 | rm -f conftest.err conftest.$ac_ext |
---|
3443 | |
---|
3444 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3445 | # can be detected and how. |
---|
3446 | cat >conftest.$ac_ext <<_ACEOF |
---|
3447 | #line $LINENO "configure" |
---|
3448 | /* confdefs.h. */ |
---|
3449 | _ACEOF |
---|
3450 | cat confdefs.h >>conftest.$ac_ext |
---|
3451 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3452 | /* end confdefs.h. */ |
---|
3453 | #include <ac_nonexistent.h> |
---|
3454 | _ACEOF |
---|
3455 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3456 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3457 | ac_status=$? |
---|
3458 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3459 | rm -f conftest.er1 |
---|
3460 | cat conftest.err >&5 |
---|
3461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3462 | (exit $ac_status); } >/dev/null; then |
---|
3463 | if test -s conftest.err; then |
---|
3464 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3465 | else |
---|
3466 | ac_cpp_err= |
---|
3467 | fi |
---|
3468 | else |
---|
3469 | ac_cpp_err=yes |
---|
3470 | fi |
---|
3471 | if test -z "$ac_cpp_err"; then |
---|
3472 | # Broken: success on invalid input. |
---|
3473 | continue |
---|
3474 | else |
---|
3475 | echo "$as_me: failed program was:" >&5 |
---|
3476 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3477 | |
---|
3478 | # Passes both tests. |
---|
3479 | ac_preproc_ok=: |
---|
3480 | break |
---|
3481 | fi |
---|
3482 | rm -f conftest.err conftest.$ac_ext |
---|
3483 | |
---|
3484 | done |
---|
3485 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3486 | rm -f conftest.err conftest.$ac_ext |
---|
3487 | if $ac_preproc_ok; then |
---|
3488 | break |
---|
3489 | fi |
---|
3490 | |
---|
3491 | done |
---|
3492 | ac_cv_prog_CPP=$CPP |
---|
3493 | |
---|
3494 | fi |
---|
3495 | CPP=$ac_cv_prog_CPP |
---|
3496 | else |
---|
3497 | ac_cv_prog_CPP=$CPP |
---|
3498 | fi |
---|
3499 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3500 | echo "${ECHO_T}$CPP" >&6 |
---|
3501 | ac_preproc_ok=false |
---|
3502 | for ac_c_preproc_warn_flag in '' yes |
---|
3503 | do |
---|
3504 | # Use a header file that comes with gcc, so configuring glibc |
---|
3505 | # with a fresh cross-compiler works. |
---|
3506 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3507 | # <limits.h> exists even on freestanding compilers. |
---|
3508 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3509 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3510 | cat >conftest.$ac_ext <<_ACEOF |
---|
3511 | #line $LINENO "configure" |
---|
3512 | /* confdefs.h. */ |
---|
3513 | _ACEOF |
---|
3514 | cat confdefs.h >>conftest.$ac_ext |
---|
3515 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3516 | /* end confdefs.h. */ |
---|
3517 | #ifdef __STDC__ |
---|
3518 | # include <limits.h> |
---|
3519 | #else |
---|
3520 | # include <assert.h> |
---|
3521 | #endif |
---|
3522 | Syntax error |
---|
3523 | _ACEOF |
---|
3524 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3525 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3526 | ac_status=$? |
---|
3527 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3528 | rm -f conftest.er1 |
---|
3529 | cat conftest.err >&5 |
---|
3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3531 | (exit $ac_status); } >/dev/null; then |
---|
3532 | if test -s conftest.err; then |
---|
3533 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3534 | else |
---|
3535 | ac_cpp_err= |
---|
3536 | fi |
---|
3537 | else |
---|
3538 | ac_cpp_err=yes |
---|
3539 | fi |
---|
3540 | if test -z "$ac_cpp_err"; then |
---|
3541 | : |
---|
3542 | else |
---|
3543 | echo "$as_me: failed program was:" >&5 |
---|
3544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3545 | |
---|
3546 | # Broken: fails on valid input. |
---|
3547 | continue |
---|
3548 | fi |
---|
3549 | rm -f conftest.err conftest.$ac_ext |
---|
3550 | |
---|
3551 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3552 | # can be detected and how. |
---|
3553 | cat >conftest.$ac_ext <<_ACEOF |
---|
3554 | #line $LINENO "configure" |
---|
3555 | /* confdefs.h. */ |
---|
3556 | _ACEOF |
---|
3557 | cat confdefs.h >>conftest.$ac_ext |
---|
3558 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3559 | /* end confdefs.h. */ |
---|
3560 | #include <ac_nonexistent.h> |
---|
3561 | _ACEOF |
---|
3562 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3563 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3564 | ac_status=$? |
---|
3565 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3566 | rm -f conftest.er1 |
---|
3567 | cat conftest.err >&5 |
---|
3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3569 | (exit $ac_status); } >/dev/null; then |
---|
3570 | if test -s conftest.err; then |
---|
3571 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3572 | else |
---|
3573 | ac_cpp_err= |
---|
3574 | fi |
---|
3575 | else |
---|
3576 | ac_cpp_err=yes |
---|
3577 | fi |
---|
3578 | if test -z "$ac_cpp_err"; then |
---|
3579 | # Broken: success on invalid input. |
---|
3580 | continue |
---|
3581 | else |
---|
3582 | echo "$as_me: failed program was:" >&5 |
---|
3583 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3584 | |
---|
3585 | # Passes both tests. |
---|
3586 | ac_preproc_ok=: |
---|
3587 | break |
---|
3588 | fi |
---|
3589 | rm -f conftest.err conftest.$ac_ext |
---|
3590 | |
---|
3591 | done |
---|
3592 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3593 | rm -f conftest.err conftest.$ac_ext |
---|
3594 | if $ac_preproc_ok; then |
---|
3595 | : |
---|
3596 | else |
---|
3597 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3598 | See \`config.log' for more details." >&5 |
---|
3599 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3600 | See \`config.log' for more details." >&2;} |
---|
3601 | { (exit 1); exit 1; }; } |
---|
3602 | fi |
---|
3603 | |
---|
3604 | ac_ext=c |
---|
3605 | ac_cpp='$CPP $CPPFLAGS' |
---|
3606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3609 | |
---|
3610 | |
---|
3611 | echo "$as_me:$LINENO: checking for X" >&5 |
---|
3612 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
---|
3613 | |
---|
3614 | |
---|
3615 | # Check whether --with-x or --without-x was given. |
---|
3616 | if test "${with_x+set}" = set; then |
---|
3617 | withval="$with_x" |
---|
3618 | |
---|
3619 | fi; |
---|
3620 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
3621 | if test "x$with_x" = xno; then |
---|
3622 | # The user explicitly disabled X. |
---|
3623 | have_x=disabled |
---|
3624 | else |
---|
3625 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
---|
3626 | # Both variables are already set. |
---|
3627 | have_x=yes |
---|
3628 | else |
---|
3629 | if test "${ac_cv_have_x+set}" = set; then |
---|
3630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3631 | else |
---|
3632 | # One or both of the vars are not set, and there is no cached value. |
---|
3633 | ac_x_includes=no ac_x_libraries=no |
---|
3634 | rm -fr conftest.dir |
---|
3635 | if mkdir conftest.dir; then |
---|
3636 | cd conftest.dir |
---|
3637 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
---|
3638 | cat >Imakefile <<'_ACEOF' |
---|
3639 | acfindx: |
---|
3640 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
---|
3641 | _ACEOF |
---|
3642 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
3643 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
3644 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
---|
3645 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
3646 | for ac_extension in a so sl; do |
---|
3647 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
---|
3648 | test -f $ac_im_libdir/libX11.$ac_extension; then |
---|
3649 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
3650 | fi |
---|
3651 | done |
---|
3652 | # Screen out bogus values from the imake configuration. They are |
---|
3653 | # bogus both because they are the default anyway, and because |
---|
3654 | # using them would break gcc on systems where it needs fixed includes. |
---|
3655 | case $ac_im_incroot in |
---|
3656 | /usr/include) ;; |
---|
3657 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
3658 | esac |
---|
3659 | case $ac_im_usrlibdir in |
---|
3660 | /usr/lib | /lib) ;; |
---|
3661 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
3662 | esac |
---|
3663 | fi |
---|
3664 | cd .. |
---|
3665 | rm -fr conftest.dir |
---|
3666 | fi |
---|
3667 | |
---|
3668 | # Standard set of common directories for X headers. |
---|
3669 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
3670 | ac_x_header_dirs=' |
---|
3671 | /usr/X11/include |
---|
3672 | /usr/X11R6/include |
---|
3673 | /usr/X11R5/include |
---|
3674 | /usr/X11R4/include |
---|
3675 | |
---|
3676 | /usr/include/X11 |
---|
3677 | /usr/include/X11R6 |
---|
3678 | /usr/include/X11R5 |
---|
3679 | /usr/include/X11R4 |
---|
3680 | |
---|
3681 | /usr/local/X11/include |
---|
3682 | /usr/local/X11R6/include |
---|
3683 | /usr/local/X11R5/include |
---|
3684 | /usr/local/X11R4/include |
---|
3685 | |
---|
3686 | /usr/local/include/X11 |
---|
3687 | /usr/local/include/X11R6 |
---|
3688 | /usr/local/include/X11R5 |
---|
3689 | /usr/local/include/X11R4 |
---|
3690 | |
---|
3691 | /usr/X386/include |
---|
3692 | /usr/x386/include |
---|
3693 | /usr/XFree86/include/X11 |
---|
3694 | |
---|
3695 | /usr/include |
---|
3696 | /usr/local/include |
---|
3697 | /usr/unsupported/include |
---|
3698 | /usr/athena/include |
---|
3699 | /usr/local/x11r5/include |
---|
3700 | /usr/lpp/Xamples/include |
---|
3701 | |
---|
3702 | /usr/openwin/include |
---|
3703 | /usr/openwin/share/include' |
---|
3704 | |
---|
3705 | if test "$ac_x_includes" = no; then |
---|
3706 | # Guess where to find include files, by looking for Intrinsic.h. |
---|
3707 | # First, try using that file with no special directory specified. |
---|
3708 | cat >conftest.$ac_ext <<_ACEOF |
---|
3709 | #line $LINENO "configure" |
---|
3710 | /* confdefs.h. */ |
---|
3711 | _ACEOF |
---|
3712 | cat confdefs.h >>conftest.$ac_ext |
---|
3713 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3714 | /* end confdefs.h. */ |
---|
3715 | #include <X11/Intrinsic.h> |
---|
3716 | _ACEOF |
---|
3717 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3718 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3719 | ac_status=$? |
---|
3720 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3721 | rm -f conftest.er1 |
---|
3722 | cat conftest.err >&5 |
---|
3723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3724 | (exit $ac_status); } >/dev/null; then |
---|
3725 | if test -s conftest.err; then |
---|
3726 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3727 | else |
---|
3728 | ac_cpp_err= |
---|
3729 | fi |
---|
3730 | else |
---|
3731 | ac_cpp_err=yes |
---|
3732 | fi |
---|
3733 | if test -z "$ac_cpp_err"; then |
---|
3734 | # We can compile using X headers with no special include directory. |
---|
3735 | ac_x_includes= |
---|
3736 | else |
---|
3737 | echo "$as_me: failed program was:" >&5 |
---|
3738 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3739 | |
---|
3740 | for ac_dir in $ac_x_header_dirs; do |
---|
3741 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
---|
3742 | ac_x_includes=$ac_dir |
---|
3743 | break |
---|
3744 | fi |
---|
3745 | done |
---|
3746 | fi |
---|
3747 | rm -f conftest.err conftest.$ac_ext |
---|
3748 | fi # $ac_x_includes = no |
---|
3749 | |
---|
3750 | if test "$ac_x_libraries" = no; then |
---|
3751 | # Check for the libraries. |
---|
3752 | # See if we find them without any special options. |
---|
3753 | # Don't add to $LIBS permanently. |
---|
3754 | ac_save_LIBS=$LIBS |
---|
3755 | LIBS="-lXt $LIBS" |
---|
3756 | cat >conftest.$ac_ext <<_ACEOF |
---|
3757 | #line $LINENO "configure" |
---|
3758 | /* confdefs.h. */ |
---|
3759 | _ACEOF |
---|
3760 | cat confdefs.h >>conftest.$ac_ext |
---|
3761 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3762 | /* end confdefs.h. */ |
---|
3763 | #include <X11/Intrinsic.h> |
---|
3764 | int |
---|
3765 | main () |
---|
3766 | { |
---|
3767 | XtMalloc (0) |
---|
3768 | ; |
---|
3769 | return 0; |
---|
3770 | } |
---|
3771 | _ACEOF |
---|
3772 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3774 | (eval $ac_link) 2>&5 |
---|
3775 | ac_status=$? |
---|
3776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3777 | (exit $ac_status); } && |
---|
3778 | { ac_try='test -s conftest$ac_exeext' |
---|
3779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3780 | (eval $ac_try) 2>&5 |
---|
3781 | ac_status=$? |
---|
3782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3783 | (exit $ac_status); }; }; then |
---|
3784 | LIBS=$ac_save_LIBS |
---|
3785 | # We can link X programs with no special library path. |
---|
3786 | ac_x_libraries= |
---|
3787 | else |
---|
3788 | echo "$as_me: failed program was:" >&5 |
---|
3789 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3790 | |
---|
3791 | LIBS=$ac_save_LIBS |
---|
3792 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
3793 | do |
---|
3794 | # Don't even attempt the hair of trying to link an X program! |
---|
3795 | for ac_extension in a so sl; do |
---|
3796 | if test -r $ac_dir/libXt.$ac_extension; then |
---|
3797 | ac_x_libraries=$ac_dir |
---|
3798 | break 2 |
---|
3799 | fi |
---|
3800 | done |
---|
3801 | done |
---|
3802 | fi |
---|
3803 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3804 | fi # $ac_x_libraries = no |
---|
3805 | |
---|
3806 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
---|
3807 | # Didn't find X anywhere. Cache the known absence of X. |
---|
3808 | ac_cv_have_x="have_x=no" |
---|
3809 | else |
---|
3810 | # Record where we found X for the cache. |
---|
3811 | ac_cv_have_x="have_x=yes \ |
---|
3812 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
---|
3813 | fi |
---|
3814 | fi |
---|
3815 | |
---|
3816 | fi |
---|
3817 | eval "$ac_cv_have_x" |
---|
3818 | fi # $with_x != no |
---|
3819 | |
---|
3820 | if test "$have_x" != yes; then |
---|
3821 | echo "$as_me:$LINENO: result: $have_x" >&5 |
---|
3822 | echo "${ECHO_T}$have_x" >&6 |
---|
3823 | no_x=yes |
---|
3824 | else |
---|
3825 | # If each of the values was on the command line, it overrides each guess. |
---|
3826 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
3827 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
3828 | # Update the cache value to reflect the command line values. |
---|
3829 | ac_cv_have_x="have_x=yes \ |
---|
3830 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
---|
3831 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
3832 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
---|
3833 | fi |
---|
3834 | |
---|
3835 | CFLAGS="$CFLAGS -I${ac_x_includes}" |
---|
3836 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}" |
---|
3837 | LDFLAGS="$LDFLAGS -L${ac_x_libraries}" |
---|
3838 | if test -n "${need_dash_r}"; then |
---|
3839 | LDFLAGS="$LDFLAGS -R${ac_x_libraries}" |
---|
3840 | fi |
---|
3841 | |
---|
3842 | |
---|
3843 | echo "$as_me:$LINENO: checking for XrmInitialize in -lX11" >&5 |
---|
3844 | echo $ECHO_N "checking for XrmInitialize in -lX11... $ECHO_C" >&6 |
---|
3845 | if test "${ac_cv_lib_X11_XrmInitialize+set}" = set; then |
---|
3846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3847 | else |
---|
3848 | ac_check_lib_save_LIBS=$LIBS |
---|
3849 | LIBS="-lX11 $LIBS" |
---|
3850 | cat >conftest.$ac_ext <<_ACEOF |
---|
3851 | #line $LINENO "configure" |
---|
3852 | /* confdefs.h. */ |
---|
3853 | _ACEOF |
---|
3854 | cat confdefs.h >>conftest.$ac_ext |
---|
3855 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3856 | /* end confdefs.h. */ |
---|
3857 | |
---|
3858 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3859 | #ifdef __cplusplus |
---|
3860 | extern "C" |
---|
3861 | #endif |
---|
3862 | /* We use char because int might match the return type of a gcc2 |
---|
3863 | builtin and then its argument prototype would still apply. */ |
---|
3864 | char XrmInitialize (); |
---|
3865 | int |
---|
3866 | main () |
---|
3867 | { |
---|
3868 | XrmInitialize (); |
---|
3869 | ; |
---|
3870 | return 0; |
---|
3871 | } |
---|
3872 | _ACEOF |
---|
3873 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3875 | (eval $ac_link) 2>&5 |
---|
3876 | ac_status=$? |
---|
3877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3878 | (exit $ac_status); } && |
---|
3879 | { ac_try='test -s conftest$ac_exeext' |
---|
3880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3881 | (eval $ac_try) 2>&5 |
---|
3882 | ac_status=$? |
---|
3883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3884 | (exit $ac_status); }; }; then |
---|
3885 | ac_cv_lib_X11_XrmInitialize=yes |
---|
3886 | else |
---|
3887 | echo "$as_me: failed program was:" >&5 |
---|
3888 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3889 | |
---|
3890 | ac_cv_lib_X11_XrmInitialize=no |
---|
3891 | fi |
---|
3892 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3893 | LIBS=$ac_check_lib_save_LIBS |
---|
3894 | fi |
---|
3895 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XrmInitialize" >&5 |
---|
3896 | echo "${ECHO_T}$ac_cv_lib_X11_XrmInitialize" >&6 |
---|
3897 | if test $ac_cv_lib_X11_XrmInitialize = yes; then |
---|
3898 | cat >>confdefs.h <<_ACEOF |
---|
3899 | #define HAVE_LIBX11 1 |
---|
3900 | _ACEOF |
---|
3901 | |
---|
3902 | LIBS="-lX11 $LIBS" |
---|
3903 | |
---|
3904 | fi |
---|
3905 | |
---|
3906 | |
---|
3907 | echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
---|
3908 | echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 |
---|
3909 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
---|
3910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3911 | else |
---|
3912 | ac_check_lib_save_LIBS=$LIBS |
---|
3913 | LIBS="-ltermcap $LIBS" |
---|
3914 | cat >conftest.$ac_ext <<_ACEOF |
---|
3915 | #line $LINENO "configure" |
---|
3916 | /* confdefs.h. */ |
---|
3917 | _ACEOF |
---|
3918 | cat confdefs.h >>conftest.$ac_ext |
---|
3919 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3920 | /* end confdefs.h. */ |
---|
3921 | |
---|
3922 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3923 | #ifdef __cplusplus |
---|
3924 | extern "C" |
---|
3925 | #endif |
---|
3926 | /* We use char because int might match the return type of a gcc2 |
---|
3927 | builtin and then its argument prototype would still apply. */ |
---|
3928 | char tgetent (); |
---|
3929 | int |
---|
3930 | main () |
---|
3931 | { |
---|
3932 | tgetent (); |
---|
3933 | ; |
---|
3934 | return 0; |
---|
3935 | } |
---|
3936 | _ACEOF |
---|
3937 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3939 | (eval $ac_link) 2>&5 |
---|
3940 | ac_status=$? |
---|
3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3942 | (exit $ac_status); } && |
---|
3943 | { ac_try='test -s conftest$ac_exeext' |
---|
3944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3945 | (eval $ac_try) 2>&5 |
---|
3946 | ac_status=$? |
---|
3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3948 | (exit $ac_status); }; }; then |
---|
3949 | ac_cv_lib_termcap_tgetent=yes |
---|
3950 | else |
---|
3951 | echo "$as_me: failed program was:" >&5 |
---|
3952 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3953 | |
---|
3954 | ac_cv_lib_termcap_tgetent=no |
---|
3955 | fi |
---|
3956 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3957 | LIBS=$ac_check_lib_save_LIBS |
---|
3958 | fi |
---|
3959 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
---|
3960 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 |
---|
3961 | if test $ac_cv_lib_termcap_tgetent = yes; then |
---|
3962 | cat >>confdefs.h <<_ACEOF |
---|
3963 | #define HAVE_LIBTERMCAP 1 |
---|
3964 | _ACEOF |
---|
3965 | |
---|
3966 | LIBS="-ltermcap $LIBS" |
---|
3967 | |
---|
3968 | fi |
---|
3969 | |
---|
3970 | echo "$as_me:$LINENO: checking for connect" >&5 |
---|
3971 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
---|
3972 | if test "${ac_cv_func_connect+set}" = set; then |
---|
3973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3974 | else |
---|
3975 | cat >conftest.$ac_ext <<_ACEOF |
---|
3976 | #line $LINENO "configure" |
---|
3977 | /* confdefs.h. */ |
---|
3978 | _ACEOF |
---|
3979 | cat confdefs.h >>conftest.$ac_ext |
---|
3980 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3981 | /* end confdefs.h. */ |
---|
3982 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3983 | which can conflict with char connect (); below. |
---|
3984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3985 | <limits.h> exists even on freestanding compilers. */ |
---|
3986 | #ifdef __STDC__ |
---|
3987 | # include <limits.h> |
---|
3988 | #else |
---|
3989 | # include <assert.h> |
---|
3990 | #endif |
---|
3991 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3992 | #ifdef __cplusplus |
---|
3993 | extern "C" |
---|
3994 | { |
---|
3995 | #endif |
---|
3996 | /* We use char because int might match the return type of a gcc2 |
---|
3997 | builtin and then its argument prototype would still apply. */ |
---|
3998 | char connect (); |
---|
3999 | /* The GNU C library defines this for functions which it implements |
---|
4000 | to always fail with ENOSYS. Some functions are actually named |
---|
4001 | something starting with __ and the normal name is an alias. */ |
---|
4002 | #if defined (__stub_connect) || defined (__stub___connect) |
---|
4003 | choke me |
---|
4004 | #else |
---|
4005 | char (*f) () = connect; |
---|
4006 | #endif |
---|
4007 | #ifdef __cplusplus |
---|
4008 | } |
---|
4009 | #endif |
---|
4010 | |
---|
4011 | int |
---|
4012 | main () |
---|
4013 | { |
---|
4014 | return f != connect; |
---|
4015 | ; |
---|
4016 | return 0; |
---|
4017 | } |
---|
4018 | _ACEOF |
---|
4019 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4021 | (eval $ac_link) 2>&5 |
---|
4022 | ac_status=$? |
---|
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4024 | (exit $ac_status); } && |
---|
4025 | { ac_try='test -s conftest$ac_exeext' |
---|
4026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4027 | (eval $ac_try) 2>&5 |
---|
4028 | ac_status=$? |
---|
4029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4030 | (exit $ac_status); }; }; then |
---|
4031 | ac_cv_func_connect=yes |
---|
4032 | else |
---|
4033 | echo "$as_me: failed program was:" >&5 |
---|
4034 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4035 | |
---|
4036 | ac_cv_func_connect=no |
---|
4037 | fi |
---|
4038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4039 | fi |
---|
4040 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
---|
4041 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
---|
4042 | if test $ac_cv_func_connect = yes; then |
---|
4043 | : |
---|
4044 | else |
---|
4045 | |
---|
4046 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
---|
4047 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
---|
4048 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
---|
4049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4050 | else |
---|
4051 | ac_check_lib_save_LIBS=$LIBS |
---|
4052 | LIBS="-lsocket $LIBS" |
---|
4053 | cat >conftest.$ac_ext <<_ACEOF |
---|
4054 | #line $LINENO "configure" |
---|
4055 | /* confdefs.h. */ |
---|
4056 | _ACEOF |
---|
4057 | cat confdefs.h >>conftest.$ac_ext |
---|
4058 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4059 | /* end confdefs.h. */ |
---|
4060 | |
---|
4061 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4062 | #ifdef __cplusplus |
---|
4063 | extern "C" |
---|
4064 | #endif |
---|
4065 | /* We use char because int might match the return type of a gcc2 |
---|
4066 | builtin and then its argument prototype would still apply. */ |
---|
4067 | char socket (); |
---|
4068 | int |
---|
4069 | main () |
---|
4070 | { |
---|
4071 | socket (); |
---|
4072 | ; |
---|
4073 | return 0; |
---|
4074 | } |
---|
4075 | _ACEOF |
---|
4076 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4078 | (eval $ac_link) 2>&5 |
---|
4079 | ac_status=$? |
---|
4080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4081 | (exit $ac_status); } && |
---|
4082 | { ac_try='test -s conftest$ac_exeext' |
---|
4083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4084 | (eval $ac_try) 2>&5 |
---|
4085 | ac_status=$? |
---|
4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4087 | (exit $ac_status); }; }; then |
---|
4088 | ac_cv_lib_socket_socket=yes |
---|
4089 | else |
---|
4090 | echo "$as_me: failed program was:" >&5 |
---|
4091 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4092 | |
---|
4093 | ac_cv_lib_socket_socket=no |
---|
4094 | fi |
---|
4095 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4096 | LIBS=$ac_check_lib_save_LIBS |
---|
4097 | fi |
---|
4098 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
---|
4099 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
---|
4100 | if test $ac_cv_lib_socket_socket = yes; then |
---|
4101 | cat >>confdefs.h <<_ACEOF |
---|
4102 | #define HAVE_LIBSOCKET 1 |
---|
4103 | _ACEOF |
---|
4104 | |
---|
4105 | LIBS="-lsocket $LIBS" |
---|
4106 | |
---|
4107 | fi |
---|
4108 | |
---|
4109 | |
---|
4110 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
---|
4111 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
---|
4112 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
---|
4113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4114 | else |
---|
4115 | ac_check_lib_save_LIBS=$LIBS |
---|
4116 | LIBS="-lnsl $LIBS" |
---|
4117 | cat >conftest.$ac_ext <<_ACEOF |
---|
4118 | #line $LINENO "configure" |
---|
4119 | /* confdefs.h. */ |
---|
4120 | _ACEOF |
---|
4121 | cat confdefs.h >>conftest.$ac_ext |
---|
4122 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4123 | /* end confdefs.h. */ |
---|
4124 | |
---|
4125 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4126 | #ifdef __cplusplus |
---|
4127 | extern "C" |
---|
4128 | #endif |
---|
4129 | /* We use char because int might match the return type of a gcc2 |
---|
4130 | builtin and then its argument prototype would still apply. */ |
---|
4131 | char gethostbyname (); |
---|
4132 | int |
---|
4133 | main () |
---|
4134 | { |
---|
4135 | gethostbyname (); |
---|
4136 | ; |
---|
4137 | return 0; |
---|
4138 | } |
---|
4139 | _ACEOF |
---|
4140 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4142 | (eval $ac_link) 2>&5 |
---|
4143 | ac_status=$? |
---|
4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4145 | (exit $ac_status); } && |
---|
4146 | { ac_try='test -s conftest$ac_exeext' |
---|
4147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4148 | (eval $ac_try) 2>&5 |
---|
4149 | ac_status=$? |
---|
4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4151 | (exit $ac_status); }; }; then |
---|
4152 | ac_cv_lib_nsl_gethostbyname=yes |
---|
4153 | else |
---|
4154 | echo "$as_me: failed program was:" >&5 |
---|
4155 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4156 | |
---|
4157 | ac_cv_lib_nsl_gethostbyname=no |
---|
4158 | fi |
---|
4159 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4160 | LIBS=$ac_check_lib_save_LIBS |
---|
4161 | fi |
---|
4162 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
---|
4163 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
---|
4164 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
---|
4165 | cat >>confdefs.h <<_ACEOF |
---|
4166 | #define HAVE_LIBNSL 1 |
---|
4167 | _ACEOF |
---|
4168 | |
---|
4169 | LIBS="-lnsl $LIBS" |
---|
4170 | |
---|
4171 | fi |
---|
4172 | |
---|
4173 | fi |
---|
4174 | |
---|
4175 | |
---|
4176 | echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
---|
4177 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
---|
4178 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
---|
4179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4180 | else |
---|
4181 | ac_check_lib_save_LIBS=$LIBS |
---|
4182 | LIBS="-lresolv $LIBS" |
---|
4183 | cat >conftest.$ac_ext <<_ACEOF |
---|
4184 | #line $LINENO "configure" |
---|
4185 | /* confdefs.h. */ |
---|
4186 | _ACEOF |
---|
4187 | cat confdefs.h >>conftest.$ac_ext |
---|
4188 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4189 | /* end confdefs.h. */ |
---|
4190 | |
---|
4191 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4192 | #ifdef __cplusplus |
---|
4193 | extern "C" |
---|
4194 | #endif |
---|
4195 | /* We use char because int might match the return type of a gcc2 |
---|
4196 | builtin and then its argument prototype would still apply. */ |
---|
4197 | char res_send (); |
---|
4198 | int |
---|
4199 | main () |
---|
4200 | { |
---|
4201 | res_send (); |
---|
4202 | ; |
---|
4203 | return 0; |
---|
4204 | } |
---|
4205 | _ACEOF |
---|
4206 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4208 | (eval $ac_link) 2>&5 |
---|
4209 | ac_status=$? |
---|
4210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4211 | (exit $ac_status); } && |
---|
4212 | { ac_try='test -s conftest$ac_exeext' |
---|
4213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4214 | (eval $ac_try) 2>&5 |
---|
4215 | ac_status=$? |
---|
4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4217 | (exit $ac_status); }; }; then |
---|
4218 | ac_cv_lib_resolv_res_send=yes |
---|
4219 | else |
---|
4220 | echo "$as_me: failed program was:" >&5 |
---|
4221 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4222 | |
---|
4223 | ac_cv_lib_resolv_res_send=no |
---|
4224 | fi |
---|
4225 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4226 | LIBS=$ac_check_lib_save_LIBS |
---|
4227 | fi |
---|
4228 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
---|
4229 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
---|
4230 | if test $ac_cv_lib_resolv_res_send = yes; then |
---|
4231 | cat >>confdefs.h <<_ACEOF |
---|
4232 | #define HAVE_LIBRESOLV 1 |
---|
4233 | _ACEOF |
---|
4234 | |
---|
4235 | LIBS="-lresolv $LIBS" |
---|
4236 | |
---|
4237 | fi |
---|
4238 | |
---|
4239 | echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5 |
---|
4240 | echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6 |
---|
4241 | if test "${ac_cv_lib_curses_tgetstr+set}" = set; then |
---|
4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4243 | else |
---|
4244 | ac_check_lib_save_LIBS=$LIBS |
---|
4245 | LIBS="-lcurses $LIBS" |
---|
4246 | cat >conftest.$ac_ext <<_ACEOF |
---|
4247 | #line $LINENO "configure" |
---|
4248 | /* confdefs.h. */ |
---|
4249 | _ACEOF |
---|
4250 | cat confdefs.h >>conftest.$ac_ext |
---|
4251 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4252 | /* end confdefs.h. */ |
---|
4253 | |
---|
4254 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4255 | #ifdef __cplusplus |
---|
4256 | extern "C" |
---|
4257 | #endif |
---|
4258 | /* We use char because int might match the return type of a gcc2 |
---|
4259 | builtin and then its argument prototype would still apply. */ |
---|
4260 | char tgetstr (); |
---|
4261 | int |
---|
4262 | main () |
---|
4263 | { |
---|
4264 | tgetstr (); |
---|
4265 | ; |
---|
4266 | return 0; |
---|
4267 | } |
---|
4268 | _ACEOF |
---|
4269 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4271 | (eval $ac_link) 2>&5 |
---|
4272 | ac_status=$? |
---|
4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4274 | (exit $ac_status); } && |
---|
4275 | { ac_try='test -s conftest$ac_exeext' |
---|
4276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4277 | (eval $ac_try) 2>&5 |
---|
4278 | ac_status=$? |
---|
4279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4280 | (exit $ac_status); }; }; then |
---|
4281 | ac_cv_lib_curses_tgetstr=yes |
---|
4282 | else |
---|
4283 | echo "$as_me: failed program was:" >&5 |
---|
4284 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4285 | |
---|
4286 | ac_cv_lib_curses_tgetstr=no |
---|
4287 | fi |
---|
4288 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4289 | LIBS=$ac_check_lib_save_LIBS |
---|
4290 | fi |
---|
4291 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5 |
---|
4292 | echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6 |
---|
4293 | if test $ac_cv_lib_curses_tgetstr = yes; then |
---|
4294 | TLIB=-lcurses |
---|
4295 | else |
---|
4296 | TLIB=-ltermcap |
---|
4297 | fi |
---|
4298 | |
---|
4299 | echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5 |
---|
4300 | echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6 |
---|
4301 | if test "${ac_cv_lib_gen_regcmp+set}" = set; then |
---|
4302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4303 | else |
---|
4304 | ac_check_lib_save_LIBS=$LIBS |
---|
4305 | LIBS="-lgen $LIBS" |
---|
4306 | cat >conftest.$ac_ext <<_ACEOF |
---|
4307 | #line $LINENO "configure" |
---|
4308 | /* confdefs.h. */ |
---|
4309 | _ACEOF |
---|
4310 | cat confdefs.h >>conftest.$ac_ext |
---|
4311 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4312 | /* end confdefs.h. */ |
---|
4313 | |
---|
4314 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4315 | #ifdef __cplusplus |
---|
4316 | extern "C" |
---|
4317 | #endif |
---|
4318 | /* We use char because int might match the return type of a gcc2 |
---|
4319 | builtin and then its argument prototype would still apply. */ |
---|
4320 | char regcmp (); |
---|
4321 | int |
---|
4322 | main () |
---|
4323 | { |
---|
4324 | regcmp (); |
---|
4325 | ; |
---|
4326 | return 0; |
---|
4327 | } |
---|
4328 | _ACEOF |
---|
4329 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4331 | (eval $ac_link) 2>&5 |
---|
4332 | ac_status=$? |
---|
4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4334 | (exit $ac_status); } && |
---|
4335 | { ac_try='test -s conftest$ac_exeext' |
---|
4336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4337 | (eval $ac_try) 2>&5 |
---|
4338 | ac_status=$? |
---|
4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4340 | (exit $ac_status); }; }; then |
---|
4341 | ac_cv_lib_gen_regcmp=yes |
---|
4342 | else |
---|
4343 | echo "$as_me: failed program was:" >&5 |
---|
4344 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4345 | |
---|
4346 | ac_cv_lib_gen_regcmp=no |
---|
4347 | fi |
---|
4348 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4349 | LIBS=$ac_check_lib_save_LIBS |
---|
4350 | fi |
---|
4351 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5 |
---|
4352 | echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6 |
---|
4353 | if test $ac_cv_lib_gen_regcmp = yes; then |
---|
4354 | RLIB=-lgen |
---|
4355 | fi |
---|
4356 | |
---|
4357 | echo "$as_me:$LINENO: checking for kssl_krb5_free_data_contents in -lssl" >&5 |
---|
4358 | echo $ECHO_N "checking for kssl_krb5_free_data_contents in -lssl... $ECHO_C" >&6 |
---|
4359 | if test "${ac_cv_lib_ssl_kssl_krb5_free_data_contents+set}" = set; then |
---|
4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4361 | else |
---|
4362 | ac_check_lib_save_LIBS=$LIBS |
---|
4363 | LIBS="-lssl $LIBS" |
---|
4364 | cat >conftest.$ac_ext <<_ACEOF |
---|
4365 | #line $LINENO "configure" |
---|
4366 | /* confdefs.h. */ |
---|
4367 | _ACEOF |
---|
4368 | cat confdefs.h >>conftest.$ac_ext |
---|
4369 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4370 | /* end confdefs.h. */ |
---|
4371 | |
---|
4372 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4373 | #ifdef __cplusplus |
---|
4374 | extern "C" |
---|
4375 | #endif |
---|
4376 | /* We use char because int might match the return type of a gcc2 |
---|
4377 | builtin and then its argument prototype would still apply. */ |
---|
4378 | char kssl_krb5_free_data_contents (); |
---|
4379 | int |
---|
4380 | main () |
---|
4381 | { |
---|
4382 | kssl_krb5_free_data_contents (); |
---|
4383 | ; |
---|
4384 | return 0; |
---|
4385 | } |
---|
4386 | _ACEOF |
---|
4387 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4389 | (eval $ac_link) 2>&5 |
---|
4390 | ac_status=$? |
---|
4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4392 | (exit $ac_status); } && |
---|
4393 | { ac_try='test -s conftest$ac_exeext' |
---|
4394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4395 | (eval $ac_try) 2>&5 |
---|
4396 | ac_status=$? |
---|
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4398 | (exit $ac_status); }; }; then |
---|
4399 | ac_cv_lib_ssl_kssl_krb5_free_data_contents=yes |
---|
4400 | else |
---|
4401 | echo "$as_me: failed program was:" >&5 |
---|
4402 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4403 | |
---|
4404 | ac_cv_lib_ssl_kssl_krb5_free_data_contents=no |
---|
4405 | fi |
---|
4406 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4407 | LIBS=$ac_check_lib_save_LIBS |
---|
4408 | fi |
---|
4409 | echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_kssl_krb5_free_data_contents" >&5 |
---|
4410 | echo "${ECHO_T}$ac_cv_lib_ssl_kssl_krb5_free_data_contents" >&6 |
---|
4411 | if test $ac_cv_lib_ssl_kssl_krb5_free_data_contents = yes; then |
---|
4412 | CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5" CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5" LDFLAGS="$LDFLAGS" |
---|
4413 | fi |
---|
4414 | |
---|
4415 | |
---|
4416 | echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5 |
---|
4417 | echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6 |
---|
4418 | if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then |
---|
4419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4420 | else |
---|
4421 | ac_check_lib_save_LIBS=$LIBS |
---|
4422 | LIBS="-lssl $LIBS" |
---|
4423 | cat >conftest.$ac_ext <<_ACEOF |
---|
4424 | #line $LINENO "configure" |
---|
4425 | /* confdefs.h. */ |
---|
4426 | _ACEOF |
---|
4427 | cat confdefs.h >>conftest.$ac_ext |
---|
4428 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4429 | /* end confdefs.h. */ |
---|
4430 | |
---|
4431 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4432 | #ifdef __cplusplus |
---|
4433 | extern "C" |
---|
4434 | #endif |
---|
4435 | /* We use char because int might match the return type of a gcc2 |
---|
4436 | builtin and then its argument prototype would still apply. */ |
---|
4437 | char SSL_new (); |
---|
4438 | int |
---|
4439 | main () |
---|
4440 | { |
---|
4441 | SSL_new (); |
---|
4442 | ; |
---|
4443 | return 0; |
---|
4444 | } |
---|
4445 | _ACEOF |
---|
4446 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4448 | (eval $ac_link) 2>&5 |
---|
4449 | ac_status=$? |
---|
4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4451 | (exit $ac_status); } && |
---|
4452 | { ac_try='test -s conftest$ac_exeext' |
---|
4453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4454 | (eval $ac_try) 2>&5 |
---|
4455 | ac_status=$? |
---|
4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4457 | (exit $ac_status); }; }; then |
---|
4458 | ac_cv_lib_ssl_SSL_new=yes |
---|
4459 | else |
---|
4460 | echo "$as_me: failed program was:" >&5 |
---|
4461 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4462 | |
---|
4463 | ac_cv_lib_ssl_SSL_new=no |
---|
4464 | fi |
---|
4465 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4466 | LIBS=$ac_check_lib_save_LIBS |
---|
4467 | fi |
---|
4468 | echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5 |
---|
4469 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6 |
---|
4470 | if test $ac_cv_lib_ssl_SSL_new = yes; then |
---|
4471 | cat >>confdefs.h <<_ACEOF |
---|
4472 | #define HAVE_LIBSSL 1 |
---|
4473 | _ACEOF |
---|
4474 | |
---|
4475 | LIBS="-lssl $LIBS" |
---|
4476 | |
---|
4477 | fi |
---|
4478 | |
---|
4479 | |
---|
4480 | echo "$as_me:$LINENO: checking for SSLeay in -lcrypto" >&5 |
---|
4481 | echo $ECHO_N "checking for SSLeay in -lcrypto... $ECHO_C" >&6 |
---|
4482 | if test "${ac_cv_lib_crypto_SSLeay+set}" = set; then |
---|
4483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4484 | else |
---|
4485 | ac_check_lib_save_LIBS=$LIBS |
---|
4486 | LIBS="-lcrypto $LIBS" |
---|
4487 | cat >conftest.$ac_ext <<_ACEOF |
---|
4488 | #line $LINENO "configure" |
---|
4489 | /* confdefs.h. */ |
---|
4490 | _ACEOF |
---|
4491 | cat confdefs.h >>conftest.$ac_ext |
---|
4492 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4493 | /* end confdefs.h. */ |
---|
4494 | |
---|
4495 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4496 | #ifdef __cplusplus |
---|
4497 | extern "C" |
---|
4498 | #endif |
---|
4499 | /* We use char because int might match the return type of a gcc2 |
---|
4500 | builtin and then its argument prototype would still apply. */ |
---|
4501 | char SSLeay (); |
---|
4502 | int |
---|
4503 | main () |
---|
4504 | { |
---|
4505 | SSLeay (); |
---|
4506 | ; |
---|
4507 | return 0; |
---|
4508 | } |
---|
4509 | _ACEOF |
---|
4510 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4512 | (eval $ac_link) 2>&5 |
---|
4513 | ac_status=$? |
---|
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4515 | (exit $ac_status); } && |
---|
4516 | { ac_try='test -s conftest$ac_exeext' |
---|
4517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4518 | (eval $ac_try) 2>&5 |
---|
4519 | ac_status=$? |
---|
4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4521 | (exit $ac_status); }; }; then |
---|
4522 | ac_cv_lib_crypto_SSLeay=yes |
---|
4523 | else |
---|
4524 | echo "$as_me: failed program was:" >&5 |
---|
4525 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4526 | |
---|
4527 | ac_cv_lib_crypto_SSLeay=no |
---|
4528 | fi |
---|
4529 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4530 | LIBS=$ac_check_lib_save_LIBS |
---|
4531 | fi |
---|
4532 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_SSLeay" >&5 |
---|
4533 | echo "${ECHO_T}$ac_cv_lib_crypto_SSLeay" >&6 |
---|
4534 | if test $ac_cv_lib_crypto_SSLeay = yes; then |
---|
4535 | cat >>confdefs.h <<_ACEOF |
---|
4536 | #define HAVE_LIBCRYPTO 1 |
---|
4537 | _ACEOF |
---|
4538 | |
---|
4539 | LIBS="-lcrypto $LIBS" |
---|
4540 | |
---|
4541 | fi |
---|
4542 | |
---|
4543 | |
---|
4544 | echo "$as_me:$LINENO: checking for gpgme_new in -lgpgme" >&5 |
---|
4545 | echo $ECHO_N "checking for gpgme_new in -lgpgme... $ECHO_C" >&6 |
---|
4546 | if test "${ac_cv_lib_gpgme_gpgme_new+set}" = set; then |
---|
4547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4548 | else |
---|
4549 | ac_check_lib_save_LIBS=$LIBS |
---|
4550 | LIBS="-lgpgme $LIBS" |
---|
4551 | cat >conftest.$ac_ext <<_ACEOF |
---|
4552 | #line $LINENO "configure" |
---|
4553 | /* confdefs.h. */ |
---|
4554 | _ACEOF |
---|
4555 | cat confdefs.h >>conftest.$ac_ext |
---|
4556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4557 | /* end confdefs.h. */ |
---|
4558 | |
---|
4559 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4560 | #ifdef __cplusplus |
---|
4561 | extern "C" |
---|
4562 | #endif |
---|
4563 | /* We use char because int might match the return type of a gcc2 |
---|
4564 | builtin and then its argument prototype would still apply. */ |
---|
4565 | char gpgme_new (); |
---|
4566 | int |
---|
4567 | main () |
---|
4568 | { |
---|
4569 | gpgme_new (); |
---|
4570 | ; |
---|
4571 | return 0; |
---|
4572 | } |
---|
4573 | _ACEOF |
---|
4574 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4576 | (eval $ac_link) 2>&5 |
---|
4577 | ac_status=$? |
---|
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4579 | (exit $ac_status); } && |
---|
4580 | { ac_try='test -s conftest$ac_exeext' |
---|
4581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4582 | (eval $ac_try) 2>&5 |
---|
4583 | ac_status=$? |
---|
4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4585 | (exit $ac_status); }; }; then |
---|
4586 | ac_cv_lib_gpgme_gpgme_new=yes |
---|
4587 | else |
---|
4588 | echo "$as_me: failed program was:" >&5 |
---|
4589 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4590 | |
---|
4591 | ac_cv_lib_gpgme_gpgme_new=no |
---|
4592 | fi |
---|
4593 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4594 | LIBS=$ac_check_lib_save_LIBS |
---|
4595 | fi |
---|
4596 | echo "$as_me:$LINENO: result: $ac_cv_lib_gpgme_gpgme_new" >&5 |
---|
4597 | echo "${ECHO_T}$ac_cv_lib_gpgme_gpgme_new" >&6 |
---|
4598 | if test $ac_cv_lib_gpgme_gpgme_new = yes; then |
---|
4599 | cat >>confdefs.h <<_ACEOF |
---|
4600 | #define HAVE_LIBGPGME 1 |
---|
4601 | _ACEOF |
---|
4602 | |
---|
4603 | LIBS="-lgpgme $LIBS" |
---|
4604 | |
---|
4605 | fi |
---|
4606 | |
---|
4607 | |
---|
4608 | echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5 |
---|
4609 | echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6 |
---|
4610 | if test "${ac_cv_lib_iconv_libiconv+set}" = set; then |
---|
4611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4612 | else |
---|
4613 | ac_check_lib_save_LIBS=$LIBS |
---|
4614 | LIBS="-liconv $LIBS" |
---|
4615 | cat >conftest.$ac_ext <<_ACEOF |
---|
4616 | #line $LINENO "configure" |
---|
4617 | /* confdefs.h. */ |
---|
4618 | _ACEOF |
---|
4619 | cat confdefs.h >>conftest.$ac_ext |
---|
4620 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4621 | /* end confdefs.h. */ |
---|
4622 | |
---|
4623 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4624 | #ifdef __cplusplus |
---|
4625 | extern "C" |
---|
4626 | #endif |
---|
4627 | /* We use char because int might match the return type of a gcc2 |
---|
4628 | builtin and then its argument prototype would still apply. */ |
---|
4629 | char libiconv (); |
---|
4630 | int |
---|
4631 | main () |
---|
4632 | { |
---|
4633 | libiconv (); |
---|
4634 | ; |
---|
4635 | return 0; |
---|
4636 | } |
---|
4637 | _ACEOF |
---|
4638 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4640 | (eval $ac_link) 2>&5 |
---|
4641 | ac_status=$? |
---|
4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4643 | (exit $ac_status); } && |
---|
4644 | { ac_try='test -s conftest$ac_exeext' |
---|
4645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4646 | (eval $ac_try) 2>&5 |
---|
4647 | ac_status=$? |
---|
4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4649 | (exit $ac_status); }; }; then |
---|
4650 | ac_cv_lib_iconv_libiconv=yes |
---|
4651 | else |
---|
4652 | echo "$as_me: failed program was:" >&5 |
---|
4653 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4654 | |
---|
4655 | ac_cv_lib_iconv_libiconv=no |
---|
4656 | fi |
---|
4657 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4658 | LIBS=$ac_check_lib_save_LIBS |
---|
4659 | fi |
---|
4660 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5 |
---|
4661 | echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6 |
---|
4662 | if test $ac_cv_lib_iconv_libiconv = yes; then |
---|
4663 | cat >>confdefs.h <<_ACEOF |
---|
4664 | #define HAVE_LIBICONV 1 |
---|
4665 | _ACEOF |
---|
4666 | |
---|
4667 | LIBS="-liconv $LIBS" |
---|
4668 | |
---|
4669 | fi |
---|
4670 | |
---|
4671 | echo "$as_me:$LINENO: checking for locale_charset in -liconv" >&5 |
---|
4672 | echo $ECHO_N "checking for locale_charset in -liconv... $ECHO_C" >&6 |
---|
4673 | if test "${ac_cv_lib_iconv_locale_charset+set}" = set; then |
---|
4674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4675 | else |
---|
4676 | ac_check_lib_save_LIBS=$LIBS |
---|
4677 | LIBS="-liconv $LIBS" |
---|
4678 | cat >conftest.$ac_ext <<_ACEOF |
---|
4679 | #line $LINENO "configure" |
---|
4680 | /* confdefs.h. */ |
---|
4681 | _ACEOF |
---|
4682 | cat confdefs.h >>conftest.$ac_ext |
---|
4683 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4684 | /* end confdefs.h. */ |
---|
4685 | |
---|
4686 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4687 | #ifdef __cplusplus |
---|
4688 | extern "C" |
---|
4689 | #endif |
---|
4690 | /* We use char because int might match the return type of a gcc2 |
---|
4691 | builtin and then its argument prototype would still apply. */ |
---|
4692 | char locale_charset (); |
---|
4693 | int |
---|
4694 | main () |
---|
4695 | { |
---|
4696 | locale_charset (); |
---|
4697 | ; |
---|
4698 | return 0; |
---|
4699 | } |
---|
4700 | _ACEOF |
---|
4701 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4703 | (eval $ac_link) 2>&5 |
---|
4704 | ac_status=$? |
---|
4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4706 | (exit $ac_status); } && |
---|
4707 | { ac_try='test -s conftest$ac_exeext' |
---|
4708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4709 | (eval $ac_try) 2>&5 |
---|
4710 | ac_status=$? |
---|
4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4712 | (exit $ac_status); }; }; then |
---|
4713 | ac_cv_lib_iconv_locale_charset=yes |
---|
4714 | else |
---|
4715 | echo "$as_me: failed program was:" >&5 |
---|
4716 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4717 | |
---|
4718 | ac_cv_lib_iconv_locale_charset=no |
---|
4719 | fi |
---|
4720 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4721 | LIBS=$ac_check_lib_save_LIBS |
---|
4722 | fi |
---|
4723 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_locale_charset" >&5 |
---|
4724 | echo "${ECHO_T}$ac_cv_lib_iconv_locale_charset" >&6 |
---|
4725 | if test $ac_cv_lib_iconv_locale_charset = yes; then |
---|
4726 | : |
---|
4727 | else |
---|
4728 | |
---|
4729 | echo "$as_me:$LINENO: checking for locale_charset in -lcharset" >&5 |
---|
4730 | echo $ECHO_N "checking for locale_charset in -lcharset... $ECHO_C" >&6 |
---|
4731 | if test "${ac_cv_lib_charset_locale_charset+set}" = set; then |
---|
4732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4733 | else |
---|
4734 | ac_check_lib_save_LIBS=$LIBS |
---|
4735 | LIBS="-lcharset $LIBS" |
---|
4736 | cat >conftest.$ac_ext <<_ACEOF |
---|
4737 | #line $LINENO "configure" |
---|
4738 | /* confdefs.h. */ |
---|
4739 | _ACEOF |
---|
4740 | cat confdefs.h >>conftest.$ac_ext |
---|
4741 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4742 | /* end confdefs.h. */ |
---|
4743 | |
---|
4744 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4745 | #ifdef __cplusplus |
---|
4746 | extern "C" |
---|
4747 | #endif |
---|
4748 | /* We use char because int might match the return type of a gcc2 |
---|
4749 | builtin and then its argument prototype would still apply. */ |
---|
4750 | char locale_charset (); |
---|
4751 | int |
---|
4752 | main () |
---|
4753 | { |
---|
4754 | locale_charset (); |
---|
4755 | ; |
---|
4756 | return 0; |
---|
4757 | } |
---|
4758 | _ACEOF |
---|
4759 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4761 | (eval $ac_link) 2>&5 |
---|
4762 | ac_status=$? |
---|
4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4764 | (exit $ac_status); } && |
---|
4765 | { ac_try='test -s conftest$ac_exeext' |
---|
4766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4767 | (eval $ac_try) 2>&5 |
---|
4768 | ac_status=$? |
---|
4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4770 | (exit $ac_status); }; }; then |
---|
4771 | ac_cv_lib_charset_locale_charset=yes |
---|
4772 | else |
---|
4773 | echo "$as_me: failed program was:" >&5 |
---|
4774 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4775 | |
---|
4776 | ac_cv_lib_charset_locale_charset=no |
---|
4777 | fi |
---|
4778 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4779 | LIBS=$ac_check_lib_save_LIBS |
---|
4780 | fi |
---|
4781 | echo "$as_me:$LINENO: result: $ac_cv_lib_charset_locale_charset" >&5 |
---|
4782 | echo "${ECHO_T}$ac_cv_lib_charset_locale_charset" >&6 |
---|
4783 | if test $ac_cv_lib_charset_locale_charset = yes; then |
---|
4784 | cat >>confdefs.h <<_ACEOF |
---|
4785 | #define HAVE_LIBCHARSET 1 |
---|
4786 | _ACEOF |
---|
4787 | |
---|
4788 | LIBS="-lcharset $LIBS" |
---|
4789 | |
---|
4790 | fi |
---|
4791 | |
---|
4792 | fi |
---|
4793 | |
---|
4794 | |
---|
4795 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
4796 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
4797 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
4798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4799 | else |
---|
4800 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
4801 | then ac_cv_prog_egrep='grep -E' |
---|
4802 | else ac_cv_prog_egrep='egrep' |
---|
4803 | fi |
---|
4804 | fi |
---|
4805 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
4806 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
4807 | EGREP=$ac_cv_prog_egrep |
---|
4808 | |
---|
4809 | |
---|
4810 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
4811 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
4812 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
4813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4814 | else |
---|
4815 | cat >conftest.$ac_ext <<_ACEOF |
---|
4816 | #line $LINENO "configure" |
---|
4817 | /* confdefs.h. */ |
---|
4818 | _ACEOF |
---|
4819 | cat confdefs.h >>conftest.$ac_ext |
---|
4820 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4821 | /* end confdefs.h. */ |
---|
4822 | #include <stdlib.h> |
---|
4823 | #include <stdarg.h> |
---|
4824 | #include <string.h> |
---|
4825 | #include <float.h> |
---|
4826 | |
---|
4827 | int |
---|
4828 | main () |
---|
4829 | { |
---|
4830 | |
---|
4831 | ; |
---|
4832 | return 0; |
---|
4833 | } |
---|
4834 | _ACEOF |
---|
4835 | rm -f conftest.$ac_objext |
---|
4836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4837 | (eval $ac_compile) 2>&5 |
---|
4838 | ac_status=$? |
---|
4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4840 | (exit $ac_status); } && |
---|
4841 | { ac_try='test -s conftest.$ac_objext' |
---|
4842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4843 | (eval $ac_try) 2>&5 |
---|
4844 | ac_status=$? |
---|
4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4846 | (exit $ac_status); }; }; then |
---|
4847 | ac_cv_header_stdc=yes |
---|
4848 | else |
---|
4849 | echo "$as_me: failed program was:" >&5 |
---|
4850 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4851 | |
---|
4852 | ac_cv_header_stdc=no |
---|
4853 | fi |
---|
4854 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4855 | |
---|
4856 | if test $ac_cv_header_stdc = yes; then |
---|
4857 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4858 | cat >conftest.$ac_ext <<_ACEOF |
---|
4859 | #line $LINENO "configure" |
---|
4860 | /* confdefs.h. */ |
---|
4861 | _ACEOF |
---|
4862 | cat confdefs.h >>conftest.$ac_ext |
---|
4863 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4864 | /* end confdefs.h. */ |
---|
4865 | #include <string.h> |
---|
4866 | |
---|
4867 | _ACEOF |
---|
4868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4869 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
4870 | : |
---|
4871 | else |
---|
4872 | ac_cv_header_stdc=no |
---|
4873 | fi |
---|
4874 | rm -f conftest* |
---|
4875 | |
---|
4876 | fi |
---|
4877 | |
---|
4878 | if test $ac_cv_header_stdc = yes; then |
---|
4879 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4880 | cat >conftest.$ac_ext <<_ACEOF |
---|
4881 | #line $LINENO "configure" |
---|
4882 | /* confdefs.h. */ |
---|
4883 | _ACEOF |
---|
4884 | cat confdefs.h >>conftest.$ac_ext |
---|
4885 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4886 | /* end confdefs.h. */ |
---|
4887 | #include <stdlib.h> |
---|
4888 | |
---|
4889 | _ACEOF |
---|
4890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4891 | $EGREP "free" >/dev/null 2>&1; then |
---|
4892 | : |
---|
4893 | else |
---|
4894 | ac_cv_header_stdc=no |
---|
4895 | fi |
---|
4896 | rm -f conftest* |
---|
4897 | |
---|
4898 | fi |
---|
4899 | |
---|
4900 | if test $ac_cv_header_stdc = yes; then |
---|
4901 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4902 | if test "$cross_compiling" = yes; then |
---|
4903 | : |
---|
4904 | else |
---|
4905 | cat >conftest.$ac_ext <<_ACEOF |
---|
4906 | #line $LINENO "configure" |
---|
4907 | /* confdefs.h. */ |
---|
4908 | _ACEOF |
---|
4909 | cat confdefs.h >>conftest.$ac_ext |
---|
4910 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4911 | /* end confdefs.h. */ |
---|
4912 | #include <ctype.h> |
---|
4913 | #if ((' ' & 0x0FF) == 0x020) |
---|
4914 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4915 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4916 | #else |
---|
4917 | # define ISLOWER(c) \ |
---|
4918 | (('a' <= (c) && (c) <= 'i') \ |
---|
4919 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4920 | || ('s' <= (c) && (c) <= 'z')) |
---|
4921 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4922 | #endif |
---|
4923 | |
---|
4924 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4925 | int |
---|
4926 | main () |
---|
4927 | { |
---|
4928 | int i; |
---|
4929 | for (i = 0; i < 256; i++) |
---|
4930 | if (XOR (islower (i), ISLOWER (i)) |
---|
4931 | || toupper (i) != TOUPPER (i)) |
---|
4932 | exit(2); |
---|
4933 | exit (0); |
---|
4934 | } |
---|
4935 | _ACEOF |
---|
4936 | rm -f conftest$ac_exeext |
---|
4937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4938 | (eval $ac_link) 2>&5 |
---|
4939 | ac_status=$? |
---|
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4943 | (eval $ac_try) 2>&5 |
---|
4944 | ac_status=$? |
---|
4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4946 | (exit $ac_status); }; }; then |
---|
4947 | : |
---|
4948 | else |
---|
4949 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4950 | echo "$as_me: failed program was:" >&5 |
---|
4951 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4952 | |
---|
4953 | ( exit $ac_status ) |
---|
4954 | ac_cv_header_stdc=no |
---|
4955 | fi |
---|
4956 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4957 | fi |
---|
4958 | fi |
---|
4959 | fi |
---|
4960 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
4961 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
4962 | if test $ac_cv_header_stdc = yes; then |
---|
4963 | |
---|
4964 | cat >>confdefs.h <<\_ACEOF |
---|
4965 | #define STDC_HEADERS 1 |
---|
4966 | _ACEOF |
---|
4967 | |
---|
4968 | fi |
---|
4969 | |
---|
4970 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
---|
4971 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
---|
4972 | if test "${ac_cv_header_time+set}" = set; then |
---|
4973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4974 | else |
---|
4975 | cat >conftest.$ac_ext <<_ACEOF |
---|
4976 | #line $LINENO "configure" |
---|
4977 | /* confdefs.h. */ |
---|
4978 | _ACEOF |
---|
4979 | cat confdefs.h >>conftest.$ac_ext |
---|
4980 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4981 | /* end confdefs.h. */ |
---|
4982 | #include <sys/types.h> |
---|
4983 | #include <sys/time.h> |
---|
4984 | #include <time.h> |
---|
4985 | |
---|
4986 | int |
---|
4987 | main () |
---|
4988 | { |
---|
4989 | if ((struct tm *) 0) |
---|
4990 | return 0; |
---|
4991 | ; |
---|
4992 | return 0; |
---|
4993 | } |
---|
4994 | _ACEOF |
---|
4995 | rm -f conftest.$ac_objext |
---|
4996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4997 | (eval $ac_compile) 2>&5 |
---|
4998 | ac_status=$? |
---|
4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5000 | (exit $ac_status); } && |
---|
5001 | { ac_try='test -s conftest.$ac_objext' |
---|
5002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5003 | (eval $ac_try) 2>&5 |
---|
5004 | ac_status=$? |
---|
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5006 | (exit $ac_status); }; }; then |
---|
5007 | ac_cv_header_time=yes |
---|
5008 | else |
---|
5009 | echo "$as_me: failed program was:" >&5 |
---|
5010 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5011 | |
---|
5012 | ac_cv_header_time=no |
---|
5013 | fi |
---|
5014 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5015 | fi |
---|
5016 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
---|
5017 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
---|
5018 | if test $ac_cv_header_time = yes; then |
---|
5019 | |
---|
5020 | cat >>confdefs.h <<\_ACEOF |
---|
5021 | #define TIME_WITH_SYS_TIME 1 |
---|
5022 | _ACEOF |
---|
5023 | |
---|
5024 | fi |
---|
5025 | |
---|
5026 | |
---|
5027 | |
---|
5028 | |
---|
5029 | |
---|
5030 | |
---|
5031 | ac_header_dirent=no |
---|
5032 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
---|
5033 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
---|
5034 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
---|
5035 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
---|
5036 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5038 | else |
---|
5039 | cat >conftest.$ac_ext <<_ACEOF |
---|
5040 | #line $LINENO "configure" |
---|
5041 | /* confdefs.h. */ |
---|
5042 | _ACEOF |
---|
5043 | cat confdefs.h >>conftest.$ac_ext |
---|
5044 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5045 | /* end confdefs.h. */ |
---|
5046 | #include <sys/types.h> |
---|
5047 | #include <$ac_hdr> |
---|
5048 | |
---|
5049 | int |
---|
5050 | main () |
---|
5051 | { |
---|
5052 | if ((DIR *) 0) |
---|
5053 | return 0; |
---|
5054 | ; |
---|
5055 | return 0; |
---|
5056 | } |
---|
5057 | _ACEOF |
---|
5058 | rm -f conftest.$ac_objext |
---|
5059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5060 | (eval $ac_compile) 2>&5 |
---|
5061 | ac_status=$? |
---|
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5063 | (exit $ac_status); } && |
---|
5064 | { ac_try='test -s conftest.$ac_objext' |
---|
5065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5066 | (eval $ac_try) 2>&5 |
---|
5067 | ac_status=$? |
---|
5068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5069 | (exit $ac_status); }; }; then |
---|
5070 | eval "$as_ac_Header=yes" |
---|
5071 | else |
---|
5072 | echo "$as_me: failed program was:" >&5 |
---|
5073 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5074 | |
---|
5075 | eval "$as_ac_Header=no" |
---|
5076 | fi |
---|
5077 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5078 | fi |
---|
5079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5081 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5082 | cat >>confdefs.h <<_ACEOF |
---|
5083 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
---|
5084 | _ACEOF |
---|
5085 | |
---|
5086 | ac_header_dirent=$ac_hdr; break |
---|
5087 | fi |
---|
5088 | |
---|
5089 | done |
---|
5090 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
5091 | if test $ac_header_dirent = dirent.h; then |
---|
5092 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
5093 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
---|
5094 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5096 | else |
---|
5097 | ac_func_search_save_LIBS=$LIBS |
---|
5098 | ac_cv_search_opendir=no |
---|
5099 | cat >conftest.$ac_ext <<_ACEOF |
---|
5100 | #line $LINENO "configure" |
---|
5101 | /* confdefs.h. */ |
---|
5102 | _ACEOF |
---|
5103 | cat confdefs.h >>conftest.$ac_ext |
---|
5104 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5105 | /* end confdefs.h. */ |
---|
5106 | |
---|
5107 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5108 | #ifdef __cplusplus |
---|
5109 | extern "C" |
---|
5110 | #endif |
---|
5111 | /* We use char because int might match the return type of a gcc2 |
---|
5112 | builtin and then its argument prototype would still apply. */ |
---|
5113 | char opendir (); |
---|
5114 | int |
---|
5115 | main () |
---|
5116 | { |
---|
5117 | opendir (); |
---|
5118 | ; |
---|
5119 | return 0; |
---|
5120 | } |
---|
5121 | _ACEOF |
---|
5122 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5124 | (eval $ac_link) 2>&5 |
---|
5125 | ac_status=$? |
---|
5126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5127 | (exit $ac_status); } && |
---|
5128 | { ac_try='test -s conftest$ac_exeext' |
---|
5129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5130 | (eval $ac_try) 2>&5 |
---|
5131 | ac_status=$? |
---|
5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5133 | (exit $ac_status); }; }; then |
---|
5134 | ac_cv_search_opendir="none required" |
---|
5135 | else |
---|
5136 | echo "$as_me: failed program was:" >&5 |
---|
5137 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5138 | |
---|
5139 | fi |
---|
5140 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5141 | if test "$ac_cv_search_opendir" = no; then |
---|
5142 | for ac_lib in dir; do |
---|
5143 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
5144 | cat >conftest.$ac_ext <<_ACEOF |
---|
5145 | #line $LINENO "configure" |
---|
5146 | /* confdefs.h. */ |
---|
5147 | _ACEOF |
---|
5148 | cat confdefs.h >>conftest.$ac_ext |
---|
5149 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5150 | /* end confdefs.h. */ |
---|
5151 | |
---|
5152 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5153 | #ifdef __cplusplus |
---|
5154 | extern "C" |
---|
5155 | #endif |
---|
5156 | /* We use char because int might match the return type of a gcc2 |
---|
5157 | builtin and then its argument prototype would still apply. */ |
---|
5158 | char opendir (); |
---|
5159 | int |
---|
5160 | main () |
---|
5161 | { |
---|
5162 | opendir (); |
---|
5163 | ; |
---|
5164 | return 0; |
---|
5165 | } |
---|
5166 | _ACEOF |
---|
5167 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5169 | (eval $ac_link) 2>&5 |
---|
5170 | ac_status=$? |
---|
5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5172 | (exit $ac_status); } && |
---|
5173 | { ac_try='test -s conftest$ac_exeext' |
---|
5174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5175 | (eval $ac_try) 2>&5 |
---|
5176 | ac_status=$? |
---|
5177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5178 | (exit $ac_status); }; }; then |
---|
5179 | ac_cv_search_opendir="-l$ac_lib" |
---|
5180 | break |
---|
5181 | else |
---|
5182 | echo "$as_me: failed program was:" >&5 |
---|
5183 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5184 | |
---|
5185 | fi |
---|
5186 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5187 | done |
---|
5188 | fi |
---|
5189 | LIBS=$ac_func_search_save_LIBS |
---|
5190 | fi |
---|
5191 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
5192 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
---|
5193 | if test "$ac_cv_search_opendir" != no; then |
---|
5194 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
---|
5195 | |
---|
5196 | fi |
---|
5197 | |
---|
5198 | else |
---|
5199 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
5200 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
---|
5201 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5203 | else |
---|
5204 | ac_func_search_save_LIBS=$LIBS |
---|
5205 | ac_cv_search_opendir=no |
---|
5206 | cat >conftest.$ac_ext <<_ACEOF |
---|
5207 | #line $LINENO "configure" |
---|
5208 | /* confdefs.h. */ |
---|
5209 | _ACEOF |
---|
5210 | cat confdefs.h >>conftest.$ac_ext |
---|
5211 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5212 | /* end confdefs.h. */ |
---|
5213 | |
---|
5214 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5215 | #ifdef __cplusplus |
---|
5216 | extern "C" |
---|
5217 | #endif |
---|
5218 | /* We use char because int might match the return type of a gcc2 |
---|
5219 | builtin and then its argument prototype would still apply. */ |
---|
5220 | char opendir (); |
---|
5221 | int |
---|
5222 | main () |
---|
5223 | { |
---|
5224 | opendir (); |
---|
5225 | ; |
---|
5226 | return 0; |
---|
5227 | } |
---|
5228 | _ACEOF |
---|
5229 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5231 | (eval $ac_link) 2>&5 |
---|
5232 | ac_status=$? |
---|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5234 | (exit $ac_status); } && |
---|
5235 | { ac_try='test -s conftest$ac_exeext' |
---|
5236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5237 | (eval $ac_try) 2>&5 |
---|
5238 | ac_status=$? |
---|
5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5240 | (exit $ac_status); }; }; then |
---|
5241 | ac_cv_search_opendir="none required" |
---|
5242 | else |
---|
5243 | echo "$as_me: failed program was:" >&5 |
---|
5244 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5245 | |
---|
5246 | fi |
---|
5247 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5248 | if test "$ac_cv_search_opendir" = no; then |
---|
5249 | for ac_lib in x; do |
---|
5250 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
5251 | cat >conftest.$ac_ext <<_ACEOF |
---|
5252 | #line $LINENO "configure" |
---|
5253 | /* confdefs.h. */ |
---|
5254 | _ACEOF |
---|
5255 | cat confdefs.h >>conftest.$ac_ext |
---|
5256 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5257 | /* end confdefs.h. */ |
---|
5258 | |
---|
5259 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5260 | #ifdef __cplusplus |
---|
5261 | extern "C" |
---|
5262 | #endif |
---|
5263 | /* We use char because int might match the return type of a gcc2 |
---|
5264 | builtin and then its argument prototype would still apply. */ |
---|
5265 | char opendir (); |
---|
5266 | int |
---|
5267 | main () |
---|
5268 | { |
---|
5269 | opendir (); |
---|
5270 | ; |
---|
5271 | return 0; |
---|
5272 | } |
---|
5273 | _ACEOF |
---|
5274 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5276 | (eval $ac_link) 2>&5 |
---|
5277 | ac_status=$? |
---|
5278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5279 | (exit $ac_status); } && |
---|
5280 | { ac_try='test -s conftest$ac_exeext' |
---|
5281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5282 | (eval $ac_try) 2>&5 |
---|
5283 | ac_status=$? |
---|
5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5285 | (exit $ac_status); }; }; then |
---|
5286 | ac_cv_search_opendir="-l$ac_lib" |
---|
5287 | break |
---|
5288 | else |
---|
5289 | echo "$as_me: failed program was:" >&5 |
---|
5290 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5291 | |
---|
5292 | fi |
---|
5293 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5294 | done |
---|
5295 | fi |
---|
5296 | LIBS=$ac_func_search_save_LIBS |
---|
5297 | fi |
---|
5298 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
5299 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
---|
5300 | if test "$ac_cv_search_opendir" != no; then |
---|
5301 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
---|
5302 | |
---|
5303 | fi |
---|
5304 | |
---|
5305 | fi |
---|
5306 | |
---|
5307 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
---|
5308 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
---|
5309 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
---|
5310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5311 | else |
---|
5312 | cat >conftest.$ac_ext <<_ACEOF |
---|
5313 | #line $LINENO "configure" |
---|
5314 | /* confdefs.h. */ |
---|
5315 | _ACEOF |
---|
5316 | cat confdefs.h >>conftest.$ac_ext |
---|
5317 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5318 | /* end confdefs.h. */ |
---|
5319 | #include <sys/types.h> |
---|
5320 | #include <sys/wait.h> |
---|
5321 | #ifndef WEXITSTATUS |
---|
5322 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
---|
5323 | #endif |
---|
5324 | #ifndef WIFEXITED |
---|
5325 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
---|
5326 | #endif |
---|
5327 | |
---|
5328 | int |
---|
5329 | main () |
---|
5330 | { |
---|
5331 | int s; |
---|
5332 | wait (&s); |
---|
5333 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
---|
5334 | ; |
---|
5335 | return 0; |
---|
5336 | } |
---|
5337 | _ACEOF |
---|
5338 | rm -f conftest.$ac_objext |
---|
5339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5340 | (eval $ac_compile) 2>&5 |
---|
5341 | ac_status=$? |
---|
5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5343 | (exit $ac_status); } && |
---|
5344 | { ac_try='test -s conftest.$ac_objext' |
---|
5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5346 | (eval $ac_try) 2>&5 |
---|
5347 | ac_status=$? |
---|
5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5349 | (exit $ac_status); }; }; then |
---|
5350 | ac_cv_header_sys_wait_h=yes |
---|
5351 | else |
---|
5352 | echo "$as_me: failed program was:" >&5 |
---|
5353 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5354 | |
---|
5355 | ac_cv_header_sys_wait_h=no |
---|
5356 | fi |
---|
5357 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5358 | fi |
---|
5359 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
---|
5360 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
---|
5361 | if test $ac_cv_header_sys_wait_h = yes; then |
---|
5362 | |
---|
5363 | cat >>confdefs.h <<\_ACEOF |
---|
5364 | #define HAVE_SYS_WAIT_H 1 |
---|
5365 | _ACEOF |
---|
5366 | |
---|
5367 | fi |
---|
5368 | |
---|
5369 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5370 | |
---|
5371 | |
---|
5372 | |
---|
5373 | |
---|
5374 | |
---|
5375 | |
---|
5376 | |
---|
5377 | |
---|
5378 | |
---|
5379 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5380 | inttypes.h stdint.h unistd.h |
---|
5381 | do |
---|
5382 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5383 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5387 | else |
---|
5388 | cat >conftest.$ac_ext <<_ACEOF |
---|
5389 | #line $LINENO "configure" |
---|
5390 | /* confdefs.h. */ |
---|
5391 | _ACEOF |
---|
5392 | cat confdefs.h >>conftest.$ac_ext |
---|
5393 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5394 | /* end confdefs.h. */ |
---|
5395 | $ac_includes_default |
---|
5396 | |
---|
5397 | #include <$ac_header> |
---|
5398 | _ACEOF |
---|
5399 | rm -f conftest.$ac_objext |
---|
5400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5401 | (eval $ac_compile) 2>&5 |
---|
5402 | ac_status=$? |
---|
5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5404 | (exit $ac_status); } && |
---|
5405 | { ac_try='test -s conftest.$ac_objext' |
---|
5406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5407 | (eval $ac_try) 2>&5 |
---|
5408 | ac_status=$? |
---|
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5410 | (exit $ac_status); }; }; then |
---|
5411 | eval "$as_ac_Header=yes" |
---|
5412 | else |
---|
5413 | echo "$as_me: failed program was:" >&5 |
---|
5414 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5415 | |
---|
5416 | eval "$as_ac_Header=no" |
---|
5417 | fi |
---|
5418 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5419 | fi |
---|
5420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5421 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5422 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5423 | cat >>confdefs.h <<_ACEOF |
---|
5424 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5425 | _ACEOF |
---|
5426 | |
---|
5427 | fi |
---|
5428 | |
---|
5429 | done |
---|
5430 | |
---|
5431 | |
---|
5432 | |
---|
5433 | |
---|
5434 | |
---|
5435 | |
---|
5436 | |
---|
5437 | |
---|
5438 | |
---|
5439 | |
---|
5440 | |
---|
5441 | |
---|
5442 | |
---|
5443 | |
---|
5444 | |
---|
5445 | |
---|
5446 | |
---|
5447 | |
---|
5448 | |
---|
5449 | |
---|
5450 | |
---|
5451 | |
---|
5452 | |
---|
5453 | |
---|
5454 | |
---|
5455 | |
---|
5456 | |
---|
5457 | |
---|
5458 | |
---|
5459 | |
---|
5460 | |
---|
5461 | |
---|
5462 | |
---|
5463 | |
---|
5464 | |
---|
5465 | |
---|
5466 | |
---|
5467 | |
---|
5468 | |
---|
5469 | |
---|
5470 | |
---|
5471 | for ac_header in \ |
---|
5472 | gpgme.h \ |
---|
5473 | arpa/inet.h \ |
---|
5474 | ctype.h \ |
---|
5475 | errno.h \ |
---|
5476 | fcntl.h \ |
---|
5477 | libgen.h \ |
---|
5478 | math.h \ |
---|
5479 | netdb.h \ |
---|
5480 | netinet/in.h \ |
---|
5481 | nameser.h \ |
---|
5482 | resolv.h \ |
---|
5483 | openssl/ssl.h \ |
---|
5484 | pwd.h \ |
---|
5485 | regex.h \ |
---|
5486 | regexp.h \ |
---|
5487 | setjmp.h \ |
---|
5488 | signal.h \ |
---|
5489 | stdarg.h \ |
---|
5490 | stddef.h \ |
---|
5491 | stdio.h \ |
---|
5492 | stdlib.h \ |
---|
5493 | string.h \ |
---|
5494 | strings.h \ |
---|
5495 | syslog.h \ |
---|
5496 | sys/param.h \ |
---|
5497 | sys/socket.h \ |
---|
5498 | sys/stat.h \ |
---|
5499 | sys/time.h \ |
---|
5500 | sys/types.h \ |
---|
5501 | sys/un.h \ |
---|
5502 | termio.h \ |
---|
5503 | termios.h \ |
---|
5504 | time.h \ |
---|
5505 | unistd.h \ |
---|
5506 | varargs.h \ |
---|
5507 | wait.h \ |
---|
5508 | windows.h \ |
---|
5509 | iconv.h \ |
---|
5510 | libcharset.h \ |
---|
5511 | |
---|
5512 | do |
---|
5513 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5514 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5515 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5517 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5519 | fi |
---|
5520 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5521 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5522 | else |
---|
5523 | # Is the header compilable? |
---|
5524 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5525 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5526 | cat >conftest.$ac_ext <<_ACEOF |
---|
5527 | #line $LINENO "configure" |
---|
5528 | /* confdefs.h. */ |
---|
5529 | _ACEOF |
---|
5530 | cat confdefs.h >>conftest.$ac_ext |
---|
5531 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5532 | /* end confdefs.h. */ |
---|
5533 | $ac_includes_default |
---|
5534 | #include <$ac_header> |
---|
5535 | _ACEOF |
---|
5536 | rm -f conftest.$ac_objext |
---|
5537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5538 | (eval $ac_compile) 2>&5 |
---|
5539 | ac_status=$? |
---|
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5541 | (exit $ac_status); } && |
---|
5542 | { ac_try='test -s conftest.$ac_objext' |
---|
5543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5544 | (eval $ac_try) 2>&5 |
---|
5545 | ac_status=$? |
---|
5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5547 | (exit $ac_status); }; }; then |
---|
5548 | ac_header_compiler=yes |
---|
5549 | else |
---|
5550 | echo "$as_me: failed program was:" >&5 |
---|
5551 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5552 | |
---|
5553 | ac_header_compiler=no |
---|
5554 | fi |
---|
5555 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5556 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5557 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5558 | |
---|
5559 | # Is the header present? |
---|
5560 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5561 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5562 | cat >conftest.$ac_ext <<_ACEOF |
---|
5563 | #line $LINENO "configure" |
---|
5564 | /* confdefs.h. */ |
---|
5565 | _ACEOF |
---|
5566 | cat confdefs.h >>conftest.$ac_ext |
---|
5567 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5568 | /* end confdefs.h. */ |
---|
5569 | #include <$ac_header> |
---|
5570 | _ACEOF |
---|
5571 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5572 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5573 | ac_status=$? |
---|
5574 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5575 | rm -f conftest.er1 |
---|
5576 | cat conftest.err >&5 |
---|
5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5578 | (exit $ac_status); } >/dev/null; then |
---|
5579 | if test -s conftest.err; then |
---|
5580 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5581 | else |
---|
5582 | ac_cpp_err= |
---|
5583 | fi |
---|
5584 | else |
---|
5585 | ac_cpp_err=yes |
---|
5586 | fi |
---|
5587 | if test -z "$ac_cpp_err"; then |
---|
5588 | ac_header_preproc=yes |
---|
5589 | else |
---|
5590 | echo "$as_me: failed program was:" >&5 |
---|
5591 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5592 | |
---|
5593 | ac_header_preproc=no |
---|
5594 | fi |
---|
5595 | rm -f conftest.err conftest.$ac_ext |
---|
5596 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5597 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5598 | |
---|
5599 | # So? What about this header? |
---|
5600 | case $ac_header_compiler:$ac_header_preproc in |
---|
5601 | yes:no ) |
---|
5602 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5603 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5605 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5606 | ( |
---|
5607 | cat <<\_ASBOX |
---|
5608 | ## ------------------------------------ ## |
---|
5609 | ## Report this to bug-autoconf@gnu.org. ## |
---|
5610 | ## ------------------------------------ ## |
---|
5611 | _ASBOX |
---|
5612 | ) | |
---|
5613 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5614 | ;; |
---|
5615 | no:yes ) |
---|
5616 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5617 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5618 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5619 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5620 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5621 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5622 | ( |
---|
5623 | cat <<\_ASBOX |
---|
5624 | ## ------------------------------------ ## |
---|
5625 | ## Report this to bug-autoconf@gnu.org. ## |
---|
5626 | ## ------------------------------------ ## |
---|
5627 | _ASBOX |
---|
5628 | ) | |
---|
5629 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5630 | ;; |
---|
5631 | esac |
---|
5632 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5633 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5634 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5636 | else |
---|
5637 | eval "$as_ac_Header=$ac_header_preproc" |
---|
5638 | fi |
---|
5639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5640 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5641 | |
---|
5642 | fi |
---|
5643 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5644 | cat >>confdefs.h <<_ACEOF |
---|
5645 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5646 | _ACEOF |
---|
5647 | |
---|
5648 | fi |
---|
5649 | |
---|
5650 | done |
---|
5651 | |
---|
5652 | |
---|
5653 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
5654 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
5655 | if test "${ac_cv_c_const+set}" = set; then |
---|
5656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5657 | else |
---|
5658 | cat >conftest.$ac_ext <<_ACEOF |
---|
5659 | #line $LINENO "configure" |
---|
5660 | /* confdefs.h. */ |
---|
5661 | _ACEOF |
---|
5662 | cat confdefs.h >>conftest.$ac_ext |
---|
5663 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5664 | /* end confdefs.h. */ |
---|
5665 | |
---|
5666 | int |
---|
5667 | main () |
---|
5668 | { |
---|
5669 | /* FIXME: Include the comments suggested by Paul. */ |
---|
5670 | #ifndef __cplusplus |
---|
5671 | /* Ultrix mips cc rejects this. */ |
---|
5672 | typedef int charset[2]; |
---|
5673 | const charset x; |
---|
5674 | /* SunOS 4.1.1 cc rejects this. */ |
---|
5675 | char const *const *ccp; |
---|
5676 | char **p; |
---|
5677 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
5678 | struct point {int x, y;}; |
---|
5679 | static struct point const zero = {0,0}; |
---|
5680 | /* AIX XL C 1.02.0.0 rejects this. |
---|
5681 | It does not let you subtract one const X* pointer from another in |
---|
5682 | an arm of an if-expression whose if-part is not a constant |
---|
5683 | expression */ |
---|
5684 | const char *g = "string"; |
---|
5685 | ccp = &g + (g ? g-g : 0); |
---|
5686 | /* HPUX 7.0 cc rejects these. */ |
---|
5687 | ++ccp; |
---|
5688 | p = (char**) ccp; |
---|
5689 | ccp = (char const *const *) p; |
---|
5690 | { /* SCO 3.2v4 cc rejects this. */ |
---|
5691 | char *t; |
---|
5692 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
5693 | |
---|
5694 | *t++ = 0; |
---|
5695 | } |
---|
5696 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
5697 | int x[] = {25, 17}; |
---|
5698 | const int *foo = &x[0]; |
---|
5699 | ++foo; |
---|
5700 | } |
---|
5701 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
5702 | typedef const int *iptr; |
---|
5703 | iptr p = 0; |
---|
5704 | ++p; |
---|
5705 | } |
---|
5706 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
5707 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
5708 | struct s { int j; const int *ap[3]; }; |
---|
5709 | struct s *b; b->j = 5; |
---|
5710 | } |
---|
5711 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
5712 | const int foo = 10; |
---|
5713 | } |
---|
5714 | #endif |
---|
5715 | |
---|
5716 | ; |
---|
5717 | return 0; |
---|
5718 | } |
---|
5719 | _ACEOF |
---|
5720 | rm -f conftest.$ac_objext |
---|
5721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5722 | (eval $ac_compile) 2>&5 |
---|
5723 | ac_status=$? |
---|
5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5725 | (exit $ac_status); } && |
---|
5726 | { ac_try='test -s conftest.$ac_objext' |
---|
5727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5728 | (eval $ac_try) 2>&5 |
---|
5729 | ac_status=$? |
---|
5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5731 | (exit $ac_status); }; }; then |
---|
5732 | ac_cv_c_const=yes |
---|
5733 | else |
---|
5734 | echo "$as_me: failed program was:" >&5 |
---|
5735 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5736 | |
---|
5737 | ac_cv_c_const=no |
---|
5738 | fi |
---|
5739 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5740 | fi |
---|
5741 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
5742 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
5743 | if test $ac_cv_c_const = no; then |
---|
5744 | |
---|
5745 | cat >>confdefs.h <<\_ACEOF |
---|
5746 | #define const |
---|
5747 | _ACEOF |
---|
5748 | |
---|
5749 | fi |
---|
5750 | |
---|
5751 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
5752 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
---|
5753 | if test "${ac_cv_struct_tm+set}" = set; then |
---|
5754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5755 | else |
---|
5756 | cat >conftest.$ac_ext <<_ACEOF |
---|
5757 | #line $LINENO "configure" |
---|
5758 | /* confdefs.h. */ |
---|
5759 | _ACEOF |
---|
5760 | cat confdefs.h >>conftest.$ac_ext |
---|
5761 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5762 | /* end confdefs.h. */ |
---|
5763 | #include <sys/types.h> |
---|
5764 | #include <time.h> |
---|
5765 | |
---|
5766 | int |
---|
5767 | main () |
---|
5768 | { |
---|
5769 | struct tm *tp; tp->tm_sec; |
---|
5770 | ; |
---|
5771 | return 0; |
---|
5772 | } |
---|
5773 | _ACEOF |
---|
5774 | rm -f conftest.$ac_objext |
---|
5775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5776 | (eval $ac_compile) 2>&5 |
---|
5777 | ac_status=$? |
---|
5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5779 | (exit $ac_status); } && |
---|
5780 | { ac_try='test -s conftest.$ac_objext' |
---|
5781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5782 | (eval $ac_try) 2>&5 |
---|
5783 | ac_status=$? |
---|
5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5785 | (exit $ac_status); }; }; then |
---|
5786 | ac_cv_struct_tm=time.h |
---|
5787 | else |
---|
5788 | echo "$as_me: failed program was:" >&5 |
---|
5789 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5790 | |
---|
5791 | ac_cv_struct_tm=sys/time.h |
---|
5792 | fi |
---|
5793 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5794 | fi |
---|
5795 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
---|
5796 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
---|
5797 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
5798 | |
---|
5799 | cat >>confdefs.h <<\_ACEOF |
---|
5800 | #define TM_IN_SYS_TIME 1 |
---|
5801 | _ACEOF |
---|
5802 | |
---|
5803 | fi |
---|
5804 | |
---|
5805 | echo "$as_me:$LINENO: checking for size_t" >&5 |
---|
5806 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
---|
5807 | if test "${ac_cv_type_size_t+set}" = set; then |
---|
5808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5809 | else |
---|
5810 | cat >conftest.$ac_ext <<_ACEOF |
---|
5811 | #line $LINENO "configure" |
---|
5812 | /* confdefs.h. */ |
---|
5813 | _ACEOF |
---|
5814 | cat confdefs.h >>conftest.$ac_ext |
---|
5815 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5816 | /* end confdefs.h. */ |
---|
5817 | $ac_includes_default |
---|
5818 | int |
---|
5819 | main () |
---|
5820 | { |
---|
5821 | if ((size_t *) 0) |
---|
5822 | return 0; |
---|
5823 | if (sizeof (size_t)) |
---|
5824 | return 0; |
---|
5825 | ; |
---|
5826 | return 0; |
---|
5827 | } |
---|
5828 | _ACEOF |
---|
5829 | rm -f conftest.$ac_objext |
---|
5830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5831 | (eval $ac_compile) 2>&5 |
---|
5832 | ac_status=$? |
---|
5833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5834 | (exit $ac_status); } && |
---|
5835 | { ac_try='test -s conftest.$ac_objext' |
---|
5836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5837 | (eval $ac_try) 2>&5 |
---|
5838 | ac_status=$? |
---|
5839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5840 | (exit $ac_status); }; }; then |
---|
5841 | ac_cv_type_size_t=yes |
---|
5842 | else |
---|
5843 | echo "$as_me: failed program was:" >&5 |
---|
5844 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5845 | |
---|
5846 | ac_cv_type_size_t=no |
---|
5847 | fi |
---|
5848 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5849 | fi |
---|
5850 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
---|
5851 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
---|
5852 | if test $ac_cv_type_size_t = yes; then |
---|
5853 | : |
---|
5854 | else |
---|
5855 | |
---|
5856 | cat >>confdefs.h <<_ACEOF |
---|
5857 | #define size_t unsigned |
---|
5858 | _ACEOF |
---|
5859 | |
---|
5860 | fi |
---|
5861 | |
---|
5862 | |
---|
5863 | cat >>confdefs.h <<_ACEOF |
---|
5864 | #define MACHINE_TYPE "$host" |
---|
5865 | _ACEOF |
---|
5866 | |
---|
5867 | |
---|
5868 | echo "$as_me:$LINENO: checking for error_at_line" >&5 |
---|
5869 | echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6 |
---|
5870 | if test "${ac_cv_lib_error_at_line+set}" = set; then |
---|
5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5872 | else |
---|
5873 | cat >conftest.$ac_ext <<_ACEOF |
---|
5874 | #line $LINENO "configure" |
---|
5875 | /* confdefs.h. */ |
---|
5876 | _ACEOF |
---|
5877 | cat confdefs.h >>conftest.$ac_ext |
---|
5878 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5879 | /* end confdefs.h. */ |
---|
5880 | |
---|
5881 | int |
---|
5882 | main () |
---|
5883 | { |
---|
5884 | error_at_line (0, 0, "", 0, ""); |
---|
5885 | ; |
---|
5886 | return 0; |
---|
5887 | } |
---|
5888 | _ACEOF |
---|
5889 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5891 | (eval $ac_link) 2>&5 |
---|
5892 | ac_status=$? |
---|
5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5894 | (exit $ac_status); } && |
---|
5895 | { ac_try='test -s conftest$ac_exeext' |
---|
5896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5897 | (eval $ac_try) 2>&5 |
---|
5898 | ac_status=$? |
---|
5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5900 | (exit $ac_status); }; }; then |
---|
5901 | ac_cv_lib_error_at_line=yes |
---|
5902 | else |
---|
5903 | echo "$as_me: failed program was:" >&5 |
---|
5904 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5905 | |
---|
5906 | ac_cv_lib_error_at_line=no |
---|
5907 | fi |
---|
5908 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5909 | fi |
---|
5910 | echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 |
---|
5911 | echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6 |
---|
5912 | if test $ac_cv_lib_error_at_line = no; then |
---|
5913 | LIBOBJS="$LIBOBJS error.$ac_objext" |
---|
5914 | fi |
---|
5915 | |
---|
5916 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
---|
5917 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
---|
5918 | if test "${ac_cv_type_pid_t+set}" = set; then |
---|
5919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5920 | else |
---|
5921 | cat >conftest.$ac_ext <<_ACEOF |
---|
5922 | #line $LINENO "configure" |
---|
5923 | /* confdefs.h. */ |
---|
5924 | _ACEOF |
---|
5925 | cat confdefs.h >>conftest.$ac_ext |
---|
5926 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5927 | /* end confdefs.h. */ |
---|
5928 | $ac_includes_default |
---|
5929 | int |
---|
5930 | main () |
---|
5931 | { |
---|
5932 | if ((pid_t *) 0) |
---|
5933 | return 0; |
---|
5934 | if (sizeof (pid_t)) |
---|
5935 | return 0; |
---|
5936 | ; |
---|
5937 | return 0; |
---|
5938 | } |
---|
5939 | _ACEOF |
---|
5940 | rm -f conftest.$ac_objext |
---|
5941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5942 | (eval $ac_compile) 2>&5 |
---|
5943 | ac_status=$? |
---|
5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5945 | (exit $ac_status); } && |
---|
5946 | { ac_try='test -s conftest.$ac_objext' |
---|
5947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5948 | (eval $ac_try) 2>&5 |
---|
5949 | ac_status=$? |
---|
5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5951 | (exit $ac_status); }; }; then |
---|
5952 | ac_cv_type_pid_t=yes |
---|
5953 | else |
---|
5954 | echo "$as_me: failed program was:" >&5 |
---|
5955 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5956 | |
---|
5957 | ac_cv_type_pid_t=no |
---|
5958 | fi |
---|
5959 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5960 | fi |
---|
5961 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
---|
5962 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
---|
5963 | if test $ac_cv_type_pid_t = yes; then |
---|
5964 | : |
---|
5965 | else |
---|
5966 | |
---|
5967 | cat >>confdefs.h <<_ACEOF |
---|
5968 | #define pid_t int |
---|
5969 | _ACEOF |
---|
5970 | |
---|
5971 | fi |
---|
5972 | |
---|
5973 | |
---|
5974 | |
---|
5975 | for ac_header in unistd.h vfork.h |
---|
5976 | do |
---|
5977 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5979 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5980 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5981 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5983 | fi |
---|
5984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5985 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5986 | else |
---|
5987 | # Is the header compilable? |
---|
5988 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5989 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5990 | cat >conftest.$ac_ext <<_ACEOF |
---|
5991 | #line $LINENO "configure" |
---|
5992 | /* confdefs.h. */ |
---|
5993 | _ACEOF |
---|
5994 | cat confdefs.h >>conftest.$ac_ext |
---|
5995 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5996 | /* end confdefs.h. */ |
---|
5997 | $ac_includes_default |
---|
5998 | #include <$ac_header> |
---|
5999 | _ACEOF |
---|
6000 | rm -f conftest.$ac_objext |
---|
6001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6002 | (eval $ac_compile) 2>&5 |
---|
6003 | ac_status=$? |
---|
6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6005 | (exit $ac_status); } && |
---|
6006 | { ac_try='test -s conftest.$ac_objext' |
---|
6007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6008 | (eval $ac_try) 2>&5 |
---|
6009 | ac_status=$? |
---|
6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6011 | (exit $ac_status); }; }; then |
---|
6012 | ac_header_compiler=yes |
---|
6013 | else |
---|
6014 | echo "$as_me: failed program was:" >&5 |
---|
6015 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6016 | |
---|
6017 | ac_header_compiler=no |
---|
6018 | fi |
---|
6019 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
6020 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6021 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6022 | |
---|
6023 | # Is the header present? |
---|
6024 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6025 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6026 | cat >conftest.$ac_ext <<_ACEOF |
---|
6027 | #line $LINENO "configure" |
---|
6028 | /* confdefs.h. */ |
---|
6029 | _ACEOF |
---|
6030 | cat confdefs.h >>conftest.$ac_ext |
---|
6031 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6032 | /* end confdefs.h. */ |
---|
6033 | #include <$ac_header> |
---|
6034 | _ACEOF |
---|
6035 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6037 | ac_status=$? |
---|
6038 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6039 | rm -f conftest.er1 |
---|
6040 | cat conftest.err >&5 |
---|
6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6042 | (exit $ac_status); } >/dev/null; then |
---|
6043 | if test -s conftest.err; then |
---|
6044 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6045 | else |
---|
6046 | ac_cpp_err= |
---|
6047 | fi |
---|
6048 | else |
---|
6049 | ac_cpp_err=yes |
---|
6050 | fi |
---|
6051 | if test -z "$ac_cpp_err"; then |
---|
6052 | ac_header_preproc=yes |
---|
6053 | else |
---|
6054 | echo "$as_me: failed program was:" >&5 |
---|
6055 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6056 | |
---|
6057 | ac_header_preproc=no |
---|
6058 | fi |
---|
6059 | rm -f conftest.err conftest.$ac_ext |
---|
6060 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6061 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6062 | |
---|
6063 | # So? What about this header? |
---|
6064 | case $ac_header_compiler:$ac_header_preproc in |
---|
6065 | yes:no ) |
---|
6066 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6067 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6069 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6070 | ( |
---|
6071 | cat <<\_ASBOX |
---|
6072 | ## ------------------------------------ ## |
---|
6073 | ## Report this to bug-autoconf@gnu.org. ## |
---|
6074 | ## ------------------------------------ ## |
---|
6075 | _ASBOX |
---|
6076 | ) | |
---|
6077 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6078 | ;; |
---|
6079 | no:yes ) |
---|
6080 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6081 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6082 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6083 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6084 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6085 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6086 | ( |
---|
6087 | cat <<\_ASBOX |
---|
6088 | ## ------------------------------------ ## |
---|
6089 | ## Report this to bug-autoconf@gnu.org. ## |
---|
6090 | ## ------------------------------------ ## |
---|
6091 | _ASBOX |
---|
6092 | ) | |
---|
6093 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6094 | ;; |
---|
6095 | esac |
---|
6096 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6100 | else |
---|
6101 | eval "$as_ac_Header=$ac_header_preproc" |
---|
6102 | fi |
---|
6103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6104 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6105 | |
---|
6106 | fi |
---|
6107 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6108 | cat >>confdefs.h <<_ACEOF |
---|
6109 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6110 | _ACEOF |
---|
6111 | |
---|
6112 | fi |
---|
6113 | |
---|
6114 | done |
---|
6115 | |
---|
6116 | |
---|
6117 | |
---|
6118 | for ac_func in fork vfork |
---|
6119 | do |
---|
6120 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6121 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
6122 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
6123 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6125 | else |
---|
6126 | cat >conftest.$ac_ext <<_ACEOF |
---|
6127 | #line $LINENO "configure" |
---|
6128 | /* confdefs.h. */ |
---|
6129 | _ACEOF |
---|
6130 | cat confdefs.h >>conftest.$ac_ext |
---|
6131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6132 | /* end confdefs.h. */ |
---|
6133 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6134 | which can conflict with char $ac_func (); below. |
---|
6135 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6136 | <limits.h> exists even on freestanding compilers. */ |
---|
6137 | #ifdef __STDC__ |
---|
6138 | # include <limits.h> |
---|
6139 | #else |
---|
6140 | # include <assert.h> |
---|
6141 | #endif |
---|
6142 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6143 | #ifdef __cplusplus |
---|
6144 | extern "C" |
---|
6145 | { |
---|
6146 | #endif |
---|
6147 | /* We use char because int might match the return type of a gcc2 |
---|
6148 | builtin and then its argument prototype would still apply. */ |
---|
6149 | char $ac_func (); |
---|
6150 | /* The GNU C library defines this for functions which it implements |
---|
6151 | to always fail with ENOSYS. Some functions are actually named |
---|
6152 | something starting with __ and the normal name is an alias. */ |
---|
6153 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6154 | choke me |
---|
6155 | #else |
---|
6156 | char (*f) () = $ac_func; |
---|
6157 | #endif |
---|
6158 | #ifdef __cplusplus |
---|
6159 | } |
---|
6160 | #endif |
---|
6161 | |
---|
6162 | int |
---|
6163 | main () |
---|
6164 | { |
---|
6165 | return f != $ac_func; |
---|
6166 | ; |
---|
6167 | return 0; |
---|
6168 | } |
---|
6169 | _ACEOF |
---|
6170 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6172 | (eval $ac_link) 2>&5 |
---|
6173 | ac_status=$? |
---|
6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6175 | (exit $ac_status); } && |
---|
6176 | { ac_try='test -s conftest$ac_exeext' |
---|
6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6178 | (eval $ac_try) 2>&5 |
---|
6179 | ac_status=$? |
---|
6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6181 | (exit $ac_status); }; }; then |
---|
6182 | eval "$as_ac_var=yes" |
---|
6183 | else |
---|
6184 | echo "$as_me: failed program was:" >&5 |
---|
6185 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6186 | |
---|
6187 | eval "$as_ac_var=no" |
---|
6188 | fi |
---|
6189 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
6190 | fi |
---|
6191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
6192 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
6193 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
6194 | cat >>confdefs.h <<_ACEOF |
---|
6195 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6196 | _ACEOF |
---|
6197 | |
---|
6198 | fi |
---|
6199 | done |
---|
6200 | |
---|
6201 | if test "x$ac_cv_func_fork" = xyes; then |
---|
6202 | echo "$as_me:$LINENO: checking for working fork" >&5 |
---|
6203 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
---|
6204 | if test "${ac_cv_func_fork_works+set}" = set; then |
---|
6205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6206 | else |
---|
6207 | if test "$cross_compiling" = yes; then |
---|
6208 | ac_cv_func_fork_works=cross |
---|
6209 | else |
---|
6210 | cat >conftest.$ac_ext <<_ACEOF |
---|
6211 | /* By Ruediger Kuhlmann. */ |
---|
6212 | #include <sys/types.h> |
---|
6213 | #if HAVE_UNISTD_H |
---|
6214 | # include <unistd.h> |
---|
6215 | #endif |
---|
6216 | /* Some systems only have a dummy stub for fork() */ |
---|
6217 | int main () |
---|
6218 | { |
---|
6219 | if (fork() < 0) |
---|
6220 | exit (1); |
---|
6221 | exit (0); |
---|
6222 | } |
---|
6223 | _ACEOF |
---|
6224 | rm -f conftest$ac_exeext |
---|
6225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6226 | (eval $ac_link) 2>&5 |
---|
6227 | ac_status=$? |
---|
6228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6229 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6231 | (eval $ac_try) 2>&5 |
---|
6232 | ac_status=$? |
---|
6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6234 | (exit $ac_status); }; }; then |
---|
6235 | ac_cv_func_fork_works=yes |
---|
6236 | else |
---|
6237 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6238 | echo "$as_me: failed program was:" >&5 |
---|
6239 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6240 | |
---|
6241 | ( exit $ac_status ) |
---|
6242 | ac_cv_func_fork_works=no |
---|
6243 | fi |
---|
6244 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6245 | fi |
---|
6246 | fi |
---|
6247 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
---|
6248 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
---|
6249 | |
---|
6250 | else |
---|
6251 | ac_cv_func_fork_works=$ac_cv_func_fork |
---|
6252 | fi |
---|
6253 | if test "x$ac_cv_func_fork_works" = xcross; then |
---|
6254 | case $host in |
---|
6255 | *-*-amigaos* | *-*-msdosdjgpp*) |
---|
6256 | # Override, as these systems have only a dummy fork() stub |
---|
6257 | ac_cv_func_fork_works=no |
---|
6258 | ;; |
---|
6259 | *) |
---|
6260 | ac_cv_func_fork_works=yes |
---|
6261 | ;; |
---|
6262 | esac |
---|
6263 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
---|
6264 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
---|
6265 | fi |
---|
6266 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
---|
6267 | if test "x$ac_cv_func_vfork" = xyes; then |
---|
6268 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
---|
6269 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
---|
6270 | if test "${ac_cv_func_vfork_works+set}" = set; then |
---|
6271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6272 | else |
---|
6273 | if test "$cross_compiling" = yes; then |
---|
6274 | ac_cv_func_vfork_works=cross |
---|
6275 | else |
---|
6276 | cat >conftest.$ac_ext <<_ACEOF |
---|
6277 | #line $LINENO "configure" |
---|
6278 | /* confdefs.h. */ |
---|
6279 | _ACEOF |
---|
6280 | cat confdefs.h >>conftest.$ac_ext |
---|
6281 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6282 | /* end confdefs.h. */ |
---|
6283 | /* Thanks to Paul Eggert for this test. */ |
---|
6284 | #include <stdio.h> |
---|
6285 | #include <stdlib.h> |
---|
6286 | #include <sys/types.h> |
---|
6287 | #include <sys/stat.h> |
---|
6288 | #include <sys/wait.h> |
---|
6289 | #if HAVE_UNISTD_H |
---|
6290 | # include <unistd.h> |
---|
6291 | #endif |
---|
6292 | #if HAVE_VFORK_H |
---|
6293 | # include <vfork.h> |
---|
6294 | #endif |
---|
6295 | /* On some sparc systems, changes by the child to local and incoming |
---|
6296 | argument registers are propagated back to the parent. The compiler |
---|
6297 | is told about this with #include <vfork.h>, but some compilers |
---|
6298 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
---|
6299 | static variable whose address is put into a register that is |
---|
6300 | clobbered by the vfork. */ |
---|
6301 | static void |
---|
6302 | #ifdef __cplusplus |
---|
6303 | sparc_address_test (int arg) |
---|
6304 | # else |
---|
6305 | sparc_address_test (arg) int arg; |
---|
6306 | #endif |
---|
6307 | { |
---|
6308 | static pid_t child; |
---|
6309 | if (!child) { |
---|
6310 | child = vfork (); |
---|
6311 | if (child < 0) { |
---|
6312 | perror ("vfork"); |
---|
6313 | _exit(2); |
---|
6314 | } |
---|
6315 | if (!child) { |
---|
6316 | arg = getpid(); |
---|
6317 | write(-1, "", 0); |
---|
6318 | _exit (arg); |
---|
6319 | } |
---|
6320 | } |
---|
6321 | } |
---|
6322 | |
---|
6323 | int |
---|
6324 | main () |
---|
6325 | { |
---|
6326 | pid_t parent = getpid (); |
---|
6327 | pid_t child; |
---|
6328 | |
---|
6329 | sparc_address_test (0); |
---|
6330 | |
---|
6331 | child = vfork (); |
---|
6332 | |
---|
6333 | if (child == 0) { |
---|
6334 | /* Here is another test for sparc vfork register problems. This |
---|
6335 | test uses lots of local variables, at least as many local |
---|
6336 | variables as main has allocated so far including compiler |
---|
6337 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
---|
6338 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
---|
6339 | reuse the register of parent for one of the local variables, |
---|
6340 | since it will think that parent can't possibly be used any more |
---|
6341 | in this routine. Assigning to the local variable will thus |
---|
6342 | munge parent in the parent process. */ |
---|
6343 | pid_t |
---|
6344 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
---|
6345 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
---|
6346 | /* Convince the compiler that p..p7 are live; otherwise, it might |
---|
6347 | use the same hardware register for all 8 local variables. */ |
---|
6348 | if (p != p1 || p != p2 || p != p3 || p != p4 |
---|
6349 | || p != p5 || p != p6 || p != p7) |
---|
6350 | _exit(1); |
---|
6351 | |
---|
6352 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
---|
6353 | from child file descriptors. If the child closes a descriptor |
---|
6354 | before it execs or exits, this munges the parent's descriptor |
---|
6355 | as well. Test for this by closing stdout in the child. */ |
---|
6356 | _exit(close(fileno(stdout)) != 0); |
---|
6357 | } else { |
---|
6358 | int status; |
---|
6359 | struct stat st; |
---|
6360 | |
---|
6361 | while (wait(&status) != child) |
---|
6362 | ; |
---|
6363 | exit( |
---|
6364 | /* Was there some problem with vforking? */ |
---|
6365 | child < 0 |
---|
6366 | |
---|
6367 | /* Did the child fail? (This shouldn't happen.) */ |
---|
6368 | || status |
---|
6369 | |
---|
6370 | /* Did the vfork/compiler bug occur? */ |
---|
6371 | || parent != getpid() |
---|
6372 | |
---|
6373 | /* Did the file descriptor bug occur? */ |
---|
6374 | || fstat(fileno(stdout), &st) != 0 |
---|
6375 | ); |
---|
6376 | } |
---|
6377 | } |
---|
6378 | _ACEOF |
---|
6379 | rm -f conftest$ac_exeext |
---|
6380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6381 | (eval $ac_link) 2>&5 |
---|
6382 | ac_status=$? |
---|
6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6386 | (eval $ac_try) 2>&5 |
---|
6387 | ac_status=$? |
---|
6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6389 | (exit $ac_status); }; }; then |
---|
6390 | ac_cv_func_vfork_works=yes |
---|
6391 | else |
---|
6392 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6393 | echo "$as_me: failed program was:" >&5 |
---|
6394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6395 | |
---|
6396 | ( exit $ac_status ) |
---|
6397 | ac_cv_func_vfork_works=no |
---|
6398 | fi |
---|
6399 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6400 | fi |
---|
6401 | fi |
---|
6402 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
---|
6403 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
---|
6404 | |
---|
6405 | fi; |
---|
6406 | if test "x$ac_cv_func_fork_works" = xcross; then |
---|
6407 | ac_cv_func_vfork_works=ac_cv_func_vfork |
---|
6408 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
---|
6409 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
---|
6410 | fi |
---|
6411 | |
---|
6412 | if test "x$ac_cv_func_vfork_works" = xyes; then |
---|
6413 | |
---|
6414 | cat >>confdefs.h <<\_ACEOF |
---|
6415 | #define HAVE_WORKING_VFORK 1 |
---|
6416 | _ACEOF |
---|
6417 | |
---|
6418 | else |
---|
6419 | |
---|
6420 | cat >>confdefs.h <<\_ACEOF |
---|
6421 | #define vfork fork |
---|
6422 | _ACEOF |
---|
6423 | |
---|
6424 | fi |
---|
6425 | if test "x$ac_cv_func_fork_works" = xyes; then |
---|
6426 | |
---|
6427 | cat >>confdefs.h <<\_ACEOF |
---|
6428 | #define HAVE_WORKING_FORK 1 |
---|
6429 | _ACEOF |
---|
6430 | |
---|
6431 | fi |
---|
6432 | |
---|
6433 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
---|
6434 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 |
---|
6435 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
---|
6436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6437 | else |
---|
6438 | # Use it with a single arg. |
---|
6439 | cat >conftest.$ac_ext <<_ACEOF |
---|
6440 | #line $LINENO "configure" |
---|
6441 | /* confdefs.h. */ |
---|
6442 | _ACEOF |
---|
6443 | cat confdefs.h >>conftest.$ac_ext |
---|
6444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6445 | /* end confdefs.h. */ |
---|
6446 | $ac_includes_default |
---|
6447 | int |
---|
6448 | main () |
---|
6449 | { |
---|
6450 | getpgrp (0); |
---|
6451 | ; |
---|
6452 | return 0; |
---|
6453 | } |
---|
6454 | _ACEOF |
---|
6455 | rm -f conftest.$ac_objext |
---|
6456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6457 | (eval $ac_compile) 2>&5 |
---|
6458 | ac_status=$? |
---|
6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6460 | (exit $ac_status); } && |
---|
6461 | { ac_try='test -s conftest.$ac_objext' |
---|
6462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6463 | (eval $ac_try) 2>&5 |
---|
6464 | ac_status=$? |
---|
6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6466 | (exit $ac_status); }; }; then |
---|
6467 | ac_cv_func_getpgrp_void=no |
---|
6468 | else |
---|
6469 | echo "$as_me: failed program was:" >&5 |
---|
6470 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6471 | |
---|
6472 | ac_cv_func_getpgrp_void=yes |
---|
6473 | fi |
---|
6474 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
6475 | |
---|
6476 | fi |
---|
6477 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
---|
6478 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 |
---|
6479 | if test $ac_cv_func_getpgrp_void = yes; then |
---|
6480 | |
---|
6481 | cat >>confdefs.h <<\_ACEOF |
---|
6482 | #define GETPGRP_VOID 1 |
---|
6483 | _ACEOF |
---|
6484 | |
---|
6485 | fi |
---|
6486 | |
---|
6487 | if test $ac_cv_c_compiler_gnu = yes; then |
---|
6488 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
---|
6489 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
---|
6490 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
---|
6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6492 | else |
---|
6493 | ac_pattern="Autoconf.*'x'" |
---|
6494 | cat >conftest.$ac_ext <<_ACEOF |
---|
6495 | #line $LINENO "configure" |
---|
6496 | /* confdefs.h. */ |
---|
6497 | _ACEOF |
---|
6498 | cat confdefs.h >>conftest.$ac_ext |
---|
6499 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6500 | /* end confdefs.h. */ |
---|
6501 | #include <sgtty.h> |
---|
6502 | Autoconf TIOCGETP |
---|
6503 | _ACEOF |
---|
6504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6505 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
6506 | ac_cv_prog_gcc_traditional=yes |
---|
6507 | else |
---|
6508 | ac_cv_prog_gcc_traditional=no |
---|
6509 | fi |
---|
6510 | rm -f conftest* |
---|
6511 | |
---|
6512 | |
---|
6513 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
6514 | cat >conftest.$ac_ext <<_ACEOF |
---|
6515 | #line $LINENO "configure" |
---|
6516 | /* confdefs.h. */ |
---|
6517 | _ACEOF |
---|
6518 | cat confdefs.h >>conftest.$ac_ext |
---|
6519 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6520 | /* end confdefs.h. */ |
---|
6521 | #include <termio.h> |
---|
6522 | Autoconf TCGETA |
---|
6523 | _ACEOF |
---|
6524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6525 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
6526 | ac_cv_prog_gcc_traditional=yes |
---|
6527 | fi |
---|
6528 | rm -f conftest* |
---|
6529 | |
---|
6530 | fi |
---|
6531 | fi |
---|
6532 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
---|
6533 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
---|
6534 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
6535 | CC="$CC -traditional" |
---|
6536 | fi |
---|
6537 | fi |
---|
6538 | |
---|
6539 | |
---|
6540 | for ac_header in stdlib.h |
---|
6541 | do |
---|
6542 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6543 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6544 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6548 | fi |
---|
6549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6551 | else |
---|
6552 | # Is the header compilable? |
---|
6553 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6554 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6555 | cat >conftest.$ac_ext <<_ACEOF |
---|
6556 | #line $LINENO "configure" |
---|
6557 | /* confdefs.h. */ |
---|
6558 | _ACEOF |
---|
6559 | cat confdefs.h >>conftest.$ac_ext |
---|
6560 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6561 | /* end confdefs.h. */ |
---|
6562 | $ac_includes_default |
---|
6563 | #include <$ac_header> |
---|
6564 | _ACEOF |
---|
6565 | rm -f conftest.$ac_objext |
---|
6566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6567 | (eval $ac_compile) 2>&5 |
---|
6568 | ac_status=$? |
---|
6569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6570 | (exit $ac_status); } && |
---|
6571 | { ac_try='test -s conftest.$ac_objext' |
---|
6572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6573 | (eval $ac_try) 2>&5 |
---|
6574 | ac_status=$? |
---|
6575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6576 | (exit $ac_status); }; }; then |
---|
6577 | ac_header_compiler=yes |
---|
6578 | else |
---|
6579 | echo "$as_me: failed program was:" >&5 |
---|
6580 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6581 | |
---|
6582 | ac_header_compiler=no |
---|
6583 | fi |
---|
6584 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
6585 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6586 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6587 | |
---|
6588 | # Is the header present? |
---|
6589 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6590 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6591 | cat >conftest.$ac_ext <<_ACEOF |
---|
6592 | #line $LINENO "configure" |
---|
6593 | /* confdefs.h. */ |
---|
6594 | _ACEOF |
---|
6595 | cat confdefs.h >>conftest.$ac_ext |
---|
6596 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6597 | /* end confdefs.h. */ |
---|
6598 | #include <$ac_header> |
---|
6599 | _ACEOF |
---|
6600 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6601 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6602 | ac_status=$? |
---|
6603 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6604 | rm -f conftest.er1 |
---|
6605 | cat conftest.err >&5 |
---|
6606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6607 | (exit $ac_status); } >/dev/null; then |
---|
6608 | if test -s conftest.err; then |
---|
6609 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6610 | else |
---|
6611 | ac_cpp_err= |
---|
6612 | fi |
---|
6613 | else |
---|
6614 | ac_cpp_err=yes |
---|
6615 | fi |
---|
6616 | if test -z "$ac_cpp_err"; then |
---|
6617 | ac_header_preproc=yes |
---|
6618 | else |
---|
6619 | echo "$as_me: failed program was:" >&5 |
---|
6620 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6621 | |
---|
6622 | ac_header_preproc=no |
---|
6623 | fi |
---|
6624 | rm -f conftest.err conftest.$ac_ext |
---|
6625 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6626 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6627 | |
---|
6628 | # So? What about this header? |
---|
6629 | case $ac_header_compiler:$ac_header_preproc in |
---|
6630 | yes:no ) |
---|
6631 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6632 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6633 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6634 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6635 | ( |
---|
6636 | cat <<\_ASBOX |
---|
6637 | ## ------------------------------------ ## |
---|
6638 | ## Report this to bug-autoconf@gnu.org. ## |
---|
6639 | ## ------------------------------------ ## |
---|
6640 | _ASBOX |
---|
6641 | ) | |
---|
6642 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6643 | ;; |
---|
6644 | no:yes ) |
---|
6645 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6646 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6647 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6648 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6649 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6650 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6651 | ( |
---|
6652 | cat <<\_ASBOX |
---|
6653 | ## ------------------------------------ ## |
---|
6654 | ## Report this to bug-autoconf@gnu.org. ## |
---|
6655 | ## ------------------------------------ ## |
---|
6656 | _ASBOX |
---|
6657 | ) | |
---|
6658 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6659 | ;; |
---|
6660 | esac |
---|
6661 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6663 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6665 | else |
---|
6666 | eval "$as_ac_Header=$ac_header_preproc" |
---|
6667 | fi |
---|
6668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6670 | |
---|
6671 | fi |
---|
6672 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6673 | cat >>confdefs.h <<_ACEOF |
---|
6674 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6675 | _ACEOF |
---|
6676 | |
---|
6677 | fi |
---|
6678 | |
---|
6679 | done |
---|
6680 | |
---|
6681 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
6682 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
6683 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
6684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6685 | else |
---|
6686 | if test "$cross_compiling" = yes; then |
---|
6687 | ac_cv_func_malloc_0_nonnull=no |
---|
6688 | else |
---|
6689 | cat >conftest.$ac_ext <<_ACEOF |
---|
6690 | #line $LINENO "configure" |
---|
6691 | /* confdefs.h. */ |
---|
6692 | _ACEOF |
---|
6693 | cat confdefs.h >>conftest.$ac_ext |
---|
6694 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6695 | /* end confdefs.h. */ |
---|
6696 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
6697 | # include <stdlib.h> |
---|
6698 | #else |
---|
6699 | char *malloc (); |
---|
6700 | #endif |
---|
6701 | |
---|
6702 | int |
---|
6703 | main () |
---|
6704 | { |
---|
6705 | exit (malloc (0) ? 0 : 1); |
---|
6706 | ; |
---|
6707 | return 0; |
---|
6708 | } |
---|
6709 | _ACEOF |
---|
6710 | rm -f conftest$ac_exeext |
---|
6711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6712 | (eval $ac_link) 2>&5 |
---|
6713 | ac_status=$? |
---|
6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6715 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6717 | (eval $ac_try) 2>&5 |
---|
6718 | ac_status=$? |
---|
6719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6720 | (exit $ac_status); }; }; then |
---|
6721 | ac_cv_func_malloc_0_nonnull=yes |
---|
6722 | else |
---|
6723 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6724 | echo "$as_me: failed program was:" >&5 |
---|
6725 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6726 | |
---|
6727 | ( exit $ac_status ) |
---|
6728 | ac_cv_func_malloc_0_nonnull=no |
---|
6729 | fi |
---|
6730 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6731 | fi |
---|
6732 | fi |
---|
6733 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
6734 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
6735 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
6736 | |
---|
6737 | cat >>confdefs.h <<\_ACEOF |
---|
6738 | #define HAVE_MALLOC 1 |
---|
6739 | _ACEOF |
---|
6740 | |
---|
6741 | else |
---|
6742 | cat >>confdefs.h <<\_ACEOF |
---|
6743 | #define HAVE_MALLOC 0 |
---|
6744 | _ACEOF |
---|
6745 | |
---|
6746 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
---|
6747 | |
---|
6748 | cat >>confdefs.h <<\_ACEOF |
---|
6749 | #define malloc rpl_malloc |
---|
6750 | _ACEOF |
---|
6751 | |
---|
6752 | fi |
---|
6753 | |
---|
6754 | |
---|
6755 | |
---|
6756 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
---|
6757 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
---|
6758 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
---|
6759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6760 | else |
---|
6761 | if test "$cross_compiling" = yes; then |
---|
6762 | ac_cv_func_memcmp_working=no |
---|
6763 | else |
---|
6764 | cat >conftest.$ac_ext <<_ACEOF |
---|
6765 | #line $LINENO "configure" |
---|
6766 | /* confdefs.h. */ |
---|
6767 | _ACEOF |
---|
6768 | cat confdefs.h >>conftest.$ac_ext |
---|
6769 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6770 | /* end confdefs.h. */ |
---|
6771 | |
---|
6772 | int |
---|
6773 | main () |
---|
6774 | { |
---|
6775 | |
---|
6776 | /* Some versions of memcmp are not 8-bit clean. */ |
---|
6777 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
---|
6778 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
---|
6779 | exit (1); |
---|
6780 | |
---|
6781 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
---|
6782 | or more and with at least one buffer not starting on a 4-byte boundary. |
---|
6783 | William Lewis provided this test program. */ |
---|
6784 | { |
---|
6785 | char foo[21]; |
---|
6786 | char bar[21]; |
---|
6787 | int i; |
---|
6788 | for (i = 0; i < 4; i++) |
---|
6789 | { |
---|
6790 | char *a = foo + i; |
---|
6791 | char *b = bar + i; |
---|
6792 | strcpy (a, "--------01111111"); |
---|
6793 | strcpy (b, "--------10000000"); |
---|
6794 | if (memcmp (a, b, 16) >= 0) |
---|
6795 | exit (1); |
---|
6796 | } |
---|
6797 | exit (0); |
---|
6798 | } |
---|
6799 | |
---|
6800 | ; |
---|
6801 | return 0; |
---|
6802 | } |
---|
6803 | _ACEOF |
---|
6804 | rm -f conftest$ac_exeext |
---|
6805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6806 | (eval $ac_link) 2>&5 |
---|
6807 | ac_status=$? |
---|
6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6809 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6811 | (eval $ac_try) 2>&5 |
---|
6812 | ac_status=$? |
---|
6813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6814 | (exit $ac_status); }; }; then |
---|
6815 | ac_cv_func_memcmp_working=yes |
---|
6816 | else |
---|
6817 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6818 | echo "$as_me: failed program was:" >&5 |
---|
6819 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6820 | |
---|
6821 | ( exit $ac_status ) |
---|
6822 | ac_cv_func_memcmp_working=no |
---|
6823 | fi |
---|
6824 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6825 | fi |
---|
6826 | fi |
---|
6827 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
---|
6828 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
---|
6829 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
---|
6830 | |
---|
6831 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
---|
6832 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
---|
6833 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
---|
6834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6835 | else |
---|
6836 | if test "$cross_compiling" = yes; then |
---|
6837 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
---|
6838 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
---|
6839 | { (exit 1); exit 1; }; } |
---|
6840 | else |
---|
6841 | cat >conftest.$ac_ext <<_ACEOF |
---|
6842 | #line $LINENO "configure" |
---|
6843 | /* confdefs.h. */ |
---|
6844 | _ACEOF |
---|
6845 | cat confdefs.h >>conftest.$ac_ext |
---|
6846 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6847 | /* end confdefs.h. */ |
---|
6848 | #if HAVE_UNISTD_H |
---|
6849 | # include <unistd.h> |
---|
6850 | #endif |
---|
6851 | |
---|
6852 | int |
---|
6853 | main () |
---|
6854 | { |
---|
6855 | /* If this system has a BSD-style setpgrp which takes arguments, |
---|
6856 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
---|
6857 | exit successfully. */ |
---|
6858 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
---|
6859 | ; |
---|
6860 | return 0; |
---|
6861 | } |
---|
6862 | _ACEOF |
---|
6863 | rm -f conftest$ac_exeext |
---|
6864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6865 | (eval $ac_link) 2>&5 |
---|
6866 | ac_status=$? |
---|
6867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6868 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6870 | (eval $ac_try) 2>&5 |
---|
6871 | ac_status=$? |
---|
6872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6873 | (exit $ac_status); }; }; then |
---|
6874 | ac_cv_func_setpgrp_void=no |
---|
6875 | else |
---|
6876 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6877 | echo "$as_me: failed program was:" >&5 |
---|
6878 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6879 | |
---|
6880 | ( exit $ac_status ) |
---|
6881 | ac_cv_func_setpgrp_void=yes |
---|
6882 | fi |
---|
6883 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6884 | fi |
---|
6885 | fi |
---|
6886 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
---|
6887 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
---|
6888 | if test $ac_cv_func_setpgrp_void = yes; then |
---|
6889 | |
---|
6890 | cat >>confdefs.h <<\_ACEOF |
---|
6891 | #define SETPGRP_VOID 1 |
---|
6892 | _ACEOF |
---|
6893 | |
---|
6894 | fi |
---|
6895 | |
---|
6896 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
6897 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
---|
6898 | if test "${ac_cv_type_signal+set}" = set; then |
---|
6899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6900 | else |
---|
6901 | cat >conftest.$ac_ext <<_ACEOF |
---|
6902 | #line $LINENO "configure" |
---|
6903 | /* confdefs.h. */ |
---|
6904 | _ACEOF |
---|
6905 | cat confdefs.h >>conftest.$ac_ext |
---|
6906 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6907 | /* end confdefs.h. */ |
---|
6908 | #include <sys/types.h> |
---|
6909 | #include <signal.h> |
---|
6910 | #ifdef signal |
---|
6911 | # undef signal |
---|
6912 | #endif |
---|
6913 | #ifdef __cplusplus |
---|
6914 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
6915 | #else |
---|
6916 | void (*signal ()) (); |
---|
6917 | #endif |
---|
6918 | |
---|
6919 | int |
---|
6920 | main () |
---|
6921 | { |
---|
6922 | int i; |
---|
6923 | ; |
---|
6924 | return 0; |
---|
6925 | } |
---|
6926 | _ACEOF |
---|
6927 | rm -f conftest.$ac_objext |
---|
6928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6929 | (eval $ac_compile) 2>&5 |
---|
6930 | ac_status=$? |
---|
6931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6932 | (exit $ac_status); } && |
---|
6933 | { ac_try='test -s conftest.$ac_objext' |
---|
6934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6935 | (eval $ac_try) 2>&5 |
---|
6936 | ac_status=$? |
---|
6937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6938 | (exit $ac_status); }; }; then |
---|
6939 | ac_cv_type_signal=void |
---|
6940 | else |
---|
6941 | echo "$as_me: failed program was:" >&5 |
---|
6942 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6943 | |
---|
6944 | ac_cv_type_signal=int |
---|
6945 | fi |
---|
6946 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
6947 | fi |
---|
6948 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
6949 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
---|
6950 | |
---|
6951 | cat >>confdefs.h <<_ACEOF |
---|
6952 | #define RETSIGTYPE $ac_cv_type_signal |
---|
6953 | _ACEOF |
---|
6954 | |
---|
6955 | |
---|
6956 | |
---|
6957 | for ac_func in strftime |
---|
6958 | do |
---|
6959 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6960 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
6961 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
6962 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
6963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6964 | else |
---|
6965 | cat >conftest.$ac_ext <<_ACEOF |
---|
6966 | #line $LINENO "configure" |
---|
6967 | /* confdefs.h. */ |
---|
6968 | _ACEOF |
---|
6969 | cat confdefs.h >>conftest.$ac_ext |
---|
6970 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6971 | /* end confdefs.h. */ |
---|
6972 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6973 | which can conflict with char $ac_func (); below. |
---|
6974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6975 | <limits.h> exists even on freestanding compilers. */ |
---|
6976 | #ifdef __STDC__ |
---|
6977 | # include <limits.h> |
---|
6978 | #else |
---|
6979 | # include <assert.h> |
---|
6980 | #endif |
---|
6981 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6982 | #ifdef __cplusplus |
---|
6983 | extern "C" |
---|
6984 | { |
---|
6985 | #endif |
---|
6986 | /* We use char because int might match the return type of a gcc2 |
---|
6987 | builtin and then its argument prototype would still apply. */ |
---|
6988 | char $ac_func (); |
---|
6989 | /* The GNU C library defines this for functions which it implements |
---|
6990 | to always fail with ENOSYS. Some functions are actually named |
---|
6991 | something starting with __ and the normal name is an alias. */ |
---|
6992 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6993 | choke me |
---|
6994 | #else |
---|
6995 | char (*f) () = $ac_func; |
---|
6996 | #endif |
---|
6997 | #ifdef __cplusplus |
---|
6998 | } |
---|
6999 | #endif |
---|
7000 | |
---|
7001 | int |
---|
7002 | main () |
---|
7003 | { |
---|
7004 | return f != $ac_func; |
---|
7005 | ; |
---|
7006 | return 0; |
---|
7007 | } |
---|
7008 | _ACEOF |
---|
7009 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7011 | (eval $ac_link) 2>&5 |
---|
7012 | ac_status=$? |
---|
7013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7014 | (exit $ac_status); } && |
---|
7015 | { ac_try='test -s conftest$ac_exeext' |
---|
7016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7017 | (eval $ac_try) 2>&5 |
---|
7018 | ac_status=$? |
---|
7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7020 | (exit $ac_status); }; }; then |
---|
7021 | eval "$as_ac_var=yes" |
---|
7022 | else |
---|
7023 | echo "$as_me: failed program was:" >&5 |
---|
7024 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7025 | |
---|
7026 | eval "$as_ac_var=no" |
---|
7027 | fi |
---|
7028 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
7029 | fi |
---|
7030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
7031 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
7032 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
7033 | cat >>confdefs.h <<_ACEOF |
---|
7034 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
7035 | _ACEOF |
---|
7036 | |
---|
7037 | else |
---|
7038 | # strftime is in -lintl on SCO UNIX. |
---|
7039 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
---|
7040 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 |
---|
7041 | if test "${ac_cv_lib_intl_strftime+set}" = set; then |
---|
7042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7043 | else |
---|
7044 | ac_check_lib_save_LIBS=$LIBS |
---|
7045 | LIBS="-lintl $LIBS" |
---|
7046 | cat >conftest.$ac_ext <<_ACEOF |
---|
7047 | #line $LINENO "configure" |
---|
7048 | /* confdefs.h. */ |
---|
7049 | _ACEOF |
---|
7050 | cat confdefs.h >>conftest.$ac_ext |
---|
7051 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7052 | /* end confdefs.h. */ |
---|
7053 | |
---|
7054 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7055 | #ifdef __cplusplus |
---|
7056 | extern "C" |
---|
7057 | #endif |
---|
7058 | /* We use char because int might match the return type of a gcc2 |
---|
7059 | builtin and then its argument prototype would still apply. */ |
---|
7060 | char strftime (); |
---|
7061 | int |
---|
7062 | main () |
---|
7063 | { |
---|
7064 | strftime (); |
---|
7065 | ; |
---|
7066 | return 0; |
---|
7067 | } |
---|
7068 | _ACEOF |
---|
7069 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7071 | (eval $ac_link) 2>&5 |
---|
7072 | ac_status=$? |
---|
7073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7074 | (exit $ac_status); } && |
---|
7075 | { ac_try='test -s conftest$ac_exeext' |
---|
7076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7077 | (eval $ac_try) 2>&5 |
---|
7078 | ac_status=$? |
---|
7079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7080 | (exit $ac_status); }; }; then |
---|
7081 | ac_cv_lib_intl_strftime=yes |
---|
7082 | else |
---|
7083 | echo "$as_me: failed program was:" >&5 |
---|
7084 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7085 | |
---|
7086 | ac_cv_lib_intl_strftime=no |
---|
7087 | fi |
---|
7088 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
7089 | LIBS=$ac_check_lib_save_LIBS |
---|
7090 | fi |
---|
7091 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
---|
7092 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 |
---|
7093 | if test $ac_cv_lib_intl_strftime = yes; then |
---|
7094 | cat >>confdefs.h <<\_ACEOF |
---|
7095 | #define HAVE_STRFTIME 1 |
---|
7096 | _ACEOF |
---|
7097 | |
---|
7098 | LIBS="-lintl $LIBS" |
---|
7099 | fi |
---|
7100 | |
---|
7101 | fi |
---|
7102 | done |
---|
7103 | |
---|
7104 | echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5 |
---|
7105 | echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6 |
---|
7106 | if test "${ac_cv_func_wait3_rusage+set}" = set; then |
---|
7107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7108 | else |
---|
7109 | if test "$cross_compiling" = yes; then |
---|
7110 | ac_cv_func_wait3_rusage=no |
---|
7111 | else |
---|
7112 | cat >conftest.$ac_ext <<_ACEOF |
---|
7113 | #line $LINENO "configure" |
---|
7114 | /* confdefs.h. */ |
---|
7115 | _ACEOF |
---|
7116 | cat confdefs.h >>conftest.$ac_ext |
---|
7117 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7118 | /* end confdefs.h. */ |
---|
7119 | #include <sys/types.h> |
---|
7120 | #include <sys/time.h> |
---|
7121 | #include <sys/resource.h> |
---|
7122 | #include <stdio.h> |
---|
7123 | /* HP-UX has wait3 but does not fill in rusage at all. */ |
---|
7124 | int |
---|
7125 | main () |
---|
7126 | { |
---|
7127 | struct rusage r; |
---|
7128 | int i; |
---|
7129 | /* Use a field that we can force nonzero -- |
---|
7130 | voluntary context switches. |
---|
7131 | For systems like NeXT and OSF/1 that don't set it, |
---|
7132 | also use the system CPU time. And page faults (I/O) for Linux. */ |
---|
7133 | r.ru_nvcsw = 0; |
---|
7134 | r.ru_stime.tv_sec = 0; |
---|
7135 | r.ru_stime.tv_usec = 0; |
---|
7136 | r.ru_majflt = r.ru_minflt = 0; |
---|
7137 | switch (fork ()) |
---|
7138 | { |
---|
7139 | case 0: /* Child. */ |
---|
7140 | sleep(1); /* Give up the CPU. */ |
---|
7141 | _exit(0); |
---|
7142 | break; |
---|
7143 | case -1: /* What can we do? */ |
---|
7144 | _exit(0); |
---|
7145 | break; |
---|
7146 | default: /* Parent. */ |
---|
7147 | wait3(&i, 0, &r); |
---|
7148 | /* Avoid "text file busy" from rm on fast HP-UX machines. */ |
---|
7149 | sleep(2); |
---|
7150 | exit (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 |
---|
7151 | && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); |
---|
7152 | } |
---|
7153 | } |
---|
7154 | _ACEOF |
---|
7155 | rm -f conftest$ac_exeext |
---|
7156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7157 | (eval $ac_link) 2>&5 |
---|
7158 | ac_status=$? |
---|
7159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7160 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7162 | (eval $ac_try) 2>&5 |
---|
7163 | ac_status=$? |
---|
7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7165 | (exit $ac_status); }; }; then |
---|
7166 | ac_cv_func_wait3_rusage=yes |
---|
7167 | else |
---|
7168 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7169 | echo "$as_me: failed program was:" >&5 |
---|
7170 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7171 | |
---|
7172 | ( exit $ac_status ) |
---|
7173 | ac_cv_func_wait3_rusage=no |
---|
7174 | fi |
---|
7175 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7176 | fi |
---|
7177 | fi |
---|
7178 | echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5 |
---|
7179 | echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6 |
---|
7180 | if test $ac_cv_func_wait3_rusage = yes; then |
---|
7181 | |
---|
7182 | cat >>confdefs.h <<\_ACEOF |
---|
7183 | #define HAVE_WAIT3 1 |
---|
7184 | _ACEOF |
---|
7185 | |
---|
7186 | fi |
---|
7187 | |
---|
7188 | |
---|
7189 | |
---|
7190 | |
---|
7191 | |
---|
7192 | |
---|
7193 | |
---|
7194 | |
---|
7195 | |
---|
7196 | |
---|
7197 | |
---|
7198 | |
---|
7199 | |
---|
7200 | |
---|
7201 | |
---|
7202 | |
---|
7203 | |
---|
7204 | |
---|
7205 | |
---|
7206 | |
---|
7207 | |
---|
7208 | |
---|
7209 | |
---|
7210 | |
---|
7211 | |
---|
7212 | |
---|
7213 | for ac_func in \ |
---|
7214 | bzero \ |
---|
7215 | dup2 \ |
---|
7216 | gethostbyname \ |
---|
7217 | gethostname \ |
---|
7218 | getpass \ |
---|
7219 | getpassphrase \ |
---|
7220 | gettimeofday \ |
---|
7221 | isascii \ |
---|
7222 | memmove \ |
---|
7223 | memset \ |
---|
7224 | modf \ |
---|
7225 | re_comp \ |
---|
7226 | regcmp \ |
---|
7227 | regcomp \ |
---|
7228 | select \ |
---|
7229 | socket \ |
---|
7230 | strcasecmp \ |
---|
7231 | strchr \ |
---|
7232 | strdup \ |
---|
7233 | strerror \ |
---|
7234 | strncasecmp \ |
---|
7235 | strrchr \ |
---|
7236 | strstr \ |
---|
7237 | usleep \ |
---|
7238 | waitpid \ |
---|
7239 | |
---|
7240 | do |
---|
7241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
7242 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
7243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
7244 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
7245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7246 | else |
---|
7247 | cat >conftest.$ac_ext <<_ACEOF |
---|
7248 | #line $LINENO "configure" |
---|
7249 | /* confdefs.h. */ |
---|
7250 | _ACEOF |
---|
7251 | cat confdefs.h >>conftest.$ac_ext |
---|
7252 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7253 | /* end confdefs.h. */ |
---|
7254 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7255 | which can conflict with char $ac_func (); below. |
---|
7256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7257 | <limits.h> exists even on freestanding compilers. */ |
---|
7258 | #ifdef __STDC__ |
---|
7259 | # include <limits.h> |
---|
7260 | #else |
---|
7261 | # include <assert.h> |
---|
7262 | #endif |
---|
7263 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7264 | #ifdef __cplusplus |
---|
7265 | extern "C" |
---|
7266 | { |
---|
7267 | #endif |
---|
7268 | /* We use char because int might match the return type of a gcc2 |
---|
7269 | builtin and then its argument prototype would still apply. */ |
---|
7270 | char $ac_func (); |
---|
7271 | /* The GNU C library defines this for functions which it implements |
---|
7272 | to always fail with ENOSYS. Some functions are actually named |
---|
7273 | something starting with __ and the normal name is an alias. */ |
---|
7274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
7275 | choke me |
---|
7276 | #else |
---|
7277 | char (*f) () = $ac_func; |
---|
7278 | #endif |
---|
7279 | #ifdef __cplusplus |
---|
7280 | } |
---|
7281 | #endif |
---|
7282 | |
---|
7283 | int |
---|
7284 | main () |
---|
7285 | { |
---|
7286 | return f != $ac_func; |
---|
7287 | ; |
---|
7288 | return 0; |
---|
7289 | } |
---|
7290 | _ACEOF |
---|
7291 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7293 | (eval $ac_link) 2>&5 |
---|
7294 | ac_status=$? |
---|
7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7296 | (exit $ac_status); } && |
---|
7297 | { ac_try='test -s conftest$ac_exeext' |
---|
7298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7299 | (eval $ac_try) 2>&5 |
---|
7300 | ac_status=$? |
---|
7301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7302 | (exit $ac_status); }; }; then |
---|
7303 | eval "$as_ac_var=yes" |
---|
7304 | else |
---|
7305 | echo "$as_me: failed program was:" >&5 |
---|
7306 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7307 | |
---|
7308 | eval "$as_ac_var=no" |
---|
7309 | fi |
---|
7310 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
7311 | fi |
---|
7312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
7313 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
7314 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
7315 | cat >>confdefs.h <<_ACEOF |
---|
7316 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
7317 | _ACEOF |
---|
7318 | |
---|
7319 | fi |
---|
7320 | done |
---|
7321 | |
---|
7322 | |
---|
7323 | ac_config_files="$ac_config_files Makefile lib/Makefile lib/libxode/Makefile lib/libjabber/Makefile lib/libjwgc/Makefile clients/Makefile clients/jwgc/Makefile clients/jlocate/Makefile clients/jwrite/Makefile clients/jctl/Makefile clients/jstat/Makefile" |
---|
7324 | |
---|
7325 | cat >confcache <<\_ACEOF |
---|
7326 | # This file is a shell script that caches the results of configure |
---|
7327 | # tests run on this system so they can be shared between configure |
---|
7328 | # scripts and configure runs, see configure's option --config-cache. |
---|
7329 | # It is not useful on other systems. If it contains results you don't |
---|
7330 | # want to keep, you may remove or edit it. |
---|
7331 | # |
---|
7332 | # config.status only pays attention to the cache file if you give it |
---|
7333 | # the --recheck option to rerun configure. |
---|
7334 | # |
---|
7335 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7336 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7337 | # following values. |
---|
7338 | |
---|
7339 | _ACEOF |
---|
7340 | |
---|
7341 | # The following way of writing the cache mishandles newlines in values, |
---|
7342 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7343 | # So, don't put newlines in cache variables' values. |
---|
7344 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7345 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7346 | { |
---|
7347 | (set) 2>&1 | |
---|
7348 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
7349 | *ac_space=\ *) |
---|
7350 | # `set' does not quote correctly, so add quotes (double-quote |
---|
7351 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
7352 | sed -n \ |
---|
7353 | "s/'/'\\\\''/g; |
---|
7354 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7355 | ;; |
---|
7356 | *) |
---|
7357 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7358 | sed -n \ |
---|
7359 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
7360 | ;; |
---|
7361 | esac; |
---|
7362 | } | |
---|
7363 | sed ' |
---|
7364 | t clear |
---|
7365 | : clear |
---|
7366 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7367 | t end |
---|
7368 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7369 | : end' >>confcache |
---|
7370 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
7371 | if test -w $cache_file; then |
---|
7372 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
7373 | cat confcache >$cache_file |
---|
7374 | else |
---|
7375 | echo "not updating unwritable cache $cache_file" |
---|
7376 | fi |
---|
7377 | fi |
---|
7378 | rm -f confcache |
---|
7379 | |
---|
7380 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7381 | # Let make expand exec_prefix. |
---|
7382 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7383 | |
---|
7384 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
7385 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
7386 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7387 | # (actually we leave an empty line to preserve line numbers). |
---|
7388 | if test "x$srcdir" = x.; then |
---|
7389 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
7390 | s/:*\$(srcdir):*/:/; |
---|
7391 | s/:*\${srcdir}:*/:/; |
---|
7392 | s/:*@srcdir@:*/:/; |
---|
7393 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
7394 | s/:*$//; |
---|
7395 | s/^[^=]*=[ ]*$//; |
---|
7396 | }' |
---|
7397 | fi |
---|
7398 | |
---|
7399 | DEFS=-DHAVE_CONFIG_H |
---|
7400 | |
---|
7401 | ac_libobjs= |
---|
7402 | ac_ltlibobjs= |
---|
7403 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
7404 | # 1. Remove the extension, and $U if already installed. |
---|
7405 | ac_i=`echo "$ac_i" | |
---|
7406 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
7407 | # 2. Add them. |
---|
7408 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
7409 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
7410 | done |
---|
7411 | LIBOBJS=$ac_libobjs |
---|
7412 | |
---|
7413 | LTLIBOBJS=$ac_ltlibobjs |
---|
7414 | |
---|
7415 | |
---|
7416 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
7417 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
7418 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7419 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
7420 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7421 | { (exit 1); exit 1; }; } |
---|
7422 | fi |
---|
7423 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
7424 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
7425 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7426 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
7427 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7428 | { (exit 1); exit 1; }; } |
---|
7429 | fi |
---|
7430 | |
---|
7431 | : ${CONFIG_STATUS=./config.status} |
---|
7432 | ac_clean_files_save=$ac_clean_files |
---|
7433 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
7434 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
7435 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
7436 | cat >$CONFIG_STATUS <<_ACEOF |
---|
7437 | #! $SHELL |
---|
7438 | # Generated by $as_me. |
---|
7439 | # Run this file to recreate the current configuration. |
---|
7440 | # Compiler output produced by configure, useful for debugging |
---|
7441 | # configure, is in config.log if it exists. |
---|
7442 | |
---|
7443 | debug=false |
---|
7444 | ac_cs_recheck=false |
---|
7445 | ac_cs_silent=false |
---|
7446 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
7447 | _ACEOF |
---|
7448 | |
---|
7449 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7450 | ## --------------------- ## |
---|
7451 | ## M4sh Initialization. ## |
---|
7452 | ## --------------------- ## |
---|
7453 | |
---|
7454 | # Be Bourne compatible |
---|
7455 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
7456 | emulate sh |
---|
7457 | NULLCMD=: |
---|
7458 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
7459 | # is contrary to our usage. Disable this feature. |
---|
7460 | alias -g '${1+"$@"}'='"$@"' |
---|
7461 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
7462 | set -o posix |
---|
7463 | fi |
---|
7464 | |
---|
7465 | # Support unset when possible. |
---|
7466 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
7467 | as_unset=unset |
---|
7468 | else |
---|
7469 | as_unset=false |
---|
7470 | fi |
---|
7471 | |
---|
7472 | |
---|
7473 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
7474 | $as_unset ENV MAIL MAILPATH |
---|
7475 | PS1='$ ' |
---|
7476 | PS2='> ' |
---|
7477 | PS4='+ ' |
---|
7478 | |
---|
7479 | # NLS nuisances. |
---|
7480 | for as_var in \ |
---|
7481 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
7482 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
7483 | LC_TELEPHONE LC_TIME |
---|
7484 | do |
---|
7485 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
7486 | eval $as_var=C; export $as_var |
---|
7487 | else |
---|
7488 | $as_unset $as_var |
---|
7489 | fi |
---|
7490 | done |
---|
7491 | |
---|
7492 | # Required to use basename. |
---|
7493 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
7494 | as_expr=expr |
---|
7495 | else |
---|
7496 | as_expr=false |
---|
7497 | fi |
---|
7498 | |
---|
7499 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
7500 | as_basename=basename |
---|
7501 | else |
---|
7502 | as_basename=false |
---|
7503 | fi |
---|
7504 | |
---|
7505 | |
---|
7506 | # Name of the executable. |
---|
7507 | as_me=`$as_basename "$0" || |
---|
7508 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
7509 | X"$0" : 'X\(//\)$' \| \ |
---|
7510 | X"$0" : 'X\(/\)$' \| \ |
---|
7511 | . : '\(.\)' 2>/dev/null || |
---|
7512 | echo X/"$0" | |
---|
7513 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
7514 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
7515 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
7516 | s/.*/./; q'` |
---|
7517 | |
---|
7518 | |
---|
7519 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
7520 | # Avoid depending upon Character Ranges. |
---|
7521 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
7522 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
7523 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
7524 | as_cr_digits='0123456789' |
---|
7525 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
7526 | |
---|
7527 | # The user is always right. |
---|
7528 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
7529 | echo "#! /bin/sh" >conf$$.sh |
---|
7530 | echo "exit 0" >>conf$$.sh |
---|
7531 | chmod +x conf$$.sh |
---|
7532 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
7533 | PATH_SEPARATOR=';' |
---|
7534 | else |
---|
7535 | PATH_SEPARATOR=: |
---|
7536 | fi |
---|
7537 | rm -f conf$$.sh |
---|
7538 | fi |
---|
7539 | |
---|
7540 | |
---|
7541 | as_lineno_1=$LINENO |
---|
7542 | as_lineno_2=$LINENO |
---|
7543 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
7544 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
7545 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
7546 | # Find who we are. Look in the path if we contain no path at all |
---|
7547 | # relative or not. |
---|
7548 | case $0 in |
---|
7549 | *[\\/]* ) as_myself=$0 ;; |
---|
7550 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7551 | for as_dir in $PATH |
---|
7552 | do |
---|
7553 | IFS=$as_save_IFS |
---|
7554 | test -z "$as_dir" && as_dir=. |
---|
7555 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
7556 | done |
---|
7557 | |
---|
7558 | ;; |
---|
7559 | esac |
---|
7560 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
7561 | # in which case we are not to be found in the path. |
---|
7562 | if test "x$as_myself" = x; then |
---|
7563 | as_myself=$0 |
---|
7564 | fi |
---|
7565 | if test ! -f "$as_myself"; then |
---|
7566 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
7567 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
7568 | { (exit 1); exit 1; }; } |
---|
7569 | fi |
---|
7570 | case $CONFIG_SHELL in |
---|
7571 | '') |
---|
7572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7573 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
7574 | do |
---|
7575 | IFS=$as_save_IFS |
---|
7576 | test -z "$as_dir" && as_dir=. |
---|
7577 | for as_base in sh bash ksh sh5; do |
---|
7578 | case $as_dir in |
---|
7579 | /*) |
---|
7580 | if ("$as_dir/$as_base" -c ' |
---|
7581 | as_lineno_1=$LINENO |
---|
7582 | as_lineno_2=$LINENO |
---|
7583 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
7584 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
7585 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
7586 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
7587 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
7588 | CONFIG_SHELL=$as_dir/$as_base |
---|
7589 | export CONFIG_SHELL |
---|
7590 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
7591 | fi;; |
---|
7592 | esac |
---|
7593 | done |
---|
7594 | done |
---|
7595 | ;; |
---|
7596 | esac |
---|
7597 | |
---|
7598 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
7599 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
7600 | # line-number line before each line; the second 'sed' does the real |
---|
7601 | # work. The second script uses 'N' to pair each line-number line |
---|
7602 | # with the numbered line, and appends trailing '-' during |
---|
7603 | # substitution so that $LINENO is not a special case at line end. |
---|
7604 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
7605 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
7606 | sed '=' <$as_myself | |
---|
7607 | sed ' |
---|
7608 | N |
---|
7609 | s,$,-, |
---|
7610 | : loop |
---|
7611 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
7612 | t loop |
---|
7613 | s,-$,, |
---|
7614 | s,^['$as_cr_digits']*\n,, |
---|
7615 | ' >$as_me.lineno && |
---|
7616 | chmod +x $as_me.lineno || |
---|
7617 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
7618 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
7619 | { (exit 1); exit 1; }; } |
---|
7620 | |
---|
7621 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
7622 | # (the dirname of $[0] is not the place where we might find the |
---|
7623 | # original and so on. Autoconf is especially sensible to this). |
---|
7624 | . ./$as_me.lineno |
---|
7625 | # Exit status is that of the last command. |
---|
7626 | exit |
---|
7627 | } |
---|
7628 | |
---|
7629 | |
---|
7630 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
7631 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
7632 | ' ECHO_T=' ' ;; |
---|
7633 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
7634 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
7635 | esac |
---|
7636 | |
---|
7637 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
7638 | as_expr=expr |
---|
7639 | else |
---|
7640 | as_expr=false |
---|
7641 | fi |
---|
7642 | |
---|
7643 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7644 | echo >conf$$.file |
---|
7645 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
7646 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
7647 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
7648 | if test -f conf$$.exe; then |
---|
7649 | # Don't use ln at all; we don't have any links |
---|
7650 | as_ln_s='cp -p' |
---|
7651 | else |
---|
7652 | as_ln_s='ln -s' |
---|
7653 | fi |
---|
7654 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
7655 | as_ln_s=ln |
---|
7656 | else |
---|
7657 | as_ln_s='cp -p' |
---|
7658 | fi |
---|
7659 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7660 | |
---|
7661 | if mkdir -p . 2>/dev/null; then |
---|
7662 | as_mkdir_p=: |
---|
7663 | else |
---|
7664 | as_mkdir_p=false |
---|
7665 | fi |
---|
7666 | |
---|
7667 | as_executable_p="test -f" |
---|
7668 | |
---|
7669 | # Sed expression to map a string onto a valid CPP name. |
---|
7670 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
7671 | |
---|
7672 | # Sed expression to map a string onto a valid variable name. |
---|
7673 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
7674 | |
---|
7675 | |
---|
7676 | # IFS |
---|
7677 | # We need space, tab and new line, in precisely that order. |
---|
7678 | as_nl=' |
---|
7679 | ' |
---|
7680 | IFS=" $as_nl" |
---|
7681 | |
---|
7682 | # CDPATH. |
---|
7683 | $as_unset CDPATH |
---|
7684 | |
---|
7685 | exec 6>&1 |
---|
7686 | |
---|
7687 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
7688 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
7689 | # values after options handling. Logging --version etc. is OK. |
---|
7690 | exec 5>>config.log |
---|
7691 | { |
---|
7692 | echo |
---|
7693 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7694 | ## Running $as_me. ## |
---|
7695 | _ASBOX |
---|
7696 | } >&5 |
---|
7697 | cat >&5 <<_CSEOF |
---|
7698 | |
---|
7699 | This file was extended by Jabber Windowgram Client $as_me beta5, which was |
---|
7700 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
7701 | |
---|
7702 | CONFIG_FILES = $CONFIG_FILES |
---|
7703 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
7704 | CONFIG_LINKS = $CONFIG_LINKS |
---|
7705 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
7706 | $ $0 $@ |
---|
7707 | |
---|
7708 | _CSEOF |
---|
7709 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
7710 | echo >&5 |
---|
7711 | _ACEOF |
---|
7712 | |
---|
7713 | # Files that config.status was made for. |
---|
7714 | if test -n "$ac_config_files"; then |
---|
7715 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
7716 | fi |
---|
7717 | |
---|
7718 | if test -n "$ac_config_headers"; then |
---|
7719 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
7720 | fi |
---|
7721 | |
---|
7722 | if test -n "$ac_config_links"; then |
---|
7723 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
7724 | fi |
---|
7725 | |
---|
7726 | if test -n "$ac_config_commands"; then |
---|
7727 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
7728 | fi |
---|
7729 | |
---|
7730 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7731 | |
---|
7732 | ac_cs_usage="\ |
---|
7733 | \`$as_me' instantiates files from templates according to the |
---|
7734 | current configuration. |
---|
7735 | |
---|
7736 | Usage: $0 [OPTIONS] [FILE]... |
---|
7737 | |
---|
7738 | -h, --help print this help, then exit |
---|
7739 | -V, --version print version number, then exit |
---|
7740 | -q, --quiet do not print progress messages |
---|
7741 | -d, --debug don't remove temporary files |
---|
7742 | --recheck update $as_me by reconfiguring in the same conditions |
---|
7743 | --file=FILE[:TEMPLATE] |
---|
7744 | instantiate the configuration file FILE |
---|
7745 | --header=FILE[:TEMPLATE] |
---|
7746 | instantiate the configuration header FILE |
---|
7747 | |
---|
7748 | Configuration files: |
---|
7749 | $config_files |
---|
7750 | |
---|
7751 | Configuration headers: |
---|
7752 | $config_headers |
---|
7753 | |
---|
7754 | Configuration commands: |
---|
7755 | $config_commands |
---|
7756 | |
---|
7757 | Report bugs to <bug-autoconf@gnu.org>." |
---|
7758 | _ACEOF |
---|
7759 | |
---|
7760 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7761 | ac_cs_version="\\ |
---|
7762 | Jabber Windowgram Client config.status beta5 |
---|
7763 | configured by $0, generated by GNU Autoconf 2.57, |
---|
7764 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
7765 | |
---|
7766 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
7767 | Free Software Foundation, Inc. |
---|
7768 | This config.status script is free software; the Free Software Foundation |
---|
7769 | gives unlimited permission to copy, distribute and modify it." |
---|
7770 | srcdir=$srcdir |
---|
7771 | INSTALL="$INSTALL" |
---|
7772 | _ACEOF |
---|
7773 | |
---|
7774 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7775 | # If no file are specified by the user, then we need to provide default |
---|
7776 | # value. By we need to know if files were specified by the user. |
---|
7777 | ac_need_defaults=: |
---|
7778 | while test $# != 0 |
---|
7779 | do |
---|
7780 | case $1 in |
---|
7781 | --*=*) |
---|
7782 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
7783 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
7784 | ac_shift=: |
---|
7785 | ;; |
---|
7786 | -*) |
---|
7787 | ac_option=$1 |
---|
7788 | ac_optarg=$2 |
---|
7789 | ac_shift=shift |
---|
7790 | ;; |
---|
7791 | *) # This is not an option, so the user has probably given explicit |
---|
7792 | # arguments. |
---|
7793 | ac_option=$1 |
---|
7794 | ac_need_defaults=false;; |
---|
7795 | esac |
---|
7796 | |
---|
7797 | case $ac_option in |
---|
7798 | # Handling of the options. |
---|
7799 | _ACEOF |
---|
7800 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7801 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
7802 | ac_cs_recheck=: ;; |
---|
7803 | --version | --vers* | -V ) |
---|
7804 | echo "$ac_cs_version"; exit 0 ;; |
---|
7805 | --he | --h) |
---|
7806 | # Conflict between --help and --header |
---|
7807 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
7808 | Try \`$0 --help' for more information." >&5 |
---|
7809 | echo "$as_me: error: ambiguous option: $1 |
---|
7810 | Try \`$0 --help' for more information." >&2;} |
---|
7811 | { (exit 1); exit 1; }; };; |
---|
7812 | --help | --hel | -h ) |
---|
7813 | echo "$ac_cs_usage"; exit 0 ;; |
---|
7814 | --debug | --d* | -d ) |
---|
7815 | debug=: ;; |
---|
7816 | --file | --fil | --fi | --f ) |
---|
7817 | $ac_shift |
---|
7818 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
7819 | ac_need_defaults=false;; |
---|
7820 | --header | --heade | --head | --hea ) |
---|
7821 | $ac_shift |
---|
7822 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
7823 | ac_need_defaults=false;; |
---|
7824 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
7825 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
7826 | ac_cs_silent=: ;; |
---|
7827 | |
---|
7828 | # This is an error. |
---|
7829 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
7830 | Try \`$0 --help' for more information." >&5 |
---|
7831 | echo "$as_me: error: unrecognized option: $1 |
---|
7832 | Try \`$0 --help' for more information." >&2;} |
---|
7833 | { (exit 1); exit 1; }; } ;; |
---|
7834 | |
---|
7835 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
7836 | |
---|
7837 | esac |
---|
7838 | shift |
---|
7839 | done |
---|
7840 | |
---|
7841 | ac_configure_extra_args= |
---|
7842 | |
---|
7843 | if $ac_cs_silent; then |
---|
7844 | exec 6>/dev/null |
---|
7845 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
7846 | fi |
---|
7847 | |
---|
7848 | _ACEOF |
---|
7849 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7850 | if \$ac_cs_recheck; then |
---|
7851 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
7852 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
7853 | fi |
---|
7854 | |
---|
7855 | _ACEOF |
---|
7856 | |
---|
7857 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7858 | # |
---|
7859 | # INIT-COMMANDS section. |
---|
7860 | # |
---|
7861 | |
---|
7862 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
7863 | |
---|
7864 | _ACEOF |
---|
7865 | |
---|
7866 | |
---|
7867 | |
---|
7868 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7869 | for ac_config_target in $ac_config_targets |
---|
7870 | do |
---|
7871 | case "$ac_config_target" in |
---|
7872 | # Handling of arguments. |
---|
7873 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7874 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
---|
7875 | "lib/libxode/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/libxode/Makefile" ;; |
---|
7876 | "lib/libjabber/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/libjabber/Makefile" ;; |
---|
7877 | "lib/libjwgc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/libjwgc/Makefile" ;; |
---|
7878 | "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;; |
---|
7879 | "clients/jwgc/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/jwgc/Makefile" ;; |
---|
7880 | "clients/jlocate/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/jlocate/Makefile" ;; |
---|
7881 | "clients/jwrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/jwrite/Makefile" ;; |
---|
7882 | "clients/jctl/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/jctl/Makefile" ;; |
---|
7883 | "clients/jstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/jstat/Makefile" ;; |
---|
7884 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
7885 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
7886 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
7887 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
7888 | { (exit 1); exit 1; }; };; |
---|
7889 | esac |
---|
7890 | done |
---|
7891 | |
---|
7892 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7893 | # then the envvar interface is used. Set only those that are not. |
---|
7894 | # We use the long form for the default assignment because of an extremely |
---|
7895 | # bizarre bug on SunOS 4.1.3. |
---|
7896 | if $ac_need_defaults; then |
---|
7897 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7898 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
7899 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
7900 | fi |
---|
7901 | |
---|
7902 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7903 | # simply because there is no reason to put it here, and in addition, |
---|
7904 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7905 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
7906 | $debug || |
---|
7907 | { |
---|
7908 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
7909 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
7910 | } |
---|
7911 | |
---|
7912 | # Create a (secure) tmp directory for tmp files. |
---|
7913 | |
---|
7914 | { |
---|
7915 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
7916 | test -n "$tmp" && test -d "$tmp" |
---|
7917 | } || |
---|
7918 | { |
---|
7919 | tmp=./confstat$$-$RANDOM |
---|
7920 | (umask 077 && mkdir $tmp) |
---|
7921 | } || |
---|
7922 | { |
---|
7923 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
7924 | { (exit 1); exit 1; } |
---|
7925 | } |
---|
7926 | |
---|
7927 | _ACEOF |
---|
7928 | |
---|
7929 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7930 | |
---|
7931 | # |
---|
7932 | # CONFIG_FILES section. |
---|
7933 | # |
---|
7934 | |
---|
7935 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
7936 | # This happens for instance when ./config.status config.h |
---|
7937 | if test -n "\$CONFIG_FILES"; then |
---|
7938 | # Protect against being on the right side of a sed subst in config.status. |
---|
7939 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
7940 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
7941 | s,@SHELL@,$SHELL,;t t |
---|
7942 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
7943 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
7944 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
7945 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
7946 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
7947 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
7948 | s,@exec_prefix@,$exec_prefix,;t t |
---|
7949 | s,@prefix@,$prefix,;t t |
---|
7950 | s,@program_transform_name@,$program_transform_name,;t t |
---|
7951 | s,@bindir@,$bindir,;t t |
---|
7952 | s,@sbindir@,$sbindir,;t t |
---|
7953 | s,@libexecdir@,$libexecdir,;t t |
---|
7954 | s,@datadir@,$datadir,;t t |
---|
7955 | s,@sysconfdir@,$sysconfdir,;t t |
---|
7956 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
7957 | s,@localstatedir@,$localstatedir,;t t |
---|
7958 | s,@libdir@,$libdir,;t t |
---|
7959 | s,@includedir@,$includedir,;t t |
---|
7960 | s,@oldincludedir@,$oldincludedir,;t t |
---|
7961 | s,@infodir@,$infodir,;t t |
---|
7962 | s,@mandir@,$mandir,;t t |
---|
7963 | s,@build_alias@,$build_alias,;t t |
---|
7964 | s,@host_alias@,$host_alias,;t t |
---|
7965 | s,@target_alias@,$target_alias,;t t |
---|
7966 | s,@DEFS@,$DEFS,;t t |
---|
7967 | s,@ECHO_C@,$ECHO_C,;t t |
---|
7968 | s,@ECHO_N@,$ECHO_N,;t t |
---|
7969 | s,@ECHO_T@,$ECHO_T,;t t |
---|
7970 | s,@LIBS@,$LIBS,;t t |
---|
7971 | s,@build@,$build,;t t |
---|
7972 | s,@build_cpu@,$build_cpu,;t t |
---|
7973 | s,@build_vendor@,$build_vendor,;t t |
---|
7974 | s,@build_os@,$build_os,;t t |
---|
7975 | s,@host@,$host,;t t |
---|
7976 | s,@host_cpu@,$host_cpu,;t t |
---|
7977 | s,@host_vendor@,$host_vendor,;t t |
---|
7978 | s,@host_os@,$host_os,;t t |
---|
7979 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
7980 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
7981 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
7982 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
7983 | s,@PACKAGE@,$PACKAGE,;t t |
---|
7984 | s,@VERSION@,$VERSION,;t t |
---|
7985 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
7986 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
7987 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
7988 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
7989 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
7990 | s,@AMTAR@,$AMTAR,;t t |
---|
7991 | s,@install_sh@,$install_sh,;t t |
---|
7992 | s,@STRIP@,$STRIP,;t t |
---|
7993 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
7994 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
7995 | s,@AWK@,$AWK,;t t |
---|
7996 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
7997 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
7998 | s,@CC@,$CC,;t t |
---|
7999 | s,@CFLAGS@,$CFLAGS,;t t |
---|
8000 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
8001 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
8002 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
8003 | s,@EXEEXT@,$EXEEXT,;t t |
---|
8004 | s,@OBJEXT@,$OBJEXT,;t t |
---|
8005 | s,@DEPDIR@,$DEPDIR,;t t |
---|
8006 | s,@am__include@,$am__include,;t t |
---|
8007 | s,@am__quote@,$am__quote,;t t |
---|
8008 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
8009 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
8010 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
8011 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
8012 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
8013 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
8014 | s,@YACC@,$YACC,;t t |
---|
8015 | s,@RANLIB@,$RANLIB,;t t |
---|
8016 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
8017 | s,@CPP@,$CPP,;t t |
---|
8018 | s,@EGREP@,$EGREP,;t t |
---|
8019 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
8020 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
8021 | CEOF |
---|
8022 | |
---|
8023 | _ACEOF |
---|
8024 | |
---|
8025 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8026 | # Split the substitutions into bite-sized pieces for seds with |
---|
8027 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
8028 | ac_max_sed_lines=48 |
---|
8029 | ac_sed_frag=1 # Number of current file. |
---|
8030 | ac_beg=1 # First line for current file. |
---|
8031 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
8032 | ac_more_lines=: |
---|
8033 | ac_sed_cmds= |
---|
8034 | while $ac_more_lines; do |
---|
8035 | if test $ac_beg -gt 1; then |
---|
8036 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8037 | else |
---|
8038 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8039 | fi |
---|
8040 | if test ! -s $tmp/subs.frag; then |
---|
8041 | ac_more_lines=false |
---|
8042 | else |
---|
8043 | # The purpose of the label and of the branching condition is to |
---|
8044 | # speed up the sed processing (if there are no `@' at all, there |
---|
8045 | # is no need to browse any of the substitutions). |
---|
8046 | # These are the two extra sed commands mentioned above. |
---|
8047 | (echo ':t |
---|
8048 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
8049 | if test -z "$ac_sed_cmds"; then |
---|
8050 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8051 | else |
---|
8052 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8053 | fi |
---|
8054 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
8055 | ac_beg=$ac_end |
---|
8056 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
8057 | fi |
---|
8058 | done |
---|
8059 | if test -z "$ac_sed_cmds"; then |
---|
8060 | ac_sed_cmds=cat |
---|
8061 | fi |
---|
8062 | fi # test -n "$CONFIG_FILES" |
---|
8063 | |
---|
8064 | _ACEOF |
---|
8065 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8066 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
8067 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8068 | case $ac_file in |
---|
8069 | - | *:- | *:-:* ) # input from stdin |
---|
8070 | cat >$tmp/stdin |
---|
8071 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8072 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8073 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8074 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8075 | * ) ac_file_in=$ac_file.in ;; |
---|
8076 | esac |
---|
8077 | |
---|
8078 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
8079 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8080 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8081 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8082 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8083 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8084 | . : '\(.\)' 2>/dev/null || |
---|
8085 | echo X"$ac_file" | |
---|
8086 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8087 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8088 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8089 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8090 | s/.*/./; q'` |
---|
8091 | { if $as_mkdir_p; then |
---|
8092 | mkdir -p "$ac_dir" |
---|
8093 | else |
---|
8094 | as_dir="$ac_dir" |
---|
8095 | as_dirs= |
---|
8096 | while test ! -d "$as_dir"; do |
---|
8097 | as_dirs="$as_dir $as_dirs" |
---|
8098 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8099 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8100 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8101 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8102 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8103 | . : '\(.\)' 2>/dev/null || |
---|
8104 | echo X"$as_dir" | |
---|
8105 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8106 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8107 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8108 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8109 | s/.*/./; q'` |
---|
8110 | done |
---|
8111 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8112 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8113 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8114 | { (exit 1); exit 1; }; }; } |
---|
8115 | |
---|
8116 | ac_builddir=. |
---|
8117 | |
---|
8118 | if test "$ac_dir" != .; then |
---|
8119 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
8120 | # A "../" for each directory in $ac_dir_suffix. |
---|
8121 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
8122 | else |
---|
8123 | ac_dir_suffix= ac_top_builddir= |
---|
8124 | fi |
---|
8125 | |
---|
8126 | case $srcdir in |
---|
8127 | .) # No --srcdir option. We are building in place. |
---|
8128 | ac_srcdir=. |
---|
8129 | if test -z "$ac_top_builddir"; then |
---|
8130 | ac_top_srcdir=. |
---|
8131 | else |
---|
8132 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
8133 | fi ;; |
---|
8134 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
8135 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8136 | ac_top_srcdir=$srcdir ;; |
---|
8137 | *) # Relative path. |
---|
8138 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
8139 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
8140 | esac |
---|
8141 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
8142 | # absolute. |
---|
8143 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
8144 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
8145 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
8146 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
8147 | |
---|
8148 | |
---|
8149 | case $INSTALL in |
---|
8150 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
8151 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
8152 | esac |
---|
8153 | |
---|
8154 | if test x"$ac_file" != x-; then |
---|
8155 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8156 | echo "$as_me: creating $ac_file" >&6;} |
---|
8157 | rm -f "$ac_file" |
---|
8158 | fi |
---|
8159 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8160 | # use $as_me), people would be surprised to read: |
---|
8161 | # /* config.h. Generated by config.status. */ |
---|
8162 | if test x"$ac_file" = x-; then |
---|
8163 | configure_input= |
---|
8164 | else |
---|
8165 | configure_input="$ac_file. " |
---|
8166 | fi |
---|
8167 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
8168 | sed 's,.*/,,'` by configure." |
---|
8169 | |
---|
8170 | # First look for the input files in the build tree, otherwise in the |
---|
8171 | # src tree. |
---|
8172 | ac_file_inputs=`IFS=: |
---|
8173 | for f in $ac_file_in; do |
---|
8174 | case $f in |
---|
8175 | -) echo $tmp/stdin ;; |
---|
8176 | [\\/$]*) |
---|
8177 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8178 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8179 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8180 | { (exit 1); exit 1; }; } |
---|
8181 | echo $f;; |
---|
8182 | *) # Relative |
---|
8183 | if test -f "$f"; then |
---|
8184 | # Build tree |
---|
8185 | echo $f |
---|
8186 | elif test -f "$srcdir/$f"; then |
---|
8187 | # Source tree |
---|
8188 | echo $srcdir/$f |
---|
8189 | else |
---|
8190 | # /dev/null tree |
---|
8191 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8192 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8193 | { (exit 1); exit 1; }; } |
---|
8194 | fi;; |
---|
8195 | esac |
---|
8196 | done` || { (exit 1); exit 1; } |
---|
8197 | _ACEOF |
---|
8198 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8199 | sed "$ac_vpsub |
---|
8200 | $extrasub |
---|
8201 | _ACEOF |
---|
8202 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8203 | :t |
---|
8204 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8205 | s,@configure_input@,$configure_input,;t t |
---|
8206 | s,@srcdir@,$ac_srcdir,;t t |
---|
8207 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
8208 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
8209 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
8210 | s,@builddir@,$ac_builddir,;t t |
---|
8211 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
8212 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
8213 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
8214 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
8215 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
8216 | rm -f $tmp/stdin |
---|
8217 | if test x"$ac_file" != x-; then |
---|
8218 | mv $tmp/out $ac_file |
---|
8219 | else |
---|
8220 | cat $tmp/out |
---|
8221 | rm -f $tmp/out |
---|
8222 | fi |
---|
8223 | |
---|
8224 | done |
---|
8225 | _ACEOF |
---|
8226 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8227 | |
---|
8228 | # |
---|
8229 | # CONFIG_HEADER section. |
---|
8230 | # |
---|
8231 | |
---|
8232 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
8233 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
8234 | # |
---|
8235 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
8236 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
8237 | ac_dB='[ ].*$,\1#\2' |
---|
8238 | ac_dC=' ' |
---|
8239 | ac_dD=',;t' |
---|
8240 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
8241 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
8242 | ac_uB='$,\1#\2define\3' |
---|
8243 | ac_uC=' ' |
---|
8244 | ac_uD=',;t' |
---|
8245 | |
---|
8246 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
8247 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8248 | case $ac_file in |
---|
8249 | - | *:- | *:-:* ) # input from stdin |
---|
8250 | cat >$tmp/stdin |
---|
8251 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8252 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8253 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8254 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8255 | * ) ac_file_in=$ac_file.in ;; |
---|
8256 | esac |
---|
8257 | |
---|
8258 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8259 | echo "$as_me: creating $ac_file" >&6;} |
---|
8260 | |
---|
8261 | # First look for the input files in the build tree, otherwise in the |
---|
8262 | # src tree. |
---|
8263 | ac_file_inputs=`IFS=: |
---|
8264 | for f in $ac_file_in; do |
---|
8265 | case $f in |
---|
8266 | -) echo $tmp/stdin ;; |
---|
8267 | [\\/$]*) |
---|
8268 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8269 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8270 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8271 | { (exit 1); exit 1; }; } |
---|
8272 | echo $f;; |
---|
8273 | *) # Relative |
---|
8274 | if test -f "$f"; then |
---|
8275 | # Build tree |
---|
8276 | echo $f |
---|
8277 | elif test -f "$srcdir/$f"; then |
---|
8278 | # Source tree |
---|
8279 | echo $srcdir/$f |
---|
8280 | else |
---|
8281 | # /dev/null tree |
---|
8282 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8283 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8284 | { (exit 1); exit 1; }; } |
---|
8285 | fi;; |
---|
8286 | esac |
---|
8287 | done` || { (exit 1); exit 1; } |
---|
8288 | # Remove the trailing spaces. |
---|
8289 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
8290 | |
---|
8291 | _ACEOF |
---|
8292 | |
---|
8293 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
8294 | # `conftest.undefs', that substitutes the proper values into |
---|
8295 | # config.h.in to produce config.h. The first handles `#define' |
---|
8296 | # templates, and the second `#undef' templates. |
---|
8297 | # And first: Protect against being on the right side of a sed subst in |
---|
8298 | # config.status. Protect against being in an unquoted here document |
---|
8299 | # in config.status. |
---|
8300 | rm -f conftest.defines conftest.undefs |
---|
8301 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
8302 | # Putting comments in sed scripts is not portable. |
---|
8303 | # |
---|
8304 | # `end' is used to avoid that the second main sed command (meant for |
---|
8305 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
8306 | # See the Autoconf documentation for `clear'. |
---|
8307 | cat >confdef2sed.sed <<\_ACEOF |
---|
8308 | s/[\\&,]/\\&/g |
---|
8309 | s,[\\$`],\\&,g |
---|
8310 | t clear |
---|
8311 | : clear |
---|
8312 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
8313 | t end |
---|
8314 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
8315 | : end |
---|
8316 | _ACEOF |
---|
8317 | # If some macros were called several times there might be several times |
---|
8318 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
8319 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
8320 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
8321 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
8322 | rm -f confdef2sed.sed |
---|
8323 | |
---|
8324 | # This sed command replaces #undef with comments. This is necessary, for |
---|
8325 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
8326 | # on some systems where configure will not decide to define it. |
---|
8327 | cat >>conftest.undefs <<\_ACEOF |
---|
8328 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
8329 | _ACEOF |
---|
8330 | |
---|
8331 | # Break up conftest.defines because some shells have a limit on the size |
---|
8332 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8333 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
8334 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
8335 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
8336 | echo ' :' >>$CONFIG_STATUS |
---|
8337 | rm -f conftest.tail |
---|
8338 | while grep . conftest.defines >/dev/null |
---|
8339 | do |
---|
8340 | # Write a limited-size here document to $tmp/defines.sed. |
---|
8341 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
8342 | # Speed up: don't consider the non `#define' lines. |
---|
8343 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
8344 | # Work around the forget-to-reset-the-flag bug. |
---|
8345 | echo 't clr' >>$CONFIG_STATUS |
---|
8346 | echo ': clr' >>$CONFIG_STATUS |
---|
8347 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
8348 | echo 'CEOF |
---|
8349 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
8350 | rm -f $tmp/in |
---|
8351 | mv $tmp/out $tmp/in |
---|
8352 | ' >>$CONFIG_STATUS |
---|
8353 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
8354 | rm -f conftest.defines |
---|
8355 | mv conftest.tail conftest.defines |
---|
8356 | done |
---|
8357 | rm -f conftest.defines |
---|
8358 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
8359 | echo >>$CONFIG_STATUS |
---|
8360 | |
---|
8361 | # Break up conftest.undefs because some shells have a limit on the size |
---|
8362 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8363 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
8364 | rm -f conftest.tail |
---|
8365 | while grep . conftest.undefs >/dev/null |
---|
8366 | do |
---|
8367 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
8368 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
8369 | # Speed up: don't consider the non `#undef' |
---|
8370 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
8371 | # Work around the forget-to-reset-the-flag bug. |
---|
8372 | echo 't clr' >>$CONFIG_STATUS |
---|
8373 | echo ': clr' >>$CONFIG_STATUS |
---|
8374 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
8375 | echo 'CEOF |
---|
8376 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
8377 | rm -f $tmp/in |
---|
8378 | mv $tmp/out $tmp/in |
---|
8379 | ' >>$CONFIG_STATUS |
---|
8380 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
8381 | rm -f conftest.undefs |
---|
8382 | mv conftest.tail conftest.undefs |
---|
8383 | done |
---|
8384 | rm -f conftest.undefs |
---|
8385 | |
---|
8386 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8387 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8388 | # use $as_me), people would be surprised to read: |
---|
8389 | # /* config.h. Generated by config.status. */ |
---|
8390 | if test x"$ac_file" = x-; then |
---|
8391 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
8392 | else |
---|
8393 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
8394 | fi |
---|
8395 | cat $tmp/in >>$tmp/config.h |
---|
8396 | rm -f $tmp/in |
---|
8397 | if test x"$ac_file" != x-; then |
---|
8398 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
8399 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
8400 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
8401 | else |
---|
8402 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8403 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8404 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8405 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8406 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8407 | . : '\(.\)' 2>/dev/null || |
---|
8408 | echo X"$ac_file" | |
---|
8409 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8410 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8411 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8412 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8413 | s/.*/./; q'` |
---|
8414 | { if $as_mkdir_p; then |
---|
8415 | mkdir -p "$ac_dir" |
---|
8416 | else |
---|
8417 | as_dir="$ac_dir" |
---|
8418 | as_dirs= |
---|
8419 | while test ! -d "$as_dir"; do |
---|
8420 | as_dirs="$as_dir $as_dirs" |
---|
8421 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8422 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8423 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8424 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8425 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8426 | . : '\(.\)' 2>/dev/null || |
---|
8427 | echo X"$as_dir" | |
---|
8428 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8429 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8430 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8431 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8432 | s/.*/./; q'` |
---|
8433 | done |
---|
8434 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8435 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8436 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8437 | { (exit 1); exit 1; }; }; } |
---|
8438 | |
---|
8439 | rm -f $ac_file |
---|
8440 | mv $tmp/config.h $ac_file |
---|
8441 | fi |
---|
8442 | else |
---|
8443 | cat $tmp/config.h |
---|
8444 | rm -f $tmp/config.h |
---|
8445 | fi |
---|
8446 | # Compute $ac_file's index in $config_headers. |
---|
8447 | _am_stamp_count=1 |
---|
8448 | for _am_header in $config_headers :; do |
---|
8449 | case $_am_header in |
---|
8450 | $ac_file | $ac_file:* ) |
---|
8451 | break ;; |
---|
8452 | * ) |
---|
8453 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
8454 | esac |
---|
8455 | done |
---|
8456 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
8457 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8458 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
8459 | X$ac_file : 'X\(//\)$' \| \ |
---|
8460 | X$ac_file : 'X\(/\)' \| \ |
---|
8461 | . : '\(.\)' 2>/dev/null || |
---|
8462 | echo X$ac_file | |
---|
8463 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8464 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8465 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8466 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8467 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
8468 | done |
---|
8469 | _ACEOF |
---|
8470 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8471 | |
---|
8472 | # |
---|
8473 | # CONFIG_COMMANDS section. |
---|
8474 | # |
---|
8475 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
8476 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
8477 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8478 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
8479 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8480 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
8481 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
8482 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
8483 | . : '\(.\)' 2>/dev/null || |
---|
8484 | echo X"$ac_dest" | |
---|
8485 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8486 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8487 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8488 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8489 | s/.*/./; q'` |
---|
8490 | ac_builddir=. |
---|
8491 | |
---|
8492 | if test "$ac_dir" != .; then |
---|
8493 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
8494 | # A "../" for each directory in $ac_dir_suffix. |
---|
8495 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
8496 | else |
---|
8497 | ac_dir_suffix= ac_top_builddir= |
---|
8498 | fi |
---|
8499 | |
---|
8500 | case $srcdir in |
---|
8501 | .) # No --srcdir option. We are building in place. |
---|
8502 | ac_srcdir=. |
---|
8503 | if test -z "$ac_top_builddir"; then |
---|
8504 | ac_top_srcdir=. |
---|
8505 | else |
---|
8506 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
8507 | fi ;; |
---|
8508 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
8509 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8510 | ac_top_srcdir=$srcdir ;; |
---|
8511 | *) # Relative path. |
---|
8512 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
8513 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
8514 | esac |
---|
8515 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
8516 | # absolute. |
---|
8517 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
8518 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
8519 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
8520 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
8521 | |
---|
8522 | |
---|
8523 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
8524 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
8525 | case $ac_dest in |
---|
8526 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
8527 | # Strip MF so we end up with the name of the file. |
---|
8528 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
8529 | # Check whether this is an Automake generated Makefile or not. |
---|
8530 | # We used to match only the files named `Makefile.in', but |
---|
8531 | # some people rename them; so instead we look at the file content. |
---|
8532 | # Grep'ing the first line is not enough: some people post-process |
---|
8533 | # each Makefile.in and add a new line on top of each file to say so. |
---|
8534 | # So let's grep whole file. |
---|
8535 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
8536 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
8537 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8538 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
8539 | X"$mf" : 'X\(//\)$' \| \ |
---|
8540 | X"$mf" : 'X\(/\)' \| \ |
---|
8541 | . : '\(.\)' 2>/dev/null || |
---|
8542 | echo X"$mf" | |
---|
8543 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8544 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8545 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8546 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8547 | s/.*/./; q'` |
---|
8548 | else |
---|
8549 | continue |
---|
8550 | fi |
---|
8551 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
8552 | # Extract the definition of DEP_FILES from the Makefile without |
---|
8553 | # running `make'. |
---|
8554 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
8555 | test -z "$DEPDIR" && continue |
---|
8556 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
8557 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
8558 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
8559 | # We invoke sed twice because it is the simplest approach to |
---|
8560 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
8561 | for file in `sed -n -e ' |
---|
8562 | /^DEP_FILES = .*\\\\$/ { |
---|
8563 | s/^DEP_FILES = // |
---|
8564 | :loop |
---|
8565 | s/\\\\$// |
---|
8566 | p |
---|
8567 | n |
---|
8568 | /\\\\$/ b loop |
---|
8569 | p |
---|
8570 | } |
---|
8571 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
8572 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
8573 | # Make sure the directory exists. |
---|
8574 | test -f "$dirpart/$file" && continue |
---|
8575 | fdir=`(dirname "$file") 2>/dev/null || |
---|
8576 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8577 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
8578 | X"$file" : 'X\(//\)$' \| \ |
---|
8579 | X"$file" : 'X\(/\)' \| \ |
---|
8580 | . : '\(.\)' 2>/dev/null || |
---|
8581 | echo X"$file" | |
---|
8582 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8583 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8584 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8585 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8586 | s/.*/./; q'` |
---|
8587 | { if $as_mkdir_p; then |
---|
8588 | mkdir -p $dirpart/$fdir |
---|
8589 | else |
---|
8590 | as_dir=$dirpart/$fdir |
---|
8591 | as_dirs= |
---|
8592 | while test ! -d "$as_dir"; do |
---|
8593 | as_dirs="$as_dir $as_dirs" |
---|
8594 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8595 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8596 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8597 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8598 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8599 | . : '\(.\)' 2>/dev/null || |
---|
8600 | echo X"$as_dir" | |
---|
8601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8602 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8603 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8604 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8605 | s/.*/./; q'` |
---|
8606 | done |
---|
8607 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8608 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
8609 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
8610 | { (exit 1); exit 1; }; }; } |
---|
8611 | |
---|
8612 | # echo "creating $dirpart/$file" |
---|
8613 | echo '# dummy' > "$dirpart/$file" |
---|
8614 | done |
---|
8615 | done |
---|
8616 | ;; |
---|
8617 | esac |
---|
8618 | done |
---|
8619 | _ACEOF |
---|
8620 | |
---|
8621 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8622 | |
---|
8623 | { (exit 0); exit 0; } |
---|
8624 | _ACEOF |
---|
8625 | chmod +x $CONFIG_STATUS |
---|
8626 | ac_clean_files=$ac_clean_files_save |
---|
8627 | |
---|
8628 | |
---|
8629 | # configure is writing to config.log, and then calls config.status. |
---|
8630 | # config.status does its own redirection, appending to config.log. |
---|
8631 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
8632 | # by configure, so config.status won't be able to write to it; its |
---|
8633 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
8634 | # effectively closing config.log, so it can be properly (re)opened and |
---|
8635 | # appended to by config.status. When coming back to configure, we |
---|
8636 | # need to make the FD available again. |
---|
8637 | if test "$no_create" != yes; then |
---|
8638 | ac_cs_success=: |
---|
8639 | ac_config_status_args= |
---|
8640 | test "$silent" = yes && |
---|
8641 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
8642 | exec 5>/dev/null |
---|
8643 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
8644 | exec 5>>config.log |
---|
8645 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
8646 | # would make configure fail if this is the last instruction. |
---|
8647 | $ac_cs_success || { (exit 1); exit 1; } |
---|
8648 | fi |
---|
8649 | |
---|