]>
Commit | Line | Data |
---|---|---|
212380e3 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
b5135efc | 3 | # Generated by GNU Autoconf 2.68 for shadowircd 6.3.2. |
212380e3 | 4 | # |
56efe974 | 5 | # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 6 | # |
1800d973 | 7 | # |
631ef239 | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
b540af17 JH |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
10 | # Foundation, Inc. | |
1800d973 | 11 | # |
042acc47 | 12 | # |
212380e3 | 13 | # This configure script is free software; the Free Software Foundation |
14 | # gives unlimited permission to copy, distribute and modify it. | |
042acc47 WP |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
212380e3 | 18 | |
631ef239 | 19 | # Be more Bourne compatible |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
042acc47 | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 | 22 | emulate sh |
23 | NULLCMD=: | |
042acc47 | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 | 25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 27 | setopt NO_GLOB_SUBST |
28 | else | |
042acc47 WP |
29 | case `(set -o) 2>/dev/null` in #( |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
631ef239 | 34 | esac |
631ef239 | 35 | fi |
36 | ||
37 | ||
042acc47 WP |
38 | as_nl=' |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 58 | else |
042acc47 WP |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 71 | fi |
042acc47 WP |
72 | export as_echo_body |
73 | as_echo='sh -c $as_echo_body as_echo' | |
212380e3 | 74 | fi |
212380e3 | 75 | |
042acc47 WP |
76 | # The user is always right. |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
212380e3 | 83 | fi |
84 | ||
85 | ||
631ef239 | 86 | # IFS |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
631ef239 | 91 | IFS=" "" $as_nl" |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
b540af17 | 94 | as_myself= |
042acc47 | 95 | case $0 in #(( |
631ef239 | 96 | *[\\/]* ) as_myself=$0 ;; |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
042acc47 WP |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
103 | done | |
631ef239 | 104 | IFS=$as_save_IFS |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
042acc47 WP |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
115 | exit 1 | |
631ef239 | 116 | fi |
117 | ||
042acc47 WP |
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 125 | done |
212380e3 | 126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
042acc47 WP |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | if test "x$CONFIG_SHELL" = x; then | |
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 | emulate sh | |
142 | NULLCMD=: | |
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 | # is contrary to our usage. Disable this feature. | |
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 | setopt NO_GLOB_SUBST | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
161 | ||
162 | exitcode=0 | |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | ||
169 | else | |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
172 | test x\$exitcode = x0 || exit 1" | |
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | test \$(( 1 + 1 )) = 2 || exit 1" | |
178 | if (eval "$as_required") 2>/dev/null; then : | |
179 | as_have_required=yes | |
180 | else | |
181 | as_have_required=no | |
182 | fi | |
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
184 | ||
185 | else | |
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
187 | as_found=false | |
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212380e3 | 189 | do |
042acc47 WP |
190 | IFS=$as_save_IFS |
191 | test -z "$as_dir" && as_dir=. | |
192 | as_found=: | |
193 | case $as_dir in #( | |
194 | /*) | |
195 | for as_base in sh bash ksh sh5; do | |
196 | # Try only shells that exist, to save several forks. | |
197 | as_shell=$as_dir/$as_base | |
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | CONFIG_SHELL=$as_shell as_have_required=yes | |
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
202 | break 2 | |
203 | fi | |
204 | fi | |
205 | done;; | |
206 | esac | |
207 | as_found=false | |
208 | done | |
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
211 | CONFIG_SHELL=$SHELL as_have_required=yes | |
212 | fi; } | |
213 | IFS=$as_save_IFS | |
214 | ||
215 | ||
216 | if test "x$CONFIG_SHELL" != x; then : | |
217 | # We cannot yet assume a decent shell, so we have to provide a | |
218 | # neutralization value for shells without unset; and this also | |
219 | # works around shells that cannot unset nonexistent variables. | |
b540af17 | 220 | # Preserve -v and -x to the replacement shell. |
042acc47 WP |
221 | BASH_ENV=/dev/null |
222 | ENV=/dev/null | |
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
224 | export CONFIG_SHELL | |
b540af17 JH |
225 | case $- in # (((( |
226 | *v*x* | *x*v* ) as_opts=-vx ;; | |
227 | *v* ) as_opts=-v ;; | |
228 | *x* ) as_opts=-x ;; | |
229 | * ) as_opts= ;; | |
230 | esac | |
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
042acc47 WP |
232 | fi |
233 | ||
234 | if test x$as_have_required = xno; then : | |
235 | $as_echo "$0: This script requires a shell more modern than all" | |
236 | $as_echo "$0: the shells that I found on your system." | |
237 | if test x${ZSH_VERSION+set} = xset ; then | |
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
212380e3 | 240 | else |
042acc47 WP |
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
242 | $0: including any error possibly output before this | |
243 | $0: message. Then install a modern shell, or manually run | |
244 | $0: the script under such a shell if you do have one." | |
212380e3 | 245 | fi |
042acc47 WP |
246 | exit 1 |
247 | fi | |
248 | fi | |
249 | fi | |
250 | SHELL=${CONFIG_SHELL-/bin/sh} | |
251 | export SHELL | |
252 | # Unset more variables known to interfere with behavior of common tools. | |
253 | CLICOLOR_FORCE= GREP_OPTIONS= | |
254 | unset CLICOLOR_FORCE GREP_OPTIONS | |
255 | ||
256 | ## --------------------- ## | |
257 | ## M4sh Shell Functions. ## | |
258 | ## --------------------- ## | |
259 | # as_fn_unset VAR | |
260 | # --------------- | |
261 | # Portably unset VAR. | |
262 | as_fn_unset () | |
263 | { | |
264 | { eval $1=; unset $1;} | |
265 | } | |
266 | as_unset=as_fn_unset | |
267 | ||
268 | # as_fn_set_status STATUS | |
269 | # ----------------------- | |
270 | # Set $? to STATUS, without forking. | |
271 | as_fn_set_status () | |
272 | { | |
273 | return $1 | |
274 | } # as_fn_set_status | |
275 | ||
276 | # as_fn_exit STATUS | |
277 | # ----------------- | |
278 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
279 | as_fn_exit () | |
280 | { | |
281 | set +e | |
282 | as_fn_set_status $1 | |
283 | exit $1 | |
284 | } # as_fn_exit | |
285 | ||
286 | # as_fn_mkdir_p | |
287 | # ------------- | |
288 | # Create "$as_dir" as a directory, including parents if necessary. | |
289 | as_fn_mkdir_p () | |
290 | { | |
291 | ||
292 | case $as_dir in #( | |
293 | -*) as_dir=./$as_dir;; | |
294 | esac | |
295 | test -d "$as_dir" || eval $as_mkdir_p || { | |
296 | as_dirs= | |
297 | while :; do | |
298 | case $as_dir in #( | |
299 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
300 | *) as_qdir=$as_dir;; | |
301 | esac | |
302 | as_dirs="'$as_qdir' $as_dirs" | |
303 | as_dir=`$as_dirname -- "$as_dir" || | |
304 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
305 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
306 | X"$as_dir" : 'X\(//\)$' \| \ | |
307 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
308 | $as_echo X"$as_dir" | | |
309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)[^/].*/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\/\)$/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | /^X\(\/\).*/{ | |
322 | s//\1/ | |
323 | q | |
324 | } | |
325 | s/.*/./; q'` | |
326 | test -d "$as_dir" && break | |
327 | done | |
328 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b540af17 | 329 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
042acc47 WP |
330 | |
331 | ||
332 | } # as_fn_mkdir_p | |
333 | # as_fn_append VAR VALUE | |
334 | # ---------------------- | |
335 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
336 | # advantage of any shell optimizations that allow amortized linear growth over | |
337 | # repeated appends, instead of the typical quadratic growth present in naive | |
338 | # implementations. | |
339 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
340 | eval 'as_fn_append () | |
341 | { | |
342 | eval $1+=\$2 | |
343 | }' | |
344 | else | |
345 | as_fn_append () | |
346 | { | |
347 | eval $1=\$$1\$2 | |
348 | } | |
349 | fi # as_fn_append | |
350 | ||
351 | # as_fn_arith ARG... | |
352 | # ------------------ | |
353 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
354 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
355 | # must be portable across $(()) and expr. | |
356 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
357 | eval 'as_fn_arith () | |
358 | { | |
359 | as_val=$(( $* )) | |
360 | }' | |
361 | else | |
362 | as_fn_arith () | |
363 | { | |
364 | as_val=`expr "$@" || test $? -eq 1` | |
365 | } | |
366 | fi # as_fn_arith | |
367 | ||
368 | ||
b540af17 JH |
369 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
370 | # ---------------------------------------- | |
042acc47 WP |
371 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
372 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b540af17 | 373 | # script with STATUS, using 1 if that was 0. |
042acc47 WP |
374 | as_fn_error () |
375 | { | |
b540af17 JH |
376 | as_status=$1; test $as_status -eq 0 && as_status=1 |
377 | if test "$4"; then | |
378 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
379 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
042acc47 | 380 | fi |
b540af17 | 381 | $as_echo "$as_me: error: $2" >&2 |
042acc47 WP |
382 | as_fn_exit $as_status |
383 | } # as_fn_error | |
212380e3 | 384 | |
631ef239 | 385 | if expr a : '\(a\)' >/dev/null 2>&1 && |
386 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 | 387 | as_expr=expr |
388 | else | |
389 | as_expr=false | |
390 | fi | |
391 | ||
631ef239 | 392 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 | 393 | as_basename=basename |
394 | else | |
395 | as_basename=false | |
396 | fi | |
397 | ||
042acc47 WP |
398 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
399 | as_dirname=dirname | |
400 | else | |
401 | as_dirname=false | |
402 | fi | |
212380e3 | 403 | |
631ef239 | 404 | as_me=`$as_basename -- "$0" || |
212380e3 | 405 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
406 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 407 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
042acc47 | 408 | $as_echo X/"$0" | |
631ef239 | 409 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\/\)$/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | /^X\/\(\/\).*/{ | |
418 | s//\1/ | |
419 | q | |
420 | } | |
421 | s/.*/./; q'` | |
212380e3 | 422 | |
042acc47 WP |
423 | # Avoid depending upon Character Ranges. |
424 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
425 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
426 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
427 | as_cr_digits='0123456789' | |
428 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
212380e3 | 429 | |
212380e3 | 430 | |
042acc47 WP |
431 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
432 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
433 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
434 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
435 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
436 | sed -n ' | |
437 | p | |
438 | /[$]LINENO/= | |
439 | ' <$as_myself | | |
440 | sed ' | |
441 | s/[$]LINENO.*/&-/ | |
442 | t lineno | |
443 | b | |
444 | :lineno | |
445 | N | |
446 | :loop | |
447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
448 | t loop | |
449 | s/-\n.*// | |
450 | ' >$as_me.lineno && | |
451 | chmod +x "$as_me.lineno" || | |
452 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
212380e3 | 453 | |
042acc47 WP |
454 | # Don't try to exec as it changes $[0], causing all sort of problems |
455 | # (the dirname of $[0] is not the place where we might find the | |
456 | # original and so on. Autoconf is especially sensitive to this). | |
457 | . "./$as_me.lineno" | |
458 | # Exit status is that of the last command. | |
459 | exit | |
631ef239 | 460 | } |
212380e3 | 461 | |
042acc47 WP |
462 | ECHO_C= ECHO_N= ECHO_T= |
463 | case `echo -n x` in #((((( | |
464 | -n*) | |
465 | case `echo 'xy\c'` in | |
466 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
467 | xy) ECHO_C='\c';; | |
468 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
469 | ECHO_T=' ';; | |
470 | esac;; | |
471 | *) | |
472 | ECHO_N='-n';; | |
473 | esac | |
631ef239 | 474 | |
042acc47 WP |
475 | rm -f conf$$ conf$$.exe conf$$.file |
476 | if test -d conf$$.dir; then | |
477 | rm -f conf$$.dir/conf$$.file | |
478 | else | |
479 | rm -f conf$$.dir | |
480 | mkdir conf$$.dir 2>/dev/null | |
481 | fi | |
482 | if (echo >conf$$.file) 2>/dev/null; then | |
483 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
484 | as_ln_s='ln -s' | |
485 | # ... but there are two gotchas: | |
486 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
487 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
488 | # In both cases, we have to default to `cp -p'. | |
489 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
490 | as_ln_s='cp -p' | |
491 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
492 | as_ln_s=ln | |
493 | else | |
494 | as_ln_s='cp -p' | |
495 | fi | |
631ef239 | 496 | else |
042acc47 | 497 | as_ln_s='cp -p' |
631ef239 | 498 | fi |
042acc47 WP |
499 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
500 | rmdir conf$$.dir 2>/dev/null | |
631ef239 | 501 | |
042acc47 WP |
502 | if mkdir -p . 2>/dev/null; then |
503 | as_mkdir_p='mkdir -p "$as_dir"' | |
504 | else | |
505 | test -d ./-p && rmdir ./-p | |
506 | as_mkdir_p=false | |
631ef239 | 507 | fi |
508 | ||
042acc47 WP |
509 | if test -x / >/dev/null 2>&1; then |
510 | as_test_x='test -x' | |
631ef239 | 511 | else |
042acc47 WP |
512 | if ls -dL / >/dev/null 2>&1; then |
513 | as_ls_L_option=L | |
514 | else | |
515 | as_ls_L_option= | |
516 | fi | |
517 | as_test_x=' | |
518 | eval sh -c '\'' | |
519 | if test -d "$1"; then | |
520 | test -d "$1/."; | |
521 | else | |
522 | case $1 in #( | |
523 | -*)set "./$1";; | |
524 | esac; | |
525 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
526 | ???[sx]*):;;*)false;;esac;fi | |
527 | '\'' sh | |
528 | ' | |
631ef239 | 529 | fi |
042acc47 | 530 | as_executable_p=$as_test_x |
631ef239 | 531 | |
042acc47 WP |
532 | # Sed expression to map a string onto a valid CPP name. |
533 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 | 534 | |
042acc47 WP |
535 | # Sed expression to map a string onto a valid variable name. |
536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 | 537 | |
538 | ||
1800d973 WP |
539 | test -n "$DJDIR" || exec 7<&0 </dev/null |
540 | exec 6>&1 | |
631ef239 | 541 | |
042acc47 | 542 | # Name of the host. |
b540af17 | 543 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
042acc47 WP |
544 | # so uname gets run too. |
545 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
631ef239 | 546 | |
042acc47 WP |
547 | # |
548 | # Initializations. | |
549 | # | |
550 | ac_default_prefix=/usr/local | |
551 | ac_clean_files= | |
552 | ac_config_libobj_dir=. | |
553 | LIBOBJS= | |
554 | cross_compiling=no | |
555 | subdirs= | |
556 | MFLAGS= | |
557 | MAKEFLAGS= | |
212380e3 | 558 | |
212380e3 | 559 | # Identity of this package. |
867dcc9f JH |
560 | PACKAGE_NAME='shadowircd' |
561 | PACKAGE_TARNAME='shadowircd' | |
b5135efc JH |
562 | PACKAGE_VERSION='6.3.2' |
563 | PACKAGE_STRING='shadowircd 6.3.2' | |
212380e3 | 564 | PACKAGE_BUGREPORT='' |
042acc47 | 565 | PACKAGE_URL='' |
212380e3 | 566 | |
567 | ac_default_prefix=$HOME/ircd | |
568 | # Factoring default headers for most tests. | |
569 | ac_includes_default="\ | |
570 | #include <stdio.h> | |
631ef239 | 571 | #ifdef HAVE_SYS_TYPES_H |
212380e3 | 572 | # include <sys/types.h> |
573 | #endif | |
631ef239 | 574 | #ifdef HAVE_SYS_STAT_H |
212380e3 | 575 | # include <sys/stat.h> |
576 | #endif | |
631ef239 | 577 | #ifdef STDC_HEADERS |
212380e3 | 578 | # include <stdlib.h> |
579 | # include <stddef.h> | |
580 | #else | |
631ef239 | 581 | # ifdef HAVE_STDLIB_H |
212380e3 | 582 | # include <stdlib.h> |
583 | # endif | |
584 | #endif | |
631ef239 | 585 | #ifdef HAVE_STRING_H |
586 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 | 587 | # include <memory.h> |
588 | # endif | |
589 | # include <string.h> | |
590 | #endif | |
631ef239 | 591 | #ifdef HAVE_STRINGS_H |
212380e3 | 592 | # include <strings.h> |
593 | #endif | |
631ef239 | 594 | #ifdef HAVE_INTTYPES_H |
212380e3 | 595 | # include <inttypes.h> |
212380e3 | 596 | #endif |
631ef239 | 597 | #ifdef HAVE_STDINT_H |
598 | # include <stdint.h> | |
599 | #endif | |
600 | #ifdef HAVE_UNISTD_H | |
212380e3 | 601 | # include <unistd.h> |
602 | #endif" | |
603 | ||
042acc47 WP |
604 | enable_option_checking=no |
605 | ac_subst_vars='LTLIBOBJS | |
631ef239 | 606 | LIBOBJS |
042acc47 WP |
607 | SEDOBJ |
608 | IRC_CFLAGS | |
609 | PICFLAGS | |
610 | SSL_LIBS | |
611 | SSL_INCLUDES | |
612 | SSL_SRCS_ENABLE | |
613 | MOD_TARGET | |
614 | MODULES_LIBS | |
615 | SELECT_TYPE | |
bf9bfd26 JH |
616 | PROGRAM_PREFIX |
617 | PKGRUNDIR | |
042acc47 WP |
618 | moduledir |
619 | MODULE_DIR | |
620 | helpdir | |
621 | HELP_DIR | |
622 | logdir | |
623 | LOG_DIR | |
624 | confdir | |
625 | ETC_DIR | |
626 | ZLIB_LD | |
627 | ENCSPEED | |
628 | ALLOCA | |
629 | VICONF | |
630 | CRYPT_LIB | |
bf9bfd26 JH |
631 | PKGLIBEXECDIR |
632 | pkglibexecdir | |
633 | PKGLOCALSTATEDIR | |
634 | pkglocalstatedir | |
635 | pkgrundir | |
636 | rundir | |
637 | pkglibdir | |
042acc47 WP |
638 | LEXLIB |
639 | LEX_OUTPUT_ROOT | |
640 | LEX | |
641 | YFLAGS | |
642 | YACC | |
643 | TOUCH | |
644 | RANLIB | |
645 | LD | |
646 | AR | |
647 | SED | |
648 | LN | |
649 | MV | |
650 | CP | |
651 | RM | |
652 | INSTALL_DATA | |
653 | INSTALL_SCRIPT | |
654 | INSTALL_PROGRAM | |
655 | SET_MAKE | |
656 | STDOUT | |
657 | MAKEDEPEND | |
658 | MKDEP | |
659 | subdirs | |
660 | EGREP | |
661 | GREP | |
662 | CPP | |
663 | OBJEXT | |
664 | EXEEXT | |
665 | ac_ct_CC | |
666 | CPPFLAGS | |
667 | LDFLAGS | |
668 | CFLAGS | |
669 | CC | |
670 | target_alias | |
671 | host_alias | |
672 | build_alias | |
673 | LIBS | |
674 | ECHO_T | |
675 | ECHO_N | |
676 | ECHO_C | |
677 | DEFS | |
678 | mandir | |
679 | localedir | |
680 | libdir | |
681 | psdir | |
682 | pdfdir | |
683 | dvidir | |
684 | htmldir | |
685 | infodir | |
686 | docdir | |
687 | oldincludedir | |
688 | includedir | |
689 | localstatedir | |
690 | sharedstatedir | |
691 | sysconfdir | |
692 | datadir | |
693 | datarootdir | |
694 | libexecdir | |
695 | sbindir | |
696 | bindir | |
697 | program_transform_name | |
698 | prefix | |
699 | exec_prefix | |
700 | PACKAGE_URL | |
701 | PACKAGE_BUGREPORT | |
702 | PACKAGE_STRING | |
703 | PACKAGE_VERSION | |
704 | PACKAGE_TARNAME | |
705 | PACKAGE_NAME | |
706 | PATH_SEPARATOR | |
707 | SHELL' | |
212380e3 | 708 | ac_subst_files='' |
042acc47 WP |
709 | ac_user_opts=' |
710 | enable_option_checking | |
bf9bfd26 | 711 | enable_fhs_paths |
042acc47 WP |
712 | enable_ipv6 |
713 | enable_openssl | |
714 | with_zlib_path | |
715 | enable_zlib | |
716 | enable_ports | |
717 | enable_poll | |
718 | enable_select | |
719 | enable_kqueue | |
720 | enable_epoll | |
721 | with_confdir | |
722 | with_logdir | |
723 | with_helpdir | |
724 | with_moduledir | |
bf9bfd26 JH |
725 | with_rundir |
726 | with_program_prefix | |
042acc47 WP |
727 | enable_assert |
728 | enable_iodebug | |
729 | enable_profile | |
730 | enable_balloc | |
731 | enable_small_net | |
732 | with_nicklen | |
733 | with_topiclen | |
734 | enable_warnings | |
735 | ' | |
631ef239 | 736 | ac_precious_vars='build_alias |
737 | host_alias | |
738 | target_alias | |
739 | CC | |
740 | CFLAGS | |
741 | LDFLAGS | |
742 | LIBS | |
743 | CPPFLAGS | |
744 | CPP | |
745 | YACC | |
746 | YFLAGS' | |
56efe974 | 747 | ac_subdirs_all='libratbox' |
212380e3 | 748 | |
749 | # Initialize some variables set by options. | |
750 | ac_init_help= | |
751 | ac_init_version=false | |
042acc47 WP |
752 | ac_unrecognized_opts= |
753 | ac_unrecognized_sep= | |
212380e3 | 754 | # The variables have the same names as the options, with |
755 | # dashes changed to underlines. | |
756 | cache_file=/dev/null | |
757 | exec_prefix=NONE | |
758 | no_create= | |
759 | no_recursion= | |
760 | prefix=NONE | |
761 | program_prefix=NONE | |
762 | program_suffix=NONE | |
763 | program_transform_name=s,x,x, | |
764 | silent= | |
765 | site= | |
766 | srcdir= | |
767 | verbose= | |
768 | x_includes=NONE | |
769 | x_libraries=NONE | |
770 | ||
771 | # Installation directory options. | |
772 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
773 | # and all the variables that are supposed to be based on exec_prefix | |
774 | # by default will actually change. | |
775 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 776 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 | 777 | bindir='${exec_prefix}/bin' |
778 | sbindir='${exec_prefix}/sbin' | |
779 | libexecdir='${exec_prefix}/libexec' | |
631ef239 | 780 | datarootdir='${prefix}/share' |
781 | datadir='${datarootdir}' | |
212380e3 | 782 | sysconfdir='${prefix}/etc' |
783 | sharedstatedir='${prefix}/com' | |
784 | localstatedir='${prefix}/var' | |
212380e3 | 785 | includedir='${prefix}/include' |
786 | oldincludedir='/usr/include' | |
631ef239 | 787 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
788 | infodir='${datarootdir}/info' | |
789 | htmldir='${docdir}' | |
790 | dvidir='${docdir}' | |
791 | pdfdir='${docdir}' | |
792 | psdir='${docdir}' | |
793 | libdir='${exec_prefix}/lib' | |
794 | localedir='${datarootdir}/locale' | |
795 | mandir='${datarootdir}/man' | |
212380e3 | 796 | |
797 | ac_prev= | |
631ef239 | 798 | ac_dashdash= |
212380e3 | 799 | for ac_option |
800 | do | |
801 | # If the previous option needs an argument, assign it. | |
802 | if test -n "$ac_prev"; then | |
631ef239 | 803 | eval $ac_prev=\$ac_option |
212380e3 | 804 | ac_prev= |
805 | continue | |
806 | fi | |
807 | ||
631ef239 | 808 | case $ac_option in |
b540af17 JH |
809 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
810 | *=) ac_optarg= ;; | |
811 | *) ac_optarg=yes ;; | |
631ef239 | 812 | esac |
212380e3 | 813 | |
814 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
815 | ||
631ef239 | 816 | case $ac_dashdash$ac_option in |
817 | --) | |
818 | ac_dashdash=yes ;; | |
212380e3 | 819 | |
820 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
821 | ac_prev=bindir ;; | |
822 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
823 | bindir=$ac_optarg ;; | |
824 | ||
825 | -build | --build | --buil | --bui | --bu) | |
826 | ac_prev=build_alias ;; | |
827 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
828 | build_alias=$ac_optarg ;; | |
829 | ||
830 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
831 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
832 | ac_prev=cache_file ;; | |
833 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
834 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
835 | cache_file=$ac_optarg ;; | |
836 | ||
837 | --config-cache | -C) | |
838 | cache_file=config.cache ;; | |
839 | ||
631ef239 | 840 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 841 | ac_prev=datadir ;; |
631ef239 | 842 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 | 843 | datadir=$ac_optarg ;; |
844 | ||
631ef239 | 845 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
846 | | --dataroo | --dataro | --datar) | |
847 | ac_prev=datarootdir ;; | |
848 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
849 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
850 | datarootdir=$ac_optarg ;; | |
851 | ||
212380e3 | 852 | -disable-* | --disable-*) |
042acc47 | 853 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 854 | # Reject names that are not valid shell variable names. |
042acc47 | 855 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b540af17 | 856 | as_fn_error $? "invalid feature name: $ac_useropt" |
042acc47 WP |
857 | ac_useropt_orig=$ac_useropt |
858 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
859 | case $ac_user_opts in | |
860 | *" | |
861 | "enable_$ac_useropt" | |
862 | "*) ;; | |
863 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
864 | ac_unrecognized_sep=', ';; | |
865 | esac | |
866 | eval enable_$ac_useropt=no ;; | |
631ef239 | 867 | |
868 | -docdir | --docdir | --docdi | --doc | --do) | |
869 | ac_prev=docdir ;; | |
870 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
871 | docdir=$ac_optarg ;; | |
872 | ||
873 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
874 | ac_prev=dvidir ;; | |
875 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
876 | dvidir=$ac_optarg ;; | |
212380e3 | 877 | |
878 | -enable-* | --enable-*) | |
042acc47 | 879 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 880 | # Reject names that are not valid shell variable names. |
042acc47 | 881 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b540af17 | 882 | as_fn_error $? "invalid feature name: $ac_useropt" |
042acc47 WP |
883 | ac_useropt_orig=$ac_useropt |
884 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
885 | case $ac_user_opts in | |
886 | *" | |
887 | "enable_$ac_useropt" | |
888 | "*) ;; | |
889 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
890 | ac_unrecognized_sep=', ';; | |
891 | esac | |
892 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 | 893 | |
894 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
895 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
896 | | --exec | --exe | --ex) | |
897 | ac_prev=exec_prefix ;; | |
898 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
899 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
900 | | --exec=* | --exe=* | --ex=*) | |
901 | exec_prefix=$ac_optarg ;; | |
902 | ||
903 | -gas | --gas | --ga | --g) | |
904 | # Obsolete; use --with-gas. | |
905 | with_gas=yes ;; | |
906 | ||
907 | -help | --help | --hel | --he | -h) | |
908 | ac_init_help=long ;; | |
909 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
910 | ac_init_help=recursive ;; | |
911 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
912 | ac_init_help=short ;; | |
913 | ||
914 | -host | --host | --hos | --ho) | |
915 | ac_prev=host_alias ;; | |
916 | -host=* | --host=* | --hos=* | --ho=*) | |
917 | host_alias=$ac_optarg ;; | |
918 | ||
631ef239 | 919 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
920 | ac_prev=htmldir ;; | |
921 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
922 | | --ht=*) | |
923 | htmldir=$ac_optarg ;; | |
924 | ||
212380e3 | 925 | -includedir | --includedir | --includedi | --included | --include \ |
926 | | --includ | --inclu | --incl | --inc) | |
927 | ac_prev=includedir ;; | |
928 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
929 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
930 | includedir=$ac_optarg ;; | |
931 | ||
932 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
933 | ac_prev=infodir ;; | |
934 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
935 | infodir=$ac_optarg ;; | |
936 | ||
937 | -libdir | --libdir | --libdi | --libd) | |
938 | ac_prev=libdir ;; | |
939 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
940 | libdir=$ac_optarg ;; | |
941 | ||
942 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
943 | | --libexe | --libex | --libe) | |
944 | ac_prev=libexecdir ;; | |
945 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
946 | | --libexe=* | --libex=* | --libe=*) | |
947 | libexecdir=$ac_optarg ;; | |
948 | ||
631ef239 | 949 | -localedir | --localedir | --localedi | --localed | --locale) |
950 | ac_prev=localedir ;; | |
951 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
952 | localedir=$ac_optarg ;; | |
953 | ||
212380e3 | 954 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 955 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 | 956 | ac_prev=localstatedir ;; |
957 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 958 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 | 959 | localstatedir=$ac_optarg ;; |
960 | ||
961 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
962 | ac_prev=mandir ;; | |
963 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
964 | mandir=$ac_optarg ;; | |
965 | ||
966 | -nfp | --nfp | --nf) | |
967 | # Obsolete; use --without-fp. | |
968 | with_fp=no ;; | |
969 | ||
970 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
971 | | --no-cr | --no-c | -n) | |
972 | no_create=yes ;; | |
973 | ||
974 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
975 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
976 | no_recursion=yes ;; | |
977 | ||
978 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
979 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
980 | | --oldin | --oldi | --old | --ol | --o) | |
981 | ac_prev=oldincludedir ;; | |
982 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
983 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
984 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
985 | oldincludedir=$ac_optarg ;; | |
986 | ||
987 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
988 | ac_prev=prefix ;; | |
989 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
990 | prefix=$ac_optarg ;; | |
991 | ||
992 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
993 | | --program-pre | --program-pr | --program-p) | |
994 | ac_prev=program_prefix ;; | |
995 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
996 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
997 | program_prefix=$ac_optarg ;; | |
998 | ||
999 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1000 | | --program-suf | --program-su | --program-s) | |
1001 | ac_prev=program_suffix ;; | |
1002 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1003 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1004 | program_suffix=$ac_optarg ;; | |
1005 | ||
1006 | -program-transform-name | --program-transform-name \ | |
1007 | | --program-transform-nam | --program-transform-na \ | |
1008 | | --program-transform-n | --program-transform- \ | |
1009 | | --program-transform | --program-transfor \ | |
1010 | | --program-transfo | --program-transf \ | |
1011 | | --program-trans | --program-tran \ | |
1012 | | --progr-tra | --program-tr | --program-t) | |
1013 | ac_prev=program_transform_name ;; | |
1014 | -program-transform-name=* | --program-transform-name=* \ | |
1015 | | --program-transform-nam=* | --program-transform-na=* \ | |
1016 | | --program-transform-n=* | --program-transform-=* \ | |
1017 | | --program-transform=* | --program-transfor=* \ | |
1018 | | --program-transfo=* | --program-transf=* \ | |
1019 | | --program-trans=* | --program-tran=* \ | |
1020 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1021 | program_transform_name=$ac_optarg ;; | |
1022 | ||
631ef239 | 1023 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1024 | ac_prev=pdfdir ;; | |
1025 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1026 | pdfdir=$ac_optarg ;; | |
1027 | ||
1028 | -psdir | --psdir | --psdi | --psd | --ps) | |
1029 | ac_prev=psdir ;; | |
1030 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1031 | psdir=$ac_optarg ;; | |
1032 | ||
212380e3 | 1033 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1034 | | -silent | --silent | --silen | --sile | --sil) | |
1035 | silent=yes ;; | |
1036 | ||
1037 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1038 | ac_prev=sbindir ;; | |
1039 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1040 | | --sbi=* | --sb=*) | |
1041 | sbindir=$ac_optarg ;; | |
1042 | ||
1043 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1044 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1045 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1046 | | --sha | --sh) | |
1047 | ac_prev=sharedstatedir ;; | |
1048 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1049 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1050 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1051 | | --sha=* | --sh=*) | |
1052 | sharedstatedir=$ac_optarg ;; | |
1053 | ||
1054 | -site | --site | --sit) | |
1055 | ac_prev=site ;; | |
1056 | -site=* | --site=* | --sit=*) | |
1057 | site=$ac_optarg ;; | |
1058 | ||
1059 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1060 | ac_prev=srcdir ;; | |
1061 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1062 | srcdir=$ac_optarg ;; | |
1063 | ||
1064 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1065 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1066 | ac_prev=sysconfdir ;; | |
1067 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1068 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1069 | sysconfdir=$ac_optarg ;; | |
1070 | ||
1071 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1072 | ac_prev=target_alias ;; | |
1073 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1074 | target_alias=$ac_optarg ;; | |
1075 | ||
1076 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1077 | verbose=yes ;; | |
1078 | ||
1079 | -version | --version | --versio | --versi | --vers | -V) | |
1080 | ac_init_version=: ;; | |
1081 | ||
1082 | -with-* | --with-*) | |
042acc47 | 1083 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1084 | # Reject names that are not valid shell variable names. |
042acc47 | 1085 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b540af17 | 1086 | as_fn_error $? "invalid package name: $ac_useropt" |
042acc47 WP |
1087 | ac_useropt_orig=$ac_useropt |
1088 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1089 | case $ac_user_opts in | |
1090 | *" | |
1091 | "with_$ac_useropt" | |
1092 | "*) ;; | |
1093 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1094 | ac_unrecognized_sep=', ';; | |
1095 | esac | |
1096 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 | 1097 | |
1098 | -without-* | --without-*) | |
042acc47 | 1099 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1100 | # Reject names that are not valid shell variable names. |
042acc47 | 1101 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b540af17 | 1102 | as_fn_error $? "invalid package name: $ac_useropt" |
042acc47 WP |
1103 | ac_useropt_orig=$ac_useropt |
1104 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1105 | case $ac_user_opts in | |
1106 | *" | |
1107 | "with_$ac_useropt" | |
1108 | "*) ;; | |
1109 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1110 | ac_unrecognized_sep=', ';; | |
1111 | esac | |
1112 | eval with_$ac_useropt=no ;; | |
212380e3 | 1113 | |
1114 | --x) | |
1115 | # Obsolete; use --with-x. | |
1116 | with_x=yes ;; | |
1117 | ||
1118 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1119 | | --x-incl | --x-inc | --x-in | --x-i) | |
1120 | ac_prev=x_includes ;; | |
1121 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1122 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1123 | x_includes=$ac_optarg ;; | |
1124 | ||
1125 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1126 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1127 | ac_prev=x_libraries ;; | |
1128 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1129 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1130 | x_libraries=$ac_optarg ;; | |
1131 | ||
b540af17 JH |
1132 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1133 | Try \`$0 --help' for more information" | |
212380e3 | 1134 | ;; |
1135 | ||
1136 | *=*) | |
1137 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1138 | # Reject names that are not valid shell variable names. | |
042acc47 WP |
1139 | case $ac_envvar in #( |
1140 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b540af17 | 1141 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
042acc47 | 1142 | esac |
631ef239 | 1143 | eval $ac_envvar=\$ac_optarg |
212380e3 | 1144 | export $ac_envvar ;; |
1145 | ||
1146 | *) | |
1147 | # FIXME: should be removed in autoconf 3.0. | |
042acc47 | 1148 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1149 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
042acc47 | 1150 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b540af17 | 1151 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 | 1152 | ;; |
1153 | ||
1154 | esac | |
1155 | done | |
1156 | ||
1157 | if test -n "$ac_prev"; then | |
1158 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b540af17 | 1159 | as_fn_error $? "missing argument to $ac_option" |
212380e3 | 1160 | fi |
1161 | ||
042acc47 WP |
1162 | if test -n "$ac_unrecognized_opts"; then |
1163 | case $enable_option_checking in | |
1164 | no) ;; | |
b540af17 | 1165 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
042acc47 WP |
1166 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1167 | esac | |
1168 | fi | |
1169 | ||
1170 | # Check all directory arguments for consistency. | |
631ef239 | 1171 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1172 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1173 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1174 | libdir localedir mandir | |
212380e3 | 1175 | do |
631ef239 | 1176 | eval ac_val=\$$ac_var |
042acc47 WP |
1177 | # Remove trailing slashes. |
1178 | case $ac_val in | |
1179 | */ ) | |
1180 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1181 | eval $ac_var=\$ac_val;; | |
1182 | esac | |
1183 | # Be sure to have absolute directory names. | |
212380e3 | 1184 | case $ac_val in |
631ef239 | 1185 | [\\/$]* | ?:[\\/]* ) continue;; |
1186 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1187 | esac |
b540af17 | 1188 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 | 1189 | done |
1190 | ||
1191 | # There might be people who depend on the old broken behavior: `$host' | |
1192 | # used to hold the argument of --host etc. | |
1193 | # FIXME: To remove some day. | |
1194 | build=$build_alias | |
1195 | host=$host_alias | |
1196 | target=$target_alias | |
1197 | ||
1198 | # FIXME: To remove some day. | |
1199 | if test "x$host_alias" != x; then | |
1200 | if test "x$build_alias" = x; then | |
1201 | cross_compiling=maybe | |
b540af17 JH |
1202 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1203 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
212380e3 | 1204 | elif test "x$build_alias" != "x$host_alias"; then |
1205 | cross_compiling=yes | |
1206 | fi | |
1207 | fi | |
1208 | ||
1209 | ac_tool_prefix= | |
1210 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1211 | ||
1212 | test "$silent" = yes && exec 6>/dev/null | |
1213 | ||
1214 | ||
631ef239 | 1215 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1216 | ac_ls_di=`ls -di .` && | |
1217 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b540af17 | 1218 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1219 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b540af17 | 1220 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 | 1221 | |
1222 | ||
1223 | # Find the source files, if location was not specified. | |
1224 | if test -z "$srcdir"; then | |
212380e3 | 1225 | ac_srcdir_defaulted=yes |
631ef239 | 1226 | # Try the directory containing this script, then the parent directory. |
042acc47 WP |
1227 | ac_confdir=`$as_dirname -- "$as_myself" || |
1228 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1229 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1230 | X"$as_myself" : 'X\(//\)$' \| \ | |
1231 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1232 | $as_echo X"$as_myself" | | |
631ef239 | 1233 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1234 | s//\1/ | |
1235 | q | |
1236 | } | |
1237 | /^X\(\/\/\)[^/].*/{ | |
1238 | s//\1/ | |
1239 | q | |
1240 | } | |
1241 | /^X\(\/\/\)$/{ | |
1242 | s//\1/ | |
1243 | q | |
1244 | } | |
1245 | /^X\(\/\).*/{ | |
1246 | s//\1/ | |
1247 | q | |
1248 | } | |
1249 | s/.*/./; q'` | |
212380e3 | 1250 | srcdir=$ac_confdir |
631ef239 | 1251 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 | 1252 | srcdir=.. |
1253 | fi | |
1254 | else | |
1255 | ac_srcdir_defaulted=no | |
1256 | fi | |
631ef239 | 1257 | if test ! -r "$srcdir/$ac_unique_file"; then |
1258 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b540af17 | 1259 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1260 | fi |
631ef239 | 1261 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1262 | ac_abs_confdir=`( | |
b540af17 | 1263 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 | 1264 | pwd)` |
1265 | # When building in place, set srcdir=. | |
1266 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1267 | srcdir=. | |
1268 | fi | |
1269 | # Remove unnecessary trailing slashes from srcdir. | |
1270 | # Double slashes in file names in object file debugging info | |
1271 | # mess up M-x gdb in Emacs. | |
1272 | case $srcdir in | |
1273 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1274 | esac | |
1275 | for ac_var in $ac_precious_vars; do | |
1276 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1277 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1278 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1279 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1280 | done | |
212380e3 | 1281 | |
1282 | # | |
1283 | # Report the --help message. | |
1284 | # | |
1285 | if test "$ac_init_help" = "long"; then | |
1286 | # Omit some internal or obsolete options to make the list less imposing. | |
1287 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1288 | cat <<_ACEOF | |
b5135efc | 1289 | \`configure' configures shadowircd 6.3.2 to adapt to many kinds of systems. |
212380e3 | 1290 | |
1291 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1292 | ||
1293 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1294 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1295 | ||
1296 | Defaults for the options are specified in brackets. | |
1297 | ||
1298 | Configuration: | |
1299 | -h, --help display this help and exit | |
1300 | --help=short display options specific to this package | |
1301 | --help=recursive display the short help of all the included packages | |
1302 | -V, --version display version information and exit | |
b540af17 | 1303 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 | 1304 | --cache-file=FILE cache test results in FILE [disabled] |
1305 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1306 | -n, --no-create do not create output files | |
1307 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1308 | ||
212380e3 | 1309 | Installation directories: |
1310 | --prefix=PREFIX install architecture-independent files in PREFIX | |
042acc47 | 1311 | [$ac_default_prefix] |
212380e3 | 1312 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
042acc47 | 1313 | [PREFIX] |
212380e3 | 1314 | |
1315 | By default, \`make install' will install all the files in | |
1316 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1317 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1318 | for instance \`--prefix=\$HOME'. | |
1319 | ||
1320 | For better control, use the options below. | |
1321 | ||
1322 | Fine tuning of the installation directories: | |
042acc47 WP |
1323 | --bindir=DIR user executables [EPREFIX/bin] |
1324 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1325 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1326 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1327 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1328 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1329 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1330 | --includedir=DIR C header files [PREFIX/include] | |
1331 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1332 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1333 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1334 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1335 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1336 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
867dcc9f | 1337 | --docdir=DIR documentation root [DATAROOTDIR/doc/shadowircd] |
042acc47 WP |
1338 | --htmldir=DIR html documentation [DOCDIR] |
1339 | --dvidir=DIR dvi documentation [DOCDIR] | |
1340 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1341 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 | 1342 | _ACEOF |
1343 | ||
1344 | cat <<\_ACEOF | |
1345 | _ACEOF | |
1346 | fi | |
1347 | ||
1348 | if test -n "$ac_init_help"; then | |
1349 | case $ac_init_help in | |
b5135efc | 1350 | short | recursive ) echo "Configuration of shadowircd 6.3.2:";; |
212380e3 | 1351 | esac |
1352 | cat <<\_ACEOF | |
1353 | ||
1354 | Optional Features: | |
042acc47 | 1355 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 | 1356 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1357 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
bf9bfd26 | 1358 | --enable-fhs-paths User more FHS-like pathnames (for packagers). |
212380e3 | 1359 | --enable-ipv6 Enable IPv6 support |
631ef239 | 1360 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 | 1361 | --disable-openssl Disable OpenSSL support. |
1362 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1363 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 | 1364 | --enable-poll Force poll() usage. |
1365 | --enable-select Force select() usage. | |
1366 | --enable-kqueue Force kqueue() usage. | |
212380e3 | 1367 | --enable-epoll Force sys_epoll usage (Linux only). |
1368 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1369 | hard(aborts the daemon) | |
1370 | --enable-iodebug Enable IO Debugging hooks | |
1371 | --enable-profile Enable profiling | |
1372 | --disable-balloc Disable the block allocator. | |
9960cc94 | 1373 | --disable-small-net Disable small network support. |
212380e3 | 1374 | --enable-warnings Enable all sorts of warnings for debugging. |
1375 | ||
1376 | Optional Packages: | |
1377 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1378 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1379 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1380 | --with-confdir=DIR Directory to install config files. | |
1381 | --with-logdir=DIR Directory where to write logfiles. | |
1382 | --with-helpdir=DIR Directory to install help files. | |
1383 | --with-moduledir=DIR Directory to install modules. | |
bf9bfd26 JH |
1384 | --with-rundir=DIR Directory in which to store pidfile. |
1385 | --with-program-prefix= If set, programs installed into PATH will be | |
1386 | installed with names prefixed by this prefix. | |
6fbcf382 | 1387 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 31, max 50) |
212380e3 | 1388 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1389 | 390) | |
212380e3 | 1390 | |
1391 | Some influential environment variables: | |
1392 | CC C compiler command | |
1393 | CFLAGS C compiler flags | |
1394 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1395 | nonstandard directory <lib dir> | |
631ef239 | 1396 | LIBS libraries to pass to the linker, e.g. -l<library> |
1800d973 | 1397 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1398 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1399 | CPP C preprocessor |
b540af17 JH |
1400 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1401 | Defaults to the first program found out of: `bison -y', `byacc', | |
1402 | `yacc'. | |
631ef239 | 1403 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1404 | This script will default YFLAGS to the empty string to avoid a | |
1405 | default value of `-d' given by some make applications. | |
212380e3 | 1406 | |
1407 | Use these variables to override the choices made by `configure' or to help | |
1408 | it to find libraries and programs with nonstandard names/locations. | |
1409 | ||
042acc47 | 1410 | Report bugs to the package provider. |
212380e3 | 1411 | _ACEOF |
631ef239 | 1412 | ac_status=$? |
212380e3 | 1413 | fi |
1414 | ||
1415 | if test "$ac_init_help" = "recursive"; then | |
1416 | # If there are subdirs, report their specific --help. | |
212380e3 | 1417 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
042acc47 WP |
1418 | test -d "$ac_dir" || |
1419 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1420 | continue | |
212380e3 | 1421 | ac_builddir=. |
1422 | ||
631ef239 | 1423 | case "$ac_dir" in |
1424 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1425 | *) | |
042acc47 | 1426 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1427 | # A ".." for each directory in $ac_dir_suffix. |
042acc47 | 1428 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 | 1429 | case $ac_top_builddir_sub in |
1430 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1431 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1432 | esac ;; | |
1433 | esac | |
1434 | ac_abs_top_builddir=$ac_pwd | |
1435 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1436 | # for backward compatibility: | |
1437 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 | 1438 | |
1439 | case $srcdir in | |
631ef239 | 1440 | .) # We are building in place. |
212380e3 | 1441 | ac_srcdir=. |
631ef239 | 1442 | ac_top_srcdir=$ac_top_builddir_sub |
1443 | ac_abs_top_srcdir=$ac_pwd ;; | |
1444 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1445 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 | 1446 | ac_top_srcdir=$srcdir |
1447 | ac_abs_top_srcdir=$srcdir ;; | |
1448 | *) # Relative name. | |
1449 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1450 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1451 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1452 | esac |
631ef239 | 1453 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1454 | ||
1455 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1456 | # Check for guested configure. | |
1457 | if test -f "$ac_srcdir/configure.gnu"; then | |
1458 | echo && | |
1459 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1460 | elif test -f "$ac_srcdir/configure"; then | |
1461 | echo && | |
1462 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1463 | else |
042acc47 | 1464 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 | 1465 | fi || ac_status=$? |
1466 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 | 1467 | done |
1468 | fi | |
1469 | ||
631ef239 | 1470 | test -n "$ac_init_help" && exit $ac_status |
212380e3 | 1471 | if $ac_init_version; then |
1472 | cat <<\_ACEOF | |
b5135efc | 1473 | shadowircd configure 6.3.2 |
b540af17 | 1474 | generated by GNU Autoconf 2.68 |
212380e3 | 1475 | |
b540af17 | 1476 | Copyright (C) 2010 Free Software Foundation, Inc. |
212380e3 | 1477 | This configure script is free software; the Free Software Foundation |
1478 | gives unlimited permission to copy, distribute and modify it. | |
1479 | ||
56efe974 | 1480 | $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 1481 | _ACEOF |
631ef239 | 1482 | exit |
212380e3 | 1483 | fi |
212380e3 | 1484 | |
042acc47 WP |
1485 | ## ------------------------ ## |
1486 | ## Autoconf initialization. ## | |
1487 | ## ------------------------ ## | |
212380e3 | 1488 | |
042acc47 WP |
1489 | # ac_fn_c_try_compile LINENO |
1490 | # -------------------------- | |
1491 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1492 | ac_fn_c_try_compile () | |
1493 | { | |
1494 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1495 | rm -f conftest.$ac_objext | |
1496 | if { { ac_try="$ac_compile" | |
1497 | case "(($ac_try" in | |
1498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1499 | *) ac_try_echo=$ac_try;; | |
1500 | esac | |
1501 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1502 | $as_echo "$ac_try_echo"; } >&5 | |
1503 | (eval "$ac_compile") 2>conftest.err | |
1504 | ac_status=$? | |
1505 | if test -s conftest.err; then | |
1506 | grep -v '^ *+' conftest.err >conftest.er1 | |
1507 | cat conftest.er1 >&5 | |
1508 | mv -f conftest.er1 conftest.err | |
1509 | fi | |
1510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1511 | test $ac_status = 0; } && { | |
1512 | test -z "$ac_c_werror_flag" || | |
1513 | test ! -s conftest.err | |
1514 | } && test -s conftest.$ac_objext; then : | |
1515 | ac_retval=0 | |
1516 | else | |
1517 | $as_echo "$as_me: failed program was:" >&5 | |
1518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1519 | |
042acc47 WP |
1520 | ac_retval=1 |
1521 | fi | |
b540af17 | 1522 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800d973 | 1523 | as_fn_set_status $ac_retval |
042acc47 WP |
1524 | |
1525 | } # ac_fn_c_try_compile | |
1526 | ||
1527 | # ac_fn_c_try_cpp LINENO | |
1528 | # ---------------------- | |
1529 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1530 | ac_fn_c_try_cpp () | |
212380e3 | 1531 | { |
042acc47 WP |
1532 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1533 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1534 | case "(($ac_try" in | |
1535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1536 | *) ac_try_echo=$ac_try;; | |
1537 | esac | |
1538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1539 | $as_echo "$ac_try_echo"; } >&5 | |
1540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1541 | ac_status=$? | |
1542 | if test -s conftest.err; then | |
1543 | grep -v '^ *+' conftest.err >conftest.er1 | |
1544 | cat conftest.er1 >&5 | |
1545 | mv -f conftest.er1 conftest.err | |
1546 | fi | |
1547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b540af17 | 1548 | test $ac_status = 0; } > conftest.i && { |
042acc47 WP |
1549 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1550 | test ! -s conftest.err | |
1551 | }; then : | |
1552 | ac_retval=0 | |
1553 | else | |
1554 | $as_echo "$as_me: failed program was:" >&5 | |
1555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1556 | |
042acc47 WP |
1557 | ac_retval=1 |
1558 | fi | |
b540af17 | 1559 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800d973 | 1560 | as_fn_set_status $ac_retval |
212380e3 | 1561 | |
042acc47 | 1562 | } # ac_fn_c_try_cpp |
212380e3 | 1563 | |
042acc47 WP |
1564 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1565 | # ------------------------------------------------------- | |
1566 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1567 | # the include files in INCLUDES and setting the cache variable VAR | |
1568 | # accordingly. | |
1569 | ac_fn_c_check_header_mongrel () | |
1570 | { | |
1571 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b540af17 | 1572 | if eval \${$3+:} false; then : |
042acc47 WP |
1573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1574 | $as_echo_n "checking for $2... " >&6; } | |
b540af17 | 1575 | if eval \${$3+:} false; then : |
042acc47 WP |
1576 | $as_echo_n "(cached) " >&6 |
1577 | fi | |
1578 | eval ac_res=\$$3 | |
1579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1580 | $as_echo "$ac_res" >&6; } | |
1581 | else | |
1582 | # Is the header compilable? | |
1583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1584 | $as_echo_n "checking $2 usability... " >&6; } | |
1585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1586 | /* end confdefs.h. */ | |
1587 | $4 | |
1588 | #include <$2> | |
1589 | _ACEOF | |
1590 | if ac_fn_c_try_compile "$LINENO"; then : | |
1591 | ac_header_compiler=yes | |
1592 | else | |
1593 | ac_header_compiler=no | |
1594 | fi | |
1595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1597 | $as_echo "$ac_header_compiler" >&6; } | |
212380e3 | 1598 | |
042acc47 WP |
1599 | # Is the header present? |
1600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1601 | $as_echo_n "checking $2 presence... " >&6; } | |
1602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1603 | /* end confdefs.h. */ | |
1604 | #include <$2> | |
1605 | _ACEOF | |
1606 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1607 | ac_header_preproc=yes | |
1608 | else | |
1609 | ac_header_preproc=no | |
1610 | fi | |
b540af17 | 1611 | rm -f conftest.err conftest.i conftest.$ac_ext |
042acc47 WP |
1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1613 | $as_echo "$ac_header_preproc" >&6; } | |
212380e3 | 1614 | |
042acc47 WP |
1615 | # So? What about this header? |
1616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1617 | yes:no: ) | |
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1619 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1621 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1622 | ;; | |
1623 | no:yes:* ) | |
1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1625 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1627 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1628 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1629 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1631 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1633 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1634 | ;; | |
1635 | esac | |
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1637 | $as_echo_n "checking for $2... " >&6; } | |
b540af17 | 1638 | if eval \${$3+:} false; then : |
042acc47 WP |
1639 | $as_echo_n "(cached) " >&6 |
1640 | else | |
1641 | eval "$3=\$ac_header_compiler" | |
1642 | fi | |
1643 | eval ac_res=\$$3 | |
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1645 | $as_echo "$ac_res" >&6; } | |
1646 | fi | |
b540af17 | 1647 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1648 | |
042acc47 | 1649 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1650 | |
042acc47 WP |
1651 | # ac_fn_c_try_run LINENO |
1652 | # ---------------------- | |
1653 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1654 | # that executables *can* be run. | |
1655 | ac_fn_c_try_run () | |
1656 | { | |
1657 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1658 | if { { ac_try="$ac_link" | |
1659 | case "(($ac_try" in | |
1660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1661 | *) ac_try_echo=$ac_try;; | |
1662 | esac | |
1663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1664 | $as_echo "$ac_try_echo"; } >&5 | |
1665 | (eval "$ac_link") 2>&5 | |
1666 | ac_status=$? | |
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1668 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1669 | { { case "(($ac_try" in | |
1670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1671 | *) ac_try_echo=$ac_try;; | |
1672 | esac | |
1673 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1674 | $as_echo "$ac_try_echo"; } >&5 | |
1675 | (eval "$ac_try") 2>&5 | |
1676 | ac_status=$? | |
1677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1678 | test $ac_status = 0; }; }; then : | |
1679 | ac_retval=0 | |
1680 | else | |
1681 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1682 | $as_echo "$as_me: failed program was:" >&5 | |
1683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1684 | |
042acc47 WP |
1685 | ac_retval=$ac_status |
1686 | fi | |
1687 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b540af17 | 1688 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800d973 | 1689 | as_fn_set_status $ac_retval |
212380e3 | 1690 | |
042acc47 | 1691 | } # ac_fn_c_try_run |
212380e3 | 1692 | |
042acc47 WP |
1693 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1694 | # ------------------------------------------------------- | |
1695 | # Tests whether HEADER exists and can be compiled using the include files in | |
1696 | # INCLUDES, setting the cache variable VAR accordingly. | |
1697 | ac_fn_c_check_header_compile () | |
1698 | { | |
1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1701 | $as_echo_n "checking for $2... " >&6; } | |
b540af17 | 1702 | if eval \${$3+:} false; then : |
042acc47 WP |
1703 | $as_echo_n "(cached) " >&6 |
1704 | else | |
1705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1706 | /* end confdefs.h. */ | |
1707 | $4 | |
1708 | #include <$2> | |
212380e3 | 1709 | _ACEOF |
042acc47 WP |
1710 | if ac_fn_c_try_compile "$LINENO"; then : |
1711 | eval "$3=yes" | |
1712 | else | |
1713 | eval "$3=no" | |
1714 | fi | |
1715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1716 | fi | |
1717 | eval ac_res=\$$3 | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1719 | $as_echo "$ac_res" >&6; } | |
b540af17 | 1720 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1721 | |
042acc47 | 1722 | } # ac_fn_c_check_header_compile |
212380e3 | 1723 | |
042acc47 WP |
1724 | # ac_fn_c_try_link LINENO |
1725 | # ----------------------- | |
1726 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1727 | ac_fn_c_try_link () | |
1728 | { | |
1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1731 | if { { ac_try="$ac_link" | |
1732 | case "(($ac_try" in | |
1733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1734 | *) ac_try_echo=$ac_try;; | |
1735 | esac | |
1736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1737 | $as_echo "$ac_try_echo"; } >&5 | |
1738 | (eval "$ac_link") 2>conftest.err | |
1739 | ac_status=$? | |
1740 | if test -s conftest.err; then | |
1741 | grep -v '^ *+' conftest.err >conftest.er1 | |
1742 | cat conftest.er1 >&5 | |
1743 | mv -f conftest.er1 conftest.err | |
1744 | fi | |
1745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1746 | test $ac_status = 0; } && { | |
1747 | test -z "$ac_c_werror_flag" || | |
1748 | test ! -s conftest.err | |
1749 | } && test -s conftest$ac_exeext && { | |
1750 | test "$cross_compiling" = yes || | |
1751 | $as_test_x conftest$ac_exeext | |
1752 | }; then : | |
1753 | ac_retval=0 | |
212380e3 | 1754 | else |
042acc47 WP |
1755 | $as_echo "$as_me: failed program was:" >&5 |
1756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1757 | |
042acc47 | 1758 | ac_retval=1 |
212380e3 | 1759 | fi |
042acc47 WP |
1760 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1761 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1762 | # interfere with the next link command; also delete a directory that is | |
1763 | # left behind by Apple's compiler. We do this before executing the actions. | |
1764 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b540af17 | 1765 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800d973 | 1766 | as_fn_set_status $ac_retval |
212380e3 | 1767 | |
042acc47 | 1768 | } # ac_fn_c_try_link |
212380e3 | 1769 | |
042acc47 WP |
1770 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1771 | # ------------------------------------------- | |
1772 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1773 | # variable VAR accordingly. | |
1774 | ac_fn_c_check_type () | |
1775 | { | |
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1778 | $as_echo_n "checking for $2... " >&6; } | |
b540af17 | 1779 | if eval \${$3+:} false; then : |
042acc47 | 1780 | $as_echo_n "(cached) " >&6 |
212380e3 | 1781 | else |
042acc47 WP |
1782 | eval "$3=no" |
1783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1784 | /* end confdefs.h. */ | |
1785 | $4 | |
1786 | int | |
1787 | main () | |
1788 | { | |
1789 | if (sizeof ($2)) | |
1790 | return 0; | |
1791 | ; | |
1792 | return 0; | |
1793 | } | |
212380e3 | 1794 | _ACEOF |
042acc47 WP |
1795 | if ac_fn_c_try_compile "$LINENO"; then : |
1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1797 | /* end confdefs.h. */ |
042acc47 | 1798 | $4 |
212380e3 | 1799 | int |
1800 | main () | |
1801 | { | |
042acc47 WP |
1802 | if (sizeof (($2))) |
1803 | return 0; | |
212380e3 | 1804 | ; |
1805 | return 0; | |
1806 | } | |
1807 | _ACEOF | |
042acc47 | 1808 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 1809 | |
631ef239 | 1810 | else |
042acc47 | 1811 | eval "$3=yes" |
212380e3 | 1812 | fi |
042acc47 | 1813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1814 | fi |
042acc47 | 1815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1816 | fi |
042acc47 WP |
1817 | eval ac_res=\$$3 |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1819 | $as_echo "$ac_res" >&6; } | |
b540af17 | 1820 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1821 | |
042acc47 WP |
1822 | } # ac_fn_c_check_type |
1823 | ||
1824 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1825 | # -------------------------------------------- | |
1826 | # Tries to find the compile-time value of EXPR in a program that includes | |
1827 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1828 | # computed | |
1829 | ac_fn_c_compute_int () | |
1830 | { | |
1831 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1832 | if test "$cross_compiling" = yes; then | |
1833 | # Depending upon the size, compute the lo and hi bounds. | |
1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1835 | /* end confdefs.h. */ | |
1836 | $4 | |
1837 | int | |
1838 | main () | |
1839 | { | |
1840 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1841 | test_array [0] = 0 | |
1842 | ||
1843 | ; | |
1844 | return 0; | |
1845 | } | |
212380e3 | 1846 | _ACEOF |
042acc47 WP |
1847 | if ac_fn_c_try_compile "$LINENO"; then : |
1848 | ac_lo=0 ac_mid=0 | |
1849 | while :; do | |
1850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1851 | /* end confdefs.h. */ |
042acc47 WP |
1852 | $4 |
1853 | int | |
1854 | main () | |
1855 | { | |
1856 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1857 | test_array [0] = 0 | |
212380e3 | 1858 | |
042acc47 WP |
1859 | ; |
1860 | return 0; | |
1861 | } | |
212380e3 | 1862 | _ACEOF |
042acc47 WP |
1863 | if ac_fn_c_try_compile "$LINENO"; then : |
1864 | ac_hi=$ac_mid; break | |
212380e3 | 1865 | else |
042acc47 WP |
1866 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
1867 | if test $ac_lo -le $ac_mid; then | |
1868 | ac_lo= ac_hi= | |
1869 | break | |
1870 | fi | |
1871 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 1872 | fi |
631ef239 | 1873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
042acc47 WP |
1874 | done |
1875 | else | |
1876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1877 | /* end confdefs.h. */ | |
1878 | $4 | |
1879 | int | |
1880 | main () | |
1881 | { | |
1882 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1883 | test_array [0] = 0 | |
212380e3 | 1884 | |
042acc47 WP |
1885 | ; |
1886 | return 0; | |
1887 | } | |
212380e3 | 1888 | _ACEOF |
042acc47 WP |
1889 | if ac_fn_c_try_compile "$LINENO"; then : |
1890 | ac_hi=-1 ac_mid=-1 | |
1891 | while :; do | |
1892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1893 | /* end confdefs.h. */ | |
1894 | $4 | |
1895 | int | |
1896 | main () | |
1897 | { | |
1898 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1899 | test_array [0] = 0 | |
212380e3 | 1900 | |
042acc47 WP |
1901 | ; |
1902 | return 0; | |
1903 | } | |
1904 | _ACEOF | |
1905 | if ac_fn_c_try_compile "$LINENO"; then : | |
1906 | ac_lo=$ac_mid; break | |
1907 | else | |
1908 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1909 | if test $ac_mid -le $ac_hi; then | |
1910 | ac_lo= ac_hi= | |
1911 | break | |
1912 | fi | |
1913 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 1914 | fi |
042acc47 WP |
1915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1916 | done | |
212380e3 | 1917 | else |
042acc47 WP |
1918 | ac_lo= ac_hi= |
1919 | fi | |
1920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1921 | fi | |
1922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1923 | # Binary search between lo and hi bounds. | |
1924 | while test "x$ac_lo" != "x$ac_hi"; do | |
1925 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1927 | /* end confdefs.h. */ |
042acc47 WP |
1928 | $4 |
1929 | int | |
1930 | main () | |
1931 | { | |
1932 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1933 | test_array [0] = 0 | |
1934 | ||
1935 | ; | |
1936 | return 0; | |
1937 | } | |
212380e3 | 1938 | _ACEOF |
042acc47 WP |
1939 | if ac_fn_c_try_compile "$LINENO"; then : |
1940 | ac_hi=$ac_mid | |
212380e3 | 1941 | else |
042acc47 | 1942 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 1943 | fi |
042acc47 WP |
1944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1945 | done | |
1946 | case $ac_lo in #(( | |
1947 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1948 | '') ac_retval=1 ;; | |
1949 | esac | |
1950 | else | |
1951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1952 | /* end confdefs.h. */ | |
1953 | $4 | |
1954 | static long int longval () { return $2; } | |
1955 | static unsigned long int ulongval () { return $2; } | |
1956 | #include <stdio.h> | |
1957 | #include <stdlib.h> | |
1958 | int | |
1959 | main () | |
1960 | { | |
631ef239 | 1961 | |
042acc47 WP |
1962 | FILE *f = fopen ("conftest.val", "w"); |
1963 | if (! f) | |
1964 | return 1; | |
1965 | if (($2) < 0) | |
1966 | { | |
1967 | long int i = longval (); | |
1968 | if (i != ($2)) | |
1969 | return 1; | |
1970 | fprintf (f, "%ld", i); | |
1971 | } | |
1972 | else | |
1973 | { | |
1974 | unsigned long int i = ulongval (); | |
1975 | if (i != ($2)) | |
1976 | return 1; | |
1977 | fprintf (f, "%lu", i); | |
1978 | } | |
1979 | /* Do not output a trailing newline, as this causes \r\n confusion | |
1980 | on some platforms. */ | |
1981 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 1982 | |
042acc47 WP |
1983 | ; |
1984 | return 0; | |
1985 | } | |
212380e3 | 1986 | _ACEOF |
042acc47 WP |
1987 | if ac_fn_c_try_run "$LINENO"; then : |
1988 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 1989 | else |
042acc47 | 1990 | ac_retval=1 |
212380e3 | 1991 | fi |
042acc47 WP |
1992 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
1993 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1994 | rm -f conftest.val | |
631ef239 | 1995 | |
042acc47 | 1996 | fi |
b540af17 | 1997 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800d973 | 1998 | as_fn_set_status $ac_retval |
212380e3 | 1999 | |
042acc47 | 2000 | } # ac_fn_c_compute_int |
212380e3 | 2001 | |
042acc47 WP |
2002 | # ac_fn_c_check_func LINENO FUNC VAR |
2003 | # ---------------------------------- | |
2004 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2005 | ac_fn_c_check_func () | |
2006 | { | |
2007 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2009 | $as_echo_n "checking for $2... " >&6; } | |
b540af17 | 2010 | if eval \${$3+:} false; then : |
042acc47 | 2011 | $as_echo_n "(cached) " >&6 |
212380e3 | 2012 | else |
042acc47 | 2013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 2014 | /* end confdefs.h. */ |
042acc47 WP |
2015 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
2016 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2017 | #define $2 innocuous_$2 | |
2018 | ||
2019 | /* System header to define __stub macros and hopefully few prototypes, | |
2020 | which can conflict with char $2 (); below. | |
2021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2022 | <limits.h> exists even on freestanding compilers. */ | |
2023 | ||
212380e3 | 2024 | #ifdef __STDC__ |
2025 | # include <limits.h> | |
2026 | #else | |
2027 | # include <assert.h> | |
2028 | #endif | |
212380e3 | 2029 | |
042acc47 | 2030 | #undef $2 |
631ef239 | 2031 | |
042acc47 WP |
2032 | /* Override any GCC internal prototype to avoid an error. |
2033 | Use char because int might match the return type of a GCC | |
2034 | builtin and then its argument prototype would still apply. */ | |
2035 | #ifdef __cplusplus | |
2036 | extern "C" | |
2037 | #endif | |
2038 | char $2 (); | |
2039 | /* The GNU C library defines this for functions which it implements | |
2040 | to always fail with ENOSYS. Some functions are actually named | |
2041 | something starting with __ and the normal name is an alias. */ | |
2042 | #if defined __stub_$2 || defined __stub___$2 | |
2043 | choke me | |
2044 | #endif | |
212380e3 | 2045 | |
042acc47 WP |
2046 | int |
2047 | main () | |
2048 | { | |
2049 | return $2 (); | |
2050 | ; | |
2051 | return 0; | |
2052 | } | |
212380e3 | 2053 | _ACEOF |
042acc47 WP |
2054 | if ac_fn_c_try_link "$LINENO"; then : |
2055 | eval "$3=yes" | |
212380e3 | 2056 | else |
042acc47 WP |
2057 | eval "$3=no" |
2058 | fi | |
2059 | rm -f core conftest.err conftest.$ac_objext \ | |
2060 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 2061 | fi |
042acc47 WP |
2062 | eval ac_res=\$$3 |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2064 | $as_echo "$ac_res" >&6; } | |
b540af17 | 2065 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
631ef239 | 2066 | |
042acc47 WP |
2067 | } # ac_fn_c_check_func |
2068 | cat >config.log <<_ACEOF | |
2069 | This file contains any messages produced by compilers while | |
2070 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2071 | |
b5135efc | 2072 | It was created by shadowircd $as_me 6.3.2, which was |
b540af17 | 2073 | generated by GNU Autoconf 2.68. Invocation command line was |
212380e3 | 2074 | |
042acc47 | 2075 | $ $0 $@ |
212380e3 | 2076 | |
042acc47 WP |
2077 | _ACEOF |
2078 | exec 5>>config.log | |
2079 | { | |
2080 | cat <<_ASUNAME | |
2081 | ## --------- ## | |
2082 | ## Platform. ## | |
2083 | ## --------- ## | |
2084 | ||
2085 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2086 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2087 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2088 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2089 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2090 | ||
2091 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2092 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2093 | ||
2094 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2095 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2096 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2097 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2098 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2099 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2100 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2101 | ||
2102 | _ASUNAME | |
212380e3 | 2103 | |
631ef239 | 2104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
042acc47 | 2105 | for as_dir in $PATH |
631ef239 | 2106 | do |
2107 | IFS=$as_save_IFS | |
2108 | test -z "$as_dir" && as_dir=. | |
042acc47 | 2109 | $as_echo "PATH: $as_dir" |
631ef239 | 2110 | done |
631ef239 | 2111 | IFS=$as_save_IFS |
2112 | ||
042acc47 | 2113 | } >&5 |
631ef239 | 2114 | |
042acc47 | 2115 | cat >&5 <<_ACEOF |
631ef239 | 2116 | |
631ef239 | 2117 | |
042acc47 WP |
2118 | ## ----------- ## |
2119 | ## Core tests. ## | |
2120 | ## ----------- ## | |
631ef239 | 2121 | |
042acc47 | 2122 | _ACEOF |
631ef239 | 2123 | |
2124 | ||
042acc47 WP |
2125 | # Keep a trace of the command line. |
2126 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2127 | # Strip out --silent because we don't want to record it for future runs. | |
2128 | # Also quote any args containing shell meta-characters. | |
2129 | # Make two passes to allow for proper duplicate-argument suppression. | |
2130 | ac_configure_args= | |
2131 | ac_configure_args0= | |
2132 | ac_configure_args1= | |
2133 | ac_must_keep_next=false | |
2134 | for ac_pass in 1 2 | |
631ef239 | 2135 | do |
042acc47 | 2136 | for ac_arg |
631ef239 | 2137 | do |
042acc47 WP |
2138 | case $ac_arg in |
2139 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2140 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2141 | | -silent | --silent | --silen | --sile | --sil) | |
2142 | continue ;; | |
2143 | *\'*) | |
2144 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2145 | esac | |
2146 | case $ac_pass in | |
2147 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2148 | 2) | |
2149 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2150 | if test $ac_must_keep_next = true; then | |
2151 | ac_must_keep_next=false # Got value, back to normal. | |
2152 | else | |
2153 | case $ac_arg in | |
2154 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2155 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2156 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2157 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2158 | case "$ac_configure_args0 " in | |
2159 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2160 | esac | |
2161 | ;; | |
2162 | -* ) ac_must_keep_next=true ;; | |
2163 | esac | |
2164 | fi | |
2165 | as_fn_append ac_configure_args " '$ac_arg'" | |
2166 | ;; | |
2167 | esac | |
631ef239 | 2168 | done |
2169 | done | |
042acc47 WP |
2170 | { ac_configure_args0=; unset ac_configure_args0;} |
2171 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2172 | |
042acc47 WP |
2173 | # When interrupted or exit'd, cleanup temporary files, and complete |
2174 | # config.log. We remove comments because anyway the quotes in there | |
2175 | # would cause problems or look ugly. | |
2176 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2177 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2178 | trap 'exit_status=$? | |
2179 | # Save into config.log some information that might help in debugging. | |
2180 | { | |
2181 | echo | |
631ef239 | 2182 | |
b540af17 | 2183 | $as_echo "## ---------------- ## |
042acc47 | 2184 | ## Cache variables. ## |
b540af17 | 2185 | ## ---------------- ##" |
042acc47 WP |
2186 | echo |
2187 | # The following way of writing the cache mishandles newlines in values, | |
2188 | ( | |
2189 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2190 | eval ac_val=\$$ac_var | |
2191 | case $ac_val in #( | |
2192 | *${as_nl}*) | |
2193 | case $ac_var in #( | |
2194 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2195 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2196 | esac | |
2197 | case $ac_var in #( | |
2198 | _ | IFS | as_nl) ;; #( | |
2199 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2200 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2201 | esac ;; | |
2202 | esac | |
2203 | done | |
2204 | (set) 2>&1 | | |
2205 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2206 | *${as_nl}ac_space=\ *) | |
2207 | sed -n \ | |
2208 | "s/'\''/'\''\\\\'\'''\''/g; | |
2209 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2210 | ;; #( | |
2211 | *) | |
2212 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2213 | ;; | |
2214 | esac | | |
2215 | sort | |
2216 | ) | |
2217 | echo | |
631ef239 | 2218 | |
b540af17 | 2219 | $as_echo "## ----------------- ## |
042acc47 | 2220 | ## Output variables. ## |
b540af17 | 2221 | ## ----------------- ##" |
042acc47 WP |
2222 | echo |
2223 | for ac_var in $ac_subst_vars | |
2224 | do | |
2225 | eval ac_val=\$$ac_var | |
2226 | case $ac_val in | |
2227 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2228 | esac | |
2229 | $as_echo "$ac_var='\''$ac_val'\''" | |
2230 | done | sort | |
2231 | echo | |
631ef239 | 2232 | |
042acc47 | 2233 | if test -n "$ac_subst_files"; then |
b540af17 | 2234 | $as_echo "## ------------------- ## |
042acc47 | 2235 | ## File substitutions. ## |
b540af17 | 2236 | ## ------------------- ##" |
042acc47 WP |
2237 | echo |
2238 | for ac_var in $ac_subst_files | |
2239 | do | |
2240 | eval ac_val=\$$ac_var | |
2241 | case $ac_val in | |
2242 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2243 | esac | |
2244 | $as_echo "$ac_var='\''$ac_val'\''" | |
2245 | done | sort | |
2246 | echo | |
2247 | fi | |
631ef239 | 2248 | |
042acc47 | 2249 | if test -s confdefs.h; then |
b540af17 | 2250 | $as_echo "## ----------- ## |
042acc47 | 2251 | ## confdefs.h. ## |
b540af17 | 2252 | ## ----------- ##" |
042acc47 WP |
2253 | echo |
2254 | cat confdefs.h | |
2255 | echo | |
2256 | fi | |
2257 | test "$ac_signal" != 0 && | |
2258 | $as_echo "$as_me: caught signal $ac_signal" | |
2259 | $as_echo "$as_me: exit $exit_status" | |
2260 | } >&5 | |
2261 | rm -f core *.core core.conftest.* && | |
2262 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2263 | exit $exit_status | |
2264 | ' 0 | |
2265 | for ac_signal in 1 2 13 15; do | |
2266 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2267 | done | |
2268 | ac_signal=0 | |
631ef239 | 2269 | |
042acc47 WP |
2270 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2271 | rm -f -r conftest* confdefs.h | |
631ef239 | 2272 | |
042acc47 | 2273 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2274 | |
042acc47 | 2275 | # Predefined preprocessor variables. |
212380e3 | 2276 | |
042acc47 WP |
2277 | cat >>confdefs.h <<_ACEOF |
2278 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2279 | _ACEOF |
212380e3 | 2280 | |
042acc47 WP |
2281 | cat >>confdefs.h <<_ACEOF |
2282 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2283 | _ACEOF |
212380e3 | 2284 | |
042acc47 WP |
2285 | cat >>confdefs.h <<_ACEOF |
2286 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2287 | _ACEOF |
212380e3 | 2288 | |
042acc47 WP |
2289 | cat >>confdefs.h <<_ACEOF |
2290 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2291 | _ACEOF | |
212380e3 | 2292 | |
042acc47 WP |
2293 | cat >>confdefs.h <<_ACEOF |
2294 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2295 | _ACEOF | |
212380e3 | 2296 | |
042acc47 WP |
2297 | cat >>confdefs.h <<_ACEOF |
2298 | #define PACKAGE_URL "$PACKAGE_URL" | |
2299 | _ACEOF | |
212380e3 | 2300 | |
631ef239 | 2301 | |
042acc47 WP |
2302 | # Let the site file select an alternate cache file if it wants to. |
2303 | # Prefer an explicitly selected file to automatically selected ones. | |
2304 | ac_site_file1=NONE | |
2305 | ac_site_file2=NONE | |
2306 | if test -n "$CONFIG_SITE"; then | |
b540af17 JH |
2307 | # We do not want a PATH search for config.site. |
2308 | case $CONFIG_SITE in #(( | |
2309 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2310 | */*) ac_site_file1=$CONFIG_SITE;; | |
2311 | *) ac_site_file1=./$CONFIG_SITE;; | |
2312 | esac | |
042acc47 WP |
2313 | elif test "x$prefix" != xNONE; then |
2314 | ac_site_file1=$prefix/share/config.site | |
2315 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2316 | else |
042acc47 WP |
2317 | ac_site_file1=$ac_default_prefix/share/config.site |
2318 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2319 | fi | |
2320 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2321 | do |
042acc47 | 2322 | test "x$ac_site_file" = xNONE && continue |
1800d973 | 2323 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
042acc47 WP |
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2325 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2326 | sed 's/^/| /' "$ac_site_file" >&5 | |
b540af17 JH |
2327 | . "$ac_site_file" \ |
2328 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2329 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2330 | as_fn_error $? "failed to load site script $ac_site_file | |
2331 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 | 2332 | fi |
2333 | done | |
212380e3 | 2334 | |
042acc47 | 2335 | if test -r "$cache_file"; then |
1800d973 WP |
2336 | # Some versions of bash will fail to source /dev/null (special files |
2337 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2338 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
042acc47 WP |
2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2340 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2341 | case $cache_file in | |
2342 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2343 | *) . "./$cache_file";; | |
2344 | esac | |
2345 | fi | |
212380e3 | 2346 | else |
042acc47 WP |
2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2348 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2349 | >$cache_file | |
212380e3 | 2350 | fi |
2351 | ||
042acc47 WP |
2352 | # Check that the precious variables saved in the cache have kept the same |
2353 | # value. | |
2354 | ac_cache_corrupted=false | |
2355 | for ac_var in $ac_precious_vars; do | |
2356 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2357 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2358 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2359 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2360 | case $ac_old_set,$ac_new_set in | |
2361 | set,) | |
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2363 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2364 | ac_cache_corrupted=: ;; | |
2365 | ,set) | |
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2367 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2368 | ac_cache_corrupted=: ;; | |
2369 | ,);; | |
2370 | *) | |
2371 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2372 | # differences in whitespace do not lead to failure. | |
2373 | ac_old_val_w=`echo x $ac_old_val` | |
2374 | ac_new_val_w=`echo x $ac_new_val` | |
2375 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2377 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2378 | ac_cache_corrupted=: | |
2379 | else | |
2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2381 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2382 | eval $ac_var=\$ac_old_val | |
2383 | fi | |
2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2385 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2387 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2388 | fi;; | |
2389 | esac | |
2390 | # Pass precious variables to config.status. | |
2391 | if test "$ac_new_set" = set; then | |
2392 | case $ac_new_val in | |
2393 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2394 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2395 | esac | |
2396 | case " $ac_configure_args " in | |
2397 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2398 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2399 | esac | |
212380e3 | 2400 | fi |
2401 | done | |
042acc47 WP |
2402 | if $ac_cache_corrupted; then |
2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2406 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b540af17 | 2407 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2408 | fi |
042acc47 WP |
2409 | ## -------------------- ## |
2410 | ## Main body of script. ## | |
2411 | ## -------------------- ## | |
212380e3 | 2412 | |
042acc47 WP |
2413 | ac_ext=c |
2414 | ac_cpp='$CPP $CPPFLAGS' | |
2415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2418 | |
212380e3 | 2419 | |
212380e3 | 2420 | |
042acc47 | 2421 | ac_config_headers="$ac_config_headers include/setup.h" |
631ef239 | 2422 | |
212380e3 | 2423 | |
212380e3 | 2424 | |
631ef239 | 2425 | |
042acc47 WP |
2426 | ac_ext=c |
2427 | ac_cpp='$CPP $CPPFLAGS' | |
2428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2431 | if test -n "$ac_tool_prefix"; then | |
2432 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2433 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2435 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 2436 | if ${ac_cv_prog_CC+:} false; then : |
042acc47 | 2437 | $as_echo_n "(cached) " >&6 |
212380e3 | 2438 | else |
042acc47 WP |
2439 | if test -n "$CC"; then |
2440 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2441 | else | |
2442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 | 2443 | for as_dir in $PATH |
2444 | do | |
2445 | IFS=$as_save_IFS | |
2446 | test -z "$as_dir" && as_dir=. | |
042acc47 | 2447 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
2449 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 | 2451 | break 2 |
2452 | fi | |
2453 | done | |
042acc47 | 2454 | done |
631ef239 | 2455 | IFS=$as_save_IFS |
212380e3 | 2456 | |
212380e3 | 2457 | fi |
042acc47 WP |
2458 | fi |
2459 | CC=$ac_cv_prog_CC | |
2460 | if test -n "$CC"; then | |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2462 | $as_echo "$CC" >&6; } | |
212380e3 | 2463 | else |
042acc47 WP |
2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2465 | $as_echo "no" >&6; } | |
212380e3 | 2466 | fi |
2467 | ||
631ef239 | 2468 | |
042acc47 WP |
2469 | fi |
2470 | if test -z "$ac_cv_prog_CC"; then | |
2471 | ac_ct_CC=$CC | |
2472 | # Extract the first word of "gcc", so it can be a program name with args. | |
2473 | set dummy gcc; ac_word=$2 | |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2475 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 2476 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
042acc47 | 2477 | $as_echo_n "(cached) " >&6 |
212380e3 | 2478 | else |
042acc47 WP |
2479 | if test -n "$ac_ct_CC"; then |
2480 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2481 | else | |
2482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 | 2483 | for as_dir in $PATH |
2484 | do | |
2485 | IFS=$as_save_IFS | |
2486 | test -z "$as_dir" && as_dir=. | |
042acc47 | 2487 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
2489 | ac_cv_prog_ac_ct_CC="gcc" |
2490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 | 2491 | break 2 |
2492 | fi | |
2493 | done | |
042acc47 | 2494 | done |
631ef239 | 2495 | IFS=$as_save_IFS |
212380e3 | 2496 | |
212380e3 | 2497 | fi |
042acc47 WP |
2498 | fi |
2499 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2500 | if test -n "$ac_ct_CC"; then | |
2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2502 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2503 | else |
042acc47 WP |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2505 | $as_echo "no" >&6; } | |
212380e3 | 2506 | fi |
2507 | ||
042acc47 WP |
2508 | if test "x$ac_ct_CC" = x; then |
2509 | CC="" | |
2510 | else | |
2511 | case $cross_compiling:$ac_tool_warned in | |
2512 | yes:) | |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2514 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2515 | ac_tool_warned=yes ;; | |
2516 | esac | |
2517 | CC=$ac_ct_CC | |
2518 | fi | |
2519 | else | |
2520 | CC="$ac_cv_prog_CC" | |
2521 | fi | |
631ef239 | 2522 | |
042acc47 WP |
2523 | if test -z "$CC"; then |
2524 | if test -n "$ac_tool_prefix"; then | |
2525 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2526 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2528 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 2529 | if ${ac_cv_prog_CC+:} false; then : |
042acc47 | 2530 | $as_echo_n "(cached) " >&6 |
212380e3 | 2531 | else |
042acc47 WP |
2532 | if test -n "$CC"; then |
2533 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2534 | else | |
2535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 | 2536 | for as_dir in $PATH |
2537 | do | |
2538 | IFS=$as_save_IFS | |
2539 | test -z "$as_dir" && as_dir=. | |
042acc47 | 2540 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
2542 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 | 2544 | break 2 |
2545 | fi | |
2546 | done | |
042acc47 | 2547 | done |
631ef239 | 2548 | IFS=$as_save_IFS |
042acc47 | 2549 | |
212380e3 | 2550 | fi |
042acc47 WP |
2551 | fi |
2552 | CC=$ac_cv_prog_CC | |
2553 | if test -n "$CC"; then | |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2555 | $as_echo "$CC" >&6; } | |
212380e3 | 2556 | else |
042acc47 WP |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2558 | $as_echo "no" >&6; } | |
212380e3 | 2559 | fi |
2560 | ||
631ef239 | 2561 | |
042acc47 WP |
2562 | fi |
2563 | fi | |
2564 | if test -z "$CC"; then | |
2565 | # Extract the first word of "cc", so it can be a program name with args. | |
2566 | set dummy cc; ac_word=$2 | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2568 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 2569 | if ${ac_cv_prog_CC+:} false; then : |
042acc47 | 2570 | $as_echo_n "(cached) " >&6 |
212380e3 | 2571 | else |
042acc47 WP |
2572 | if test -n "$CC"; then |
2573 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2574 | else | |
2575 | ac_prog_rejected=no | |
2576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 | 2577 | for as_dir in $PATH |
2578 | do | |
2579 | IFS=$as_save_IFS | |
2580 | test -z "$as_dir" && as_dir=. | |
042acc47 | 2581 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
2583 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2584 | ac_prog_rejected=yes | |
2585 | continue | |
2586 | fi | |
2587 | ac_cv_prog_CC="cc" | |
2588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 | 2589 | break 2 |
2590 | fi | |
2591 | done | |
042acc47 | 2592 | done |
631ef239 | 2593 | IFS=$as_save_IFS |
212380e3 | 2594 | |
042acc47 WP |
2595 | if test $ac_prog_rejected = yes; then |
2596 | # We found a bogon in the path, so make sure we never use it. | |
2597 | set dummy $ac_cv_prog_CC | |
2598 | shift | |
2599 | if test $# != 0; then | |
2600 | # We chose a different compiler from the bogus one. | |
2601 | # However, it has the same basename, so the bogon will be chosen | |
2602 | # first if we set CC to just the basename; use the full file name. | |
2603 | shift | |
2604 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2605 | fi | |
212380e3 | 2606 | fi |
042acc47 WP |
2607 | fi |
2608 | fi | |
2609 | CC=$ac_cv_prog_CC | |
2610 | if test -n "$CC"; then | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2612 | $as_echo "$CC" >&6; } | |
212380e3 | 2613 | else |
042acc47 WP |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2615 | $as_echo "no" >&6; } | |
212380e3 | 2616 | fi |
2617 | ||
2618 | ||
042acc47 WP |
2619 | fi |
2620 | if test -z "$CC"; then | |
2621 | if test -n "$ac_tool_prefix"; then | |
2622 | for ac_prog in cl.exe | |
2623 | do | |
2624 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2625 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2627 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 2628 | if ${ac_cv_prog_CC+:} false; then : |
042acc47 | 2629 | $as_echo_n "(cached) " >&6 |
212380e3 | 2630 | else |
042acc47 WP |
2631 | if test -n "$CC"; then |
2632 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 2633 | else |
2634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2635 | for as_dir in $PATH | |
2636 | do | |
2637 | IFS=$as_save_IFS | |
2638 | test -z "$as_dir" && as_dir=. | |
042acc47 | 2639 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
2641 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 | 2643 | break 2 |
2644 | fi | |
2645 | done | |
042acc47 | 2646 | done |
631ef239 | 2647 | IFS=$as_save_IFS |
212380e3 | 2648 | |
2649 | fi | |
2650 | fi | |
042acc47 WP |
2651 | CC=$ac_cv_prog_CC |
2652 | if test -n "$CC"; then | |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2654 | $as_echo "$CC" >&6; } | |
212380e3 | 2655 | else |
042acc47 WP |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2657 | $as_echo "no" >&6; } | |
212380e3 | 2658 | fi |
2659 | ||
631ef239 | 2660 | |
042acc47 WP |
2661 | test -n "$CC" && break |
2662 | done | |
212380e3 | 2663 | fi |
042acc47 WP |
2664 | if test -z "$CC"; then |
2665 | ac_ct_CC=$CC | |
2666 | for ac_prog in cl.exe | |
212380e3 | 2667 | do |
2668 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2669 | set dummy $ac_prog; ac_word=$2 | |
042acc47 WP |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2671 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 2672 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
042acc47 | 2673 | $as_echo_n "(cached) " >&6 |
212380e3 | 2674 | else |
042acc47 WP |
2675 | if test -n "$ac_ct_CC"; then |
2676 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 | 2677 | else |
2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2679 | for as_dir in $PATH | |
2680 | do | |
2681 | IFS=$as_save_IFS | |
2682 | test -z "$as_dir" && as_dir=. | |
042acc47 | 2683 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
2685 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 | 2687 | break 2 |
2688 | fi | |
2689 | done | |
042acc47 | 2690 | done |
631ef239 | 2691 | IFS=$as_save_IFS |
212380e3 | 2692 | |
2693 | fi | |
2694 | fi | |
042acc47 WP |
2695 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2696 | if test -n "$ac_ct_CC"; then | |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2698 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2699 | else |
042acc47 WP |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2701 | $as_echo "no" >&6; } | |
212380e3 | 2702 | fi |
2703 | ||
631ef239 | 2704 | |
042acc47 | 2705 | test -n "$ac_ct_CC" && break |
212380e3 | 2706 | done |
212380e3 | 2707 | |
042acc47 WP |
2708 | if test "x$ac_ct_CC" = x; then |
2709 | CC="" | |
2710 | else | |
2711 | case $cross_compiling:$ac_tool_warned in | |
2712 | yes:) | |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2714 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2715 | ac_tool_warned=yes ;; | |
2716 | esac | |
2717 | CC=$ac_ct_CC | |
2718 | fi | |
2719 | fi | |
2720 | ||
2721 | fi | |
2722 | ||
2723 | ||
2724 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2725 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
2726 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2727 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 WP |
2728 | |
2729 | # Provide some information about the compiler. | |
2730 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2731 | set X $ac_compile | |
2732 | ac_compiler=$2 | |
2733 | for ac_option in --version -v -V -qversion; do | |
2734 | { { ac_try="$ac_compiler $ac_option >&5" | |
2735 | case "(($ac_try" in | |
2736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2737 | *) ac_try_echo=$ac_try;; | |
2738 | esac | |
2739 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2740 | $as_echo "$ac_try_echo"; } >&5 | |
2741 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2742 | ac_status=$? | |
2743 | if test -s conftest.err; then | |
2744 | sed '10a\ | |
2745 | ... rest of stderr output deleted ... | |
2746 | 10q' conftest.err >conftest.er1 | |
2747 | cat conftest.er1 >&5 | |
042acc47 | 2748 | fi |
1800d973 | 2749 | rm -f conftest.er1 conftest.err |
042acc47 WP |
2750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2751 | test $ac_status = 0; } | |
2752 | done | |
2753 | ||
2754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2755 | /* end confdefs.h. */ | |
1800d973 | 2756 | |
212380e3 | 2757 | int |
042acc47 | 2758 | main () |
212380e3 | 2759 | { |
042acc47 WP |
2760 | |
2761 | ; | |
2762 | return 0; | |
212380e3 | 2763 | } |
2764 | _ACEOF | |
042acc47 | 2765 | ac_clean_files_save=$ac_clean_files |
1800d973 | 2766 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
042acc47 WP |
2767 | # Try to create an executable without -o first, disregard a.out. |
2768 | # It will help us diagnose broken compilers, and finding out an intuition | |
2769 | # of exeext. | |
1800d973 WP |
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2771 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
042acc47 WP |
2772 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2773 | ||
2774 | # The possible output files: | |
2775 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2776 | ||
2777 | ac_rmfiles= | |
2778 | for ac_file in $ac_files | |
2779 | do | |
2780 | case $ac_file in | |
2781 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2782 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2783 | esac | |
2784 | done | |
2785 | rm -f $ac_rmfiles | |
2786 | ||
2787 | if { { ac_try="$ac_link_default" | |
631ef239 | 2788 | case "(($ac_try" in |
2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2790 | *) ac_try_echo=$ac_try;; | |
2791 | esac | |
042acc47 WP |
2792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2793 | $as_echo "$ac_try_echo"; } >&5 | |
2794 | (eval "$ac_link_default") 2>&5 | |
212380e3 | 2795 | ac_status=$? |
042acc47 WP |
2796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2797 | test $ac_status = 0; }; then : | |
2798 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2799 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2800 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2801 | # so that the user can short-circuit this test for compilers unknown to | |
2802 | # Autoconf. | |
2803 | for ac_file in $ac_files '' | |
2804 | do | |
2805 | test -f "$ac_file" || continue | |
2806 | case $ac_file in | |
2807 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2808 | ;; | |
2809 | [ab].out ) | |
2810 | # We found the default executable, but exeext='' is most | |
2811 | # certainly right. | |
2812 | break;; | |
2813 | *.* ) | |
2814 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2815 | then :; else | |
2816 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2817 | fi | |
2818 | # We set ac_cv_exeext here because the later test for it is not | |
2819 | # safe: cross compilers may not add the suffix if given an `-o' | |
2820 | # argument, so we may need to know it at that point already. | |
2821 | # Even if this section looks crufty: it has the advantage of | |
2822 | # actually working. | |
2823 | break;; | |
2824 | * ) | |
2825 | break;; | |
2826 | esac | |
2827 | done | |
2828 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
212380e3 | 2829 | |
212380e3 | 2830 | else |
042acc47 | 2831 | ac_file='' |
631ef239 | 2832 | fi |
042acc47 | 2833 | if test -z "$ac_file"; then : |
1800d973 WP |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2835 | $as_echo "no" >&6; } | |
2836 | $as_echo "$as_me: failed program was:" >&5 | |
042acc47 WP |
2837 | sed 's/^/| /' conftest.$ac_ext >&5 |
2838 | ||
2839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
2841 | as_fn_error 77 "C compiler cannot create executables |
2842 | See \`config.log' for more details" "$LINENO" 5; } | |
1800d973 WP |
2843 | else |
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2845 | $as_echo "yes" >&6; } | |
631ef239 | 2846 | fi |
1800d973 WP |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2848 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2850 | $as_echo "$ac_file" >&6; } | |
042acc47 | 2851 | ac_exeext=$ac_cv_exeext |
631ef239 | 2852 | |
1800d973 | 2853 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
042acc47 | 2854 | ac_clean_files=$ac_clean_files_save |
042acc47 WP |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2856 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2857 | if { { ac_try="$ac_link" | |
2858 | case "(($ac_try" in | |
2859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2860 | *) ac_try_echo=$ac_try;; | |
2861 | esac | |
2862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2863 | $as_echo "$ac_try_echo"; } >&5 | |
2864 | (eval "$ac_link") 2>&5 | |
2865 | ac_status=$? | |
2866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2867 | test $ac_status = 0; }; then : | |
2868 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2869 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2870 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2871 | # `rm'. | |
2872 | for ac_file in conftest.exe conftest conftest.*; do | |
2873 | test -f "$ac_file" || continue | |
2874 | case $ac_file in | |
2875 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2876 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2877 | break;; | |
2878 | * ) break;; | |
2879 | esac | |
2880 | done | |
212380e3 | 2881 | else |
042acc47 WP |
2882 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2883 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
2884 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2885 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 | 2886 | fi |
1800d973 | 2887 | rm -f conftest conftest$ac_cv_exeext |
042acc47 WP |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2889 | $as_echo "$ac_cv_exeext" >&6; } | |
2890 | ||
2891 | rm -f conftest.$ac_ext | |
2892 | EXEEXT=$ac_cv_exeext | |
2893 | ac_exeext=$EXEEXT | |
1800d973 WP |
2894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2895 | /* end confdefs.h. */ | |
2896 | #include <stdio.h> | |
2897 | int | |
2898 | main () | |
2899 | { | |
2900 | FILE *f = fopen ("conftest.out", "w"); | |
2901 | return ferror (f) || fclose (f) != 0; | |
2902 | ||
2903 | ; | |
2904 | return 0; | |
2905 | } | |
2906 | _ACEOF | |
2907 | ac_clean_files="$ac_clean_files conftest.out" | |
2908 | # Check that the compiler produces executables we can run. If not, either | |
2909 | # the compiler is broken, or we cross compile. | |
2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2911 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2912 | if test "$cross_compiling" != yes; then | |
2913 | { { ac_try="$ac_link" | |
2914 | case "(($ac_try" in | |
2915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2916 | *) ac_try_echo=$ac_try;; | |
2917 | esac | |
2918 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2919 | $as_echo "$ac_try_echo"; } >&5 | |
2920 | (eval "$ac_link") 2>&5 | |
2921 | ac_status=$? | |
2922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2923 | test $ac_status = 0; } | |
2924 | if { ac_try='./conftest$ac_cv_exeext' | |
2925 | { { case "(($ac_try" in | |
2926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2927 | *) ac_try_echo=$ac_try;; | |
2928 | esac | |
2929 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2930 | $as_echo "$ac_try_echo"; } >&5 | |
2931 | (eval "$ac_try") 2>&5 | |
2932 | ac_status=$? | |
2933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2934 | test $ac_status = 0; }; }; then | |
2935 | cross_compiling=no | |
2936 | else | |
2937 | if test "$cross_compiling" = maybe; then | |
2938 | cross_compiling=yes | |
2939 | else | |
2940 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2941 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 | 2942 | as_fn_error $? "cannot run C compiled programs. |
1800d973 | 2943 | If you meant to cross compile, use \`--host'. |
b540af17 | 2944 | See \`config.log' for more details" "$LINENO" 5; } |
1800d973 WP |
2945 | fi |
2946 | fi | |
2947 | fi | |
2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2949 | $as_echo "$cross_compiling" >&6; } | |
2950 | ||
2951 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2952 | ac_clean_files=$ac_clean_files_save | |
042acc47 WP |
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2954 | $as_echo_n "checking for suffix of object files... " >&6; } | |
b540af17 | 2955 | if ${ac_cv_objext+:} false; then : |
042acc47 WP |
2956 | $as_echo_n "(cached) " >&6 |
2957 | else | |
2958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2959 | /* end confdefs.h. */ | |
212380e3 | 2960 | |
042acc47 WP |
2961 | int |
2962 | main () | |
2963 | { | |
2964 | ||
2965 | ; | |
2966 | return 0; | |
2967 | } | |
212380e3 | 2968 | _ACEOF |
042acc47 WP |
2969 | rm -f conftest.o conftest.obj |
2970 | if { { ac_try="$ac_compile" | |
631ef239 | 2971 | case "(($ac_try" in |
2972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2973 | *) ac_try_echo=$ac_try;; | |
2974 | esac | |
042acc47 WP |
2975 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2976 | $as_echo "$ac_try_echo"; } >&5 | |
2977 | (eval "$ac_compile") 2>&5 | |
212380e3 | 2978 | ac_status=$? |
042acc47 WP |
2979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2980 | test $ac_status = 0; }; then : | |
2981 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2982 | test -f "$ac_file" || continue; | |
2983 | case $ac_file in | |
2984 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2985 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2986 | break;; | |
2987 | esac | |
2988 | done | |
212380e3 | 2989 | else |
042acc47 | 2990 | $as_echo "$as_me: failed program was:" >&5 |
212380e3 | 2991 | sed 's/^/| /' conftest.$ac_ext >&5 |
2992 | ||
042acc47 WP |
2993 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2994 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
2995 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2996 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 WP |
2997 | fi |
2998 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
212380e3 | 2999 | fi |
042acc47 WP |
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3001 | $as_echo "$ac_cv_objext" >&6; } | |
3002 | OBJEXT=$ac_cv_objext | |
3003 | ac_objext=$OBJEXT | |
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3005 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b540af17 | 3006 | if ${ac_cv_c_compiler_gnu+:} false; then : |
042acc47 WP |
3007 | $as_echo_n "(cached) " >&6 |
3008 | else | |
3009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3010 | /* end confdefs.h. */ | |
212380e3 | 3011 | |
042acc47 WP |
3012 | int |
3013 | main () | |
3014 | { | |
3015 | #ifndef __GNUC__ | |
3016 | choke me | |
3017 | #endif | |
212380e3 | 3018 | |
042acc47 WP |
3019 | ; |
3020 | return 0; | |
3021 | } | |
3022 | _ACEOF | |
3023 | if ac_fn_c_try_compile "$LINENO"; then : | |
3024 | ac_compiler_gnu=yes | |
3025 | else | |
3026 | ac_compiler_gnu=no | |
212380e3 | 3027 | fi |
042acc47 WP |
3028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3029 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3030 | ||
3031 | fi | |
3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3033 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3034 | if test $ac_compiler_gnu = yes; then | |
3035 | GCC=yes | |
3036 | else | |
3037 | GCC= | |
212380e3 | 3038 | fi |
042acc47 WP |
3039 | ac_test_CFLAGS=${CFLAGS+set} |
3040 | ac_save_CFLAGS=$CFLAGS | |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3042 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b540af17 | 3043 | if ${ac_cv_prog_cc_g+:} false; then : |
042acc47 WP |
3044 | $as_echo_n "(cached) " >&6 |
3045 | else | |
3046 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3047 | ac_c_werror_flag=yes | |
3048 | ac_cv_prog_cc_g=no | |
3049 | CFLAGS="-g" | |
3050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3051 | /* end confdefs.h. */ | |
212380e3 | 3052 | |
042acc47 WP |
3053 | int |
3054 | main () | |
3055 | { | |
631ef239 | 3056 | |
042acc47 WP |
3057 | ; |
3058 | return 0; | |
3059 | } | |
212380e3 | 3060 | _ACEOF |
042acc47 WP |
3061 | if ac_fn_c_try_compile "$LINENO"; then : |
3062 | ac_cv_prog_cc_g=yes | |
212380e3 | 3063 | else |
042acc47 WP |
3064 | CFLAGS="" |
3065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3066 | /* end confdefs.h. */ | |
212380e3 | 3067 | |
042acc47 WP |
3068 | int |
3069 | main () | |
3070 | { | |
631ef239 | 3071 | |
042acc47 WP |
3072 | ; |
3073 | return 0; | |
3074 | } | |
3075 | _ACEOF | |
3076 | if ac_fn_c_try_compile "$LINENO"; then : | |
631ef239 | 3077 | |
042acc47 WP |
3078 | else |
3079 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3080 | CFLAGS="-g" | |
3081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3082 | /* end confdefs.h. */ | |
212380e3 | 3083 | |
042acc47 WP |
3084 | int |
3085 | main () | |
3086 | { | |
212380e3 | 3087 | |
042acc47 WP |
3088 | ; |
3089 | return 0; | |
3090 | } | |
212380e3 | 3091 | _ACEOF |
042acc47 WP |
3092 | if ac_fn_c_try_compile "$LINENO"; then : |
3093 | ac_cv_prog_cc_g=yes | |
212380e3 | 3094 | fi |
042acc47 | 3095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3096 | fi |
042acc47 | 3097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3098 | fi |
042acc47 WP |
3099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3100 | ac_c_werror_flag=$ac_save_c_werror_flag | |
212380e3 | 3101 | fi |
042acc47 WP |
3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3103 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3104 | if test "$ac_test_CFLAGS" = set; then | |
3105 | CFLAGS=$ac_save_CFLAGS | |
3106 | elif test $ac_cv_prog_cc_g = yes; then | |
3107 | if test "$GCC" = yes; then | |
3108 | CFLAGS="-g -O2" | |
3109 | else | |
3110 | CFLAGS="-g" | |
3111 | fi | |
212380e3 | 3112 | else |
042acc47 WP |
3113 | if test "$GCC" = yes; then |
3114 | CFLAGS="-O2" | |
3115 | else | |
3116 | CFLAGS= | |
3117 | fi | |
3118 | fi | |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3120 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b540af17 | 3121 | if ${ac_cv_prog_cc_c89+:} false; then : |
042acc47 WP |
3122 | $as_echo_n "(cached) " >&6 |
3123 | else | |
3124 | ac_cv_prog_cc_c89=no | |
3125 | ac_save_CC=$CC | |
3126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3127 | /* end confdefs.h. */ |
212380e3 | 3128 | #include <stdarg.h> |
042acc47 WP |
3129 | #include <stdio.h> |
3130 | #include <sys/types.h> | |
3131 | #include <sys/stat.h> | |
3132 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3133 | struct buf { int x; }; | |
3134 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3135 | static char *e (p, i) | |
3136 | char **p; | |
3137 | int i; | |
3138 | { | |
3139 | return p[i]; | |
3140 | } | |
3141 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3142 | { | |
3143 | char *s; | |
3144 | va_list v; | |
3145 | va_start (v,p); | |
3146 | s = g (p, va_arg (v,int)); | |
3147 | va_end (v); | |
3148 | return s; | |
3149 | } | |
3150 | ||
3151 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3152 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3153 | These don't provoke an error unfortunately, instead are silently treated | |
3154 | as 'x'. The following induces an error, until -std is added to get | |
3155 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3156 | array size at least. It's necessary to write '\x00'==0 to get something | |
3157 | that's true only with -std. */ | |
3158 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3159 | ||
3160 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3161 | inside strings and character constants. */ | |
3162 | #define FOO(x) 'x' | |
3163 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
212380e3 | 3164 | |
042acc47 WP |
3165 | int test (int i, double x); |
3166 | struct s1 {int (*f) (int a);}; | |
3167 | struct s2 {int (*f) (double a);}; | |
3168 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3169 | int argc; | |
3170 | char **argv; | |
212380e3 | 3171 | int |
3172 | main () | |
3173 | { | |
042acc47 | 3174 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 | 3175 | ; |
3176 | return 0; | |
3177 | } | |
3178 | _ACEOF | |
042acc47 WP |
3179 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3180 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3181 | do | |
3182 | CC="$ac_save_CC $ac_arg" | |
3183 | if ac_fn_c_try_compile "$LINENO"; then : | |
3184 | ac_cv_prog_cc_c89=$ac_arg | |
3185 | fi | |
3186 | rm -f core conftest.err conftest.$ac_objext | |
3187 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3188 | done | |
3189 | rm -f conftest.$ac_ext | |
3190 | CC=$ac_save_CC | |
3191 | ||
3192 | fi | |
3193 | # AC_CACHE_VAL | |
3194 | case "x$ac_cv_prog_cc_c89" in | |
3195 | x) | |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3197 | $as_echo "none needed" >&6; } ;; | |
3198 | xno) | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3200 | $as_echo "unsupported" >&6; } ;; | |
3201 | *) | |
3202 | CC="$CC $ac_cv_prog_cc_c89" | |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3204 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 3205 | esac |
042acc47 | 3206 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 3207 | |
212380e3 | 3208 | fi |
631ef239 | 3209 | |
042acc47 WP |
3210 | ac_ext=c |
3211 | ac_cpp='$CPP $CPPFLAGS' | |
3212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 | 3215 | |
212380e3 | 3216 | |
042acc47 WP |
3217 | ac_ext=c |
3218 | ac_cpp='$CPP $CPPFLAGS' | |
3219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3220 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3221 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3223 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3224 | # On Suns, sometimes $CPP names a directory. | |
3225 | if test -n "$CPP" && test -d "$CPP"; then | |
3226 | CPP= | |
3227 | fi | |
3228 | if test -z "$CPP"; then | |
b540af17 | 3229 | if ${ac_cv_prog_CPP+:} false; then : |
042acc47 WP |
3230 | $as_echo_n "(cached) " >&6 |
3231 | else | |
3232 | # Double quotes because CPP needs to be expanded | |
3233 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3234 | do | |
3235 | ac_preproc_ok=false | |
3236 | for ac_c_preproc_warn_flag in '' yes | |
3237 | do | |
3238 | # Use a header file that comes with gcc, so configuring glibc | |
3239 | # with a fresh cross-compiler works. | |
3240 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3241 | # <limits.h> exists even on freestanding compilers. | |
3242 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3243 | # not just through cpp. "Syntax error" is here to catch this case. | |
3244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3245 | /* end confdefs.h. */ | |
3246 | #ifdef __STDC__ | |
3247 | # include <limits.h> | |
3248 | #else | |
3249 | # include <assert.h> | |
3250 | #endif | |
3251 | Syntax error | |
212380e3 | 3252 | _ACEOF |
042acc47 | 3253 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3254 | |
042acc47 WP |
3255 | else |
3256 | # Broken: fails on valid input. | |
3257 | continue | |
212380e3 | 3258 | fi |
b540af17 | 3259 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3260 | |
042acc47 WP |
3261 | # OK, works on sane cases. Now check whether nonexistent headers |
3262 | # can be detected and how. | |
3263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3264 | /* end confdefs.h. */ |
042acc47 | 3265 | #include <ac_nonexistent.h> |
212380e3 | 3266 | _ACEOF |
042acc47 WP |
3267 | if ac_fn_c_try_cpp "$LINENO"; then : |
3268 | # Broken: success on invalid input. | |
3269 | continue | |
212380e3 | 3270 | else |
042acc47 WP |
3271 | # Passes both tests. |
3272 | ac_preproc_ok=: | |
3273 | break | |
212380e3 | 3274 | fi |
b540af17 | 3275 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3276 | |
042acc47 WP |
3277 | done |
3278 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b540af17 | 3279 | rm -f conftest.i conftest.err conftest.$ac_ext |
042acc47 WP |
3280 | if $ac_preproc_ok; then : |
3281 | break | |
212380e3 | 3282 | fi |
3283 | ||
042acc47 WP |
3284 | done |
3285 | ac_cv_prog_CPP=$CPP | |
3286 | ||
3287 | fi | |
3288 | CPP=$ac_cv_prog_CPP | |
212380e3 | 3289 | else |
042acc47 WP |
3290 | ac_cv_prog_CPP=$CPP |
3291 | fi | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3293 | $as_echo "$CPP" >&6; } | |
3294 | ac_preproc_ok=false | |
3295 | for ac_c_preproc_warn_flag in '' yes | |
3296 | do | |
3297 | # Use a header file that comes with gcc, so configuring glibc | |
3298 | # with a fresh cross-compiler works. | |
3299 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3300 | # <limits.h> exists even on freestanding compilers. | |
3301 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3302 | # not just through cpp. "Syntax error" is here to catch this case. | |
3303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3304 | /* end confdefs.h. */ |
042acc47 WP |
3305 | #ifdef __STDC__ |
3306 | # include <limits.h> | |
212380e3 | 3307 | #else |
042acc47 | 3308 | # include <assert.h> |
212380e3 | 3309 | #endif |
042acc47 | 3310 | Syntax error |
212380e3 | 3311 | _ACEOF |
042acc47 | 3312 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3313 | |
042acc47 WP |
3314 | else |
3315 | # Broken: fails on valid input. | |
3316 | continue | |
212380e3 | 3317 | fi |
b540af17 | 3318 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3319 | |
042acc47 WP |
3320 | # OK, works on sane cases. Now check whether nonexistent headers |
3321 | # can be detected and how. | |
3322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3323 | /* end confdefs.h. */ |
042acc47 | 3324 | #include <ac_nonexistent.h> |
212380e3 | 3325 | _ACEOF |
042acc47 WP |
3326 | if ac_fn_c_try_cpp "$LINENO"; then : |
3327 | # Broken: success on invalid input. | |
3328 | continue | |
212380e3 | 3329 | else |
042acc47 WP |
3330 | # Passes both tests. |
3331 | ac_preproc_ok=: | |
3332 | break | |
212380e3 | 3333 | fi |
b540af17 | 3334 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3335 | |
3336 | done | |
042acc47 | 3337 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
b540af17 | 3338 | rm -f conftest.i conftest.err conftest.$ac_ext |
042acc47 | 3339 | if $ac_preproc_ok; then : |
212380e3 | 3340 | |
042acc47 WP |
3341 | else |
3342 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3343 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
3344 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3345 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 | 3346 | fi |
212380e3 | 3347 | |
042acc47 WP |
3348 | ac_ext=c |
3349 | ac_cpp='$CPP $CPPFLAGS' | |
3350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 | 3353 | |
3354 | ||
042acc47 WP |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3356 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
b540af17 | 3357 | if ${ac_cv_path_GREP+:} false; then : |
042acc47 | 3358 | $as_echo_n "(cached) " >&6 |
212380e3 | 3359 | else |
042acc47 WP |
3360 | if test -z "$GREP"; then |
3361 | ac_path_GREP_found=false | |
3362 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3364 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3365 | do | |
3366 | IFS=$as_save_IFS | |
3367 | test -z "$as_dir" && as_dir=. | |
3368 | for ac_prog in grep ggrep; do | |
3369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3370 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3371 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3372 | # Check for GNU ac_path_GREP and select it if it is found. | |
3373 | # Check for GNU $ac_path_GREP | |
3374 | case `"$ac_path_GREP" --version 2>&1` in | |
3375 | *GNU*) | |
3376 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3377 | *) | |
3378 | ac_count=0 | |
3379 | $as_echo_n 0123456789 >"conftest.in" | |
3380 | while : | |
3381 | do | |
3382 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3383 | mv "conftest.tmp" "conftest.in" | |
3384 | cp "conftest.in" "conftest.nl" | |
3385 | $as_echo 'GREP' >> "conftest.nl" | |
3386 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3387 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3388 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3389 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3390 | # Best one so far, save it but keep looking for a better one | |
3391 | ac_cv_path_GREP="$ac_path_GREP" | |
3392 | ac_path_GREP_max=$ac_count | |
3393 | fi | |
3394 | # 10*(2^10) chars as input seems more than enough | |
3395 | test $ac_count -gt 10 && break | |
3396 | done | |
3397 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3398 | esac |
042acc47 WP |
3399 | |
3400 | $ac_path_GREP_found && break 3 | |
3401 | done | |
3402 | done | |
3403 | done | |
3404 | IFS=$as_save_IFS | |
3405 | if test -z "$ac_cv_path_GREP"; then | |
b540af17 | 3406 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
042acc47 | 3407 | fi |
212380e3 | 3408 | else |
042acc47 WP |
3409 | ac_cv_path_GREP=$GREP |
3410 | fi | |
212380e3 | 3411 | |
212380e3 | 3412 | fi |
042acc47 WP |
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3414 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3415 | GREP="$ac_cv_path_GREP" | |
631ef239 | 3416 | |
212380e3 | 3417 | |
042acc47 WP |
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3419 | $as_echo_n "checking for egrep... " >&6; } | |
b540af17 | 3420 | if ${ac_cv_path_EGREP+:} false; then : |
042acc47 WP |
3421 | $as_echo_n "(cached) " >&6 |
3422 | else | |
3423 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3424 | then ac_cv_path_EGREP="$GREP -E" | |
3425 | else | |
3426 | if test -z "$EGREP"; then | |
3427 | ac_path_EGREP_found=false | |
3428 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3430 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3431 | do | |
3432 | IFS=$as_save_IFS | |
3433 | test -z "$as_dir" && as_dir=. | |
3434 | for ac_prog in egrep; do | |
3435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3436 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3437 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3438 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3439 | # Check for GNU $ac_path_EGREP | |
3440 | case `"$ac_path_EGREP" --version 2>&1` in | |
3441 | *GNU*) | |
3442 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3443 | *) | |
3444 | ac_count=0 | |
3445 | $as_echo_n 0123456789 >"conftest.in" | |
3446 | while : | |
3447 | do | |
3448 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3449 | mv "conftest.tmp" "conftest.in" | |
3450 | cp "conftest.in" "conftest.nl" | |
3451 | $as_echo 'EGREP' >> "conftest.nl" | |
3452 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3453 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3454 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3455 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3456 | # Best one so far, save it but keep looking for a better one | |
3457 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3458 | ac_path_EGREP_max=$ac_count | |
3459 | fi | |
3460 | # 10*(2^10) chars as input seems more than enough | |
3461 | test $ac_count -gt 10 && break | |
3462 | done | |
3463 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3464 | esac |
212380e3 | 3465 | |
042acc47 WP |
3466 | $ac_path_EGREP_found && break 3 |
3467 | done | |
3468 | done | |
3469 | done | |
3470 | IFS=$as_save_IFS | |
3471 | if test -z "$ac_cv_path_EGREP"; then | |
b540af17 | 3472 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
042acc47 | 3473 | fi |
212380e3 | 3474 | else |
042acc47 | 3475 | ac_cv_path_EGREP=$EGREP |
212380e3 | 3476 | fi |
212380e3 | 3477 | |
042acc47 | 3478 | fi |
212380e3 | 3479 | fi |
042acc47 WP |
3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3481 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3482 | EGREP="$ac_cv_path_EGREP" | |
212380e3 | 3483 | |
3484 | ||
042acc47 WP |
3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3486 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b540af17 | 3487 | if ${ac_cv_header_stdc+:} false; then : |
042acc47 | 3488 | $as_echo_n "(cached) " >&6 |
212380e3 | 3489 | else |
042acc47 | 3490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3491 | /* end confdefs.h. */ |
042acc47 WP |
3492 | #include <stdlib.h> |
3493 | #include <stdarg.h> | |
3494 | #include <string.h> | |
3495 | #include <float.h> | |
212380e3 | 3496 | |
3497 | int | |
3498 | main () | |
3499 | { | |
212380e3 | 3500 | |
3501 | ; | |
3502 | return 0; | |
3503 | } | |
3504 | _ACEOF | |
042acc47 WP |
3505 | if ac_fn_c_try_compile "$LINENO"; then : |
3506 | ac_cv_header_stdc=yes | |
212380e3 | 3507 | else |
042acc47 | 3508 | ac_cv_header_stdc=no |
212380e3 | 3509 | fi |
631ef239 | 3510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3511 | |
042acc47 WP |
3512 | if test $ac_cv_header_stdc = yes; then |
3513 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3515 | /* end confdefs.h. */ | |
3516 | #include <string.h> | |
212380e3 | 3517 | |
042acc47 WP |
3518 | _ACEOF |
3519 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3520 | $EGREP "memchr" >/dev/null 2>&1; then : | |
212380e3 | 3521 | |
212380e3 | 3522 | else |
042acc47 WP |
3523 | ac_cv_header_stdc=no |
3524 | fi | |
3525 | rm -f conftest* | |
212380e3 | 3526 | |
042acc47 | 3527 | fi |
212380e3 | 3528 | |
042acc47 WP |
3529 | if test $ac_cv_header_stdc = yes; then |
3530 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3532 | /* end confdefs.h. */ |
042acc47 | 3533 | #include <stdlib.h> |
212380e3 | 3534 | |
212380e3 | 3535 | _ACEOF |
042acc47 WP |
3536 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3537 | $EGREP "free" >/dev/null 2>&1; then : | |
3538 | ||
212380e3 | 3539 | else |
042acc47 WP |
3540 | ac_cv_header_stdc=no |
3541 | fi | |
3542 | rm -f conftest* | |
212380e3 | 3543 | |
212380e3 | 3544 | fi |
631ef239 | 3545 | |
042acc47 WP |
3546 | if test $ac_cv_header_stdc = yes; then |
3547 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3548 | if test "$cross_compiling" = yes; then : | |
3549 | : | |
212380e3 | 3550 | else |
042acc47 | 3551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3552 | /* end confdefs.h. */ |
042acc47 WP |
3553 | #include <ctype.h> |
3554 | #include <stdlib.h> | |
3555 | #if ((' ' & 0x0FF) == 0x020) | |
3556 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3557 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3558 | #else | |
3559 | # define ISLOWER(c) \ | |
3560 | (('a' <= (c) && (c) <= 'i') \ | |
3561 | || ('j' <= (c) && (c) <= 'r') \ | |
3562 | || ('s' <= (c) && (c) <= 'z')) | |
3563 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3564 | #endif | |
3565 | ||
3566 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 | 3567 | int |
3568 | main () | |
3569 | { | |
042acc47 WP |
3570 | int i; |
3571 | for (i = 0; i < 256; i++) | |
3572 | if (XOR (islower (i), ISLOWER (i)) | |
3573 | || toupper (i) != TOUPPER (i)) | |
3574 | return 2; | |
212380e3 | 3575 | return 0; |
3576 | } | |
3577 | _ACEOF | |
042acc47 WP |
3578 | if ac_fn_c_try_run "$LINENO"; then : |
3579 | ||
3580 | else | |
3581 | ac_cv_header_stdc=no | |
212380e3 | 3582 | fi |
042acc47 WP |
3583 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3584 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 3585 | fi |
212380e3 | 3586 | |
042acc47 WP |
3587 | fi |
3588 | fi | |
3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3590 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3591 | if test $ac_cv_header_stdc = yes; then | |
3592 | ||
3593 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
631ef239 | 3594 | |
212380e3 | 3595 | fi |
631ef239 | 3596 | |
042acc47 WP |
3597 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3598 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3599 | inttypes.h stdint.h unistd.h | |
3600 | do : | |
3601 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3602 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3603 | " | |
b540af17 | 3604 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
042acc47 WP |
3605 | cat >>confdefs.h <<_ACEOF |
3606 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 3607 | _ACEOF |
631ef239 | 3608 | |
042acc47 | 3609 | fi |
631ef239 | 3610 | |
042acc47 WP |
3611 | done |
3612 | ||
3613 | ||
3614 | ||
3615 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
b540af17 | 3616 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
042acc47 | 3617 | MINIX=yes |
212380e3 | 3618 | else |
042acc47 WP |
3619 | MINIX= |
3620 | fi | |
3621 | ||
3622 | ||
3623 | if test "$MINIX" = yes; then | |
3624 | ||
3625 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3626 | ||
212380e3 | 3627 | |
042acc47 | 3628 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
631ef239 | 3629 | |
3630 | ||
042acc47 | 3631 | $as_echo "#define _MINIX 1" >>confdefs.h |
631ef239 | 3632 | |
042acc47 | 3633 | fi |
212380e3 | 3634 | |
212380e3 | 3635 | |
042acc47 WP |
3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3637 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
b540af17 | 3638 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
042acc47 | 3639 | $as_echo_n "(cached) " >&6 |
212380e3 | 3640 | else |
042acc47 | 3641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3642 | /* end confdefs.h. */ |
042acc47 WP |
3643 | |
3644 | # define __EXTENSIONS__ 1 | |
3645 | $ac_includes_default | |
212380e3 | 3646 | int |
3647 | main () | |
3648 | { | |
042acc47 | 3649 | |
212380e3 | 3650 | ; |
3651 | return 0; | |
3652 | } | |
3653 | _ACEOF | |
042acc47 WP |
3654 | if ac_fn_c_try_compile "$LINENO"; then : |
3655 | ac_cv_safe_to_define___extensions__=yes | |
212380e3 | 3656 | else |
042acc47 | 3657 | ac_cv_safe_to_define___extensions__=no |
212380e3 | 3658 | fi |
631ef239 | 3659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3660 | fi |
042acc47 WP |
3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3662 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3663 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3664 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
212380e3 | 3665 | |
042acc47 | 3666 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
212380e3 | 3667 | |
042acc47 WP |
3668 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
3669 | ||
3670 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3671 | ||
3672 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
212380e3 | 3673 | |
042acc47 WP |
3674 | |
3675 | ||
3676 | ||
3677 | OLD_CFLAGS="$CFLAGS" | |
3678 | ac_ext=c | |
3679 | ac_cpp='$CPP $CPPFLAGS' | |
3680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3683 | if test -n "$ac_tool_prefix"; then | |
3684 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3685 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3687 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 3688 | if ${ac_cv_prog_CC+:} false; then : |
042acc47 | 3689 | $as_echo_n "(cached) " >&6 |
212380e3 | 3690 | else |
042acc47 WP |
3691 | if test -n "$CC"; then |
3692 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3693 | else |
042acc47 WP |
3694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3695 | for as_dir in $PATH | |
3696 | do | |
3697 | IFS=$as_save_IFS | |
3698 | test -z "$as_dir" && as_dir=. | |
3699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3701 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3703 | break 2 | |
3704 | fi | |
3705 | done | |
3706 | done | |
3707 | IFS=$as_save_IFS | |
212380e3 | 3708 | |
212380e3 | 3709 | fi |
212380e3 | 3710 | fi |
042acc47 WP |
3711 | CC=$ac_cv_prog_CC |
3712 | if test -n "$CC"; then | |
3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3714 | $as_echo "$CC" >&6; } | |
212380e3 | 3715 | else |
042acc47 WP |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3717 | $as_echo "no" >&6; } | |
3718 | fi | |
212380e3 | 3719 | |
212380e3 | 3720 | |
3721 | fi | |
042acc47 WP |
3722 | if test -z "$ac_cv_prog_CC"; then |
3723 | ac_ct_CC=$CC | |
3724 | # Extract the first word of "gcc", so it can be a program name with args. | |
3725 | set dummy gcc; ac_word=$2 | |
3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3727 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 3728 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
042acc47 | 3729 | $as_echo_n "(cached) " >&6 |
212380e3 | 3730 | else |
042acc47 WP |
3731 | if test -n "$ac_ct_CC"; then |
3732 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 | 3733 | else |
042acc47 WP |
3734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3735 | for as_dir in $PATH | |
3736 | do | |
3737 | IFS=$as_save_IFS | |
3738 | test -z "$as_dir" && as_dir=. | |
3739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3741 | ac_cv_prog_ac_ct_CC="gcc" | |
3742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3743 | break 2 | |
3744 | fi | |
3745 | done | |
3746 | done | |
3747 | IFS=$as_save_IFS | |
212380e3 | 3748 | |
212380e3 | 3749 | fi |
212380e3 | 3750 | fi |
042acc47 WP |
3751 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3752 | if test -n "$ac_ct_CC"; then | |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3754 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 3755 | else |
042acc47 WP |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3757 | $as_echo "no" >&6; } | |
3758 | fi | |
212380e3 | 3759 | |
042acc47 WP |
3760 | if test "x$ac_ct_CC" = x; then |
3761 | CC="" | |
3762 | else | |
3763 | case $cross_compiling:$ac_tool_warned in | |
3764 | yes:) | |
3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3766 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3767 | ac_tool_warned=yes ;; | |
631ef239 | 3768 | esac |
042acc47 WP |
3769 | CC=$ac_ct_CC |
3770 | fi | |
212380e3 | 3771 | else |
042acc47 | 3772 | CC="$ac_cv_prog_CC" |
212380e3 | 3773 | fi |
631ef239 | 3774 | |
042acc47 WP |
3775 | if test -z "$CC"; then |
3776 | if test -n "$ac_tool_prefix"; then | |
3777 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3778 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3780 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 3781 | if ${ac_cv_prog_CC+:} false; then : |
042acc47 | 3782 | $as_echo_n "(cached) " >&6 |
212380e3 | 3783 | else |
042acc47 WP |
3784 | if test -n "$CC"; then |
3785 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3786 | else |
042acc47 WP |
3787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3788 | for as_dir in $PATH | |
3789 | do | |
3790 | IFS=$as_save_IFS | |
3791 | test -z "$as_dir" && as_dir=. | |
3792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3794 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3796 | break 2 | |
3797 | fi | |
3798 | done | |
3799 | done | |
3800 | IFS=$as_save_IFS | |
212380e3 | 3801 | |
212380e3 | 3802 | fi |
042acc47 WP |
3803 | fi |
3804 | CC=$ac_cv_prog_CC | |
3805 | if test -n "$CC"; then | |
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3807 | $as_echo "$CC" >&6; } | |
212380e3 | 3808 | else |
042acc47 WP |
3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3810 | $as_echo "no" >&6; } | |
3811 | fi | |
3812 | ||
212380e3 | 3813 | |
042acc47 | 3814 | fi |
212380e3 | 3815 | fi |
042acc47 WP |
3816 | if test -z "$CC"; then |
3817 | # Extract the first word of "cc", so it can be a program name with args. | |
3818 | set dummy cc; ac_word=$2 | |
3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3820 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 3821 | if ${ac_cv_prog_CC+:} false; then : |
042acc47 WP |
3822 | $as_echo_n "(cached) " >&6 |
3823 | else | |
3824 | if test -n "$CC"; then | |
3825 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3826 | else | |
3827 | ac_prog_rejected=no | |
3828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3829 | for as_dir in $PATH | |
3830 | do | |
3831 | IFS=$as_save_IFS | |
3832 | test -z "$as_dir" && as_dir=. | |
3833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3835 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3836 | ac_prog_rejected=yes | |
3837 | continue | |
3838 | fi | |
3839 | ac_cv_prog_CC="cc" | |
3840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3841 | break 2 | |
3842 | fi | |
3843 | done | |
3844 | done | |
3845 | IFS=$as_save_IFS | |
631ef239 | 3846 | |
042acc47 WP |
3847 | if test $ac_prog_rejected = yes; then |
3848 | # We found a bogon in the path, so make sure we never use it. | |
3849 | set dummy $ac_cv_prog_CC | |
3850 | shift | |
3851 | if test $# != 0; then | |
3852 | # We chose a different compiler from the bogus one. | |
3853 | # However, it has the same basename, so the bogon will be chosen | |
3854 | # first if we set CC to just the basename; use the full file name. | |
3855 | shift | |
3856 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3857 | fi | |
3858 | fi | |
3859 | fi | |
3860 | fi | |
3861 | CC=$ac_cv_prog_CC | |
3862 | if test -n "$CC"; then | |
3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3864 | $as_echo "$CC" >&6; } | |
3865 | else | |
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3867 | $as_echo "no" >&6; } | |
212380e3 | 3868 | fi |
631ef239 | 3869 | |
212380e3 | 3870 | |
042acc47 WP |
3871 | fi |
3872 | if test -z "$CC"; then | |
3873 | if test -n "$ac_tool_prefix"; then | |
3874 | for ac_prog in cl.exe | |
3875 | do | |
3876 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3877 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3879 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 3880 | if ${ac_cv_prog_CC+:} false; then : |
042acc47 | 3881 | $as_echo_n "(cached) " >&6 |
212380e3 | 3882 | else |
042acc47 WP |
3883 | if test -n "$CC"; then |
3884 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3885 | else | |
3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3887 | for as_dir in $PATH | |
3888 | do | |
3889 | IFS=$as_save_IFS | |
3890 | test -z "$as_dir" && as_dir=. | |
3891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3893 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3895 | break 2 | |
3896 | fi | |
3897 | done | |
3898 | done | |
3899 | IFS=$as_save_IFS | |
212380e3 | 3900 | |
212380e3 | 3901 | fi |
042acc47 WP |
3902 | fi |
3903 | CC=$ac_cv_prog_CC | |
3904 | if test -n "$CC"; then | |
3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3906 | $as_echo "$CC" >&6; } | |
212380e3 | 3907 | else |
042acc47 WP |
3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3909 | $as_echo "no" >&6; } | |
3910 | fi | |
212380e3 | 3911 | |
212380e3 | 3912 | |
042acc47 WP |
3913 | test -n "$CC" && break |
3914 | done | |
3915 | fi | |
3916 | if test -z "$CC"; then | |
3917 | ac_ct_CC=$CC | |
3918 | for ac_prog in cl.exe | |
3919 | do | |
3920 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3921 | set dummy $ac_prog; ac_word=$2 | |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3923 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 3924 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
042acc47 | 3925 | $as_echo_n "(cached) " >&6 |
212380e3 | 3926 | else |
042acc47 WP |
3927 | if test -n "$ac_ct_CC"; then |
3928 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3929 | else | |
3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3931 | for as_dir in $PATH | |
3932 | do | |
3933 | IFS=$as_save_IFS | |
3934 | test -z "$as_dir" && as_dir=. | |
3935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3937 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3939 | break 2 | |
3940 | fi | |
3941 | done | |
3942 | done | |
3943 | IFS=$as_save_IFS | |
212380e3 | 3944 | |
212380e3 | 3945 | fi |
3946 | fi | |
042acc47 WP |
3947 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3948 | if test -n "$ac_ct_CC"; then | |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3950 | $as_echo "$ac_ct_CC" >&6; } | |
3951 | else | |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3953 | $as_echo "no" >&6; } | |
212380e3 | 3954 | fi |
631ef239 | 3955 | |
3956 | ||
042acc47 WP |
3957 | test -n "$ac_ct_CC" && break |
3958 | done | |
631ef239 | 3959 | |
042acc47 WP |
3960 | if test "x$ac_ct_CC" = x; then |
3961 | CC="" | |
3962 | else | |
3963 | case $cross_compiling:$ac_tool_warned in | |
3964 | yes:) | |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3966 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3967 | ac_tool_warned=yes ;; | |
3968 | esac | |
3969 | CC=$ac_ct_CC | |
3970 | fi | |
3971 | fi | |
212380e3 | 3972 | |
042acc47 | 3973 | fi |
212380e3 | 3974 | |
042acc47 WP |
3975 | |
3976 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3977 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
3978 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3979 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 WP |
3980 | |
3981 | # Provide some information about the compiler. | |
3982 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3983 | set X $ac_compile | |
3984 | ac_compiler=$2 | |
3985 | for ac_option in --version -v -V -qversion; do | |
3986 | { { ac_try="$ac_compiler $ac_option >&5" | |
631ef239 | 3987 | case "(($ac_try" in |
3988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3989 | *) ac_try_echo=$ac_try;; | |
3990 | esac | |
042acc47 WP |
3991 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3992 | $as_echo "$ac_try_echo"; } >&5 | |
3993 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
212380e3 | 3994 | ac_status=$? |
042acc47 WP |
3995 | if test -s conftest.err; then |
3996 | sed '10a\ | |
3997 | ... rest of stderr output deleted ... | |
3998 | 10q' conftest.err >conftest.er1 | |
3999 | cat conftest.er1 >&5 | |
042acc47 | 4000 | fi |
1800d973 | 4001 | rm -f conftest.er1 conftest.err |
042acc47 WP |
4002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4003 | test $ac_status = 0; } | |
4004 | done | |
212380e3 | 4005 | |
042acc47 WP |
4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4007 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b540af17 | 4008 | if ${ac_cv_c_compiler_gnu+:} false; then : |
042acc47 | 4009 | $as_echo_n "(cached) " >&6 |
212380e3 | 4010 | else |
042acc47 | 4011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 4012 | /* end confdefs.h. */ |
042acc47 | 4013 | |
212380e3 | 4014 | int |
4015 | main () | |
4016 | { | |
042acc47 WP |
4017 | #ifndef __GNUC__ |
4018 | choke me | |
4019 | #endif | |
212380e3 | 4020 | |
4021 | ; | |
4022 | return 0; | |
4023 | } | |
4024 | _ACEOF | |
042acc47 WP |
4025 | if ac_fn_c_try_compile "$LINENO"; then : |
4026 | ac_compiler_gnu=yes | |
4027 | else | |
4028 | ac_compiler_gnu=no | |
4029 | fi | |
4030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4031 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4032 | ||
4033 | fi | |
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4035 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4036 | if test $ac_compiler_gnu = yes; then | |
4037 | GCC=yes | |
4038 | else | |
4039 | GCC= | |
4040 | fi | |
4041 | ac_test_CFLAGS=${CFLAGS+set} | |
4042 | ac_save_CFLAGS=$CFLAGS | |
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4044 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b540af17 | 4045 | if ${ac_cv_prog_cc_g+:} false; then : |
042acc47 WP |
4046 | $as_echo_n "(cached) " >&6 |
4047 | else | |
4048 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4049 | ac_c_werror_flag=yes | |
4050 | ac_cv_prog_cc_g=no | |
4051 | CFLAGS="-g" | |
4052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4053 | /* end confdefs.h. */ |
042acc47 | 4054 | |
212380e3 | 4055 | int |
4056 | main () | |
4057 | { | |
212380e3 | 4058 | |
4059 | ; | |
4060 | return 0; | |
4061 | } | |
4062 | _ACEOF | |
042acc47 WP |
4063 | if ac_fn_c_try_compile "$LINENO"; then : |
4064 | ac_cv_prog_cc_g=yes | |
212380e3 | 4065 | else |
042acc47 WP |
4066 | CFLAGS="" |
4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4068 | /* end confdefs.h. */ |
042acc47 | 4069 | |
212380e3 | 4070 | int |
4071 | main () | |
4072 | { | |
212380e3 | 4073 | |
4074 | ; | |
4075 | return 0; | |
4076 | } | |
4077 | _ACEOF | |
042acc47 WP |
4078 | if ac_fn_c_try_compile "$LINENO"; then : |
4079 | ||
4080 | else | |
4081 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4082 | CFLAGS="-g" | |
4083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4084 | /* end confdefs.h. */ |
042acc47 | 4085 | |
212380e3 | 4086 | int |
4087 | main () | |
4088 | { | |
212380e3 | 4089 | |
4090 | ; | |
4091 | return 0; | |
4092 | } | |
4093 | _ACEOF | |
042acc47 WP |
4094 | if ac_fn_c_try_compile "$LINENO"; then : |
4095 | ac_cv_prog_cc_g=yes | |
212380e3 | 4096 | fi |
631ef239 | 4097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4098 | fi |
631ef239 | 4099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4100 | fi |
631ef239 | 4101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
042acc47 WP |
4102 | ac_c_werror_flag=$ac_save_c_werror_flag |
4103 | fi | |
4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4105 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4106 | if test "$ac_test_CFLAGS" = set; then | |
4107 | CFLAGS=$ac_save_CFLAGS | |
4108 | elif test $ac_cv_prog_cc_g = yes; then | |
4109 | if test "$GCC" = yes; then | |
4110 | CFLAGS="-g -O2" | |
4111 | else | |
4112 | CFLAGS="-g" | |
4113 | fi | |
4114 | else | |
4115 | if test "$GCC" = yes; then | |
4116 | CFLAGS="-O2" | |
4117 | else | |
4118 | CFLAGS= | |
4119 | fi | |
4120 | fi | |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4122 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b540af17 | 4123 | if ${ac_cv_prog_cc_c89+:} false; then : |
042acc47 WP |
4124 | $as_echo_n "(cached) " >&6 |
4125 | else | |
4126 | ac_cv_prog_cc_c89=no | |
4127 | ac_save_CC=$CC | |
4128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4129 | /* end confdefs.h. */ |
042acc47 WP |
4130 | #include <stdarg.h> |
4131 | #include <stdio.h> | |
4132 | #include <sys/types.h> | |
4133 | #include <sys/stat.h> | |
4134 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4135 | struct buf { int x; }; | |
4136 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4137 | static char *e (p, i) | |
4138 | char **p; | |
4139 | int i; | |
4140 | { | |
4141 | return p[i]; | |
4142 | } | |
4143 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4144 | { | |
4145 | char *s; | |
4146 | va_list v; | |
4147 | va_start (v,p); | |
4148 | s = g (p, va_arg (v,int)); | |
4149 | va_end (v); | |
4150 | return s; | |
4151 | } | |
4152 | ||
4153 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4154 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4155 | These don't provoke an error unfortunately, instead are silently treated | |
4156 | as 'x'. The following induces an error, until -std is added to get | |
4157 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4158 | array size at least. It's necessary to write '\x00'==0 to get something | |
4159 | that's true only with -std. */ | |
4160 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4161 | ||
4162 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4163 | inside strings and character constants. */ | |
4164 | #define FOO(x) 'x' | |
4165 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4166 | ||
4167 | int test (int i, double x); | |
4168 | struct s1 {int (*f) (int a);}; | |
4169 | struct s2 {int (*f) (double a);}; | |
4170 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4171 | int argc; | |
4172 | char **argv; | |
212380e3 | 4173 | int |
4174 | main () | |
4175 | { | |
042acc47 | 4176 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 | 4177 | ; |
4178 | return 0; | |
4179 | } | |
4180 | _ACEOF | |
042acc47 WP |
4181 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4182 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4183 | do | |
4184 | CC="$ac_save_CC $ac_arg" | |
4185 | if ac_fn_c_try_compile "$LINENO"; then : | |
4186 | ac_cv_prog_cc_c89=$ac_arg | |
4187 | fi | |
4188 | rm -f core conftest.err conftest.$ac_objext | |
4189 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4190 | done | |
4191 | rm -f conftest.$ac_ext | |
4192 | CC=$ac_save_CC | |
4193 | ||
4194 | fi | |
4195 | # AC_CACHE_VAL | |
4196 | case "x$ac_cv_prog_cc_c89" in | |
4197 | x) | |
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4199 | $as_echo "none needed" >&6; } ;; | |
4200 | xno) | |
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4202 | $as_echo "unsupported" >&6; } ;; | |
4203 | *) | |
4204 | CC="$CC $ac_cv_prog_cc_c89" | |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4206 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 4207 | esac |
042acc47 | 4208 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 4209 | |
212380e3 | 4210 | fi |
631ef239 | 4211 | |
042acc47 WP |
4212 | ac_ext=c |
4213 | ac_cpp='$CPP $CPPFLAGS' | |
4214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4217 | ||
4218 | ac_ext=c | |
4219 | ac_cpp='$CPP $CPPFLAGS' | |
4220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4223 | ||
4224 | ||
4225 | CFLAGS="$OLD_CFLAGS" | |
4226 | ||
4227 | ac_aux_dir= | |
4228 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
b540af17 JH |
4229 | if test -f "$ac_dir/install-sh"; then |
4230 | ac_aux_dir=$ac_dir | |
4231 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4232 | break | |
4233 | elif test -f "$ac_dir/install.sh"; then | |
4234 | ac_aux_dir=$ac_dir | |
4235 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4236 | break | |
4237 | elif test -f "$ac_dir/shtool"; then | |
4238 | ac_aux_dir=$ac_dir | |
4239 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4240 | break | |
4241 | fi | |
212380e3 | 4242 | done |
042acc47 | 4243 | if test -z "$ac_aux_dir"; then |
b540af17 | 4244 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
042acc47 | 4245 | fi |
212380e3 | 4246 | |
042acc47 WP |
4247 | # These three variables are undocumented and unsupported, |
4248 | # and are intended to be withdrawn in a future Autoconf release. | |
4249 | # They can cause serious problems if a builder's source tree is in a directory | |
4250 | # whose full name contains unusual characters. | |
4251 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4252 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4253 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
212380e3 | 4254 | |
042acc47 WP |
4255 | |
4256 | ||
4257 | ||
4258 | subdirs="$subdirs libratbox" | |
4259 | ||
4260 | ||
4261 | ||
4262 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
4263 | ||
4264 | SGS=no | |
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5 | |
4266 | $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; } | |
4267 | case `$CC -version 2>&1` in | |
4268 | *TenDRA*) | |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5 | |
4270 | $as_echo "yes, TenDRA" >&6; } | |
4271 | IRC_CFLAGS="" | |
4272 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
4273 | SGS=yes | |
4274 | TenDRA=yes | |
4275 | ;; | |
4276 | *MIPSpro*) | |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5 | |
4278 | $as_echo "yes, MIPSpro" >&6; } | |
4279 | MIPSpro=yes | |
4280 | SGS=yes | |
4281 | ;; | |
4282 | *) | |
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4284 | $as_echo "no" >&6; } | |
4285 | TenDRA=no | |
4286 | MIPSpro=no | |
4287 | ;; | |
631ef239 | 4288 | esac |
042acc47 WP |
4289 | |
4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 | |
4291 | $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; } | |
4292 | case `$CC -V 2>&1` in | |
4293 | *Sun*WorkShop* | *Forte*Developer*) | |
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5 | |
4295 | $as_echo "Sun Workshop/Forte" >&6; } | |
4296 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" | |
4297 | SunWorkShop=yes | |
4298 | SGS=yes | |
4299 | ;; | |
4300 | *Tru64*) | |
4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5 | |
4302 | $as_echo "Tru64 cc" >&6; } | |
4303 | IRC_CFLAGS="-O2" | |
4304 | CPPFLAGS="-I/usr/local/include" | |
4305 | Tru=yes | |
4306 | ;; | |
4307 | *HP*ANSI*) | |
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5 | |
4309 | $as_echo "HPUX cc" >&6; } | |
4310 | HPUX=yes | |
4311 | IRC_CFLAGS="+e" | |
4312 | ;; | |
4313 | *) | |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4315 | $as_echo "no" >&6; } | |
4316 | ;; | |
631ef239 | 4317 | esac |
212380e3 | 4318 | |
212380e3 | 4319 | fi |
631ef239 | 4320 | |
042acc47 WP |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5 |
4322 | $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; } | |
4323 | OSNAME=`uname -s` | |
4324 | case "$OSNAME" in | |
4325 | HP-UX*) | |
631ef239 | 4326 | |
042acc47 WP |
4327 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5 | |
4329 | $as_echo "assuming old HPUX with its own cc" >&6; } | |
4330 | IRC_CFLAGS="$IRC_CFLAGS +e" | |
4331 | HPUX=yes | |
4332 | else | |
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5 | |
4334 | $as_echo "already using newer HPUX" >&6; } | |
4335 | fi | |
4336 | ;; | |
4337 | SunOS*) | |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5 | |
4339 | $as_echo "SunOS or Solaris" >&6; } | |
212380e3 | 4340 | |
042acc47 | 4341 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
212380e3 | 4342 | |
042acc47 WP |
4343 | SUN=yes |
4344 | ;; | |
4345 | AIX*) | |
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5 | |
4347 | $as_echo "AIX - Sorry you poor bastard..really we are" >&6; } | |
4348 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" | |
4349 | ;; | |
4350 | *) | |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4352 | $as_echo "no" >&6; } | |
4353 | ;; | |
631ef239 | 4354 | esac |
212380e3 | 4355 | |
042acc47 WP |
4356 | if test "$ac_cv_c_compiler_gnu" = yes; then |
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5 | |
4358 | $as_echo_n "checking if $CC is Apple GCC... " >&6; } | |
4359 | ||
4360 | case `$CC -v 2>&1 | tail -n 1` in | |
4361 | *Apple*) | |
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4363 | $as_echo "yes" >&6; } | |
4364 | AppleGCC=yes | |
4365 | ;; | |
4366 | *) | |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4368 | $as_echo "no" >&6; } | |
4369 | AppleGCC=no | |
4370 | ;; | |
4371 | esac | |
4372 | ||
4373 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" | |
212380e3 | 4374 | fi |
631ef239 | 4375 | |
042acc47 WP |
4376 | if test "$ac_cv_prog_cc_g" = yes; then |
4377 | if test "$Tru" = yes; then | |
4378 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
4379 | else | |
4380 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
4381 | fi | |
212380e3 | 4382 | fi |
212380e3 | 4383 | |
042acc47 WP |
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5 |
4385 | $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; } | |
4386 | if test "$SGS" = "yes"; then | |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4388 | $as_echo "yes" >&6; } | |
212380e3 | 4389 | else |
042acc47 WP |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4391 | $as_echo "no" >&6; } | |
4392 | fi | |
212380e3 | 4393 | |
042acc47 WP |
4394 | # Extract the first word of "mkdep", so it can be a program name with args. |
4395 | set dummy mkdep; ac_word=$2 | |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4397 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 4398 | if ${ac_cv_path_MKDEP+:} false; then : |
042acc47 WP |
4399 | $as_echo_n "(cached) " >&6 |
4400 | else | |
4401 | case $MKDEP in | |
4402 | [\\/]* | ?:[\\/]*) | |
4403 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
4404 | ;; | |
4405 | *) | |
4406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4407 | for as_dir in $PATH | |
4408 | do | |
4409 | IFS=$as_save_IFS | |
4410 | test -z "$as_dir" && as_dir=. | |
4411 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4412 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4413 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" | |
4414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4415 | break 2 | |
4416 | fi | |
4417 | done | |
4418 | done | |
4419 | IFS=$as_save_IFS | |
212380e3 | 4420 | |
042acc47 | 4421 | ;; |
631ef239 | 4422 | esac |
042acc47 WP |
4423 | fi |
4424 | MKDEP=$ac_cv_path_MKDEP | |
4425 | if test -n "$MKDEP"; then | |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5 | |
4427 | $as_echo "$MKDEP" >&6; } | |
212380e3 | 4428 | else |
042acc47 WP |
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4430 | $as_echo "no" >&6; } | |
212380e3 | 4431 | fi |
631ef239 | 4432 | |
042acc47 WP |
4433 | |
4434 | # Extract the first word of "makedepend", so it can be a program name with args. | |
4435 | set dummy makedepend; ac_word=$2 | |
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4437 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 4438 | if ${ac_cv_path_MAKEDEPEND+:} false; then : |
042acc47 WP |
4439 | $as_echo_n "(cached) " >&6 |
4440 | else | |
4441 | case $MAKEDEPEND in | |
4442 | [\\/]* | ?:[\\/]*) | |
4443 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
4444 | ;; | |
4445 | *) | |
4446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4447 | for as_dir in $PATH | |
4448 | do | |
4449 | IFS=$as_save_IFS | |
4450 | test -z "$as_dir" && as_dir=. | |
4451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4452 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4453 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" | |
4454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4455 | break 2 | |
4456 | fi | |
4457 | done | |
212380e3 | 4458 | done |
042acc47 WP |
4459 | IFS=$as_save_IFS |
4460 | ||
4461 | ;; | |
4462 | esac | |
4463 | fi | |
4464 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
4465 | if test -n "$MAKEDEPEND"; then | |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5 | |
4467 | $as_echo "$MAKEDEPEND" >&6; } | |
212380e3 | 4468 | else |
042acc47 WP |
4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4470 | $as_echo "no" >&6; } | |
4471 | fi | |
212380e3 | 4472 | |
212380e3 | 4473 | |
212380e3 | 4474 | |
042acc47 WP |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5 |
4476 | $as_echo_n "checking how to generate dependency info... " >&6; } | |
4477 | ||
4478 | STDOUT="> .depend" | |
4479 | ||
4480 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5 | |
4482 | $as_echo "gcc -MM" >&6; } | |
4483 | MKDEP="$CC -MM" | |
4484 | elif test ! -z "$MKDEP"; then | |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5 | |
4486 | $as_echo "mkdep" >&6; } | |
4487 | ||
4488 | if test -z "$Tru"; then | |
4489 | STDOUT="" | |
4490 | else | |
4491 | STDOUT=" 2> /dev/null" | |
4492 | fi | |
4493 | elif test "$SunWorkShop" = yes; then | |
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5 | |
4495 | $as_echo "$CC -xM" >&6; } | |
4496 | MKDEP="$CC -xM" | |
4497 | STDOUT="> .depend 2> /dev/null" | |
4498 | elif test ! -z "$MAKEDEPEND"; then | |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5 | |
4500 | $as_echo "makedepend" >&6; } | |
4501 | MKDEP="$MAKEDEPEND -f-" | |
212380e3 | 4502 | else |
042acc47 WP |
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5 |
4504 | $as_echo "nothing suitable.. forget it!" >&6; } | |
4505 | MKDEP=":" | |
212380e3 | 4506 | fi |
631ef239 | 4507 | |
042acc47 WP |
4508 | |
4509 | ||
4510 | ||
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
4512 | $as_echo_n "checking for /dev/null... " >&6; } | |
4513 | if test -c /dev/null ; then | |
4514 | ||
4515 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
4516 | ||
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4518 | $as_echo "yes" >&6; } | |
212380e3 | 4519 | else |
212380e3 | 4520 | |
042acc47 WP |
4521 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
4522 | ||
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
4524 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 4525 | fi |
631ef239 | 4526 | |
042acc47 WP |
4527 | if test ! -z "$CFLAGS"; then |
4528 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 4529 | fi |
631ef239 | 4530 | |
042acc47 WP |
4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
4532 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b540af17 | 4533 | if ${ac_cv_search_strerror+:} false; then : |
042acc47 WP |
4534 | $as_echo_n "(cached) " >&6 |
4535 | else | |
4536 | ac_func_search_save_LIBS=$LIBS | |
4537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4538 | /* end confdefs.h. */ |
042acc47 WP |
4539 | |
4540 | /* Override any GCC internal prototype to avoid an error. | |
4541 | Use char because int might match the return type of a GCC | |
4542 | builtin and then its argument prototype would still apply. */ | |
4543 | #ifdef __cplusplus | |
4544 | extern "C" | |
4545 | #endif | |
4546 | char strerror (); | |
212380e3 | 4547 | int |
4548 | main () | |
4549 | { | |
042acc47 | 4550 | return strerror (); |
212380e3 | 4551 | ; |
4552 | return 0; | |
4553 | } | |
4554 | _ACEOF | |
042acc47 WP |
4555 | for ac_lib in '' cposix; do |
4556 | if test -z "$ac_lib"; then | |
4557 | ac_res="none required" | |
4558 | else | |
4559 | ac_res=-l$ac_lib | |
4560 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4561 | fi | |
4562 | if ac_fn_c_try_link "$LINENO"; then : | |
4563 | ac_cv_search_strerror=$ac_res | |
4564 | fi | |
4565 | rm -f core conftest.err conftest.$ac_objext \ | |
4566 | conftest$ac_exeext | |
b540af17 | 4567 | if ${ac_cv_search_strerror+:} false; then : |
042acc47 WP |
4568 | break |
4569 | fi | |
4570 | done | |
b540af17 | 4571 | if ${ac_cv_search_strerror+:} false; then : |
042acc47 | 4572 | |
212380e3 | 4573 | else |
042acc47 WP |
4574 | ac_cv_search_strerror=no |
4575 | fi | |
4576 | rm conftest.$ac_ext | |
4577 | LIBS=$ac_func_search_save_LIBS | |
4578 | fi | |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
4580 | $as_echo "$ac_cv_search_strerror" >&6; } | |
4581 | ac_res=$ac_cv_search_strerror | |
4582 | if test "$ac_res" != no; then : | |
4583 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 4584 | |
212380e3 | 4585 | fi |
631ef239 | 4586 | |
042acc47 WP |
4587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
4588 | $as_echo_n "checking for inline... " >&6; } | |
b540af17 | 4589 | if ${ac_cv_c_inline+:} false; then : |
042acc47 WP |
4590 | $as_echo_n "(cached) " >&6 |
4591 | else | |
4592 | ac_cv_c_inline=no | |
4593 | for ac_kw in inline __inline__ __inline; do | |
4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4595 | /* end confdefs.h. */ | |
4596 | #ifndef __cplusplus | |
4597 | typedef int foo_t; | |
4598 | static $ac_kw foo_t static_foo () {return 0; } | |
4599 | $ac_kw foo_t foo () {return 0; } | |
4600 | #endif | |
4601 | ||
4602 | _ACEOF | |
4603 | if ac_fn_c_try_compile "$LINENO"; then : | |
4604 | ac_cv_c_inline=$ac_kw | |
4605 | fi | |
631ef239 | 4606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
042acc47 | 4607 | test "$ac_cv_c_inline" != no && break |
212380e3 | 4608 | done |
042acc47 WP |
4609 | |
4610 | fi | |
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
4612 | $as_echo "$ac_cv_c_inline" >&6; } | |
4613 | ||
4614 | case $ac_cv_c_inline in | |
4615 | inline | yes) ;; | |
4616 | *) | |
4617 | case $ac_cv_c_inline in | |
4618 | no) ac_val=;; | |
4619 | *) ac_val=$ac_cv_c_inline;; | |
4620 | esac | |
4621 | cat >>confdefs.h <<_ACEOF | |
4622 | #ifndef __cplusplus | |
4623 | #define inline $ac_val | |
4624 | #endif | |
4625 | _ACEOF | |
4626 | ;; | |
212380e3 | 4627 | esac |
042acc47 WP |
4628 | |
4629 | if test $ac_cv_c_compiler_gnu = yes; then | |
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4631 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
b540af17 | 4632 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
042acc47 | 4633 | $as_echo_n "(cached) " >&6 |
212380e3 | 4634 | else |
042acc47 WP |
4635 | ac_pattern="Autoconf.*'x'" |
4636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4637 | /* end confdefs.h. */ | |
4638 | #include <sgtty.h> | |
4639 | Autoconf TIOCGETP | |
212380e3 | 4640 | _ACEOF |
042acc47 WP |
4641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4642 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4643 | ac_cv_prog_gcc_traditional=yes | |
4644 | else | |
4645 | ac_cv_prog_gcc_traditional=no | |
4646 | fi | |
4647 | rm -f conftest* | |
4648 | ||
4649 | ||
4650 | if test $ac_cv_prog_gcc_traditional = no; then | |
4651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4652 | /* end confdefs.h. */ |
042acc47 WP |
4653 | #include <termio.h> |
4654 | Autoconf TCGETA | |
4655 | _ACEOF | |
4656 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4657 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4658 | ac_cv_prog_gcc_traditional=yes | |
4659 | fi | |
4660 | rm -f conftest* | |
212380e3 | 4661 | |
042acc47 WP |
4662 | fi |
4663 | fi | |
4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
4665 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4666 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4667 | CC="$CC -traditional" | |
4668 | fi | |
4669 | fi | |
212380e3 | 4670 | |
042acc47 WP |
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4672 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4673 | set x ${MAKE-make} | |
4674 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b540af17 | 4675 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
042acc47 WP |
4676 | $as_echo_n "(cached) " >&6 |
4677 | else | |
4678 | cat >conftest.make <<\_ACEOF | |
4679 | SHELL = /bin/sh | |
4680 | all: | |
4681 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 4682 | _ACEOF |
b540af17 | 4683 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
042acc47 WP |
4684 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4685 | *@@@%%%=?*=@@@%%%*) | |
4686 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4687 | *) | |
4688 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 4689 | esac |
042acc47 WP |
4690 | rm -f conftest.make |
4691 | fi | |
4692 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4694 | $as_echo "yes" >&6; } | |
4695 | SET_MAKE= | |
4696 | else | |
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4698 | $as_echo "no" >&6; } | |
4699 | SET_MAKE="MAKE=${MAKE-make}" | |
4700 | fi | |
4701 | ||
4702 | # Find a good install program. We prefer a C program (faster), | |
4703 | # so one script is as good as another. But avoid the broken or | |
4704 | # incompatible versions: | |
4705 | # SysV /etc/install, /usr/sbin/install | |
4706 | # SunOS /usr/etc/install | |
4707 | # IRIX /sbin/install | |
4708 | # AIX /bin/install | |
4709 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4710 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4711 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4712 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4713 | # OS/2's system install, which has a completely different semantic | |
4714 | # ./install, which can be erroneously created by make from ./install.sh. | |
4715 | # Reject install programs that cannot install multiple files. | |
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4717 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4718 | if test -z "$INSTALL"; then | |
b540af17 | 4719 | if ${ac_cv_path_install+:} false; then : |
042acc47 WP |
4720 | $as_echo_n "(cached) " >&6 |
4721 | else | |
4722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4723 | for as_dir in $PATH | |
4724 | do | |
4725 | IFS=$as_save_IFS | |
4726 | test -z "$as_dir" && as_dir=. | |
4727 | # Account for people who put trailing slashes in PATH elements. | |
4728 | case $as_dir/ in #(( | |
4729 | ./ | .// | /[cC]/* | \ | |
4730 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4731 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4732 | /usr/ucb/* ) ;; | |
4733 | *) | |
4734 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4735 | # Don't use installbsd from OSF since it installs stuff as root | |
4736 | # by default. | |
4737 | for ac_prog in ginstall scoinst install; do | |
4738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4739 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4740 | if test $ac_prog = install && | |
4741 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4742 | # AIX install. It has an incompatible calling convention. | |
4743 | : | |
4744 | elif test $ac_prog = install && | |
4745 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4746 | # program-specific install script used by HP pwplus--don't use. | |
4747 | : | |
4748 | else | |
4749 | rm -rf conftest.one conftest.two conftest.dir | |
4750 | echo one > conftest.one | |
4751 | echo two > conftest.two | |
4752 | mkdir conftest.dir | |
4753 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4754 | test -s conftest.one && test -s conftest.two && | |
4755 | test -s conftest.dir/conftest.one && | |
4756 | test -s conftest.dir/conftest.two | |
4757 | then | |
4758 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4759 | break 3 | |
4760 | fi | |
4761 | fi | |
4762 | fi | |
4763 | done | |
4764 | done | |
4765 | ;; | |
631ef239 | 4766 | esac |
042acc47 WP |
4767 | |
4768 | done | |
4769 | IFS=$as_save_IFS | |
4770 | ||
4771 | rm -rf conftest.one conftest.two conftest.dir | |
4772 | ||
4773 | fi | |
4774 | if test "${ac_cv_path_install+set}" = set; then | |
4775 | INSTALL=$ac_cv_path_install | |
4776 | else | |
4777 | # As a last resort, use the slow shell script. Don't cache a | |
4778 | # value for INSTALL within a source directory, because that will | |
4779 | # break other packages using the cache if that directory is | |
4780 | # removed, or if the value is a relative name. | |
4781 | INSTALL=$ac_install_sh | |
4782 | fi | |
4783 | fi | |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4785 | $as_echo "$INSTALL" >&6; } | |
4786 | ||
4787 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4788 | # It thinks the first close brace ends the variable substitution. | |
4789 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4790 | ||
4791 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4792 | ||
4793 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4794 | ||
4795 | # Extract the first word of "rm", so it can be a program name with args. | |
4796 | set dummy rm; ac_word=$2 | |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4798 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 4799 | if ${ac_cv_path_RM+:} false; then : |
042acc47 | 4800 | $as_echo_n "(cached) " >&6 |
212380e3 | 4801 | else |
042acc47 WP |
4802 | case $RM in |
4803 | [\\/]* | ?:[\\/]*) | |
4804 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4805 | ;; | |
4806 | *) | |
4807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4808 | for as_dir in $PATH | |
4809 | do | |
4810 | IFS=$as_save_IFS | |
4811 | test -z "$as_dir" && as_dir=. | |
4812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4814 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
4815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4816 | break 2 | |
4817 | fi | |
4818 | done | |
4819 | done | |
4820 | IFS=$as_save_IFS | |
212380e3 | 4821 | |
042acc47 WP |
4822 | ;; |
4823 | esac | |
212380e3 | 4824 | fi |
042acc47 WP |
4825 | RM=$ac_cv_path_RM |
4826 | if test -n "$RM"; then | |
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
4828 | $as_echo "$RM" >&6; } | |
4829 | else | |
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4831 | $as_echo "no" >&6; } | |
212380e3 | 4832 | fi |
631ef239 | 4833 | |
4834 | ||
042acc47 WP |
4835 | # Extract the first word of "cp", so it can be a program name with args. |
4836 | set dummy cp; ac_word=$2 | |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4838 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 4839 | if ${ac_cv_path_CP+:} false; then : |
042acc47 WP |
4840 | $as_echo_n "(cached) " >&6 |
4841 | else | |
4842 | case $CP in | |
4843 | [\\/]* | ?:[\\/]*) | |
4844 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
4845 | ;; | |
4846 | *) | |
4847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4848 | for as_dir in $PATH | |
4849 | do | |
4850 | IFS=$as_save_IFS | |
4851 | test -z "$as_dir" && as_dir=. | |
4852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4854 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
4855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4856 | break 2 | |
4857 | fi | |
4858 | done | |
4859 | done | |
4860 | IFS=$as_save_IFS | |
631ef239 | 4861 | |
042acc47 WP |
4862 | ;; |
4863 | esac | |
4864 | fi | |
4865 | CP=$ac_cv_path_CP | |
4866 | if test -n "$CP"; then | |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
4868 | $as_echo "$CP" >&6; } | |
4869 | else | |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4871 | $as_echo "no" >&6; } | |
4872 | fi | |
212380e3 | 4873 | |
4874 | ||
042acc47 WP |
4875 | # Extract the first word of "mv", so it can be a program name with args. |
4876 | set dummy mv; ac_word=$2 | |
4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4878 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 4879 | if ${ac_cv_path_MV+:} false; then : |
042acc47 | 4880 | $as_echo_n "(cached) " >&6 |
212380e3 | 4881 | else |
042acc47 WP |
4882 | case $MV in |
4883 | [\\/]* | ?:[\\/]*) | |
4884 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4885 | ;; | |
4886 | *) | |
4887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4888 | for as_dir in $PATH | |
4889 | do | |
4890 | IFS=$as_save_IFS | |
4891 | test -z "$as_dir" && as_dir=. | |
4892 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4894 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
4895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4896 | break 2 | |
4897 | fi | |
4898 | done | |
4899 | done | |
4900 | IFS=$as_save_IFS | |
4901 | ||
4902 | ;; | |
631ef239 | 4903 | esac |
042acc47 WP |
4904 | fi |
4905 | MV=$ac_cv_path_MV | |
4906 | if test -n "$MV"; then | |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
4908 | $as_echo "$MV" >&6; } | |
212380e3 | 4909 | else |
042acc47 WP |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4911 | $as_echo "no" >&6; } | |
212380e3 | 4912 | fi |
631ef239 | 4913 | |
212380e3 | 4914 | |
042acc47 WP |
4915 | # Extract the first word of "ln", so it can be a program name with args. |
4916 | set dummy ln; ac_word=$2 | |
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4918 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 4919 | if ${ac_cv_path_LN+:} false; then : |
042acc47 | 4920 | $as_echo_n "(cached) " >&6 |
212380e3 | 4921 | else |
042acc47 WP |
4922 | case $LN in |
4923 | [\\/]* | ?:[\\/]*) | |
4924 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
4925 | ;; | |
4926 | *) | |
4927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4928 | for as_dir in $PATH | |
4929 | do | |
4930 | IFS=$as_save_IFS | |
4931 | test -z "$as_dir" && as_dir=. | |
4932 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4934 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
4935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4936 | break 2 | |
4937 | fi | |
4938 | done | |
4939 | done | |
4940 | IFS=$as_save_IFS | |
212380e3 | 4941 | |
042acc47 | 4942 | ;; |
631ef239 | 4943 | esac |
042acc47 WP |
4944 | fi |
4945 | LN=$ac_cv_path_LN | |
4946 | if test -n "$LN"; then | |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
4948 | $as_echo "$LN" >&6; } | |
212380e3 | 4949 | else |
042acc47 WP |
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4951 | $as_echo "no" >&6; } | |
212380e3 | 4952 | fi |
631ef239 | 4953 | |
042acc47 WP |
4954 | |
4955 | # Extract the first word of "sed", so it can be a program name with args. | |
4956 | set dummy sed; ac_word=$2 | |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4958 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 4959 | if ${ac_cv_path_SED+:} false; then : |
042acc47 WP |
4960 | $as_echo_n "(cached) " >&6 |
4961 | else | |
4962 | case $SED in | |
4963 | [\\/]* | ?:[\\/]*) | |
4964 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
4965 | ;; | |
4966 | *) | |
4967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4968 | for as_dir in $PATH | |
4969 | do | |
4970 | IFS=$as_save_IFS | |
4971 | test -z "$as_dir" && as_dir=. | |
4972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4974 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
4975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4976 | break 2 | |
4977 | fi | |
4978 | done | |
212380e3 | 4979 | done |
042acc47 WP |
4980 | IFS=$as_save_IFS |
4981 | ||
4982 | ;; | |
4983 | esac | |
4984 | fi | |
4985 | SED=$ac_cv_path_SED | |
4986 | if test -n "$SED"; then | |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
4988 | $as_echo "$SED" >&6; } | |
212380e3 | 4989 | else |
042acc47 WP |
4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4991 | $as_echo "no" >&6; } | |
4992 | fi | |
212380e3 | 4993 | |
212380e3 | 4994 | |
042acc47 WP |
4995 | # Extract the first word of "ar", so it can be a program name with args. |
4996 | set dummy ar; ac_word=$2 | |
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4998 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 4999 | if ${ac_cv_path_AR+:} false; then : |
042acc47 WP |
5000 | $as_echo_n "(cached) " >&6 |
5001 | else | |
5002 | case $AR in | |
5003 | [\\/]* | ?:[\\/]*) | |
5004 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
5005 | ;; | |
5006 | *) | |
5007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5008 | for as_dir in $PATH | |
5009 | do | |
5010 | IFS=$as_save_IFS | |
5011 | test -z "$as_dir" && as_dir=. | |
5012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5014 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
5015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5016 | break 2 | |
5017 | fi | |
5018 | done | |
5019 | done | |
5020 | IFS=$as_save_IFS | |
212380e3 | 5021 | |
042acc47 | 5022 | ;; |
631ef239 | 5023 | esac |
042acc47 WP |
5024 | fi |
5025 | AR=$ac_cv_path_AR | |
5026 | if test -n "$AR"; then | |
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5028 | $as_echo "$AR" >&6; } | |
212380e3 | 5029 | else |
042acc47 WP |
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5031 | $as_echo "no" >&6; } | |
212380e3 | 5032 | fi |
631ef239 | 5033 | |
042acc47 WP |
5034 | |
5035 | # Extract the first word of "ld", so it can be a program name with args. | |
5036 | set dummy ld; ac_word=$2 | |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5038 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 5039 | if ${ac_cv_path_LD+:} false; then : |
042acc47 | 5040 | $as_echo_n "(cached) " >&6 |
212380e3 | 5041 | else |
042acc47 WP |
5042 | case $LD in |
5043 | [\\/]* | ?:[\\/]*) | |
5044 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
5045 | ;; | |
5046 | *) | |
5047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5048 | for as_dir in $PATH | |
5049 | do | |
5050 | IFS=$as_save_IFS | |
5051 | test -z "$as_dir" && as_dir=. | |
5052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5054 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" | |
5055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5056 | break 2 | |
5057 | fi | |
5058 | done | |
5059 | done | |
5060 | IFS=$as_save_IFS | |
212380e3 | 5061 | |
042acc47 WP |
5062 | ;; |
5063 | esac | |
212380e3 | 5064 | fi |
042acc47 WP |
5065 | LD=$ac_cv_path_LD |
5066 | if test -n "$LD"; then | |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5068 | $as_echo "$LD" >&6; } | |
5069 | else | |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5071 | $as_echo "no" >&6; } | |
212380e3 | 5072 | fi |
631ef239 | 5073 | |
212380e3 | 5074 | |
042acc47 WP |
5075 | # Extract the first word of "ranlib", so it can be a program name with args. |
5076 | set dummy ranlib; ac_word=$2 | |
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5078 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 5079 | if ${ac_cv_path_RANLIB+:} false; then : |
042acc47 | 5080 | $as_echo_n "(cached) " >&6 |
212380e3 | 5081 | else |
042acc47 WP |
5082 | case $RANLIB in |
5083 | [\\/]* | ?:[\\/]*) | |
5084 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
5085 | ;; | |
5086 | *) | |
5087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5088 | for as_dir in $PATH | |
5089 | do | |
5090 | IFS=$as_save_IFS | |
5091 | test -z "$as_dir" && as_dir=. | |
5092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5094 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" | |
5095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5096 | break 2 | |
5097 | fi | |
5098 | done | |
5099 | done | |
5100 | IFS=$as_save_IFS | |
212380e3 | 5101 | |
042acc47 WP |
5102 | ;; |
5103 | esac | |
5104 | fi | |
5105 | RANLIB=$ac_cv_path_RANLIB | |
5106 | if test -n "$RANLIB"; then | |
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5108 | $as_echo "$RANLIB" >&6; } | |
5109 | else | |
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5111 | $as_echo "no" >&6; } | |
212380e3 | 5112 | fi |
631ef239 | 5113 | |
042acc47 WP |
5114 | |
5115 | # Extract the first word of "touch", so it can be a program name with args. | |
5116 | set dummy touch; ac_word=$2 | |
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5118 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 5119 | if ${ac_cv_path_TOUCH+:} false; then : |
042acc47 WP |
5120 | $as_echo_n "(cached) " >&6 |
5121 | else | |
5122 | case $TOUCH in | |
5123 | [\\/]* | ?:[\\/]*) | |
5124 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5125 | ;; | |
5126 | *) | |
5127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5128 | for as_dir in $PATH | |
5129 | do | |
5130 | IFS=$as_save_IFS | |
5131 | test -z "$as_dir" && as_dir=. | |
5132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5134 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
5135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5136 | break 2 | |
5137 | fi | |
212380e3 | 5138 | done |
042acc47 WP |
5139 | done |
5140 | IFS=$as_save_IFS | |
5141 | ||
5142 | ;; | |
212380e3 | 5143 | esac |
042acc47 WP |
5144 | fi |
5145 | TOUCH=$ac_cv_path_TOUCH | |
5146 | if test -n "$TOUCH"; then | |
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
5148 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 5149 | else |
042acc47 WP |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5151 | $as_echo "no" >&6; } | |
5152 | fi | |
212380e3 | 5153 | |
212380e3 | 5154 | |
042acc47 WP |
5155 | |
5156 | for ac_prog in 'bison -y' byacc | |
5157 | do | |
5158 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5159 | set dummy $ac_prog; ac_word=$2 | |
5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5161 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 5162 | if ${ac_cv_prog_YACC+:} false; then : |
042acc47 | 5163 | $as_echo_n "(cached) " >&6 |
212380e3 | 5164 | else |
042acc47 WP |
5165 | if test -n "$YACC"; then |
5166 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5167 | else | |
5168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5169 | for as_dir in $PATH | |
5170 | do | |
5171 | IFS=$as_save_IFS | |
5172 | test -z "$as_dir" && as_dir=. | |
5173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5175 | ac_cv_prog_YACC="$ac_prog" | |
5176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5177 | break 2 | |
5178 | fi | |
5179 | done | |
5180 | done | |
5181 | IFS=$as_save_IFS | |
212380e3 | 5182 | |
212380e3 | 5183 | fi |
5184 | fi | |
042acc47 WP |
5185 | YACC=$ac_cv_prog_YACC |
5186 | if test -n "$YACC"; then | |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5188 | $as_echo "$YACC" >&6; } | |
5189 | else | |
5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5191 | $as_echo "no" >&6; } | |
212380e3 | 5192 | fi |
631ef239 | 5193 | |
5194 | ||
042acc47 WP |
5195 | test -n "$YACC" && break |
5196 | done | |
5197 | test -n "$YACC" || YACC="yacc" | |
212380e3 | 5198 | |
5199 | ||
042acc47 | 5200 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b540af17 | 5201 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
042acc47 | 5202 | fi |
212380e3 | 5203 | |
042acc47 WP |
5204 | for ac_prog in flex lex |
5205 | do | |
5206 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5207 | set dummy $ac_prog; ac_word=$2 | |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5209 | $as_echo_n "checking for $ac_word... " >&6; } | |
b540af17 | 5210 | if ${ac_cv_prog_LEX+:} false; then : |
042acc47 | 5211 | $as_echo_n "(cached) " >&6 |
212380e3 | 5212 | else |
042acc47 WP |
5213 | if test -n "$LEX"; then |
5214 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 5215 | else |
042acc47 WP |
5216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5217 | for as_dir in $PATH | |
5218 | do | |
5219 | IFS=$as_save_IFS | |
5220 | test -z "$as_dir" && as_dir=. | |
5221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5223 | ac_cv_prog_LEX="$ac_prog" | |
5224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5225 | break 2 | |
5226 | fi | |
631ef239 | 5227 | done |
042acc47 WP |
5228 | done |
5229 | IFS=$as_save_IFS | |
631ef239 | 5230 | |
042acc47 WP |
5231 | fi |
5232 | fi | |
5233 | LEX=$ac_cv_prog_LEX | |
5234 | if test -n "$LEX"; then | |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
5236 | $as_echo "$LEX" >&6; } | |
631ef239 | 5237 | else |
042acc47 WP |
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5239 | $as_echo "no" >&6; } | |
631ef239 | 5240 | fi |
5241 | ||
5242 | ||
042acc47 WP |
5243 | test -n "$LEX" && break |
5244 | done | |
5245 | test -n "$LEX" || LEX=":" | |
212380e3 | 5246 | |
042acc47 WP |
5247 | if test "x$LEX" != "x:"; then |
5248 | cat >conftest.l <<_ACEOF | |
5249 | %% | |
5250 | a { ECHO; } | |
5251 | b { REJECT; } | |
5252 | c { yymore (); } | |
5253 | d { yyless (1); } | |
5254 | e { yyless (input () != 0); } | |
5255 | f { unput (yytext[0]); } | |
5256 | . { BEGIN INITIAL; } | |
5257 | %% | |
5258 | #ifdef YYTEXT_POINTER | |
5259 | extern char *yytext; | |
212380e3 | 5260 | #endif |
212380e3 | 5261 | int |
042acc47 | 5262 | main (void) |
212380e3 | 5263 | { |
042acc47 | 5264 | return ! yylex () + ! yywrap (); |
212380e3 | 5265 | } |
5266 | _ACEOF | |
042acc47 | 5267 | { { ac_try="$LEX conftest.l" |
631ef239 | 5268 | case "(($ac_try" in |
5269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5270 | *) ac_try_echo=$ac_try;; | |
5271 | esac | |
042acc47 WP |
5272 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5273 | $as_echo "$ac_try_echo"; } >&5 | |
5274 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 5275 | ac_status=$? |
042acc47 WP |
5276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5277 | test $ac_status = 0; } | |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
5279 | $as_echo_n "checking lex output file root... " >&6; } | |
b540af17 | 5280 | if ${ac_cv_prog_lex_root+:} false; then : |
042acc47 | 5281 | $as_echo_n "(cached) " >&6 |
212380e3 | 5282 | else |
212380e3 | 5283 | |
042acc47 WP |
5284 | if test -f lex.yy.c; then |
5285 | ac_cv_prog_lex_root=lex.yy | |
5286 | elif test -f lexyy.c; then | |
5287 | ac_cv_prog_lex_root=lexyy | |
5288 | else | |
b540af17 | 5289 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
042acc47 WP |
5290 | fi |
5291 | fi | |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
5293 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
5294 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
5295 | ||
5296 | if test -z "${LEXLIB+set}"; then | |
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
5298 | $as_echo_n "checking lex library... " >&6; } | |
b540af17 | 5299 | if ${ac_cv_lib_lex+:} false; then : |
042acc47 WP |
5300 | $as_echo_n "(cached) " >&6 |
5301 | else | |
631ef239 | 5302 | |
042acc47 WP |
5303 | ac_save_LIBS=$LIBS |
5304 | ac_cv_lib_lex='none needed' | |
5305 | for ac_lib in '' -lfl -ll; do | |
5306 | LIBS="$ac_lib $ac_save_LIBS" | |
5307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5308 | /* end confdefs.h. */ | |
5309 | `cat $LEX_OUTPUT_ROOT.c` | |
5310 | _ACEOF | |
5311 | if ac_fn_c_try_link "$LINENO"; then : | |
5312 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 5313 | fi |
042acc47 WP |
5314 | rm -f core conftest.err conftest.$ac_objext \ |
5315 | conftest$ac_exeext conftest.$ac_ext | |
5316 | test "$ac_cv_lib_lex" != 'none needed' && break | |
5317 | done | |
5318 | LIBS=$ac_save_LIBS | |
631ef239 | 5319 | |
631ef239 | 5320 | fi |
042acc47 WP |
5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
5322 | $as_echo "$ac_cv_lib_lex" >&6; } | |
5323 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
5324 | fi | |
5325 | ||
5326 | ||
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
5328 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b540af17 | 5329 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
042acc47 | 5330 | $as_echo_n "(cached) " >&6 |
631ef239 | 5331 | else |
042acc47 WP |
5332 | # POSIX says lex can declare yytext either as a pointer or an array; the |
5333 | # default is implementation-dependent. Figure out which it is, since | |
5334 | # not all implementations provide the %pointer and %array declarations. | |
5335 | ac_cv_prog_lex_yytext_pointer=no | |
5336 | ac_save_LIBS=$LIBS | |
5337 | LIBS="$LEXLIB $ac_save_LIBS" | |
5338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5339 | /* end confdefs.h. */ | |
b540af17 JH |
5340 | |
5341 | #define YYTEXT_POINTER 1 | |
042acc47 WP |
5342 | `cat $LEX_OUTPUT_ROOT.c` |
5343 | _ACEOF | |
5344 | if ac_fn_c_try_link "$LINENO"; then : | |
5345 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 5346 | fi |
042acc47 WP |
5347 | rm -f core conftest.err conftest.$ac_objext \ |
5348 | conftest$ac_exeext conftest.$ac_ext | |
5349 | LIBS=$ac_save_LIBS | |
5350 | ||
212380e3 | 5351 | fi |
042acc47 WP |
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5353 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
5354 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 5355 | |
042acc47 WP |
5356 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
5357 | ||
5358 | fi | |
5359 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
5360 | ||
5361 | fi | |
5362 | ||
5363 | if test "$LEX" = ":"; then | |
b540af17 | 5364 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 | 5365 | fi |
5366 | ||
bf9bfd26 JH |
5367 | # Check whether --enable-fhs-paths was given. |
5368 | if test "${enable_fhs_paths+set}" = set; then : | |
5369 | enableval=$enable_fhs_paths; | |
5370 | else | |
5371 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
5372 | test "$localstatedir" = '${prefix}/var' && \ | |
5373 | test "$libdir" = '${exec_prefix}/lib'; then : | |
5374 | enable_fhs_paths=no | |
5375 | else | |
5376 | enable_fhs_paths=yes | |
5377 | fi | |
5378 | ||
5379 | fi | |
5380 | ||
5381 | if test "x$enable_fhs_paths" = "xyes"; then : | |
5382 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
5383 | rundir=${rundir-'${prefix}/run'} | |
5384 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
5385 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
5386 | else | |
5387 | libexecdir='${bindir}' | |
5388 | pkglibexecdir='${libexecdir}' | |
5389 | rundir='${sysconfdir}' | |
5390 | pkgrundir='${rundir}' | |
042acc47 | 5391 | localstatedir='${prefix}' |
bf9bfd26 | 5392 | pkglocalstatedir='${sysconfdir}' |
631ef239 | 5393 | fi |
bf9bfd26 JH |
5394 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' |
5395 | ||
5396 | ||
5397 | ||
5398 | ||
5399 | ||
5400 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
5401 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5402 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
5403 | ac_define_dir=`eval echo $last_ac_define_dir` | |
5404 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
5405 | last_ac_define_dir="$ac_define_dir" | |
5406 | ac_define_dir=`eval echo $last_ac_define_dir` | |
5407 | done | |
5408 | PKGLOCALSTATEDIR="$ac_define_dir" | |
5409 | ||
5410 | ||
5411 | cat >>confdefs.h <<_ACEOF | |
5412 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
5413 | _ACEOF | |
5414 | ||
5415 | ||
5416 | ||
5417 | ||
5418 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
5419 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5420 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
5421 | ac_define_dir=`eval echo $last_ac_define_dir` | |
5422 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
5423 | last_ac_define_dir="$ac_define_dir" | |
5424 | ac_define_dir=`eval echo $last_ac_define_dir` | |
5425 | done | |
5426 | PKGLIBEXECDIR="$ac_define_dir" | |
5427 | ||
5428 | ||
5429 | cat >>confdefs.h <<_ACEOF | |
5430 | #define PKGLIBEXECDIR "$ac_define_dir" | |
5431 | _ACEOF | |
5432 | ||
5433 | ||
212380e3 | 5434 | |
042acc47 WP |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5436 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b540af17 | 5437 | if ${ac_cv_header_stdc+:} false; then : |
042acc47 | 5438 | $as_echo_n "(cached) " >&6 |
212380e3 | 5439 | else |
042acc47 | 5440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5441 | /* end confdefs.h. */ |
042acc47 WP |
5442 | #include <stdlib.h> |
5443 | #include <stdarg.h> | |
5444 | #include <string.h> | |
5445 | #include <float.h> | |
212380e3 | 5446 | |
5447 | int | |
5448 | main () | |
5449 | { | |
042acc47 | 5450 | |
212380e3 | 5451 | ; |
5452 | return 0; | |
5453 | } | |
5454 | _ACEOF | |
042acc47 WP |
5455 | if ac_fn_c_try_compile "$LINENO"; then : |
5456 | ac_cv_header_stdc=yes | |
212380e3 | 5457 | else |
042acc47 | 5458 | ac_cv_header_stdc=no |
212380e3 | 5459 | fi |
631ef239 | 5460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5461 | |
042acc47 WP |
5462 | if test $ac_cv_header_stdc = yes; then |
5463 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5465 | /* end confdefs.h. */ | |
5466 | #include <string.h> | |
5467 | ||
212380e3 | 5468 | _ACEOF |
042acc47 WP |
5469 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5470 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5471 | ||
5472 | else | |
5473 | ac_cv_header_stdc=no | |
5474 | fi | |
5475 | rm -f conftest* | |
212380e3 | 5476 | |
5477 | fi | |
5478 | ||
042acc47 WP |
5479 | if test $ac_cv_header_stdc = yes; then |
5480 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5482 | /* end confdefs.h. */ | |
5483 | #include <stdlib.h> | |
5484 | ||
5485 | _ACEOF | |
5486 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5487 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 5488 | |
212380e3 | 5489 | else |
042acc47 | 5490 | ac_cv_header_stdc=no |
631ef239 | 5491 | fi |
042acc47 | 5492 | rm -f conftest* |
631ef239 | 5493 | |
042acc47 | 5494 | fi |
212380e3 | 5495 | |
042acc47 WP |
5496 | if test $ac_cv_header_stdc = yes; then |
5497 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5498 | if test "$cross_compiling" = yes; then : | |
5499 | : | |
212380e3 | 5500 | else |
042acc47 | 5501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5502 | /* end confdefs.h. */ |
042acc47 WP |
5503 | #include <ctype.h> |
5504 | #include <stdlib.h> | |
5505 | #if ((' ' & 0x0FF) == 0x020) | |
5506 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5507 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5508 | #else | |
5509 | # define ISLOWER(c) \ | |
5510 | (('a' <= (c) && (c) <= 'i') \ | |
5511 | || ('j' <= (c) && (c) <= 'r') \ | |
5512 | || ('s' <= (c) && (c) <= 'z')) | |
5513 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 5514 | #endif |
042acc47 WP |
5515 | |
5516 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 | 5517 | int |
5518 | main () | |
5519 | { | |
042acc47 WP |
5520 | int i; |
5521 | for (i = 0; i < 256; i++) | |
5522 | if (XOR (islower (i), ISLOWER (i)) | |
5523 | || toupper (i) != TOUPPER (i)) | |
5524 | return 2; | |
212380e3 | 5525 | return 0; |
5526 | } | |
5527 | _ACEOF | |
042acc47 | 5528 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 5529 | |
042acc47 WP |
5530 | else |
5531 | ac_cv_header_stdc=no | |
631ef239 | 5532 | fi |
042acc47 WP |
5533 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5534 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5535 | fi |
042acc47 | 5536 | |
212380e3 | 5537 | fi |
212380e3 | 5538 | fi |
042acc47 WP |
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5540 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5541 | if test $ac_cv_header_stdc = yes; then | |
5542 | ||
5543 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 | 5544 | |
5545 | fi | |
5546 | ||
5547 | ||
042acc47 WP |
5548 | for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h |
5549 | do : | |
5550 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5551 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b540af17 | 5552 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
042acc47 WP |
5553 | cat >>confdefs.h <<_ACEOF |
5554 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5555 | _ACEOF | |
212380e3 | 5556 | |
212380e3 | 5557 | fi |
5558 | ||
042acc47 | 5559 | done |
212380e3 | 5560 | |
5561 | ||
212380e3 | 5562 | |
042acc47 WP |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
5564 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b540af17 | 5565 | if ${ac_cv_c_const+:} false; then : |
042acc47 WP |
5566 | $as_echo_n "(cached) " >&6 |
5567 | else | |
5568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5569 | /* end confdefs.h. */ | |
212380e3 | 5570 | |
042acc47 WP |
5571 | int |
5572 | main () | |
5573 | { | |
5574 | /* FIXME: Include the comments suggested by Paul. */ | |
5575 | #ifndef __cplusplus | |
5576 | /* Ultrix mips cc rejects this. */ | |
5577 | typedef int charset[2]; | |
5578 | const charset cs; | |
5579 | /* SunOS 4.1.1 cc rejects this. */ | |
5580 | char const *const *pcpcc; | |
5581 | char **ppc; | |
5582 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5583 | struct point {int x, y;}; | |
5584 | static struct point const zero = {0,0}; | |
5585 | /* AIX XL C 1.02.0.0 rejects this. | |
5586 | It does not let you subtract one const X* pointer from another in | |
5587 | an arm of an if-expression whose if-part is not a constant | |
5588 | expression */ | |
5589 | const char *g = "string"; | |
5590 | pcpcc = &g + (g ? g-g : 0); | |
5591 | /* HPUX 7.0 cc rejects these. */ | |
5592 | ++pcpcc; | |
5593 | ppc = (char**) pcpcc; | |
5594 | pcpcc = (char const *const *) ppc; | |
5595 | { /* SCO 3.2v4 cc rejects this. */ | |
5596 | char *t; | |
5597 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
212380e3 | 5598 | |
042acc47 WP |
5599 | *t++ = 0; |
5600 | if (s) return 0; | |
5601 | } | |
5602 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5603 | int x[] = {25, 17}; | |
5604 | const int *foo = &x[0]; | |
5605 | ++foo; | |
5606 | } | |
5607 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5608 | typedef const int *iptr; | |
5609 | iptr p = 0; | |
5610 | ++p; | |
5611 | } | |
5612 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5613 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5614 | struct s { int j; const int *ap[3]; }; | |
5615 | struct s *b; b->j = 5; | |
5616 | } | |
5617 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5618 | const int foo = 10; | |
5619 | if (!foo) return 0; | |
5620 | } | |
5621 | return !cs[0] && !zero.x; | |
5622 | #endif | |
212380e3 | 5623 | |
042acc47 WP |
5624 | ; |
5625 | return 0; | |
5626 | } | |
212380e3 | 5627 | _ACEOF |
042acc47 WP |
5628 | if ac_fn_c_try_compile "$LINENO"; then : |
5629 | ac_cv_c_const=yes | |
212380e3 | 5630 | else |
042acc47 | 5631 | ac_cv_c_const=no |
212380e3 | 5632 | fi |
631ef239 | 5633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5634 | fi |
042acc47 WP |
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5636 | $as_echo "$ac_cv_c_const" >&6; } | |
5637 | if test $ac_cv_c_const = no; then | |
212380e3 | 5638 | |
042acc47 | 5639 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 | 5640 | |
5641 | fi | |
5642 | ||
042acc47 WP |
5643 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
5645 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b540af17 | 5646 | if ${ac_cv_c_bigendian+:} false; then : |
042acc47 | 5647 | $as_echo_n "(cached) " >&6 |
212380e3 | 5648 | else |
042acc47 WP |
5649 | ac_cv_c_bigendian=unknown |
5650 | # See if we're dealing with a universal compiler. | |
5651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5652 | /* end confdefs.h. */ | |
5653 | #ifndef __APPLE_CC__ | |
5654 | not a universal capable compiler | |
5655 | #endif | |
5656 | typedef int dummy; | |
5657 | ||
5658 | _ACEOF | |
5659 | if ac_fn_c_try_compile "$LINENO"; then : | |
5660 | ||
5661 | # Check for potential -arch flags. It is not universal unless | |
5662 | # there are at least two -arch flags with different values. | |
5663 | ac_arch= | |
5664 | ac_prev= | |
5665 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5666 | if test -n "$ac_prev"; then | |
5667 | case $ac_word in | |
5668 | i?86 | x86_64 | ppc | ppc64) | |
5669 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5670 | ac_arch=$ac_word | |
5671 | else | |
5672 | ac_cv_c_bigendian=universal | |
5673 | break | |
5674 | fi | |
5675 | ;; | |
5676 | esac | |
5677 | ac_prev= | |
5678 | elif test "x$ac_word" = "x-arch"; then | |
5679 | ac_prev=arch | |
5680 | fi | |
5681 | done | |
5682 | fi | |
5683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5684 | if test $ac_cv_c_bigendian = unknown; then | |
5685 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 5687 | /* end confdefs.h. */ |
5688 | #include <sys/types.h> | |
042acc47 | 5689 | #include <sys/param.h> |
212380e3 | 5690 | |
5691 | int | |
5692 | main () | |
5693 | { | |
042acc47 WP |
5694 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5695 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5696 | && LITTLE_ENDIAN) | |
5697 | bogus endian macros | |
5698 | #endif | |
212380e3 | 5699 | |
5700 | ; | |
5701 | return 0; | |
5702 | } | |
5703 | _ACEOF | |
042acc47 | 5704 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5705 | # It does; now see whether it defined to BIG_ENDIAN or not. |
042acc47 | 5706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5707 | /* end confdefs.h. */ |
5708 | #include <sys/types.h> | |
042acc47 | 5709 | #include <sys/param.h> |
212380e3 | 5710 | |
5711 | int | |
5712 | main () | |
5713 | { | |
5714 | #if BYTE_ORDER != BIG_ENDIAN | |
042acc47 WP |
5715 | not big endian |
5716 | #endif | |
212380e3 | 5717 | |
5718 | ; | |
5719 | return 0; | |
5720 | } | |
5721 | _ACEOF | |
042acc47 | 5722 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5723 | ac_cv_c_bigendian=yes |
5724 | else | |
042acc47 | 5725 | ac_cv_c_bigendian=no |
212380e3 | 5726 | fi |
631ef239 | 5727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
042acc47 WP |
5728 | fi |
5729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5730 | fi | |
5731 | if test $ac_cv_c_bigendian = unknown; then | |
5732 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5734 | /* end confdefs.h. */ | |
5735 | #include <limits.h> | |
212380e3 | 5736 | |
042acc47 WP |
5737 | int |
5738 | main () | |
5739 | { | |
5740 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5741 | bogus endian macros | |
5742 | #endif | |
5743 | ||
5744 | ; | |
5745 | return 0; | |
5746 | } | |
212380e3 | 5747 | _ACEOF |
042acc47 WP |
5748 | if ac_fn_c_try_compile "$LINENO"; then : |
5749 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 5751 | /* end confdefs.h. */ |
042acc47 WP |
5752 | #include <limits.h> |
5753 | ||
212380e3 | 5754 | int |
5755 | main () | |
5756 | { | |
042acc47 WP |
5757 | #ifndef _BIG_ENDIAN |
5758 | not big endian | |
5759 | #endif | |
5760 | ||
212380e3 | 5761 | ; |
5762 | return 0; | |
5763 | } | |
5764 | _ACEOF | |
042acc47 | 5765 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5766 | ac_cv_c_bigendian=yes |
042acc47 WP |
5767 | else |
5768 | ac_cv_c_bigendian=no | |
212380e3 | 5769 | fi |
042acc47 | 5770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5771 | fi |
042acc47 WP |
5772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5773 | fi | |
5774 | if test $ac_cv_c_bigendian = unknown; then | |
5775 | # Compile a test program. | |
5776 | if test "$cross_compiling" = yes; then : | |
5777 | # Try to guess by grepping values from an object file. | |
5778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5779 | /* end confdefs.h. */ | |
5780 | short int ascii_mm[] = | |
5781 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5782 | short int ascii_ii[] = | |
5783 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5784 | int use_ascii (int i) { | |
5785 | return ascii_mm[i] + ascii_ii[i]; | |
5786 | } | |
5787 | short int ebcdic_ii[] = | |
5788 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5789 | short int ebcdic_mm[] = | |
5790 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5791 | int use_ebcdic (int i) { | |
5792 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5793 | } | |
5794 | extern int foo; | |
631ef239 | 5795 | |
042acc47 WP |
5796 | int |
5797 | main () | |
5798 | { | |
5799 | return use_ascii (foo) == use_ebcdic (foo); | |
5800 | ; | |
5801 | return 0; | |
5802 | } | |
5803 | _ACEOF | |
5804 | if ac_fn_c_try_compile "$LINENO"; then : | |
5805 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5806 | ac_cv_c_bigendian=yes | |
5807 | fi | |
5808 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5809 | if test "$ac_cv_c_bigendian" = unknown; then | |
5810 | ac_cv_c_bigendian=no | |
5811 | else | |
5812 | # finding both strings is unlikely to happen, but who knows? | |
5813 | ac_cv_c_bigendian=unknown | |
5814 | fi | |
5815 | fi | |
212380e3 | 5816 | fi |
631ef239 | 5817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5818 | else |
042acc47 | 5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5820 | /* end confdefs.h. */ |
631ef239 | 5821 | $ac_includes_default |
212380e3 | 5822 | int |
5823 | main () | |
5824 | { | |
631ef239 | 5825 | |
042acc47 WP |
5826 | /* Are we little or big endian? From Harbison&Steele. */ |
5827 | union | |
5828 | { | |
5829 | long int l; | |
5830 | char c[sizeof (long int)]; | |
5831 | } u; | |
5832 | u.l = 1; | |
5833 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 | 5834 | |
5835 | ; | |
5836 | return 0; | |
212380e3 | 5837 | } |
5838 | _ACEOF | |
042acc47 | 5839 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 5840 | ac_cv_c_bigendian=no |
5841 | else | |
042acc47 | 5842 | ac_cv_c_bigendian=yes |
212380e3 | 5843 | fi |
042acc47 WP |
5844 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5845 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5846 | fi |
631ef239 | 5847 | |
042acc47 | 5848 | fi |
212380e3 | 5849 | fi |
042acc47 WP |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5851 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5852 | case $ac_cv_c_bigendian in #( | |
5853 | yes) | |
5854 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5855 | ;; #( | |
5856 | no) | |
5857 | ;; #( | |
5858 | universal) | |
5859 | ||
5860 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5861 | ||
5862 | ;; #( | |
5863 | *) | |
b540af17 | 5864 | as_fn_error $? "unknown endianness |
042acc47 WP |
5865 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
5866 | esac | |
631ef239 | 5867 | |
212380e3 | 5868 | fi |
042acc47 | 5869 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b540af17 | 5870 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 5871 | |
042acc47 | 5872 | else |
212380e3 | 5873 | |
042acc47 WP |
5874 | cat >>confdefs.h <<_ACEOF |
5875 | #define pid_t int | |
5876 | _ACEOF | |
212380e3 | 5877 | |
212380e3 | 5878 | fi |
042acc47 WP |
5879 | |
5880 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b540af17 | 5881 | if test "x$ac_cv_type_size_t" = xyes; then : |
042acc47 | 5882 | |
212380e3 | 5883 | else |
042acc47 WP |
5884 | |
5885 | cat >>confdefs.h <<_ACEOF | |
5886 | #define size_t unsigned int | |
212380e3 | 5887 | _ACEOF |
042acc47 WP |
5888 | |
5889 | fi | |
5890 | ||
5891 | # The cast to long int works around a bug in the HP C Compiler | |
5892 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5893 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5894 | # This bug is HP SR number 8606223364. | |
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
5896 | $as_echo_n "checking size of short... " >&6; } | |
b540af17 | 5897 | if ${ac_cv_sizeof_short+:} false; then : |
042acc47 | 5898 | $as_echo_n "(cached) " >&6 |
212380e3 | 5899 | else |
042acc47 WP |
5900 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
5901 | ||
5902 | else | |
5903 | if test "$ac_cv_type_short" = yes; then | |
5904 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5905 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
5906 | as_fn_error 77 "cannot compute sizeof (short) |
5907 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 WP |
5908 | else |
5909 | ac_cv_sizeof_short=0 | |
5910 | fi | |
5911 | fi | |
212380e3 | 5912 | |
212380e3 | 5913 | fi |
042acc47 WP |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
5915 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 5916 | |
212380e3 | 5917 | |
042acc47 WP |
5918 | |
5919 | cat >>confdefs.h <<_ACEOF | |
5920 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 5921 | _ACEOF |
042acc47 WP |
5922 | |
5923 | ||
5924 | # The cast to long int works around a bug in the HP C Compiler | |
5925 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5926 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5927 | # This bug is HP SR number 8606223364. | |
5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
5929 | $as_echo_n "checking size of int... " >&6; } | |
b540af17 | 5930 | if ${ac_cv_sizeof_int+:} false; then : |
042acc47 WP |
5931 | $as_echo_n "(cached) " >&6 |
5932 | else | |
5933 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
5934 | ||
5935 | else | |
5936 | if test "$ac_cv_type_int" = yes; then | |
5937 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
5939 | as_fn_error 77 "cannot compute sizeof (int) |
5940 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 WP |
5941 | else |
5942 | ac_cv_sizeof_int=0 | |
5943 | fi | |
5944 | fi | |
5945 | ||
5946 | fi | |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
5948 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
5949 | ||
5950 | ||
5951 | ||
5952 | cat >>confdefs.h <<_ACEOF | |
5953 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 5954 | _ACEOF |
042acc47 WP |
5955 | |
5956 | ||
5957 | # The cast to long int works around a bug in the HP C Compiler | |
5958 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5959 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5960 | # This bug is HP SR number 8606223364. | |
5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
5962 | $as_echo_n "checking size of long... " >&6; } | |
b540af17 | 5963 | if ${ac_cv_sizeof_long+:} false; then : |
042acc47 | 5964 | $as_echo_n "(cached) " >&6 |
212380e3 | 5965 | else |
042acc47 | 5966 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 5967 | |
042acc47 WP |
5968 | else |
5969 | if test "$ac_cv_type_long" = yes; then | |
5970 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5971 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
5972 | as_fn_error 77 "cannot compute sizeof (long) |
5973 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 WP |
5974 | else |
5975 | ac_cv_sizeof_long=0 | |
5976 | fi | |
212380e3 | 5977 | fi |
631ef239 | 5978 | |
042acc47 WP |
5979 | fi |
5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
5981 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 5982 | |
631ef239 | 5983 | |
042acc47 WP |
5984 | |
5985 | cat >>confdefs.h <<_ACEOF | |
5986 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
5987 | _ACEOF | |
5988 | ||
5989 | ||
5990 | # The cast to long int works around a bug in the HP C Compiler | |
5991 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5992 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5993 | # This bug is HP SR number 8606223364. | |
5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
5995 | $as_echo_n "checking size of long long... " >&6; } | |
b540af17 | 5996 | if ${ac_cv_sizeof_long_long+:} false; then : |
042acc47 WP |
5997 | $as_echo_n "(cached) " >&6 |
5998 | else | |
5999 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
6000 | ||
212380e3 | 6001 | else |
042acc47 WP |
6002 | if test "$ac_cv_type_long_long" = yes; then |
6003 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6004 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b540af17 JH |
6005 | as_fn_error 77 "cannot compute sizeof (long long) |
6006 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 WP |
6007 | else |
6008 | ac_cv_sizeof_long_long=0 | |
6009 | fi | |
212380e3 | 6010 | fi |
212380e3 | 6011 | |
6012 | fi | |
042acc47 WP |
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
6014 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 | 6015 | |
6016 | ||
6017 | ||
042acc47 WP |
6018 | cat >>confdefs.h <<_ACEOF |
6019 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6020 | _ACEOF | |
212380e3 | 6021 | |
212380e3 | 6022 | |
212380e3 | 6023 | |
042acc47 WP |
6024 | |
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
6026 | $as_echo_n "checking for library containing socket... " >&6; } | |
b540af17 | 6027 | if ${ac_cv_search_socket+:} false; then : |
042acc47 WP |
6028 | $as_echo_n "(cached) " >&6 |
6029 | else | |
6030 | ac_func_search_save_LIBS=$LIBS | |
6031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6032 | /* end confdefs.h. */ |
042acc47 WP |
6033 | |
6034 | /* Override any GCC internal prototype to avoid an error. | |
6035 | Use char because int might match the return type of a GCC | |
6036 | builtin and then its argument prototype would still apply. */ | |
6037 | #ifdef __cplusplus | |
6038 | extern "C" | |
6039 | #endif | |
6040 | char socket (); | |
212380e3 | 6041 | int |
6042 | main () | |
6043 | { | |
042acc47 | 6044 | return socket (); |
212380e3 | 6045 | ; |
6046 | return 0; | |
6047 | } | |
6048 | _ACEOF | |
042acc47 WP |
6049 | for ac_lib in '' socket; do |
6050 | if test -z "$ac_lib"; then | |
6051 | ac_res="none required" | |
6052 | else | |
6053 | ac_res=-l$ac_lib | |
6054 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6055 | fi | |
6056 | if ac_fn_c_try_link "$LINENO"; then : | |
6057 | ac_cv_search_socket=$ac_res | |
6058 | fi | |
6059 | rm -f core conftest.err conftest.$ac_objext \ | |
6060 | conftest$ac_exeext | |
b540af17 | 6061 | if ${ac_cv_search_socket+:} false; then : |
042acc47 WP |
6062 | break |
6063 | fi | |
6064 | done | |
b540af17 | 6065 | if ${ac_cv_search_socket+:} false; then : |
212380e3 | 6066 | |
6067 | else | |
042acc47 WP |
6068 | ac_cv_search_socket=no |
6069 | fi | |
6070 | rm conftest.$ac_ext | |
6071 | LIBS=$ac_func_search_save_LIBS | |
6072 | fi | |
6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
6074 | $as_echo "$ac_cv_search_socket" >&6; } | |
6075 | ac_res=$ac_cv_search_socket | |
6076 | if test "$ac_res" != no; then : | |
6077 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6078 | |
042acc47 | 6079 | else |
b540af17 | 6080 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 6081 | fi |
631ef239 | 6082 | |
212380e3 | 6083 | |
042acc47 WP |
6084 | if test x"$SUN" = xyes; then |
6085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
6086 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b540af17 | 6087 | if ${ac_cv_search_inet_ntoa+:} false; then : |
042acc47 WP |
6088 | $as_echo_n "(cached) " >&6 |
6089 | else | |
6090 | ac_func_search_save_LIBS=$LIBS | |
6091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6092 | /* end confdefs.h. */ |
042acc47 WP |
6093 | |
6094 | /* Override any GCC internal prototype to avoid an error. | |
6095 | Use char because int might match the return type of a GCC | |
6096 | builtin and then its argument prototype would still apply. */ | |
6097 | #ifdef __cplusplus | |
6098 | extern "C" | |
6099 | #endif | |
6100 | char inet_ntoa (); | |
212380e3 | 6101 | int |
6102 | main () | |
6103 | { | |
042acc47 | 6104 | return inet_ntoa (); |
212380e3 | 6105 | ; |
6106 | return 0; | |
6107 | } | |
6108 | _ACEOF | |
042acc47 WP |
6109 | for ac_lib in '' nsl; do |
6110 | if test -z "$ac_lib"; then | |
6111 | ac_res="none required" | |
6112 | else | |
6113 | ac_res=-l$ac_lib | |
6114 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6115 | fi | |
6116 | if ac_fn_c_try_link "$LINENO"; then : | |
6117 | ac_cv_search_inet_ntoa=$ac_res | |
6118 | fi | |
6119 | rm -f core conftest.err conftest.$ac_objext \ | |
6120 | conftest$ac_exeext | |
b540af17 | 6121 | if ${ac_cv_search_inet_ntoa+:} false; then : |
042acc47 WP |
6122 | break |
6123 | fi | |
6124 | done | |
b540af17 | 6125 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 | 6126 | |
6127 | else | |
042acc47 WP |
6128 | ac_cv_search_inet_ntoa=no |
6129 | fi | |
6130 | rm conftest.$ac_ext | |
6131 | LIBS=$ac_func_search_save_LIBS | |
6132 | fi | |
6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
6134 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
6135 | ac_res=$ac_cv_search_inet_ntoa | |
6136 | if test "$ac_res" != no; then : | |
6137 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6138 | |
042acc47 | 6139 | else |
b540af17 | 6140 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 6141 | fi |
631ef239 | 6142 | |
042acc47 | 6143 | fi |
212380e3 | 6144 | |
042acc47 WP |
6145 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
6146 | #include <sys/socket.h> | |
6147 | " | |
b540af17 | 6148 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 | 6149 | |
6150 | else | |
6151 | ||
042acc47 | 6152 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 6153 | |
042acc47 | 6154 | fi |
212380e3 | 6155 | |
6156 | ||
042acc47 WP |
6157 | # Check whether --enable-ipv6 was given. |
6158 | if test "${enable_ipv6+set}" = set; then : | |
6159 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 6160 | else |
042acc47 WP |
6161 | ipv6=no |
6162 | fi | |
212380e3 | 6163 | |
212380e3 | 6164 | |
042acc47 WP |
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
6166 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b540af17 | 6167 | if ${ac_cv_search_crypt+:} false; then : |
042acc47 WP |
6168 | $as_echo_n "(cached) " >&6 |
6169 | else | |
6170 | ac_func_search_save_LIBS=$LIBS | |
6171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6172 | /* end confdefs.h. */ | |
212380e3 | 6173 | |
631ef239 | 6174 | /* Override any GCC internal prototype to avoid an error. |
6175 | Use char because int might match the return type of a GCC | |
6176 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 6177 | #ifdef __cplusplus |
6178 | extern "C" | |
212380e3 | 6179 | #endif |
042acc47 | 6180 | char crypt (); |
212380e3 | 6181 | int |
6182 | main () | |
6183 | { | |
042acc47 | 6184 | return crypt (); |
212380e3 | 6185 | ; |
6186 | return 0; | |
6187 | } | |
6188 | _ACEOF | |
042acc47 WP |
6189 | for ac_lib in '' crypt descrypt; do |
6190 | if test -z "$ac_lib"; then | |
6191 | ac_res="none required" | |
6192 | else | |
6193 | ac_res=-l$ac_lib | |
6194 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6195 | fi | |
6196 | if ac_fn_c_try_link "$LINENO"; then : | |
6197 | ac_cv_search_crypt=$ac_res | |
6198 | fi | |
6199 | rm -f core conftest.err conftest.$ac_objext \ | |
6200 | conftest$ac_exeext | |
b540af17 | 6201 | if ${ac_cv_search_crypt+:} false; then : |
042acc47 WP |
6202 | break |
6203 | fi | |
6204 | done | |
b540af17 | 6205 | if ${ac_cv_search_crypt+:} false; then : |
042acc47 | 6206 | |
212380e3 | 6207 | else |
042acc47 WP |
6208 | ac_cv_search_crypt=no |
6209 | fi | |
6210 | rm conftest.$ac_ext | |
6211 | LIBS=$ac_func_search_save_LIBS | |
6212 | fi | |
6213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
6214 | $as_echo "$ac_cv_search_crypt" >&6; } | |
6215 | ac_res=$ac_cv_search_crypt | |
6216 | if test "$ac_res" != no; then : | |
6217 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6218 | |
212380e3 | 6219 | fi |
631ef239 | 6220 | |
042acc47 WP |
6221 | |
6222 | CRYPT_LIB=$ac_cv_search_crypt | |
6223 | ||
6224 | if test "$CRYPT_LIB" = "none required"; then | |
6225 | unset CRYPT_LIB | |
6226 | elif test "$CRYPT_LIB" = no; then | |
6227 | unset CRYPT_LIB | |
212380e3 | 6228 | fi |
042acc47 WP |
6229 | |
6230 | ||
6231 | ||
6232 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
6233 | VICONF=viconf | |
6234 | else | |
6235 | VICONF="" | |
6236 | fi | |
6237 | ||
6238 | ||
6239 | ||
6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
6241 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
b540af17 | 6242 | if ${gcc_cv_header_string+:} false; then : |
042acc47 WP |
6243 | $as_echo_n "(cached) " >&6 |
6244 | else | |
6245 | ||
6246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6247 | /* end confdefs.h. */ | |
6248 | #include <string.h> | |
6249 | #include <strings.h> | |
212380e3 | 6250 | _ACEOF |
042acc47 WP |
6251 | if ac_fn_c_try_compile "$LINENO"; then : |
6252 | gcc_cv_header_string=yes | |
6253 | else | |
6254 | gcc_cv_header_string=no | |
6255 | fi | |
6256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6257 | |
6258 | fi | |
042acc47 WP |
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
6260 | $as_echo "$gcc_cv_header_string" >&6; } | |
212380e3 | 6261 | |
042acc47 WP |
6262 | if test "$gcc_cv_header_string" = "yes"; then |
6263 | ||
6264 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
6265 | ||
6266 | fi | |
212380e3 | 6267 | |
042acc47 WP |
6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
6269 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b540af17 | 6270 | if ${ac_cv_c_bigendian+:} false; then : |
042acc47 WP |
6271 | $as_echo_n "(cached) " >&6 |
6272 | else | |
6273 | ac_cv_c_bigendian=unknown | |
6274 | # See if we're dealing with a universal compiler. | |
6275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6276 | /* end confdefs.h. */ | |
6277 | #ifndef __APPLE_CC__ | |
6278 | not a universal capable compiler | |
6279 | #endif | |
6280 | typedef int dummy; | |
6281 | ||
6282 | _ACEOF | |
6283 | if ac_fn_c_try_compile "$LINENO"; then : | |
6284 | ||
6285 | # Check for potential -arch flags. It is not universal unless | |
6286 | # there are at least two -arch flags with different values. | |
6287 | ac_arch= | |
6288 | ac_prev= | |
6289 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6290 | if test -n "$ac_prev"; then | |
6291 | case $ac_word in | |
6292 | i?86 | x86_64 | ppc | ppc64) | |
6293 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6294 | ac_arch=$ac_word | |
6295 | else | |
6296 | ac_cv_c_bigendian=universal | |
6297 | break | |
6298 | fi | |
6299 | ;; | |
6300 | esac | |
6301 | ac_prev= | |
6302 | elif test "x$ac_word" = "x-arch"; then | |
6303 | ac_prev=arch | |
6304 | fi | |
6305 | done | |
212380e3 | 6306 | fi |
042acc47 WP |
6307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6308 | if test $ac_cv_c_bigendian = unknown; then | |
6309 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6311 | /* end confdefs.h. */ | |
6312 | #include <sys/types.h> | |
6313 | #include <sys/param.h> | |
6314 | ||
6315 | int | |
6316 | main () | |
6317 | { | |
6318 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
6319 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6320 | && LITTLE_ENDIAN) | |
6321 | bogus endian macros | |
6322 | #endif | |
6323 | ||
6324 | ; | |
6325 | return 0; | |
6326 | } | |
6327 | _ACEOF | |
6328 | if ac_fn_c_try_compile "$LINENO"; then : | |
6329 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6331 | /* end confdefs.h. */ | |
6332 | #include <sys/types.h> | |
6333 | #include <sys/param.h> | |
6334 | ||
6335 | int | |
6336 | main () | |
6337 | { | |
6338 | #if BYTE_ORDER != BIG_ENDIAN | |
6339 | not big endian | |
6340 | #endif | |
212380e3 | 6341 | |
042acc47 WP |
6342 | ; |
6343 | return 0; | |
6344 | } | |
6345 | _ACEOF | |
6346 | if ac_fn_c_try_compile "$LINENO"; then : | |
6347 | ac_cv_c_bigendian=yes | |
212380e3 | 6348 | else |
042acc47 WP |
6349 | ac_cv_c_bigendian=no |
6350 | fi | |
6351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6352 | fi | |
6353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6354 | fi | |
6355 | if test $ac_cv_c_bigendian = unknown; then | |
6356 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6358 | /* end confdefs.h. */ | |
6359 | #include <limits.h> | |
6360 | ||
6361 | int | |
6362 | main () | |
6363 | { | |
6364 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6365 | bogus endian macros | |
6366 | #endif | |
6367 | ||
6368 | ; | |
6369 | return 0; | |
6370 | } | |
212380e3 | 6371 | _ACEOF |
042acc47 WP |
6372 | if ac_fn_c_try_compile "$LINENO"; then : |
6373 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6375 | /* end confdefs.h. */ |
042acc47 WP |
6376 | #include <limits.h> |
6377 | ||
212380e3 | 6378 | int |
6379 | main () | |
6380 | { | |
042acc47 WP |
6381 | #ifndef _BIG_ENDIAN |
6382 | not big endian | |
6383 | #endif | |
6384 | ||
212380e3 | 6385 | ; |
6386 | return 0; | |
6387 | } | |
6388 | _ACEOF | |
042acc47 WP |
6389 | if ac_fn_c_try_compile "$LINENO"; then : |
6390 | ac_cv_c_bigendian=yes | |
212380e3 | 6391 | else |
042acc47 | 6392 | ac_cv_c_bigendian=no |
212380e3 | 6393 | fi |
631ef239 | 6394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6395 | fi |
042acc47 WP |
6396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6397 | fi | |
6398 | if test $ac_cv_c_bigendian = unknown; then | |
6399 | # Compile a test program. | |
6400 | if test "$cross_compiling" = yes; then : | |
6401 | # Try to guess by grepping values from an object file. | |
6402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6403 | /* end confdefs.h. */ | |
6404 | short int ascii_mm[] = | |
6405 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6406 | short int ascii_ii[] = | |
6407 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6408 | int use_ascii (int i) { | |
6409 | return ascii_mm[i] + ascii_ii[i]; | |
6410 | } | |
6411 | short int ebcdic_ii[] = | |
6412 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6413 | short int ebcdic_mm[] = | |
6414 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6415 | int use_ebcdic (int i) { | |
6416 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6417 | } | |
6418 | extern int foo; | |
212380e3 | 6419 | |
042acc47 WP |
6420 | int |
6421 | main () | |
6422 | { | |
6423 | return use_ascii (foo) == use_ebcdic (foo); | |
6424 | ; | |
6425 | return 0; | |
6426 | } | |
212380e3 | 6427 | _ACEOF |
042acc47 WP |
6428 | if ac_fn_c_try_compile "$LINENO"; then : |
6429 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6430 | ac_cv_c_bigendian=yes | |
6431 | fi | |
6432 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6433 | if test "$ac_cv_c_bigendian" = unknown; then | |
6434 | ac_cv_c_bigendian=no | |
6435 | else | |
6436 | # finding both strings is unlikely to happen, but who knows? | |
6437 | ac_cv_c_bigendian=unknown | |
6438 | fi | |
6439 | fi | |
6440 | fi | |
6441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6442 | else | |
6443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6444 | /* end confdefs.h. */ |
6445 | $ac_includes_default | |
6446 | int | |
6447 | main () | |
6448 | { | |
042acc47 WP |
6449 | |
6450 | /* Are we little or big endian? From Harbison&Steele. */ | |
6451 | union | |
6452 | { | |
6453 | long int l; | |
6454 | char c[sizeof (long int)]; | |
6455 | } u; | |
6456 | u.l = 1; | |
6457 | return u.c[sizeof (long int) - 1] == 1; | |
6458 | ||
212380e3 | 6459 | ; |
6460 | return 0; | |
6461 | } | |
6462 | _ACEOF | |
042acc47 WP |
6463 | if ac_fn_c_try_run "$LINENO"; then : |
6464 | ac_cv_c_bigendian=no | |
212380e3 | 6465 | else |
042acc47 | 6466 | ac_cv_c_bigendian=yes |
212380e3 | 6467 | fi |
042acc47 WP |
6468 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6469 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6470 | fi |
212380e3 | 6471 | |
042acc47 WP |
6472 | fi |
6473 | fi | |
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6475 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6476 | case $ac_cv_c_bigendian in #( | |
6477 | yes) | |
6478 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6479 | ;; #( | |
6480 | no) | |
6481 | ;; #( | |
6482 | universal) | |
212380e3 | 6483 | |
042acc47 | 6484 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 6485 | |
042acc47 WP |
6486 | ;; #( |
6487 | *) | |
b540af17 | 6488 | as_fn_error $? "unknown endianness |
042acc47 WP |
6489 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
6490 | esac | |
212380e3 | 6491 | |
212380e3 | 6492 | |
042acc47 | 6493 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b540af17 | 6494 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 6495 | |
042acc47 | 6496 | else |
b540af17 | 6497 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
042acc47 | 6498 | fi |
212380e3 | 6499 | |
6500 | ||
212380e3 | 6501 | |
6502 | ||
042acc47 | 6503 | if test "$ac_cv_c_compiler_gnu" = yes; then |
212380e3 | 6504 | |
042acc47 WP |
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5 |
6506 | $as_echo_n "checking for strlcpy... " >&6; } | |
6507 | save_CFLAGS=$CFLAGS | |
6508 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
212380e3 | 6509 | |
042acc47 | 6510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6511 | /* end confdefs.h. */ |
042acc47 WP |
6512 | #include <string.h> |
6513 | #include <stdlib.h> | |
212380e3 | 6514 | int |
6515 | main () | |
6516 | { | |
042acc47 WP |
6517 | char *a = malloc(6); |
6518 | strlcpy(a, "hello", 6); | |
6519 | ||
212380e3 | 6520 | ; |
6521 | return 0; | |
6522 | } | |
6523 | _ACEOF | |
042acc47 WP |
6524 | if ac_fn_c_try_link "$LINENO"; then : |
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6526 | $as_echo "yes" >&6; } | |
212380e3 | 6527 | |
042acc47 | 6528 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h |
631ef239 | 6529 | |
212380e3 | 6530 | else |
042acc47 WP |
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6532 | $as_echo "no" >&6; } | |
212380e3 | 6533 | |
042acc47 WP |
6534 | fi |
6535 | rm -f core conftest.err conftest.$ac_objext \ | |
6536 | conftest$ac_exeext conftest.$ac_ext | |
6537 | ||
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5 | |
6539 | $as_echo_n "checking for strlcat... " >&6; } | |
6540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6541 | /* end confdefs.h. */ |
042acc47 WP |
6542 | #include <string.h> |
6543 | #include <stdlib.h> | |
212380e3 | 6544 | int |
6545 | main () | |
6546 | { | |
042acc47 WP |
6547 | char *a = malloc(6); |
6548 | a[0] = '\0'; | |
6549 | strlcat(a, "hello", 6); | |
6550 | ||
212380e3 | 6551 | ; |
6552 | return 0; | |
6553 | } | |
6554 | _ACEOF | |
042acc47 WP |
6555 | if ac_fn_c_try_link "$LINENO"; then : |
6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6557 | $as_echo "yes" >&6; } | |
631ef239 | 6558 | |
042acc47 | 6559 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h |
212380e3 | 6560 | |
042acc47 WP |
6561 | else |
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6563 | $as_echo "no" >&6; } | |
212380e3 | 6564 | |
042acc47 WP |
6565 | fi |
6566 | rm -f core conftest.err conftest.$ac_objext \ | |
6567 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6568 | |
042acc47 | 6569 | CFLAGS=$save_CFLAGS |
212380e3 | 6570 | |
6571 | else | |
6572 | ||
212380e3 | 6573 | |
042acc47 WP |
6574 | for ac_func in strlcat strlcpy |
6575 | do : | |
6576 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6577 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b540af17 | 6578 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
042acc47 WP |
6579 | cat >>confdefs.h <<_ACEOF |
6580 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 | 6581 | _ACEOF |
6582 | ||
212380e3 | 6583 | fi |
042acc47 | 6584 | done |
212380e3 | 6585 | |
6586 | ||
6587 | fi | |
6588 | ||
042acc47 | 6589 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b540af17 | 6590 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 6591 | |
212380e3 | 6592 | else |
212380e3 | 6593 | |
042acc47 | 6594 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b540af17 | 6595 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 6596 | |
631ef239 | 6597 | |
042acc47 | 6598 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 6599 | |
212380e3 | 6600 | |
042acc47 | 6601 | else |
212380e3 | 6602 | |
042acc47 WP |
6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
6604 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 6605 | |
042acc47 | 6606 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 6607 | |
212380e3 | 6608 | |
212380e3 | 6609 | fi |
631ef239 | 6610 | |
042acc47 | 6611 | |
212380e3 | 6612 | fi |
042acc47 WP |
6613 | |
6614 | ||
6615 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b540af17 | 6616 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
042acc47 | 6617 | |
212380e3 | 6618 | else |
6619 | ||
042acc47 | 6620 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b540af17 | 6621 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 6622 | |
042acc47 WP |
6623 | |
6624 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 | 6625 | |
6626 | ||
212380e3 | 6627 | else |
212380e3 | 6628 | |
042acc47 WP |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
6630 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 6631 | |
042acc47 | 6632 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 6633 | |
042acc47 WP |
6634 | |
6635 | fi | |
212380e3 | 6636 | |
6637 | ||
6638 | fi | |
6639 | ||
6640 | ||
042acc47 WP |
6641 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
6642 | #include <netinet/in.h> | |
6643 | " | |
b540af17 | 6644 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 6645 | |
042acc47 | 6646 | else |
212380e3 | 6647 | |
042acc47 | 6648 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 6649 | |
042acc47 | 6650 | fi |
212380e3 | 6651 | |
6652 | ||
042acc47 WP |
6653 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
6654 | #include <sys/socket.h> | |
6655 | " | |
b540af17 | 6656 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 6657 | |
212380e3 | 6658 | else |
212380e3 | 6659 | |
042acc47 | 6660 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 6661 | |
042acc47 | 6662 | fi |
212380e3 | 6663 | |
212380e3 | 6664 | |
042acc47 | 6665 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b540af17 | 6666 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 6667 | |
042acc47 WP |
6668 | cat >>confdefs.h <<_ACEOF |
6669 | #define HAVE_UINTPTR_T 1 | |
6670 | _ACEOF | |
212380e3 | 6671 | |
631ef239 | 6672 | |
212380e3 | 6673 | fi |
042acc47 WP |
6674 | |
6675 | ||
6676 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
6677 | do : | |
6678 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6679 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b540af17 | 6680 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 6681 | cat >>confdefs.h <<_ACEOF |
042acc47 | 6682 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 | 6683 | _ACEOF |
6684 | ||
6685 | fi | |
6686 | done | |
6687 | ||
6688 | ||
6689 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6690 | # for constant arguments. Useless! | |
042acc47 WP |
6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
6692 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b540af17 | 6693 | if ${ac_cv_working_alloca_h+:} false; then : |
042acc47 | 6694 | $as_echo_n "(cached) " >&6 |
212380e3 | 6695 | else |
042acc47 | 6696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6697 | /* end confdefs.h. */ |
6698 | #include <alloca.h> | |
6699 | int | |
6700 | main () | |
6701 | { | |
6702 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 6703 | if (p) return 0; |
212380e3 | 6704 | ; |
6705 | return 0; | |
6706 | } | |
6707 | _ACEOF | |
042acc47 | 6708 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 | 6709 | ac_cv_working_alloca_h=yes |
6710 | else | |
042acc47 | 6711 | ac_cv_working_alloca_h=no |
212380e3 | 6712 | fi |
042acc47 WP |
6713 | rm -f core conftest.err conftest.$ac_objext \ |
6714 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6715 | fi |
042acc47 WP |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
6717 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 | 6718 | if test $ac_cv_working_alloca_h = yes; then |
6719 | ||
042acc47 | 6720 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 | 6721 | |
6722 | fi | |
6723 | ||
042acc47 WP |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
6725 | $as_echo_n "checking for alloca... " >&6; } | |
b540af17 | 6726 | if ${ac_cv_func_alloca_works+:} false; then : |
042acc47 | 6727 | $as_echo_n "(cached) " >&6 |
212380e3 | 6728 | else |
042acc47 | 6729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6730 | /* end confdefs.h. */ |
6731 | #ifdef __GNUC__ | |
6732 | # define alloca __builtin_alloca | |
6733 | #else | |
6734 | # ifdef _MSC_VER | |
6735 | # include <malloc.h> | |
6736 | # define alloca _alloca | |
6737 | # else | |
631ef239 | 6738 | # ifdef HAVE_ALLOCA_H |
212380e3 | 6739 | # include <alloca.h> |
6740 | # else | |
6741 | # ifdef _AIX | |
6742 | #pragma alloca | |
6743 | # else | |
6744 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b540af17 | 6745 | void *alloca (size_t); |
212380e3 | 6746 | # endif |
6747 | # endif | |
6748 | # endif | |
6749 | # endif | |
6750 | #endif | |
6751 | ||
6752 | int | |
6753 | main () | |
6754 | { | |
6755 | char *p = (char *) alloca (1); | |
631ef239 | 6756 | if (p) return 0; |
212380e3 | 6757 | ; |
6758 | return 0; | |
6759 | } | |
6760 | _ACEOF | |
042acc47 | 6761 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 | 6762 | ac_cv_func_alloca_works=yes |
6763 | else | |
042acc47 | 6764 | ac_cv_func_alloca_works=no |
212380e3 | 6765 | fi |
042acc47 WP |
6766 | rm -f core conftest.err conftest.$ac_objext \ |
6767 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6768 | fi |
042acc47 WP |
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
6770 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 | 6771 | |
6772 | if test $ac_cv_func_alloca_works = yes; then | |
6773 | ||
042acc47 | 6774 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 | 6775 | |
6776 | else | |
6777 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6778 | # that cause trouble. Some versions do not even contain alloca or | |
6779 | # contain a buggy version. If you still want to use their alloca, | |
6780 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6781 | ||
631ef239 | 6782 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 6783 | |
042acc47 | 6784 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 | 6785 | |
6786 | ||
042acc47 WP |
6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
6788 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b540af17 | 6789 | if ${ac_cv_os_cray+:} false; then : |
042acc47 | 6790 | $as_echo_n "(cached) " >&6 |
212380e3 | 6791 | else |
042acc47 | 6792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6793 | /* end confdefs.h. */ |
631ef239 | 6794 | #if defined CRAY && ! defined CRAY2 |
212380e3 | 6795 | webecray |
6796 | #else | |
6797 | wenotbecray | |
6798 | #endif | |
6799 | ||
6800 | _ACEOF | |
6801 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
042acc47 | 6802 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 | 6803 | ac_cv_os_cray=yes |
6804 | else | |
6805 | ac_cv_os_cray=no | |
6806 | fi | |
6807 | rm -f conftest* | |
6808 | ||
6809 | fi | |
042acc47 WP |
6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
6811 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 | 6812 | if test $ac_cv_os_cray = yes; then |
6813 | for ac_func in _getb67 GETB67 getb67; do | |
042acc47 WP |
6814 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6815 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b540af17 | 6816 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 6817 | |
6818 | cat >>confdefs.h <<_ACEOF | |
6819 | #define CRAY_STACKSEG_END $ac_func | |
6820 | _ACEOF | |
6821 | ||
6822 | break | |
6823 | fi | |
6824 | ||
6825 | done | |
6826 | fi | |
6827 | ||
042acc47 WP |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
6829 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b540af17 | 6830 | if ${ac_cv_c_stack_direction+:} false; then : |
042acc47 | 6831 | $as_echo_n "(cached) " >&6 |
212380e3 | 6832 | else |
042acc47 | 6833 | if test "$cross_compiling" = yes; then : |
212380e3 | 6834 | ac_cv_c_stack_direction=0 |
6835 | else | |
042acc47 | 6836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6837 | /* end confdefs.h. */ |
631ef239 | 6838 | $ac_includes_default |
212380e3 | 6839 | int |
6840 | find_stack_direction () | |
6841 | { | |
6842 | static char *addr = 0; | |
6843 | auto char dummy; | |
6844 | if (addr == 0) | |
6845 | { | |
6846 | addr = &dummy; | |
6847 | return find_stack_direction (); | |
6848 | } | |
6849 | else | |
6850 | return (&dummy > addr) ? 1 : -1; | |
6851 | } | |
6852 | ||
6853 | int | |
6854 | main () | |
6855 | { | |
631ef239 | 6856 | return find_stack_direction () < 0; |
212380e3 | 6857 | } |
6858 | _ACEOF | |
042acc47 | 6859 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 6860 | ac_cv_c_stack_direction=1 |
6861 | else | |
042acc47 | 6862 | ac_cv_c_stack_direction=-1 |
212380e3 | 6863 | fi |
042acc47 WP |
6864 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6865 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6866 | fi |
631ef239 | 6867 | |
212380e3 | 6868 | fi |
042acc47 WP |
6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
6870 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 | 6871 | cat >>confdefs.h <<_ACEOF |
6872 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6873 | _ACEOF | |
6874 | ||
6875 | ||
6876 | fi | |
6877 | ||
6878 | ||
6879 | ||
042acc47 | 6880 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b540af17 | 6881 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 6882 | |
212380e3 | 6883 | else |
042acc47 WP |
6884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
6885 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b540af17 | 6886 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
042acc47 | 6887 | $as_echo_n "(cached) " >&6 |
212380e3 | 6888 | else |
6889 | ac_check_lib_save_LIBS=$LIBS | |
6890 | LIBS="-lrt $LIBS" | |
042acc47 | 6891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6892 | /* end confdefs.h. */ |
6893 | ||
631ef239 | 6894 | /* Override any GCC internal prototype to avoid an error. |
6895 | Use char because int might match the return type of a GCC | |
6896 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 6897 | #ifdef __cplusplus |
6898 | extern "C" | |
6899 | #endif | |
212380e3 | 6900 | char nanosleep (); |
6901 | int | |
6902 | main () | |
6903 | { | |
631ef239 | 6904 | return nanosleep (); |
212380e3 | 6905 | ; |
6906 | return 0; | |
6907 | } | |
6908 | _ACEOF | |
042acc47 | 6909 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 | 6910 | ac_cv_lib_rt_nanosleep=yes |
6911 | else | |
042acc47 | 6912 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 6913 | fi |
042acc47 WP |
6914 | rm -f core conftest.err conftest.$ac_objext \ |
6915 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6916 | LIBS=$ac_check_lib_save_LIBS |
6917 | fi | |
042acc47 WP |
6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
6919 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b540af17 | 6920 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 | 6921 | LIBS="${LIBS} -lrt" |
6922 | else | |
042acc47 WP |
6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
6924 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b540af17 | 6925 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
042acc47 | 6926 | $as_echo_n "(cached) " >&6 |
212380e3 | 6927 | else |
6928 | ac_check_lib_save_LIBS=$LIBS | |
6929 | LIBS="-lposix4 $LIBS" | |
042acc47 | 6930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6931 | /* end confdefs.h. */ |
6932 | ||
631ef239 | 6933 | /* Override any GCC internal prototype to avoid an error. |
6934 | Use char because int might match the return type of a GCC | |
6935 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 6936 | #ifdef __cplusplus |
6937 | extern "C" | |
6938 | #endif | |
212380e3 | 6939 | char nanosleep (); |
6940 | int | |
6941 | main () | |
6942 | { | |
631ef239 | 6943 | return nanosleep (); |
212380e3 | 6944 | ; |
6945 | return 0; | |
6946 | } | |
6947 | _ACEOF | |
042acc47 | 6948 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 | 6949 | ac_cv_lib_posix4_nanosleep=yes |
6950 | else | |
042acc47 | 6951 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 6952 | fi |
042acc47 WP |
6953 | rm -f core conftest.err conftest.$ac_objext \ |
6954 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6955 | LIBS=$ac_check_lib_save_LIBS |
6956 | fi | |
042acc47 WP |
6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
6958 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b540af17 | 6959 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 | 6960 | LIBS="${LIBS} -lposix4" |
6961 | ||
6962 | fi | |
6963 | ||
6964 | fi | |
6965 | ||
6966 | fi | |
6967 | ||
6968 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
6969 | then | |
042acc47 WP |
6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
6971 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 | 6972 | else |
6973 | ||
042acc47 | 6974 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 | 6975 | |
6976 | fi | |
6977 | ||
042acc47 WP |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
6979 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 6980 | # Check whether --enable-openssl was given. |
042acc47 | 6981 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 6982 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 | 6983 | else |
6984 | cf_enable_openssl="auto" | |
631ef239 | 6985 | fi |
6986 | ||
212380e3 | 6987 | |
6988 | if test "$cf_enable_openssl" != "no" ; then | |
6989 | cf_openssl_basedir="" | |
6990 | if test "$cf_enable_openssl" != "auto" && | |
6991 | test "$cf_enable_openssl" != "yes" ; then | |
6992 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
6993 | else | |
6994 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
6995 | /usr/local/openssl ; do | |
6996 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
6997 | cf_openssl_basedir="${dirs}" | |
6998 | break | |
6999 | fi | |
7000 | done | |
7001 | unset dirs | |
7002 | fi | |
7003 | if test ! -z "$cf_openssl_basedir"; then | |
7004 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
7005 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
7006 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
7007 | else | |
7008 | cf_openssl_basedir="" | |
7009 | fi | |
7010 | else | |
7011 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
7012 | cf_openssl_basedir="/usr" | |
7013 | fi | |
7014 | fi | |
7015 | ||
7016 | if test ! -z "$cf_openssl_basedir"; then | |
042acc47 WP |
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
7018 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 | 7019 | cf_enable_openssl="yes" |
7020 | else | |
042acc47 WP |
7021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
7022 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 | 7023 | cf_enable_openssl="no" |
7024 | fi | |
7025 | unset cf_openssl_basedir | |
7026 | else | |
042acc47 WP |
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
7028 | $as_echo "disabled" >&6; } | |
212380e3 | 7029 | fi |
7030 | ||
7031 | save_CPPFLAGS="$CPPFLAGS" | |
7032 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
7033 | save_LIBS="$LIBS" | |
7034 | LIBS="$LIBS $SSL_LIBS" | |
7035 | if test "$cf_enable_openssl" != no; then | |
042acc47 WP |
7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
7037 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
7038 | if test "$cross_compiling" = yes; then : | |
212380e3 | 7039 | cf_openssl_version_ok=no |
7040 | else | |
042acc47 | 7041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 7042 | /* end confdefs.h. */ |
7043 | #include <openssl/opensslv.h> | |
7044 | #include <stdlib.h> | |
7045 | int | |
7046 | main () | |
7047 | { | |
7048 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
7049 | exit(0); else exit(1); | |
7050 | ; | |
7051 | return 0; | |
7052 | } | |
7053 | _ACEOF | |
042acc47 | 7054 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 7055 | cf_openssl_version_ok=yes |
7056 | else | |
042acc47 | 7057 | cf_openssl_version_ok=no |
212380e3 | 7058 | fi |
042acc47 WP |
7059 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7060 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 7061 | fi |
7062 | ||
631ef239 | 7063 | |
212380e3 | 7064 | if test "$cf_openssl_version_ok" = yes; then |
042acc47 WP |
7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
7066 | $as_echo "found" >&6; } | |
212380e3 | 7067 | |
7068 | ENCSPEED=encspeed | |
7069 | ||
7070 | ||
7071 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
042acc47 WP |
7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
7073 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b540af17 | 7074 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
042acc47 | 7075 | $as_echo_n "(cached) " >&6 |
212380e3 | 7076 | else |
7077 | ac_check_lib_save_LIBS=$LIBS | |
7078 | LIBS="-lcrypto $LIBS" | |
042acc47 | 7079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 7080 | /* end confdefs.h. */ |
7081 | ||
631ef239 | 7082 | /* Override any GCC internal prototype to avoid an error. |
7083 | Use char because int might match the return type of a GCC | |
7084 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 7085 | #ifdef __cplusplus |
7086 | extern "C" | |
7087 | #endif | |
212380e3 | 7088 | char RSA_free (); |
7089 | int | |
7090 | main () | |
7091 | { | |
631ef239 | 7092 | return RSA_free (); |
212380e3 | 7093 | ; |
7094 | return 0; | |
7095 | } | |
7096 | _ACEOF | |
042acc47 | 7097 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 | 7098 | ac_cv_lib_crypto_RSA_free=yes |
7099 | else | |
042acc47 | 7100 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 7101 | fi |
042acc47 WP |
7102 | rm -f core conftest.err conftest.$ac_objext \ |
7103 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 7104 | LIBS=$ac_check_lib_save_LIBS |
7105 | fi | |
042acc47 WP |
7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
7107 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b540af17 | 7108 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 | 7109 | cat >>confdefs.h <<_ACEOF |
7110 | #define HAVE_LIBCRYPTO 1 | |
7111 | _ACEOF | |
7112 | ||
7113 | LIBS="-lcrypto $LIBS" | |
7114 | ||
7115 | fi | |
7116 | ||
7117 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
7118 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
7119 | else | |
042acc47 WP |
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
7121 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 | 7122 | fi |
7123 | fi | |
7124 | ||
7125 | CPPFLAGS="$save_CPPFLAGS" | |
7126 | LIBS="$save_LIBS" | |
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
631ef239 | 7132 | # Check whether --with-zlib-path was given. |
042acc47 | 7133 | if test "${with_zlib_path+set}" = set; then : |
631ef239 | 7134 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
7135 | fi | |
212380e3 | 7136 | |
042acc47 WP |
7137 | |
7138 | # Check whether --enable-zlib was given. | |
7139 | if test "${enable_zlib+set}" = set; then : | |
7140 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 7141 | else |
042acc47 | 7142 | zlib=yes |
212380e3 | 7143 | fi |
212380e3 | 7144 | |
212380e3 | 7145 | |
042acc47 WP |
7146 | if test "$zlib" = yes; then |
7147 | ||
7148 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b540af17 | 7149 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
042acc47 WP |
7150 | |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
7152 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b540af17 | 7153 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
042acc47 | 7154 | $as_echo_n "(cached) " >&6 |
212380e3 | 7155 | else |
7156 | ac_check_lib_save_LIBS=$LIBS | |
7157 | LIBS="-lz $LIBS" | |
042acc47 | 7158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 7159 | /* end confdefs.h. */ |
7160 | ||
631ef239 | 7161 | /* Override any GCC internal prototype to avoid an error. |
7162 | Use char because int might match the return type of a GCC | |
7163 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 7164 | #ifdef __cplusplus |
7165 | extern "C" | |
7166 | #endif | |
212380e3 | 7167 | char zlibVersion (); |
7168 | int | |
7169 | main () | |
7170 | { | |
631ef239 | 7171 | return zlibVersion (); |
212380e3 | 7172 | ; |
7173 | return 0; | |
7174 | } | |
7175 | _ACEOF | |
042acc47 | 7176 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 | 7177 | ac_cv_lib_z_zlibVersion=yes |
7178 | else | |
042acc47 | 7179 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 7180 | fi |
042acc47 WP |
7181 | rm -f core conftest.err conftest.$ac_objext \ |
7182 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 7183 | LIBS=$ac_check_lib_save_LIBS |
7184 | fi | |
042acc47 WP |
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
7186 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b540af17 | 7187 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 | 7188 | |
7189 | ZLIB_LD=-lz | |
7190 | ||
7191 | ||
042acc47 | 7192 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 | 7193 | |
7194 | ||
7195 | else | |
7196 | zlib=no | |
7197 | fi | |
7198 | ||
7199 | ||
7200 | else | |
7201 | zlib=no | |
7202 | fi | |
7203 | ||
7204 | ||
7205 | ||
7206 | fi | |
7207 | ||
7208 | ||
c1c5fdc4 | 7209 | # Check whether --enable-ports was given. |
042acc47 | 7210 | if test "${enable_ports+set}" = set; then : |
c1c5fdc4 | 7211 | enableval=$enable_ports; if test $enableval = yes; then |
7212 | SELECT_TYPE_EXPLICIT="ports" | |
7213 | else | |
7214 | use_ports=no | |
7215 | fi | |
7216 | ||
7217 | fi | |
7218 | ||
7219 | ||
631ef239 | 7220 | # Check whether --enable-poll was given. |
042acc47 | 7221 | if test "${enable_poll+set}" = set; then : |
631ef239 | 7222 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 | 7223 | SELECT_TYPE_EXPLICIT="poll" |
7224 | else | |
7225 | use_poll=no | |
7226 | fi | |
7227 | ||
631ef239 | 7228 | fi |
7229 | ||
212380e3 | 7230 | |
631ef239 | 7231 | # Check whether --enable-select was given. |
042acc47 | 7232 | if test "${enable_select+set}" = set; then : |
631ef239 | 7233 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 | 7234 | SELECT_TYPE_EXPLICIT="select" |
7235 | else | |
7236 | use_select=no | |
7237 | fi | |
7238 | ||
631ef239 | 7239 | fi |
7240 | ||
212380e3 | 7241 | |
631ef239 | 7242 | # Check whether --enable-kqueue was given. |
042acc47 | 7243 | if test "${enable_kqueue+set}" = set; then : |
631ef239 | 7244 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 | 7245 | SELECT_TYPE_EXPLICIT="kqueue" |
7246 | else | |
7247 | use_kqueue=no | |
7248 | fi | |
7249 | ||
631ef239 | 7250 | fi |
7251 | ||
212380e3 | 7252 | |
631ef239 | 7253 | # Check whether --enable-epoll was given. |
042acc47 | 7254 | if test "${enable_epoll+set}" = set; then : |
631ef239 | 7255 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 7256 | SELECT_TYPE_EXPLICIT="epoll" |
042acc47 WP |
7257 | for ac_func in epoll_ctl |
7258 | do : | |
7259 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b540af17 | 7260 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
3ad1a781 | 7261 | cat >>confdefs.h <<_ACEOF |
042acc47 | 7262 | #define HAVE_EPOLL_CTL 1 |
3ad1a781 | 7263 | _ACEOF |
7264 | haveepoll=yes | |
7265 | else | |
7266 | haveepoll=no | |
7267 | fi | |
7268 | done | |
7269 | ||
212380e3 | 7270 | else |
7271 | use_epoll=no | |
7272 | fi | |
7273 | ||
631ef239 | 7274 | fi |
7275 | ||
212380e3 | 7276 | |
7277 | ||
042acc47 WP |
7278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5 |
7279 | $as_echo_n "checking whether to modify confdir... " >&6; } | |
212380e3 | 7280 | |
631ef239 | 7281 | # Check whether --with-confdir was given. |
042acc47 | 7282 | if test "${with_confdir+set}" = set; then : |
631ef239 | 7283 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` |
042acc47 WP |
7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7285 | $as_echo "yes" >&6; } | |
212380e3 | 7286 | |
7287 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7288 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
bf9bfd26 JH |
7289 | last_ac_define_dir=`eval echo $confdir` |
7290 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7291 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
7292 | last_ac_define_dir="$ac_define_dir" | |
7293 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7294 | done | |
212380e3 | 7295 | ETC_DIR="$ac_define_dir" |
7296 | ||
7297 | ||
7298 | cat >>confdefs.h <<_ACEOF | |
7299 | #define ETC_DIR "$ac_define_dir" | |
7300 | _ACEOF | |
7301 | ||
7302 | ||
7303 | ||
7304 | ||
7305 | confdir=`( | |
7306 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7307 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7308 | eval echo \""$confdir"\" | |
7309 | )` | |
7310 | ||
7311 | ||
7312 | else | |
bf9bfd26 | 7313 | confdir='${sysconfdir}' |
042acc47 WP |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7315 | $as_echo "no" >&6; } | |
212380e3 | 7316 | |
7317 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7318 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
bf9bfd26 JH |
7319 | last_ac_define_dir=`eval echo $confdir` |
7320 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7321 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
7322 | last_ac_define_dir="$ac_define_dir" | |
7323 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7324 | done | |
212380e3 | 7325 | ETC_DIR="$ac_define_dir" |
7326 | ||
7327 | ||
7328 | cat >>confdefs.h <<_ACEOF | |
7329 | #define ETC_DIR "$ac_define_dir" | |
7330 | _ACEOF | |
7331 | ||
7332 | ||
7333 | ||
7334 | ||
7335 | confdir=`( | |
7336 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7337 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7338 | eval echo \""$confdir"\" | |
7339 | )` | |
7340 | ||
7341 | ||
7342 | ||
631ef239 | 7343 | fi |
7344 | ||
212380e3 | 7345 | |
7346 | ||
042acc47 WP |
7347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
7348 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 7349 | |
631ef239 | 7350 | # Check whether --with-logdir was given. |
042acc47 | 7351 | if test "${with_logdir+set}" = set; then : |
631ef239 | 7352 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
042acc47 WP |
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7354 | $as_echo "yes" >&6; } | |
212380e3 | 7355 | else |
bf9bfd26 JH |
7356 | if test "x$enable_fhs_paths" = "xyes"; then : |
7357 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
7358 | else | |
7359 | logdir='${prefix}/logs' | |
7360 | fi | |
042acc47 WP |
7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7362 | $as_echo "no" >&6; } | |
bf9bfd26 JH |
7363 | fi |
7364 | ||
212380e3 | 7365 | |
7366 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7367 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
bf9bfd26 JH |
7368 | last_ac_define_dir=`eval echo $logdir` |
7369 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7370 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
7371 | last_ac_define_dir="$ac_define_dir" | |
7372 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7373 | done | |
212380e3 | 7374 | LOG_DIR="$ac_define_dir" |
7375 | ||
7376 | ||
7377 | cat >>confdefs.h <<_ACEOF | |
7378 | #define LOG_DIR "$ac_define_dir" | |
7379 | _ACEOF | |
7380 | ||
7381 | ||
7382 | ||
7383 | ||
7384 | logdir=`( | |
7385 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7386 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7387 | eval echo \""$logdir"\" | |
7388 | )` | |
7389 | ||
7390 | ||
7391 | ||
212380e3 | 7392 | |
042acc47 WP |
7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
7394 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 7395 | |
631ef239 | 7396 | # Check whether --with-helpdir was given. |
042acc47 | 7397 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 7398 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
042acc47 WP |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7400 | $as_echo "yes" >&6; } | |
212380e3 | 7401 | else |
bf9bfd26 JH |
7402 | if test "x$enable_fhs_paths" = "xyes"; then : |
7403 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
7404 | else | |
7405 | helpdir='${prefix}/help' | |
7406 | fi | |
042acc47 WP |
7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7408 | $as_echo "no" >&6; } | |
bf9bfd26 JH |
7409 | fi |
7410 | ||
212380e3 | 7411 | |
7412 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7413 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
bf9bfd26 JH |
7414 | last_ac_define_dir=`eval echo $helpdir` |
7415 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7416 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
7417 | last_ac_define_dir="$ac_define_dir" | |
7418 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7419 | done | |
212380e3 | 7420 | HELP_DIR="$ac_define_dir" |
7421 | ||
7422 | ||
7423 | cat >>confdefs.h <<_ACEOF | |
7424 | #define HELP_DIR "$ac_define_dir" | |
7425 | _ACEOF | |
7426 | ||
7427 | ||
7428 | ||
7429 | ||
7430 | helpdir=`( | |
7431 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7432 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7433 | eval echo \""$helpdir"\" | |
7434 | )` | |
7435 | ||
7436 | ||
7437 | ||
212380e3 | 7438 | |
042acc47 WP |
7439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
7440 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 7441 | |
631ef239 | 7442 | # Check whether --with-moduledir was given. |
042acc47 | 7443 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 7444 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
042acc47 WP |
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7446 | $as_echo "yes" >&6; } | |
bf9bfd26 JH |
7447 | else |
7448 | if test "x$enable_fhs_paths" = "xyes"; then : | |
7449 | moduledir='${pkglibdir}/modules' | |
7450 | else | |
7451 | moduledir='${prefix}/modules' | |
7452 | fi | |
7453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7454 | $as_echo "no" >&6; } | |
7455 | ||
7456 | fi | |
7457 | ||
212380e3 | 7458 | |
7459 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7460 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
bf9bfd26 JH |
7461 | last_ac_define_dir=`eval echo $moduledir` |
7462 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7463 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
7464 | last_ac_define_dir="$ac_define_dir" | |
7465 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7466 | done | |
212380e3 | 7467 | MODULE_DIR="$ac_define_dir" |
7468 | ||
7469 | ||
7470 | cat >>confdefs.h <<_ACEOF | |
7471 | #define MODULE_DIR "$ac_define_dir" | |
7472 | _ACEOF | |
7473 | ||
7474 | ||
7475 | ||
7476 | ||
7477 | moduledir=`( | |
7478 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7479 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7480 | eval echo \""$moduledir"\" | |
7481 | )` | |
7482 | ||
7483 | ||
bf9bfd26 JH |
7484 | |
7485 | ||
7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
7487 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
7488 | ||
7489 | # Check whether --with-rundir was given. | |
7490 | if test "${with_rundir+set}" = set; then : | |
7491 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7492 | $as_echo "yes" >&6; } | |
7493 | rundir=`echo $withval | sed 's/\/$//'` | |
212380e3 | 7494 | else |
bf9bfd26 | 7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
042acc47 | 7496 | $as_echo "no" >&6; } |
bf9bfd26 JH |
7497 | if test "x$enable_fhs_paths" = "xyes"; then : |
7498 | rundir='${prefix}/run' | |
7499 | else | |
7500 | rundir='${sysconfdir}' | |
7501 | fi | |
7502 | fi | |
7503 | ||
7504 | ||
212380e3 | 7505 | |
7506 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7507 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
bf9bfd26 JH |
7508 | last_ac_define_dir=`eval echo $pkgrundir` |
7509 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7510 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
7511 | last_ac_define_dir="$ac_define_dir" | |
7512 | ac_define_dir=`eval echo $last_ac_define_dir` | |
7513 | done | |
7514 | PKGRUNDIR="$ac_define_dir" | |
212380e3 | 7515 | |
7516 | ||
7517 | cat >>confdefs.h <<_ACEOF | |
bf9bfd26 | 7518 | #define PKGRUNDIR "$ac_define_dir" |
212380e3 | 7519 | _ACEOF |
7520 | ||
7521 | ||
7522 | ||
bf9bfd26 JH |
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 |
7524 | $as_echo_n "checking for program prefix... " >&6; } | |
212380e3 | 7525 | |
bf9bfd26 JH |
7526 | # Check whether --with-program-prefix was given. |
7527 | if test "${with_program_prefix+set}" = set; then : | |
7528 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
7529 | else | |
7530 | with_program_prefix= | |
7531 | fi | |
212380e3 | 7532 | |
bf9bfd26 JH |
7533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 |
7534 | $as_echo "\"$with_program_prefix\"" >&6; } | |
7535 | PROGRAM_PREFIX="$with_program_prefix" | |
212380e3 | 7536 | |
7537 | ||
bf9bfd26 JH |
7538 | cat >>confdefs.h <<_ACEOF |
7539 | #define PROGRAM_PREFIX "$with_program_prefix" | |
7540 | _ACEOF | |
631ef239 | 7541 | |
042acc47 WP |
7542 | |
7543 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then | |
7544 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
7545 | echo "Forcing $SELECT_TYPE to be enabled" | |
7546 | else | |
7547 | ||
7548 | if test ! "x$use_ports" = "xno"; then | |
7549 | for ac_func in port_getn | |
7550 | do : | |
7551 | ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn" | |
b540af17 | 7552 | if test "x$ac_cv_func_port_getn" = xyes; then : |
212380e3 | 7553 | cat >>confdefs.h <<_ACEOF |
042acc47 | 7554 | #define HAVE_PORT_GETN 1 |
212380e3 | 7555 | _ACEOF |
042acc47 | 7556 | haveports=yes |
212380e3 | 7557 | else |
042acc47 | 7558 | haveports=no |
212380e3 | 7559 | fi |
7560 | done | |
7561 | ||
042acc47 WP |
7562 | if test "x$haveports" = "xyes" ; then |
7563 | SELECT_TYPE="ports" | |
212380e3 | 7564 | fi |
7565 | fi | |
7566 | ||
042acc47 WP |
7567 | if test ! "x$use_select" = "xno"; then |
7568 | for ac_func in select | |
7569 | do : | |
7570 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" | |
b540af17 | 7571 | if test "x$ac_cv_func_select" = xyes; then : |
042acc47 WP |
7572 | cat >>confdefs.h <<_ACEOF |
7573 | #define HAVE_SELECT 1 | |
212380e3 | 7574 | _ACEOF |
042acc47 WP |
7575 | haveselect=yes |
7576 | else | |
7577 | haveselect=no | |
7578 | fi | |
7579 | done | |
212380e3 | 7580 | |
042acc47 WP |
7581 | if test "x$haveselect" = "xyes" ; then |
7582 | SELECT_TYPE="select" | |
7583 | fi | |
7584 | fi | |
212380e3 | 7585 | |
042acc47 WP |
7586 | if test ! "x$use_poll" = "xno"; then |
7587 | for ac_func in poll | |
7588 | do : | |
7589 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
b540af17 | 7590 | if test "x$ac_cv_func_poll" = xyes; then : |
042acc47 WP |
7591 | cat >>confdefs.h <<_ACEOF |
7592 | #define HAVE_POLL 1 | |
212380e3 | 7593 | _ACEOF |
042acc47 | 7594 | havepoll=yes |
212380e3 | 7595 | else |
042acc47 | 7596 | havepoll=no |
212380e3 | 7597 | fi |
042acc47 | 7598 | done |
631ef239 | 7599 | |
042acc47 WP |
7600 | if test "x$havepoll" = "xyes" ; then |
7601 | SELECT_TYPE="poll" | |
7602 | fi | |
212380e3 | 7603 | fi |
042acc47 WP |
7604 | |
7605 | if test ! "x$use_kqueue" = "xno"; then | |
7606 | for ac_func in kevent | |
7607 | do : | |
7608 | ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent" | |
b540af17 | 7609 | if test "x$ac_cv_func_kevent" = xyes; then : |
212380e3 | 7610 | cat >>confdefs.h <<_ACEOF |
042acc47 | 7611 | #define HAVE_KEVENT 1 |
212380e3 | 7612 | _ACEOF |
7613 | havekqueue=yes | |
7614 | else | |
7615 | havekqueue=no | |
7616 | fi | |
7617 | done | |
7618 | ||
7619 | if test "x$havekqueue" = "xyes" ; then | |
7620 | SELECT_TYPE="kqueue" | |
7621 | fi | |
7622 | fi | |
7623 | ||
7624 | if test ! "x$use_epoll" = "xno"; then | |
042acc47 WP |
7625 | for ac_func in epoll_ctl |
7626 | do : | |
7627 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b540af17 | 7628 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
212380e3 | 7629 | cat >>confdefs.h <<_ACEOF |
042acc47 | 7630 | #define HAVE_EPOLL_CTL 1 |
212380e3 | 7631 | _ACEOF |
7632 | haveepoll=yes | |
7633 | else | |
7634 | haveepoll=no | |
7635 | fi | |
7636 | done | |
7637 | ||
7638 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7639 | if test "x$haveepoll" = "xyes" ; then | |
042acc47 WP |
7640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5 |
7641 | $as_echo_n "checking for epoll support in kernel... " >&6; } | |
7642 | if test "$cross_compiling" = yes; then : | |
7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7644 | $as_echo "no" >&6; } | |
212380e3 | 7645 | else |
042acc47 | 7646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 7647 | /* end confdefs.h. */ |
7648 | #include <stdint.h> | |
7649 | #include <sys/param.h> | |
7650 | #include <sys/types.h> | |
7651 | #include <sys/epoll.h> | |
7652 | #include <sys/syscall.h> | |
7653 | #include <unistd.h> | |
7654 | ||
7655 | int | |
7656 | main(int argc, char **argv) | |
7657 | { | |
7658 | int epfd; | |
7659 | ||
7660 | epfd = epoll_create(256); | |
56efe974 | 7661 | return (epfd == -1 ? 1 : 0); |
212380e3 | 7662 | } |
7663 | _ACEOF | |
042acc47 WP |
7664 | if ac_fn_c_try_run "$LINENO"; then : |
7665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7666 | $as_echo "yes" >&6; } | |
212380e3 | 7667 | |
042acc47 | 7668 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 | 7669 | |
7670 | SELECT_TYPE="epoll" | |
7671 | else | |
042acc47 WP |
7672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7673 | $as_echo "no" >&6; } | |
212380e3 | 7674 | fi |
042acc47 WP |
7675 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7676 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 7677 | fi |
631ef239 | 7678 | |
212380e3 | 7679 | fi |
7680 | fi | |
7681 | ||
7682 | haveepollsyscall=no | |
7683 | ||
7684 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7685 | if test "x$haveepoll" = "xno" ; then | |
042acc47 WP |
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 |
7687 | $as_echo_n "checking for epoll system call... " >&6; } | |
7688 | if test "$cross_compiling" = yes; then : | |
7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7690 | $as_echo "no" >&6; } | |
212380e3 | 7691 | else |
042acc47 | 7692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 7693 | /* end confdefs.h. */ |
7694 | #include <stdint.h> | |
7695 | #include <sys/param.h> | |
7696 | #include <sys/types.h> | |
7697 | #include <sys/epoll.h> | |
7698 | #include <sys/syscall.h> | |
7699 | #include <unistd.h> | |
7700 | ||
7701 | int | |
7702 | epoll_create(int size) | |
7703 | { | |
7704 | return (syscall(__NR_epoll_create, size)); | |
7705 | } | |
7706 | ||
7707 | int | |
7708 | main(int argc, char **argv) | |
7709 | { | |
7710 | int epfd; | |
7711 | ||
7712 | epfd = epoll_create(256); | |
7713 | exit (epfd == -1 ? 1 : 0); | |
7714 | } | |
7715 | _ACEOF | |
042acc47 WP |
7716 | if ac_fn_c_try_run "$LINENO"; then : |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7718 | $as_echo "yes" >&6; } | |
212380e3 | 7719 | |
042acc47 | 7720 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 | 7721 | |
7722 | SELECT_TYPE="epoll" | |
7723 | else | |
042acc47 WP |
7724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7725 | $as_echo "no" >&6; } | |
212380e3 | 7726 | fi |
042acc47 WP |
7727 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7728 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 7729 | fi |
631ef239 | 7730 | |
212380e3 | 7731 | fi |
7732 | fi | |
7733 | ||
7734 | fi | |
7735 | ||
7736 | fi | |
7737 | ||
7738 | if test -z "$SELECT_TYPE"; then | |
b540af17 | 7739 | as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5 |
212380e3 | 7740 | fi |
7741 | ||
7742 | echo "Using $SELECT_TYPE for select loop." | |
7743 | ||
7744 | ||
7745 | cat >>confdefs.h <<_ACEOF | |
7746 | #define SELECT_TYPE "$SELECT_TYPE" | |
7747 | _ACEOF | |
7748 | ||
7749 | ||
7750 | ||
7751 | ||
7752 | ||
631ef239 | 7753 | # Check whether --enable-assert was given. |
042acc47 | 7754 | if test "${enable_assert+set}" = set; then : |
631ef239 | 7755 | enableval=$enable_assert; assert=$enableval |
212380e3 | 7756 | else |
7757 | assert=no | |
631ef239 | 7758 | fi |
7759 | ||
212380e3 | 7760 | |
7761 | if test "$assert" = no; then | |
7762 | ||
042acc47 | 7763 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 | 7764 | |
7765 | elif test "$assert" = soft; then | |
7766 | ||
042acc47 | 7767 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 | 7768 | |
7769 | ||
042acc47 | 7770 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 | 7771 | |
7772 | elif test "$assert" = yes; then | |
7773 | assert = "hard"; | |
7774 | fi | |
7775 | ||
042acc47 WP |
7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
7777 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 7778 | # Check whether --enable-iodebug was given. |
042acc47 | 7779 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 7780 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 | 7781 | else |
7782 | iodebug=no | |
631ef239 | 7783 | fi |
7784 | ||
212380e3 | 7785 | |
7786 | if test "$iodebug" = yes; then | |
7787 | ||
042acc47 | 7788 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 7789 | |
042acc47 WP |
7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7791 | $as_echo "yes" >&6; } | |
212380e3 | 7792 | else |
042acc47 WP |
7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7794 | $as_echo "no" >&6; } | |
212380e3 | 7795 | fi |
7796 | ||
7797 | ||
042acc47 WP |
7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
7799 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 7800 | # Check whether --enable-profile was given. |
042acc47 | 7801 | if test "${enable_profile+set}" = set; then : |
631ef239 | 7802 | enableval=$enable_profile; profile=$enableval |
212380e3 | 7803 | else |
7804 | profile=no | |
631ef239 | 7805 | fi |
7806 | ||
212380e3 | 7807 | |
7808 | if test "$profile" = yes; then | |
7809 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7810 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
042acc47 WP |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
7812 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 7813 | |
042acc47 | 7814 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 | 7815 | |
7816 | else | |
042acc47 WP |
7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
7818 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 | 7819 | fi |
7820 | else | |
042acc47 WP |
7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7822 | $as_echo "no" >&6; } | |
212380e3 | 7823 | fi |
7824 | ||
631ef239 | 7825 | # Check whether --enable-balloc was given. |
042acc47 | 7826 | if test "${enable_balloc+set}" = set; then : |
631ef239 | 7827 | enableval=$enable_balloc; balloc=$enableval |
212380e3 | 7828 | else |
7829 | balloc=yes | |
631ef239 | 7830 | fi |
7831 | ||
212380e3 | 7832 | |
7833 | if test "$balloc" = no; then | |
7834 | ||
042acc47 | 7835 | $as_echo "#define NOBALLOC 1" >>confdefs.h |
212380e3 | 7836 | |
7837 | fi | |
7838 | ||
631ef239 | 7839 | # Check whether --enable-small-net was given. |
042acc47 | 7840 | if test "${enable_small_net+set}" = set; then : |
631ef239 | 7841 | enableval=$enable_small_net; small_net=$enableval |
212380e3 | 7842 | else |
9960cc94 | 7843 | small_net=yes |
631ef239 | 7844 | fi |
7845 | ||
212380e3 | 7846 | |
7847 | if test "$small_net" = yes; then | |
7848 | ||
042acc47 | 7849 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
212380e3 | 7850 | |
7851 | ||
042acc47 | 7852 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
212380e3 | 7853 | |
7854 | ||
042acc47 | 7855 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 7856 | |
7857 | ||
042acc47 | 7858 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 | 7859 | |
7860 | ||
042acc47 | 7861 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 7862 | |
7863 | ||
042acc47 | 7864 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h |
212380e3 | 7865 | |
7866 | ||
042acc47 | 7867 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 7868 | |
7869 | ||
042acc47 | 7870 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
212380e3 | 7871 | |
7872 | ||
042acc47 | 7873 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
212380e3 | 7874 | |
7875 | ||
042acc47 | 7876 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 7877 | |
7878 | ||
042acc47 | 7879 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h |
212380e3 | 7880 | |
7881 | ||
042acc47 | 7882 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 7883 | |
7884 | ||
042acc47 | 7885 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 7886 | |
7887 | ||
042acc47 | 7888 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 7889 | |
f99c7b64 | 7890 | |
042acc47 | 7891 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h |
304ded95 WP |
7892 | |
7893 | ||
042acc47 | 7894 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h |
f99c7b64 | 7895 | |
212380e3 | 7896 | else |
7897 | ||
042acc47 | 7898 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 | 7899 | |
7900 | ||
042acc47 | 7901 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 | 7902 | |
7903 | ||
042acc47 | 7904 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 | 7905 | |
7906 | ||
042acc47 | 7907 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 | 7908 | |
7909 | ||
042acc47 | 7910 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 7911 | |
7912 | ||
042acc47 | 7913 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 | 7914 | |
7915 | ||
042acc47 | 7916 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 | 7917 | |
7918 | ||
042acc47 | 7919 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 | 7920 | |
7921 | ||
042acc47 | 7922 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 | 7923 | |
7924 | ||
042acc47 | 7925 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 | 7926 | |
7927 | ||
042acc47 | 7928 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 | 7929 | |
7930 | ||
042acc47 | 7931 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 | 7932 | |
7933 | ||
042acc47 | 7934 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 | 7935 | |
7936 | ||
042acc47 | 7937 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 7938 | |
f99c7b64 | 7939 | |
042acc47 | 7940 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
304ded95 WP |
7941 | |
7942 | ||
042acc47 | 7943 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f99c7b64 | 7944 | |
212380e3 | 7945 | fi |
7946 | ||
7947 | ||
631ef239 | 7948 | # Check whether --with-nicklen was given. |
042acc47 | 7949 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 7950 | withval=$with_nicklen; |
e5c20eb2 | 7951 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b540af17 | 7952 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
e5c20eb2 | 7953 | fi |
212380e3 | 7954 | if test $withval -ge 50; then |
7955 | NICKLEN=50 | |
042acc47 WP |
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
7957 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
212380e3 | 7958 | else |
7959 | NICKLEN="$withval" | |
7960 | fi | |
7961 | ||
7962 | else | |
6b77736a | 7963 | NICKLEN=31 |
631ef239 | 7964 | fi |
212380e3 | 7965 | |
7966 | ||
212380e3 | 7967 | |
631ef239 | 7968 | # Check whether --with-topiclen was given. |
042acc47 | 7969 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 7970 | withval=$with_topiclen; |
212380e3 | 7971 | if test $withval -ge 390; then |
7972 | TOPICLEN=390 | |
042acc47 WP |
7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
7974 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 | 7975 | else |
7976 | TOPICLEN=$withval | |
7977 | fi | |
7978 | ||
7979 | else | |
7980 | TOPICLEN=390 | |
212380e3 | 7981 | fi |
7982 | ||
212380e3 | 7983 | |
7984 | ||
7985 | cat >>confdefs.h <<_ACEOF | |
7986 | #define TOPICLEN ${TOPICLEN} | |
7987 | _ACEOF | |
7988 | ||
7989 | ||
7990 | cat >>confdefs.h <<_ACEOF | |
7991 | #define NICKLEN (${NICKLEN}+1) | |
7992 | _ACEOF | |
7993 | ||
7994 | ||
56efe974 | 7995 | shared_modules="yes" |
212380e3 | 7996 | if test "$shared_modules" = yes; then |
212380e3 | 7997 | if test "$CC" = tcc -a "$TenDRA" = "no"; then |
042acc47 WP |
7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 |
7999 | $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
212380e3 | 8000 | shared_modules="no" |
8001 | fi | |
8002 | fi | |
8003 | ||
8004 | if test "$shared_modules" = yes; then | |
042acc47 WP |
8005 | DYNLINK_C=dynlink.c |
8006 | for ac_header in dlfcn.h | |
8007 | do : | |
8008 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
b540af17 | 8009 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
212380e3 | 8010 | cat >>confdefs.h <<_ACEOF |
042acc47 | 8011 | #define HAVE_DLFCN_H 1 |
212380e3 | 8012 | _ACEOF |
8013 | ||
8014 | fi | |
8015 | ||
8016 | done | |
8017 | ||
042acc47 WP |
8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 |
8019 | $as_echo_n "checking for library containing shl_load... " >&6; } | |
b540af17 | 8020 | if ${ac_cv_search_shl_load+:} false; then : |
042acc47 | 8021 | $as_echo_n "(cached) " >&6 |
212380e3 | 8022 | else |
8023 | ac_func_search_save_LIBS=$LIBS | |
042acc47 | 8024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8025 | /* end confdefs.h. */ |
8026 | ||
631ef239 | 8027 | /* Override any GCC internal prototype to avoid an error. |
8028 | Use char because int might match the return type of a GCC | |
8029 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 8030 | #ifdef __cplusplus |
8031 | extern "C" | |
8032 | #endif | |
212380e3 | 8033 | char shl_load (); |
8034 | int | |
8035 | main () | |
8036 | { | |
631ef239 | 8037 | return shl_load (); |
212380e3 | 8038 | ; |
8039 | return 0; | |
8040 | } | |
8041 | _ACEOF | |
631ef239 | 8042 | for ac_lib in '' dld; do |
8043 | if test -z "$ac_lib"; then | |
8044 | ac_res="none required" | |
8045 | else | |
8046 | ac_res=-l$ac_lib | |
8047 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8048 | fi | |
042acc47 | 8049 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8050 | ac_cv_search_shl_load=$ac_res |
631ef239 | 8051 | fi |
042acc47 WP |
8052 | rm -f core conftest.err conftest.$ac_objext \ |
8053 | conftest$ac_exeext | |
b540af17 | 8054 | if ${ac_cv_search_shl_load+:} false; then : |
631ef239 | 8055 | break |
212380e3 | 8056 | fi |
631ef239 | 8057 | done |
b540af17 | 8058 | if ${ac_cv_search_shl_load+:} false; then : |
042acc47 | 8059 | |
631ef239 | 8060 | else |
8061 | ac_cv_search_shl_load=no | |
212380e3 | 8062 | fi |
631ef239 | 8063 | rm conftest.$ac_ext |
212380e3 | 8064 | LIBS=$ac_func_search_save_LIBS |
8065 | fi | |
042acc47 WP |
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 |
8067 | $as_echo "$ac_cv_search_shl_load" >&6; } | |
631ef239 | 8068 | ac_res=$ac_cv_search_shl_load |
042acc47 | 8069 | if test "$ac_res" != no; then : |
631ef239 | 8070 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 | 8071 | |
8072 | ||
042acc47 | 8073 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 | 8074 | |
8075 | SUFFIX=".sl" | |
8076 | MOD_TARGET=hpux_shared | |
8077 | SEDOBJ="s/\.o/.sl/g" | |
8078 | ||
8079 | else | |
8080 | ||
042acc47 WP |
8081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
8082 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
b540af17 | 8083 | if ${ac_cv_search_dlopen+:} false; then : |
042acc47 | 8084 | $as_echo_n "(cached) " >&6 |
212380e3 | 8085 | else |
8086 | ac_func_search_save_LIBS=$LIBS | |
042acc47 | 8087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8088 | /* end confdefs.h. */ |
8089 | ||
631ef239 | 8090 | /* Override any GCC internal prototype to avoid an error. |
8091 | Use char because int might match the return type of a GCC | |
8092 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 8093 | #ifdef __cplusplus |
8094 | extern "C" | |
8095 | #endif | |
212380e3 | 8096 | char dlopen (); |
8097 | int | |
8098 | main () | |
8099 | { | |
631ef239 | 8100 | return dlopen (); |
212380e3 | 8101 | ; |
8102 | return 0; | |
8103 | } | |
8104 | _ACEOF | |
631ef239 | 8105 | for ac_lib in '' dl c_r; do |
8106 | if test -z "$ac_lib"; then | |
8107 | ac_res="none required" | |
8108 | else | |
8109 | ac_res=-l$ac_lib | |
8110 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8111 | fi | |
042acc47 | 8112 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8113 | ac_cv_search_dlopen=$ac_res |
631ef239 | 8114 | fi |
042acc47 WP |
8115 | rm -f core conftest.err conftest.$ac_objext \ |
8116 | conftest$ac_exeext | |
b540af17 | 8117 | if ${ac_cv_search_dlopen+:} false; then : |
631ef239 | 8118 | break |
212380e3 | 8119 | fi |
631ef239 | 8120 | done |
b540af17 | 8121 | if ${ac_cv_search_dlopen+:} false; then : |
042acc47 | 8122 | |
631ef239 | 8123 | else |
8124 | ac_cv_search_dlopen=no | |
212380e3 | 8125 | fi |
631ef239 | 8126 | rm conftest.$ac_ext |
212380e3 | 8127 | LIBS=$ac_func_search_save_LIBS |
8128 | fi | |
042acc47 WP |
8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
8130 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
631ef239 | 8131 | ac_res=$ac_cv_search_dlopen |
042acc47 | 8132 | if test "$ac_res" != no; then : |
631ef239 | 8133 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 | 8134 | |
8135 | ||
042acc47 | 8136 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
212380e3 | 8137 | |
8138 | SUFFIX=".so" | |
8139 | MOD_TARGET=shared_modules | |
8140 | SEDOBJ="s/\.o/.so/g" | |
8141 | if test "$AppleGCC" = yes; then | |
042acc47 WP |
8142 | for ac_header in mach-o/dyld.h |
8143 | do : | |
8144 | ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" | |
b540af17 | 8145 | if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : |
212380e3 | 8146 | cat >>confdefs.h <<_ACEOF |
042acc47 | 8147 | #define HAVE_MACH_O_DYLD_H 1 |
212380e3 | 8148 | _ACEOF |
8149 | ||
8150 | fi | |
8151 | ||
8152 | done | |
8153 | ||
8154 | fi | |
042acc47 | 8155 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" |
b540af17 | 8156 | if test "x$ac_cv_func_dlsym" = xyes; then : |
631ef239 | 8157 | |
212380e3 | 8158 | else |
8159 | ||
042acc47 WP |
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5 |
8161 | $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
212380e3 | 8162 | shared_modules=no |
8163 | ||
8164 | fi | |
8165 | ||
042acc47 WP |
8166 | for ac_func in dlfunc |
8167 | do : | |
8168 | ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc" | |
b540af17 | 8169 | if test "x$ac_cv_func_dlfunc" = xyes; then : |
212380e3 | 8170 | cat >>confdefs.h <<_ACEOF |
042acc47 | 8171 | #define HAVE_DLFUNC 1 |
212380e3 | 8172 | _ACEOF |
8173 | ||
8174 | fi | |
8175 | done | |
8176 | ||
8177 | ||
8178 | else | |
8179 | ||
8180 | shared_modules=no | |
8181 | ||
8182 | fi | |
8183 | ||
8184 | ||
8185 | fi | |
8186 | ||
8187 | fi | |
8188 | ||
8189 | ||
8190 | cat >>confdefs.h <<_ACEOF | |
8191 | #define SHARED_SUFFIX "$SUFFIX" | |
8192 | _ACEOF | |
8193 | ||
8194 | ||
8195 | if test "$shared_modules" = yes; then | |
8196 | # The GNU linker requires the -export-dynamic option to make | |
8197 | # all symbols visible in the dynamic symbol table. | |
8198 | hold_ldflags=$LDFLAGS | |
042acc47 WP |
8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5 |
8200 | $as_echo_n "checking for the ld -export-dynamic flag... " >&6; } | |
212380e3 | 8201 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
042acc47 | 8202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8203 | /* end confdefs.h. */ |
8204 | ||
8205 | int | |
8206 | main () | |
8207 | { | |
8208 | int i; | |
8209 | ; | |
8210 | return 0; | |
8211 | } | |
8212 | _ACEOF | |
042acc47 | 8213 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 | 8214 | found=yes |
8215 | else | |
042acc47 | 8216 | found=no |
212380e3 | 8217 | fi |
042acc47 WP |
8218 | rm -f core conftest.err conftest.$ac_objext \ |
8219 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 8220 | LDFLAGS=$hold_ldflags |
8221 | ||
8222 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
8223 | found="no, IRIX ld uses -B,dynamic" | |
8224 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
8225 | fi | |
8226 | ||
8227 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
8228 | found="no, AIX ld uses -G -brtl" | |
8229 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
8230 | fi | |
8231 | ||
042acc47 WP |
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8233 | $as_echo "$found" >&6; } | |
212380e3 | 8234 | |
8235 | if test "$found" = yes; then | |
8236 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
8237 | fi | |
8238 | ||
042acc47 WP |
8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5 |
8240 | $as_echo_n "checking for compiler option to produce PIC... " >&6; } | |
212380e3 | 8241 | if test "$SGS" = "yes"; then |
042acc47 WP |
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
8243 | $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 | 8244 | PICFLAGS="-KPIC -DPIC -G" |
8245 | fi | |
8246 | ||
8247 | if test "$AppleGCC" = "yes"; then | |
042acc47 WP |
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
8249 | $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 | 8250 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
8251 | fi | |
8252 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
042acc47 WP |
8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5 |
8254 | $as_echo "HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 8255 | PICFLAGS="+z -r -q -n -c" |
042acc47 WP |
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5 |
8257 | $as_echo_n "checking if +ESfic is required on this platform... " >&6; } | |
212380e3 | 8258 | |
8259 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
042acc47 WP |
8260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8261 | $as_echo "no" >&6; } | |
212380e3 | 8262 | else |
042acc47 WP |
8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8264 | $as_echo "yes" >&6; } | |
212380e3 | 8265 | PICFLAGS="$PICFLAGS +ESfic" |
8266 | fi | |
8267 | ||
8268 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
8269 | fi | |
8270 | if test "$Tru" = yes -a "$CC" != gcc; then | |
042acc47 WP |
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5 |
8272 | $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 | 8273 | PICFLAGS="-shared -expect_unresolved '*' " |
8274 | LDFLAGS="-call_shared" | |
8275 | fi | |
8276 | if test -z "$PICFLAGS"; then | |
8277 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
042acc47 WP |
8278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5 |
8279 | $as_echo "gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 | 8280 | PICFLAGS="-fPIC -DPIC -shared" |
8281 | else | |
042acc47 WP |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8283 | $as_echo "no" >&6; } | |
212380e3 | 8284 | shared_modules=no |
8285 | fi | |
8286 | fi | |
8287 | fi | |
8288 | ||
c1309303 JT |
8289 | # rpath, for finding libratbox.so at run time |
8290 | hold_ldflags=$LDFLAGS | |
042acc47 WP |
8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
8292 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
c1309303 | 8293 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
042acc47 | 8294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c1309303 JT |
8295 | /* end confdefs.h. */ |
8296 | ||
8297 | int | |
8298 | main () | |
8299 | { | |
8300 | int i; | |
8301 | ; | |
8302 | return 0; | |
8303 | } | |
8304 | _ACEOF | |
042acc47 | 8305 | if ac_fn_c_try_link "$LINENO"; then : |
c1309303 JT |
8306 | found=yes |
8307 | else | |
042acc47 | 8308 | found=no |
c1309303 | 8309 | fi |
042acc47 WP |
8310 | rm -f core conftest.err conftest.$ac_objext \ |
8311 | conftest$ac_exeext conftest.$ac_ext | |
c1309303 | 8312 | LDFLAGS=$hold_ldflags |
042acc47 WP |
8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8314 | $as_echo "$found" >&6; } | |
c1309303 JT |
8315 | if test "$found" = yes; then |
8316 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
8317 | fi | |
8318 | ||
212380e3 | 8319 | # This must be down here, or it will mess up checks like the ones |
8320 | # for -Wl,-export-dynamic | |
8321 | # -- jilles | |
a8001fa5 | 8322 | CWARNS="" |
631ef239 | 8323 | # Check whether --enable-warnings was given. |
042acc47 | 8324 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 8325 | enableval=$enable_warnings; |
212380e3 | 8326 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
8327 | CFLAGS="$IRC_CFLAGS" | |
8328 | ||
8329 | ||
042acc47 WP |
8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
8331 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 | 8332 | if test "${GCC-no}" = yes |
8333 | then | |
b540af17 | 8334 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
042acc47 | 8335 | $as_echo_n "(cached) " >&6 |
212380e3 | 8336 | else |
8337 | ||
8338 | oldcflags="${CFLAGS-}" | |
8339 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
042acc47 | 8340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8341 | /* end confdefs.h. */ |
8342 | ||
8343 | #include <string.h> | |
8344 | #include <stdio.h> | |
8345 | int main(void); | |
8346 | ||
8347 | int | |
8348 | main () | |
8349 | { | |
8350 | ||
b1fc1658 | 8351 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8352 | |
8353 | ; | |
8354 | return 0; | |
8355 | } | |
8356 | _ACEOF | |
042acc47 | 8357 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8358 | charybdis_cv_c_gcc_w_all=yes |
8359 | else | |
042acc47 | 8360 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 8361 | fi |
631ef239 | 8362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8363 | CFLAGS="${oldcflags}" |
8364 | fi | |
8365 | ||
8366 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
8367 | CWARNS="${CWARNS}-Wall " | |
042acc47 WP |
8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8369 | $as_echo "ok" >&6; } | |
212380e3 | 8370 | else |
8371 | charybdis_cv_c_gcc_w_all='' | |
042acc47 WP |
8372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8373 | $as_echo "no" >&6; } | |
212380e3 | 8374 | fi |
8375 | else | |
042acc47 WP |
8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8377 | $as_echo "no" >&6; } | |
212380e3 | 8378 | fi |
8379 | ||
8380 | ||
042acc47 WP |
8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
8382 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 | 8383 | if test "${GCC-no}" = yes |
8384 | then | |
b540af17 | 8385 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
042acc47 | 8386 | $as_echo_n "(cached) " >&6 |
212380e3 | 8387 | else |
8388 | ||
8389 | oldcflags="${CFLAGS-}" | |
8390 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
042acc47 | 8391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8392 | /* end confdefs.h. */ |
8393 | ||
8394 | #include <string.h> | |
8395 | #include <stdio.h> | |
8396 | int main(void); | |
8397 | ||
8398 | int | |
8399 | main () | |
8400 | { | |
8401 | ||
b1fc1658 | 8402 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8403 | |
8404 | ; | |
8405 | return 0; | |
8406 | } | |
8407 | _ACEOF | |
042acc47 | 8408 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8409 | charybdis_cv_c_gcc_w_pointer_arith=yes |
8410 | else | |
042acc47 | 8411 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 8412 | fi |
631ef239 | 8413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8414 | CFLAGS="${oldcflags}" |
8415 | fi | |
8416 | ||
8417 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
8418 | CWARNS="${CWARNS}-Wpointer-arith " | |
042acc47 WP |
8419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8420 | $as_echo "ok" >&6; } | |
212380e3 | 8421 | else |
8422 | charybdis_cv_c_gcc_w_pointer_arith='' | |
042acc47 WP |
8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8424 | $as_echo "no" >&6; } | |
212380e3 | 8425 | fi |
8426 | else | |
042acc47 WP |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8428 | $as_echo "no" >&6; } | |
212380e3 | 8429 | fi |
8430 | ||
8431 | ||
042acc47 WP |
8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
8433 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 | 8434 | if test "${GCC-no}" = yes |
8435 | then | |
b540af17 | 8436 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
042acc47 | 8437 | $as_echo_n "(cached) " >&6 |
212380e3 | 8438 | else |
8439 | ||
8440 | oldcflags="${CFLAGS-}" | |
8441 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
042acc47 | 8442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8443 | /* end confdefs.h. */ |
8444 | ||
8445 | #include <string.h> | |
8446 | #include <stdio.h> | |
8447 | int main(void); | |
8448 | ||
8449 | int | |
8450 | main () | |
8451 | { | |
8452 | ||
b1fc1658 | 8453 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8454 | |
8455 | ; | |
8456 | return 0; | |
8457 | } | |
8458 | _ACEOF | |
042acc47 | 8459 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8460 | charybdis_cv_c_gcc_w_implicit=yes |
8461 | else | |
042acc47 | 8462 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 8463 | fi |
631ef239 | 8464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8465 | CFLAGS="${oldcflags}" |
8466 | fi | |
8467 | ||
8468 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
8469 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
042acc47 WP |
8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8471 | $as_echo "ok" >&6; } | |
212380e3 | 8472 | else |
8473 | charybdis_cv_c_gcc_w_implicit='' | |
042acc47 WP |
8474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8475 | $as_echo "no" >&6; } | |
212380e3 | 8476 | fi |
8477 | else | |
042acc47 WP |
8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8479 | $as_echo "no" >&6; } | |
212380e3 | 8480 | fi |
8481 | ||
8482 | ||
042acc47 WP |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
8484 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 | 8485 | if test "${GCC-no}" = yes |
8486 | then | |
b540af17 | 8487 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
042acc47 | 8488 | $as_echo_n "(cached) " >&6 |
212380e3 | 8489 | else |
8490 | ||
8491 | oldcflags="${CFLAGS-}" | |
8492 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
042acc47 | 8493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8494 | /* end confdefs.h. */ |
8495 | ||
8496 | #include <string.h> | |
8497 | #include <stdio.h> | |
8498 | int main(void); | |
8499 | ||
8500 | int | |
8501 | main () | |
8502 | { | |
8503 | ||
b1fc1658 | 8504 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
042acc47 WP |
8505 | |
8506 | ; | |
8507 | return 0; | |
8508 | } | |
8509 | _ACEOF | |
8510 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 | 8511 | charybdis_cv_c_gcc_w_cast_align=yes |
8512 | else | |
042acc47 | 8513 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 8514 | fi |
631ef239 | 8515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8516 | CFLAGS="${oldcflags}" |
8517 | fi | |
8518 | ||
8519 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
8520 | CWARNS="${CWARNS}-Wcast-align " | |
042acc47 WP |
8521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8522 | $as_echo "ok" >&6; } | |
212380e3 | 8523 | else |
8524 | charybdis_cv_c_gcc_w_cast_align='' | |
042acc47 WP |
8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8526 | $as_echo "no" >&6; } | |
212380e3 | 8527 | fi |
8528 | else | |
042acc47 WP |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8530 | $as_echo "no" >&6; } | |
212380e3 | 8531 | fi |
8532 | ||
8533 | ||
042acc47 WP |
8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
8535 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 | 8536 | if test "${GCC-no}" = yes |
8537 | then | |
b540af17 | 8538 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
042acc47 | 8539 | $as_echo_n "(cached) " >&6 |
212380e3 | 8540 | else |
8541 | ||
8542 | oldcflags="${CFLAGS-}" | |
8543 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
042acc47 | 8544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8545 | /* end confdefs.h. */ |
8546 | ||
8547 | #include <string.h> | |
8548 | #include <stdio.h> | |
8549 | int main(void); | |
8550 | ||
8551 | int | |
8552 | main () | |
8553 | { | |
8554 | ||
b1fc1658 | 8555 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8556 | |
8557 | ; | |
8558 | return 0; | |
8559 | } | |
8560 | _ACEOF | |
042acc47 | 8561 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8562 | charybdis_cv_c_gcc_w_cast_qual=yes |
8563 | else | |
042acc47 | 8564 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 8565 | fi |
631ef239 | 8566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8567 | CFLAGS="${oldcflags}" |
8568 | fi | |
8569 | ||
8570 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
8571 | CWARNS="${CWARNS}-Wcast-qual " | |
042acc47 WP |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8573 | $as_echo "ok" >&6; } | |
212380e3 | 8574 | else |
8575 | charybdis_cv_c_gcc_w_cast_qual='' | |
042acc47 WP |
8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8577 | $as_echo "no" >&6; } | |
212380e3 | 8578 | fi |
8579 | else | |
042acc47 WP |
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8581 | $as_echo "no" >&6; } | |
212380e3 | 8582 | fi |
8583 | ||
8584 | ||
042acc47 WP |
8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
8586 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
a8001fa5 JT |
8587 | if test "${GCC-no}" = yes |
8588 | then | |
b540af17 | 8589 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
042acc47 | 8590 | $as_echo_n "(cached) " >&6 |
a8001fa5 JT |
8591 | else |
8592 | ||
8593 | oldcflags="${CFLAGS-}" | |
8594 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
042acc47 | 8595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8001fa5 JT |
8596 | /* end confdefs.h. */ |
8597 | ||
8598 | #include <string.h> | |
8599 | #include <stdio.h> | |
8600 | int main(void); | |
8601 | ||
8602 | int | |
8603 | main () | |
8604 | { | |
8605 | ||
8606 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8607 | ||
8608 | ; | |
8609 | return 0; | |
8610 | } | |
8611 | _ACEOF | |
042acc47 | 8612 | if ac_fn_c_try_compile "$LINENO"; then : |
40b8b28e | 8613 | charybdis_cv_c_gcc_w_write_strings=yes |
a8001fa5 | 8614 | else |
042acc47 | 8615 | charybdis_cv_c_gcc_w_write_strings=no |
a8001fa5 | 8616 | fi |
a8001fa5 JT |
8617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8618 | CFLAGS="${oldcflags}" | |
8619 | fi | |
8620 | ||
40b8b28e | 8621 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
a8001fa5 | 8622 | CWARNS="${CWARNS}-Wwrite-strings " |
042acc47 WP |
8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8624 | $as_echo "ok" >&6; } | |
a8001fa5 | 8625 | else |
40b8b28e | 8626 | charybdis_cv_c_gcc_w_write_strings='' |
042acc47 WP |
8627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8628 | $as_echo "no" >&6; } | |
40b8b28e VY |
8629 | fi |
8630 | else | |
042acc47 WP |
8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8632 | $as_echo "no" >&6; } | |
40b8b28e VY |
8633 | fi |
8634 | ||
8635 | ||
042acc47 WP |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
8637 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
40b8b28e VY |
8638 | if test "${GCC-no}" = yes |
8639 | then | |
b540af17 | 8640 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
042acc47 | 8641 | $as_echo_n "(cached) " >&6 |
40b8b28e VY |
8642 | else |
8643 | ||
8644 | oldcflags="${CFLAGS-}" | |
8645 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
042acc47 | 8646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
40b8b28e VY |
8647 | /* end confdefs.h. */ |
8648 | ||
8649 | #include <string.h> | |
8650 | #include <stdio.h> | |
8651 | int main(void); | |
8652 | ||
8653 | int | |
8654 | main () | |
8655 | { | |
8656 | ||
8657 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8658 | ||
8659 | ; | |
8660 | return 0; | |
8661 | } | |
8662 | _ACEOF | |
042acc47 | 8663 | if ac_fn_c_try_compile "$LINENO"; then : |
40b8b28e VY |
8664 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
8665 | else | |
042acc47 | 8666 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
40b8b28e | 8667 | fi |
40b8b28e VY |
8668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8669 | CFLAGS="${oldcflags}" | |
8670 | fi | |
8671 | ||
8672 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
8673 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
042acc47 WP |
8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8675 | $as_echo "ok" >&6; } | |
40b8b28e VY |
8676 | else |
8677 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
042acc47 WP |
8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8679 | $as_echo "no" >&6; } | |
a8001fa5 JT |
8680 | fi |
8681 | else | |
042acc47 WP |
8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8683 | $as_echo "no" >&6; } | |
a8001fa5 JT |
8684 | fi |
8685 | ||
8686 | ||
042acc47 WP |
8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
8688 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 | 8689 | if test "${GCC-no}" = yes |
8690 | then | |
b540af17 | 8691 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
042acc47 | 8692 | $as_echo_n "(cached) " >&6 |
212380e3 | 8693 | else |
8694 | ||
8695 | oldcflags="${CFLAGS-}" | |
8696 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
042acc47 | 8697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8698 | /* end confdefs.h. */ |
8699 | ||
8700 | #include <string.h> | |
8701 | #include <stdio.h> | |
8702 | int main(void); | |
8703 | ||
8704 | int | |
8705 | main () | |
8706 | { | |
8707 | ||
b1fc1658 | 8708 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8709 | |
8710 | ; | |
8711 | return 0; | |
8712 | } | |
8713 | _ACEOF | |
042acc47 | 8714 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8715 | charybdis_cv_c_gcc_prototypes=yes |
8716 | else | |
042acc47 | 8717 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 8718 | fi |
631ef239 | 8719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8720 | CFLAGS="${oldcflags}" |
8721 | fi | |
8722 | ||
8723 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
8724 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
042acc47 WP |
8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8726 | $as_echo "ok" >&6; } | |
212380e3 | 8727 | else |
8728 | charybdis_cv_c_gcc_prototypes='' | |
042acc47 WP |
8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8730 | $as_echo "no" >&6; } | |
212380e3 | 8731 | fi |
8732 | else | |
042acc47 WP |
8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8734 | $as_echo "no" >&6; } | |
212380e3 | 8735 | fi |
8736 | ||
8737 | ||
042acc47 WP |
8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
8739 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 | 8740 | if test "${GCC-no}" = yes |
8741 | then | |
b540af17 | 8742 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
042acc47 | 8743 | $as_echo_n "(cached) " >&6 |
212380e3 | 8744 | else |
8745 | ||
8746 | oldcflags="${CFLAGS-}" | |
8747 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
042acc47 | 8748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8749 | /* end confdefs.h. */ |
8750 | ||
8751 | #include <string.h> | |
8752 | #include <stdio.h> | |
8753 | int main(void); | |
8754 | ||
8755 | int | |
8756 | main () | |
8757 | { | |
8758 | ||
b1fc1658 | 8759 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8760 | |
8761 | ; | |
8762 | return 0; | |
8763 | } | |
8764 | _ACEOF | |
042acc47 | 8765 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8766 | charybdis_cv_c_gcc_parenthesis=yes |
8767 | else | |
042acc47 | 8768 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 8769 | fi |
631ef239 | 8770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8771 | CFLAGS="${oldcflags}" |
8772 | fi | |
8773 | ||
8774 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
8775 | CWARNS="${CWARNS}-Wparenthesis " | |
042acc47 WP |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8777 | $as_echo "ok" >&6; } | |
212380e3 | 8778 | else |
8779 | charybdis_cv_c_gcc_parenthesis='' | |
042acc47 WP |
8780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8781 | $as_echo "no" >&6; } | |
212380e3 | 8782 | fi |
8783 | else | |
042acc47 WP |
8784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8785 | $as_echo "no" >&6; } | |
212380e3 | 8786 | fi |
8787 | ||
8788 | ||
042acc47 WP |
8789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
8790 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 | 8791 | if test "${GCC-no}" = yes |
8792 | then | |
b540af17 | 8793 | if ${charybdis_cv_c_gcc_w+:} false; then : |
042acc47 | 8794 | $as_echo_n "(cached) " >&6 |
212380e3 | 8795 | else |
8796 | ||
8797 | oldcflags="${CFLAGS-}" | |
8798 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
042acc47 | 8799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8800 | /* end confdefs.h. */ |
8801 | ||
8802 | #include <string.h> | |
8803 | #include <stdio.h> | |
8804 | int main(void); | |
8805 | ||
8806 | int | |
8807 | main () | |
8808 | { | |
8809 | ||
b1fc1658 | 8810 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8811 | |
8812 | ; | |
8813 | return 0; | |
8814 | } | |
8815 | _ACEOF | |
042acc47 | 8816 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8817 | charybdis_cv_c_gcc_w=yes |
8818 | else | |
042acc47 | 8819 | charybdis_cv_c_gcc_w=no |
212380e3 | 8820 | fi |
631ef239 | 8821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8822 | CFLAGS="${oldcflags}" |
8823 | fi | |
8824 | ||
8825 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
8826 | CWARNS="${CWARNS}-W -Wno-unused " | |
042acc47 WP |
8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8828 | $as_echo "ok" >&6; } | |
212380e3 | 8829 | else |
8830 | charybdis_cv_c_gcc_w='' | |
042acc47 WP |
8831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8832 | $as_echo "no" >&6; } | |
212380e3 | 8833 | fi |
8834 | else | |
042acc47 WP |
8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8836 | $as_echo "no" >&6; } | |
212380e3 | 8837 | fi |
8838 | ||
8839 | ||
042acc47 WP |
8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
8841 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 | 8842 | if test "${GCC-no}" = yes |
8843 | then | |
b540af17 | 8844 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
042acc47 | 8845 | $as_echo_n "(cached) " >&6 |
212380e3 | 8846 | else |
8847 | ||
8848 | oldcflags="${CFLAGS-}" | |
8849 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
042acc47 | 8850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8851 | /* end confdefs.h. */ |
8852 | ||
8853 | #include <string.h> | |
8854 | #include <stdio.h> | |
8855 | int main(void); | |
8856 | ||
8857 | int | |
8858 | main () | |
8859 | { | |
8860 | ||
b1fc1658 | 8861 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8862 | |
8863 | ; | |
8864 | return 0; | |
8865 | } | |
8866 | _ACEOF | |
042acc47 | 8867 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8868 | charybdis_cv_c_gcc_w_extra=yes |
8869 | else | |
042acc47 | 8870 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 8871 | fi |
631ef239 | 8872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8873 | CFLAGS="${oldcflags}" |
8874 | fi | |
8875 | ||
8876 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
8877 | CWARNS="${CWARNS}-Wextra " | |
042acc47 WP |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8879 | $as_echo "ok" >&6; } | |
212380e3 | 8880 | else |
8881 | charybdis_cv_c_gcc_w_extra='' | |
042acc47 WP |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8883 | $as_echo "no" >&6; } | |
212380e3 | 8884 | fi |
8885 | else | |
042acc47 WP |
8886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8887 | $as_echo "no" >&6; } | |
212380e3 | 8888 | fi |
8889 | ||
8890 | ||
042acc47 WP |
8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
8892 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 | 8893 | if test "${GCC-no}" = yes |
8894 | then | |
b540af17 | 8895 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
042acc47 | 8896 | $as_echo_n "(cached) " >&6 |
212380e3 | 8897 | else |
8898 | ||
8899 | oldcflags="${CFLAGS-}" | |
8900 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
042acc47 | 8901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8902 | /* end confdefs.h. */ |
8903 | ||
8904 | #include <string.h> | |
8905 | #include <stdio.h> | |
8906 | int main(void); | |
8907 | ||
8908 | int | |
8909 | main () | |
8910 | { | |
8911 | ||
b1fc1658 | 8912 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8913 | |
8914 | ; | |
8915 | return 0; | |
8916 | } | |
8917 | _ACEOF | |
042acc47 | 8918 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8919 | charybdis_cv_c_gcc_w_shadow=yes |
8920 | else | |
042acc47 | 8921 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 8922 | fi |
631ef239 | 8923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8924 | CFLAGS="${oldcflags}" |
8925 | fi | |
8926 | ||
8927 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
8928 | CWARNS="${CWARNS}-Wshadow " | |
042acc47 WP |
8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8930 | $as_echo "ok" >&6; } | |
212380e3 | 8931 | else |
8932 | charybdis_cv_c_gcc_w_shadow='' | |
042acc47 WP |
8933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8934 | $as_echo "no" >&6; } | |
212380e3 | 8935 | fi |
8936 | else | |
042acc47 WP |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8938 | $as_echo "no" >&6; } | |
212380e3 | 8939 | fi |
8940 | ||
8941 | ||
042acc47 WP |
8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
8943 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 | 8944 | if test "${GCC-no}" = yes |
8945 | then | |
b540af17 | 8946 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
042acc47 | 8947 | $as_echo_n "(cached) " >&6 |
212380e3 | 8948 | else |
8949 | ||
8950 | oldcflags="${CFLAGS-}" | |
8951 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
042acc47 | 8952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 8953 | /* end confdefs.h. */ |
8954 | ||
8955 | #include <string.h> | |
8956 | #include <stdio.h> | |
8957 | int main(void); | |
8958 | ||
8959 | int | |
8960 | main () | |
8961 | { | |
8962 | ||
b1fc1658 | 8963 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 8964 | |
8965 | ; | |
8966 | return 0; | |
8967 | } | |
8968 | _ACEOF | |
042acc47 | 8969 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 8970 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
8971 | else | |
042acc47 | 8972 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 8973 | fi |
631ef239 | 8974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8975 | CFLAGS="${oldcflags}" |
8976 | fi | |
8977 | ||
8978 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
8979 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
042acc47 WP |
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8981 | $as_echo "ok" >&6; } | |
212380e3 | 8982 | else |
8983 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
042acc47 WP |
8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8985 | $as_echo "no" >&6; } | |
212380e3 | 8986 | fi |
8987 | else | |
042acc47 WP |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8989 | $as_echo "no" >&6; } | |
212380e3 | 8990 | fi |
8991 | ||
8992 | ||
042acc47 WP |
8993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
8994 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 | 8995 | if test "${GCC-no}" = yes |
8996 | then | |
b540af17 | 8997 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
042acc47 | 8998 | $as_echo_n "(cached) " >&6 |
212380e3 | 8999 | else |
9000 | ||
9001 | oldcflags="${CFLAGS-}" | |
9002 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
042acc47 | 9003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 9004 | /* end confdefs.h. */ |
9005 | ||
9006 | #include <string.h> | |
9007 | #include <stdio.h> | |
9008 | int main(void); | |
9009 | ||
9010 | int | |
9011 | main () | |
9012 | { | |
9013 | ||
b1fc1658 | 9014 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 9015 | |
9016 | ; | |
9017 | return 0; | |
9018 | } | |
9019 | _ACEOF | |
042acc47 | 9020 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 9021 | charybdis_cv_c_gcc_w_undef=yes |
9022 | else | |
042acc47 | 9023 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 9024 | fi |
631ef239 | 9025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9026 | CFLAGS="${oldcflags}" |
9027 | fi | |
9028 | ||
9029 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
9030 | CWARNS="${CWARNS}-Wundef " | |
042acc47 WP |
9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9032 | $as_echo "ok" >&6; } | |
212380e3 | 9033 | else |
9034 | charybdis_cv_c_gcc_w_undef='' | |
042acc47 WP |
9035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9036 | $as_echo "no" >&6; } | |
212380e3 | 9037 | fi |
9038 | else | |
042acc47 WP |
9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9040 | $as_echo "no" >&6; } | |
212380e3 | 9041 | fi |
9042 | ||
9043 | ||
042acc47 WP |
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
9045 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 | 9046 | if test "${GCC-no}" = yes |
9047 | then | |
b540af17 | 9048 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
042acc47 | 9049 | $as_echo_n "(cached) " >&6 |
212380e3 | 9050 | else |
9051 | ||
9052 | oldcflags="${CFLAGS-}" | |
9053 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
042acc47 | 9054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 9055 | /* end confdefs.h. */ |
9056 | ||
9057 | #include <string.h> | |
9058 | #include <stdio.h> | |
9059 | int main(void); | |
9060 | ||
9061 | int | |
9062 | main () | |
9063 | { | |
9064 | ||
b1fc1658 | 9065 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 9066 | |
9067 | ; | |
9068 | return 0; | |
9069 | } | |
9070 | _ACEOF | |
042acc47 | 9071 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 9072 | charybdis_cv_c_gcc_w_packed=yes |
9073 | else | |
042acc47 | 9074 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 9075 | fi |
631ef239 | 9076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9077 | CFLAGS="${oldcflags}" |
9078 | fi | |
9079 | ||
9080 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
9081 | CWARNS="${CWARNS}-Wpacked " | |
042acc47 WP |
9082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9083 | $as_echo "ok" >&6; } | |
212380e3 | 9084 | else |
9085 | charybdis_cv_c_gcc_w_packed='' | |
042acc47 WP |
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9087 | $as_echo "no" >&6; } | |
212380e3 | 9088 | fi |
9089 | else | |
042acc47 WP |
9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9091 | $as_echo "no" >&6; } | |
212380e3 | 9092 | fi |
9093 | ||
9094 | ||
042acc47 WP |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
9096 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 | 9097 | if test "${GCC-no}" = yes |
9098 | then | |
b540af17 | 9099 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
042acc47 | 9100 | $as_echo_n "(cached) " >&6 |
212380e3 | 9101 | else |
9102 | ||
9103 | oldcflags="${CFLAGS-}" | |
9104 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
042acc47 | 9105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 9106 | /* end confdefs.h. */ |
9107 | ||
9108 | #include <string.h> | |
9109 | #include <stdio.h> | |
9110 | int main(void); | |
9111 | ||
9112 | int | |
9113 | main () | |
9114 | { | |
9115 | ||
b1fc1658 | 9116 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 9117 | |
9118 | ; | |
9119 | return 0; | |
9120 | } | |
9121 | _ACEOF | |
042acc47 | 9122 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 9123 | charybdis_cv_c_gcc_w_nested_externs=yes |
9124 | else | |
042acc47 | 9125 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 9126 | fi |
631ef239 | 9127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9128 | CFLAGS="${oldcflags}" |
9129 | fi | |
9130 | ||
9131 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
9132 | CWARNS="${CWARNS}-Wnested-externs " | |
042acc47 WP |
9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9134 | $as_echo "ok" >&6; } | |
212380e3 | 9135 | else |
9136 | charybdis_cv_c_gcc_w_nested_externs='' | |
042acc47 WP |
9137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9138 | $as_echo "no" >&6; } | |
212380e3 | 9139 | fi |
9140 | else | |
042acc47 WP |
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9142 | $as_echo "no" >&6; } | |
212380e3 | 9143 | fi |
9144 | ||
9145 | ||
042acc47 WP |
9146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
9147 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 | 9148 | if test "${GCC-no}" = yes |
9149 | then | |
b540af17 | 9150 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
042acc47 | 9151 | $as_echo_n "(cached) " >&6 |
212380e3 | 9152 | else |
9153 | ||
9154 | oldcflags="${CFLAGS-}" | |
9155 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
042acc47 | 9156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 9157 | /* end confdefs.h. */ |
9158 | ||
9159 | #include <string.h> | |
9160 | #include <stdio.h> | |
9161 | int main(void); | |
9162 | ||
9163 | int | |
9164 | main () | |
9165 | { | |
9166 | ||
b1fc1658 | 9167 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 9168 | |
9169 | ; | |
9170 | return 0; | |
9171 | } | |
9172 | _ACEOF | |
042acc47 | 9173 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 9174 | charybdis_cv_c_gcc_w_unused=yes |
9175 | else | |
042acc47 | 9176 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 9177 | fi |
631ef239 | 9178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9179 | CFLAGS="${oldcflags}" |
9180 | fi | |
9181 | ||
9182 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
9183 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
042acc47 WP |
9184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9185 | $as_echo "ok" >&6; } | |
212380e3 | 9186 | else |
9187 | charybdis_cv_c_gcc_w_unused='' | |
042acc47 WP |
9188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9189 | $as_echo "no" >&6; } | |
212380e3 | 9190 | fi |
9191 | else | |
042acc47 WP |
9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9193 | $as_echo "no" >&6; } | |
212380e3 | 9194 | fi |
9195 | ||
9196 | ||
042acc47 WP |
9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
9198 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 | 9199 | if test "${GCC-no}" = yes |
9200 | then | |
b540af17 | 9201 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
042acc47 | 9202 | $as_echo_n "(cached) " >&6 |
212380e3 | 9203 | else |
9204 | ||
9205 | oldcflags="${CFLAGS-}" | |
9206 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
042acc47 | 9207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 9208 | /* end confdefs.h. */ |
9209 | ||
9210 | #include <string.h> | |
9211 | #include <stdio.h> | |
9212 | int main(void); | |
9213 | ||
9214 | int | |
9215 | main () | |
9216 | { | |
9217 | ||
b1fc1658 | 9218 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 9219 | |
9220 | ; | |
9221 | return 0; | |
9222 | } | |
9223 | _ACEOF | |
042acc47 | 9224 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 9225 | charybdis_cv_c_gcc_w_redundant_decls=yes |
9226 | else | |
042acc47 | 9227 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 9228 | fi |
631ef239 | 9229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9230 | CFLAGS="${oldcflags}" |
9231 | fi | |
9232 | ||
9233 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
9234 | CWARNS="${CWARNS}-Wredundant-decls " | |
042acc47 WP |
9235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9236 | $as_echo "ok" >&6; } | |
212380e3 | 9237 | else |
9238 | charybdis_cv_c_gcc_w_redundant_decls='' | |
042acc47 WP |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9240 | $as_echo "no" >&6; } | |
212380e3 | 9241 | fi |
9242 | else | |
042acc47 WP |
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9244 | $as_echo "no" >&6; } | |
212380e3 | 9245 | fi |
9246 | ||
9247 | ||
042acc47 WP |
9248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
9249 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 | 9250 | if test "${GCC-no}" = yes |
9251 | then | |
b540af17 | 9252 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
042acc47 | 9253 | $as_echo_n "(cached) " >&6 |
212380e3 | 9254 | else |
9255 | ||
9256 | oldcflags="${CFLAGS-}" | |
9257 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
042acc47 | 9258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 9259 | /* end confdefs.h. */ |
9260 | ||
9261 | #include <string.h> | |
9262 | #include <stdio.h> | |
9263 | int main(void); | |
9264 | ||
9265 | int | |
9266 | main () | |
9267 | { | |
9268 | ||
b1fc1658 | 9269 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 9270 | |
9271 | ; | |
9272 | return 0; | |
9273 | } | |
9274 | _ACEOF | |
042acc47 | 9275 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 9276 | charybdis_cv_c_gcc_w_float_equal=yes |
9277 | else | |
042acc47 | 9278 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 9279 | fi |
631ef239 | 9280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9281 | CFLAGS="${oldcflags}" |
9282 | fi | |
9283 | ||
9284 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
9285 | CWARNS="${CWARNS}-Wfloat-equal " | |
042acc47 WP |
9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9287 | $as_echo "ok" >&6; } | |
212380e3 | 9288 | else |
9289 | charybdis_cv_c_gcc_w_float_equal='' | |
042acc47 WP |
9290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9291 | $as_echo "no" >&6; } | |
212380e3 | 9292 | fi |
9293 | else | |
042acc47 WP |
9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9295 | $as_echo "no" >&6; } | |
212380e3 | 9296 | fi |
9297 | ||
9298 | ||
042acc47 WP |
9299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
9300 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 | 9301 | if test "${GCC-no}" = yes |
9302 | then | |
b540af17 | 9303 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
042acc47 | 9304 | $as_echo_n "(cached) " >&6 |
212380e3 | 9305 | else |
9306 | ||
9307 | oldcflags="${CFLAGS-}" | |
29b39b11 | 9308 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
042acc47 | 9309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 9310 | /* end confdefs.h. */ |
9311 | ||
9312 | #include <string.h> | |
9313 | #include <stdio.h> | |
9314 | int main(void); | |
9315 | ||
9316 | int | |
9317 | main () | |
9318 | { | |
042acc47 WP |
9319 | |
9320 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
9321 | ||
212380e3 | 9322 | ; |
9323 | return 0; | |
9324 | } | |
9325 | _ACEOF | |
042acc47 WP |
9326 | if ac_fn_c_try_compile "$LINENO"; then : |
9327 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 9328 | else |
042acc47 WP |
9329 | charybdis_cv_c_gcc_w_format=no |
9330 | fi | |
9331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9332 | CFLAGS="${oldcflags}" | |
9333 | fi | |
9334 | ||
9335 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
9336 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
9337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
9338 | $as_echo "ok" >&6; } | |
9339 | else | |
9340 | charybdis_cv_c_gcc_w_format='' | |
9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9342 | $as_echo "no" >&6; } | |
9343 | fi | |
9344 | else | |
9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9346 | $as_echo "no" >&6; } | |
9347 | fi | |
9348 | ||
9349 | ||
9350 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 9351 | |
212380e3 | 9352 | fi |
631ef239 | 9353 | |
042acc47 WP |
9354 | |
9355 | if test "$shared_modules" = no; then | |
9356 | DYNLINK_C="" | |
9357 | MOD_TARGET="libmodules.a" | |
9358 | MODULES_LIBS="../modules/libmodules.a" | |
9359 | SEDOBJ="" | |
9360 | ||
9361 | $as_echo "#define STATIC_MODULES 1" >>confdefs.h | |
9362 | ||
9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5 | |
9364 | $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
212380e3 | 9365 | fi |
042acc47 WP |
9366 | |
9367 | if test "$shared_modules" = yes; then | |
9368 | ||
9369 | ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist" | |
b540af17 | 9370 | if test "x$ac_cv_func_nlist" = xyes; then : |
042acc47 | 9371 | |
212380e3 | 9372 | else |
042acc47 WP |
9373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5 |
9374 | $as_echo_n "checking for nlist in -ldl... " >&6; } | |
b540af17 | 9375 | if ${ac_cv_lib_dl_nlist+:} false; then : |
042acc47 | 9376 | $as_echo_n "(cached) " >&6 |
212380e3 | 9377 | else |
9378 | ac_check_lib_save_LIBS=$LIBS | |
9379 | LIBS="-ldl $LIBS" | |
042acc47 | 9380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 9381 | /* end confdefs.h. */ |
9382 | ||
631ef239 | 9383 | /* Override any GCC internal prototype to avoid an error. |
9384 | Use char because int might match the return type of a GCC | |
9385 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 9386 | #ifdef __cplusplus |
9387 | extern "C" | |
9388 | #endif | |
212380e3 | 9389 | char nlist (); |
9390 | int | |
9391 | main () | |
9392 | { | |
631ef239 | 9393 | return nlist (); |
212380e3 | 9394 | ; |
9395 | return 0; | |
9396 | } | |
9397 | _ACEOF | |
042acc47 | 9398 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 | 9399 | ac_cv_lib_dl_nlist=yes |
9400 | else | |
042acc47 | 9401 | ac_cv_lib_dl_nlist=no |
212380e3 | 9402 | fi |
042acc47 WP |
9403 | rm -f core conftest.err conftest.$ac_objext \ |
9404 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 9405 | LIBS=$ac_check_lib_save_LIBS |
9406 | fi | |
042acc47 WP |
9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5 |
9408 | $as_echo "$ac_cv_lib_dl_nlist" >&6; } | |
b540af17 | 9409 | if test "x$ac_cv_lib_dl_nlist" = xyes; then : |
212380e3 | 9410 | nlist_lib="-ldl" |
9411 | else | |
042acc47 WP |
9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 |
9413 | $as_echo_n "checking for nlist in -lelf... " >&6; } | |
b540af17 | 9414 | if ${ac_cv_lib_elf_nlist+:} false; then : |
042acc47 | 9415 | $as_echo_n "(cached) " >&6 |
212380e3 | 9416 | else |
9417 | ac_check_lib_save_LIBS=$LIBS | |
9418 | LIBS="-lelf $LIBS" | |
042acc47 | 9419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 9420 | /* end confdefs.h. */ |
9421 | ||
631ef239 | 9422 | /* Override any GCC internal prototype to avoid an error. |
9423 | Use char because int might match the return type of a GCC | |
9424 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 9425 | #ifdef __cplusplus |
9426 | extern "C" | |
9427 | #endif | |
212380e3 | 9428 | char nlist (); |
9429 | int | |
9430 | main () | |
9431 | { | |
631ef239 | 9432 | return nlist (); |
212380e3 | 9433 | ; |
9434 | return 0; | |
9435 | } | |
9436 | _ACEOF | |
042acc47 | 9437 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 | 9438 | ac_cv_lib_elf_nlist=yes |
9439 | else | |
042acc47 | 9440 | ac_cv_lib_elf_nlist=no |
212380e3 | 9441 | fi |
042acc47 WP |
9442 | rm -f core conftest.err conftest.$ac_objext \ |
9443 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 9444 | LIBS=$ac_check_lib_save_LIBS |
9445 | fi | |
042acc47 WP |
9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 |
9447 | $as_echo "$ac_cv_lib_elf_nlist" >&6; } | |
b540af17 | 9448 | if test "x$ac_cv_lib_elf_nlist" = xyes; then : |
212380e3 | 9449 | nlist_lib="-lelf" |
9450 | fi | |
9451 | ||
9452 | ||
9453 | fi | |
9454 | ||
9455 | ||
9456 | fi | |
9457 | ||
9458 | ||
042acc47 | 9459 | ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default" |
b540af17 | 9460 | if test "x$ac_cv_header_libelf_nlist_h" = xyes; then : |
212380e3 | 9461 | nlist_h="libelf/nlist.h" |
9462 | fi | |
9463 | ||
9464 | ||
042acc47 | 9465 | ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default" |
b540af17 | 9466 | if test "x$ac_cv_header_elf_nlist_h" = xyes; then : |
212380e3 | 9467 | nlist_h="elf/nlist.h" |
9468 | fi | |
9469 | ||
9470 | ||
042acc47 | 9471 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
b540af17 | 9472 | if test "x$ac_cv_header_nlist_h" = xyes; then : |
212380e3 | 9473 | nlist_h="nlist.h" |
9474 | fi | |
9475 | ||
9476 | ||
9477 | if test x"$nlist_h" = "x"; then | |
9478 | ||
9479 | cat >>confdefs.h <<_ACEOF | |
9480 | #define SYMBOL_PREFIX "" | |
9481 | _ACEOF | |
9482 | ||
9483 | else | |
042acc47 WP |
9484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5 |
9485 | $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; } | |
b540af17 | 9486 | if ${symbol_underscores+:} false; then : |
042acc47 | 9487 | $as_echo_n "(cached) " >&6 |
212380e3 | 9488 | else |
9489 | ||
9490 | cat << EOF > conftest.c | |
9491 | #include <$nlist_h> | |
9492 | #include <stdio.h> | |
9493 | #include <stdlib.h> | |
9494 | void _modinit(void); | |
9495 | int main(int argc, char *argv[]) { | |
9496 | int i; | |
9497 | struct nlist nl[5]; | |
9498 | ||
9499 | /* fill the names in this way, so it'll work almost everywhere */ | |
9500 | nl[0].n_name = "_modinit"; | |
9501 | nl[1].n_name = "__modinit"; | |
9502 | nl[2].n_name = "___modinit"; | |
9503 | nl[3].n_name = "____modinit"; | |
9504 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
9505 | ||
9506 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
9507 | for(i = 0; i < 4; i++) { | |
9508 | if(nl[i].n_value != NULL) | |
9509 | { | |
9510 | int j; | |
9511 | for(j = 0; j < i; j++) | |
9512 | printf("_"); | |
9513 | exit(i); | |
9514 | } | |
9515 | } | |
9516 | exit(-1); | |
9517 | } | |
9518 | void _modinit(void) { return; } | |
9519 | EOF | |
9520 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
9521 | symbol_underscores=`./conftest conftest` | |
042acc47 WP |
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5 |
9523 | $as_echo "$symbol_underscores" >&6; } | |
212380e3 | 9524 | $RM -f conftest conftest.c |
9525 | ||
9526 | fi | |
9527 | ||
9528 | ||
9529 | cat >>confdefs.h <<_ACEOF | |
9530 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
9531 | _ACEOF | |
9532 | ||
9533 | fi | |
9534 | fi | |
9535 | ||
a8001fa5 JT |
9536 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
9537 | ||
212380e3 | 9538 | |
9539 | ||
9540 | ||
9541 | ||
9542 | ||
9543 | ||
9544 | ||
9545 | ||
9546 | ||
9547 | ||
9548 | ||
9549 | ||
9550 | ||
9551 | if test "$prefix" = "NONE"; then | |
9552 | ||
9553 | cat >>confdefs.h <<_ACEOF | |
9554 | #define IRCD_PREFIX "$ac_default_prefix" | |
9555 | _ACEOF | |
9556 | ||
9557 | ||
9558 | else | |
9559 | ||
9560 | ||
9561 | prefix=`echo $prefix | sed 's/\/$//'` | |
9562 | ||
9563 | cat >>confdefs.h <<_ACEOF | |
9564 | #define IRCD_PREFIX "$prefix" | |
9565 | _ACEOF | |
9566 | ||
9567 | ||
9568 | fi | |
9569 | ||
bf9bfd26 JH |
9570 | ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl.sh doc/Makefile help/Makefile" |
9571 | ||
9572 | ac_config_commands="$ac_config_commands tools/genssl.sh_chmod" | |
212380e3 | 9573 | |
9574 | ||
9575 | cat >confcache <<\_ACEOF | |
9576 | # This file is a shell script that caches the results of configure | |
9577 | # tests run on this system so they can be shared between configure | |
9578 | # scripts and configure runs, see configure's option --config-cache. | |
9579 | # It is not useful on other systems. If it contains results you don't | |
9580 | # want to keep, you may remove or edit it. | |
9581 | # | |
9582 | # config.status only pays attention to the cache file if you give it | |
9583 | # the --recheck option to rerun configure. | |
9584 | # | |
9585 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9586 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9587 | # following values. | |
9588 | ||
9589 | _ACEOF | |
9590 | ||
9591 | # The following way of writing the cache mishandles newlines in values, | |
9592 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 9593 | # So, we kill variables containing newlines. |
212380e3 | 9594 | # Ultrix sh set writes to stderr and can't be redirected directly, |
9595 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 | 9596 | ( |
9597 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9598 | eval ac_val=\$$ac_var | |
9599 | case $ac_val in #( | |
9600 | *${as_nl}*) | |
9601 | case $ac_var in #( | |
042acc47 WP |
9602 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
9603 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 | 9604 | esac |
9605 | case $ac_var in #( | |
9606 | _ | IFS | as_nl) ;; #( | |
042acc47 WP |
9607 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
9608 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 | 9609 | esac ;; |
9610 | esac | |
9611 | done | |
9612 | ||
212380e3 | 9613 | (set) 2>&1 | |
631ef239 | 9614 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9615 | *${as_nl}ac_space=\ *) | |
042acc47 WP |
9616 | # `set' does not quote correctly, so add quotes: double-quote |
9617 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 | 9618 | sed -n \ |
9619 | "s/'/'\\\\''/g; | |
9620 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 9621 | ;; #( |
212380e3 | 9622 | *) |
9623 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 9624 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 9625 | ;; |
631ef239 | 9626 | esac | |
9627 | sort | |
9628 | ) | | |
212380e3 | 9629 | sed ' |
631ef239 | 9630 | /^ac_cv_env_/b end |
212380e3 | 9631 | t clear |
631ef239 | 9632 | :clear |
212380e3 | 9633 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
9634 | t end | |
631ef239 | 9635 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9636 | :end' >>confcache | |
9637 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9638 | if test -w "$cache_file"; then | |
b540af17 | 9639 | if test "x$cache_file" != "x/dev/null"; then |
042acc47 WP |
9640 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
9641 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b540af17 JH |
9642 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
9643 | cat confcache >"$cache_file" | |
9644 | else | |
9645 | case $cache_file in #( | |
9646 | */* | ?:*) | |
9647 | mv -f confcache "$cache_file"$$ && | |
9648 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
9649 | *) | |
9650 | mv -f confcache "$cache_file" ;; | |
9651 | esac | |
9652 | fi | |
9653 | fi | |
212380e3 | 9654 | else |
042acc47 WP |
9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
9656 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 | 9657 | fi |
9658 | fi | |
9659 | rm -f confcache | |
9660 | ||
9661 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9662 | # Let make expand exec_prefix. | |
9663 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9664 | ||
212380e3 | 9665 | DEFS=-DHAVE_CONFIG_H |
9666 | ||
9667 | ac_libobjs= | |
9668 | ac_ltlibobjs= | |
b540af17 | 9669 | U= |
212380e3 | 9670 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
9671 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 9672 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
042acc47 | 9673 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 | 9674 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
9675 | # will be set to the directory where LIBOBJS objects are built. | |
042acc47 WP |
9676 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
9677 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 | 9678 | done |
9679 | LIBOBJS=$ac_libobjs | |
9680 | ||
9681 | LTLIBOBJS=$ac_ltlibobjs | |
9682 | ||
9683 | ||
9684 | ||
042acc47 WP |
9685 | |
9686 | ||
b540af17 | 9687 | : "${CONFIG_STATUS=./config.status}" |
042acc47 | 9688 | ac_write_fail=0 |
212380e3 | 9689 | ac_clean_files_save=$ac_clean_files |
9690 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
042acc47 WP |
9691 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
9692 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
9693 | as_write_fail=0 | |
9694 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 | 9695 | #! $SHELL |
9696 | # Generated by $as_me. | |
9697 | # Run this file to recreate the current configuration. | |
9698 | # Compiler output produced by configure, useful for debugging | |
9699 | # configure, is in config.log if it exists. | |
9700 | ||
9701 | debug=false | |
9702 | ac_cs_recheck=false | |
9703 | ac_cs_silent=false | |
212380e3 | 9704 | |
042acc47 WP |
9705 | SHELL=\${CONFIG_SHELL-$SHELL} |
9706 | export SHELL | |
9707 | _ASEOF | |
9708 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
9709 | ## -------------------- ## | |
9710 | ## M4sh Initialization. ## | |
9711 | ## -------------------- ## | |
212380e3 | 9712 | |
631ef239 | 9713 | # Be more Bourne compatible |
9714 | DUALCASE=1; export DUALCASE # for MKS sh | |
042acc47 | 9715 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 | 9716 | emulate sh |
9717 | NULLCMD=: | |
042acc47 | 9718 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 | 9719 | # is contrary to our usage. Disable this feature. |
9720 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 9721 | setopt NO_GLOB_SUBST |
212380e3 | 9722 | else |
042acc47 WP |
9723 | case `(set -o) 2>/dev/null` in #( |
9724 | *posix*) : | |
9725 | set -o posix ;; #( | |
9726 | *) : | |
9727 | ;; | |
631ef239 | 9728 | esac |
212380e3 | 9729 | fi |
9730 | ||
9731 | ||
042acc47 WP |
9732 | as_nl=' |
9733 | ' | |
9734 | export as_nl | |
9735 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
9736 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
9737 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
9738 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
9739 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
9740 | # but without wasting forks for bash or zsh. | |
9741 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
9742 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
9743 | as_echo='print -r --' | |
9744 | as_echo_n='print -rn --' | |
9745 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
9746 | as_echo='printf %s\n' | |
9747 | as_echo_n='printf %s' | |
9748 | else | |
9749 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
9750 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
9751 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 9752 | else |
042acc47 WP |
9753 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
9754 | as_echo_n_body='eval | |
9755 | arg=$1; | |
9756 | case $arg in #( | |
9757 | *"$as_nl"*) | |
9758 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
9759 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
9760 | esac; | |
9761 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
9762 | ' | |
9763 | export as_echo_n_body | |
9764 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 9765 | fi |
042acc47 WP |
9766 | export as_echo_body |
9767 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 | 9768 | fi |
9769 | ||
042acc47 WP |
9770 | # The user is always right. |
9771 | if test "${PATH_SEPARATOR+set}" != set; then | |
9772 | PATH_SEPARATOR=: | |
9773 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
9774 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
9775 | PATH_SEPARATOR=';' | |
9776 | } | |
631ef239 | 9777 | fi |
9778 | ||
9779 | ||
9780 | # IFS | |
9781 | # We need space, tab and new line, in precisely that order. Quoting is | |
9782 | # there to prevent editors from complaining about space-tab. | |
9783 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
9784 | # splitting by setting IFS to empty value.) | |
631ef239 | 9785 | IFS=" "" $as_nl" |
9786 | ||
9787 | # Find who we are. Look in the path if we contain no directory separator. | |
b540af17 | 9788 | as_myself= |
042acc47 | 9789 | case $0 in #(( |
631ef239 | 9790 | *[\\/]* ) as_myself=$0 ;; |
9791 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9792 | for as_dir in $PATH | |
9793 | do | |
9794 | IFS=$as_save_IFS | |
9795 | test -z "$as_dir" && as_dir=. | |
042acc47 WP |
9796 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
9797 | done | |
631ef239 | 9798 | IFS=$as_save_IFS |
9799 | ||
9800 | ;; | |
9801 | esac | |
9802 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
9803 | # in which case we are not to be found in the path. | |
9804 | if test "x$as_myself" = x; then | |
9805 | as_myself=$0 | |
9806 | fi | |
9807 | if test ! -f "$as_myself"; then | |
042acc47 WP |
9808 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
9809 | exit 1 | |
631ef239 | 9810 | fi |
9811 | ||
042acc47 WP |
9812 | # Unset variables that we do not need and which cause bugs (e.g. in |
9813 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
9814 | # suppresses any "Segmentation fault" message there. '((' could | |
9815 | # trigger a bug in pdksh 5.2.14. | |
9816 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
9817 | do eval test x\${$as_var+set} = xset \ | |
9818 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 9819 | done |
212380e3 | 9820 | PS1='$ ' |
9821 | PS2='> ' | |
9822 | PS4='+ ' | |
9823 | ||
042acc47 WP |
9824 | # NLS nuisances. |
9825 | LC_ALL=C | |
9826 | export LC_ALL | |
9827 | LANGUAGE=C | |
9828 | export LANGUAGE | |
9829 | ||
9830 | # CDPATH. | |
9831 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
9832 | ||
9833 | ||
b540af17 JH |
9834 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
9835 | # ---------------------------------------- | |
042acc47 WP |
9836 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
9837 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b540af17 | 9838 | # script with STATUS, using 1 if that was 0. |
042acc47 WP |
9839 | as_fn_error () |
9840 | { | |
b540af17 JH |
9841 | as_status=$1; test $as_status -eq 0 && as_status=1 |
9842 | if test "$4"; then | |
9843 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9844 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 9845 | fi |
b540af17 | 9846 | $as_echo "$as_me: error: $2" >&2 |
042acc47 WP |
9847 | as_fn_exit $as_status |
9848 | } # as_fn_error | |
9849 | ||
9850 | ||
9851 | # as_fn_set_status STATUS | |
9852 | # ----------------------- | |
9853 | # Set $? to STATUS, without forking. | |
9854 | as_fn_set_status () | |
9855 | { | |
9856 | return $1 | |
9857 | } # as_fn_set_status | |
9858 | ||
9859 | # as_fn_exit STATUS | |
9860 | # ----------------- | |
9861 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
9862 | as_fn_exit () | |
9863 | { | |
9864 | set +e | |
9865 | as_fn_set_status $1 | |
9866 | exit $1 | |
9867 | } # as_fn_exit | |
9868 | ||
9869 | # as_fn_unset VAR | |
9870 | # --------------- | |
9871 | # Portably unset VAR. | |
9872 | as_fn_unset () | |
9873 | { | |
9874 | { eval $1=; unset $1;} | |
9875 | } | |
9876 | as_unset=as_fn_unset | |
9877 | # as_fn_append VAR VALUE | |
9878 | # ---------------------- | |
9879 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
9880 | # advantage of any shell optimizations that allow amortized linear growth over | |
9881 | # repeated appends, instead of the typical quadratic growth present in naive | |
9882 | # implementations. | |
9883 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
9884 | eval 'as_fn_append () | |
9885 | { | |
9886 | eval $1+=\$2 | |
9887 | }' | |
9888 | else | |
9889 | as_fn_append () | |
9890 | { | |
9891 | eval $1=\$$1\$2 | |
9892 | } | |
9893 | fi # as_fn_append | |
9894 | ||
9895 | # as_fn_arith ARG... | |
9896 | # ------------------ | |
9897 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
9898 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
9899 | # must be portable across $(()) and expr. | |
9900 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
9901 | eval 'as_fn_arith () | |
9902 | { | |
9903 | as_val=$(( $* )) | |
9904 | }' | |
9905 | else | |
9906 | as_fn_arith () | |
9907 | { | |
9908 | as_val=`expr "$@" || test $? -eq 1` | |
9909 | } | |
9910 | fi # as_fn_arith | |
9911 | ||
212380e3 | 9912 | |
631ef239 | 9913 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9914 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 | 9915 | as_expr=expr |
9916 | else | |
9917 | as_expr=false | |
9918 | fi | |
9919 | ||
631ef239 | 9920 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 | 9921 | as_basename=basename |
9922 | else | |
9923 | as_basename=false | |
9924 | fi | |
9925 | ||
042acc47 WP |
9926 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
9927 | as_dirname=dirname | |
9928 | else | |
9929 | as_dirname=false | |
9930 | fi | |
212380e3 | 9931 | |
631ef239 | 9932 | as_me=`$as_basename -- "$0" || |
212380e3 | 9933 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
9934 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 9935 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
042acc47 | 9936 | $as_echo X/"$0" | |
631ef239 | 9937 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
9938 | s//\1/ | |
9939 | q | |
9940 | } | |
9941 | /^X\/\(\/\/\)$/{ | |
9942 | s//\1/ | |
9943 | q | |
9944 | } | |
9945 | /^X\/\(\/\).*/{ | |
9946 | s//\1/ | |
9947 | q | |
9948 | } | |
9949 | s/.*/./; q'` | |
212380e3 | 9950 | |
042acc47 WP |
9951 | # Avoid depending upon Character Ranges. |
9952 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9953 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9954 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9955 | as_cr_digits='0123456789' | |
9956 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 | 9957 | |
9958 | ECHO_C= ECHO_N= ECHO_T= | |
042acc47 | 9959 | case `echo -n x` in #((((( |
631ef239 | 9960 | -n*) |
042acc47 | 9961 | case `echo 'xy\c'` in |
631ef239 | 9962 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
042acc47 WP |
9963 | xy) ECHO_C='\c';; |
9964 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
9965 | ECHO_T=' ';; | |
631ef239 | 9966 | esac;; |
9967 | *) | |
9968 | ECHO_N='-n';; | |
212380e3 | 9969 | esac |
9970 | ||
212380e3 | 9971 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 | 9972 | if test -d conf$$.dir; then |
9973 | rm -f conf$$.dir/conf$$.file | |
9974 | else | |
9975 | rm -f conf$$.dir | |
042acc47 WP |
9976 | mkdir conf$$.dir 2>/dev/null |
9977 | fi | |
9978 | if (echo >conf$$.file) 2>/dev/null; then | |
9979 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9980 | as_ln_s='ln -s' | |
9981 | # ... but there are two gotchas: | |
9982 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
9983 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
9984 | # In both cases, we have to default to `cp -p'. | |
9985 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
9986 | as_ln_s='cp -p' | |
9987 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
9988 | as_ln_s=ln | |
9989 | else | |
212380e3 | 9990 | as_ln_s='cp -p' |
042acc47 | 9991 | fi |
212380e3 | 9992 | else |
9993 | as_ln_s='cp -p' | |
9994 | fi | |
631ef239 | 9995 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
9996 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 9997 | |
042acc47 WP |
9998 | |
9999 | # as_fn_mkdir_p | |
10000 | # ------------- | |
10001 | # Create "$as_dir" as a directory, including parents if necessary. | |
10002 | as_fn_mkdir_p () | |
10003 | { | |
10004 | ||
10005 | case $as_dir in #( | |
10006 | -*) as_dir=./$as_dir;; | |
10007 | esac | |
10008 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10009 | as_dirs= | |
10010 | while :; do | |
10011 | case $as_dir in #( | |
10012 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10013 | *) as_qdir=$as_dir;; | |
10014 | esac | |
10015 | as_dirs="'$as_qdir' $as_dirs" | |
10016 | as_dir=`$as_dirname -- "$as_dir" || | |
10017 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10018 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10019 | X"$as_dir" : 'X\(//\)$' \| \ | |
10020 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10021 | $as_echo X"$as_dir" | | |
10022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10023 | s//\1/ | |
10024 | q | |
10025 | } | |
10026 | /^X\(\/\/\)[^/].*/{ | |
10027 | s//\1/ | |
10028 | q | |
10029 | } | |
10030 | /^X\(\/\/\)$/{ | |
10031 | s//\1/ | |
10032 | q | |
10033 | } | |
10034 | /^X\(\/\).*/{ | |
10035 | s//\1/ | |
10036 | q | |
10037 | } | |
10038 | s/.*/./; q'` | |
10039 | test -d "$as_dir" && break | |
10040 | done | |
10041 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b540af17 | 10042 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
042acc47 WP |
10043 | |
10044 | ||
10045 | } # as_fn_mkdir_p | |
212380e3 | 10046 | if mkdir -p . 2>/dev/null; then |
042acc47 | 10047 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 | 10048 | else |
10049 | test -d ./-p && rmdir ./-p | |
10050 | as_mkdir_p=false | |
10051 | fi | |
10052 | ||
631ef239 | 10053 | if test -x / >/dev/null 2>&1; then |
10054 | as_test_x='test -x' | |
10055 | else | |
10056 | if ls -dL / >/dev/null 2>&1; then | |
10057 | as_ls_L_option=L | |
10058 | else | |
10059 | as_ls_L_option= | |
10060 | fi | |
10061 | as_test_x=' | |
10062 | eval sh -c '\'' | |
10063 | if test -d "$1"; then | |
042acc47 | 10064 | test -d "$1/."; |
631ef239 | 10065 | else |
042acc47 WP |
10066 | case $1 in #( |
10067 | -*)set "./$1";; | |
631ef239 | 10068 | esac; |
042acc47 | 10069 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
631ef239 | 10070 | ???[sx]*):;;*)false;;esac;fi |
10071 | '\'' sh | |
10072 | ' | |
10073 | fi | |
10074 | as_executable_p=$as_test_x | |
212380e3 | 10075 | |
10076 | # Sed expression to map a string onto a valid CPP name. | |
10077 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10078 | ||
10079 | # Sed expression to map a string onto a valid variable name. | |
10080 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10081 | ||
10082 | ||
212380e3 | 10083 | exec 6>&1 |
042acc47 WP |
10084 | ## ----------------------------------- ## |
10085 | ## Main body of $CONFIG_STATUS script. ## | |
10086 | ## ----------------------------------- ## | |
10087 | _ASEOF | |
10088 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 10089 | |
042acc47 WP |
10090 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10091 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 10092 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 | 10093 | # values after options handling. |
10094 | ac_log=" | |
b5135efc | 10095 | This file was extended by shadowircd $as_me 6.3.2, which was |
b540af17 | 10096 | generated by GNU Autoconf 2.68. Invocation command line was |
212380e3 | 10097 | |
10098 | CONFIG_FILES = $CONFIG_FILES | |
10099 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10100 | CONFIG_LINKS = $CONFIG_LINKS | |
10101 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10102 | $ $0 $@ | |
10103 | ||
631ef239 | 10104 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10105 | " | |
10106 | ||
212380e3 | 10107 | _ACEOF |
10108 | ||
042acc47 WP |
10109 | case $ac_config_files in *" |
10110 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10111 | esac | |
10112 | ||
10113 | case $ac_config_headers in *" | |
10114 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10115 | esac | |
10116 | ||
10117 | ||
10118 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 10119 | # Files that config.status was made for. |
631ef239 | 10120 | config_files="$ac_config_files" |
10121 | config_headers="$ac_config_headers" | |
bf9bfd26 | 10122 | config_commands="$ac_config_commands" |
212380e3 | 10123 | |
631ef239 | 10124 | _ACEOF |
212380e3 | 10125 | |
042acc47 | 10126 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 10127 | ac_cs_usage="\ |
042acc47 WP |
10128 | \`$as_me' instantiates files and other configuration actions |
10129 | from templates according to the current configuration. Unless the files | |
10130 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 10131 | |
042acc47 | 10132 | Usage: $0 [OPTION]... [TAG]... |
212380e3 | 10133 | |
10134 | -h, --help print this help, then exit | |
631ef239 | 10135 | -V, --version print version number and configuration settings, then exit |
1800d973 | 10136 | --config print configuration, then exit |
042acc47 WP |
10137 | -q, --quiet, --silent |
10138 | do not print progress messages | |
212380e3 | 10139 | -d, --debug don't remove temporary files |
10140 | --recheck update $as_me by reconfiguring in the same conditions | |
042acc47 WP |
10141 | --file=FILE[:TEMPLATE] |
10142 | instantiate the configuration file FILE | |
10143 | --header=FILE[:TEMPLATE] | |
10144 | instantiate the configuration header FILE | |
212380e3 | 10145 | |
10146 | Configuration files: | |
10147 | $config_files | |
10148 | ||
10149 | Configuration headers: | |
10150 | $config_headers | |
10151 | ||
bf9bfd26 JH |
10152 | Configuration commands: |
10153 | $config_commands | |
10154 | ||
042acc47 | 10155 | Report bugs to the package provider." |
212380e3 | 10156 | |
631ef239 | 10157 | _ACEOF |
042acc47 | 10158 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1800d973 | 10159 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 10160 | ac_cs_version="\\ |
b5135efc | 10161 | shadowircd config.status 6.3.2 |
b540af17 | 10162 | configured by $0, generated by GNU Autoconf 2.68, |
1800d973 | 10163 | with options \\"\$ac_cs_config\\" |
212380e3 | 10164 | |
b540af17 | 10165 | Copyright (C) 2010 Free Software Foundation, Inc. |
212380e3 | 10166 | This config.status script is free software; the Free Software Foundation |
10167 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 | 10168 | |
10169 | ac_pwd='$ac_pwd' | |
10170 | srcdir='$srcdir' | |
10171 | INSTALL='$INSTALL' | |
042acc47 | 10172 | test -n "\$AWK" || AWK=awk |
212380e3 | 10173 | _ACEOF |
10174 | ||
042acc47 WP |
10175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10176 | # The default lists apply if the user does not specify any file. | |
212380e3 | 10177 | ac_need_defaults=: |
10178 | while test $# != 0 | |
10179 | do | |
10180 | case $1 in | |
b540af17 | 10181 | --*=?*) |
631ef239 | 10182 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10183 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 | 10184 | ac_shift=: |
10185 | ;; | |
b540af17 JH |
10186 | --*=) |
10187 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10188 | ac_optarg= | |
10189 | ac_shift=: | |
10190 | ;; | |
631ef239 | 10191 | *) |
212380e3 | 10192 | ac_option=$1 |
10193 | ac_optarg=$2 | |
10194 | ac_shift=shift | |
10195 | ;; | |
212380e3 | 10196 | esac |
10197 | ||
10198 | case $ac_option in | |
10199 | # Handling of the options. | |
212380e3 | 10200 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10201 | ac_cs_recheck=: ;; | |
631ef239 | 10202 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
042acc47 | 10203 | $as_echo "$ac_cs_version"; exit ;; |
1800d973 WP |
10204 | --config | --confi | --conf | --con | --co | --c ) |
10205 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 10206 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 | 10207 | debug=: ;; |
10208 | --file | --fil | --fi | --f ) | |
10209 | $ac_shift | |
042acc47 WP |
10210 | case $ac_optarg in |
10211 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b540af17 | 10212 | '') as_fn_error $? "missing file argument" ;; |
042acc47 WP |
10213 | esac |
10214 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 | 10215 | ac_need_defaults=false;; |
10216 | --header | --heade | --head | --hea ) | |
10217 | $ac_shift | |
042acc47 WP |
10218 | case $ac_optarg in |
10219 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10220 | esac | |
10221 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 10222 | ac_need_defaults=false;; |
631ef239 | 10223 | --he | --h) |
10224 | # Conflict between --help and --header | |
b540af17 | 10225 | as_fn_error $? "ambiguous option: \`$1' |
042acc47 | 10226 | Try \`$0 --help' for more information.";; |
631ef239 | 10227 | --help | --hel | -h ) |
042acc47 | 10228 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 | 10229 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10230 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10231 | ac_cs_silent=: ;; | |
10232 | ||
10233 | # This is an error. | |
b540af17 | 10234 | -*) as_fn_error $? "unrecognized option: \`$1' |
042acc47 | 10235 | Try \`$0 --help' for more information." ;; |
212380e3 | 10236 | |
042acc47 | 10237 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 10238 | ac_need_defaults=false ;; |
212380e3 | 10239 | |
10240 | esac | |
10241 | shift | |
10242 | done | |
10243 | ||
10244 | ac_configure_extra_args= | |
10245 | ||
10246 | if $ac_cs_silent; then | |
10247 | exec 6>/dev/null | |
10248 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10249 | fi | |
10250 | ||
10251 | _ACEOF | |
042acc47 | 10252 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 10253 | if \$ac_cs_recheck; then |
042acc47 WP |
10254 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
10255 | shift | |
10256 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10257 | CONFIG_SHELL='$SHELL' | |
631ef239 | 10258 | export CONFIG_SHELL |
042acc47 | 10259 | exec "\$@" |
212380e3 | 10260 | fi |
10261 | ||
10262 | _ACEOF | |
042acc47 | 10263 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 | 10264 | exec 5>>config.log |
10265 | { | |
10266 | echo | |
10267 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10268 | ## Running $as_me. ## | |
10269 | _ASBOX | |
042acc47 | 10270 | $as_echo "$ac_log" |
631ef239 | 10271 | } >&5 |
212380e3 | 10272 | |
631ef239 | 10273 | _ACEOF |
042acc47 | 10274 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 | 10275 | _ACEOF |
212380e3 | 10276 | |
042acc47 | 10277 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 | 10278 | |
10279 | # Handling of arguments. | |
212380e3 | 10280 | for ac_config_target in $ac_config_targets |
10281 | do | |
631ef239 | 10282 | case $ac_config_target in |
10283 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
10284 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
042acc47 | 10285 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
0454dd83 | 10286 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 10287 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
10288 | "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;; | |
10289 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
10290 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
10291 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
bf9bfd26 | 10292 | "tools/genssl.sh") CONFIG_FILES="$CONFIG_FILES tools/genssl.sh" ;; |
631ef239 | 10293 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
10294 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
bf9bfd26 | 10295 | "tools/genssl.sh_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl.sh_chmod" ;; |
631ef239 | 10296 | |
b540af17 | 10297 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 | 10298 | esac |
10299 | done | |
10300 | ||
631ef239 | 10301 | |
212380e3 | 10302 | # If the user did not use the arguments to specify the items to instantiate, |
10303 | # then the envvar interface is used. Set only those that are not. | |
10304 | # We use the long form for the default assignment because of an extremely | |
10305 | # bizarre bug on SunOS 4.1.3. | |
10306 | if $ac_need_defaults; then | |
10307 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10308 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
bf9bfd26 | 10309 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
212380e3 | 10310 | fi |
10311 | ||
10312 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 10313 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 10314 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 | 10315 | # Hook for its removal unless debugging. |
10316 | # Note that there is a small window in which the directory will not be cleaned: | |
10317 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 | 10318 | $debug || |
10319 | { | |
b540af17 | 10320 | tmp= ac_tmp= |
631ef239 | 10321 | trap 'exit_status=$? |
b540af17 JH |
10322 | : "${ac_tmp:=$tmp}" |
10323 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 10324 | ' 0 |
042acc47 | 10325 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 10326 | } |
212380e3 | 10327 | # Create a (secure) tmp directory for tmp files. |
10328 | ||
10329 | { | |
631ef239 | 10330 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b540af17 | 10331 | test -d "$tmp" |
212380e3 | 10332 | } || |
10333 | { | |
631ef239 | 10334 | tmp=./conf$$-$RANDOM |
10335 | (umask 077 && mkdir "$tmp") | |
b540af17 JH |
10336 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
10337 | ac_tmp=$tmp | |
212380e3 | 10338 | |
042acc47 WP |
10339 | # Set up the scripts for CONFIG_FILES section. |
10340 | # No need to generate them if there are no CONFIG_FILES. | |
10341 | # This happens for instance with `./config.status config.h'. | |
631ef239 | 10342 | if test -n "$CONFIG_FILES"; then |
10343 | ||
631ef239 | 10344 | |
042acc47 WP |
10345 | ac_cr=`echo X | tr X '\015'` |
10346 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10347 | # But we know of no other shell where ac_cr would be empty at this | |
10348 | # point, so we can use a bashism as a fallback. | |
10349 | if test "x$ac_cr" = x; then | |
10350 | eval ac_cr=\$\'\\r\' | |
10351 | fi | |
10352 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10353 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b540af17 | 10354 | ac_cs_awk_cr='\\r' |
042acc47 WP |
10355 | else |
10356 | ac_cs_awk_cr=$ac_cr | |
10357 | fi | |
10358 | ||
b540af17 | 10359 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
042acc47 | 10360 | _ACEOF |
631ef239 | 10361 | |
10362 | ||
042acc47 WP |
10363 | { |
10364 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10365 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10366 | echo "_ACEOF" | |
10367 | } >conf$$subs.sh || | |
b540af17 JH |
10368 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10369 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 | 10370 | ac_delim='%!_!# ' |
10371 | for ac_last_try in false false false false false :; do | |
042acc47 | 10372 | . ./conf$$subs.sh || |
b540af17 | 10373 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
042acc47 WP |
10374 | |
10375 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10376 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 | 10377 | break |
10378 | elif $ac_last_try; then | |
b540af17 | 10379 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 | 10380 | else |
10381 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 10382 | fi |
631ef239 | 10383 | done |
042acc47 WP |
10384 | rm -f conf$$subs.sh |
10385 | ||
10386 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b540af17 | 10387 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
042acc47 WP |
10388 | _ACEOF |
10389 | sed -n ' | |
10390 | h | |
10391 | s/^/S["/; s/!.*/"]=/ | |
10392 | p | |
10393 | g | |
10394 | s/^[^!]*!// | |
10395 | :repl | |
10396 | t repl | |
10397 | s/'"$ac_delim"'$// | |
10398 | t delim | |
10399 | :nl | |
10400 | h | |
1800d973 | 10401 | s/\(.\{148\}\)..*/\1/ |
042acc47 WP |
10402 | t more1 |
10403 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10404 | p | |
10405 | n | |
10406 | b repl | |
10407 | :more1 | |
10408 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10409 | p | |
10410 | g | |
10411 | s/.\{148\}// | |
10412 | t nl | |
10413 | :delim | |
10414 | h | |
1800d973 | 10415 | s/\(.\{148\}\)..*/\1/ |
042acc47 WP |
10416 | t more2 |
10417 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10418 | p | |
10419 | b | |
10420 | :more2 | |
10421 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10422 | p | |
10423 | g | |
10424 | s/.\{148\}// | |
10425 | t delim | |
10426 | ' <conf$$subs.awk | sed ' | |
10427 | /^[^""]/{ | |
10428 | N | |
10429 | s/\n// | |
10430 | } | |
10431 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10432 | rm -f conf$$subs.awk | |
10433 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10434 | _ACAWK | |
b540af17 | 10435 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
042acc47 WP |
10436 | for (key in S) S_is_set[key] = 1 |
10437 | FS = "\a" | |
212380e3 | 10438 | |
042acc47 WP |
10439 | } |
10440 | { | |
10441 | line = $ 0 | |
10442 | nfields = split(line, field, "@") | |
10443 | substed = 0 | |
10444 | len = length(field[1]) | |
10445 | for (i = 2; i < nfields; i++) { | |
10446 | key = field[i] | |
10447 | keylen = length(key) | |
10448 | if (S_is_set[key]) { | |
10449 | value = S[key] | |
10450 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10451 | len += length(value) + length(field[++i]) | |
10452 | substed = 1 | |
10453 | } else | |
10454 | len += 1 + keylen | |
10455 | } | |
631ef239 | 10456 | |
042acc47 WP |
10457 | print line |
10458 | } | |
10459 | ||
10460 | _ACAWK | |
631ef239 | 10461 | _ACEOF |
042acc47 WP |
10462 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10463 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10464 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10465 | else | |
10466 | cat | |
b540af17 JH |
10467 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
10468 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 10469 | _ACEOF |
631ef239 | 10470 | |
b540af17 JH |
10471 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
10472 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 | 10473 | # trailing colons and then remove the whole line if VPATH becomes empty |
10474 | # (actually we leave an empty line to preserve line numbers). | |
10475 | if test "x$srcdir" = x.; then | |
b540af17 JH |
10476 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
10477 | h | |
10478 | s/// | |
10479 | s/^/:/ | |
10480 | s/[ ]*$/:/ | |
10481 | s/:\$(srcdir):/:/g | |
10482 | s/:\${srcdir}:/:/g | |
10483 | s/:@srcdir@:/:/g | |
10484 | s/^:*// | |
631ef239 | 10485 | s/:*$// |
b540af17 JH |
10486 | x |
10487 | s/\(=[ ]*\).*/\1/ | |
10488 | G | |
10489 | s/\n// | |
631ef239 | 10490 | s/^[^=]*=[ ]*$// |
10491 | }' | |
10492 | fi | |
10493 | ||
042acc47 | 10494 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 | 10495 | fi # test -n "$CONFIG_FILES" |
10496 | ||
042acc47 WP |
10497 | # Set up the scripts for CONFIG_HEADERS section. |
10498 | # No need to generate them if there are no CONFIG_HEADERS. | |
10499 | # This happens for instance with `./config.status Makefile'. | |
10500 | if test -n "$CONFIG_HEADERS"; then | |
b540af17 | 10501 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
042acc47 WP |
10502 | BEGIN { |
10503 | _ACEOF | |
10504 | ||
10505 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
10506 | # here-document in config.status, that substitutes the proper values into | |
10507 | # config.h.in to produce config.h. | |
10508 | ||
10509 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
10510 | # handling of long lines. | |
10511 | ac_delim='%!_!# ' | |
10512 | for ac_last_try in false false :; do | |
b540af17 JH |
10513 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
10514 | if test -z "$ac_tt"; then | |
042acc47 WP |
10515 | break |
10516 | elif $ac_last_try; then | |
b540af17 | 10517 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
042acc47 WP |
10518 | else |
10519 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10520 | fi | |
10521 | done | |
10522 | ||
10523 | # For the awk script, D is an array of macro values keyed by name, | |
10524 | # likewise P contains macro parameters if any. Preserve backslash | |
10525 | # newline sequences. | |
10526 | ||
10527 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10528 | sed -n ' | |
10529 | s/.\{148\}/&'"$ac_delim"'/g | |
10530 | t rset | |
10531 | :rset | |
10532 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
10533 | t def | |
10534 | d | |
10535 | :def | |
10536 | s/\\$// | |
10537 | t bsnl | |
10538 | s/["\\]/\\&/g | |
10539 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10540 | D["\1"]=" \3"/p | |
10541 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
10542 | d | |
10543 | :bsnl | |
10544 | s/["\\]/\\&/g | |
10545 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10546 | D["\1"]=" \3\\\\\\n"\\/p | |
10547 | t cont | |
10548 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
10549 | t cont | |
10550 | d | |
10551 | :cont | |
10552 | n | |
10553 | s/.\{148\}/&'"$ac_delim"'/g | |
10554 | t clear | |
10555 | :clear | |
10556 | s/\\$// | |
10557 | t bsnlc | |
10558 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
10559 | d | |
10560 | :bsnlc | |
10561 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
10562 | b cont | |
10563 | ' <confdefs.h | sed ' | |
10564 | s/'"$ac_delim"'/"\\\ | |
10565 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
10566 | ||
10567 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10568 | for (key in D) D_is_set[key] = 1 | |
10569 | FS = "\a" | |
10570 | } | |
10571 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
10572 | line = \$ 0 | |
10573 | split(line, arg, " ") | |
10574 | if (arg[1] == "#") { | |
10575 | defundef = arg[2] | |
10576 | mac1 = arg[3] | |
10577 | } else { | |
10578 | defundef = substr(arg[1], 2) | |
10579 | mac1 = arg[2] | |
10580 | } | |
10581 | split(mac1, mac2, "(") #) | |
10582 | macro = mac2[1] | |
10583 | prefix = substr(line, 1, index(line, defundef) - 1) | |
10584 | if (D_is_set[macro]) { | |
10585 | # Preserve the white space surrounding the "#". | |
10586 | print prefix "define", macro P[macro] D[macro] | |
10587 | next | |
10588 | } else { | |
10589 | # Replace #undef with comments. This is necessary, for example, | |
10590 | # in the case of _POSIX_SOURCE, which is predefined and required | |
10591 | # on some systems where configure will not decide to define it. | |
10592 | if (defundef == "undef") { | |
10593 | print "/*", prefix defundef, macro, "*/" | |
10594 | next | |
10595 | } | |
10596 | } | |
10597 | } | |
10598 | { print } | |
10599 | _ACAWK | |
10600 | _ACEOF | |
10601 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b540af17 | 10602 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
042acc47 WP |
10603 | fi # test -n "$CONFIG_HEADERS" |
10604 | ||
631ef239 | 10605 | |
bf9bfd26 | 10606 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
042acc47 WP |
10607 | shift |
10608 | for ac_tag | |
631ef239 | 10609 | do |
10610 | case $ac_tag in | |
10611 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
10612 | esac | |
10613 | case $ac_mode$ac_tag in | |
10614 | :[FHL]*:*);; | |
b540af17 | 10615 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 | 10616 | :[FH]-) ac_tag=-:-;; |
10617 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 10618 | esac |
631ef239 | 10619 | ac_save_IFS=$IFS |
10620 | IFS=: | |
10621 | set x $ac_tag | |
10622 | IFS=$ac_save_IFS | |
10623 | shift | |
10624 | ac_file=$1 | |
10625 | shift | |
212380e3 | 10626 | |
631ef239 | 10627 | case $ac_mode in |
10628 | :L) ac_source=$1;; | |
10629 | :[FH]) | |
10630 | ac_file_inputs= | |
10631 | for ac_f | |
10632 | do | |
10633 | case $ac_f in | |
b540af17 | 10634 | -) ac_f="$ac_tmp/stdin";; |
631ef239 | 10635 | *) # Look for the file first in the build tree, then in the source tree |
10636 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10637 | # because $ac_f cannot contain `:'. | |
10638 | test -f "$ac_f" || | |
10639 | case $ac_f in | |
10640 | [\\/$]*) false;; | |
10641 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10642 | esac || | |
b540af17 | 10643 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 10644 | esac |
042acc47 WP |
10645 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
10646 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 | 10647 | done |
10648 | ||
10649 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10650 | # use $as_me), people would be surprised to read: | |
10651 | # /* config.h. Generated by config.status. */ | |
042acc47 WP |
10652 | configure_input='Generated from '` |
10653 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
10654 | `' by configure.' | |
631ef239 | 10655 | if test x"$ac_file" != x-; then |
10656 | configure_input="$ac_file. $configure_input" | |
042acc47 WP |
10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
10658 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 10659 | fi |
042acc47 WP |
10660 | # Neutralize special characters interpreted by sed in replacement strings. |
10661 | case $configure_input in #( | |
10662 | *\&* | *\|* | *\\* ) | |
10663 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
10664 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
10665 | *) ac_sed_conf_input=$configure_input;; | |
10666 | esac | |
631ef239 | 10667 | |
10668 | case $ac_tag in | |
b540af17 JH |
10669 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
10670 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 | 10671 | esac |
10672 | ;; | |
10673 | esac | |
10674 | ||
10675 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 | 10676 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10677 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10678 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 10679 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
042acc47 | 10680 | $as_echo X"$ac_file" | |
631ef239 | 10681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10682 | s//\1/ | |
10683 | q | |
10684 | } | |
10685 | /^X\(\/\/\)[^/].*/{ | |
10686 | s//\1/ | |
10687 | q | |
10688 | } | |
10689 | /^X\(\/\/\)$/{ | |
10690 | s//\1/ | |
10691 | q | |
10692 | } | |
10693 | /^X\(\/\).*/{ | |
10694 | s//\1/ | |
10695 | q | |
10696 | } | |
10697 | s/.*/./; q'` | |
042acc47 | 10698 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 | 10699 | ac_builddir=. |
10700 | ||
631ef239 | 10701 | case "$ac_dir" in |
10702 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10703 | *) | |
042acc47 | 10704 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 10705 | # A ".." for each directory in $ac_dir_suffix. |
042acc47 | 10706 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 | 10707 | case $ac_top_builddir_sub in |
10708 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10709 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10710 | esac ;; | |
10711 | esac | |
10712 | ac_abs_top_builddir=$ac_pwd | |
10713 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10714 | # for backward compatibility: | |
10715 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 | 10716 | |
10717 | case $srcdir in | |
631ef239 | 10718 | .) # We are building in place. |
212380e3 | 10719 | ac_srcdir=. |
631ef239 | 10720 | ac_top_srcdir=$ac_top_builddir_sub |
10721 | ac_abs_top_srcdir=$ac_pwd ;; | |
10722 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 10723 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 | 10724 | ac_top_srcdir=$srcdir |
10725 | ac_abs_top_srcdir=$srcdir ;; | |
10726 | *) # Relative name. | |
10727 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10728 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10729 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 10730 | esac |
631ef239 | 10731 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 10732 | |
212380e3 | 10733 | |
631ef239 | 10734 | case $ac_mode in |
10735 | :F) | |
10736 | # | |
10737 | # CONFIG_FILE | |
10738 | # | |
212380e3 | 10739 | |
10740 | case $INSTALL in | |
10741 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 10742 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 10743 | esac |
631ef239 | 10744 | _ACEOF |
212380e3 | 10745 | |
042acc47 | 10746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 | 10747 | # If the template does not know about datarootdir, expand it. |
10748 | # FIXME: This hack should be removed a few years after 2.60. | |
10749 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
042acc47 WP |
10750 | ac_sed_dataroot=' |
10751 | /datarootdir/ { | |
631ef239 | 10752 | p |
10753 | q | |
10754 | } | |
10755 | /@datadir@/p | |
10756 | /@docdir@/p | |
10757 | /@infodir@/p | |
10758 | /@localedir@/p | |
042acc47 WP |
10759 | /@mandir@/p' |
10760 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 | 10761 | *datarootdir*) ac_datarootdir_seen=yes;; |
10762 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
042acc47 WP |
10763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
10764 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 10765 | _ACEOF |
042acc47 | 10766 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 | 10767 | ac_datarootdir_hack=' |
10768 | s&@datadir@&$datadir&g | |
10769 | s&@docdir@&$docdir&g | |
10770 | s&@infodir@&$infodir&g | |
10771 | s&@localedir@&$localedir&g | |
10772 | s&@mandir@&$mandir&g | |
042acc47 | 10773 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 10774 | esac |
212380e3 | 10775 | _ACEOF |
631ef239 | 10776 | |
10777 | # Neutralize VPATH when `$srcdir' = `.'. | |
10778 | # Shell code in configure.ac might set extrasub. | |
10779 | # FIXME: do we really want to maintain this feature? | |
042acc47 WP |
10780 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10781 | ac_sed_extra="$ac_vpsub | |
212380e3 | 10782 | $extrasub |
10783 | _ACEOF | |
042acc47 | 10784 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 10785 | :t |
10786 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
042acc47 | 10787 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 10788 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
042acc47 | 10789 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 | 10790 | s&@srcdir@&$ac_srcdir&;t t |
10791 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
10792 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
10793 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
10794 | s&@builddir@&$ac_builddir&;t t | |
10795 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
10796 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
10797 | s&@INSTALL@&$ac_INSTALL&;t t | |
10798 | $ac_datarootdir_hack | |
042acc47 | 10799 | " |
b540af17 JH |
10800 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
10801 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 | 10802 | |
10803 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b540af17 JH |
10804 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
10805 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
10806 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
042acc47 | 10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b540af17 | 10808 | which seems to be undefined. Please make sure it is defined" >&5 |
042acc47 | 10809 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b540af17 | 10810 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 10811 | |
b540af17 | 10812 | rm -f "$ac_tmp/stdin" |
212380e3 | 10813 | case $ac_file in |
b540af17 JH |
10814 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
10815 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
042acc47 | 10816 | esac \ |
b540af17 | 10817 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 | 10818 | ;; |
10819 | :H) | |
10820 | # | |
10821 | # CONFIG_HEADER | |
10822 | # | |
212380e3 | 10823 | if test x"$ac_file" != x-; then |
042acc47 WP |
10824 | { |
10825 | $as_echo "/* $configure_input */" \ | |
b540af17 JH |
10826 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
10827 | } >"$ac_tmp/config.h" \ | |
10828 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
10829 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
042acc47 WP |
10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
10831 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 10832 | else |
042acc47 | 10833 | rm -f "$ac_file" |
b540af17 JH |
10834 | mv "$ac_tmp/config.h" "$ac_file" \ |
10835 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 | 10836 | fi |
10837 | else | |
042acc47 | 10838 | $as_echo "/* $configure_input */" \ |
b540af17 JH |
10839 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
10840 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 10841 | fi |
631ef239 | 10842 | ;; |
10843 | ||
bf9bfd26 JH |
10844 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
10845 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
10846 | ;; | |
631ef239 | 10847 | esac |
10848 | ||
bf9bfd26 JH |
10849 | |
10850 | case $ac_file$ac_mode in | |
10851 | "tools/genssl.sh_chmod":C) chmod 755 tools/genssl.sh ;; | |
10852 | ||
10853 | esac | |
631ef239 | 10854 | done # for ac_tag |
212380e3 | 10855 | |
212380e3 | 10856 | |
042acc47 | 10857 | as_fn_exit 0 |
212380e3 | 10858 | _ACEOF |
212380e3 | 10859 | ac_clean_files=$ac_clean_files_save |
10860 | ||
042acc47 | 10861 | test $ac_write_fail = 0 || |
b540af17 | 10862 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
042acc47 | 10863 | |
212380e3 | 10864 | |
10865 | # configure is writing to config.log, and then calls config.status. | |
10866 | # config.status does its own redirection, appending to config.log. | |
10867 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10868 | # by configure, so config.status won't be able to write to it; its | |
10869 | # output is simply discarded. So we exec the FD to /dev/null, | |
10870 | # effectively closing config.log, so it can be properly (re)opened and | |
10871 | # appended to by config.status. When coming back to configure, we | |
10872 | # need to make the FD available again. | |
10873 | if test "$no_create" != yes; then | |
10874 | ac_cs_success=: | |
10875 | ac_config_status_args= | |
10876 | test "$silent" = yes && | |
10877 | ac_config_status_args="$ac_config_status_args --quiet" | |
10878 | exec 5>/dev/null | |
10879 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10880 | exec 5>>config.log | |
10881 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10882 | # would make configure fail if this is the last instruction. | |
b540af17 | 10883 | $ac_cs_success || as_fn_exit 1 |
212380e3 | 10884 | fi |
10885 | ||
56efe974 WP |
10886 | # |
10887 | # CONFIG_SUBDIRS section. | |
10888 | # | |
10889 | if test "$no_recursion" != yes; then | |
10890 | ||
042acc47 WP |
10891 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
10892 | # so they do not pile up. | |
56efe974 WP |
10893 | ac_sub_configure_args= |
10894 | ac_prev= | |
10895 | eval "set x $ac_configure_args" | |
10896 | shift | |
10897 | for ac_arg | |
10898 | do | |
10899 | if test -n "$ac_prev"; then | |
10900 | ac_prev= | |
10901 | continue | |
10902 | fi | |
10903 | case $ac_arg in | |
10904 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
10905 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
10906 | ac_prev=cache_file ;; | |
10907 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
10908 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
10909 | | --c=*) | |
10910 | ;; | |
10911 | --config-cache | -C) | |
10912 | ;; | |
10913 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
10914 | ac_prev=srcdir ;; | |
10915 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
10916 | ;; | |
10917 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
10918 | ac_prev=prefix ;; | |
10919 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
10920 | ;; | |
042acc47 WP |
10921 | --disable-option-checking) |
10922 | ;; | |
56efe974 WP |
10923 | *) |
10924 | case $ac_arg in | |
042acc47 | 10925 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
56efe974 | 10926 | esac |
042acc47 | 10927 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
56efe974 WP |
10928 | esac |
10929 | done | |
10930 | ||
10931 | # Always prepend --prefix to ensure using the same prefix | |
10932 | # in subdir configurations. | |
10933 | ac_arg="--prefix=$prefix" | |
10934 | case $ac_arg in | |
042acc47 | 10935 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
56efe974 WP |
10936 | esac |
10937 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
10938 | ||
10939 | # Pass --silent | |
10940 | if test "$silent" = yes; then | |
10941 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
10942 | fi | |
10943 | ||
042acc47 WP |
10944 | # Always prepend --disable-option-checking to silence warnings, since |
10945 | # different subdirs can have different --enable and --with options. | |
10946 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
10947 | ||
56efe974 WP |
10948 | ac_popdir=`pwd` |
10949 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
10950 | ||
10951 | # Do not complain, so a configure script can configure whichever | |
10952 | # parts of a large source tree are present. | |
10953 | test -d "$srcdir/$ac_dir" || continue | |
10954 | ||
10955 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
042acc47 WP |
10956 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
10957 | $as_echo "$ac_msg" >&6 | |
10958 | as_dir="$ac_dir"; as_fn_mkdir_p | |
56efe974 WP |
10959 | ac_builddir=. |
10960 | ||
10961 | case "$ac_dir" in | |
10962 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10963 | *) | |
042acc47 | 10964 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
56efe974 | 10965 | # A ".." for each directory in $ac_dir_suffix. |
042acc47 | 10966 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
56efe974 WP |
10967 | case $ac_top_builddir_sub in |
10968 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10969 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10970 | esac ;; | |
10971 | esac | |
10972 | ac_abs_top_builddir=$ac_pwd | |
10973 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10974 | # for backward compatibility: | |
10975 | ac_top_builddir=$ac_top_build_prefix | |
10976 | ||
10977 | case $srcdir in | |
10978 | .) # We are building in place. | |
10979 | ac_srcdir=. | |
10980 | ac_top_srcdir=$ac_top_builddir_sub | |
10981 | ac_abs_top_srcdir=$ac_pwd ;; | |
10982 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
10983 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10984 | ac_top_srcdir=$srcdir | |
10985 | ac_abs_top_srcdir=$srcdir ;; | |
10986 | *) # Relative name. | |
10987 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10988 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10989 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
10990 | esac | |
10991 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
10992 | ||
10993 | ||
10994 | cd "$ac_dir" | |
10995 | ||
10996 | # Check for guested configure; otherwise get Cygnus style configure. | |
10997 | if test -f "$ac_srcdir/configure.gnu"; then | |
10998 | ac_sub_configure=$ac_srcdir/configure.gnu | |
10999 | elif test -f "$ac_srcdir/configure"; then | |
11000 | ac_sub_configure=$ac_srcdir/configure | |
11001 | elif test -f "$ac_srcdir/configure.in"; then | |
11002 | # This should be Cygnus configure. | |
11003 | ac_sub_configure=$ac_aux_dir/configure | |
11004 | else | |
042acc47 WP |
11005 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
11006 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
56efe974 WP |
11007 | ac_sub_configure= |
11008 | fi | |
11009 | ||
11010 | # The recursion is here. | |
11011 | if test -n "$ac_sub_configure"; then | |
11012 | # Make the cache file name correct relative to the subdirectory. | |
11013 | case $cache_file in | |
11014 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
11015 | *) # Relative name. | |
11016 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
11017 | esac | |
11018 | ||
042acc47 WP |
11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
11020 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
56efe974 WP |
11021 | # The eval makes quoting arguments work. |
11022 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
11023 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
b540af17 | 11024 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
56efe974 WP |
11025 | fi |
11026 | ||
11027 | cd "$ac_popdir" | |
11028 | done | |
11029 | fi | |
042acc47 WP |
11030 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
11032 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
11033 | fi | |
56efe974 | 11034 | |
212380e3 | 11035 | |
11036 | if test "$cf_openssl_version_ok" = yes; then | |
11037 | openssl="yes" | |
11038 | else | |
11039 | openssl="no" | |
11040 | fi | |
11041 | ||
11042 | if test "$shared_modules" = yes; then | |
11043 | modules=shared | |
11044 | else | |
11045 | modules=static | |
11046 | fi | |
11047 | ||
11048 | echo " | |
11049 | Configuration: | |
11050 | Install directory : $prefix | |
11051 | ||
11052 | Ziplinks : $zlib | |
11053 | OpenSSL : $openssl | |
212380e3 | 11054 | Socket Engine : $SELECT_TYPE |
11055 | Small network : $small_net | |
11056 | Block allocator : $balloc | |
212380e3 | 11057 | |
11058 | Nickname length : $NICKLEN | |
11059 | Topic length : $TOPICLEN | |
11060 | ||
4424a194 | 11061 | Use (g)make to compile ShadowIRCd, then (g)make install to install it. |
212380e3 | 11062 | " |