Parent Directory
|
Revision Log
create 7.2 branch, we can move/rename it as needed.
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59 for ircd-hybrid 7.2. |
4 | # |
5 | # $Id$ |
6 | # |
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
8 | # This configure script is free software; the Free Software Foundation |
9 | # gives unlimited permission to copy, distribute and modify it. |
10 | ## --------------------- ## |
11 | ## M4sh Initialization. ## |
12 | ## --------------------- ## |
13 | |
14 | # Be Bourne compatible |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh |
17 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
22 | set -o posix |
23 | fi |
24 | DUALCASE=1; export DUALCASE # for MKS sh |
25 | |
26 | # Support unset when possible. |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
28 | as_unset=unset |
29 | else |
30 | as_unset=false |
31 | fi |
32 | |
33 | |
34 | # Work around bugs in pre-3.0 UWIN ksh. |
35 | $as_unset ENV MAIL MAILPATH |
36 | PS1='$ ' |
37 | PS2='> ' |
38 | PS4='+ ' |
39 | |
40 | # NLS nuisances. |
41 | for as_var in \ |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
44 | LC_TELEPHONE LC_TIME |
45 | do |
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 | eval $as_var=C; export $as_var |
48 | else |
49 | $as_unset $as_var |
50 | fi |
51 | done |
52 | |
53 | # Required to use basename. |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
55 | as_expr=expr |
56 | else |
57 | as_expr=false |
58 | fi |
59 | |
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
61 | as_basename=basename |
62 | else |
63 | as_basename=false |
64 | fi |
65 | |
66 | |
67 | # Name of the executable. |
68 | as_me=`$as_basename "$0" || |
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
70 | X"$0" : 'X\(//\)$' \| \ |
71 | X"$0" : 'X\(/\)$' \| \ |
72 | . : '\(.\)' 2>/dev/null || |
73 | echo X/"$0" | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
77 | s/.*/./; q'` |
78 | |
79 | |
80 | # PATH needs CR, and LINENO needs CR and PATH. |
81 | # Avoid depending upon Character Ranges. |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
85 | as_cr_digits='0123456789' |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
87 | |
88 | # The user is always right. |
89 | if test "${PATH_SEPARATOR+set}" != set; then |
90 | echo "#! /bin/sh" >conf$$.sh |
91 | echo "exit 0" >>conf$$.sh |
92 | chmod +x conf$$.sh |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
94 | PATH_SEPARATOR=';' |
95 | else |
96 | PATH_SEPARATOR=: |
97 | fi |
98 | rm -f conf$$.sh |
99 | fi |
100 | |
101 | |
102 | as_lineno_1=$LINENO |
103 | as_lineno_2=$LINENO |
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
107 | # Find who we are. Look in the path if we contain no path at all |
108 | # relative or not. |
109 | case $0 in |
110 | *[\\/]* ) as_myself=$0 ;; |
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
112 | for as_dir in $PATH |
113 | do |
114 | IFS=$as_save_IFS |
115 | test -z "$as_dir" && as_dir=. |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
117 | done |
118 | |
119 | ;; |
120 | esac |
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
122 | # in which case we are not to be found in the path. |
123 | if test "x$as_myself" = x; then |
124 | as_myself=$0 |
125 | fi |
126 | if test ! -f "$as_myself"; then |
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
128 | { (exit 1); exit 1; }; } |
129 | fi |
130 | case $CONFIG_SHELL in |
131 | '') |
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
134 | do |
135 | IFS=$as_save_IFS |
136 | test -z "$as_dir" && as_dir=. |
137 | for as_base in sh bash ksh sh5; do |
138 | case $as_dir in |
139 | /*) |
140 | if ("$as_dir/$as_base" -c ' |
141 | as_lineno_1=$LINENO |
142 | as_lineno_2=$LINENO |
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
148 | CONFIG_SHELL=$as_dir/$as_base |
149 | export CONFIG_SHELL |
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
151 | fi;; |
152 | esac |
153 | done |
154 | done |
155 | ;; |
156 | esac |
157 | |
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
160 | # line-number line before each line; the second 'sed' does the real |
161 | # work. The second script uses 'N' to pair each line-number line |
162 | # with the numbered line, and appends trailing '-' during |
163 | # substitution so that $LINENO is not a special case at line end. |
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
166 | sed '=' <$as_myself | |
167 | sed ' |
168 | N |
169 | s,$,-, |
170 | : loop |
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
172 | t loop |
173 | s,-$,, |
174 | s,^['$as_cr_digits']*\n,, |
175 | ' >$as_me.lineno && |
176 | chmod +x $as_me.lineno || |
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
178 | { (exit 1); exit 1; }; } |
179 | |
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
181 | # (the dirname of $[0] is not the place where we might find the |
182 | # original and so on. Autoconf is especially sensible to this). |
183 | . ./$as_me.lineno |
184 | # Exit status is that of the last command. |
185 | exit |
186 | } |
187 | |
188 | |
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
190 | *c*,-n*) ECHO_N= ECHO_C=' |
191 | ' ECHO_T=' ' ;; |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
194 | esac |
195 | |
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
197 | as_expr=expr |
198 | else |
199 | as_expr=false |
200 | fi |
201 | |
202 | rm -f conf$$ conf$$.exe conf$$.file |
203 | echo >conf$$.file |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
207 | if test -f conf$$.exe; then |
208 | # Don't use ln at all; we don't have any links |
209 | as_ln_s='cp -p' |
210 | else |
211 | as_ln_s='ln -s' |
212 | fi |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
214 | as_ln_s=ln |
215 | else |
216 | as_ln_s='cp -p' |
217 | fi |
218 | rm -f conf$$ conf$$.exe conf$$.file |
219 | |
220 | if mkdir -p . 2>/dev/null; then |
221 | as_mkdir_p=: |
222 | else |
223 | test -d ./-p && rmdir ./-p |
224 | as_mkdir_p=false |
225 | fi |
226 | |
227 | as_executable_p="test -f" |
228 | |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
231 | |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
234 | |
235 | |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. |
238 | as_nl=' |
239 | ' |
240 | IFS=" $as_nl" |
241 | |
242 | # CDPATH. |
243 | $as_unset CDPATH |
244 | |
245 | |
246 | # Name of the host. |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
248 | # so uname gets run too. |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
250 | |
251 | exec 6>&1 |
252 | |
253 | # |
254 | # Initializations. |
255 | # |
256 | ac_default_prefix=/usr/local |
257 | ac_config_libobj_dir=. |
258 | cross_compiling=no |
259 | subdirs= |
260 | MFLAGS= |
261 | MAKEFLAGS= |
262 | SHELL=${CONFIG_SHELL-/bin/sh} |
263 | |
264 | # Maximum number of lines to put in a shell here document. |
265 | # This variable seems obsolete. It should probably be removed, and |
266 | # only ac_max_sed_lines should be used. |
267 | : ${ac_max_here_lines=38} |
268 | |
269 | # Identity of this package. |
270 | PACKAGE_NAME='ircd-hybrid' |
271 | PACKAGE_TARNAME='ircd-hybrid' |
272 | PACKAGE_VERSION='7.2' |
273 | PACKAGE_STRING='ircd-hybrid 7.2' |
274 | PACKAGE_BUGREPORT='' |
275 | |
276 | ac_default_prefix=/usr/local/ircd |
277 | # Factoring default headers for most tests. |
278 | ac_includes_default="\ |
279 | #include <stdio.h> |
280 | #if HAVE_SYS_TYPES_H |
281 | # include <sys/types.h> |
282 | #endif |
283 | #if HAVE_SYS_STAT_H |
284 | # include <sys/stat.h> |
285 | #endif |
286 | #if STDC_HEADERS |
287 | # include <stdlib.h> |
288 | # include <stddef.h> |
289 | #else |
290 | # if HAVE_STDLIB_H |
291 | # include <stdlib.h> |
292 | # endif |
293 | #endif |
294 | #if HAVE_STRING_H |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
296 | # include <memory.h> |
297 | # endif |
298 | # include <string.h> |
299 | #endif |
300 | #if HAVE_STRINGS_H |
301 | # include <strings.h> |
302 | #endif |
303 | #if HAVE_INTTYPES_H |
304 | # include <inttypes.h> |
305 | #else |
306 | # if HAVE_STDINT_H |
307 | # include <stdint.h> |
308 | # endif |
309 | #endif |
310 | #if HAVE_UNISTD_H |
311 | # include <unistd.h> |
312 | #endif" |
313 | |
314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MKDEP MAKEDEPEND STDOUT CPP EGREP SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CP MV LN SED AR LD TEST INET_MISC CRYPT_C CRYPT_LIB SNPRINTF_C ENCSPEED ZLIB_LD SELECT_TYPE CLOBBER BALLOC_C EXAMPLE_CONF MODULES_LIBS MOD_TARGET SSL_SRCS_ENABLE SSL_INCLUDES SSL_LIBS PICFLAGS IRC_CFLAGS SEDOBJ DYNLINK_C LIBOBJS LTLIBOBJS' |
315 | ac_subst_files='' |
316 | |
317 | # Initialize some variables set by options. |
318 | ac_init_help= |
319 | ac_init_version=false |
320 | # The variables have the same names as the options, with |
321 | # dashes changed to underlines. |
322 | cache_file=/dev/null |
323 | exec_prefix=NONE |
324 | no_create= |
325 | no_recursion= |
326 | prefix=NONE |
327 | program_prefix=NONE |
328 | program_suffix=NONE |
329 | program_transform_name=s,x,x, |
330 | silent= |
331 | site= |
332 | srcdir= |
333 | verbose= |
334 | x_includes=NONE |
335 | x_libraries=NONE |
336 | |
337 | # Installation directory options. |
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
339 | # and all the variables that are supposed to be based on exec_prefix |
340 | # by default will actually change. |
341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
342 | bindir='${exec_prefix}/bin' |
343 | sbindir='${exec_prefix}/sbin' |
344 | libexecdir='${exec_prefix}/libexec' |
345 | datadir='${prefix}/share' |
346 | sysconfdir='${prefix}/etc' |
347 | sharedstatedir='${prefix}/com' |
348 | localstatedir='${prefix}/var' |
349 | libdir='${exec_prefix}/lib' |
350 | includedir='${prefix}/include' |
351 | oldincludedir='/usr/include' |
352 | infodir='${prefix}/info' |
353 | mandir='${prefix}/man' |
354 | |
355 | ac_prev= |
356 | for ac_option |
357 | do |
358 | # If the previous option needs an argument, assign it. |
359 | if test -n "$ac_prev"; then |
360 | eval "$ac_prev=\$ac_option" |
361 | ac_prev= |
362 | continue |
363 | fi |
364 | |
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
366 | |
367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
368 | |
369 | case $ac_option in |
370 | |
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
372 | ac_prev=bindir ;; |
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
374 | bindir=$ac_optarg ;; |
375 | |
376 | -build | --build | --buil | --bui | --bu) |
377 | ac_prev=build_alias ;; |
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
379 | build_alias=$ac_optarg ;; |
380 | |
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
383 | ac_prev=cache_file ;; |
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
386 | cache_file=$ac_optarg ;; |
387 | |
388 | --config-cache | -C) |
389 | cache_file=config.cache ;; |
390 | |
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
392 | ac_prev=datadir ;; |
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
394 | | --da=*) |
395 | datadir=$ac_optarg ;; |
396 | |
397 | -disable-* | --disable-*) |
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
399 | # Reject names that are not valid shell variable names. |
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
402 | { (exit 1); exit 1; }; } |
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
404 | eval "enable_$ac_feature=no" ;; |
405 | |
406 | -enable-* | --enable-*) |
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
408 | # Reject names that are not valid shell variable names. |
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
411 | { (exit 1); exit 1; }; } |
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
413 | case $ac_option in |
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
415 | *) ac_optarg=yes ;; |
416 | esac |
417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
418 | |
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
421 | | --exec | --exe | --ex) |
422 | ac_prev=exec_prefix ;; |
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
425 | | --exec=* | --exe=* | --ex=*) |
426 | exec_prefix=$ac_optarg ;; |
427 | |
428 | -gas | --gas | --ga | --g) |
429 | # Obsolete; use --with-gas. |
430 | with_gas=yes ;; |
431 | |
432 | -help | --help | --hel | --he | -h) |
433 | ac_init_help=long ;; |
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
435 | ac_init_help=recursive ;; |
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
437 | ac_init_help=short ;; |
438 | |
439 | -host | --host | --hos | --ho) |
440 | ac_prev=host_alias ;; |
441 | -host=* | --host=* | --hos=* | --ho=*) |
442 | host_alias=$ac_optarg ;; |
443 | |
444 | -includedir | --includedir | --includedi | --included | --include \ |
445 | | --includ | --inclu | --incl | --inc) |
446 | ac_prev=includedir ;; |
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
449 | includedir=$ac_optarg ;; |
450 | |
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
452 | ac_prev=infodir ;; |
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
454 | infodir=$ac_optarg ;; |
455 | |
456 | -libdir | --libdir | --libdi | --libd) |
457 | ac_prev=libdir ;; |
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
459 | libdir=$ac_optarg ;; |
460 | |
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
462 | | --libexe | --libex | --libe) |
463 | ac_prev=libexecdir ;; |
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
465 | | --libexe=* | --libex=* | --libe=*) |
466 | libexecdir=$ac_optarg ;; |
467 | |
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
469 | | --localstate | --localstat | --localsta | --localst \ |
470 | | --locals | --local | --loca | --loc | --lo) |
471 | ac_prev=localstatedir ;; |
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
475 | localstatedir=$ac_optarg ;; |
476 | |
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
478 | ac_prev=mandir ;; |
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
480 | mandir=$ac_optarg ;; |
481 | |
482 | -nfp | --nfp | --nf) |
483 | # Obsolete; use --without-fp. |
484 | with_fp=no ;; |
485 | |
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
487 | | --no-cr | --no-c | -n) |
488 | no_create=yes ;; |
489 | |
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
492 | no_recursion=yes ;; |
493 | |
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
496 | | --oldin | --oldi | --old | --ol | --o) |
497 | ac_prev=oldincludedir ;; |
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
501 | oldincludedir=$ac_optarg ;; |
502 | |
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
504 | ac_prev=prefix ;; |
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
506 | prefix=$ac_optarg ;; |
507 | |
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
509 | | --program-pre | --program-pr | --program-p) |
510 | ac_prev=program_prefix ;; |
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
513 | program_prefix=$ac_optarg ;; |
514 | |
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
516 | | --program-suf | --program-su | --program-s) |
517 | ac_prev=program_suffix ;; |
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
520 | program_suffix=$ac_optarg ;; |
521 | |
522 | -program-transform-name | --program-transform-name \ |
523 | | --program-transform-nam | --program-transform-na \ |
524 | | --program-transform-n | --program-transform- \ |
525 | | --program-transform | --program-transfor \ |
526 | | --program-transfo | --program-transf \ |
527 | | --program-trans | --program-tran \ |
528 | | --progr-tra | --program-tr | --program-t) |
529 | ac_prev=program_transform_name ;; |
530 | -program-transform-name=* | --program-transform-name=* \ |
531 | | --program-transform-nam=* | --program-transform-na=* \ |
532 | | --program-transform-n=* | --program-transform-=* \ |
533 | | --program-transform=* | --program-transfor=* \ |
534 | | --program-transfo=* | --program-transf=* \ |
535 | | --program-trans=* | --program-tran=* \ |
536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
537 | program_transform_name=$ac_optarg ;; |
538 | |
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
540 | | -silent | --silent | --silen | --sile | --sil) |
541 | silent=yes ;; |
542 | |
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
544 | ac_prev=sbindir ;; |
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
546 | | --sbi=* | --sb=*) |
547 | sbindir=$ac_optarg ;; |
548 | |
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
551 | | --sharedst | --shareds | --shared | --share | --shar \ |
552 | | --sha | --sh) |
553 | ac_prev=sharedstatedir ;; |
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
557 | | --sha=* | --sh=*) |
558 | sharedstatedir=$ac_optarg ;; |
559 | |
560 | -site | --site | --sit) |
561 | ac_prev=site ;; |
562 | -site=* | --site=* | --sit=*) |
563 | site=$ac_optarg ;; |
564 | |
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
566 | ac_prev=srcdir ;; |
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
568 | srcdir=$ac_optarg ;; |
569 | |
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
571 | | --syscon | --sysco | --sysc | --sys | --sy) |
572 | ac_prev=sysconfdir ;; |
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
575 | sysconfdir=$ac_optarg ;; |
576 | |
577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
578 | ac_prev=target_alias ;; |
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
580 | target_alias=$ac_optarg ;; |
581 | |
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
583 | verbose=yes ;; |
584 | |
585 | -version | --version | --versio | --versi | --vers | -V) |
586 | ac_init_version=: ;; |
587 | |
588 | -with-* | --with-*) |
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
590 | # Reject names that are not valid shell variable names. |
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
593 | { (exit 1); exit 1; }; } |
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
595 | case $ac_option in |
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
597 | *) ac_optarg=yes ;; |
598 | esac |
599 | eval "with_$ac_package='$ac_optarg'" ;; |
600 | |
601 | -without-* | --without-*) |
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
603 | # Reject names that are not valid shell variable names. |
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
606 | { (exit 1); exit 1; }; } |
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
608 | eval "with_$ac_package=no" ;; |
609 | |
610 | --x) |
611 | # Obsolete; use --with-x. |
612 | with_x=yes ;; |
613 | |
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
615 | | --x-incl | --x-inc | --x-in | --x-i) |
616 | ac_prev=x_includes ;; |
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
619 | x_includes=$ac_optarg ;; |
620 | |
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
623 | ac_prev=x_libraries ;; |
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
626 | x_libraries=$ac_optarg ;; |
627 | |
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
629 | Try \`$0 --help' for more information." >&2 |
630 | { (exit 1); exit 1; }; } |
631 | ;; |
632 | |
633 | *=*) |
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
635 | # Reject names that are not valid shell variable names. |
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
638 | { (exit 1); exit 1; }; } |
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
640 | eval "$ac_envvar='$ac_optarg'" |
641 | export $ac_envvar ;; |
642 | |
643 | *) |
644 | # FIXME: should be removed in autoconf 3.0. |
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
649 | ;; |
650 | |
651 | esac |
652 | done |
653 | |
654 | if test -n "$ac_prev"; then |
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
657 | { (exit 1); exit 1; }; } |
658 | fi |
659 | |
660 | # Be sure to have absolute paths. |
661 | for ac_var in exec_prefix prefix |
662 | do |
663 | eval ac_val=$`echo $ac_var` |
664 | case $ac_val in |
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
667 | { (exit 1); exit 1; }; };; |
668 | esac |
669 | done |
670 | |
671 | # Be sure to have absolute paths. |
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
673 | localstatedir libdir includedir oldincludedir infodir mandir |
674 | do |
675 | eval ac_val=$`echo $ac_var` |
676 | case $ac_val in |
677 | [\\/$]* | ?:[\\/]* ) ;; |
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
679 | { (exit 1); exit 1; }; };; |
680 | esac |
681 | done |
682 | |
683 | # There might be people who depend on the old broken behavior: `$host' |
684 | # used to hold the argument of --host etc. |
685 | # FIXME: To remove some day. |
686 | build=$build_alias |
687 | host=$host_alias |
688 | target=$target_alias |
689 | |
690 | # FIXME: To remove some day. |
691 | if test "x$host_alias" != x; then |
692 | if test "x$build_alias" = x; then |
693 | cross_compiling=maybe |
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
696 | elif test "x$build_alias" != "x$host_alias"; then |
697 | cross_compiling=yes |
698 | fi |
699 | fi |
700 | |
701 | ac_tool_prefix= |
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
703 | |
704 | test "$silent" = yes && exec 6>/dev/null |
705 | |
706 | |
707 | # Find the source files, if location was not specified. |
708 | if test -z "$srcdir"; then |
709 | ac_srcdir_defaulted=yes |
710 | # Try the directory containing this script, then its parent. |
711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
713 | X"$0" : 'X\(//\)[^/]' \| \ |
714 | X"$0" : 'X\(//\)$' \| \ |
715 | X"$0" : 'X\(/\)' \| \ |
716 | . : '\(.\)' 2>/dev/null || |
717 | echo X"$0" | |
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
720 | /^X\(\/\/\)$/{ s//\1/; q; } |
721 | /^X\(\/\).*/{ s//\1/; q; } |
722 | s/.*/./; q'` |
723 | srcdir=$ac_confdir |
724 | if test ! -r $srcdir/$ac_unique_file; then |
725 | srcdir=.. |
726 | fi |
727 | else |
728 | ac_srcdir_defaulted=no |
729 | fi |
730 | if test ! -r $srcdir/$ac_unique_file; then |
731 | if test "$ac_srcdir_defaulted" = yes; then |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
733 | { (exit 1); exit 1; }; } |
734 | else |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
736 | { (exit 1); exit 1; }; } |
737 | fi |
738 | fi |
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
741 | { (exit 1); exit 1; }; } |
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
743 | ac_env_build_alias_set=${build_alias+set} |
744 | ac_env_build_alias_value=$build_alias |
745 | ac_cv_env_build_alias_set=${build_alias+set} |
746 | ac_cv_env_build_alias_value=$build_alias |
747 | ac_env_host_alias_set=${host_alias+set} |
748 | ac_env_host_alias_value=$host_alias |
749 | ac_cv_env_host_alias_set=${host_alias+set} |
750 | ac_cv_env_host_alias_value=$host_alias |
751 | ac_env_target_alias_set=${target_alias+set} |
752 | ac_env_target_alias_value=$target_alias |
753 | ac_cv_env_target_alias_set=${target_alias+set} |
754 | ac_cv_env_target_alias_value=$target_alias |
755 | ac_env_CC_set=${CC+set} |
756 | ac_env_CC_value=$CC |
757 | ac_cv_env_CC_set=${CC+set} |
758 | ac_cv_env_CC_value=$CC |
759 | ac_env_CFLAGS_set=${CFLAGS+set} |
760 | ac_env_CFLAGS_value=$CFLAGS |
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
762 | ac_cv_env_CFLAGS_value=$CFLAGS |
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
764 | ac_env_LDFLAGS_value=$LDFLAGS |
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
771 | ac_env_CPP_set=${CPP+set} |
772 | ac_env_CPP_value=$CPP |
773 | ac_cv_env_CPP_set=${CPP+set} |
774 | ac_cv_env_CPP_value=$CPP |
775 | |
776 | # |
777 | # Report the --help message. |
778 | # |
779 | if test "$ac_init_help" = "long"; then |
780 | # Omit some internal or obsolete options to make the list less imposing. |
781 | # This message is too long to be a string in the A/UX 3.1 sh. |
782 | cat <<_ACEOF |
783 | \`configure' configures ircd-hybrid 7.2 to adapt to many kinds of systems. |
784 | |
785 | Usage: $0 [OPTION]... [VAR=VALUE]... |
786 | |
787 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
788 | VAR=VALUE. See below for descriptions of some of the useful variables. |
789 | |
790 | Defaults for the options are specified in brackets. |
791 | |
792 | Configuration: |
793 | -h, --help display this help and exit |
794 | --help=short display options specific to this package |
795 | --help=recursive display the short help of all the included packages |
796 | -V, --version display version information and exit |
797 | -q, --quiet, --silent do not print \`checking...' messages |
798 | --cache-file=FILE cache test results in FILE [disabled] |
799 | -C, --config-cache alias for \`--cache-file=config.cache' |
800 | -n, --no-create do not create output files |
801 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
802 | |
803 | _ACEOF |
804 | |
805 | cat <<_ACEOF |
806 | Installation directories: |
807 | --prefix=PREFIX install architecture-independent files in PREFIX |
808 | [$ac_default_prefix] |
809 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
810 | [PREFIX] |
811 | |
812 | By default, \`make install' will install all the files in |
813 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
814 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
815 | for instance \`--prefix=\$HOME'. |
816 | |
817 | For better control, use the options below. |
818 | |
819 | Fine tuning of the installation directories: |
820 | --bindir=DIR user executables [EPREFIX/bin] |
821 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
822 | --libexecdir=DIR program executables [EPREFIX/libexec] |
823 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
824 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
825 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
826 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
827 | --libdir=DIR object code libraries [EPREFIX/lib] |
828 | --includedir=DIR C header files [PREFIX/include] |
829 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
830 | --infodir=DIR info documentation [PREFIX/info] |
831 | --mandir=DIR man documentation [PREFIX/man] |
832 | _ACEOF |
833 | |
834 | cat <<\_ACEOF |
835 | _ACEOF |
836 | fi |
837 | |
838 | if test -n "$ac_init_help"; then |
839 | case $ac_init_help in |
840 | short | recursive ) echo "Configuration of ircd-hybrid 7.2:";; |
841 | esac |
842 | cat <<\_ACEOF |
843 | |
844 | Optional Features: |
845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
847 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
848 | --disable-openssl Disable OpenSSL support. |
849 | --disable-zlib Disable ziplinks support |
850 | --enable-poll Force poll() usage. |
851 | --enable-select Force select() usage. |
852 | --enable-kqueue Force kqueue() usage. |
853 | --enable-devpoll Force usage of /dev/poll. |
854 | --enable-rtsigio Enable SIGIO with RT Signals (Linux only) |
855 | --enable-epoll Enable Linux epoll support. |
856 | --enable-clobber Don't preserve old binaries on make install |
857 | --enable-assert Enable assert(). |
858 | --enable-profile Enable profiling |
859 | --enable-efence Enable ElectricFence (memory debugger). |
860 | --disable-block-alloc Disable the block allocator (Only useful with |
861 | ElectricFence) |
862 | --enable-warnings Enable all sorts of warnings for debugging. |
863 | --enable-small-net Enable small network support. |
864 | --enable-efnet For IRCDs running on EFnet. |
865 | --disable-gline-voting Disable G-line voting. |
866 | --enable-halfops Enable halfops support. |
867 | --enable-syslog="EVENTS" |
868 | Enable syslog for events: kill, squit, connect, |
869 | users, oper, space separated in quotes (default: |
870 | disabled) |
871 | --disable-shared-modules |
872 | Disable shared modules. |
873 | |
874 | Optional Packages: |
875 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
876 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
877 | --with-zlib-path=DIR Path to libz.so for ziplinks support. |
878 | --with-syslog-facility=LOG |
879 | Define the log facility to use with ircd's syslog |
880 | output (default LOG_LOCAL4) |
881 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 9) |
882 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 160, max |
883 | 390) |
884 | |
885 | Some influential environment variables: |
886 | CC C compiler command |
887 | CFLAGS C compiler flags |
888 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
889 | nonstandard directory <lib dir> |
890 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
891 | headers in a nonstandard directory <include dir> |
892 | CPP C preprocessor |
893 | |
894 | Use these variables to override the choices made by `configure' or to help |
895 | it to find libraries and programs with nonstandard names/locations. |
896 | |
897 | _ACEOF |
898 | fi |
899 | |
900 | if test "$ac_init_help" = "recursive"; then |
901 | # If there are subdirs, report their specific --help. |
902 | ac_popdir=`pwd` |
903 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
904 | test -d $ac_dir || continue |
905 | ac_builddir=. |
906 | |
907 | if test "$ac_dir" != .; then |
908 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
909 | # A "../" for each directory in $ac_dir_suffix. |
910 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
911 | else |
912 | ac_dir_suffix= ac_top_builddir= |
913 | fi |
914 | |
915 | case $srcdir in |
916 | .) # No --srcdir option. We are building in place. |
917 | ac_srcdir=. |
918 | if test -z "$ac_top_builddir"; then |
919 | ac_top_srcdir=. |
920 | else |
921 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
922 | fi ;; |
923 | [\\/]* | ?:[\\/]* ) # Absolute path. |
924 | ac_srcdir=$srcdir$ac_dir_suffix; |
925 | ac_top_srcdir=$srcdir ;; |
926 | *) # Relative path. |
927 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
928 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
929 | esac |
930 | |
931 | # Do not use `cd foo && pwd` to compute absolute paths, because |
932 | # the directories may not exist. |
933 | case `pwd` in |
934 | .) ac_abs_builddir="$ac_dir";; |
935 | *) |
936 | case "$ac_dir" in |
937 | .) ac_abs_builddir=`pwd`;; |
938 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
939 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
940 | esac;; |
941 | esac |
942 | case $ac_abs_builddir in |
943 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
944 | *) |
945 | case ${ac_top_builddir}. in |
946 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
947 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
948 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
949 | esac;; |
950 | esac |
951 | case $ac_abs_builddir in |
952 | .) ac_abs_srcdir=$ac_srcdir;; |
953 | *) |
954 | case $ac_srcdir in |
955 | .) ac_abs_srcdir=$ac_abs_builddir;; |
956 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
957 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
958 | esac;; |
959 | esac |
960 | case $ac_abs_builddir in |
961 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
962 | *) |
963 | case $ac_top_srcdir in |
964 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
965 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
966 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
967 | esac;; |
968 | esac |
969 | |
970 | cd $ac_dir |
971 | # Check for guested configure; otherwise get Cygnus style configure. |
972 | if test -f $ac_srcdir/configure.gnu; then |
973 | echo |
974 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
975 | elif test -f $ac_srcdir/configure; then |
976 | echo |
977 | $SHELL $ac_srcdir/configure --help=recursive |
978 | elif test -f $ac_srcdir/configure.ac || |
979 | test -f $ac_srcdir/configure.in; then |
980 | echo |
981 | $ac_configure --help |
982 | else |
983 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
984 | fi |
985 | cd $ac_popdir |
986 | done |
987 | fi |
988 | |
989 | test -n "$ac_init_help" && exit 0 |
990 | if $ac_init_version; then |
991 | cat <<\_ACEOF |
992 | ircd-hybrid configure 7.2 |
993 | generated by GNU Autoconf 2.59 |
994 | |
995 | Copyright (C) 2003 Free Software Foundation, Inc. |
996 | This configure script is free software; the Free Software Foundation |
997 | gives unlimited permission to copy, distribute and modify it. |
998 | |
999 | $Id$ |
1000 | _ACEOF |
1001 | exit 0 |
1002 | fi |
1003 | exec 5>config.log |
1004 | cat >&5 <<_ACEOF |
1005 | This file contains any messages produced by compilers while |
1006 | running configure, to aid debugging if configure makes a mistake. |
1007 | |
1008 | It was created by ircd-hybrid $as_me 7.2, which was |
1009 | generated by GNU Autoconf 2.59. Invocation command line was |
1010 | |
1011 | $ $0 $@ |
1012 | |
1013 | _ACEOF |
1014 | { |
1015 | cat <<_ASUNAME |
1016 | ## --------- ## |
1017 | ## Platform. ## |
1018 | ## --------- ## |
1019 | |
1020 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1021 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1022 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1023 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1024 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1025 | |
1026 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1027 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1028 | |
1029 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1030 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1031 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1032 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1033 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1034 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1035 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1036 | |
1037 | _ASUNAME |
1038 | |
1039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1040 | for as_dir in $PATH |
1041 | do |
1042 | IFS=$as_save_IFS |
1043 | test -z "$as_dir" && as_dir=. |
1044 | echo "PATH: $as_dir" |
1045 | done |
1046 | |
1047 | } >&5 |
1048 | |
1049 | cat >&5 <<_ACEOF |
1050 | |
1051 | |
1052 | ## ----------- ## |
1053 | ## Core tests. ## |
1054 | ## ----------- ## |
1055 | |
1056 | _ACEOF |
1057 | |
1058 | |
1059 | # Keep a trace of the command line. |
1060 | # Strip out --no-create and --no-recursion so they do not pile up. |
1061 | # Strip out --silent because we don't want to record it for future runs. |
1062 | # Also quote any args containing shell meta-characters. |
1063 | # Make two passes to allow for proper duplicate-argument suppression. |
1064 | ac_configure_args= |
1065 | ac_configure_args0= |
1066 | ac_configure_args1= |
1067 | ac_sep= |
1068 | ac_must_keep_next=false |
1069 | for ac_pass in 1 2 |
1070 | do |
1071 | for ac_arg |
1072 | do |
1073 | case $ac_arg in |
1074 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1075 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1076 | | -silent | --silent | --silen | --sile | --sil) |
1077 | continue ;; |
1078 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1079 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1080 | esac |
1081 | case $ac_pass in |
1082 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1083 | 2) |
1084 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1085 | if test $ac_must_keep_next = true; then |
1086 | ac_must_keep_next=false # Got value, back to normal. |
1087 | else |
1088 | case $ac_arg in |
1089 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1090 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1091 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1092 | | -with-* | --with-* | -without-* | --without-* | --x) |
1093 | case "$ac_configure_args0 " in |
1094 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1095 | esac |
1096 | ;; |
1097 | -* ) ac_must_keep_next=true ;; |
1098 | esac |
1099 | fi |
1100 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1101 | # Get rid of the leading space. |
1102 | ac_sep=" " |
1103 | ;; |
1104 | esac |
1105 | done |
1106 | done |
1107 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1108 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1109 | |
1110 | # When interrupted or exit'd, cleanup temporary files, and complete |
1111 | # config.log. We remove comments because anyway the quotes in there |
1112 | # would cause problems or look ugly. |
1113 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1114 | # such as our DU 5.0 friend, will then `close' the trap. |
1115 | trap 'exit_status=$? |
1116 | # Save into config.log some information that might help in debugging. |
1117 | { |
1118 | echo |
1119 | |
1120 | cat <<\_ASBOX |
1121 | ## ---------------- ## |
1122 | ## Cache variables. ## |
1123 | ## ---------------- ## |
1124 | _ASBOX |
1125 | echo |
1126 | # The following way of writing the cache mishandles newlines in values, |
1127 | { |
1128 | (set) 2>&1 | |
1129 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1130 | *ac_space=\ *) |
1131 | sed -n \ |
1132 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1133 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1134 | ;; |
1135 | *) |
1136 | sed -n \ |
1137 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1138 | ;; |
1139 | esac; |
1140 | } |
1141 | echo |
1142 | |
1143 | cat <<\_ASBOX |
1144 | ## ----------------- ## |
1145 | ## Output variables. ## |
1146 | ## ----------------- ## |
1147 | _ASBOX |
1148 | echo |
1149 | for ac_var in $ac_subst_vars |
1150 | do |
1151 | eval ac_val=$`echo $ac_var` |
1152 | echo "$ac_var='"'"'$ac_val'"'"'" |
1153 | done | sort |
1154 | echo |
1155 | |
1156 | if test -n "$ac_subst_files"; then |
1157 | cat <<\_ASBOX |
1158 | ## ------------- ## |
1159 | ## Output files. ## |
1160 | ## ------------- ## |
1161 | _ASBOX |
1162 | echo |
1163 | for ac_var in $ac_subst_files |
1164 | do |
1165 | eval ac_val=$`echo $ac_var` |
1166 | echo "$ac_var='"'"'$ac_val'"'"'" |
1167 | done | sort |
1168 | echo |
1169 | fi |
1170 | |
1171 | if test -s confdefs.h; then |
1172 | cat <<\_ASBOX |
1173 | ## ----------- ## |
1174 | ## confdefs.h. ## |
1175 | ## ----------- ## |
1176 | _ASBOX |
1177 | echo |
1178 | sed "/^$/d" confdefs.h | sort |
1179 | echo |
1180 | fi |
1181 | test "$ac_signal" != 0 && |
1182 | echo "$as_me: caught signal $ac_signal" |
1183 | echo "$as_me: exit $exit_status" |
1184 | } >&5 |
1185 | rm -f core *.core && |
1186 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1187 | exit $exit_status |
1188 | ' 0 |
1189 | for ac_signal in 1 2 13 15; do |
1190 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1191 | done |
1192 | ac_signal=0 |
1193 | |
1194 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1195 | rm -rf conftest* confdefs.h |
1196 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1197 | echo >confdefs.h |
1198 | |
1199 | # Predefined preprocessor variables. |
1200 | |
1201 | cat >>confdefs.h <<_ACEOF |
1202 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1203 | _ACEOF |
1204 | |
1205 | |
1206 | cat >>confdefs.h <<_ACEOF |
1207 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1208 | _ACEOF |
1209 | |
1210 | |
1211 | cat >>confdefs.h <<_ACEOF |
1212 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1213 | _ACEOF |
1214 | |
1215 | |
1216 | cat >>confdefs.h <<_ACEOF |
1217 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1218 | _ACEOF |
1219 | |
1220 | |
1221 | cat >>confdefs.h <<_ACEOF |
1222 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1223 | _ACEOF |
1224 | |
1225 | |
1226 | # Let the site file select an alternate cache file if it wants to. |
1227 | # Prefer explicitly selected file to automatically selected ones. |
1228 | if test -z "$CONFIG_SITE"; then |
1229 | if test "x$prefix" != xNONE; then |
1230 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1231 | else |
1232 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1233 | fi |
1234 | fi |
1235 | for ac_site_file in $CONFIG_SITE; do |
1236 | if test -r "$ac_site_file"; then |
1237 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1238 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1239 | sed 's/^/| /' "$ac_site_file" >&5 |
1240 | . "$ac_site_file" |
1241 | fi |
1242 | done |
1243 | |
1244 | if test -r "$cache_file"; then |
1245 | # Some versions of bash will fail to source /dev/null (special |
1246 | # files actually), so we avoid doing that. |
1247 | if test -f "$cache_file"; then |
1248 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1249 | echo "$as_me: loading cache $cache_file" >&6;} |
1250 | case $cache_file in |
1251 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1252 | *) . ./$cache_file;; |
1253 | esac |
1254 | fi |
1255 | else |
1256 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1257 | echo "$as_me: creating cache $cache_file" >&6;} |
1258 | >$cache_file |
1259 | fi |
1260 | |
1261 | # Check that the precious variables saved in the cache have kept the same |
1262 | # value. |
1263 | ac_cache_corrupted=false |
1264 | for ac_var in `(set) 2>&1 | |
1265 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1266 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1267 | eval ac_new_set=\$ac_env_${ac_var}_set |
1268 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1269 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1270 | case $ac_old_set,$ac_new_set in |
1271 | set,) |
1272 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1273 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1274 | ac_cache_corrupted=: ;; |
1275 | ,set) |
1276 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1277 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1278 | ac_cache_corrupted=: ;; |
1279 | ,);; |
1280 | *) |
1281 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1282 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1283 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1284 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1285 | echo "$as_me: former value: $ac_old_val" >&2;} |
1286 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1287 | echo "$as_me: current value: $ac_new_val" >&2;} |
1288 | ac_cache_corrupted=: |
1289 | fi;; |
1290 | esac |
1291 | # Pass precious variables to config.status. |
1292 | if test "$ac_new_set" = set; then |
1293 | case $ac_new_val in |
1294 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1295 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1296 | *) ac_arg=$ac_var=$ac_new_val ;; |
1297 | esac |
1298 | case " $ac_configure_args " in |
1299 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1300 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1301 | esac |
1302 | fi |
1303 | done |
1304 | if $ac_cache_corrupted; then |
1305 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1306 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1307 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1308 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1309 | { (exit 1); exit 1; }; } |
1310 | fi |
1311 | |
1312 | ac_ext=c |
1313 | ac_cpp='$CPP $CPPFLAGS' |
1314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1317 | |
1318 | |
1319 | |
1320 | |
1321 | |
1322 | |
1323 | |
1324 | |
1325 | |
1326 | |
1327 | |
1328 | |
1329 | |
1330 | |
1331 | |
1332 | |
1333 | |
1334 | |
1335 | |
1336 | |
1337 | |
1338 | |
1339 | |
1340 | |
1341 | |
1342 | |
1343 | |
1344 | |
1345 | ac_config_headers="$ac_config_headers include/setup.h" |
1346 | |
1347 | |
1348 | |
1349 | |
1350 | |
1351 | cat >>confdefs.h <<\_ACEOF |
1352 | #define _GNU_SOURCE 1 |
1353 | _ACEOF |
1354 | |
1355 | |
1356 | |
1357 | OLD_CFLAGS="$CFLAGS" |
1358 | ac_ext=c |
1359 | ac_cpp='$CPP $CPPFLAGS' |
1360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1363 | if test -n "$ac_tool_prefix"; then |
1364 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1365 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1366 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1368 | if test "${ac_cv_prog_CC+set}" = set; then |
1369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1370 | else |
1371 | if test -n "$CC"; then |
1372 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1373 | else |
1374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1375 | for as_dir in $PATH |
1376 | do |
1377 | IFS=$as_save_IFS |
1378 | test -z "$as_dir" && as_dir=. |
1379 | for ac_exec_ext in '' $ac_executable_extensions; do |
1380 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1381 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1383 | break 2 |
1384 | fi |
1385 | done |
1386 | done |
1387 | |
1388 | fi |
1389 | fi |
1390 | CC=$ac_cv_prog_CC |
1391 | if test -n "$CC"; then |
1392 | echo "$as_me:$LINENO: result: $CC" >&5 |
1393 | echo "${ECHO_T}$CC" >&6 |
1394 | else |
1395 | echo "$as_me:$LINENO: result: no" >&5 |
1396 | echo "${ECHO_T}no" >&6 |
1397 | fi |
1398 | |
1399 | fi |
1400 | if test -z "$ac_cv_prog_CC"; then |
1401 | ac_ct_CC=$CC |
1402 | # Extract the first word of "gcc", so it can be a program name with args. |
1403 | set dummy gcc; ac_word=$2 |
1404 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1406 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1408 | else |
1409 | if test -n "$ac_ct_CC"; then |
1410 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1411 | else |
1412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1413 | for as_dir in $PATH |
1414 | do |
1415 | IFS=$as_save_IFS |
1416 | test -z "$as_dir" && as_dir=. |
1417 | for ac_exec_ext in '' $ac_executable_extensions; do |
1418 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1419 | ac_cv_prog_ac_ct_CC="gcc" |
1420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1421 | break 2 |
1422 | fi |
1423 | done |
1424 | done |
1425 | |
1426 | fi |
1427 | fi |
1428 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1429 | if test -n "$ac_ct_CC"; then |
1430 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1431 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1432 | else |
1433 | echo "$as_me:$LINENO: result: no" >&5 |
1434 | echo "${ECHO_T}no" >&6 |
1435 | fi |
1436 | |
1437 | CC=$ac_ct_CC |
1438 | else |
1439 | CC="$ac_cv_prog_CC" |
1440 | fi |
1441 | |
1442 | if test -z "$CC"; then |
1443 | if test -n "$ac_tool_prefix"; then |
1444 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1445 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1448 | if test "${ac_cv_prog_CC+set}" = set; then |
1449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1450 | else |
1451 | if test -n "$CC"; then |
1452 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1453 | else |
1454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1455 | for as_dir in $PATH |
1456 | do |
1457 | IFS=$as_save_IFS |
1458 | test -z "$as_dir" && as_dir=. |
1459 | for ac_exec_ext in '' $ac_executable_extensions; do |
1460 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1461 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1462 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1463 | break 2 |
1464 | fi |
1465 | done |
1466 | done |
1467 | |
1468 | fi |
1469 | fi |
1470 | CC=$ac_cv_prog_CC |
1471 | if test -n "$CC"; then |
1472 | echo "$as_me:$LINENO: result: $CC" >&5 |
1473 | echo "${ECHO_T}$CC" >&6 |
1474 | else |
1475 | echo "$as_me:$LINENO: result: no" >&5 |
1476 | echo "${ECHO_T}no" >&6 |
1477 | fi |
1478 | |
1479 | fi |
1480 | if test -z "$ac_cv_prog_CC"; then |
1481 | ac_ct_CC=$CC |
1482 | # Extract the first word of "cc", so it can be a program name with args. |
1483 | set dummy cc; ac_word=$2 |
1484 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1486 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1488 | else |
1489 | if test -n "$ac_ct_CC"; then |
1490 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1491 | else |
1492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1493 | for as_dir in $PATH |
1494 | do |
1495 | IFS=$as_save_IFS |
1496 | test -z "$as_dir" && as_dir=. |
1497 | for ac_exec_ext in '' $ac_executable_extensions; do |
1498 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1499 | ac_cv_prog_ac_ct_CC="cc" |
1500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1501 | break 2 |
1502 | fi |
1503 | done |
1504 | done |
1505 | |
1506 | fi |
1507 | fi |
1508 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1509 | if test -n "$ac_ct_CC"; then |
1510 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1511 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1512 | else |
1513 | echo "$as_me:$LINENO: result: no" >&5 |
1514 | echo "${ECHO_T}no" >&6 |
1515 | fi |
1516 | |
1517 | CC=$ac_ct_CC |
1518 | else |
1519 | CC="$ac_cv_prog_CC" |
1520 | fi |
1521 | |
1522 | fi |
1523 | if test -z "$CC"; then |
1524 | # Extract the first word of "cc", so it can be a program name with args. |
1525 | set dummy cc; ac_word=$2 |
1526 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1528 | if test "${ac_cv_prog_CC+set}" = set; then |
1529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1530 | else |
1531 | if test -n "$CC"; then |
1532 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1533 | else |
1534 | ac_prog_rejected=no |
1535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1536 | for as_dir in $PATH |
1537 | do |
1538 | IFS=$as_save_IFS |
1539 | test -z "$as_dir" && as_dir=. |
1540 | for ac_exec_ext in '' $ac_executable_extensions; do |
1541 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1542 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1543 | ac_prog_rejected=yes |
1544 | continue |
1545 | fi |
1546 | ac_cv_prog_CC="cc" |
1547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1548 | break 2 |
1549 | fi |
1550 | done |
1551 | done |
1552 | |
1553 | if test $ac_prog_rejected = yes; then |
1554 | # We found a bogon in the path, so make sure we never use it. |
1555 | set dummy $ac_cv_prog_CC |
1556 | shift |
1557 | if test $# != 0; then |
1558 | # We chose a different compiler from the bogus one. |
1559 | # However, it has the same basename, so the bogon will be chosen |
1560 | # first if we set CC to just the basename; use the full file name. |
1561 | shift |
1562 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1563 | fi |
1564 | fi |
1565 | fi |
1566 | fi |
1567 | CC=$ac_cv_prog_CC |
1568 | if test -n "$CC"; then |
1569 | echo "$as_me:$LINENO: result: $CC" >&5 |
1570 | echo "${ECHO_T}$CC" >&6 |
1571 | else |
1572 | echo "$as_me:$LINENO: result: no" >&5 |
1573 | echo "${ECHO_T}no" >&6 |
1574 | fi |
1575 | |
1576 | fi |
1577 | if test -z "$CC"; then |
1578 | if test -n "$ac_tool_prefix"; then |
1579 | for ac_prog in cl |
1580 | do |
1581 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1582 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1583 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1585 | if test "${ac_cv_prog_CC+set}" = set; then |
1586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1587 | else |
1588 | if test -n "$CC"; then |
1589 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1590 | else |
1591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1592 | for as_dir in $PATH |
1593 | do |
1594 | IFS=$as_save_IFS |
1595 | test -z "$as_dir" && as_dir=. |
1596 | for ac_exec_ext in '' $ac_executable_extensions; do |
1597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1598 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1600 | break 2 |
1601 | fi |
1602 | done |
1603 | done |
1604 | |
1605 | fi |
1606 | fi |
1607 | CC=$ac_cv_prog_CC |
1608 | if test -n "$CC"; then |
1609 | echo "$as_me:$LINENO: result: $CC" >&5 |
1610 | echo "${ECHO_T}$CC" >&6 |
1611 | else |
1612 | echo "$as_me:$LINENO: result: no" >&5 |
1613 | echo "${ECHO_T}no" >&6 |
1614 | fi |
1615 | |
1616 | test -n "$CC" && break |
1617 | done |
1618 | fi |
1619 | if test -z "$CC"; then |
1620 | ac_ct_CC=$CC |
1621 | for ac_prog in cl |
1622 | do |
1623 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1624 | set dummy $ac_prog; ac_word=$2 |
1625 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1627 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1629 | else |
1630 | if test -n "$ac_ct_CC"; then |
1631 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1632 | else |
1633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1634 | for as_dir in $PATH |
1635 | do |
1636 | IFS=$as_save_IFS |
1637 | test -z "$as_dir" && as_dir=. |
1638 | for ac_exec_ext in '' $ac_executable_extensions; do |
1639 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1640 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1642 | break 2 |
1643 | fi |
1644 | done |
1645 | done |
1646 | |
1647 | fi |
1648 | fi |
1649 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1650 | if test -n "$ac_ct_CC"; then |
1651 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1652 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1653 | else |
1654 | echo "$as_me:$LINENO: result: no" >&5 |
1655 | echo "${ECHO_T}no" >&6 |
1656 | fi |
1657 | |
1658 | test -n "$ac_ct_CC" && break |
1659 | done |
1660 | |
1661 | CC=$ac_ct_CC |
1662 | fi |
1663 | |
1664 | fi |
1665 | |
1666 | |
1667 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
1668 | See \`config.log' for more details." >&5 |
1669 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
1670 | See \`config.log' for more details." >&2;} |
1671 | { (exit 1); exit 1; }; } |
1672 | |
1673 | # Provide some information about the compiler. |
1674 | echo "$as_me:$LINENO:" \ |
1675 | "checking for C compiler version" >&5 |
1676 | ac_compiler=`set X $ac_compile; echo $2` |
1677 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1678 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
1679 | ac_status=$? |
1680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1681 | (exit $ac_status); } |
1682 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1683 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
1684 | ac_status=$? |
1685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1686 | (exit $ac_status); } |
1687 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1688 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
1689 | ac_status=$? |
1690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1691 | (exit $ac_status); } |
1692 | |
1693 | cat >conftest.$ac_ext <<_ACEOF |
1694 | /* confdefs.h. */ |
1695 | _ACEOF |
1696 | cat confdefs.h >>conftest.$ac_ext |
1697 | cat >>conftest.$ac_ext <<_ACEOF |
1698 | /* end confdefs.h. */ |
1699 | |
1700 | int |
1701 | main () |
1702 | { |
1703 | |
1704 | ; |
1705 | return 0; |
1706 | } |
1707 | _ACEOF |
1708 | ac_clean_files_save=$ac_clean_files |
1709 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1710 | # Try to create an executable without -o first, disregard a.out. |
1711 | # It will help us diagnose broken compilers, and finding out an intuition |
1712 | # of exeext. |
1713 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1714 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
1715 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1716 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1717 | (eval $ac_link_default) 2>&5 |
1718 | ac_status=$? |
1719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1720 | (exit $ac_status); }; then |
1721 | # Find the output, starting from the most likely. This scheme is |
1722 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
1723 | # resort. |
1724 | |
1725 | # Be careful to initialize this variable, since it used to be cached. |
1726 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
1727 | ac_cv_exeext= |
1728 | # b.out is created by i960 compilers. |
1729 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
1730 | do |
1731 | test -f "$ac_file" || continue |
1732 | case $ac_file in |
1733 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1734 | ;; |
1735 | conftest.$ac_ext ) |
1736 | # This is the source file. |
1737 | ;; |
1738 | [ab].out ) |
1739 | # We found the default executable, but exeext='' is most |
1740 | # certainly right. |
1741 | break;; |
1742 | *.* ) |
1743 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1744 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
1745 | # but it would be cool to find out if it's true. Does anybody |
1746 | # maintain Libtool? --akim. |
1747 | export ac_cv_exeext |
1748 | break;; |
1749 | * ) |
1750 | break;; |
1751 | esac |
1752 | done |
1753 | else |
1754 | echo "$as_me: failed program was:" >&5 |
1755 | sed 's/^/| /' conftest.$ac_ext >&5 |
1756 | |
1757 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1758 | See \`config.log' for more details." >&5 |
1759 | echo "$as_me: error: C compiler cannot create executables |
1760 | See \`config.log' for more details." >&2;} |
1761 | { (exit 77); exit 77; }; } |
1762 | fi |
1763 | |
1764 | ac_exeext=$ac_cv_exeext |
1765 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
1766 | echo "${ECHO_T}$ac_file" >&6 |
1767 | |
1768 | # Check the compiler produces executables we can run. If not, either |
1769 | # the compiler is broken, or we cross compile. |
1770 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1771 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1772 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1773 | # If not cross compiling, check that we can run a simple program. |
1774 | if test "$cross_compiling" != yes; then |
1775 | if { ac_try='./$ac_file' |
1776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1777 | (eval $ac_try) 2>&5 |
1778 | ac_status=$? |
1779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1780 | (exit $ac_status); }; }; then |
1781 | cross_compiling=no |
1782 | else |
1783 | if test "$cross_compiling" = maybe; then |
1784 | cross_compiling=yes |
1785 | else |
1786 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
1787 | If you meant to cross compile, use \`--host'. |
1788 | See \`config.log' for more details." >&5 |
1789 | echo "$as_me: error: cannot run C compiled programs. |
1790 | If you meant to cross compile, use \`--host'. |
1791 | See \`config.log' for more details." >&2;} |
1792 | { (exit 1); exit 1; }; } |
1793 | fi |
1794 | fi |
1795 | fi |
1796 | echo "$as_me:$LINENO: result: yes" >&5 |
1797 | echo "${ECHO_T}yes" >&6 |
1798 | |
1799 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1800 | ac_clean_files=$ac_clean_files_save |
1801 | # Check the compiler produces executables we can run. If not, either |
1802 | # the compiler is broken, or we cross compile. |
1803 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1804 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
1805 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
1806 | echo "${ECHO_T}$cross_compiling" >&6 |
1807 | |
1808 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1809 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
1810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1811 | (eval $ac_link) 2>&5 |
1812 | ac_status=$? |
1813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1814 | (exit $ac_status); }; then |
1815 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1816 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
1817 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
1818 | # `rm'. |
1819 | for ac_file in conftest.exe conftest conftest.*; do |
1820 | test -f "$ac_file" || continue |
1821 | case $ac_file in |
1822 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1823 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1824 | export ac_cv_exeext |
1825 | break;; |
1826 | * ) break;; |
1827 | esac |
1828 | done |
1829 | else |
1830 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1831 | See \`config.log' for more details." >&5 |
1832 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
1833 | See \`config.log' for more details." >&2;} |
1834 | { (exit 1); exit 1; }; } |
1835 | fi |
1836 | |
1837 | rm -f conftest$ac_cv_exeext |
1838 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1839 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
1840 | |
1841 | rm -f conftest.$ac_ext |
1842 | EXEEXT=$ac_cv_exeext |
1843 | ac_exeext=$EXEEXT |
1844 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1845 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
1846 | if test "${ac_cv_objext+set}" = set; then |
1847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1848 | else |
1849 | cat >conftest.$ac_ext <<_ACEOF |
1850 | /* confdefs.h. */ |
1851 | _ACEOF |
1852 | cat confdefs.h >>conftest.$ac_ext |
1853 | cat >>conftest.$ac_ext <<_ACEOF |
1854 | /* end confdefs.h. */ |
1855 | |
1856 | int |
1857 | main () |
1858 | { |
1859 | |
1860 | ; |
1861 | return 0; |
1862 | } |
1863 | _ACEOF |
1864 | rm -f conftest.o conftest.obj |
1865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1866 | (eval $ac_compile) 2>&5 |
1867 | ac_status=$? |
1868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1869 | (exit $ac_status); }; then |
1870 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
1871 | case $ac_file in |
1872 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
1873 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1874 | break;; |
1875 | esac |
1876 | done |
1877 | else |
1878 | echo "$as_me: failed program was:" >&5 |
1879 | sed 's/^/| /' conftest.$ac_ext >&5 |
1880 | |
1881 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1882 | See \`config.log' for more details." >&5 |
1883 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
1884 | See \`config.log' for more details." >&2;} |
1885 | { (exit 1); exit 1; }; } |
1886 | fi |
1887 | |
1888 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1889 | fi |
1890 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1891 | echo "${ECHO_T}$ac_cv_objext" >&6 |
1892 | OBJEXT=$ac_cv_objext |
1893 | ac_objext=$OBJEXT |
1894 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1895 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1896 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1898 | else |
1899 | cat >conftest.$ac_ext <<_ACEOF |
1900 | /* confdefs.h. */ |
1901 | _ACEOF |
1902 | cat confdefs.h >>conftest.$ac_ext |
1903 | cat >>conftest.$ac_ext <<_ACEOF |
1904 | /* end confdefs.h. */ |
1905 | |
1906 | int |
1907 | main () |
1908 | { |
1909 | #ifndef __GNUC__ |
1910 | choke me |
1911 | #endif |
1912 | |
1913 | ; |
1914 | return 0; |
1915 | } |
1916 | _ACEOF |
1917 | rm -f conftest.$ac_objext |
1918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1919 | (eval $ac_compile) 2>conftest.er1 |
1920 | ac_status=$? |
1921 | grep -v '^ *+' conftest.er1 >conftest.err |
1922 | rm -f conftest.er1 |
1923 | cat conftest.err >&5 |
1924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1925 | (exit $ac_status); } && |
1926 | { ac_try='test -z "$ac_c_werror_flag" |
1927 | || test ! -s conftest.err' |
1928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1929 | (eval $ac_try) 2>&5 |
1930 | ac_status=$? |
1931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1932 | (exit $ac_status); }; } && |
1933 | { ac_try='test -s conftest.$ac_objext' |
1934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1935 | (eval $ac_try) 2>&5 |
1936 | ac_status=$? |
1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1938 | (exit $ac_status); }; }; then |
1939 | ac_compiler_gnu=yes |
1940 | else |
1941 | echo "$as_me: failed program was:" >&5 |
1942 | sed 's/^/| /' conftest.$ac_ext >&5 |
1943 | |
1944 | ac_compiler_gnu=no |
1945 | fi |
1946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1947 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
1948 | |
1949 | fi |
1950 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1951 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1952 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1953 | ac_test_CFLAGS=${CFLAGS+set} |
1954 | ac_save_CFLAGS=$CFLAGS |
1955 | CFLAGS="-g" |
1956 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
1957 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1958 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1960 | else |
1961 | cat >conftest.$ac_ext <<_ACEOF |
1962 | /* confdefs.h. */ |
1963 | _ACEOF |
1964 | cat confdefs.h >>conftest.$ac_ext |
1965 | cat >>conftest.$ac_ext <<_ACEOF |
1966 | /* end confdefs.h. */ |
1967 | |
1968 | int |
1969 | main () |
1970 | { |
1971 | |
1972 | ; |
1973 | return 0; |
1974 | } |
1975 | _ACEOF |
1976 | rm -f conftest.$ac_objext |
1977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1978 | (eval $ac_compile) 2>conftest.er1 |
1979 | ac_status=$? |
1980 | grep -v '^ *+' conftest.er1 >conftest.err |
1981 | rm -f conftest.er1 |
1982 | cat conftest.err >&5 |
1983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1984 | (exit $ac_status); } && |
1985 | { ac_try='test -z "$ac_c_werror_flag" |
1986 | || test ! -s conftest.err' |
1987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1988 | (eval $ac_try) 2>&5 |
1989 | ac_status=$? |
1990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1991 | (exit $ac_status); }; } && |
1992 | { ac_try='test -s conftest.$ac_objext' |
1993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1994 | (eval $ac_try) 2>&5 |
1995 | ac_status=$? |
1996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1997 | (exit $ac_status); }; }; then |
1998 | ac_cv_prog_cc_g=yes |
1999 | else |
2000 | echo "$as_me: failed program was:" >&5 |
2001 | sed 's/^/| /' conftest.$ac_ext >&5 |
2002 | |
2003 | ac_cv_prog_cc_g=no |
2004 | fi |
2005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2006 | fi |
2007 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2008 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2009 | if test "$ac_test_CFLAGS" = set; then |
2010 | CFLAGS=$ac_save_CFLAGS |
2011 | elif test $ac_cv_prog_cc_g = yes; then |
2012 | if test "$GCC" = yes; then |
2013 | CFLAGS="-g -O2" |
2014 | else |
2015 | CFLAGS="-g" |
2016 | fi |
2017 | else |
2018 | if test "$GCC" = yes; then |
2019 | CFLAGS="-O2" |
2020 | else |
2021 | CFLAGS= |
2022 | fi |
2023 | fi |
2024 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2025 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2026 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2028 | else |
2029 | ac_cv_prog_cc_stdc=no |
2030 | ac_save_CC=$CC |
2031 | cat >conftest.$ac_ext <<_ACEOF |
2032 | /* confdefs.h. */ |
2033 | _ACEOF |
2034 | cat confdefs.h >>conftest.$ac_ext |
2035 | cat >>conftest.$ac_ext <<_ACEOF |
2036 | /* end confdefs.h. */ |
2037 | #include <stdarg.h> |
2038 | #include <stdio.h> |
2039 | #include <sys/types.h> |
2040 | #include <sys/stat.h> |
2041 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2042 | struct buf { int x; }; |
2043 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2044 | static char *e (p, i) |
2045 | char **p; |
2046 | int i; |
2047 | { |
2048 | return p[i]; |
2049 | } |
2050 | static char *f (char * (*g) (char **, int), char **p, ...) |
2051 | { |
2052 | char *s; |
2053 | va_list v; |
2054 | va_start (v,p); |
2055 | s = g (p, va_arg (v,int)); |
2056 | va_end (v); |
2057 | return s; |
2058 | } |
2059 | |
2060 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2061 | function prototypes and stuff, but not '\xHH' hex character constants. |
2062 | These don't provoke an error unfortunately, instead are silently treated |
2063 | as 'x'. The following induces an error, until -std1 is added to get |
2064 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2065 | array size at least. It's necessary to write '\x00'==0 to get something |
2066 | that's true only with -std1. */ |
2067 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2068 | |
2069 | int test (int i, double x); |
2070 | struct s1 {int (*f) (int a);}; |
2071 | struct s2 {int (*f) (double a);}; |
2072 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2073 | int argc; |
2074 | char **argv; |
2075 | int |
2076 | main () |
2077 | { |
2078 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2079 | ; |
2080 | return 0; |
2081 | } |
2082 | _ACEOF |
2083 | # Don't try gcc -ansi; that turns off useful extensions and |
2084 | # breaks some systems' header files. |
2085 | # AIX -qlanglvl=ansi |
2086 | # Ultrix and OSF/1 -std1 |
2087 | # HP-UX 10.20 and later -Ae |
2088 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2089 | # SVR4 -Xc -D__EXTENSIONS__ |
2090 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2091 | do |
2092 | CC="$ac_save_CC $ac_arg" |
2093 | rm -f conftest.$ac_objext |
2094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2095 | (eval $ac_compile) 2>conftest.er1 |
2096 | ac_status=$? |
2097 | grep -v '^ *+' conftest.er1 >conftest.err |
2098 | rm -f conftest.er1 |
2099 | cat conftest.err >&5 |
2100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2101 | (exit $ac_status); } && |
2102 | { ac_try='test -z "$ac_c_werror_flag" |
2103 | || test ! -s conftest.err' |
2104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2105 | (eval $ac_try) 2>&5 |
2106 | ac_status=$? |
2107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2108 | (exit $ac_status); }; } && |
2109 | { ac_try='test -s conftest.$ac_objext' |
2110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2111 | (eval $ac_try) 2>&5 |
2112 | ac_status=$? |
2113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2114 | (exit $ac_status); }; }; then |
2115 | ac_cv_prog_cc_stdc=$ac_arg |
2116 | break |
2117 | else |
2118 | echo "$as_me: failed program was:" >&5 |
2119 | sed 's/^/| /' conftest.$ac_ext >&5 |
2120 | |
2121 | fi |
2122 | rm -f conftest.err conftest.$ac_objext |
2123 | done |
2124 | rm -f conftest.$ac_ext conftest.$ac_objext |
2125 | CC=$ac_save_CC |
2126 | |
2127 | fi |
2128 | |
2129 | case "x$ac_cv_prog_cc_stdc" in |
2130 | x|xno) |
2131 | echo "$as_me:$LINENO: result: none needed" >&5 |
2132 | echo "${ECHO_T}none needed" >&6 ;; |
2133 | *) |
2134 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2135 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2136 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2137 | esac |
2138 | |
2139 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2140 | # in C++ we need to declare it. In case someone uses the same compiler |
2141 | # for both compiling C and C++ we need to have the C++ compiler decide |
2142 | # the declaration of exit, since it's the most demanding environment. |
2143 | cat >conftest.$ac_ext <<_ACEOF |
2144 | #ifndef __cplusplus |
2145 | choke me |
2146 | #endif |
2147 | _ACEOF |
2148 | rm -f conftest.$ac_objext |
2149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2150 | (eval $ac_compile) 2>conftest.er1 |
2151 | ac_status=$? |
2152 | grep -v '^ *+' conftest.er1 >conftest.err |
2153 | rm -f conftest.er1 |
2154 | cat conftest.err >&5 |
2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2156 | (exit $ac_status); } && |
2157 | { ac_try='test -z "$ac_c_werror_flag" |
2158 | || test ! -s conftest.err' |
2159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2160 | (eval $ac_try) 2>&5 |
2161 | ac_status=$? |
2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2163 | (exit $ac_status); }; } && |
2164 | { ac_try='test -s conftest.$ac_objext' |
2165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2166 | (eval $ac_try) 2>&5 |
2167 | ac_status=$? |
2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2169 | (exit $ac_status); }; }; then |
2170 | for ac_declaration in \ |
2171 | '' \ |
2172 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2173 | 'extern "C" void std::exit (int); using std::exit;' \ |
2174 | 'extern "C" void exit (int) throw ();' \ |
2175 | 'extern "C" void exit (int);' \ |
2176 | 'void exit (int);' |
2177 | do |
2178 | cat >conftest.$ac_ext <<_ACEOF |
2179 | /* confdefs.h. */ |
2180 | _ACEOF |
2181 | cat confdefs.h >>conftest.$ac_ext |
2182 | cat >>conftest.$ac_ext <<_ACEOF |
2183 | /* end confdefs.h. */ |
2184 | $ac_declaration |
2185 | #include <stdlib.h> |
2186 | int |
2187 | main () |
2188 | { |
2189 | exit (42); |
2190 | ; |
2191 | return 0; |
2192 | } |
2193 | _ACEOF |
2194 | rm -f conftest.$ac_objext |
2195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2196 | (eval $ac_compile) 2>conftest.er1 |
2197 | ac_status=$? |
2198 | grep -v '^ *+' conftest.er1 >conftest.err |
2199 | rm -f conftest.er1 |
2200 | cat conftest.err >&5 |
2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2202 | (exit $ac_status); } && |
2203 | { ac_try='test -z "$ac_c_werror_flag" |
2204 | || test ! -s conftest.err' |
2205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2206 | (eval $ac_try) 2>&5 |
2207 | ac_status=$? |
2208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2209 | (exit $ac_status); }; } && |
2210 | { ac_try='test -s conftest.$ac_objext' |
2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2212 | (eval $ac_try) 2>&5 |
2213 | ac_status=$? |
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2215 | (exit $ac_status); }; }; then |
2216 | : |
2217 | else |
2218 | echo "$as_me: failed program was:" >&5 |
2219 | sed 's/^/| /' conftest.$ac_ext >&5 |
2220 | |
2221 | continue |
2222 | fi |
2223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2224 | cat >conftest.$ac_ext <<_ACEOF |
2225 | /* confdefs.h. */ |
2226 | _ACEOF |
2227 | cat confdefs.h >>conftest.$ac_ext |
2228 | cat >>conftest.$ac_ext <<_ACEOF |
2229 | /* end confdefs.h. */ |
2230 | $ac_declaration |
2231 | int |
2232 | main () |
2233 | { |
2234 | exit (42); |
2235 | ; |
2236 | return 0; |
2237 | } |
2238 | _ACEOF |
2239 | rm -f conftest.$ac_objext |
2240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2241 | (eval $ac_compile) 2>conftest.er1 |
2242 | ac_status=$? |
2243 | grep -v '^ *+' conftest.er1 >conftest.err |
2244 | rm -f conftest.er1 |
2245 | cat conftest.err >&5 |
2246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2247 | (exit $ac_status); } && |
2248 | { ac_try='test -z "$ac_c_werror_flag" |
2249 | || test ! -s conftest.err' |
2250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2251 | (eval $ac_try) 2>&5 |
2252 | ac_status=$? |
2253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2254 | (exit $ac_status); }; } && |
2255 | { ac_try='test -s conftest.$ac_objext' |
2256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2257 | (eval $ac_try) 2>&5 |
2258 | ac_status=$? |
2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2260 | (exit $ac_status); }; }; then |
2261 | break |
2262 | else |
2263 | echo "$as_me: failed program was:" >&5 |
2264 | sed 's/^/| /' conftest.$ac_ext >&5 |
2265 | |
2266 | fi |
2267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2268 | done |
2269 | rm -f conftest* |
2270 | if test -n "$ac_declaration"; then |
2271 | echo '#ifdef __cplusplus' >>confdefs.h |
2272 | echo $ac_declaration >>confdefs.h |
2273 | echo '#endif' >>confdefs.h |
2274 | fi |
2275 | |
2276 | else |
2277 | echo "$as_me: failed program was:" >&5 |
2278 | sed 's/^/| /' conftest.$ac_ext >&5 |
2279 | |
2280 | fi |
2281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2282 | ac_ext=c |
2283 | ac_cpp='$CPP $CPPFLAGS' |
2284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2287 | |
2288 | ac_ext=c |
2289 | ac_cpp='$CPP $CPPFLAGS' |
2290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2293 | |
2294 | |
2295 | CFLAGS="$OLD_CFLAGS" |
2296 | |
2297 | |
2298 | if test "$ac_cv_c_compiler_gnu" != yes; then |
2299 | |
2300 | SGS=no |
2301 | echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2302 | echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6 |
2303 | case `$CC -version 2>&1` in |
2304 | *TenDRA*) |
2305 | echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2306 | echo "${ECHO_T}yes, TenDRA" >&6 |
2307 | IRC_CFLAGS="" |
2308 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem" |
2309 | SGS=yes |
2310 | TenDRA=yes |
2311 | ;; |
2312 | *MIPSpro*) |
2313 | echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2314 | echo "${ECHO_T}yes, MIPSpro" >&6 |
2315 | MIPSpro=yes |
2316 | SGS=yes |
2317 | ;; |
2318 | *) |
2319 | echo "$as_me:$LINENO: result: no" >&5 |
2320 | echo "${ECHO_T}no" >&6 |
2321 | TenDRA=no |
2322 | MIPSpro=no |
2323 | ;; |
2324 | esac |
2325 | |
2326 | echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2327 | echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6 |
2328 | case `$CC -V 2>&1` in |
2329 | *Sun*WorkShop* | *Forte*Developer* | *Sun*C*) |
2330 | echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2331 | echo "${ECHO_T}Sun Workshop/Forte" >&6 |
2332 | IRC_CFLAGS="-xO3 -xdepend -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2333 | SunWorkShop=yes |
2334 | SGS=yes |
2335 | ;; |
2336 | *Tru64*) |
2337 | echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2338 | echo "${ECHO_T}Tru64 cc" >&6 |
2339 | IRC_CFLAGS="" |
2340 | CPPFLAGS="-I/usr/local/include" |
2341 | Tru=yes |
2342 | ;; |
2343 | *HP*ANSI*) |
2344 | echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2345 | echo "${ECHO_T}HPUX cc" >&6 |
2346 | HPUX=yes |
2347 | IRC_CFLAGS="+e" |
2348 | ;; |
2349 | *) |
2350 | echo "$as_me:$LINENO: result: no" >&5 |
2351 | echo "${ECHO_T}no" >&6 |
2352 | ;; |
2353 | esac |
2354 | |
2355 | fi |
2356 | |
2357 | echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5 |
2358 | echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6 |
2359 | case `uname -s` in |
2360 | HP-UX*) |
2361 | |
2362 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
2363 | echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2364 | echo "${ECHO_T}assuming old HPUX with its own cc" >&6 |
2365 | IRC_CFLAGS="$IRC_CFLAGS +e" |
2366 | HPUX=yes |
2367 | else |
2368 | echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2369 | echo "${ECHO_T}already using newer HPUX" >&6 |
2370 | fi |
2371 | ;; |
2372 | CYGWIN*) |
2373 | echo "$as_me:$LINENO: result: Cygwin" >&5 |
2374 | echo "${ECHO_T}Cygwin" >&6 |
2375 | CYGWIN=yes |
2376 | ;; |
2377 | SunOS*) |
2378 | echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2379 | echo "${ECHO_T}SunOS or Solaris" >&6 |
2380 | |
2381 | cat >>confdefs.h <<\_ACEOF |
2382 | #define __EXTENSIONS__ 1 |
2383 | _ACEOF |
2384 | |
2385 | ;; |
2386 | *) |
2387 | echo "$as_me:$LINENO: result: no" >&5 |
2388 | echo "${ECHO_T}no" >&6 |
2389 | ;; |
2390 | esac |
2391 | |
2392 | if test "$ac_cv_c_compiler_gnu" = yes; then |
2393 | echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2394 | echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6 |
2395 | |
2396 | if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then |
2397 | AppleGCC=yes |
2398 | else |
2399 | AppleGCC=no |
2400 | fi |
2401 | |
2402 | echo "$as_me:$LINENO: result: $AppleGCC" >&5 |
2403 | echo "${ECHO_T}$AppleGCC" >&6 |
2404 | |
2405 | IRC_CFLAGS="$IRC_CFLAGS -Wall -O2" |
2406 | fi |
2407 | |
2408 | if test "$ac_cv_prog_cc_g" = yes; then |
2409 | if test "$Tru" = yes; then |
2410 | IRC_CFLAGS="$IRC_CFLAGS -g3" |
2411 | else |
2412 | IRC_CFLAGS="$IRC_CFLAGS -g" |
2413 | fi |
2414 | fi |
2415 | |
2416 | echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2417 | echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6 |
2418 | if test "$SGS" = "yes"; then |
2419 | echo "$as_me:$LINENO: result: yes" >&5 |
2420 | echo "${ECHO_T}yes" >&6 |
2421 | else |
2422 | echo "$as_me:$LINENO: result: no" >&5 |
2423 | echo "${ECHO_T}no" >&6 |
2424 | fi |
2425 | |
2426 | # Extract the first word of "mkdep", so it can be a program name with args. |
2427 | set dummy mkdep; ac_word=$2 |
2428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2430 | if test "${ac_cv_path_MKDEP+set}" = set; then |
2431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2432 | else |
2433 | case $MKDEP in |
2434 | [\\/]* | ?:[\\/]*) |
2435 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. |
2436 | ;; |
2437 | *) |
2438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2439 | for as_dir in $PATH |
2440 | do |
2441 | IFS=$as_save_IFS |
2442 | test -z "$as_dir" && as_dir=. |
2443 | for ac_exec_ext in '' $ac_executable_extensions; do |
2444 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2445 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2447 | break 2 |
2448 | fi |
2449 | done |
2450 | done |
2451 | |
2452 | ;; |
2453 | esac |
2454 | fi |
2455 | MKDEP=$ac_cv_path_MKDEP |
2456 | |
2457 | if test -n "$MKDEP"; then |
2458 | echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2459 | echo "${ECHO_T}$MKDEP" >&6 |
2460 | else |
2461 | echo "$as_me:$LINENO: result: no" >&5 |
2462 | echo "${ECHO_T}no" >&6 |
2463 | fi |
2464 | |
2465 | # Extract the first word of "makedepend", so it can be a program name with args. |
2466 | set dummy makedepend; ac_word=$2 |
2467 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2469 | if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2471 | else |
2472 | case $MAKEDEPEND in |
2473 | [\\/]* | ?:[\\/]*) |
2474 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. |
2475 | ;; |
2476 | *) |
2477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2478 | for as_dir in $PATH |
2479 | do |
2480 | IFS=$as_save_IFS |
2481 | test -z "$as_dir" && as_dir=. |
2482 | for ac_exec_ext in '' $ac_executable_extensions; do |
2483 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2484 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2485 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2486 | break 2 |
2487 | fi |
2488 | done |
2489 | done |
2490 | |
2491 | ;; |
2492 | esac |
2493 | fi |
2494 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND |
2495 | |
2496 | if test -n "$MAKEDEPEND"; then |
2497 | echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2498 | echo "${ECHO_T}$MAKEDEPEND" >&6 |
2499 | else |
2500 | echo "$as_me:$LINENO: result: no" >&5 |
2501 | echo "${ECHO_T}no" >&6 |
2502 | fi |
2503 | |
2504 | |
2505 | echo "$as_me:$LINENO: checking how to generate dependency info" >&5 |
2506 | echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6 |
2507 | |
2508 | STDOUT="> .depend" |
2509 | |
2510 | if test "$ac_cv_c_compiler_gnu" = yes; then |
2511 | echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2512 | echo "${ECHO_T}gcc -MM" >&6 |
2513 | MKDEP="$CC -MM" |
2514 | elif test ! -z "$MKDEP"; then |
2515 | echo "$as_me:$LINENO: result: mkdep" >&5 |
2516 | echo "${ECHO_T}mkdep" >&6 |
2517 | |
2518 | if test -z "$Tru"; then |
2519 | STDOUT="" |
2520 | else |
2521 | STDOUT=" 2> /dev/null" |
2522 | fi |
2523 | elif test "$SunWorkShop" = yes; then |
2524 | echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2525 | echo "${ECHO_T}$CC -xM" >&6 |
2526 | MKDEP="$CC -xM" |
2527 | STDOUT="> .depend 2> /dev/null" |
2528 | elif test ! -z "$MAKEDEPEND"; then |
2529 | echo "$as_me:$LINENO: result: makedepend" >&5 |
2530 | echo "${ECHO_T}makedepend" >&6 |
2531 | MKDEP="$MAKEDEPEND -f-" |
2532 | else |
2533 | echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
2534 | echo "${ECHO_T}nothing suitable.. forget it!" >&6 |
2535 | MKDEP=":" |
2536 | fi |
2537 | |
2538 | |
2539 | |
2540 | |
2541 | echo "$as_me:$LINENO: checking for /dev/null" >&5 |
2542 | echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6 |
2543 | if test -c /dev/null ; then |
2544 | |
2545 | cat >>confdefs.h <<\_ACEOF |
2546 | #define PATH_DEVNULL "/dev/null" |
2547 | _ACEOF |
2548 | |
2549 | echo "$as_me:$LINENO: result: yes" >&5 |
2550 | echo "${ECHO_T}yes" >&6 |
2551 | else |
2552 | |
2553 | cat >>confdefs.h <<\_ACEOF |
2554 | #define PATH_DEVNULL "devnull.log" |
2555 | _ACEOF |
2556 | |
2557 | echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
2558 | echo "${ECHO_T}no - using devnull.log" >&6 |
2559 | fi |
2560 | |
2561 | if test ! -z "$CFLAGS"; then |
2562 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" |
2563 | fi |
2564 | |
2565 | |
2566 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2567 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
2568 | if test "${ac_cv_search_strerror+set}" = set; then |
2569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2570 | else |
2571 | ac_func_search_save_LIBS=$LIBS |
2572 | ac_cv_search_strerror=no |
2573 | cat >conftest.$ac_ext <<_ACEOF |
2574 | /* confdefs.h. */ |
2575 | _ACEOF |
2576 | cat confdefs.h >>conftest.$ac_ext |
2577 | cat >>conftest.$ac_ext <<_ACEOF |
2578 | /* end confdefs.h. */ |
2579 | |
2580 | /* Override any gcc2 internal prototype to avoid an error. */ |
2581 | #ifdef __cplusplus |
2582 | extern "C" |
2583 | #endif |
2584 | /* We use char because int might match the return type of a gcc2 |
2585 | builtin and then its argument prototype would still apply. */ |
2586 | char strerror (); |
2587 | int |
2588 | main () |
2589 | { |
2590 | strerror (); |
2591 | ; |
2592 | return 0; |
2593 | } |
2594 | _ACEOF |
2595 | rm -f conftest.$ac_objext conftest$ac_exeext |
2596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2597 | (eval $ac_link) 2>conftest.er1 |
2598 | ac_status=$? |
2599 | grep -v '^ *+' conftest.er1 >conftest.err |
2600 | rm -f conftest.er1 |
2601 | cat conftest.err >&5 |
2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2603 | (exit $ac_status); } && |
2604 | { ac_try='test -z "$ac_c_werror_flag" |
2605 | || test ! -s conftest.err' |
2606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2607 | (eval $ac_try) 2>&5 |
2608 | ac_status=$? |
2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2610 | (exit $ac_status); }; } && |
2611 | { ac_try='test -s conftest$ac_exeext' |
2612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2613 | (eval $ac_try) 2>&5 |
2614 | ac_status=$? |
2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2616 | (exit $ac_status); }; }; then |
2617 | ac_cv_search_strerror="none required" |
2618 | else |
2619 | echo "$as_me: failed program was:" >&5 |
2620 | sed 's/^/| /' conftest.$ac_ext >&5 |
2621 | |
2622 | fi |
2623 | rm -f conftest.err conftest.$ac_objext \ |
2624 | conftest$ac_exeext conftest.$ac_ext |
2625 | if test "$ac_cv_search_strerror" = no; then |
2626 | for ac_lib in cposix; do |
2627 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
2628 | cat >conftest.$ac_ext <<_ACEOF |
2629 | /* confdefs.h. */ |
2630 | _ACEOF |
2631 | cat confdefs.h >>conftest.$ac_ext |
2632 | cat >>conftest.$ac_ext <<_ACEOF |
2633 | /* end confdefs.h. */ |
2634 | |
2635 | /* Override any gcc2 internal prototype to avoid an error. */ |
2636 | #ifdef __cplusplus |
2637 | extern "C" |
2638 | #endif |
2639 | /* We use char because int might match the return type of a gcc2 |
2640 | builtin and then its argument prototype would still apply. */ |
2641 | char strerror (); |
2642 | int |
2643 | main () |
2644 | { |
2645 | strerror (); |
2646 | ; |
2647 | return 0; |
2648 | } |
2649 | _ACEOF |
2650 | rm -f conftest.$ac_objext conftest$ac_exeext |
2651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2652 | (eval $ac_link) 2>conftest.er1 |
2653 | ac_status=$? |
2654 | grep -v '^ *+' conftest.er1 >conftest.err |
2655 | rm -f conftest.er1 |
2656 | cat conftest.err >&5 |
2657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2658 | (exit $ac_status); } && |
2659 | { ac_try='test -z "$ac_c_werror_flag" |
2660 | || test ! -s conftest.err' |
2661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2662 | (eval $ac_try) 2>&5 |
2663 | ac_status=$? |
2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2665 | (exit $ac_status); }; } && |
2666 | { ac_try='test -s conftest$ac_exeext' |
2667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2668 | (eval $ac_try) 2>&5 |
2669 | ac_status=$? |
2670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2671 | (exit $ac_status); }; }; then |
2672 | ac_cv_search_strerror="-l$ac_lib" |
2673 | break |
2674 | else |
2675 | echo "$as_me: failed program was:" >&5 |
2676 | sed 's/^/| /' conftest.$ac_ext >&5 |
2677 | |
2678 | fi |
2679 | rm -f conftest.err conftest.$ac_objext \ |
2680 | conftest$ac_exeext conftest.$ac_ext |
2681 | done |
2682 | fi |
2683 | LIBS=$ac_func_search_save_LIBS |
2684 | fi |
2685 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2686 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
2687 | if test "$ac_cv_search_strerror" != no; then |
2688 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
2689 | |
2690 | fi |
2691 | |
2692 | echo "$as_me:$LINENO: checking for inline" >&5 |
2693 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
2694 | if test "${ac_cv_c_inline+set}" = set; then |
2695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2696 | else |
2697 | ac_cv_c_inline=no |
2698 | for ac_kw in inline __inline__ __inline; do |
2699 | cat >conftest.$ac_ext <<_ACEOF |
2700 | /* confdefs.h. */ |
2701 | _ACEOF |
2702 | cat confdefs.h >>conftest.$ac_ext |
2703 | cat >>conftest.$ac_ext <<_ACEOF |
2704 | /* end confdefs.h. */ |
2705 | #ifndef __cplusplus |
2706 | typedef int foo_t; |
2707 | static $ac_kw foo_t static_foo () {return 0; } |
2708 | $ac_kw foo_t foo () {return 0; } |
2709 | #endif |
2710 | |
2711 | _ACEOF |
2712 | rm -f conftest.$ac_objext |
2713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2714 | (eval $ac_compile) 2>conftest.er1 |
2715 | ac_status=$? |
2716 | grep -v '^ *+' conftest.er1 >conftest.err |
2717 | rm -f conftest.er1 |
2718 | cat conftest.err >&5 |
2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2720 | (exit $ac_status); } && |
2721 | { ac_try='test -z "$ac_c_werror_flag" |
2722 | || test ! -s conftest.err' |
2723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2724 | (eval $ac_try) 2>&5 |
2725 | ac_status=$? |
2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2727 | (exit $ac_status); }; } && |
2728 | { ac_try='test -s conftest.$ac_objext' |
2729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2730 | (eval $ac_try) 2>&5 |
2731 | ac_status=$? |
2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2733 | (exit $ac_status); }; }; then |
2734 | ac_cv_c_inline=$ac_kw; break |
2735 | else |
2736 | echo "$as_me: failed program was:" >&5 |
2737 | sed 's/^/| /' conftest.$ac_ext >&5 |
2738 | |
2739 | fi |
2740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2741 | done |
2742 | |
2743 | fi |
2744 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
2745 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
2746 | |
2747 | |
2748 | case $ac_cv_c_inline in |
2749 | inline | yes) ;; |
2750 | *) |
2751 | case $ac_cv_c_inline in |
2752 | no) ac_val=;; |
2753 | *) ac_val=$ac_cv_c_inline;; |
2754 | esac |
2755 | cat >>confdefs.h <<_ACEOF |
2756 | #ifndef __cplusplus |
2757 | #define inline $ac_val |
2758 | #endif |
2759 | _ACEOF |
2760 | ;; |
2761 | esac |
2762 | |
2763 | ac_ext=c |
2764 | ac_cpp='$CPP $CPPFLAGS' |
2765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2768 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2769 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
2770 | # On Suns, sometimes $CPP names a directory. |
2771 | if test -n "$CPP" && test -d "$CPP"; then |
2772 | CPP= |
2773 | fi |
2774 | if test -z "$CPP"; then |
2775 | if test "${ac_cv_prog_CPP+set}" = set; then |
2776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2777 | else |
2778 | # Double quotes because CPP needs to be expanded |
2779 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
2780 | do |
2781 | ac_preproc_ok=false |
2782 | for ac_c_preproc_warn_flag in '' yes |
2783 | do |
2784 | # Use a header file that comes with gcc, so configuring glibc |
2785 | # with a fresh cross-compiler works. |
2786 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2787 | # <limits.h> exists even on freestanding compilers. |
2788 | # On the NeXT, cc -E runs the code through the compiler's parser, |
2789 | # not just through cpp. "Syntax error" is here to catch this case. |
2790 | cat >conftest.$ac_ext <<_ACEOF |
2791 | /* confdefs.h. */ |
2792 | _ACEOF |
2793 | cat confdefs.h >>conftest.$ac_ext |
2794 | cat >>conftest.$ac_ext <<_ACEOF |
2795 | /* end confdefs.h. */ |
2796 | #ifdef __STDC__ |
2797 | # include <limits.h> |
2798 | #else |
2799 | # include <assert.h> |
2800 | #endif |
2801 | Syntax error |
2802 | _ACEOF |
2803 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2804 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2805 | ac_status=$? |
2806 | grep -v '^ *+' conftest.er1 >conftest.err |
2807 | rm -f conftest.er1 |
2808 | cat conftest.err >&5 |
2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2810 | (exit $ac_status); } >/dev/null; then |
2811 | if test -s conftest.err; then |
2812 | ac_cpp_err=$ac_c_preproc_warn_flag |
2813 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2814 | else |
2815 | ac_cpp_err= |
2816 | fi |
2817 | else |
2818 | ac_cpp_err=yes |
2819 | fi |
2820 | if test -z "$ac_cpp_err"; then |
2821 | : |
2822 | else |
2823 | echo "$as_me: failed program was:" >&5 |
2824 | sed 's/^/| /' conftest.$ac_ext >&5 |
2825 | |
2826 | # Broken: fails on valid input. |
2827 | continue |
2828 | fi |
2829 | rm -f conftest.err conftest.$ac_ext |
2830 | |
2831 | # OK, works on sane cases. Now check whether non-existent headers |
2832 | # can be detected and how. |
2833 | cat >conftest.$ac_ext <<_ACEOF |
2834 | /* confdefs.h. */ |
2835 | _ACEOF |
2836 | cat confdefs.h >>conftest.$ac_ext |
2837 | cat >>conftest.$ac_ext <<_ACEOF |
2838 | /* end confdefs.h. */ |
2839 | #include <ac_nonexistent.h> |
2840 | _ACEOF |
2841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2843 | ac_status=$? |
2844 | grep -v '^ *+' conftest.er1 >conftest.err |
2845 | rm -f conftest.er1 |
2846 | cat conftest.err >&5 |
2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2848 | (exit $ac_status); } >/dev/null; then |
2849 | if test -s conftest.err; then |
2850 | ac_cpp_err=$ac_c_preproc_warn_flag |
2851 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2852 | else |
2853 | ac_cpp_err= |
2854 | fi |
2855 | else |
2856 | ac_cpp_err=yes |
2857 | fi |
2858 | if test -z "$ac_cpp_err"; then |
2859 | # Broken: success on invalid input. |
2860 | continue |
2861 | else |
2862 | echo "$as_me: failed program was:" >&5 |
2863 | sed 's/^/| /' conftest.$ac_ext >&5 |
2864 | |
2865 | # Passes both tests. |
2866 | ac_preproc_ok=: |
2867 | break |
2868 | fi |
2869 | rm -f conftest.err conftest.$ac_ext |
2870 | |
2871 | done |
2872 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2873 | rm -f conftest.err conftest.$ac_ext |
2874 | if $ac_preproc_ok; then |
2875 | break |
2876 | fi |
2877 | |
2878 | done |
2879 | ac_cv_prog_CPP=$CPP |
2880 | |
2881 | fi |
2882 | CPP=$ac_cv_prog_CPP |
2883 | else |
2884 | ac_cv_prog_CPP=$CPP |
2885 | fi |
2886 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2887 | echo "${ECHO_T}$CPP" >&6 |
2888 | ac_preproc_ok=false |
2889 | for ac_c_preproc_warn_flag in '' yes |
2890 | do |
2891 | # Use a header file that comes with gcc, so configuring glibc |
2892 | # with a fresh cross-compiler works. |
2893 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2894 | # <limits.h> exists even on freestanding compilers. |
2895 | # On the NeXT, cc -E runs the code through the compiler's parser, |
2896 | # not just through cpp. "Syntax error" is here to catch this case. |
2897 | cat >conftest.$ac_ext <<_ACEOF |
2898 | /* confdefs.h. */ |
2899 | _ACEOF |
2900 | cat confdefs.h >>conftest.$ac_ext |
2901 | cat >>conftest.$ac_ext <<_ACEOF |
2902 | /* end confdefs.h. */ |
2903 | #ifdef __STDC__ |
2904 | # include <limits.h> |
2905 | #else |
2906 | # include <assert.h> |
2907 | #endif |
2908 | Syntax error |
2909 | _ACEOF |
2910 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2911 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2912 | ac_status=$? |
2913 | grep -v '^ *+' conftest.er1 >conftest.err |
2914 | rm -f conftest.er1 |
2915 | cat conftest.err >&5 |
2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2917 | (exit $ac_status); } >/dev/null; then |
2918 | if test -s conftest.err; then |
2919 | ac_cpp_err=$ac_c_preproc_warn_flag |
2920 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2921 | else |
2922 | ac_cpp_err= |
2923 | fi |
2924 | else |
2925 | ac_cpp_err=yes |
2926 | fi |
2927 | if test -z "$ac_cpp_err"; then |
2928 | : |
2929 | else |
2930 | echo "$as_me: failed program was:" >&5 |
2931 | sed 's/^/| /' conftest.$ac_ext >&5 |
2932 | |
2933 | # Broken: fails on valid input. |
2934 | continue |
2935 | fi |
2936 | rm -f conftest.err conftest.$ac_ext |
2937 | |
2938 | # OK, works on sane cases. Now check whether non-existent headers |
2939 | # can be detected and how. |
2940 | cat >conftest.$ac_ext <<_ACEOF |
2941 | /* confdefs.h. */ |
2942 | _ACEOF |
2943 | cat confdefs.h >>conftest.$ac_ext |
2944 | cat >>conftest.$ac_ext <<_ACEOF |
2945 | /* end confdefs.h. */ |
2946 | #include <ac_nonexistent.h> |
2947 | _ACEOF |
2948 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2949 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2950 | ac_status=$? |
2951 | grep -v '^ *+' conftest.er1 >conftest.err |
2952 | rm -f conftest.er1 |
2953 | cat conftest.err >&5 |
2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2955 | (exit $ac_status); } >/dev/null; then |
2956 | if test -s conftest.err; then |
2957 | ac_cpp_err=$ac_c_preproc_warn_flag |
2958 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2959 | else |
2960 | ac_cpp_err= |
2961 | fi |
2962 | else |
2963 | ac_cpp_err=yes |
2964 | fi |
2965 | if test -z "$ac_cpp_err"; then |
2966 | # Broken: success on invalid input. |
2967 | continue |
2968 | else |
2969 | echo "$as_me: failed program was:" >&5 |
2970 | sed 's/^/| /' conftest.$ac_ext >&5 |
2971 | |
2972 | # Passes both tests. |
2973 | ac_preproc_ok=: |
2974 | break |
2975 | fi |
2976 | rm -f conftest.err conftest.$ac_ext |
2977 | |
2978 | done |
2979 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2980 | rm -f conftest.err conftest.$ac_ext |
2981 | if $ac_preproc_ok; then |
2982 | : |
2983 | else |
2984 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2985 | See \`config.log' for more details." >&5 |
2986 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
2987 | See \`config.log' for more details." >&2;} |
2988 | { (exit 1); exit 1; }; } |
2989 | fi |
2990 | |
2991 | ac_ext=c |
2992 | ac_cpp='$CPP $CPPFLAGS' |
2993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2996 | |
2997 | |
2998 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2999 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3000 | if test "${ac_cv_prog_egrep+set}" = set; then |
3001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3002 | else |
3003 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3004 | then ac_cv_prog_egrep='grep -E' |
3005 | else ac_cv_prog_egrep='egrep' |
3006 | fi |
3007 | fi |
3008 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3009 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3010 | EGREP=$ac_cv_prog_egrep |
3011 | |
3012 | |
3013 | if test $ac_cv_c_compiler_gnu = yes; then |
3014 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3015 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
3016 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3018 | else |
3019 | ac_pattern="Autoconf.*'x'" |
3020 | cat >conftest.$ac_ext <<_ACEOF |
3021 | /* confdefs.h. */ |
3022 | _ACEOF |
3023 | cat confdefs.h >>conftest.$ac_ext |
3024 | cat >>conftest.$ac_ext <<_ACEOF |
3025 | /* end confdefs.h. */ |
3026 | #include <sgtty.h> |
3027 | Autoconf TIOCGETP |
3028 | _ACEOF |
3029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3030 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
3031 | ac_cv_prog_gcc_traditional=yes |
3032 | else |
3033 | ac_cv_prog_gcc_traditional=no |
3034 | fi |
3035 | rm -f conftest* |
3036 | |
3037 | |
3038 | if test $ac_cv_prog_gcc_traditional = no; then |
3039 | cat >conftest.$ac_ext <<_ACEOF |
3040 | /* confdefs.h. */ |
3041 | _ACEOF |
3042 | cat confdefs.h >>conftest.$ac_ext |
3043 | cat >>conftest.$ac_ext <<_ACEOF |
3044 | /* end confdefs.h. */ |
3045 | #include <termio.h> |
3046 | Autoconf TCGETA |
3047 | _ACEOF |
3048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3049 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
3050 | ac_cv_prog_gcc_traditional=yes |
3051 | fi |
3052 | rm -f conftest* |
3053 | |
3054 | fi |
3055 | fi |
3056 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3057 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
3058 | if test $ac_cv_prog_gcc_traditional = yes; then |
3059 | CC="$CC -traditional" |
3060 | fi |
3061 | fi |
3062 | |
3063 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3064 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
3065 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
3066 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
3067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3068 | else |
3069 | cat >conftest.make <<\_ACEOF |
3070 | all: |
3071 | @echo 'ac_maketemp="$(MAKE)"' |
3072 | _ACEOF |
3073 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3074 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
3075 | if test -n "$ac_maketemp"; then |
3076 | eval ac_cv_prog_make_${ac_make}_set=yes |
3077 | else |
3078 | eval ac_cv_prog_make_${ac_make}_set=no |
3079 | fi |
3080 | rm -f conftest.make |
3081 | fi |
3082 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
3083 | echo "$as_me:$LINENO: result: yes" >&5 |
3084 | echo "${ECHO_T}yes" >&6 |
3085 | SET_MAKE= |
3086 | else |
3087 | echo "$as_me:$LINENO: result: no" >&5 |
3088 | echo "${ECHO_T}no" >&6 |
3089 | SET_MAKE="MAKE=${MAKE-make}" |
3090 | fi |
3091 | |
3092 | ac_aux_dir= |
3093 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
3094 | if test -f $ac_dir/install-sh; then |
3095 | ac_aux_dir=$ac_dir |
3096 | ac_install_sh="$ac_aux_dir/install-sh -c" |
3097 | break |
3098 | elif test -f $ac_dir/install.sh; then |
3099 | ac_aux_dir=$ac_dir |
3100 | ac_install_sh="$ac_aux_dir/install.sh -c" |
3101 | break |
3102 | elif test -f $ac_dir/shtool; then |
3103 | ac_aux_dir=$ac_dir |
3104 | ac_install_sh="$ac_aux_dir/shtool install -c" |
3105 | break |
3106 | fi |
3107 | done |
3108 | if test -z "$ac_aux_dir"; then |
3109 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
3110 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
3111 | { (exit 1); exit 1; }; } |
3112 | fi |
3113 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
3114 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
3115 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
3116 | |
3117 | # Find a good install program. We prefer a C program (faster), |
3118 | # so one script is as good as another. But avoid the broken or |
3119 | # incompatible versions: |
3120 | # SysV /etc/install, /usr/sbin/install |
3121 | # SunOS /usr/etc/install |
3122 | # IRIX /sbin/install |
3123 | # AIX /bin/install |
3124 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3125 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3126 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3127 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3128 | # OS/2's system install, which has a completely different semantic |
3129 | # ./install, which can be erroneously created by make from ./install.sh. |
3130 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3131 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
3132 | if test -z "$INSTALL"; then |
3133 | if test "${ac_cv_path_install+set}" = set; then |
3134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3135 | else |
3136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3137 | for as_dir in $PATH |
3138 | do |
3139 | IFS=$as_save_IFS |
3140 | test -z "$as_dir" && as_dir=. |
3141 | # Account for people who put trailing slashes in PATH elements. |
3142 | case $as_dir/ in |
3143 | ./ | .// | /cC/* | \ |
3144 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3145 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3146 | /usr/ucb/* ) ;; |
3147 | *) |
3148 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3149 | # Don't use installbsd from OSF since it installs stuff as root |
3150 | # by default. |
3151 | for ac_prog in ginstall scoinst install; do |
3152 | for ac_exec_ext in '' $ac_executable_extensions; do |
3153 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3154 | if test $ac_prog = install && |
3155 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3156 | # AIX install. It has an incompatible calling convention. |
3157 | : |
3158 | elif test $ac_prog = install && |
3159 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3160 | # program-specific install script used by HP pwplus--don't use. |
3161 | : |
3162 | else |
3163 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3164 | break 3 |
3165 | fi |
3166 | fi |
3167 | done |
3168 | done |
3169 | ;; |
3170 | esac |
3171 | done |
3172 | |
3173 | |
3174 | fi |
3175 | if test "${ac_cv_path_install+set}" = set; then |
3176 | INSTALL=$ac_cv_path_install |
3177 | else |
3178 | # As a last resort, use the slow shell script. We don't cache a |
3179 | # path for INSTALL within a source directory, because that will |
3180 | # break other packages using the cache if that directory is |
3181 | # removed, or if the path is relative. |
3182 | INSTALL=$ac_install_sh |
3183 | fi |
3184 | fi |
3185 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3186 | echo "${ECHO_T}$INSTALL" >&6 |
3187 | |
3188 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3189 | # It thinks the first close brace ends the variable substitution. |
3190 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3191 | |
3192 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3193 | |
3194 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3195 | |
3196 | # Extract the first word of "rm", so it can be a program name with args. |
3197 | set dummy rm; ac_word=$2 |
3198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3200 | if test "${ac_cv_path_RM+set}" = set; then |
3201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3202 | else |
3203 | case $RM in |
3204 | [\\/]* | ?:[\\/]*) |
3205 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
3206 | ;; |
3207 | *) |
3208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3209 | for as_dir in $PATH |
3210 | do |
3211 | IFS=$as_save_IFS |
3212 | test -z "$as_dir" && as_dir=. |
3213 | for ac_exec_ext in '' $ac_executable_extensions; do |
3214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3215 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3217 | break 2 |
3218 | fi |
3219 | done |
3220 | done |
3221 | |
3222 | ;; |
3223 | esac |
3224 | fi |
3225 | RM=$ac_cv_path_RM |
3226 | |
3227 | if test -n "$RM"; then |
3228 | echo "$as_me:$LINENO: result: $RM" >&5 |
3229 | echo "${ECHO_T}$RM" >&6 |
3230 | else |
3231 | echo "$as_me:$LINENO: result: no" >&5 |
3232 | echo "${ECHO_T}no" >&6 |
3233 | fi |
3234 | |
3235 | # Extract the first word of "cp", so it can be a program name with args. |
3236 | set dummy cp; ac_word=$2 |
3237 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3239 | if test "${ac_cv_path_CP+set}" = set; then |
3240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3241 | else |
3242 | case $CP in |
3243 | [\\/]* | ?:[\\/]*) |
3244 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
3245 | ;; |
3246 | *) |
3247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3248 | for as_dir in $PATH |
3249 | do |
3250 | IFS=$as_save_IFS |
3251 | test -z "$as_dir" && as_dir=. |
3252 | for ac_exec_ext in '' $ac_executable_extensions; do |
3253 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3254 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
3255 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3256 | break 2 |
3257 | fi |
3258 | done |
3259 | done |
3260 | |
3261 | ;; |
3262 | esac |
3263 | fi |
3264 | CP=$ac_cv_path_CP |
3265 | |
3266 | if test -n "$CP"; then |
3267 | echo "$as_me:$LINENO: result: $CP" >&5 |
3268 | echo "${ECHO_T}$CP" >&6 |
3269 | else |
3270 | echo "$as_me:$LINENO: result: no" >&5 |
3271 | echo "${ECHO_T}no" >&6 |
3272 | fi |
3273 | |
3274 | # Extract the first word of "mv", so it can be a program name with args. |
3275 | set dummy mv; ac_word=$2 |
3276 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3278 | if test "${ac_cv_path_MV+set}" = set; then |
3279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3280 | else |
3281 | case $MV in |
3282 | [\\/]* | ?:[\\/]*) |
3283 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
3284 | ;; |
3285 | *) |
3286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3287 | for as_dir in $PATH |
3288 | do |
3289 | IFS=$as_save_IFS |
3290 | test -z "$as_dir" && as_dir=. |
3291 | for ac_exec_ext in '' $ac_executable_extensions; do |
3292 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3293 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
3294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3295 | break 2 |
3296 | fi |
3297 | done |
3298 | done |
3299 | |
3300 | ;; |
3301 | esac |
3302 | fi |
3303 | MV=$ac_cv_path_MV |
3304 | |
3305 | if test -n "$MV"; then |
3306 | echo "$as_me:$LINENO: result: $MV" >&5 |
3307 | echo "${ECHO_T}$MV" >&6 |
3308 | else |
3309 | echo "$as_me:$LINENO: result: no" >&5 |
3310 | echo "${ECHO_T}no" >&6 |
3311 | fi |
3312 | |
3313 | # Extract the first word of "ln", so it can be a program name with args. |
3314 | set dummy ln; ac_word=$2 |
3315 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3317 | if test "${ac_cv_path_LN+set}" = set; then |
3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3319 | else |
3320 | case $LN in |
3321 | [\\/]* | ?:[\\/]*) |
3322 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
3323 | ;; |
3324 | *) |
3325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3326 | for as_dir in $PATH |
3327 | do |
3328 | IFS=$as_save_IFS |
3329 | test -z "$as_dir" && as_dir=. |
3330 | for ac_exec_ext in '' $ac_executable_extensions; do |
3331 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3332 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3333 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3334 | break 2 |
3335 | fi |
3336 | done |
3337 | done |
3338 | |
3339 | ;; |
3340 | esac |
3341 | fi |
3342 | LN=$ac_cv_path_LN |
3343 | |
3344 | if test -n "$LN"; then |
3345 | echo "$as_me:$LINENO: result: $LN" >&5 |
3346 | echo "${ECHO_T}$LN" >&6 |
3347 | else |
3348 | echo "$as_me:$LINENO: result: no" >&5 |
3349 | echo "${ECHO_T}no" >&6 |
3350 | fi |
3351 | |
3352 | # Extract the first word of "sed", so it can be a program name with args. |
3353 | set dummy sed; ac_word=$2 |
3354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3356 | if test "${ac_cv_path_SED+set}" = set; then |
3357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3358 | else |
3359 | case $SED in |
3360 | [\\/]* | ?:[\\/]*) |
3361 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
3362 | ;; |
3363 | *) |
3364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3365 | for as_dir in $PATH |
3366 | do |
3367 | IFS=$as_save_IFS |
3368 | test -z "$as_dir" && as_dir=. |
3369 | for ac_exec_ext in '' $ac_executable_extensions; do |
3370 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3371 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
3372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3373 | break 2 |
3374 | fi |
3375 | done |
3376 | done |
3377 | |
3378 | ;; |
3379 | esac |
3380 | fi |
3381 | SED=$ac_cv_path_SED |
3382 | |
3383 | if test -n "$SED"; then |
3384 | echo "$as_me:$LINENO: result: $SED" >&5 |
3385 | echo "${ECHO_T}$SED" >&6 |
3386 | else |
3387 | echo "$as_me:$LINENO: result: no" >&5 |
3388 | echo "${ECHO_T}no" >&6 |
3389 | fi |
3390 | |
3391 | # Extract the first word of "ar", so it can be a program name with args. |
3392 | set dummy ar; ac_word=$2 |
3393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3395 | if test "${ac_cv_path_AR+set}" = set; then |
3396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3397 | else |
3398 | case $AR in |
3399 | [\\/]* | ?:[\\/]*) |
3400 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
3401 | ;; |
3402 | *) |
3403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3404 | for as_dir in $PATH |
3405 | do |
3406 | IFS=$as_save_IFS |
3407 | test -z "$as_dir" && as_dir=. |
3408 | for ac_exec_ext in '' $ac_executable_extensions; do |
3409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3410 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3412 | break 2 |
3413 | fi |
3414 | done |
3415 | done |
3416 | |
3417 | ;; |
3418 | esac |
3419 | fi |
3420 | AR=$ac_cv_path_AR |
3421 | |
3422 | if test -n "$AR"; then |
3423 | echo "$as_me:$LINENO: result: $AR" >&5 |
3424 | echo "${ECHO_T}$AR" >&6 |
3425 | else |
3426 | echo "$as_me:$LINENO: result: no" >&5 |
3427 | echo "${ECHO_T}no" >&6 |
3428 | fi |
3429 | |
3430 | # Extract the first word of "ld", so it can be a program name with args. |
3431 | set dummy ld; ac_word=$2 |
3432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3434 | if test "${ac_cv_path_LD+set}" = set; then |
3435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3436 | else |
3437 | case $LD in |
3438 | [\\/]* | ?:[\\/]*) |
3439 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
3440 | ;; |
3441 | *) |
3442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3443 | for as_dir in $PATH |
3444 | do |
3445 | IFS=$as_save_IFS |
3446 | test -z "$as_dir" && as_dir=. |
3447 | for ac_exec_ext in '' $ac_executable_extensions; do |
3448 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3449 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3451 | break 2 |
3452 | fi |
3453 | done |
3454 | done |
3455 | |
3456 | ;; |
3457 | esac |
3458 | fi |
3459 | LD=$ac_cv_path_LD |
3460 | |
3461 | if test -n "$LD"; then |
3462 | echo "$as_me:$LINENO: result: $LD" >&5 |
3463 | echo "${ECHO_T}$LD" >&6 |
3464 | else |
3465 | echo "$as_me:$LINENO: result: no" >&5 |
3466 | echo "${ECHO_T}no" >&6 |
3467 | fi |
3468 | |
3469 | # Extract the first word of "test", so it can be a program name with args. |
3470 | set dummy test; ac_word=$2 |
3471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3473 | if test "${ac_cv_path_TEST+set}" = set; then |
3474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3475 | else |
3476 | case $TEST in |
3477 | [\\/]* | ?:[\\/]*) |
3478 | ac_cv_path_TEST="$TEST" # Let the user override the test with a path. |
3479 | ;; |
3480 | *) |
3481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3482 | for as_dir in $PATH |
3483 | do |
3484 | IFS=$as_save_IFS |
3485 | test -z "$as_dir" && as_dir=. |
3486 | for ac_exec_ext in '' $ac_executable_extensions; do |
3487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3488 | ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext" |
3489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3490 | break 2 |
3491 | fi |
3492 | done |
3493 | done |
3494 | |
3495 | test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="test" |
3496 | ;; |
3497 | esac |
3498 | fi |
3499 | TEST=$ac_cv_path_TEST |
3500 | |
3501 | if test -n "$TEST"; then |
3502 | echo "$as_me:$LINENO: result: $TEST" >&5 |
3503 | echo "${ECHO_T}$TEST" >&6 |
3504 | else |
3505 | echo "$as_me:$LINENO: result: no" >&5 |
3506 | echo "${ECHO_T}no" >&6 |
3507 | fi |
3508 | |
3509 | |
3510 | if test "$libexecdir" = '${exec_prefix}/libexec' && |
3511 | test "$localstatedir" = '${prefix}/var'; then |
3512 | libexecdir='${bindir}' |
3513 | localstatedir='${prefix}' |
3514 | fi |
3515 | |
3516 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3517 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3518 | if test "${ac_cv_header_stdc+set}" = set; then |
3519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3520 | else |
3521 | cat >conftest.$ac_ext <<_ACEOF |
3522 | /* confdefs.h. */ |
3523 | _ACEOF |
3524 | cat confdefs.h >>conftest.$ac_ext |
3525 | cat >>conftest.$ac_ext <<_ACEOF |
3526 | /* end confdefs.h. */ |
3527 | #include <stdlib.h> |
3528 | #include <stdarg.h> |
3529 | #include <string.h> |
3530 | #include <float.h> |
3531 | |
3532 | int |
3533 | main () |
3534 | { |
3535 | |
3536 | ; |
3537 | return 0; |
3538 | } |
3539 | _ACEOF |
3540 | rm -f conftest.$ac_objext |
3541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3542 | (eval $ac_compile) 2>conftest.er1 |
3543 | ac_status=$? |
3544 | grep -v '^ *+' conftest.er1 >conftest.err |
3545 | rm -f conftest.er1 |
3546 | cat conftest.err >&5 |
3547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3548 | (exit $ac_status); } && |
3549 | { ac_try='test -z "$ac_c_werror_flag" |
3550 | || test ! -s conftest.err' |
3551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3552 | (eval $ac_try) 2>&5 |
3553 | ac_status=$? |
3554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3555 | (exit $ac_status); }; } && |
3556 | { ac_try='test -s conftest.$ac_objext' |
3557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3558 | (eval $ac_try) 2>&5 |
3559 | ac_status=$? |
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3561 | (exit $ac_status); }; }; then |
3562 | ac_cv_header_stdc=yes |
3563 | else |
3564 | echo "$as_me: failed program was:" >&5 |
3565 | sed 's/^/| /' conftest.$ac_ext >&5 |
3566 | |
3567 | ac_cv_header_stdc=no |
3568 | fi |
3569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3570 | |
3571 | if test $ac_cv_header_stdc = yes; then |
3572 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3573 | cat >conftest.$ac_ext <<_ACEOF |
3574 | /* confdefs.h. */ |
3575 | _ACEOF |
3576 | cat confdefs.h >>conftest.$ac_ext |
3577 | cat >>conftest.$ac_ext <<_ACEOF |
3578 | /* end confdefs.h. */ |
3579 | #include <string.h> |
3580 | |
3581 | _ACEOF |
3582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3583 | $EGREP "memchr" >/dev/null 2>&1; then |
3584 | : |
3585 | else |
3586 | ac_cv_header_stdc=no |
3587 | fi |
3588 | rm -f conftest* |
3589 | |
3590 | fi |
3591 | |
3592 | if test $ac_cv_header_stdc = yes; then |
3593 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
3594 | cat >conftest.$ac_ext <<_ACEOF |
3595 | /* confdefs.h. */ |
3596 | _ACEOF |
3597 | cat confdefs.h >>conftest.$ac_ext |
3598 | cat >>conftest.$ac_ext <<_ACEOF |
3599 | /* end confdefs.h. */ |
3600 | #include <stdlib.h> |
3601 | |
3602 | _ACEOF |
3603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3604 | $EGREP "free" >/dev/null 2>&1; then |
3605 | : |
3606 | else |
3607 | ac_cv_header_stdc=no |
3608 | fi |
3609 | rm -f conftest* |
3610 | |
3611 | fi |
3612 | |
3613 | if test $ac_cv_header_stdc = yes; then |
3614 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
3615 | if test "$cross_compiling" = yes; then |
3616 | : |
3617 | else |
3618 | cat >conftest.$ac_ext <<_ACEOF |
3619 | /* confdefs.h. */ |
3620 | _ACEOF |
3621 | cat confdefs.h >>conftest.$ac_ext |
3622 | cat >>conftest.$ac_ext <<_ACEOF |
3623 | /* end confdefs.h. */ |
3624 | #include <ctype.h> |
3625 | #if ((' ' & 0x0FF) == 0x020) |
3626 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
3627 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
3628 | #else |
3629 | # define ISLOWER(c) \ |
3630 | (('a' <= (c) && (c) <= 'i') \ |
3631 | || ('j' <= (c) && (c) <= 'r') \ |
3632 | || ('s' <= (c) && (c) <= 'z')) |
3633 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3634 | #endif |
3635 | |
3636 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3637 | int |
3638 | main () |
3639 | { |
3640 | int i; |
3641 | for (i = 0; i < 256; i++) |
3642 | if (XOR (islower (i), ISLOWER (i)) |
3643 | || toupper (i) != TOUPPER (i)) |
3644 | exit(2); |
3645 | exit (0); |
3646 | } |
3647 | _ACEOF |
3648 | rm -f conftest$ac_exeext |
3649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3650 | (eval $ac_link) 2>&5 |
3651 | ac_status=$? |
3652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3655 | (eval $ac_try) 2>&5 |
3656 | ac_status=$? |
3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3658 | (exit $ac_status); }; }; then |
3659 | : |
3660 | else |
3661 | echo "$as_me: program exited with status $ac_status" >&5 |
3662 | echo "$as_me: failed program was:" >&5 |
3663 | sed 's/^/| /' conftest.$ac_ext >&5 |
3664 | |
3665 | ( exit $ac_status ) |
3666 | ac_cv_header_stdc=no |
3667 | fi |
3668 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3669 | fi |
3670 | fi |
3671 | fi |
3672 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3673 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
3674 | if test $ac_cv_header_stdc = yes; then |
3675 | |
3676 | cat >>confdefs.h <<\_ACEOF |
3677 | #define STDC_HEADERS 1 |
3678 | _ACEOF |
3679 | |
3680 | fi |
3681 | |
3682 | |
3683 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3684 | |
3685 | |
3686 | |
3687 | |
3688 | |
3689 | |
3690 | |
3691 | |
3692 | |
3693 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3694 | inttypes.h stdint.h unistd.h |
3695 | do |
3696 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3701 | else |
3702 | cat >conftest.$ac_ext <<_ACEOF |
3703 | /* confdefs.h. */ |
3704 | _ACEOF |
3705 | cat confdefs.h >>conftest.$ac_ext |
3706 | cat >>conftest.$ac_ext <<_ACEOF |
3707 | /* end confdefs.h. */ |
3708 | $ac_includes_default |
3709 | |
3710 | #include <$ac_header> |
3711 | _ACEOF |
3712 | rm -f conftest.$ac_objext |
3713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3714 | (eval $ac_compile) 2>conftest.er1 |
3715 | ac_status=$? |
3716 | grep -v '^ *+' conftest.er1 >conftest.err |
3717 | rm -f conftest.er1 |
3718 | cat conftest.err >&5 |
3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3720 | (exit $ac_status); } && |
3721 | { ac_try='test -z "$ac_c_werror_flag" |
3722 | || test ! -s conftest.err' |
3723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3724 | (eval $ac_try) 2>&5 |
3725 | ac_status=$? |
3726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3727 | (exit $ac_status); }; } && |
3728 | { ac_try='test -s conftest.$ac_objext' |
3729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3730 | (eval $ac_try) 2>&5 |
3731 | ac_status=$? |
3732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3733 | (exit $ac_status); }; }; then |
3734 | eval "$as_ac_Header=yes" |
3735 | else |
3736 | echo "$as_me: failed program was:" >&5 |
3737 | sed 's/^/| /' conftest.$ac_ext >&5 |
3738 | |
3739 | eval "$as_ac_Header=no" |
3740 | fi |
3741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3742 | fi |
3743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3744 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3746 | cat >>confdefs.h <<_ACEOF |
3747 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3748 | _ACEOF |
3749 | |
3750 | fi |
3751 | |
3752 | done |
3753 | |
3754 | |
3755 | |
3756 | |
3757 | |
3758 | |
3759 | |
3760 | |
3761 | |
3762 | |
3763 | |
3764 | |
3765 | |
3766 | for ac_header in crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h |
3767 | do |
3768 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3774 | fi |
3775 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3776 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3777 | else |
3778 | # Is the header compilable? |
3779 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3780 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
3781 | cat >conftest.$ac_ext <<_ACEOF |
3782 | /* confdefs.h. */ |
3783 | _ACEOF |
3784 | cat confdefs.h >>conftest.$ac_ext |
3785 | cat >>conftest.$ac_ext <<_ACEOF |
3786 | /* end confdefs.h. */ |
3787 | $ac_includes_default |
3788 | #include <$ac_header> |
3789 | _ACEOF |
3790 | rm -f conftest.$ac_objext |
3791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3792 | (eval $ac_compile) 2>conftest.er1 |
3793 | ac_status=$? |
3794 | grep -v '^ *+' conftest.er1 >conftest.err |
3795 | rm -f conftest.er1 |
3796 | cat conftest.err >&5 |
3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3798 | (exit $ac_status); } && |
3799 | { ac_try='test -z "$ac_c_werror_flag" |
3800 | || test ! -s conftest.err' |
3801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3802 | (eval $ac_try) 2>&5 |
3803 | ac_status=$? |
3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3805 | (exit $ac_status); }; } && |
3806 | { ac_try='test -s conftest.$ac_objext' |
3807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3808 | (eval $ac_try) 2>&5 |
3809 | ac_status=$? |
3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3811 | (exit $ac_status); }; }; then |
3812 | ac_header_compiler=yes |
3813 | else |
3814 | echo "$as_me: failed program was:" >&5 |
3815 | sed 's/^/| /' conftest.$ac_ext >&5 |
3816 | |
3817 | ac_header_compiler=no |
3818 | fi |
3819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3820 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3821 | echo "${ECHO_T}$ac_header_compiler" >&6 |
3822 | |
3823 | # Is the header present? |
3824 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3825 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |