]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
2eff3833 | 3 | # Generated by GNU Autoconf 2.69 for charybdis 3.5.0-dev. |
212380e3 | 4 | # |
b676ea3b | 5 | # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 6 | # |
6fb6bd15 | 7 | # |
2eff3833 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
6fb6bd15 | 9 | # |
7083c021 | 10 | # |
212380e3 AC |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
7083c021 AC |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
212380e3 | 16 | |
631ef239 AC |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
20 | emulate sh |
21 | NULLCMD=: | |
7083c021 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 AC |
25 | setopt NO_GLOB_SUBST |
26 | else | |
7083c021 AC |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
631ef239 | 32 | esac |
631ef239 AC |
33 | fi |
34 | ||
35 | ||
7083c021 AC |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 56 | else |
7083c021 AC |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 69 | fi |
7083c021 AC |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
212380e3 | 72 | fi |
212380e3 | 73 | |
7083c021 AC |
74 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
212380e3 AC |
81 | fi |
82 | ||
83 | ||
631ef239 AC |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 92 | as_myself= |
7083c021 | 93 | case $0 in #(( |
631ef239 AC |
94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
631ef239 AC |
102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
7083c021 AC |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
113 | exit 1 | |
631ef239 AC |
114 | fi |
115 | ||
7083c021 AC |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 123 | done |
212380e3 AC |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
7083c021 AC |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
2eff3833 JT |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
7083c021 AC |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
2eff3833 JT |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
7083c021 AC |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212380e3 | 213 | do |
7083c021 AC |
214 | IFS=$as_save_IFS |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
2eff3833 JT |
241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
7083c021 AC |
260 | fi |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
212380e3 | 268 | else |
7083c021 AC |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
270 | $0: including any error possibly output before this | |
271 | $0: message. Then install a modern shell, or manually run | |
272 | $0: the script under such a shell if you do have one." | |
212380e3 | 273 | fi |
7083c021 AC |
274 | exit 1 |
275 | fi | |
276 | fi | |
277 | fi | |
278 | SHELL=${CONFIG_SHELL-/bin/sh} | |
279 | export SHELL | |
280 | # Unset more variables known to interfere with behavior of common tools. | |
281 | CLICOLOR_FORCE= GREP_OPTIONS= | |
282 | unset CLICOLOR_FORCE GREP_OPTIONS | |
283 | ||
284 | ## --------------------- ## | |
285 | ## M4sh Shell Functions. ## | |
286 | ## --------------------- ## | |
287 | # as_fn_unset VAR | |
288 | # --------------- | |
289 | # Portably unset VAR. | |
290 | as_fn_unset () | |
291 | { | |
292 | { eval $1=; unset $1;} | |
293 | } | |
294 | as_unset=as_fn_unset | |
295 | ||
296 | # as_fn_set_status STATUS | |
297 | # ----------------------- | |
298 | # Set $? to STATUS, without forking. | |
299 | as_fn_set_status () | |
300 | { | |
301 | return $1 | |
302 | } # as_fn_set_status | |
303 | ||
304 | # as_fn_exit STATUS | |
305 | # ----------------- | |
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | as_fn_exit () | |
308 | { | |
309 | set +e | |
310 | as_fn_set_status $1 | |
311 | exit $1 | |
312 | } # as_fn_exit | |
313 | ||
314 | # as_fn_mkdir_p | |
315 | # ------------- | |
316 | # Create "$as_dir" as a directory, including parents if necessary. | |
317 | as_fn_mkdir_p () | |
318 | { | |
319 | ||
320 | case $as_dir in #( | |
321 | -*) as_dir=./$as_dir;; | |
322 | esac | |
323 | test -d "$as_dir" || eval $as_mkdir_p || { | |
324 | as_dirs= | |
325 | while :; do | |
326 | case $as_dir in #( | |
327 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
328 | *) as_qdir=$as_dir;; | |
329 | esac | |
330 | as_dirs="'$as_qdir' $as_dirs" | |
331 | as_dir=`$as_dirname -- "$as_dir" || | |
332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
333 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
334 | X"$as_dir" : 'X\(//\)$' \| \ | |
335 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
336 | $as_echo X"$as_dir" | | |
337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
338 | s//\1/ | |
339 | q | |
340 | } | |
341 | /^X\(\/\/\)[^/].*/{ | |
342 | s//\1/ | |
343 | q | |
344 | } | |
345 | /^X\(\/\/\)$/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\).*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | s/.*/./; q'` | |
354 | test -d "$as_dir" && break | |
355 | done | |
356 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 357 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
358 | |
359 | ||
360 | } # as_fn_mkdir_p | |
2eff3833 JT |
361 | |
362 | # as_fn_executable_p FILE | |
363 | # ----------------------- | |
364 | # Test if FILE is an executable regular file. | |
365 | as_fn_executable_p () | |
366 | { | |
367 | test -f "$1" && test -x "$1" | |
368 | } # as_fn_executable_p | |
7083c021 AC |
369 | # as_fn_append VAR VALUE |
370 | # ---------------------- | |
371 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
372 | # advantage of any shell optimizations that allow amortized linear growth over | |
373 | # repeated appends, instead of the typical quadratic growth present in naive | |
374 | # implementations. | |
375 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
376 | eval 'as_fn_append () | |
377 | { | |
378 | eval $1+=\$2 | |
379 | }' | |
380 | else | |
381 | as_fn_append () | |
382 | { | |
383 | eval $1=\$$1\$2 | |
384 | } | |
385 | fi # as_fn_append | |
386 | ||
387 | # as_fn_arith ARG... | |
388 | # ------------------ | |
389 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
390 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
391 | # must be portable across $(()) and expr. | |
392 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
393 | eval 'as_fn_arith () | |
394 | { | |
395 | as_val=$(( $* )) | |
396 | }' | |
397 | else | |
398 | as_fn_arith () | |
399 | { | |
400 | as_val=`expr "$@" || test $? -eq 1` | |
401 | } | |
402 | fi # as_fn_arith | |
403 | ||
404 | ||
b6d0720c AC |
405 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
406 | # ---------------------------------------- | |
7083c021 AC |
407 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
408 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 409 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
410 | as_fn_error () |
411 | { | |
b6d0720c AC |
412 | as_status=$1; test $as_status -eq 0 && as_status=1 |
413 | if test "$4"; then | |
414 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
415 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7083c021 | 416 | fi |
b6d0720c | 417 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
418 | as_fn_exit $as_status |
419 | } # as_fn_error | |
212380e3 | 420 | |
631ef239 AC |
421 | if expr a : '\(a\)' >/dev/null 2>&1 && |
422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
423 | as_expr=expr |
424 | else | |
425 | as_expr=false | |
426 | fi | |
427 | ||
631ef239 | 428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
429 | as_basename=basename |
430 | else | |
431 | as_basename=false | |
432 | fi | |
433 | ||
7083c021 AC |
434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
435 | as_dirname=dirname | |
436 | else | |
437 | as_dirname=false | |
438 | fi | |
212380e3 | 439 | |
631ef239 | 440 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
442 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 443 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 444 | $as_echo X/"$0" | |
631ef239 AC |
445 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
446 | s//\1/ | |
447 | q | |
448 | } | |
449 | /^X\/\(\/\/\)$/{ | |
450 | s//\1/ | |
451 | q | |
452 | } | |
453 | /^X\/\(\/\).*/{ | |
454 | s//\1/ | |
455 | q | |
456 | } | |
457 | s/.*/./; q'` | |
212380e3 | 458 | |
7083c021 AC |
459 | # Avoid depending upon Character Ranges. |
460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
463 | as_cr_digits='0123456789' | |
464 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
212380e3 | 465 | |
212380e3 | 466 | |
7083c021 AC |
467 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
468 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
469 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
470 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
471 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
472 | sed -n ' | |
473 | p | |
474 | /[$]LINENO/= | |
475 | ' <$as_myself | | |
476 | sed ' | |
477 | s/[$]LINENO.*/&-/ | |
478 | t lineno | |
479 | b | |
480 | :lineno | |
481 | N | |
482 | :loop | |
483 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
484 | t loop | |
485 | s/-\n.*// | |
486 | ' >$as_me.lineno && | |
487 | chmod +x "$as_me.lineno" || | |
488 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
212380e3 | 489 | |
2eff3833 JT |
490 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
491 | # already done that, so ensure we don't try to do so again and fall | |
492 | # in an infinite loop. This has already happened in practice. | |
493 | _as_can_reexec=no; export _as_can_reexec | |
7083c021 AC |
494 | # Don't try to exec as it changes $[0], causing all sort of problems |
495 | # (the dirname of $[0] is not the place where we might find the | |
496 | # original and so on. Autoconf is especially sensitive to this). | |
497 | . "./$as_me.lineno" | |
498 | # Exit status is that of the last command. | |
499 | exit | |
631ef239 | 500 | } |
212380e3 | 501 | |
7083c021 AC |
502 | ECHO_C= ECHO_N= ECHO_T= |
503 | case `echo -n x` in #((((( | |
504 | -n*) | |
505 | case `echo 'xy\c'` in | |
506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
507 | xy) ECHO_C='\c';; | |
508 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
509 | ECHO_T=' ';; | |
510 | esac;; | |
511 | *) | |
512 | ECHO_N='-n';; | |
513 | esac | |
631ef239 | 514 | |
7083c021 AC |
515 | rm -f conf$$ conf$$.exe conf$$.file |
516 | if test -d conf$$.dir; then | |
517 | rm -f conf$$.dir/conf$$.file | |
518 | else | |
519 | rm -f conf$$.dir | |
520 | mkdir conf$$.dir 2>/dev/null | |
521 | fi | |
522 | if (echo >conf$$.file) 2>/dev/null; then | |
523 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
524 | as_ln_s='ln -s' | |
525 | # ... but there are two gotchas: | |
526 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
527 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 528 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 529 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 530 | as_ln_s='cp -pR' |
7083c021 AC |
531 | elif ln conf$$.file conf$$ 2>/dev/null; then |
532 | as_ln_s=ln | |
533 | else | |
2eff3833 | 534 | as_ln_s='cp -pR' |
7083c021 | 535 | fi |
631ef239 | 536 | else |
2eff3833 | 537 | as_ln_s='cp -pR' |
631ef239 | 538 | fi |
7083c021 AC |
539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
540 | rmdir conf$$.dir 2>/dev/null | |
631ef239 | 541 | |
7083c021 AC |
542 | if mkdir -p . 2>/dev/null; then |
543 | as_mkdir_p='mkdir -p "$as_dir"' | |
544 | else | |
545 | test -d ./-p && rmdir ./-p | |
546 | as_mkdir_p=false | |
631ef239 AC |
547 | fi |
548 | ||
2eff3833 JT |
549 | as_test_x='test -x' |
550 | as_executable_p=as_fn_executable_p | |
631ef239 | 551 | |
7083c021 AC |
552 | # Sed expression to map a string onto a valid CPP name. |
553 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 | 554 | |
7083c021 AC |
555 | # Sed expression to map a string onto a valid variable name. |
556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 AC |
557 | |
558 | ||
6fb6bd15 AC |
559 | test -n "$DJDIR" || exec 7<&0 </dev/null |
560 | exec 6>&1 | |
631ef239 | 561 | |
7083c021 | 562 | # Name of the host. |
b6d0720c | 563 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
7083c021 AC |
564 | # so uname gets run too. |
565 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
631ef239 | 566 | |
7083c021 AC |
567 | # |
568 | # Initializations. | |
569 | # | |
570 | ac_default_prefix=/usr/local | |
571 | ac_clean_files= | |
572 | ac_config_libobj_dir=. | |
573 | LIBOBJS= | |
574 | cross_compiling=no | |
575 | subdirs= | |
576 | MFLAGS= | |
577 | MAKEFLAGS= | |
212380e3 | 578 | |
212380e3 AC |
579 | # Identity of this package. |
580 | PACKAGE_NAME='charybdis' | |
581 | PACKAGE_TARNAME='charybdis' | |
dc9aebf4 JT |
582 | PACKAGE_VERSION='3.5.0-dev' |
583 | PACKAGE_STRING='charybdis 3.5.0-dev' | |
212380e3 | 584 | PACKAGE_BUGREPORT='' |
7083c021 | 585 | PACKAGE_URL='' |
212380e3 AC |
586 | |
587 | ac_default_prefix=$HOME/ircd | |
588 | # Factoring default headers for most tests. | |
589 | ac_includes_default="\ | |
590 | #include <stdio.h> | |
631ef239 | 591 | #ifdef HAVE_SYS_TYPES_H |
212380e3 AC |
592 | # include <sys/types.h> |
593 | #endif | |
631ef239 | 594 | #ifdef HAVE_SYS_STAT_H |
212380e3 AC |
595 | # include <sys/stat.h> |
596 | #endif | |
631ef239 | 597 | #ifdef STDC_HEADERS |
212380e3 AC |
598 | # include <stdlib.h> |
599 | # include <stddef.h> | |
600 | #else | |
631ef239 | 601 | # ifdef HAVE_STDLIB_H |
212380e3 AC |
602 | # include <stdlib.h> |
603 | # endif | |
604 | #endif | |
631ef239 AC |
605 | #ifdef HAVE_STRING_H |
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 AC |
607 | # include <memory.h> |
608 | # endif | |
609 | # include <string.h> | |
610 | #endif | |
631ef239 | 611 | #ifdef HAVE_STRINGS_H |
212380e3 AC |
612 | # include <strings.h> |
613 | #endif | |
631ef239 | 614 | #ifdef HAVE_INTTYPES_H |
212380e3 | 615 | # include <inttypes.h> |
212380e3 | 616 | #endif |
631ef239 AC |
617 | #ifdef HAVE_STDINT_H |
618 | # include <stdint.h> | |
619 | #endif | |
620 | #ifdef HAVE_UNISTD_H | |
212380e3 AC |
621 | # include <unistd.h> |
622 | #endif" | |
623 | ||
7083c021 | 624 | ac_subst_vars='LTLIBOBJS |
631ef239 | 625 | LIBOBJS |
7083c021 AC |
626 | SEDOBJ |
627 | IRC_CFLAGS | |
628 | PICFLAGS | |
629 | SSL_LIBS | |
630 | SSL_INCLUDES | |
631 | SSL_SRCS_ENABLE | |
632 | MOD_TARGET | |
633 | MODULES_LIBS | |
634 | SELECT_TYPE | |
9f9b7042 NPB |
635 | PROGRAM_PREFIX |
636 | PKGRUNDIR | |
7083c021 AC |
637 | moduledir |
638 | MODULE_DIR | |
639 | helpdir | |
640 | HELP_DIR | |
641 | logdir | |
642 | LOG_DIR | |
7083c021 | 643 | ETC_DIR |
74ab6be0 | 644 | SQLITE_SRC |
a5471f24 | 645 | SQLITE_INCLUDES |
497e30a0 | 646 | SQLITE_LD |
a5471f24 LS |
647 | SQLITE_LIBS |
648 | SQLITE_CFLAGS | |
649 | PKG_CONFIG_LIBDIR | |
650 | PKG_CONFIG_PATH | |
651 | PKG_CONFIG | |
7083c021 AC |
652 | ZLIB_LD |
653 | ENCSPEED | |
654 | ALLOCA | |
655 | VICONF | |
656 | CRYPT_LIB | |
9f9b7042 NPB |
657 | PKGLIBEXECDIR |
658 | pkglibexecdir | |
659 | PKGLOCALSTATEDIR | |
660 | pkglocalstatedir | |
661 | pkgrundir | |
662 | rundir | |
663 | pkglibdir | |
7083c021 AC |
664 | LEXLIB |
665 | LEX_OUTPUT_ROOT | |
666 | LEX | |
667 | YFLAGS | |
668 | YACC | |
669 | TOUCH | |
670 | RANLIB | |
671 | LD | |
672 | AR | |
673 | SED | |
674 | LN | |
675 | MV | |
676 | CP | |
677 | RM | |
678 | INSTALL_DATA | |
679 | INSTALL_SCRIPT | |
680 | INSTALL_PROGRAM | |
681 | SET_MAKE | |
682 | STDOUT | |
683 | MAKEDEPEND | |
684 | MKDEP | |
7083c021 AC |
685 | EGREP |
686 | GREP | |
687 | CPP | |
688 | OBJEXT | |
689 | EXEEXT | |
690 | ac_ct_CC | |
691 | CPPFLAGS | |
692 | LDFLAGS | |
693 | CFLAGS | |
694 | CC | |
695 | target_alias | |
696 | host_alias | |
697 | build_alias | |
698 | LIBS | |
699 | ECHO_T | |
700 | ECHO_N | |
701 | ECHO_C | |
702 | DEFS | |
703 | mandir | |
704 | localedir | |
705 | libdir | |
706 | psdir | |
707 | pdfdir | |
708 | dvidir | |
709 | htmldir | |
710 | infodir | |
711 | docdir | |
712 | oldincludedir | |
713 | includedir | |
714 | localstatedir | |
715 | sharedstatedir | |
716 | sysconfdir | |
717 | datadir | |
718 | datarootdir | |
719 | libexecdir | |
720 | sbindir | |
721 | bindir | |
722 | program_transform_name | |
723 | prefix | |
724 | exec_prefix | |
725 | PACKAGE_URL | |
726 | PACKAGE_BUGREPORT | |
727 | PACKAGE_STRING | |
728 | PACKAGE_VERSION | |
729 | PACKAGE_TARNAME | |
730 | PACKAGE_NAME | |
731 | PATH_SEPARATOR | |
732 | SHELL' | |
212380e3 | 733 | ac_subst_files='' |
7083c021 AC |
734 | ac_user_opts=' |
735 | enable_option_checking | |
9f9b7042 | 736 | enable_fhs_paths |
7083c021 AC |
737 | enable_ipv6 |
738 | enable_openssl | |
739 | with_zlib_path | |
740 | enable_zlib | |
a6ef3156 | 741 | with_shared_sqlite |
7083c021 AC |
742 | enable_ports |
743 | enable_poll | |
744 | enable_select | |
745 | enable_kqueue | |
746 | enable_epoll | |
747 | with_confdir | |
748 | with_logdir | |
749 | with_helpdir | |
750 | with_moduledir | |
9f9b7042 NPB |
751 | with_rundir |
752 | with_program_prefix | |
b6d0720c AC |
753 | with_custom_branding |
754 | with_custom_version | |
7083c021 AC |
755 | enable_assert |
756 | enable_iodebug | |
757 | enable_profile | |
758 | enable_balloc | |
759 | enable_small_net | |
760 | with_nicklen | |
761 | with_topiclen | |
762 | enable_warnings | |
763 | ' | |
631ef239 AC |
764 | ac_precious_vars='build_alias |
765 | host_alias | |
766 | target_alias | |
767 | CC | |
768 | CFLAGS | |
769 | LDFLAGS | |
770 | LIBS | |
771 | CPPFLAGS | |
772 | CPP | |
773 | YACC | |
a5471f24 LS |
774 | YFLAGS |
775 | PKG_CONFIG | |
776 | PKG_CONFIG_PATH | |
777 | PKG_CONFIG_LIBDIR | |
778 | SQLITE_CFLAGS | |
779 | SQLITE_LIBS' | |
780 | ||
212380e3 AC |
781 | |
782 | # Initialize some variables set by options. | |
783 | ac_init_help= | |
784 | ac_init_version=false | |
7083c021 AC |
785 | ac_unrecognized_opts= |
786 | ac_unrecognized_sep= | |
212380e3 AC |
787 | # The variables have the same names as the options, with |
788 | # dashes changed to underlines. | |
789 | cache_file=/dev/null | |
790 | exec_prefix=NONE | |
791 | no_create= | |
792 | no_recursion= | |
793 | prefix=NONE | |
794 | program_prefix=NONE | |
795 | program_suffix=NONE | |
796 | program_transform_name=s,x,x, | |
797 | silent= | |
798 | site= | |
799 | srcdir= | |
800 | verbose= | |
801 | x_includes=NONE | |
802 | x_libraries=NONE | |
803 | ||
804 | # Installation directory options. | |
805 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
806 | # and all the variables that are supposed to be based on exec_prefix | |
807 | # by default will actually change. | |
808 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 809 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
810 | bindir='${exec_prefix}/bin' |
811 | sbindir='${exec_prefix}/sbin' | |
812 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
813 | datarootdir='${prefix}/share' |
814 | datadir='${datarootdir}' | |
212380e3 AC |
815 | sysconfdir='${prefix}/etc' |
816 | sharedstatedir='${prefix}/com' | |
817 | localstatedir='${prefix}/var' | |
212380e3 AC |
818 | includedir='${prefix}/include' |
819 | oldincludedir='/usr/include' | |
631ef239 AC |
820 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
821 | infodir='${datarootdir}/info' | |
822 | htmldir='${docdir}' | |
823 | dvidir='${docdir}' | |
824 | pdfdir='${docdir}' | |
825 | psdir='${docdir}' | |
826 | libdir='${exec_prefix}/lib' | |
827 | localedir='${datarootdir}/locale' | |
828 | mandir='${datarootdir}/man' | |
212380e3 AC |
829 | |
830 | ac_prev= | |
631ef239 | 831 | ac_dashdash= |
212380e3 AC |
832 | for ac_option |
833 | do | |
834 | # If the previous option needs an argument, assign it. | |
835 | if test -n "$ac_prev"; then | |
631ef239 | 836 | eval $ac_prev=\$ac_option |
212380e3 AC |
837 | ac_prev= |
838 | continue | |
839 | fi | |
840 | ||
631ef239 | 841 | case $ac_option in |
b6d0720c AC |
842 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
843 | *=) ac_optarg= ;; | |
844 | *) ac_optarg=yes ;; | |
631ef239 | 845 | esac |
212380e3 AC |
846 | |
847 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
848 | ||
631ef239 AC |
849 | case $ac_dashdash$ac_option in |
850 | --) | |
851 | ac_dashdash=yes ;; | |
212380e3 AC |
852 | |
853 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
854 | ac_prev=bindir ;; | |
855 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
856 | bindir=$ac_optarg ;; | |
857 | ||
858 | -build | --build | --buil | --bui | --bu) | |
859 | ac_prev=build_alias ;; | |
860 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
861 | build_alias=$ac_optarg ;; | |
862 | ||
863 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
864 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
865 | ac_prev=cache_file ;; | |
866 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
867 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
868 | cache_file=$ac_optarg ;; | |
869 | ||
870 | --config-cache | -C) | |
871 | cache_file=config.cache ;; | |
872 | ||
631ef239 | 873 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 874 | ac_prev=datadir ;; |
631ef239 | 875 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
876 | datadir=$ac_optarg ;; |
877 | ||
631ef239 AC |
878 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
879 | | --dataroo | --dataro | --datar) | |
880 | ac_prev=datarootdir ;; | |
881 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
882 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
883 | datarootdir=$ac_optarg ;; | |
884 | ||
212380e3 | 885 | -disable-* | --disable-*) |
7083c021 | 886 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 887 | # Reject names that are not valid shell variable names. |
7083c021 | 888 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 889 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
890 | ac_useropt_orig=$ac_useropt |
891 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
892 | case $ac_user_opts in | |
893 | *" | |
894 | "enable_$ac_useropt" | |
895 | "*) ;; | |
896 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
897 | ac_unrecognized_sep=', ';; | |
898 | esac | |
899 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
900 | |
901 | -docdir | --docdir | --docdi | --doc | --do) | |
902 | ac_prev=docdir ;; | |
903 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
904 | docdir=$ac_optarg ;; | |
905 | ||
906 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
907 | ac_prev=dvidir ;; | |
908 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
909 | dvidir=$ac_optarg ;; | |
212380e3 AC |
910 | |
911 | -enable-* | --enable-*) | |
7083c021 | 912 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 913 | # Reject names that are not valid shell variable names. |
7083c021 | 914 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 915 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
916 | ac_useropt_orig=$ac_useropt |
917 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
918 | case $ac_user_opts in | |
919 | *" | |
920 | "enable_$ac_useropt" | |
921 | "*) ;; | |
922 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
923 | ac_unrecognized_sep=', ';; | |
924 | esac | |
925 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
926 | |
927 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
928 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
929 | | --exec | --exe | --ex) | |
930 | ac_prev=exec_prefix ;; | |
931 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
932 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
933 | | --exec=* | --exe=* | --ex=*) | |
934 | exec_prefix=$ac_optarg ;; | |
935 | ||
936 | -gas | --gas | --ga | --g) | |
937 | # Obsolete; use --with-gas. | |
938 | with_gas=yes ;; | |
939 | ||
940 | -help | --help | --hel | --he | -h) | |
941 | ac_init_help=long ;; | |
942 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
943 | ac_init_help=recursive ;; | |
944 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
945 | ac_init_help=short ;; | |
946 | ||
947 | -host | --host | --hos | --ho) | |
948 | ac_prev=host_alias ;; | |
949 | -host=* | --host=* | --hos=* | --ho=*) | |
950 | host_alias=$ac_optarg ;; | |
951 | ||
631ef239 AC |
952 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
953 | ac_prev=htmldir ;; | |
954 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
955 | | --ht=*) | |
956 | htmldir=$ac_optarg ;; | |
957 | ||
212380e3 AC |
958 | -includedir | --includedir | --includedi | --included | --include \ |
959 | | --includ | --inclu | --incl | --inc) | |
960 | ac_prev=includedir ;; | |
961 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
962 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
963 | includedir=$ac_optarg ;; | |
964 | ||
965 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
966 | ac_prev=infodir ;; | |
967 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
968 | infodir=$ac_optarg ;; | |
969 | ||
970 | -libdir | --libdir | --libdi | --libd) | |
971 | ac_prev=libdir ;; | |
972 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
973 | libdir=$ac_optarg ;; | |
974 | ||
975 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
976 | | --libexe | --libex | --libe) | |
977 | ac_prev=libexecdir ;; | |
978 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
979 | | --libexe=* | --libex=* | --libe=*) | |
980 | libexecdir=$ac_optarg ;; | |
981 | ||
631ef239 AC |
982 | -localedir | --localedir | --localedi | --localed | --locale) |
983 | ac_prev=localedir ;; | |
984 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
985 | localedir=$ac_optarg ;; | |
986 | ||
212380e3 | 987 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 988 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
989 | ac_prev=localstatedir ;; |
990 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 991 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
992 | localstatedir=$ac_optarg ;; |
993 | ||
994 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
995 | ac_prev=mandir ;; | |
996 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
997 | mandir=$ac_optarg ;; | |
998 | ||
999 | -nfp | --nfp | --nf) | |
1000 | # Obsolete; use --without-fp. | |
1001 | with_fp=no ;; | |
1002 | ||
1003 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1004 | | --no-cr | --no-c | -n) | |
1005 | no_create=yes ;; | |
1006 | ||
1007 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1008 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1009 | no_recursion=yes ;; | |
1010 | ||
1011 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1012 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1013 | | --oldin | --oldi | --old | --ol | --o) | |
1014 | ac_prev=oldincludedir ;; | |
1015 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1016 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1017 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1018 | oldincludedir=$ac_optarg ;; | |
1019 | ||
1020 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1021 | ac_prev=prefix ;; | |
1022 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1023 | prefix=$ac_optarg ;; | |
1024 | ||
1025 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1026 | | --program-pre | --program-pr | --program-p) | |
1027 | ac_prev=program_prefix ;; | |
1028 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1029 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1030 | program_prefix=$ac_optarg ;; | |
1031 | ||
1032 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1033 | | --program-suf | --program-su | --program-s) | |
1034 | ac_prev=program_suffix ;; | |
1035 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1036 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1037 | program_suffix=$ac_optarg ;; | |
1038 | ||
1039 | -program-transform-name | --program-transform-name \ | |
1040 | | --program-transform-nam | --program-transform-na \ | |
1041 | | --program-transform-n | --program-transform- \ | |
1042 | | --program-transform | --program-transfor \ | |
1043 | | --program-transfo | --program-transf \ | |
1044 | | --program-trans | --program-tran \ | |
1045 | | --progr-tra | --program-tr | --program-t) | |
1046 | ac_prev=program_transform_name ;; | |
1047 | -program-transform-name=* | --program-transform-name=* \ | |
1048 | | --program-transform-nam=* | --program-transform-na=* \ | |
1049 | | --program-transform-n=* | --program-transform-=* \ | |
1050 | | --program-transform=* | --program-transfor=* \ | |
1051 | | --program-transfo=* | --program-transf=* \ | |
1052 | | --program-trans=* | --program-tran=* \ | |
1053 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1054 | program_transform_name=$ac_optarg ;; | |
1055 | ||
631ef239 AC |
1056 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1057 | ac_prev=pdfdir ;; | |
1058 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1059 | pdfdir=$ac_optarg ;; | |
1060 | ||
1061 | -psdir | --psdir | --psdi | --psd | --ps) | |
1062 | ac_prev=psdir ;; | |
1063 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1064 | psdir=$ac_optarg ;; | |
1065 | ||
212380e3 AC |
1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1067 | | -silent | --silent | --silen | --sile | --sil) | |
1068 | silent=yes ;; | |
1069 | ||
1070 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1071 | ac_prev=sbindir ;; | |
1072 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1073 | | --sbi=* | --sb=*) | |
1074 | sbindir=$ac_optarg ;; | |
1075 | ||
1076 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1077 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1078 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1079 | | --sha | --sh) | |
1080 | ac_prev=sharedstatedir ;; | |
1081 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1082 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1083 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1084 | | --sha=* | --sh=*) | |
1085 | sharedstatedir=$ac_optarg ;; | |
1086 | ||
1087 | -site | --site | --sit) | |
1088 | ac_prev=site ;; | |
1089 | -site=* | --site=* | --sit=*) | |
1090 | site=$ac_optarg ;; | |
1091 | ||
1092 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1093 | ac_prev=srcdir ;; | |
1094 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1095 | srcdir=$ac_optarg ;; | |
1096 | ||
1097 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1098 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1099 | ac_prev=sysconfdir ;; | |
1100 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1101 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1102 | sysconfdir=$ac_optarg ;; | |
1103 | ||
1104 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1105 | ac_prev=target_alias ;; | |
1106 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1107 | target_alias=$ac_optarg ;; | |
1108 | ||
1109 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1110 | verbose=yes ;; | |
1111 | ||
1112 | -version | --version | --versio | --versi | --vers | -V) | |
1113 | ac_init_version=: ;; | |
1114 | ||
1115 | -with-* | --with-*) | |
7083c021 | 1116 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1117 | # Reject names that are not valid shell variable names. |
7083c021 | 1118 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1119 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1120 | ac_useropt_orig=$ac_useropt |
1121 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1122 | case $ac_user_opts in | |
1123 | *" | |
1124 | "with_$ac_useropt" | |
1125 | "*) ;; | |
1126 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1127 | ac_unrecognized_sep=', ';; | |
1128 | esac | |
1129 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1130 | |
1131 | -without-* | --without-*) | |
7083c021 | 1132 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1133 | # Reject names that are not valid shell variable names. |
7083c021 | 1134 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1135 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1136 | ac_useropt_orig=$ac_useropt |
1137 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1138 | case $ac_user_opts in | |
1139 | *" | |
1140 | "with_$ac_useropt" | |
1141 | "*) ;; | |
1142 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1143 | ac_unrecognized_sep=', ';; | |
1144 | esac | |
1145 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1146 | |
1147 | --x) | |
1148 | # Obsolete; use --with-x. | |
1149 | with_x=yes ;; | |
1150 | ||
1151 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1152 | | --x-incl | --x-inc | --x-in | --x-i) | |
1153 | ac_prev=x_includes ;; | |
1154 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1155 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1156 | x_includes=$ac_optarg ;; | |
1157 | ||
1158 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1159 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1160 | ac_prev=x_libraries ;; | |
1161 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1162 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1163 | x_libraries=$ac_optarg ;; | |
1164 | ||
b6d0720c AC |
1165 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1166 | Try \`$0 --help' for more information" | |
212380e3 AC |
1167 | ;; |
1168 | ||
1169 | *=*) | |
1170 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1171 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1172 | case $ac_envvar in #( |
1173 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1174 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1175 | esac |
631ef239 | 1176 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1177 | export $ac_envvar ;; |
1178 | ||
1179 | *) | |
1180 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1181 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1182 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1183 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1184 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1185 | ;; |
1186 | ||
1187 | esac | |
1188 | done | |
1189 | ||
1190 | if test -n "$ac_prev"; then | |
1191 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1192 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1193 | fi |
1194 | ||
7083c021 AC |
1195 | if test -n "$ac_unrecognized_opts"; then |
1196 | case $enable_option_checking in | |
1197 | no) ;; | |
b6d0720c | 1198 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1199 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1200 | esac | |
1201 | fi | |
1202 | ||
1203 | # Check all directory arguments for consistency. | |
631ef239 AC |
1204 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1205 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1206 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1207 | libdir localedir mandir | |
212380e3 | 1208 | do |
631ef239 | 1209 | eval ac_val=\$$ac_var |
7083c021 AC |
1210 | # Remove trailing slashes. |
1211 | case $ac_val in | |
1212 | */ ) | |
1213 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1214 | eval $ac_var=\$ac_val;; | |
1215 | esac | |
1216 | # Be sure to have absolute directory names. | |
212380e3 | 1217 | case $ac_val in |
631ef239 AC |
1218 | [\\/$]* | ?:[\\/]* ) continue;; |
1219 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1220 | esac |
b6d0720c | 1221 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1222 | done |
1223 | ||
1224 | # There might be people who depend on the old broken behavior: `$host' | |
1225 | # used to hold the argument of --host etc. | |
1226 | # FIXME: To remove some day. | |
1227 | build=$build_alias | |
1228 | host=$host_alias | |
1229 | target=$target_alias | |
1230 | ||
1231 | # FIXME: To remove some day. | |
1232 | if test "x$host_alias" != x; then | |
1233 | if test "x$build_alias" = x; then | |
1234 | cross_compiling=maybe | |
212380e3 AC |
1235 | elif test "x$build_alias" != "x$host_alias"; then |
1236 | cross_compiling=yes | |
1237 | fi | |
1238 | fi | |
1239 | ||
1240 | ac_tool_prefix= | |
1241 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1242 | ||
1243 | test "$silent" = yes && exec 6>/dev/null | |
1244 | ||
1245 | ||
631ef239 AC |
1246 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1247 | ac_ls_di=`ls -di .` && | |
1248 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1249 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1250 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1251 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1252 | |
1253 | ||
1254 | # Find the source files, if location was not specified. | |
1255 | if test -z "$srcdir"; then | |
212380e3 | 1256 | ac_srcdir_defaulted=yes |
631ef239 | 1257 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1258 | ac_confdir=`$as_dirname -- "$as_myself" || |
1259 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1260 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1261 | X"$as_myself" : 'X\(//\)$' \| \ | |
1262 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1263 | $as_echo X"$as_myself" | | |
631ef239 AC |
1264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1265 | s//\1/ | |
1266 | q | |
1267 | } | |
1268 | /^X\(\/\/\)[^/].*/{ | |
1269 | s//\1/ | |
1270 | q | |
1271 | } | |
1272 | /^X\(\/\/\)$/{ | |
1273 | s//\1/ | |
1274 | q | |
1275 | } | |
1276 | /^X\(\/\).*/{ | |
1277 | s//\1/ | |
1278 | q | |
1279 | } | |
1280 | s/.*/./; q'` | |
212380e3 | 1281 | srcdir=$ac_confdir |
631ef239 | 1282 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1283 | srcdir=.. |
1284 | fi | |
1285 | else | |
1286 | ac_srcdir_defaulted=no | |
1287 | fi | |
631ef239 AC |
1288 | if test ! -r "$srcdir/$ac_unique_file"; then |
1289 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1290 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1291 | fi |
631ef239 AC |
1292 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1293 | ac_abs_confdir=`( | |
b6d0720c | 1294 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1295 | pwd)` |
1296 | # When building in place, set srcdir=. | |
1297 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1298 | srcdir=. | |
1299 | fi | |
1300 | # Remove unnecessary trailing slashes from srcdir. | |
1301 | # Double slashes in file names in object file debugging info | |
1302 | # mess up M-x gdb in Emacs. | |
1303 | case $srcdir in | |
1304 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1305 | esac | |
1306 | for ac_var in $ac_precious_vars; do | |
1307 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1308 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1309 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1310 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1311 | done | |
212380e3 AC |
1312 | |
1313 | # | |
1314 | # Report the --help message. | |
1315 | # | |
1316 | if test "$ac_init_help" = "long"; then | |
1317 | # Omit some internal or obsolete options to make the list less imposing. | |
1318 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1319 | cat <<_ACEOF | |
dc9aebf4 | 1320 | \`configure' configures charybdis 3.5.0-dev to adapt to many kinds of systems. |
212380e3 AC |
1321 | |
1322 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1323 | ||
1324 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1325 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1326 | ||
1327 | Defaults for the options are specified in brackets. | |
1328 | ||
1329 | Configuration: | |
1330 | -h, --help display this help and exit | |
1331 | --help=short display options specific to this package | |
1332 | --help=recursive display the short help of all the included packages | |
1333 | -V, --version display version information and exit | |
b6d0720c | 1334 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1335 | --cache-file=FILE cache test results in FILE [disabled] |
1336 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1337 | -n, --no-create do not create output files | |
1338 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1339 | ||
212380e3 AC |
1340 | Installation directories: |
1341 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1342 | [$ac_default_prefix] |
212380e3 | 1343 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1344 | [PREFIX] |
212380e3 AC |
1345 | |
1346 | By default, \`make install' will install all the files in | |
1347 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1348 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1349 | for instance \`--prefix=\$HOME'. | |
1350 | ||
1351 | For better control, use the options below. | |
1352 | ||
1353 | Fine tuning of the installation directories: | |
7083c021 AC |
1354 | --bindir=DIR user executables [EPREFIX/bin] |
1355 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1356 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1357 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1358 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1359 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1360 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1361 | --includedir=DIR C header files [PREFIX/include] | |
1362 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1363 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1364 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1365 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1366 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1367 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1368 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1369 | --htmldir=DIR html documentation [DOCDIR] | |
1370 | --dvidir=DIR dvi documentation [DOCDIR] | |
1371 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1372 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1373 | _ACEOF |
1374 | ||
1375 | cat <<\_ACEOF | |
1376 | _ACEOF | |
1377 | fi | |
1378 | ||
1379 | if test -n "$ac_init_help"; then | |
1380 | case $ac_init_help in | |
dc9aebf4 | 1381 | short | recursive ) echo "Configuration of charybdis 3.5.0-dev:";; |
212380e3 AC |
1382 | esac |
1383 | cat <<\_ACEOF | |
1384 | ||
1385 | Optional Features: | |
7083c021 | 1386 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1387 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1388 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6929cd01 | 1389 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). |
212380e3 | 1390 | --enable-ipv6 Enable IPv6 support |
631ef239 | 1391 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1392 | --disable-openssl Disable OpenSSL support. |
1393 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1394 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1395 | --enable-poll Force poll() usage. |
1396 | --enable-select Force select() usage. | |
1397 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1398 | --enable-epoll Force sys_epoll usage (Linux only). |
1399 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1400 | hard(aborts the daemon) | |
1401 | --enable-iodebug Enable IO Debugging hooks | |
1402 | --enable-profile Enable profiling | |
1403 | --disable-balloc Disable the block allocator. | |
212380e3 | 1404 | --enable-small-net Enable small network support. |
212380e3 AC |
1405 | --enable-warnings Enable all sorts of warnings for debugging. |
1406 | ||
1407 | Optional Packages: | |
1408 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1409 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1410 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
a6ef3156 | 1411 | --with-shared-sqlite Use shared sqlite |
634d4aad NPB |
1412 | --with-confdir=DIR Directory to install config files [deprecated, use |
1413 | --sysconfdir instead]. | |
212380e3 AC |
1414 | --with-logdir=DIR Directory where to write logfiles. |
1415 | --with-helpdir=DIR Directory to install help files. | |
1416 | --with-moduledir=DIR Directory to install modules. | |
9f9b7042 NPB |
1417 | --with-rundir=DIR Directory in which to store pidfile. |
1418 | --with-program-prefix= If set, programs installed into PATH will be | |
1419 | installed with names prefixed by this prefix. | |
b6d0720c AC |
1420 | --with-custom-branding=NAME |
1421 | Custom branding name. | |
1422 | --with-custom-version=NAME | |
1423 | Custom version branding. | |
b583faf9 | 1424 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default |
cf533739 | 1425 | 31, max 50) |
212380e3 AC |
1426 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1427 | 390) | |
212380e3 AC |
1428 | |
1429 | Some influential environment variables: | |
1430 | CC C compiler command | |
1431 | CFLAGS C compiler flags | |
1432 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1433 | nonstandard directory <lib dir> | |
631ef239 | 1434 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1435 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1436 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1437 | CPP C preprocessor |
b6d0720c AC |
1438 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1439 | Defaults to the first program found out of: `bison -y', `byacc', | |
1440 | `yacc'. | |
631ef239 AC |
1441 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1442 | This script will default YFLAGS to the empty string to avoid a | |
1443 | default value of `-d' given by some make applications. | |
a5471f24 LS |
1444 | PKG_CONFIG path to pkg-config utility |
1445 | PKG_CONFIG_PATH | |
1446 | directories to add to pkg-config's search path | |
1447 | PKG_CONFIG_LIBDIR | |
1448 | path overriding pkg-config's built-in search path | |
1449 | SQLITE_CFLAGS | |
1450 | C compiler flags for SQLITE, overriding pkg-config | |
1451 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
212380e3 AC |
1452 | |
1453 | Use these variables to override the choices made by `configure' or to help | |
1454 | it to find libraries and programs with nonstandard names/locations. | |
1455 | ||
7083c021 | 1456 | Report bugs to the package provider. |
212380e3 | 1457 | _ACEOF |
631ef239 | 1458 | ac_status=$? |
212380e3 AC |
1459 | fi |
1460 | ||
1461 | if test "$ac_init_help" = "recursive"; then | |
1462 | # If there are subdirs, report their specific --help. | |
212380e3 | 1463 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1464 | test -d "$ac_dir" || |
1465 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1466 | continue | |
212380e3 AC |
1467 | ac_builddir=. |
1468 | ||
631ef239 AC |
1469 | case "$ac_dir" in |
1470 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1471 | *) | |
7083c021 | 1472 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1473 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1474 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1475 | case $ac_top_builddir_sub in |
1476 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1477 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1478 | esac ;; | |
1479 | esac | |
1480 | ac_abs_top_builddir=$ac_pwd | |
1481 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1482 | # for backward compatibility: | |
1483 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1484 | |
1485 | case $srcdir in | |
631ef239 | 1486 | .) # We are building in place. |
212380e3 | 1487 | ac_srcdir=. |
631ef239 AC |
1488 | ac_top_srcdir=$ac_top_builddir_sub |
1489 | ac_abs_top_srcdir=$ac_pwd ;; | |
1490 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1491 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1492 | ac_top_srcdir=$srcdir |
1493 | ac_abs_top_srcdir=$srcdir ;; | |
1494 | *) # Relative name. | |
1495 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1496 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1497 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1498 | esac |
631ef239 AC |
1499 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1500 | ||
1501 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1502 | # Check for guested configure. | |
1503 | if test -f "$ac_srcdir/configure.gnu"; then | |
1504 | echo && | |
1505 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1506 | elif test -f "$ac_srcdir/configure"; then | |
1507 | echo && | |
1508 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1509 | else |
7083c021 | 1510 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1511 | fi || ac_status=$? |
1512 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1513 | done |
1514 | fi | |
1515 | ||
631ef239 | 1516 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1517 | if $ac_init_version; then |
1518 | cat <<\_ACEOF | |
dc9aebf4 | 1519 | charybdis configure 3.5.0-dev |
2eff3833 | 1520 | generated by GNU Autoconf 2.69 |
212380e3 | 1521 | |
2eff3833 | 1522 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
1523 | This configure script is free software; the Free Software Foundation |
1524 | gives unlimited permission to copy, distribute and modify it. | |
1525 | ||
b676ea3b | 1526 | $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 1527 | _ACEOF |
631ef239 | 1528 | exit |
212380e3 | 1529 | fi |
212380e3 | 1530 | |
7083c021 AC |
1531 | ## ------------------------ ## |
1532 | ## Autoconf initialization. ## | |
1533 | ## ------------------------ ## | |
212380e3 | 1534 | |
7083c021 AC |
1535 | # ac_fn_c_try_compile LINENO |
1536 | # -------------------------- | |
1537 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1538 | ac_fn_c_try_compile () | |
1539 | { | |
1540 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1541 | rm -f conftest.$ac_objext | |
1542 | if { { ac_try="$ac_compile" | |
1543 | case "(($ac_try" in | |
1544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1545 | *) ac_try_echo=$ac_try;; | |
1546 | esac | |
1547 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1548 | $as_echo "$ac_try_echo"; } >&5 | |
1549 | (eval "$ac_compile") 2>conftest.err | |
1550 | ac_status=$? | |
1551 | if test -s conftest.err; then | |
1552 | grep -v '^ *+' conftest.err >conftest.er1 | |
1553 | cat conftest.er1 >&5 | |
1554 | mv -f conftest.er1 conftest.err | |
1555 | fi | |
1556 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1557 | test $ac_status = 0; } && { | |
1558 | test -z "$ac_c_werror_flag" || | |
1559 | test ! -s conftest.err | |
1560 | } && test -s conftest.$ac_objext; then : | |
1561 | ac_retval=0 | |
1562 | else | |
1563 | $as_echo "$as_me: failed program was:" >&5 | |
1564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1565 | |
7083c021 AC |
1566 | ac_retval=1 |
1567 | fi | |
b6d0720c | 1568 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1569 | as_fn_set_status $ac_retval |
7083c021 AC |
1570 | |
1571 | } # ac_fn_c_try_compile | |
1572 | ||
1573 | # ac_fn_c_try_cpp LINENO | |
1574 | # ---------------------- | |
1575 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1576 | ac_fn_c_try_cpp () | |
212380e3 | 1577 | { |
7083c021 AC |
1578 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1579 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1580 | case "(($ac_try" in | |
1581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1582 | *) ac_try_echo=$ac_try;; | |
1583 | esac | |
1584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1585 | $as_echo "$ac_try_echo"; } >&5 | |
1586 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1587 | ac_status=$? | |
1588 | if test -s conftest.err; then | |
1589 | grep -v '^ *+' conftest.err >conftest.er1 | |
1590 | cat conftest.er1 >&5 | |
1591 | mv -f conftest.er1 conftest.err | |
1592 | fi | |
1593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b6d0720c | 1594 | test $ac_status = 0; } > conftest.i && { |
7083c021 AC |
1595 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1596 | test ! -s conftest.err | |
1597 | }; then : | |
1598 | ac_retval=0 | |
1599 | else | |
1600 | $as_echo "$as_me: failed program was:" >&5 | |
1601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1602 | |
7083c021 AC |
1603 | ac_retval=1 |
1604 | fi | |
b6d0720c | 1605 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1606 | as_fn_set_status $ac_retval |
212380e3 | 1607 | |
7083c021 | 1608 | } # ac_fn_c_try_cpp |
212380e3 | 1609 | |
7083c021 AC |
1610 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1611 | # ------------------------------------------------------- | |
1612 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1613 | # the include files in INCLUDES and setting the cache variable VAR | |
1614 | # accordingly. | |
1615 | ac_fn_c_check_header_mongrel () | |
1616 | { | |
1617 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b6d0720c | 1618 | if eval \${$3+:} false; then : |
7083c021 AC |
1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1620 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1621 | if eval \${$3+:} false; then : |
7083c021 AC |
1622 | $as_echo_n "(cached) " >&6 |
1623 | fi | |
1624 | eval ac_res=\$$3 | |
1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1626 | $as_echo "$ac_res" >&6; } | |
1627 | else | |
1628 | # Is the header compilable? | |
1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1630 | $as_echo_n "checking $2 usability... " >&6; } | |
1631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1632 | /* end confdefs.h. */ | |
1633 | $4 | |
1634 | #include <$2> | |
1635 | _ACEOF | |
1636 | if ac_fn_c_try_compile "$LINENO"; then : | |
1637 | ac_header_compiler=yes | |
1638 | else | |
1639 | ac_header_compiler=no | |
1640 | fi | |
1641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1643 | $as_echo "$ac_header_compiler" >&6; } | |
212380e3 | 1644 | |
7083c021 AC |
1645 | # Is the header present? |
1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1647 | $as_echo_n "checking $2 presence... " >&6; } | |
1648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1649 | /* end confdefs.h. */ | |
1650 | #include <$2> | |
1651 | _ACEOF | |
1652 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1653 | ac_header_preproc=yes | |
1654 | else | |
1655 | ac_header_preproc=no | |
1656 | fi | |
b6d0720c | 1657 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1659 | $as_echo "$ac_header_preproc" >&6; } | |
212380e3 | 1660 | |
7083c021 AC |
1661 | # So? What about this header? |
1662 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1663 | yes:no: ) | |
1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1665 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1667 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1668 | ;; | |
1669 | no:yes:* ) | |
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1671 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1673 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1675 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1677 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1679 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1680 | ;; | |
1681 | esac | |
1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1683 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1684 | if eval \${$3+:} false; then : |
7083c021 AC |
1685 | $as_echo_n "(cached) " >&6 |
1686 | else | |
1687 | eval "$3=\$ac_header_compiler" | |
1688 | fi | |
1689 | eval ac_res=\$$3 | |
1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1691 | $as_echo "$ac_res" >&6; } | |
1692 | fi | |
b6d0720c | 1693 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1694 | |
7083c021 | 1695 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1696 | |
7083c021 AC |
1697 | # ac_fn_c_try_run LINENO |
1698 | # ---------------------- | |
1699 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1700 | # that executables *can* be run. | |
1701 | ac_fn_c_try_run () | |
1702 | { | |
1703 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1704 | if { { ac_try="$ac_link" | |
1705 | case "(($ac_try" in | |
1706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1707 | *) ac_try_echo=$ac_try;; | |
1708 | esac | |
1709 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1710 | $as_echo "$ac_try_echo"; } >&5 | |
1711 | (eval "$ac_link") 2>&5 | |
1712 | ac_status=$? | |
1713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1714 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1715 | { { case "(($ac_try" in | |
1716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1717 | *) ac_try_echo=$ac_try;; | |
1718 | esac | |
1719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1720 | $as_echo "$ac_try_echo"; } >&5 | |
1721 | (eval "$ac_try") 2>&5 | |
1722 | ac_status=$? | |
1723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1724 | test $ac_status = 0; }; }; then : | |
1725 | ac_retval=0 | |
1726 | else | |
1727 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1728 | $as_echo "$as_me: failed program was:" >&5 | |
1729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1730 | |
7083c021 AC |
1731 | ac_retval=$ac_status |
1732 | fi | |
1733 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1734 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1735 | as_fn_set_status $ac_retval |
212380e3 | 1736 | |
7083c021 | 1737 | } # ac_fn_c_try_run |
212380e3 | 1738 | |
7083c021 AC |
1739 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1740 | # ------------------------------------------------------- | |
1741 | # Tests whether HEADER exists and can be compiled using the include files in | |
1742 | # INCLUDES, setting the cache variable VAR accordingly. | |
1743 | ac_fn_c_check_header_compile () | |
1744 | { | |
1745 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1747 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1748 | if eval \${$3+:} false; then : |
7083c021 AC |
1749 | $as_echo_n "(cached) " >&6 |
1750 | else | |
1751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1752 | /* end confdefs.h. */ | |
1753 | $4 | |
1754 | #include <$2> | |
212380e3 | 1755 | _ACEOF |
7083c021 AC |
1756 | if ac_fn_c_try_compile "$LINENO"; then : |
1757 | eval "$3=yes" | |
1758 | else | |
1759 | eval "$3=no" | |
1760 | fi | |
1761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1762 | fi | |
1763 | eval ac_res=\$$3 | |
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1765 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 1766 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1767 | |
7083c021 | 1768 | } # ac_fn_c_check_header_compile |
212380e3 | 1769 | |
7083c021 AC |
1770 | # ac_fn_c_try_link LINENO |
1771 | # ----------------------- | |
1772 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1773 | ac_fn_c_try_link () | |
1774 | { | |
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1777 | if { { ac_try="$ac_link" | |
1778 | case "(($ac_try" in | |
1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1780 | *) ac_try_echo=$ac_try;; | |
1781 | esac | |
1782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1783 | $as_echo "$ac_try_echo"; } >&5 | |
1784 | (eval "$ac_link") 2>conftest.err | |
1785 | ac_status=$? | |
1786 | if test -s conftest.err; then | |
1787 | grep -v '^ *+' conftest.err >conftest.er1 | |
1788 | cat conftest.er1 >&5 | |
1789 | mv -f conftest.er1 conftest.err | |
1790 | fi | |
1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1792 | test $ac_status = 0; } && { | |
1793 | test -z "$ac_c_werror_flag" || | |
1794 | test ! -s conftest.err | |
1795 | } && test -s conftest$ac_exeext && { | |
1796 | test "$cross_compiling" = yes || | |
2eff3833 | 1797 | test -x conftest$ac_exeext |
7083c021 AC |
1798 | }; then : |
1799 | ac_retval=0 | |
212380e3 | 1800 | else |
7083c021 AC |
1801 | $as_echo "$as_me: failed program was:" >&5 |
1802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1803 | |
7083c021 | 1804 | ac_retval=1 |
212380e3 | 1805 | fi |
7083c021 AC |
1806 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1807 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1808 | # interfere with the next link command; also delete a directory that is | |
1809 | # left behind by Apple's compiler. We do this before executing the actions. | |
1810 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1811 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1812 | as_fn_set_status $ac_retval |
212380e3 | 1813 | |
7083c021 | 1814 | } # ac_fn_c_try_link |
212380e3 | 1815 | |
7083c021 AC |
1816 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1817 | # ------------------------------------------- | |
1818 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1819 | # variable VAR accordingly. | |
1820 | ac_fn_c_check_type () | |
1821 | { | |
1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1824 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1825 | if eval \${$3+:} false; then : |
7083c021 | 1826 | $as_echo_n "(cached) " >&6 |
212380e3 | 1827 | else |
7083c021 AC |
1828 | eval "$3=no" |
1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1830 | /* end confdefs.h. */ | |
1831 | $4 | |
1832 | int | |
1833 | main () | |
1834 | { | |
1835 | if (sizeof ($2)) | |
1836 | return 0; | |
1837 | ; | |
1838 | return 0; | |
1839 | } | |
212380e3 | 1840 | _ACEOF |
7083c021 AC |
1841 | if ac_fn_c_try_compile "$LINENO"; then : |
1842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1843 | /* end confdefs.h. */ |
7083c021 | 1844 | $4 |
212380e3 AC |
1845 | int |
1846 | main () | |
1847 | { | |
7083c021 AC |
1848 | if (sizeof (($2))) |
1849 | return 0; | |
212380e3 AC |
1850 | ; |
1851 | return 0; | |
1852 | } | |
1853 | _ACEOF | |
7083c021 | 1854 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 1855 | |
631ef239 | 1856 | else |
7083c021 | 1857 | eval "$3=yes" |
212380e3 | 1858 | fi |
7083c021 | 1859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1860 | fi |
7083c021 | 1861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1862 | fi |
7083c021 AC |
1863 | eval ac_res=\$$3 |
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1865 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 1866 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1867 | |
7083c021 AC |
1868 | } # ac_fn_c_check_type |
1869 | ||
1870 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1871 | # -------------------------------------------- | |
1872 | # Tries to find the compile-time value of EXPR in a program that includes | |
1873 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1874 | # computed | |
1875 | ac_fn_c_compute_int () | |
1876 | { | |
1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1878 | if test "$cross_compiling" = yes; then | |
1879 | # Depending upon the size, compute the lo and hi bounds. | |
1880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1881 | /* end confdefs.h. */ | |
1882 | $4 | |
1883 | int | |
1884 | main () | |
1885 | { | |
1886 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2eff3833 JT |
1887 | test_array [0] = 0; |
1888 | return test_array [0]; | |
7083c021 AC |
1889 | |
1890 | ; | |
1891 | return 0; | |
1892 | } | |
212380e3 | 1893 | _ACEOF |
7083c021 AC |
1894 | if ac_fn_c_try_compile "$LINENO"; then : |
1895 | ac_lo=0 ac_mid=0 | |
1896 | while :; do | |
1897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1898 | /* end confdefs.h. */ |
7083c021 AC |
1899 | $4 |
1900 | int | |
1901 | main () | |
1902 | { | |
1903 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
1904 | test_array [0] = 0; |
1905 | return test_array [0]; | |
212380e3 | 1906 | |
7083c021 AC |
1907 | ; |
1908 | return 0; | |
1909 | } | |
212380e3 | 1910 | _ACEOF |
7083c021 AC |
1911 | if ac_fn_c_try_compile "$LINENO"; then : |
1912 | ac_hi=$ac_mid; break | |
212380e3 | 1913 | else |
7083c021 AC |
1914 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
1915 | if test $ac_lo -le $ac_mid; then | |
1916 | ac_lo= ac_hi= | |
1917 | break | |
1918 | fi | |
1919 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 1920 | fi |
631ef239 | 1921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
1922 | done |
1923 | else | |
1924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1925 | /* end confdefs.h. */ | |
1926 | $4 | |
1927 | int | |
1928 | main () | |
1929 | { | |
1930 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2eff3833 JT |
1931 | test_array [0] = 0; |
1932 | return test_array [0]; | |
212380e3 | 1933 | |
7083c021 AC |
1934 | ; |
1935 | return 0; | |
1936 | } | |
212380e3 | 1937 | _ACEOF |
7083c021 AC |
1938 | if ac_fn_c_try_compile "$LINENO"; then : |
1939 | ac_hi=-1 ac_mid=-1 | |
1940 | while :; do | |
1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1942 | /* end confdefs.h. */ | |
1943 | $4 | |
1944 | int | |
1945 | main () | |
1946 | { | |
1947 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2eff3833 JT |
1948 | test_array [0] = 0; |
1949 | return test_array [0]; | |
212380e3 | 1950 | |
7083c021 AC |
1951 | ; |
1952 | return 0; | |
1953 | } | |
1954 | _ACEOF | |
1955 | if ac_fn_c_try_compile "$LINENO"; then : | |
1956 | ac_lo=$ac_mid; break | |
1957 | else | |
1958 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1959 | if test $ac_mid -le $ac_hi; then | |
1960 | ac_lo= ac_hi= | |
1961 | break | |
1962 | fi | |
1963 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 1964 | fi |
7083c021 AC |
1965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1966 | done | |
212380e3 | 1967 | else |
7083c021 AC |
1968 | ac_lo= ac_hi= |
1969 | fi | |
1970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1971 | fi | |
1972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1973 | # Binary search between lo and hi bounds. | |
1974 | while test "x$ac_lo" != "x$ac_hi"; do | |
1975 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1977 | /* end confdefs.h. */ |
7083c021 AC |
1978 | $4 |
1979 | int | |
1980 | main () | |
1981 | { | |
1982 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
1983 | test_array [0] = 0; |
1984 | return test_array [0]; | |
7083c021 AC |
1985 | |
1986 | ; | |
1987 | return 0; | |
1988 | } | |
212380e3 | 1989 | _ACEOF |
7083c021 AC |
1990 | if ac_fn_c_try_compile "$LINENO"; then : |
1991 | ac_hi=$ac_mid | |
212380e3 | 1992 | else |
7083c021 | 1993 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 1994 | fi |
7083c021 AC |
1995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1996 | done | |
1997 | case $ac_lo in #(( | |
1998 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1999 | '') ac_retval=1 ;; | |
2000 | esac | |
2001 | else | |
2002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2003 | /* end confdefs.h. */ | |
2004 | $4 | |
2005 | static long int longval () { return $2; } | |
2006 | static unsigned long int ulongval () { return $2; } | |
2007 | #include <stdio.h> | |
2008 | #include <stdlib.h> | |
2009 | int | |
2010 | main () | |
2011 | { | |
631ef239 | 2012 | |
7083c021 AC |
2013 | FILE *f = fopen ("conftest.val", "w"); |
2014 | if (! f) | |
2015 | return 1; | |
2016 | if (($2) < 0) | |
2017 | { | |
2018 | long int i = longval (); | |
2019 | if (i != ($2)) | |
2020 | return 1; | |
2021 | fprintf (f, "%ld", i); | |
2022 | } | |
2023 | else | |
2024 | { | |
2025 | unsigned long int i = ulongval (); | |
2026 | if (i != ($2)) | |
2027 | return 1; | |
2028 | fprintf (f, "%lu", i); | |
2029 | } | |
2030 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2031 | on some platforms. */ | |
2032 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 2033 | |
7083c021 AC |
2034 | ; |
2035 | return 0; | |
2036 | } | |
212380e3 | 2037 | _ACEOF |
7083c021 AC |
2038 | if ac_fn_c_try_run "$LINENO"; then : |
2039 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 2040 | else |
7083c021 | 2041 | ac_retval=1 |
212380e3 | 2042 | fi |
7083c021 AC |
2043 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2044 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2045 | rm -f conftest.val | |
631ef239 | 2046 | |
7083c021 | 2047 | fi |
b6d0720c | 2048 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 2049 | as_fn_set_status $ac_retval |
212380e3 | 2050 | |
7083c021 | 2051 | } # ac_fn_c_compute_int |
212380e3 | 2052 | |
7083c021 AC |
2053 | # ac_fn_c_check_func LINENO FUNC VAR |
2054 | # ---------------------------------- | |
2055 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2056 | ac_fn_c_check_func () | |
2057 | { | |
2058 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2060 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 2061 | if eval \${$3+:} false; then : |
7083c021 | 2062 | $as_echo_n "(cached) " >&6 |
212380e3 | 2063 | else |
7083c021 | 2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 2065 | /* end confdefs.h. */ |
7083c021 AC |
2066 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
2067 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2068 | #define $2 innocuous_$2 | |
2069 | ||
2070 | /* System header to define __stub macros and hopefully few prototypes, | |
2071 | which can conflict with char $2 (); below. | |
2072 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2073 | <limits.h> exists even on freestanding compilers. */ | |
2074 | ||
212380e3 AC |
2075 | #ifdef __STDC__ |
2076 | # include <limits.h> | |
2077 | #else | |
2078 | # include <assert.h> | |
2079 | #endif | |
212380e3 | 2080 | |
7083c021 | 2081 | #undef $2 |
631ef239 | 2082 | |
7083c021 AC |
2083 | /* Override any GCC internal prototype to avoid an error. |
2084 | Use char because int might match the return type of a GCC | |
2085 | builtin and then its argument prototype would still apply. */ | |
2086 | #ifdef __cplusplus | |
2087 | extern "C" | |
2088 | #endif | |
2089 | char $2 (); | |
2090 | /* The GNU C library defines this for functions which it implements | |
2091 | to always fail with ENOSYS. Some functions are actually named | |
2092 | something starting with __ and the normal name is an alias. */ | |
2093 | #if defined __stub_$2 || defined __stub___$2 | |
2094 | choke me | |
2095 | #endif | |
212380e3 | 2096 | |
7083c021 AC |
2097 | int |
2098 | main () | |
2099 | { | |
2100 | return $2 (); | |
2101 | ; | |
2102 | return 0; | |
2103 | } | |
212380e3 | 2104 | _ACEOF |
7083c021 AC |
2105 | if ac_fn_c_try_link "$LINENO"; then : |
2106 | eval "$3=yes" | |
212380e3 | 2107 | else |
7083c021 AC |
2108 | eval "$3=no" |
2109 | fi | |
2110 | rm -f core conftest.err conftest.$ac_objext \ | |
2111 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 2112 | fi |
7083c021 AC |
2113 | eval ac_res=\$$3 |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2115 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2116 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
631ef239 | 2117 | |
7083c021 AC |
2118 | } # ac_fn_c_check_func |
2119 | cat >config.log <<_ACEOF | |
2120 | This file contains any messages produced by compilers while | |
2121 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2122 | |
dc9aebf4 | 2123 | It was created by charybdis $as_me 3.5.0-dev, which was |
2eff3833 | 2124 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 | 2125 | |
7083c021 | 2126 | $ $0 $@ |
212380e3 | 2127 | |
7083c021 AC |
2128 | _ACEOF |
2129 | exec 5>>config.log | |
2130 | { | |
2131 | cat <<_ASUNAME | |
2132 | ## --------- ## | |
2133 | ## Platform. ## | |
2134 | ## --------- ## | |
2135 | ||
2136 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2137 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2138 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2139 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2140 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2141 | ||
2142 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2143 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2144 | ||
2145 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2146 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2147 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2148 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2149 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2150 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2151 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2152 | ||
2153 | _ASUNAME | |
212380e3 | 2154 | |
631ef239 | 2155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2156 | for as_dir in $PATH |
631ef239 AC |
2157 | do |
2158 | IFS=$as_save_IFS | |
2159 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2160 | $as_echo "PATH: $as_dir" |
631ef239 | 2161 | done |
631ef239 AC |
2162 | IFS=$as_save_IFS |
2163 | ||
7083c021 | 2164 | } >&5 |
631ef239 | 2165 | |
7083c021 | 2166 | cat >&5 <<_ACEOF |
631ef239 | 2167 | |
631ef239 | 2168 | |
7083c021 AC |
2169 | ## ----------- ## |
2170 | ## Core tests. ## | |
2171 | ## ----------- ## | |
631ef239 | 2172 | |
7083c021 | 2173 | _ACEOF |
631ef239 AC |
2174 | |
2175 | ||
7083c021 AC |
2176 | # Keep a trace of the command line. |
2177 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2178 | # Strip out --silent because we don't want to record it for future runs. | |
2179 | # Also quote any args containing shell meta-characters. | |
2180 | # Make two passes to allow for proper duplicate-argument suppression. | |
2181 | ac_configure_args= | |
2182 | ac_configure_args0= | |
2183 | ac_configure_args1= | |
2184 | ac_must_keep_next=false | |
2185 | for ac_pass in 1 2 | |
631ef239 | 2186 | do |
7083c021 | 2187 | for ac_arg |
631ef239 | 2188 | do |
7083c021 AC |
2189 | case $ac_arg in |
2190 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2192 | | -silent | --silent | --silen | --sile | --sil) | |
2193 | continue ;; | |
2194 | *\'*) | |
2195 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2196 | esac | |
2197 | case $ac_pass in | |
2198 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2199 | 2) | |
2200 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2201 | if test $ac_must_keep_next = true; then | |
2202 | ac_must_keep_next=false # Got value, back to normal. | |
2203 | else | |
2204 | case $ac_arg in | |
2205 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2206 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2207 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2208 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2209 | case "$ac_configure_args0 " in | |
2210 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2211 | esac | |
2212 | ;; | |
2213 | -* ) ac_must_keep_next=true ;; | |
2214 | esac | |
2215 | fi | |
2216 | as_fn_append ac_configure_args " '$ac_arg'" | |
2217 | ;; | |
2218 | esac | |
631ef239 AC |
2219 | done |
2220 | done | |
7083c021 AC |
2221 | { ac_configure_args0=; unset ac_configure_args0;} |
2222 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2223 | |
7083c021 AC |
2224 | # When interrupted or exit'd, cleanup temporary files, and complete |
2225 | # config.log. We remove comments because anyway the quotes in there | |
2226 | # would cause problems or look ugly. | |
2227 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2228 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2229 | trap 'exit_status=$? | |
2230 | # Save into config.log some information that might help in debugging. | |
2231 | { | |
2232 | echo | |
631ef239 | 2233 | |
b6d0720c | 2234 | $as_echo "## ---------------- ## |
7083c021 | 2235 | ## Cache variables. ## |
b6d0720c | 2236 | ## ---------------- ##" |
7083c021 AC |
2237 | echo |
2238 | # The following way of writing the cache mishandles newlines in values, | |
2239 | ( | |
2240 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2241 | eval ac_val=\$$ac_var | |
2242 | case $ac_val in #( | |
2243 | *${as_nl}*) | |
2244 | case $ac_var in #( | |
2245 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2246 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2247 | esac | |
2248 | case $ac_var in #( | |
2249 | _ | IFS | as_nl) ;; #( | |
2250 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2251 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2252 | esac ;; | |
2253 | esac | |
2254 | done | |
2255 | (set) 2>&1 | | |
2256 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2257 | *${as_nl}ac_space=\ *) | |
2258 | sed -n \ | |
2259 | "s/'\''/'\''\\\\'\'''\''/g; | |
2260 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2261 | ;; #( | |
2262 | *) | |
2263 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2264 | ;; | |
2265 | esac | | |
2266 | sort | |
2267 | ) | |
2268 | echo | |
631ef239 | 2269 | |
b6d0720c | 2270 | $as_echo "## ----------------- ## |
7083c021 | 2271 | ## Output variables. ## |
b6d0720c | 2272 | ## ----------------- ##" |
7083c021 AC |
2273 | echo |
2274 | for ac_var in $ac_subst_vars | |
2275 | do | |
2276 | eval ac_val=\$$ac_var | |
2277 | case $ac_val in | |
2278 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2279 | esac | |
2280 | $as_echo "$ac_var='\''$ac_val'\''" | |
2281 | done | sort | |
2282 | echo | |
631ef239 | 2283 | |
7083c021 | 2284 | if test -n "$ac_subst_files"; then |
b6d0720c | 2285 | $as_echo "## ------------------- ## |
7083c021 | 2286 | ## File substitutions. ## |
b6d0720c | 2287 | ## ------------------- ##" |
7083c021 AC |
2288 | echo |
2289 | for ac_var in $ac_subst_files | |
2290 | do | |
2291 | eval ac_val=\$$ac_var | |
2292 | case $ac_val in | |
2293 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2294 | esac | |
2295 | $as_echo "$ac_var='\''$ac_val'\''" | |
2296 | done | sort | |
2297 | echo | |
2298 | fi | |
631ef239 | 2299 | |
7083c021 | 2300 | if test -s confdefs.h; then |
b6d0720c | 2301 | $as_echo "## ----------- ## |
7083c021 | 2302 | ## confdefs.h. ## |
b6d0720c | 2303 | ## ----------- ##" |
7083c021 AC |
2304 | echo |
2305 | cat confdefs.h | |
2306 | echo | |
2307 | fi | |
2308 | test "$ac_signal" != 0 && | |
2309 | $as_echo "$as_me: caught signal $ac_signal" | |
2310 | $as_echo "$as_me: exit $exit_status" | |
2311 | } >&5 | |
2312 | rm -f core *.core core.conftest.* && | |
2313 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2314 | exit $exit_status | |
2315 | ' 0 | |
2316 | for ac_signal in 1 2 13 15; do | |
2317 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2318 | done | |
2319 | ac_signal=0 | |
631ef239 | 2320 | |
7083c021 AC |
2321 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2322 | rm -f -r conftest* confdefs.h | |
631ef239 | 2323 | |
7083c021 | 2324 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2325 | |
7083c021 | 2326 | # Predefined preprocessor variables. |
212380e3 | 2327 | |
7083c021 AC |
2328 | cat >>confdefs.h <<_ACEOF |
2329 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2330 | _ACEOF |
212380e3 | 2331 | |
7083c021 AC |
2332 | cat >>confdefs.h <<_ACEOF |
2333 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2334 | _ACEOF |
212380e3 | 2335 | |
7083c021 AC |
2336 | cat >>confdefs.h <<_ACEOF |
2337 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2338 | _ACEOF |
212380e3 | 2339 | |
7083c021 AC |
2340 | cat >>confdefs.h <<_ACEOF |
2341 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2342 | _ACEOF | |
212380e3 | 2343 | |
7083c021 AC |
2344 | cat >>confdefs.h <<_ACEOF |
2345 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2346 | _ACEOF | |
212380e3 | 2347 | |
7083c021 AC |
2348 | cat >>confdefs.h <<_ACEOF |
2349 | #define PACKAGE_URL "$PACKAGE_URL" | |
2350 | _ACEOF | |
212380e3 | 2351 | |
631ef239 | 2352 | |
7083c021 AC |
2353 | # Let the site file select an alternate cache file if it wants to. |
2354 | # Prefer an explicitly selected file to automatically selected ones. | |
2355 | ac_site_file1=NONE | |
2356 | ac_site_file2=NONE | |
2357 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2358 | # We do not want a PATH search for config.site. |
2359 | case $CONFIG_SITE in #(( | |
2360 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2361 | */*) ac_site_file1=$CONFIG_SITE;; | |
2362 | *) ac_site_file1=./$CONFIG_SITE;; | |
2363 | esac | |
7083c021 AC |
2364 | elif test "x$prefix" != xNONE; then |
2365 | ac_site_file1=$prefix/share/config.site | |
2366 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2367 | else |
7083c021 AC |
2368 | ac_site_file1=$ac_default_prefix/share/config.site |
2369 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2370 | fi | |
2371 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2372 | do |
7083c021 | 2373 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2374 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2376 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2377 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2378 | . "$ac_site_file" \ |
2379 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2380 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2381 | as_fn_error $? "failed to load site script $ac_site_file | |
2382 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2383 | fi |
2384 | done | |
212380e3 | 2385 | |
7083c021 | 2386 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2387 | # Some versions of bash will fail to source /dev/null (special files |
2388 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2389 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2391 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2392 | case $cache_file in | |
2393 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2394 | *) . "./$cache_file";; | |
2395 | esac | |
2396 | fi | |
212380e3 | 2397 | else |
7083c021 AC |
2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2399 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2400 | >$cache_file | |
212380e3 AC |
2401 | fi |
2402 | ||
7083c021 AC |
2403 | # Check that the precious variables saved in the cache have kept the same |
2404 | # value. | |
2405 | ac_cache_corrupted=false | |
2406 | for ac_var in $ac_precious_vars; do | |
2407 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2408 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2409 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2410 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2411 | case $ac_old_set,$ac_new_set in | |
2412 | set,) | |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2414 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2415 | ac_cache_corrupted=: ;; | |
2416 | ,set) | |
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2418 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2419 | ac_cache_corrupted=: ;; | |
2420 | ,);; | |
2421 | *) | |
2422 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2423 | # differences in whitespace do not lead to failure. | |
2424 | ac_old_val_w=`echo x $ac_old_val` | |
2425 | ac_new_val_w=`echo x $ac_new_val` | |
2426 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2428 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2429 | ac_cache_corrupted=: | |
2430 | else | |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2432 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2433 | eval $ac_var=\$ac_old_val | |
2434 | fi | |
2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2436 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2438 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2439 | fi;; | |
2440 | esac | |
2441 | # Pass precious variables to config.status. | |
2442 | if test "$ac_new_set" = set; then | |
2443 | case $ac_new_val in | |
2444 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2445 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2446 | esac | |
2447 | case " $ac_configure_args " in | |
2448 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2449 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2450 | esac | |
212380e3 AC |
2451 | fi |
2452 | done | |
7083c021 AC |
2453 | if $ac_cache_corrupted; then |
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2455 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2457 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2458 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2459 | fi |
7083c021 AC |
2460 | ## -------------------- ## |
2461 | ## Main body of script. ## | |
2462 | ## -------------------- ## | |
212380e3 | 2463 | |
7083c021 AC |
2464 | ac_ext=c |
2465 | ac_cpp='$CPP $CPPFLAGS' | |
2466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2469 | |
212380e3 | 2470 | |
212380e3 | 2471 | |
a5471f24 | 2472 | |
7083c021 | 2473 | ac_config_headers="$ac_config_headers include/setup.h" |
631ef239 | 2474 | |
212380e3 | 2475 | |
212380e3 | 2476 | |
631ef239 | 2477 | |
7083c021 AC |
2478 | ac_ext=c |
2479 | ac_cpp='$CPP $CPPFLAGS' | |
2480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2483 | if test -n "$ac_tool_prefix"; then | |
2484 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2485 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2487 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2488 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2489 | $as_echo_n "(cached) " >&6 |
212380e3 | 2490 | else |
7083c021 AC |
2491 | if test -n "$CC"; then |
2492 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2493 | else | |
2494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2495 | for as_dir in $PATH |
2496 | do | |
2497 | IFS=$as_save_IFS | |
2498 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2499 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2501 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2503 | break 2 |
2504 | fi | |
2505 | done | |
7083c021 | 2506 | done |
631ef239 | 2507 | IFS=$as_save_IFS |
212380e3 | 2508 | |
212380e3 | 2509 | fi |
7083c021 AC |
2510 | fi |
2511 | CC=$ac_cv_prog_CC | |
2512 | if test -n "$CC"; then | |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2514 | $as_echo "$CC" >&6; } | |
212380e3 | 2515 | else |
7083c021 AC |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2517 | $as_echo "no" >&6; } | |
212380e3 AC |
2518 | fi |
2519 | ||
631ef239 | 2520 | |
7083c021 AC |
2521 | fi |
2522 | if test -z "$ac_cv_prog_CC"; then | |
2523 | ac_ct_CC=$CC | |
2524 | # Extract the first word of "gcc", so it can be a program name with args. | |
2525 | set dummy gcc; ac_word=$2 | |
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2527 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2528 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 2529 | $as_echo_n "(cached) " >&6 |
212380e3 | 2530 | else |
7083c021 AC |
2531 | if test -n "$ac_ct_CC"; then |
2532 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2533 | else | |
2534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2535 | for as_dir in $PATH |
2536 | do | |
2537 | IFS=$as_save_IFS | |
2538 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2539 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2541 | ac_cv_prog_ac_ct_CC="gcc" |
2542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2543 | break 2 |
2544 | fi | |
2545 | done | |
7083c021 | 2546 | done |
631ef239 | 2547 | IFS=$as_save_IFS |
212380e3 | 2548 | |
212380e3 | 2549 | fi |
7083c021 AC |
2550 | fi |
2551 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2552 | if test -n "$ac_ct_CC"; then | |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2554 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2555 | else |
7083c021 AC |
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2557 | $as_echo "no" >&6; } | |
212380e3 AC |
2558 | fi |
2559 | ||
7083c021 AC |
2560 | if test "x$ac_ct_CC" = x; then |
2561 | CC="" | |
2562 | else | |
2563 | case $cross_compiling:$ac_tool_warned in | |
2564 | yes:) | |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2566 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2567 | ac_tool_warned=yes ;; | |
2568 | esac | |
2569 | CC=$ac_ct_CC | |
2570 | fi | |
2571 | else | |
2572 | CC="$ac_cv_prog_CC" | |
2573 | fi | |
631ef239 | 2574 | |
7083c021 AC |
2575 | if test -z "$CC"; then |
2576 | if test -n "$ac_tool_prefix"; then | |
2577 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2578 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2580 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2581 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2582 | $as_echo_n "(cached) " >&6 |
212380e3 | 2583 | else |
7083c021 AC |
2584 | if test -n "$CC"; then |
2585 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2586 | else | |
2587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2588 | for as_dir in $PATH |
2589 | do | |
2590 | IFS=$as_save_IFS | |
2591 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2592 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2594 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2596 | break 2 |
2597 | fi | |
2598 | done | |
7083c021 | 2599 | done |
631ef239 | 2600 | IFS=$as_save_IFS |
7083c021 | 2601 | |
212380e3 | 2602 | fi |
7083c021 AC |
2603 | fi |
2604 | CC=$ac_cv_prog_CC | |
2605 | if test -n "$CC"; then | |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2607 | $as_echo "$CC" >&6; } | |
212380e3 | 2608 | else |
7083c021 AC |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2610 | $as_echo "no" >&6; } | |
212380e3 AC |
2611 | fi |
2612 | ||
631ef239 | 2613 | |
7083c021 AC |
2614 | fi |
2615 | fi | |
2616 | if test -z "$CC"; then | |
2617 | # Extract the first word of "cc", so it can be a program name with args. | |
2618 | set dummy cc; ac_word=$2 | |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2620 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2621 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2622 | $as_echo_n "(cached) " >&6 |
212380e3 | 2623 | else |
7083c021 AC |
2624 | if test -n "$CC"; then |
2625 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2626 | else | |
2627 | ac_prog_rejected=no | |
2628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2629 | for as_dir in $PATH |
2630 | do | |
2631 | IFS=$as_save_IFS | |
2632 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2633 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2635 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2636 | ac_prog_rejected=yes | |
2637 | continue | |
2638 | fi | |
2639 | ac_cv_prog_CC="cc" | |
2640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2641 | break 2 |
2642 | fi | |
2643 | done | |
7083c021 | 2644 | done |
631ef239 | 2645 | IFS=$as_save_IFS |
212380e3 | 2646 | |
7083c021 AC |
2647 | if test $ac_prog_rejected = yes; then |
2648 | # We found a bogon in the path, so make sure we never use it. | |
2649 | set dummy $ac_cv_prog_CC | |
2650 | shift | |
2651 | if test $# != 0; then | |
2652 | # We chose a different compiler from the bogus one. | |
2653 | # However, it has the same basename, so the bogon will be chosen | |
2654 | # first if we set CC to just the basename; use the full file name. | |
2655 | shift | |
2656 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2657 | fi | |
212380e3 | 2658 | fi |
7083c021 AC |
2659 | fi |
2660 | fi | |
2661 | CC=$ac_cv_prog_CC | |
2662 | if test -n "$CC"; then | |
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2664 | $as_echo "$CC" >&6; } | |
212380e3 | 2665 | else |
7083c021 AC |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2667 | $as_echo "no" >&6; } | |
212380e3 AC |
2668 | fi |
2669 | ||
2670 | ||
7083c021 AC |
2671 | fi |
2672 | if test -z "$CC"; then | |
2673 | if test -n "$ac_tool_prefix"; then | |
2674 | for ac_prog in cl.exe | |
2675 | do | |
2676 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2677 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2679 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2680 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2681 | $as_echo_n "(cached) " >&6 |
212380e3 | 2682 | else |
7083c021 AC |
2683 | if test -n "$CC"; then |
2684 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 AC |
2685 | else |
2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2687 | for as_dir in $PATH | |
2688 | do | |
2689 | IFS=$as_save_IFS | |
2690 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2691 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2693 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2695 | break 2 |
2696 | fi | |
2697 | done | |
7083c021 | 2698 | done |
631ef239 | 2699 | IFS=$as_save_IFS |
212380e3 AC |
2700 | |
2701 | fi | |
2702 | fi | |
7083c021 AC |
2703 | CC=$ac_cv_prog_CC |
2704 | if test -n "$CC"; then | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2706 | $as_echo "$CC" >&6; } | |
212380e3 | 2707 | else |
7083c021 AC |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2709 | $as_echo "no" >&6; } | |
212380e3 AC |
2710 | fi |
2711 | ||
631ef239 | 2712 | |
7083c021 AC |
2713 | test -n "$CC" && break |
2714 | done | |
212380e3 | 2715 | fi |
7083c021 AC |
2716 | if test -z "$CC"; then |
2717 | ac_ct_CC=$CC | |
2718 | for ac_prog in cl.exe | |
212380e3 AC |
2719 | do |
2720 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2721 | set dummy $ac_prog; ac_word=$2 | |
7083c021 AC |
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2723 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2724 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 2725 | $as_echo_n "(cached) " >&6 |
212380e3 | 2726 | else |
7083c021 AC |
2727 | if test -n "$ac_ct_CC"; then |
2728 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 AC |
2729 | else |
2730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2731 | for as_dir in $PATH | |
2732 | do | |
2733 | IFS=$as_save_IFS | |
2734 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2735 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
2737 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2739 | break 2 |
2740 | fi | |
2741 | done | |
7083c021 | 2742 | done |
631ef239 | 2743 | IFS=$as_save_IFS |
212380e3 AC |
2744 | |
2745 | fi | |
2746 | fi | |
7083c021 AC |
2747 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2748 | if test -n "$ac_ct_CC"; then | |
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2750 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2751 | else |
7083c021 AC |
2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2753 | $as_echo "no" >&6; } | |
212380e3 AC |
2754 | fi |
2755 | ||
631ef239 | 2756 | |
7083c021 | 2757 | test -n "$ac_ct_CC" && break |
212380e3 | 2758 | done |
212380e3 | 2759 | |
7083c021 AC |
2760 | if test "x$ac_ct_CC" = x; then |
2761 | CC="" | |
2762 | else | |
2763 | case $cross_compiling:$ac_tool_warned in | |
2764 | yes:) | |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2766 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2767 | ac_tool_warned=yes ;; | |
2768 | esac | |
2769 | CC=$ac_ct_CC | |
2770 | fi | |
2771 | fi | |
2772 | ||
2773 | fi | |
2774 | ||
2775 | ||
2776 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2778 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2779 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
2780 | |
2781 | # Provide some information about the compiler. | |
2782 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2783 | set X $ac_compile | |
2784 | ac_compiler=$2 | |
2785 | for ac_option in --version -v -V -qversion; do | |
2786 | { { ac_try="$ac_compiler $ac_option >&5" | |
2787 | case "(($ac_try" in | |
2788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2789 | *) ac_try_echo=$ac_try;; | |
2790 | esac | |
2791 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2792 | $as_echo "$ac_try_echo"; } >&5 | |
2793 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2794 | ac_status=$? | |
2795 | if test -s conftest.err; then | |
2796 | sed '10a\ | |
2797 | ... rest of stderr output deleted ... | |
2798 | 10q' conftest.err >conftest.er1 | |
2799 | cat conftest.er1 >&5 | |
7083c021 | 2800 | fi |
6fb6bd15 | 2801 | rm -f conftest.er1 conftest.err |
7083c021 AC |
2802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2803 | test $ac_status = 0; } | |
2804 | done | |
2805 | ||
2806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2807 | /* end confdefs.h. */ | |
6fb6bd15 | 2808 | |
212380e3 | 2809 | int |
7083c021 | 2810 | main () |
212380e3 | 2811 | { |
7083c021 AC |
2812 | |
2813 | ; | |
2814 | return 0; | |
212380e3 AC |
2815 | } |
2816 | _ACEOF | |
7083c021 | 2817 | ac_clean_files_save=$ac_clean_files |
6fb6bd15 | 2818 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
7083c021 AC |
2819 | # Try to create an executable without -o first, disregard a.out. |
2820 | # It will help us diagnose broken compilers, and finding out an intuition | |
2821 | # of exeext. | |
6fb6bd15 AC |
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2823 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
7083c021 AC |
2824 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2825 | ||
2826 | # The possible output files: | |
2827 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2828 | ||
2829 | ac_rmfiles= | |
2830 | for ac_file in $ac_files | |
2831 | do | |
2832 | case $ac_file in | |
2833 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2834 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2835 | esac | |
2836 | done | |
2837 | rm -f $ac_rmfiles | |
2838 | ||
2839 | if { { ac_try="$ac_link_default" | |
631ef239 AC |
2840 | case "(($ac_try" in |
2841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2842 | *) ac_try_echo=$ac_try;; | |
2843 | esac | |
7083c021 AC |
2844 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2845 | $as_echo "$ac_try_echo"; } >&5 | |
2846 | (eval "$ac_link_default") 2>&5 | |
212380e3 | 2847 | ac_status=$? |
7083c021 AC |
2848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2849 | test $ac_status = 0; }; then : | |
2850 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2851 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2852 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2853 | # so that the user can short-circuit this test for compilers unknown to | |
2854 | # Autoconf. | |
2855 | for ac_file in $ac_files '' | |
2856 | do | |
2857 | test -f "$ac_file" || continue | |
2858 | case $ac_file in | |
2859 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2860 | ;; | |
2861 | [ab].out ) | |
2862 | # We found the default executable, but exeext='' is most | |
2863 | # certainly right. | |
2864 | break;; | |
2865 | *.* ) | |
2866 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2867 | then :; else | |
2868 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2869 | fi | |
2870 | # We set ac_cv_exeext here because the later test for it is not | |
2871 | # safe: cross compilers may not add the suffix if given an `-o' | |
2872 | # argument, so we may need to know it at that point already. | |
2873 | # Even if this section looks crufty: it has the advantage of | |
2874 | # actually working. | |
2875 | break;; | |
2876 | * ) | |
2877 | break;; | |
2878 | esac | |
2879 | done | |
2880 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
212380e3 | 2881 | |
212380e3 | 2882 | else |
7083c021 | 2883 | ac_file='' |
631ef239 | 2884 | fi |
7083c021 | 2885 | if test -z "$ac_file"; then : |
6fb6bd15 AC |
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2887 | $as_echo "no" >&6; } | |
2888 | $as_echo "$as_me: failed program was:" >&5 | |
7083c021 AC |
2889 | sed 's/^/| /' conftest.$ac_ext >&5 |
2890 | ||
2891 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2892 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2893 | as_fn_error 77 "C compiler cannot create executables |
2894 | See \`config.log' for more details" "$LINENO" 5; } | |
6fb6bd15 AC |
2895 | else |
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2897 | $as_echo "yes" >&6; } | |
631ef239 | 2898 | fi |
6fb6bd15 AC |
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2900 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2902 | $as_echo "$ac_file" >&6; } | |
7083c021 | 2903 | ac_exeext=$ac_cv_exeext |
631ef239 | 2904 | |
6fb6bd15 | 2905 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
7083c021 | 2906 | ac_clean_files=$ac_clean_files_save |
7083c021 AC |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2908 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2909 | if { { ac_try="$ac_link" | |
2910 | case "(($ac_try" in | |
2911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2912 | *) ac_try_echo=$ac_try;; | |
2913 | esac | |
2914 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2915 | $as_echo "$ac_try_echo"; } >&5 | |
2916 | (eval "$ac_link") 2>&5 | |
2917 | ac_status=$? | |
2918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2919 | test $ac_status = 0; }; then : | |
2920 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2921 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2922 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2923 | # `rm'. | |
2924 | for ac_file in conftest.exe conftest conftest.*; do | |
2925 | test -f "$ac_file" || continue | |
2926 | case $ac_file in | |
2927 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2928 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2929 | break;; | |
2930 | * ) break;; | |
2931 | esac | |
2932 | done | |
212380e3 | 2933 | else |
7083c021 AC |
2934 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2935 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2936 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2937 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 | 2938 | fi |
6fb6bd15 | 2939 | rm -f conftest conftest$ac_cv_exeext |
7083c021 AC |
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2941 | $as_echo "$ac_cv_exeext" >&6; } | |
2942 | ||
2943 | rm -f conftest.$ac_ext | |
2944 | EXEEXT=$ac_cv_exeext | |
2945 | ac_exeext=$EXEEXT | |
6fb6bd15 AC |
2946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2947 | /* end confdefs.h. */ | |
2948 | #include <stdio.h> | |
2949 | int | |
2950 | main () | |
2951 | { | |
2952 | FILE *f = fopen ("conftest.out", "w"); | |
2953 | return ferror (f) || fclose (f) != 0; | |
2954 | ||
2955 | ; | |
2956 | return 0; | |
2957 | } | |
2958 | _ACEOF | |
2959 | ac_clean_files="$ac_clean_files conftest.out" | |
2960 | # Check that the compiler produces executables we can run. If not, either | |
2961 | # the compiler is broken, or we cross compile. | |
2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2963 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2964 | if test "$cross_compiling" != yes; then | |
2965 | { { ac_try="$ac_link" | |
2966 | case "(($ac_try" in | |
2967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2968 | *) ac_try_echo=$ac_try;; | |
2969 | esac | |
2970 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2971 | $as_echo "$ac_try_echo"; } >&5 | |
2972 | (eval "$ac_link") 2>&5 | |
2973 | ac_status=$? | |
2974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2975 | test $ac_status = 0; } | |
2976 | if { ac_try='./conftest$ac_cv_exeext' | |
2977 | { { case "(($ac_try" in | |
2978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2979 | *) ac_try_echo=$ac_try;; | |
2980 | esac | |
2981 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2982 | $as_echo "$ac_try_echo"; } >&5 | |
2983 | (eval "$ac_try") 2>&5 | |
2984 | ac_status=$? | |
2985 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2986 | test $ac_status = 0; }; }; then | |
2987 | cross_compiling=no | |
2988 | else | |
2989 | if test "$cross_compiling" = maybe; then | |
2990 | cross_compiling=yes | |
2991 | else | |
2992 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c | 2994 | as_fn_error $? "cannot run C compiled programs. |
6fb6bd15 | 2995 | If you meant to cross compile, use \`--host'. |
b6d0720c | 2996 | See \`config.log' for more details" "$LINENO" 5; } |
6fb6bd15 AC |
2997 | fi |
2998 | fi | |
2999 | fi | |
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3001 | $as_echo "$cross_compiling" >&6; } | |
3002 | ||
3003 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3004 | ac_clean_files=$ac_clean_files_save | |
7083c021 AC |
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3006 | $as_echo_n "checking for suffix of object files... " >&6; } | |
b6d0720c | 3007 | if ${ac_cv_objext+:} false; then : |
7083c021 AC |
3008 | $as_echo_n "(cached) " >&6 |
3009 | else | |
3010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3011 | /* end confdefs.h. */ | |
212380e3 | 3012 | |
7083c021 AC |
3013 | int |
3014 | main () | |
3015 | { | |
3016 | ||
3017 | ; | |
3018 | return 0; | |
3019 | } | |
212380e3 | 3020 | _ACEOF |
7083c021 AC |
3021 | rm -f conftest.o conftest.obj |
3022 | if { { ac_try="$ac_compile" | |
631ef239 AC |
3023 | case "(($ac_try" in |
3024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3025 | *) ac_try_echo=$ac_try;; | |
3026 | esac | |
7083c021 AC |
3027 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3028 | $as_echo "$ac_try_echo"; } >&5 | |
3029 | (eval "$ac_compile") 2>&5 | |
212380e3 | 3030 | ac_status=$? |
7083c021 AC |
3031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3032 | test $ac_status = 0; }; then : | |
3033 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3034 | test -f "$ac_file" || continue; | |
3035 | case $ac_file in | |
3036 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3037 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3038 | break;; | |
3039 | esac | |
3040 | done | |
212380e3 | 3041 | else |
7083c021 | 3042 | $as_echo "$as_me: failed program was:" >&5 |
212380e3 AC |
3043 | sed 's/^/| /' conftest.$ac_ext >&5 |
3044 | ||
7083c021 AC |
3045 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3046 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
3047 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3048 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
3049 | fi |
3050 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
212380e3 | 3051 | fi |
7083c021 AC |
3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3053 | $as_echo "$ac_cv_objext" >&6; } | |
3054 | OBJEXT=$ac_cv_objext | |
3055 | ac_objext=$OBJEXT | |
3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3057 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b6d0720c | 3058 | if ${ac_cv_c_compiler_gnu+:} false; then : |
7083c021 AC |
3059 | $as_echo_n "(cached) " >&6 |
3060 | else | |
3061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3062 | /* end confdefs.h. */ | |
212380e3 | 3063 | |
7083c021 AC |
3064 | int |
3065 | main () | |
3066 | { | |
3067 | #ifndef __GNUC__ | |
3068 | choke me | |
3069 | #endif | |
212380e3 | 3070 | |
7083c021 AC |
3071 | ; |
3072 | return 0; | |
3073 | } | |
3074 | _ACEOF | |
3075 | if ac_fn_c_try_compile "$LINENO"; then : | |
3076 | ac_compiler_gnu=yes | |
3077 | else | |
3078 | ac_compiler_gnu=no | |
212380e3 | 3079 | fi |
7083c021 AC |
3080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3081 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3082 | ||
3083 | fi | |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3085 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3086 | if test $ac_compiler_gnu = yes; then | |
3087 | GCC=yes | |
3088 | else | |
3089 | GCC= | |
212380e3 | 3090 | fi |
7083c021 AC |
3091 | ac_test_CFLAGS=${CFLAGS+set} |
3092 | ac_save_CFLAGS=$CFLAGS | |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3094 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b6d0720c | 3095 | if ${ac_cv_prog_cc_g+:} false; then : |
7083c021 AC |
3096 | $as_echo_n "(cached) " >&6 |
3097 | else | |
3098 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3099 | ac_c_werror_flag=yes | |
3100 | ac_cv_prog_cc_g=no | |
3101 | CFLAGS="-g" | |
3102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3103 | /* end confdefs.h. */ | |
212380e3 | 3104 | |
7083c021 AC |
3105 | int |
3106 | main () | |
3107 | { | |
631ef239 | 3108 | |
7083c021 AC |
3109 | ; |
3110 | return 0; | |
3111 | } | |
212380e3 | 3112 | _ACEOF |
7083c021 AC |
3113 | if ac_fn_c_try_compile "$LINENO"; then : |
3114 | ac_cv_prog_cc_g=yes | |
212380e3 | 3115 | else |
7083c021 AC |
3116 | CFLAGS="" |
3117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3118 | /* end confdefs.h. */ | |
212380e3 | 3119 | |
7083c021 AC |
3120 | int |
3121 | main () | |
3122 | { | |
631ef239 | 3123 | |
7083c021 AC |
3124 | ; |
3125 | return 0; | |
3126 | } | |
3127 | _ACEOF | |
3128 | if ac_fn_c_try_compile "$LINENO"; then : | |
631ef239 | 3129 | |
7083c021 AC |
3130 | else |
3131 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3132 | CFLAGS="-g" | |
3133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3134 | /* end confdefs.h. */ | |
212380e3 | 3135 | |
7083c021 AC |
3136 | int |
3137 | main () | |
3138 | { | |
212380e3 | 3139 | |
7083c021 AC |
3140 | ; |
3141 | return 0; | |
3142 | } | |
212380e3 | 3143 | _ACEOF |
7083c021 AC |
3144 | if ac_fn_c_try_compile "$LINENO"; then : |
3145 | ac_cv_prog_cc_g=yes | |
212380e3 | 3146 | fi |
7083c021 | 3147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3148 | fi |
7083c021 | 3149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3150 | fi |
7083c021 AC |
3151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3152 | ac_c_werror_flag=$ac_save_c_werror_flag | |
212380e3 | 3153 | fi |
7083c021 AC |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3155 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3156 | if test "$ac_test_CFLAGS" = set; then | |
3157 | CFLAGS=$ac_save_CFLAGS | |
3158 | elif test $ac_cv_prog_cc_g = yes; then | |
3159 | if test "$GCC" = yes; then | |
3160 | CFLAGS="-g -O2" | |
3161 | else | |
3162 | CFLAGS="-g" | |
3163 | fi | |
212380e3 | 3164 | else |
7083c021 AC |
3165 | if test "$GCC" = yes; then |
3166 | CFLAGS="-O2" | |
3167 | else | |
3168 | CFLAGS= | |
3169 | fi | |
3170 | fi | |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3172 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b6d0720c | 3173 | if ${ac_cv_prog_cc_c89+:} false; then : |
7083c021 AC |
3174 | $as_echo_n "(cached) " >&6 |
3175 | else | |
3176 | ac_cv_prog_cc_c89=no | |
3177 | ac_save_CC=$CC | |
3178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3179 | /* end confdefs.h. */ |
212380e3 | 3180 | #include <stdarg.h> |
7083c021 | 3181 | #include <stdio.h> |
2eff3833 | 3182 | struct stat; |
7083c021 AC |
3183 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3184 | struct buf { int x; }; | |
3185 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3186 | static char *e (p, i) | |
3187 | char **p; | |
3188 | int i; | |
3189 | { | |
3190 | return p[i]; | |
3191 | } | |
3192 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3193 | { | |
3194 | char *s; | |
3195 | va_list v; | |
3196 | va_start (v,p); | |
3197 | s = g (p, va_arg (v,int)); | |
3198 | va_end (v); | |
3199 | return s; | |
3200 | } | |
3201 | ||
3202 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3203 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3204 | These don't provoke an error unfortunately, instead are silently treated | |
3205 | as 'x'. The following induces an error, until -std is added to get | |
3206 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3207 | array size at least. It's necessary to write '\x00'==0 to get something | |
3208 | that's true only with -std. */ | |
3209 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3210 | ||
3211 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3212 | inside strings and character constants. */ | |
3213 | #define FOO(x) 'x' | |
3214 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
212380e3 | 3215 | |
7083c021 AC |
3216 | int test (int i, double x); |
3217 | struct s1 {int (*f) (int a);}; | |
3218 | struct s2 {int (*f) (double a);}; | |
3219 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3220 | int argc; | |
3221 | char **argv; | |
212380e3 AC |
3222 | int |
3223 | main () | |
3224 | { | |
7083c021 | 3225 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 AC |
3226 | ; |
3227 | return 0; | |
3228 | } | |
3229 | _ACEOF | |
7083c021 AC |
3230 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3231 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3232 | do | |
3233 | CC="$ac_save_CC $ac_arg" | |
3234 | if ac_fn_c_try_compile "$LINENO"; then : | |
3235 | ac_cv_prog_cc_c89=$ac_arg | |
3236 | fi | |
3237 | rm -f core conftest.err conftest.$ac_objext | |
3238 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3239 | done | |
3240 | rm -f conftest.$ac_ext | |
3241 | CC=$ac_save_CC | |
3242 | ||
3243 | fi | |
3244 | # AC_CACHE_VAL | |
3245 | case "x$ac_cv_prog_cc_c89" in | |
3246 | x) | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3248 | $as_echo "none needed" >&6; } ;; | |
3249 | xno) | |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3251 | $as_echo "unsupported" >&6; } ;; | |
3252 | *) | |
3253 | CC="$CC $ac_cv_prog_cc_c89" | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3255 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 3256 | esac |
7083c021 | 3257 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 3258 | |
212380e3 | 3259 | fi |
631ef239 | 3260 | |
7083c021 AC |
3261 | ac_ext=c |
3262 | ac_cpp='$CPP $CPPFLAGS' | |
3263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 | 3266 | |
212380e3 | 3267 | |
7083c021 AC |
3268 | ac_ext=c |
3269 | ac_cpp='$CPP $CPPFLAGS' | |
3270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3274 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3275 | # On Suns, sometimes $CPP names a directory. | |
3276 | if test -n "$CPP" && test -d "$CPP"; then | |
3277 | CPP= | |
3278 | fi | |
3279 | if test -z "$CPP"; then | |
b6d0720c | 3280 | if ${ac_cv_prog_CPP+:} false; then : |
7083c021 AC |
3281 | $as_echo_n "(cached) " >&6 |
3282 | else | |
3283 | # Double quotes because CPP needs to be expanded | |
3284 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3285 | do | |
3286 | ac_preproc_ok=false | |
3287 | for ac_c_preproc_warn_flag in '' yes | |
3288 | do | |
3289 | # Use a header file that comes with gcc, so configuring glibc | |
3290 | # with a fresh cross-compiler works. | |
3291 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3292 | # <limits.h> exists even on freestanding compilers. | |
3293 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3294 | # not just through cpp. "Syntax error" is here to catch this case. | |
3295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3296 | /* end confdefs.h. */ | |
3297 | #ifdef __STDC__ | |
3298 | # include <limits.h> | |
3299 | #else | |
3300 | # include <assert.h> | |
3301 | #endif | |
3302 | Syntax error | |
212380e3 | 3303 | _ACEOF |
7083c021 | 3304 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3305 | |
7083c021 AC |
3306 | else |
3307 | # Broken: fails on valid input. | |
3308 | continue | |
212380e3 | 3309 | fi |
b6d0720c | 3310 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3311 | |
7083c021 AC |
3312 | # OK, works on sane cases. Now check whether nonexistent headers |
3313 | # can be detected and how. | |
3314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3315 | /* end confdefs.h. */ |
7083c021 | 3316 | #include <ac_nonexistent.h> |
212380e3 | 3317 | _ACEOF |
7083c021 AC |
3318 | if ac_fn_c_try_cpp "$LINENO"; then : |
3319 | # Broken: success on invalid input. | |
3320 | continue | |
212380e3 | 3321 | else |
7083c021 AC |
3322 | # Passes both tests. |
3323 | ac_preproc_ok=: | |
3324 | break | |
212380e3 | 3325 | fi |
b6d0720c | 3326 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3327 | |
7083c021 AC |
3328 | done |
3329 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b6d0720c | 3330 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 AC |
3331 | if $ac_preproc_ok; then : |
3332 | break | |
212380e3 AC |
3333 | fi |
3334 | ||
7083c021 AC |
3335 | done |
3336 | ac_cv_prog_CPP=$CPP | |
3337 | ||
3338 | fi | |
3339 | CPP=$ac_cv_prog_CPP | |
212380e3 | 3340 | else |
7083c021 AC |
3341 | ac_cv_prog_CPP=$CPP |
3342 | fi | |
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3344 | $as_echo "$CPP" >&6; } | |
3345 | ac_preproc_ok=false | |
3346 | for ac_c_preproc_warn_flag in '' yes | |
3347 | do | |
3348 | # Use a header file that comes with gcc, so configuring glibc | |
3349 | # with a fresh cross-compiler works. | |
3350 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3351 | # <limits.h> exists even on freestanding compilers. | |
3352 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3353 | # not just through cpp. "Syntax error" is here to catch this case. | |
3354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3355 | /* end confdefs.h. */ |
7083c021 AC |
3356 | #ifdef __STDC__ |
3357 | # include <limits.h> | |
212380e3 | 3358 | #else |
7083c021 | 3359 | # include <assert.h> |
212380e3 | 3360 | #endif |
7083c021 | 3361 | Syntax error |
212380e3 | 3362 | _ACEOF |
7083c021 | 3363 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3364 | |
7083c021 AC |
3365 | else |
3366 | # Broken: fails on valid input. | |
3367 | continue | |
212380e3 | 3368 | fi |
b6d0720c | 3369 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3370 | |
7083c021 AC |
3371 | # OK, works on sane cases. Now check whether nonexistent headers |
3372 | # can be detected and how. | |
3373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3374 | /* end confdefs.h. */ |
7083c021 | 3375 | #include <ac_nonexistent.h> |
212380e3 | 3376 | _ACEOF |
7083c021 AC |
3377 | if ac_fn_c_try_cpp "$LINENO"; then : |
3378 | # Broken: success on invalid input. | |
3379 | continue | |
212380e3 | 3380 | else |
7083c021 AC |
3381 | # Passes both tests. |
3382 | ac_preproc_ok=: | |
3383 | break | |
212380e3 | 3384 | fi |
b6d0720c | 3385 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 AC |
3386 | |
3387 | done | |
7083c021 | 3388 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
b6d0720c | 3389 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 | 3390 | if $ac_preproc_ok; then : |
212380e3 | 3391 | |
7083c021 AC |
3392 | else |
3393 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3394 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
3395 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3396 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 | 3397 | fi |
212380e3 | 3398 | |
7083c021 AC |
3399 | ac_ext=c |
3400 | ac_cpp='$CPP $CPPFLAGS' | |
3401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 AC |
3404 | |
3405 | ||
7083c021 AC |
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3407 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
b6d0720c | 3408 | if ${ac_cv_path_GREP+:} false; then : |
7083c021 | 3409 | $as_echo_n "(cached) " >&6 |
212380e3 | 3410 | else |
7083c021 AC |
3411 | if test -z "$GREP"; then |
3412 | ac_path_GREP_found=false | |
3413 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3415 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3416 | do | |
3417 | IFS=$as_save_IFS | |
3418 | test -z "$as_dir" && as_dir=. | |
3419 | for ac_prog in grep ggrep; do | |
3420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3421 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
2eff3833 | 3422 | as_fn_executable_p "$ac_path_GREP" || continue |
7083c021 AC |
3423 | # Check for GNU ac_path_GREP and select it if it is found. |
3424 | # Check for GNU $ac_path_GREP | |
3425 | case `"$ac_path_GREP" --version 2>&1` in | |
3426 | *GNU*) | |
3427 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3428 | *) | |
3429 | ac_count=0 | |
3430 | $as_echo_n 0123456789 >"conftest.in" | |
3431 | while : | |
3432 | do | |
3433 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3434 | mv "conftest.tmp" "conftest.in" | |
3435 | cp "conftest.in" "conftest.nl" | |
3436 | $as_echo 'GREP' >> "conftest.nl" | |
3437 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3438 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3439 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3440 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3441 | # Best one so far, save it but keep looking for a better one | |
3442 | ac_cv_path_GREP="$ac_path_GREP" | |
3443 | ac_path_GREP_max=$ac_count | |
3444 | fi | |
3445 | # 10*(2^10) chars as input seems more than enough | |
3446 | test $ac_count -gt 10 && break | |
3447 | done | |
3448 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3449 | esac |
7083c021 AC |
3450 | |
3451 | $ac_path_GREP_found && break 3 | |
3452 | done | |
3453 | done | |
3454 | done | |
3455 | IFS=$as_save_IFS | |
3456 | if test -z "$ac_cv_path_GREP"; then | |
b6d0720c | 3457 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 | 3458 | fi |
212380e3 | 3459 | else |
7083c021 AC |
3460 | ac_cv_path_GREP=$GREP |
3461 | fi | |
212380e3 | 3462 | |
212380e3 | 3463 | fi |
7083c021 AC |
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3465 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3466 | GREP="$ac_cv_path_GREP" | |
631ef239 | 3467 | |
212380e3 | 3468 | |
7083c021 AC |
3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3470 | $as_echo_n "checking for egrep... " >&6; } | |
b6d0720c | 3471 | if ${ac_cv_path_EGREP+:} false; then : |
7083c021 AC |
3472 | $as_echo_n "(cached) " >&6 |
3473 | else | |
3474 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3475 | then ac_cv_path_EGREP="$GREP -E" | |
3476 | else | |
3477 | if test -z "$EGREP"; then | |
3478 | ac_path_EGREP_found=false | |
3479 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3481 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3482 | do | |
3483 | IFS=$as_save_IFS | |
3484 | test -z "$as_dir" && as_dir=. | |
3485 | for ac_prog in egrep; do | |
3486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3487 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
2eff3833 | 3488 | as_fn_executable_p "$ac_path_EGREP" || continue |
7083c021 AC |
3489 | # Check for GNU ac_path_EGREP and select it if it is found. |
3490 | # Check for GNU $ac_path_EGREP | |
3491 | case `"$ac_path_EGREP" --version 2>&1` in | |
3492 | *GNU*) | |
3493 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3494 | *) | |
3495 | ac_count=0 | |
3496 | $as_echo_n 0123456789 >"conftest.in" | |
3497 | while : | |
3498 | do | |
3499 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3500 | mv "conftest.tmp" "conftest.in" | |
3501 | cp "conftest.in" "conftest.nl" | |
3502 | $as_echo 'EGREP' >> "conftest.nl" | |
3503 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3504 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3505 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3506 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3507 | # Best one so far, save it but keep looking for a better one | |
3508 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3509 | ac_path_EGREP_max=$ac_count | |
3510 | fi | |
3511 | # 10*(2^10) chars as input seems more than enough | |
3512 | test $ac_count -gt 10 && break | |
3513 | done | |
3514 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3515 | esac |
212380e3 | 3516 | |
7083c021 AC |
3517 | $ac_path_EGREP_found && break 3 |
3518 | done | |
3519 | done | |
3520 | done | |
3521 | IFS=$as_save_IFS | |
3522 | if test -z "$ac_cv_path_EGREP"; then | |
b6d0720c | 3523 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 | 3524 | fi |
212380e3 | 3525 | else |
7083c021 | 3526 | ac_cv_path_EGREP=$EGREP |
212380e3 | 3527 | fi |
212380e3 | 3528 | |
7083c021 | 3529 | fi |
212380e3 | 3530 | fi |
7083c021 AC |
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3532 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3533 | EGREP="$ac_cv_path_EGREP" | |
212380e3 AC |
3534 | |
3535 | ||
7083c021 AC |
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3537 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 3538 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 3539 | $as_echo_n "(cached) " >&6 |
212380e3 | 3540 | else |
7083c021 | 3541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3542 | /* end confdefs.h. */ |
7083c021 AC |
3543 | #include <stdlib.h> |
3544 | #include <stdarg.h> | |
3545 | #include <string.h> | |
3546 | #include <float.h> | |
212380e3 AC |
3547 | |
3548 | int | |
3549 | main () | |
3550 | { | |
212380e3 AC |
3551 | |
3552 | ; | |
3553 | return 0; | |
3554 | } | |
3555 | _ACEOF | |
7083c021 AC |
3556 | if ac_fn_c_try_compile "$LINENO"; then : |
3557 | ac_cv_header_stdc=yes | |
212380e3 | 3558 | else |
7083c021 | 3559 | ac_cv_header_stdc=no |
212380e3 | 3560 | fi |
631ef239 | 3561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3562 | |
7083c021 AC |
3563 | if test $ac_cv_header_stdc = yes; then |
3564 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3566 | /* end confdefs.h. */ | |
3567 | #include <string.h> | |
212380e3 | 3568 | |
7083c021 AC |
3569 | _ACEOF |
3570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3571 | $EGREP "memchr" >/dev/null 2>&1; then : | |
212380e3 | 3572 | |
212380e3 | 3573 | else |
7083c021 AC |
3574 | ac_cv_header_stdc=no |
3575 | fi | |
3576 | rm -f conftest* | |
212380e3 | 3577 | |
7083c021 | 3578 | fi |
212380e3 | 3579 | |
7083c021 AC |
3580 | if test $ac_cv_header_stdc = yes; then |
3581 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3583 | /* end confdefs.h. */ |
7083c021 | 3584 | #include <stdlib.h> |
212380e3 | 3585 | |
212380e3 | 3586 | _ACEOF |
7083c021 AC |
3587 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3588 | $EGREP "free" >/dev/null 2>&1; then : | |
3589 | ||
212380e3 | 3590 | else |
7083c021 AC |
3591 | ac_cv_header_stdc=no |
3592 | fi | |
3593 | rm -f conftest* | |
212380e3 | 3594 | |
212380e3 | 3595 | fi |
631ef239 | 3596 | |
7083c021 AC |
3597 | if test $ac_cv_header_stdc = yes; then |
3598 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3599 | if test "$cross_compiling" = yes; then : | |
3600 | : | |
212380e3 | 3601 | else |
7083c021 | 3602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3603 | /* end confdefs.h. */ |
7083c021 AC |
3604 | #include <ctype.h> |
3605 | #include <stdlib.h> | |
3606 | #if ((' ' & 0x0FF) == 0x020) | |
3607 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3608 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3609 | #else | |
3610 | # define ISLOWER(c) \ | |
3611 | (('a' <= (c) && (c) <= 'i') \ | |
3612 | || ('j' <= (c) && (c) <= 'r') \ | |
3613 | || ('s' <= (c) && (c) <= 'z')) | |
3614 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3615 | #endif | |
3616 | ||
3617 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
3618 | int |
3619 | main () | |
3620 | { | |
7083c021 AC |
3621 | int i; |
3622 | for (i = 0; i < 256; i++) | |
3623 | if (XOR (islower (i), ISLOWER (i)) | |
3624 | || toupper (i) != TOUPPER (i)) | |
3625 | return 2; | |
212380e3 AC |
3626 | return 0; |
3627 | } | |
3628 | _ACEOF | |
7083c021 AC |
3629 | if ac_fn_c_try_run "$LINENO"; then : |
3630 | ||
3631 | else | |
3632 | ac_cv_header_stdc=no | |
212380e3 | 3633 | fi |
7083c021 AC |
3634 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3635 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 3636 | fi |
212380e3 | 3637 | |
7083c021 AC |
3638 | fi |
3639 | fi | |
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3641 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3642 | if test $ac_cv_header_stdc = yes; then | |
3643 | ||
3644 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
631ef239 | 3645 | |
212380e3 | 3646 | fi |
631ef239 | 3647 | |
7083c021 AC |
3648 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3649 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3650 | inttypes.h stdint.h unistd.h | |
3651 | do : | |
3652 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3653 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3654 | " | |
b6d0720c | 3655 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
3656 | cat >>confdefs.h <<_ACEOF |
3657 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 3658 | _ACEOF |
631ef239 | 3659 | |
7083c021 | 3660 | fi |
631ef239 | 3661 | |
7083c021 AC |
3662 | done |
3663 | ||
3664 | ||
3665 | ||
3666 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
b6d0720c | 3667 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7083c021 | 3668 | MINIX=yes |
212380e3 | 3669 | else |
7083c021 AC |
3670 | MINIX= |
3671 | fi | |
3672 | ||
3673 | ||
3674 | if test "$MINIX" = yes; then | |
3675 | ||
3676 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3677 | ||
212380e3 | 3678 | |
7083c021 | 3679 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
631ef239 AC |
3680 | |
3681 | ||
7083c021 | 3682 | $as_echo "#define _MINIX 1" >>confdefs.h |
631ef239 | 3683 | |
7083c021 | 3684 | fi |
212380e3 | 3685 | |
212380e3 | 3686 | |
7083c021 AC |
3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3688 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
b6d0720c | 3689 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
7083c021 | 3690 | $as_echo_n "(cached) " >&6 |
212380e3 | 3691 | else |
7083c021 | 3692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3693 | /* end confdefs.h. */ |
7083c021 | 3694 | |
2eff3833 JT |
3695 | # define __EXTENSIONS__ 1 |
3696 | $ac_includes_default | |
212380e3 AC |
3697 | int |
3698 | main () | |
3699 | { | |
7083c021 | 3700 | |
212380e3 AC |
3701 | ; |
3702 | return 0; | |
3703 | } | |
3704 | _ACEOF | |
7083c021 AC |
3705 | if ac_fn_c_try_compile "$LINENO"; then : |
3706 | ac_cv_safe_to_define___extensions__=yes | |
212380e3 | 3707 | else |
7083c021 | 3708 | ac_cv_safe_to_define___extensions__=no |
212380e3 | 3709 | fi |
631ef239 | 3710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3711 | fi |
7083c021 AC |
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3713 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3714 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3715 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
212380e3 | 3716 | |
7083c021 | 3717 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
212380e3 | 3718 | |
7083c021 AC |
3719 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
3720 | ||
3721 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3722 | ||
3723 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
212380e3 | 3724 | |
7083c021 AC |
3725 | |
3726 | ||
3727 | ||
3728 | OLD_CFLAGS="$CFLAGS" | |
3729 | ac_ext=c | |
3730 | ac_cpp='$CPP $CPPFLAGS' | |
3731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3734 | if test -n "$ac_tool_prefix"; then | |
3735 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3736 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3738 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3739 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3740 | $as_echo_n "(cached) " >&6 |
212380e3 | 3741 | else |
7083c021 AC |
3742 | if test -n "$CC"; then |
3743 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3744 | else |
7083c021 AC |
3745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3746 | for as_dir in $PATH | |
3747 | do | |
3748 | IFS=$as_save_IFS | |
3749 | test -z "$as_dir" && as_dir=. | |
3750 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3751 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3752 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3754 | break 2 | |
3755 | fi | |
3756 | done | |
3757 | done | |
3758 | IFS=$as_save_IFS | |
212380e3 | 3759 | |
212380e3 | 3760 | fi |
212380e3 | 3761 | fi |
7083c021 AC |
3762 | CC=$ac_cv_prog_CC |
3763 | if test -n "$CC"; then | |
3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3765 | $as_echo "$CC" >&6; } | |
212380e3 | 3766 | else |
7083c021 AC |
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3768 | $as_echo "no" >&6; } | |
3769 | fi | |
212380e3 | 3770 | |
212380e3 AC |
3771 | |
3772 | fi | |
7083c021 AC |
3773 | if test -z "$ac_cv_prog_CC"; then |
3774 | ac_ct_CC=$CC | |
3775 | # Extract the first word of "gcc", so it can be a program name with args. | |
3776 | set dummy gcc; ac_word=$2 | |
3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3778 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3779 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 3780 | $as_echo_n "(cached) " >&6 |
212380e3 | 3781 | else |
7083c021 AC |
3782 | if test -n "$ac_ct_CC"; then |
3783 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 | 3784 | else |
7083c021 AC |
3785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3786 | for as_dir in $PATH | |
3787 | do | |
3788 | IFS=$as_save_IFS | |
3789 | test -z "$as_dir" && as_dir=. | |
3790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3792 | ac_cv_prog_ac_ct_CC="gcc" |
3793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3794 | break 2 | |
3795 | fi | |
3796 | done | |
3797 | done | |
3798 | IFS=$as_save_IFS | |
212380e3 | 3799 | |
212380e3 | 3800 | fi |
212380e3 | 3801 | fi |
7083c021 AC |
3802 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3803 | if test -n "$ac_ct_CC"; then | |
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3805 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 3806 | else |
7083c021 AC |
3807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3808 | $as_echo "no" >&6; } | |
3809 | fi | |
212380e3 | 3810 | |
7083c021 AC |
3811 | if test "x$ac_ct_CC" = x; then |
3812 | CC="" | |
3813 | else | |
3814 | case $cross_compiling:$ac_tool_warned in | |
3815 | yes:) | |
3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3817 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3818 | ac_tool_warned=yes ;; | |
631ef239 | 3819 | esac |
7083c021 AC |
3820 | CC=$ac_ct_CC |
3821 | fi | |
212380e3 | 3822 | else |
7083c021 | 3823 | CC="$ac_cv_prog_CC" |
212380e3 | 3824 | fi |
631ef239 | 3825 | |
7083c021 AC |
3826 | if test -z "$CC"; then |
3827 | if test -n "$ac_tool_prefix"; then | |
3828 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3829 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3831 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3832 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3833 | $as_echo_n "(cached) " >&6 |
212380e3 | 3834 | else |
7083c021 AC |
3835 | if test -n "$CC"; then |
3836 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3837 | else |
7083c021 AC |
3838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3839 | for as_dir in $PATH | |
3840 | do | |
3841 | IFS=$as_save_IFS | |
3842 | test -z "$as_dir" && as_dir=. | |
3843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3845 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3847 | break 2 | |
3848 | fi | |
3849 | done | |
3850 | done | |
3851 | IFS=$as_save_IFS | |
212380e3 | 3852 | |
212380e3 | 3853 | fi |
7083c021 AC |
3854 | fi |
3855 | CC=$ac_cv_prog_CC | |
3856 | if test -n "$CC"; then | |
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3858 | $as_echo "$CC" >&6; } | |
212380e3 | 3859 | else |
7083c021 AC |
3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3861 | $as_echo "no" >&6; } | |
3862 | fi | |
3863 | ||
212380e3 | 3864 | |
7083c021 | 3865 | fi |
212380e3 | 3866 | fi |
7083c021 AC |
3867 | if test -z "$CC"; then |
3868 | # Extract the first word of "cc", so it can be a program name with args. | |
3869 | set dummy cc; ac_word=$2 | |
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3871 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3872 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 AC |
3873 | $as_echo_n "(cached) " >&6 |
3874 | else | |
3875 | if test -n "$CC"; then | |
3876 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3877 | else | |
3878 | ac_prog_rejected=no | |
3879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3880 | for as_dir in $PATH | |
3881 | do | |
3882 | IFS=$as_save_IFS | |
3883 | test -z "$as_dir" && as_dir=. | |
3884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3886 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3887 | ac_prog_rejected=yes | |
3888 | continue | |
3889 | fi | |
3890 | ac_cv_prog_CC="cc" | |
3891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3892 | break 2 | |
3893 | fi | |
3894 | done | |
3895 | done | |
3896 | IFS=$as_save_IFS | |
631ef239 | 3897 | |
7083c021 AC |
3898 | if test $ac_prog_rejected = yes; then |
3899 | # We found a bogon in the path, so make sure we never use it. | |
3900 | set dummy $ac_cv_prog_CC | |
3901 | shift | |
3902 | if test $# != 0; then | |
3903 | # We chose a different compiler from the bogus one. | |
3904 | # However, it has the same basename, so the bogon will be chosen | |
3905 | # first if we set CC to just the basename; use the full file name. | |
3906 | shift | |
3907 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3908 | fi | |
3909 | fi | |
3910 | fi | |
3911 | fi | |
3912 | CC=$ac_cv_prog_CC | |
3913 | if test -n "$CC"; then | |
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3915 | $as_echo "$CC" >&6; } | |
3916 | else | |
3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3918 | $as_echo "no" >&6; } | |
212380e3 | 3919 | fi |
631ef239 | 3920 | |
212380e3 | 3921 | |
7083c021 AC |
3922 | fi |
3923 | if test -z "$CC"; then | |
3924 | if test -n "$ac_tool_prefix"; then | |
3925 | for ac_prog in cl.exe | |
3926 | do | |
3927 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3928 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3930 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3931 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3932 | $as_echo_n "(cached) " >&6 |
212380e3 | 3933 | else |
7083c021 AC |
3934 | if test -n "$CC"; then |
3935 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3936 | else | |
3937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3938 | for as_dir in $PATH | |
3939 | do | |
3940 | IFS=$as_save_IFS | |
3941 | test -z "$as_dir" && as_dir=. | |
3942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3944 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3946 | break 2 | |
3947 | fi | |
3948 | done | |
3949 | done | |
3950 | IFS=$as_save_IFS | |
212380e3 | 3951 | |
212380e3 | 3952 | fi |
7083c021 AC |
3953 | fi |
3954 | CC=$ac_cv_prog_CC | |
3955 | if test -n "$CC"; then | |
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3957 | $as_echo "$CC" >&6; } | |
212380e3 | 3958 | else |
7083c021 AC |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3960 | $as_echo "no" >&6; } | |
3961 | fi | |
212380e3 | 3962 | |
212380e3 | 3963 | |
7083c021 AC |
3964 | test -n "$CC" && break |
3965 | done | |
3966 | fi | |
3967 | if test -z "$CC"; then | |
3968 | ac_ct_CC=$CC | |
3969 | for ac_prog in cl.exe | |
3970 | do | |
3971 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3972 | set dummy $ac_prog; ac_word=$2 | |
3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3974 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3975 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 3976 | $as_echo_n "(cached) " >&6 |
212380e3 | 3977 | else |
7083c021 AC |
3978 | if test -n "$ac_ct_CC"; then |
3979 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3980 | else | |
3981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3982 | for as_dir in $PATH | |
3983 | do | |
3984 | IFS=$as_save_IFS | |
3985 | test -z "$as_dir" && as_dir=. | |
3986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 3987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
3988 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3990 | break 2 | |
3991 | fi | |
3992 | done | |
3993 | done | |
3994 | IFS=$as_save_IFS | |
212380e3 | 3995 | |
212380e3 AC |
3996 | fi |
3997 | fi | |
7083c021 AC |
3998 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3999 | if test -n "$ac_ct_CC"; then | |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4001 | $as_echo "$ac_ct_CC" >&6; } | |
4002 | else | |
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4004 | $as_echo "no" >&6; } | |
212380e3 | 4005 | fi |
631ef239 AC |
4006 | |
4007 | ||
7083c021 AC |
4008 | test -n "$ac_ct_CC" && break |
4009 | done | |
631ef239 | 4010 | |
7083c021 AC |
4011 | if test "x$ac_ct_CC" = x; then |
4012 | CC="" | |
4013 | else | |
4014 | case $cross_compiling:$ac_tool_warned in | |
4015 | yes:) | |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4017 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4018 | ac_tool_warned=yes ;; | |
4019 | esac | |
4020 | CC=$ac_ct_CC | |
4021 | fi | |
4022 | fi | |
212380e3 | 4023 | |
7083c021 | 4024 | fi |
212380e3 | 4025 | |
7083c021 AC |
4026 | |
4027 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4028 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
4029 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4030 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
4031 | |
4032 | # Provide some information about the compiler. | |
4033 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4034 | set X $ac_compile | |
4035 | ac_compiler=$2 | |
4036 | for ac_option in --version -v -V -qversion; do | |
4037 | { { ac_try="$ac_compiler $ac_option >&5" | |
631ef239 AC |
4038 | case "(($ac_try" in |
4039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4040 | *) ac_try_echo=$ac_try;; | |
4041 | esac | |
7083c021 AC |
4042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4043 | $as_echo "$ac_try_echo"; } >&5 | |
4044 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
212380e3 | 4045 | ac_status=$? |
7083c021 AC |
4046 | if test -s conftest.err; then |
4047 | sed '10a\ | |
4048 | ... rest of stderr output deleted ... | |
4049 | 10q' conftest.err >conftest.er1 | |
4050 | cat conftest.er1 >&5 | |
7083c021 | 4051 | fi |
6fb6bd15 | 4052 | rm -f conftest.er1 conftest.err |
7083c021 AC |
4053 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4054 | test $ac_status = 0; } | |
4055 | done | |
212380e3 | 4056 | |
7083c021 AC |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4058 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b6d0720c | 4059 | if ${ac_cv_c_compiler_gnu+:} false; then : |
7083c021 | 4060 | $as_echo_n "(cached) " >&6 |
212380e3 | 4061 | else |
7083c021 | 4062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 4063 | /* end confdefs.h. */ |
7083c021 | 4064 | |
212380e3 AC |
4065 | int |
4066 | main () | |
4067 | { | |
7083c021 AC |
4068 | #ifndef __GNUC__ |
4069 | choke me | |
4070 | #endif | |
212380e3 AC |
4071 | |
4072 | ; | |
4073 | return 0; | |
4074 | } | |
4075 | _ACEOF | |
7083c021 AC |
4076 | if ac_fn_c_try_compile "$LINENO"; then : |
4077 | ac_compiler_gnu=yes | |
4078 | else | |
4079 | ac_compiler_gnu=no | |
4080 | fi | |
4081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4082 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4083 | ||
4084 | fi | |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4086 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4087 | if test $ac_compiler_gnu = yes; then | |
4088 | GCC=yes | |
4089 | else | |
4090 | GCC= | |
4091 | fi | |
4092 | ac_test_CFLAGS=${CFLAGS+set} | |
4093 | ac_save_CFLAGS=$CFLAGS | |
4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4095 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b6d0720c | 4096 | if ${ac_cv_prog_cc_g+:} false; then : |
7083c021 AC |
4097 | $as_echo_n "(cached) " >&6 |
4098 | else | |
4099 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4100 | ac_c_werror_flag=yes | |
4101 | ac_cv_prog_cc_g=no | |
4102 | CFLAGS="-g" | |
4103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4104 | /* end confdefs.h. */ |
7083c021 | 4105 | |
212380e3 AC |
4106 | int |
4107 | main () | |
4108 | { | |
212380e3 AC |
4109 | |
4110 | ; | |
4111 | return 0; | |
4112 | } | |
4113 | _ACEOF | |
7083c021 AC |
4114 | if ac_fn_c_try_compile "$LINENO"; then : |
4115 | ac_cv_prog_cc_g=yes | |
212380e3 | 4116 | else |
7083c021 AC |
4117 | CFLAGS="" |
4118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4119 | /* end confdefs.h. */ |
7083c021 | 4120 | |
212380e3 AC |
4121 | int |
4122 | main () | |
4123 | { | |
212380e3 AC |
4124 | |
4125 | ; | |
4126 | return 0; | |
4127 | } | |
4128 | _ACEOF | |
7083c021 AC |
4129 | if ac_fn_c_try_compile "$LINENO"; then : |
4130 | ||
4131 | else | |
4132 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4133 | CFLAGS="-g" | |
4134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4135 | /* end confdefs.h. */ |
7083c021 | 4136 | |
212380e3 AC |
4137 | int |
4138 | main () | |
4139 | { | |
212380e3 AC |
4140 | |
4141 | ; | |
4142 | return 0; | |
4143 | } | |
4144 | _ACEOF | |
7083c021 AC |
4145 | if ac_fn_c_try_compile "$LINENO"; then : |
4146 | ac_cv_prog_cc_g=yes | |
212380e3 | 4147 | fi |
631ef239 | 4148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4149 | fi |
631ef239 | 4150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4151 | fi |
631ef239 | 4152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
4153 | ac_c_werror_flag=$ac_save_c_werror_flag |
4154 | fi | |
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4156 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4157 | if test "$ac_test_CFLAGS" = set; then | |
4158 | CFLAGS=$ac_save_CFLAGS | |
4159 | elif test $ac_cv_prog_cc_g = yes; then | |
4160 | if test "$GCC" = yes; then | |
4161 | CFLAGS="-g -O2" | |
4162 | else | |
4163 | CFLAGS="-g" | |
4164 | fi | |
4165 | else | |
4166 | if test "$GCC" = yes; then | |
4167 | CFLAGS="-O2" | |
4168 | else | |
4169 | CFLAGS= | |
4170 | fi | |
4171 | fi | |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4173 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b6d0720c | 4174 | if ${ac_cv_prog_cc_c89+:} false; then : |
7083c021 AC |
4175 | $as_echo_n "(cached) " >&6 |
4176 | else | |
4177 | ac_cv_prog_cc_c89=no | |
4178 | ac_save_CC=$CC | |
4179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4180 | /* end confdefs.h. */ |
7083c021 AC |
4181 | #include <stdarg.h> |
4182 | #include <stdio.h> | |
2eff3833 | 4183 | struct stat; |
7083c021 AC |
4184 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4185 | struct buf { int x; }; | |
4186 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4187 | static char *e (p, i) | |
4188 | char **p; | |
4189 | int i; | |
4190 | { | |
4191 | return p[i]; | |
4192 | } | |
4193 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4194 | { | |
4195 | char *s; | |
4196 | va_list v; | |
4197 | va_start (v,p); | |
4198 | s = g (p, va_arg (v,int)); | |
4199 | va_end (v); | |
4200 | return s; | |
4201 | } | |
4202 | ||
4203 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4204 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4205 | These don't provoke an error unfortunately, instead are silently treated | |
4206 | as 'x'. The following induces an error, until -std is added to get | |
4207 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4208 | array size at least. It's necessary to write '\x00'==0 to get something | |
4209 | that's true only with -std. */ | |
4210 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4211 | ||
4212 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4213 | inside strings and character constants. */ | |
4214 | #define FOO(x) 'x' | |
4215 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4216 | ||
4217 | int test (int i, double x); | |
4218 | struct s1 {int (*f) (int a);}; | |
4219 | struct s2 {int (*f) (double a);}; | |
4220 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4221 | int argc; | |
4222 | char **argv; | |
212380e3 AC |
4223 | int |
4224 | main () | |
4225 | { | |
7083c021 | 4226 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 AC |
4227 | ; |
4228 | return 0; | |
4229 | } | |
4230 | _ACEOF | |
7083c021 AC |
4231 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4232 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4233 | do | |
4234 | CC="$ac_save_CC $ac_arg" | |
4235 | if ac_fn_c_try_compile "$LINENO"; then : | |
4236 | ac_cv_prog_cc_c89=$ac_arg | |
4237 | fi | |
4238 | rm -f core conftest.err conftest.$ac_objext | |
4239 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4240 | done | |
4241 | rm -f conftest.$ac_ext | |
4242 | CC=$ac_save_CC | |
4243 | ||
4244 | fi | |
4245 | # AC_CACHE_VAL | |
4246 | case "x$ac_cv_prog_cc_c89" in | |
4247 | x) | |
4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4249 | $as_echo "none needed" >&6; } ;; | |
4250 | xno) | |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4252 | $as_echo "unsupported" >&6; } ;; | |
4253 | *) | |
4254 | CC="$CC $ac_cv_prog_cc_c89" | |
4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4256 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 4257 | esac |
7083c021 | 4258 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 4259 | |
212380e3 | 4260 | fi |
631ef239 | 4261 | |
7083c021 AC |
4262 | ac_ext=c |
4263 | ac_cpp='$CPP $CPPFLAGS' | |
4264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4267 | ||
4268 | ac_ext=c | |
4269 | ac_cpp='$CPP $CPPFLAGS' | |
4270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4273 | ||
4274 | ||
4275 | CFLAGS="$OLD_CFLAGS" | |
4276 | ||
7083c021 AC |
4277 | |
4278 | ||
4279 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
4280 | ||
4281 | SGS=no | |
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5 | |
4283 | $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; } | |
4284 | case `$CC -version 2>&1` in | |
4285 | *TenDRA*) | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5 | |
4287 | $as_echo "yes, TenDRA" >&6; } | |
4288 | IRC_CFLAGS="" | |
4289 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
4290 | SGS=yes | |
4291 | TenDRA=yes | |
4292 | ;; | |
4293 | *MIPSpro*) | |
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5 | |
4295 | $as_echo "yes, MIPSpro" >&6; } | |
4296 | MIPSpro=yes | |
4297 | SGS=yes | |
4298 | ;; | |
4299 | *) | |
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4301 | $as_echo "no" >&6; } | |
4302 | TenDRA=no | |
4303 | MIPSpro=no | |
4304 | ;; | |
631ef239 | 4305 | esac |
7083c021 AC |
4306 | |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 | |
4308 | $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; } | |
4309 | case `$CC -V 2>&1` in | |
4310 | *Sun*WorkShop* | *Forte*Developer*) | |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5 | |
4312 | $as_echo "Sun Workshop/Forte" >&6; } | |
4313 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" | |
4314 | SunWorkShop=yes | |
4315 | SGS=yes | |
4316 | ;; | |
4317 | *Tru64*) | |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5 | |
4319 | $as_echo "Tru64 cc" >&6; } | |
4320 | IRC_CFLAGS="-O2" | |
4321 | CPPFLAGS="-I/usr/local/include" | |
4322 | Tru=yes | |
4323 | ;; | |
4324 | *HP*ANSI*) | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5 | |
4326 | $as_echo "HPUX cc" >&6; } | |
4327 | HPUX=yes | |
4328 | IRC_CFLAGS="+e" | |
4329 | ;; | |
4330 | *) | |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4332 | $as_echo "no" >&6; } | |
4333 | ;; | |
631ef239 | 4334 | esac |
212380e3 | 4335 | |
212380e3 | 4336 | fi |
631ef239 | 4337 | |
7083c021 AC |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5 |
4339 | $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; } | |
4340 | OSNAME=`uname -s` | |
4341 | case "$OSNAME" in | |
4342 | HP-UX*) | |
631ef239 | 4343 | |
7083c021 AC |
4344 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5 | |
4346 | $as_echo "assuming old HPUX with its own cc" >&6; } | |
4347 | IRC_CFLAGS="$IRC_CFLAGS +e" | |
4348 | HPUX=yes | |
4349 | else | |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5 | |
4351 | $as_echo "already using newer HPUX" >&6; } | |
4352 | fi | |
4353 | ;; | |
4354 | SunOS*) | |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5 | |
4356 | $as_echo "SunOS or Solaris" >&6; } | |
212380e3 | 4357 | |
7083c021 | 4358 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
212380e3 | 4359 | |
7083c021 AC |
4360 | SUN=yes |
4361 | ;; | |
4362 | AIX*) | |
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5 | |
4364 | $as_echo "AIX - Sorry you poor bastard..really we are" >&6; } | |
4365 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" | |
4366 | ;; | |
4367 | *) | |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4369 | $as_echo "no" >&6; } | |
4370 | ;; | |
631ef239 | 4371 | esac |
212380e3 | 4372 | |
7083c021 AC |
4373 | if test "$ac_cv_c_compiler_gnu" = yes; then |
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5 | |
4375 | $as_echo_n "checking if $CC is Apple GCC... " >&6; } | |
4376 | ||
4377 | case `$CC -v 2>&1 | tail -n 1` in | |
4378 | *Apple*) | |
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4380 | $as_echo "yes" >&6; } | |
4381 | AppleGCC=yes | |
4382 | ;; | |
4383 | *) | |
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4385 | $as_echo "no" >&6; } | |
4386 | AppleGCC=no | |
4387 | ;; | |
4388 | esac | |
4389 | ||
4390 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" | |
212380e3 | 4391 | fi |
631ef239 | 4392 | |
7083c021 AC |
4393 | if test "$ac_cv_prog_cc_g" = yes; then |
4394 | if test "$Tru" = yes; then | |
4395 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
4396 | else | |
4397 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
4398 | fi | |
212380e3 | 4399 | fi |
212380e3 | 4400 | |
7083c021 AC |
4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5 |
4402 | $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; } | |
4403 | if test "$SGS" = "yes"; then | |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4405 | $as_echo "yes" >&6; } | |
212380e3 | 4406 | else |
7083c021 AC |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4408 | $as_echo "no" >&6; } | |
4409 | fi | |
212380e3 | 4410 | |
7083c021 AC |
4411 | # Extract the first word of "mkdep", so it can be a program name with args. |
4412 | set dummy mkdep; ac_word=$2 | |
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4414 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4415 | if ${ac_cv_path_MKDEP+:} false; then : |
7083c021 AC |
4416 | $as_echo_n "(cached) " >&6 |
4417 | else | |
4418 | case $MKDEP in | |
4419 | [\\/]* | ?:[\\/]*) | |
4420 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
4421 | ;; | |
4422 | *) | |
4423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4424 | for as_dir in $PATH | |
4425 | do | |
4426 | IFS=$as_save_IFS | |
4427 | test -z "$as_dir" && as_dir=. | |
4428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4430 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
4431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4432 | break 2 | |
4433 | fi | |
4434 | done | |
4435 | done | |
4436 | IFS=$as_save_IFS | |
212380e3 | 4437 | |
7083c021 | 4438 | ;; |
631ef239 | 4439 | esac |
7083c021 AC |
4440 | fi |
4441 | MKDEP=$ac_cv_path_MKDEP | |
4442 | if test -n "$MKDEP"; then | |
4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5 | |
4444 | $as_echo "$MKDEP" >&6; } | |
212380e3 | 4445 | else |
7083c021 AC |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4447 | $as_echo "no" >&6; } | |
212380e3 | 4448 | fi |
631ef239 | 4449 | |
7083c021 AC |
4450 | |
4451 | # Extract the first word of "makedepend", so it can be a program name with args. | |
4452 | set dummy makedepend; ac_word=$2 | |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4454 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4455 | if ${ac_cv_path_MAKEDEPEND+:} false; then : |
7083c021 AC |
4456 | $as_echo_n "(cached) " >&6 |
4457 | else | |
4458 | case $MAKEDEPEND in | |
4459 | [\\/]* | ?:[\\/]*) | |
4460 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
4461 | ;; | |
4462 | *) | |
4463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4464 | for as_dir in $PATH | |
4465 | do | |
4466 | IFS=$as_save_IFS | |
4467 | test -z "$as_dir" && as_dir=. | |
4468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4469 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4470 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
4471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4472 | break 2 | |
4473 | fi | |
4474 | done | |
212380e3 | 4475 | done |
7083c021 AC |
4476 | IFS=$as_save_IFS |
4477 | ||
4478 | ;; | |
4479 | esac | |
4480 | fi | |
4481 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
4482 | if test -n "$MAKEDEPEND"; then | |
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5 | |
4484 | $as_echo "$MAKEDEPEND" >&6; } | |
212380e3 | 4485 | else |
7083c021 AC |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4487 | $as_echo "no" >&6; } | |
4488 | fi | |
212380e3 | 4489 | |
212380e3 | 4490 | |
212380e3 | 4491 | |
7083c021 AC |
4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5 |
4493 | $as_echo_n "checking how to generate dependency info... " >&6; } | |
4494 | ||
4495 | STDOUT="> .depend" | |
4496 | ||
4497 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5 | |
4499 | $as_echo "gcc -MM" >&6; } | |
4500 | MKDEP="$CC -MM" | |
4501 | elif test ! -z "$MKDEP"; then | |
4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5 | |
4503 | $as_echo "mkdep" >&6; } | |
4504 | ||
4505 | if test -z "$Tru"; then | |
4506 | STDOUT="" | |
4507 | else | |
4508 | STDOUT=" 2> /dev/null" | |
4509 | fi | |
4510 | elif test "$SunWorkShop" = yes; then | |
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5 | |
4512 | $as_echo "$CC -xM" >&6; } | |
4513 | MKDEP="$CC -xM" | |
4514 | STDOUT="> .depend 2> /dev/null" | |
4515 | elif test ! -z "$MAKEDEPEND"; then | |
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5 | |
4517 | $as_echo "makedepend" >&6; } | |
4518 | MKDEP="$MAKEDEPEND -f-" | |
212380e3 | 4519 | else |
7083c021 AC |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5 |
4521 | $as_echo "nothing suitable.. forget it!" >&6; } | |
4522 | MKDEP=":" | |
212380e3 | 4523 | fi |
631ef239 | 4524 | |
7083c021 AC |
4525 | |
4526 | ||
4527 | ||
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
4529 | $as_echo_n "checking for /dev/null... " >&6; } | |
4530 | if test -c /dev/null ; then | |
4531 | ||
4532 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
4533 | ||
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4535 | $as_echo "yes" >&6; } | |
212380e3 | 4536 | else |
212380e3 | 4537 | |
7083c021 AC |
4538 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
4539 | ||
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
4541 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 4542 | fi |
631ef239 | 4543 | |
7083c021 AC |
4544 | if test ! -z "$CFLAGS"; then |
4545 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 4546 | fi |
631ef239 | 4547 | |
7083c021 AC |
4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
4549 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 4550 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
4551 | $as_echo_n "(cached) " >&6 |
4552 | else | |
4553 | ac_func_search_save_LIBS=$LIBS | |
4554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4555 | /* end confdefs.h. */ |
7083c021 AC |
4556 | |
4557 | /* Override any GCC internal prototype to avoid an error. | |
4558 | Use char because int might match the return type of a GCC | |
4559 | builtin and then its argument prototype would still apply. */ | |
4560 | #ifdef __cplusplus | |
4561 | extern "C" | |
4562 | #endif | |
4563 | char strerror (); | |
212380e3 AC |
4564 | int |
4565 | main () | |
4566 | { | |
7083c021 | 4567 | return strerror (); |
212380e3 AC |
4568 | ; |
4569 | return 0; | |
4570 | } | |
4571 | _ACEOF | |
7083c021 AC |
4572 | for ac_lib in '' cposix; do |
4573 | if test -z "$ac_lib"; then | |
4574 | ac_res="none required" | |
4575 | else | |
4576 | ac_res=-l$ac_lib | |
4577 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4578 | fi | |
4579 | if ac_fn_c_try_link "$LINENO"; then : | |
4580 | ac_cv_search_strerror=$ac_res | |
4581 | fi | |
4582 | rm -f core conftest.err conftest.$ac_objext \ | |
4583 | conftest$ac_exeext | |
b6d0720c | 4584 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
4585 | break |
4586 | fi | |
4587 | done | |
b6d0720c | 4588 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 4589 | |
212380e3 | 4590 | else |
7083c021 AC |
4591 | ac_cv_search_strerror=no |
4592 | fi | |
4593 | rm conftest.$ac_ext | |
4594 | LIBS=$ac_func_search_save_LIBS | |
4595 | fi | |
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
4597 | $as_echo "$ac_cv_search_strerror" >&6; } | |
4598 | ac_res=$ac_cv_search_strerror | |
4599 | if test "$ac_res" != no; then : | |
4600 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 4601 | |
212380e3 | 4602 | fi |
631ef239 | 4603 | |
7083c021 AC |
4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
4605 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 4606 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
4607 | $as_echo_n "(cached) " >&6 |
4608 | else | |
4609 | ac_cv_c_inline=no | |
4610 | for ac_kw in inline __inline__ __inline; do | |
4611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4612 | /* end confdefs.h. */ | |
4613 | #ifndef __cplusplus | |
4614 | typedef int foo_t; | |
4615 | static $ac_kw foo_t static_foo () {return 0; } | |
4616 | $ac_kw foo_t foo () {return 0; } | |
4617 | #endif | |
4618 | ||
4619 | _ACEOF | |
4620 | if ac_fn_c_try_compile "$LINENO"; then : | |
4621 | ac_cv_c_inline=$ac_kw | |
4622 | fi | |
631ef239 | 4623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 4624 | test "$ac_cv_c_inline" != no && break |
212380e3 | 4625 | done |
7083c021 AC |
4626 | |
4627 | fi | |
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
4629 | $as_echo "$ac_cv_c_inline" >&6; } | |
4630 | ||
4631 | case $ac_cv_c_inline in | |
4632 | inline | yes) ;; | |
4633 | *) | |
4634 | case $ac_cv_c_inline in | |
4635 | no) ac_val=;; | |
4636 | *) ac_val=$ac_cv_c_inline;; | |
4637 | esac | |
4638 | cat >>confdefs.h <<_ACEOF | |
4639 | #ifndef __cplusplus | |
4640 | #define inline $ac_val | |
4641 | #endif | |
4642 | _ACEOF | |
4643 | ;; | |
212380e3 | 4644 | esac |
7083c021 AC |
4645 | |
4646 | if test $ac_cv_c_compiler_gnu = yes; then | |
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4648 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
b6d0720c | 4649 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
7083c021 | 4650 | $as_echo_n "(cached) " >&6 |
212380e3 | 4651 | else |
7083c021 AC |
4652 | ac_pattern="Autoconf.*'x'" |
4653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4654 | /* end confdefs.h. */ | |
4655 | #include <sgtty.h> | |
4656 | Autoconf TIOCGETP | |
212380e3 | 4657 | _ACEOF |
7083c021 AC |
4658 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4659 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4660 | ac_cv_prog_gcc_traditional=yes | |
4661 | else | |
4662 | ac_cv_prog_gcc_traditional=no | |
4663 | fi | |
4664 | rm -f conftest* | |
4665 | ||
4666 | ||
4667 | if test $ac_cv_prog_gcc_traditional = no; then | |
4668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4669 | /* end confdefs.h. */ |
7083c021 AC |
4670 | #include <termio.h> |
4671 | Autoconf TCGETA | |
4672 | _ACEOF | |
4673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4674 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4675 | ac_cv_prog_gcc_traditional=yes | |
4676 | fi | |
4677 | rm -f conftest* | |
212380e3 | 4678 | |
7083c021 AC |
4679 | fi |
4680 | fi | |
4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
4682 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4683 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4684 | CC="$CC -traditional" | |
4685 | fi | |
4686 | fi | |
212380e3 | 4687 | |
7083c021 AC |
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4689 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4690 | set x ${MAKE-make} | |
4691 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 4692 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
4693 | $as_echo_n "(cached) " >&6 |
4694 | else | |
4695 | cat >conftest.make <<\_ACEOF | |
4696 | SHELL = /bin/sh | |
4697 | all: | |
4698 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 4699 | _ACEOF |
b6d0720c | 4700 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
4701 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4702 | *@@@%%%=?*=@@@%%%*) | |
4703 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4704 | *) | |
4705 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 4706 | esac |
7083c021 AC |
4707 | rm -f conftest.make |
4708 | fi | |
4709 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4711 | $as_echo "yes" >&6; } | |
4712 | SET_MAKE= | |
4713 | else | |
4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4715 | $as_echo "no" >&6; } | |
4716 | SET_MAKE="MAKE=${MAKE-make}" | |
4717 | fi | |
4718 | ||
a5471f24 LS |
4719 | ac_aux_dir= |
4720 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
4721 | if test -f "$ac_dir/install-sh"; then | |
4722 | ac_aux_dir=$ac_dir | |
4723 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4724 | break | |
4725 | elif test -f "$ac_dir/install.sh"; then | |
4726 | ac_aux_dir=$ac_dir | |
4727 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4728 | break | |
4729 | elif test -f "$ac_dir/shtool"; then | |
4730 | ac_aux_dir=$ac_dir | |
4731 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4732 | break | |
4733 | fi | |
4734 | done | |
4735 | if test -z "$ac_aux_dir"; then | |
4736 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
4737 | fi | |
4738 | ||
4739 | # These three variables are undocumented and unsupported, | |
4740 | # and are intended to be withdrawn in a future Autoconf release. | |
4741 | # They can cause serious problems if a builder's source tree is in a directory | |
4742 | # whose full name contains unusual characters. | |
4743 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4744 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4745 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4746 | ||
4747 | ||
7083c021 AC |
4748 | # Find a good install program. We prefer a C program (faster), |
4749 | # so one script is as good as another. But avoid the broken or | |
4750 | # incompatible versions: | |
4751 | # SysV /etc/install, /usr/sbin/install | |
4752 | # SunOS /usr/etc/install | |
4753 | # IRIX /sbin/install | |
4754 | # AIX /bin/install | |
4755 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4756 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4757 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4758 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4759 | # OS/2's system install, which has a completely different semantic | |
4760 | # ./install, which can be erroneously created by make from ./install.sh. | |
4761 | # Reject install programs that cannot install multiple files. | |
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4763 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4764 | if test -z "$INSTALL"; then | |
b6d0720c | 4765 | if ${ac_cv_path_install+:} false; then : |
7083c021 AC |
4766 | $as_echo_n "(cached) " >&6 |
4767 | else | |
4768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4769 | for as_dir in $PATH | |
4770 | do | |
4771 | IFS=$as_save_IFS | |
4772 | test -z "$as_dir" && as_dir=. | |
4773 | # Account for people who put trailing slashes in PATH elements. | |
4774 | case $as_dir/ in #(( | |
4775 | ./ | .// | /[cC]/* | \ | |
4776 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4777 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4778 | /usr/ucb/* ) ;; | |
4779 | *) | |
4780 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4781 | # Don't use installbsd from OSF since it installs stuff as root | |
4782 | # by default. | |
4783 | for ac_prog in ginstall scoinst install; do | |
4784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4785 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
7083c021 AC |
4786 | if test $ac_prog = install && |
4787 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4788 | # AIX install. It has an incompatible calling convention. | |
4789 | : | |
4790 | elif test $ac_prog = install && | |
4791 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4792 | # program-specific install script used by HP pwplus--don't use. | |
4793 | : | |
4794 | else | |
4795 | rm -rf conftest.one conftest.two conftest.dir | |
4796 | echo one > conftest.one | |
4797 | echo two > conftest.two | |
4798 | mkdir conftest.dir | |
4799 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4800 | test -s conftest.one && test -s conftest.two && | |
4801 | test -s conftest.dir/conftest.one && | |
4802 | test -s conftest.dir/conftest.two | |
4803 | then | |
4804 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4805 | break 3 | |
4806 | fi | |
4807 | fi | |
4808 | fi | |
4809 | done | |
4810 | done | |
4811 | ;; | |
631ef239 | 4812 | esac |
7083c021 AC |
4813 | |
4814 | done | |
4815 | IFS=$as_save_IFS | |
4816 | ||
4817 | rm -rf conftest.one conftest.two conftest.dir | |
4818 | ||
4819 | fi | |
4820 | if test "${ac_cv_path_install+set}" = set; then | |
4821 | INSTALL=$ac_cv_path_install | |
4822 | else | |
4823 | # As a last resort, use the slow shell script. Don't cache a | |
4824 | # value for INSTALL within a source directory, because that will | |
4825 | # break other packages using the cache if that directory is | |
4826 | # removed, or if the value is a relative name. | |
4827 | INSTALL=$ac_install_sh | |
4828 | fi | |
4829 | fi | |
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4831 | $as_echo "$INSTALL" >&6; } | |
4832 | ||
4833 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4834 | # It thinks the first close brace ends the variable substitution. | |
4835 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4836 | ||
4837 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4838 | ||
4839 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4840 | ||
4841 | # Extract the first word of "rm", so it can be a program name with args. | |
4842 | set dummy rm; ac_word=$2 | |
4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4844 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4845 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 4846 | $as_echo_n "(cached) " >&6 |
212380e3 | 4847 | else |
7083c021 AC |
4848 | case $RM in |
4849 | [\\/]* | ?:[\\/]*) | |
4850 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4851 | ;; | |
4852 | *) | |
4853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4854 | for as_dir in $PATH | |
4855 | do | |
4856 | IFS=$as_save_IFS | |
4857 | test -z "$as_dir" && as_dir=. | |
4858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4859 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4860 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
4861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4862 | break 2 | |
4863 | fi | |
4864 | done | |
4865 | done | |
4866 | IFS=$as_save_IFS | |
212380e3 | 4867 | |
7083c021 AC |
4868 | ;; |
4869 | esac | |
212380e3 | 4870 | fi |
7083c021 AC |
4871 | RM=$ac_cv_path_RM |
4872 | if test -n "$RM"; then | |
4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
4874 | $as_echo "$RM" >&6; } | |
4875 | else | |
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4877 | $as_echo "no" >&6; } | |
212380e3 | 4878 | fi |
631ef239 AC |
4879 | |
4880 | ||
7083c021 AC |
4881 | # Extract the first word of "cp", so it can be a program name with args. |
4882 | set dummy cp; ac_word=$2 | |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4884 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4885 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
4886 | $as_echo_n "(cached) " >&6 |
4887 | else | |
4888 | case $CP in | |
4889 | [\\/]* | ?:[\\/]*) | |
4890 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
4891 | ;; | |
4892 | *) | |
4893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4894 | for as_dir in $PATH | |
4895 | do | |
4896 | IFS=$as_save_IFS | |
4897 | test -z "$as_dir" && as_dir=. | |
4898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4900 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
4901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4902 | break 2 | |
4903 | fi | |
4904 | done | |
4905 | done | |
4906 | IFS=$as_save_IFS | |
631ef239 | 4907 | |
7083c021 AC |
4908 | ;; |
4909 | esac | |
4910 | fi | |
4911 | CP=$ac_cv_path_CP | |
4912 | if test -n "$CP"; then | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
4914 | $as_echo "$CP" >&6; } | |
4915 | else | |
4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4917 | $as_echo "no" >&6; } | |
4918 | fi | |
212380e3 AC |
4919 | |
4920 | ||
7083c021 AC |
4921 | # Extract the first word of "mv", so it can be a program name with args. |
4922 | set dummy mv; ac_word=$2 | |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4924 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4925 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 4926 | $as_echo_n "(cached) " >&6 |
212380e3 | 4927 | else |
7083c021 AC |
4928 | case $MV in |
4929 | [\\/]* | ?:[\\/]*) | |
4930 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4931 | ;; | |
4932 | *) | |
4933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4934 | for as_dir in $PATH | |
4935 | do | |
4936 | IFS=$as_save_IFS | |
4937 | test -z "$as_dir" && as_dir=. | |
4938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4940 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
4941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4942 | break 2 | |
4943 | fi | |
4944 | done | |
4945 | done | |
4946 | IFS=$as_save_IFS | |
4947 | ||
4948 | ;; | |
631ef239 | 4949 | esac |
7083c021 AC |
4950 | fi |
4951 | MV=$ac_cv_path_MV | |
4952 | if test -n "$MV"; then | |
4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
4954 | $as_echo "$MV" >&6; } | |
212380e3 | 4955 | else |
7083c021 AC |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4957 | $as_echo "no" >&6; } | |
212380e3 | 4958 | fi |
631ef239 | 4959 | |
212380e3 | 4960 | |
7083c021 AC |
4961 | # Extract the first word of "ln", so it can be a program name with args. |
4962 | set dummy ln; ac_word=$2 | |
4963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4964 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4965 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 4966 | $as_echo_n "(cached) " >&6 |
212380e3 | 4967 | else |
7083c021 AC |
4968 | case $LN in |
4969 | [\\/]* | ?:[\\/]*) | |
4970 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
4971 | ;; | |
4972 | *) | |
4973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4974 | for as_dir in $PATH | |
4975 | do | |
4976 | IFS=$as_save_IFS | |
4977 | test -z "$as_dir" && as_dir=. | |
4978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 4979 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
4980 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
4981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4982 | break 2 | |
4983 | fi | |
4984 | done | |
4985 | done | |
4986 | IFS=$as_save_IFS | |
212380e3 | 4987 | |
7083c021 | 4988 | ;; |
631ef239 | 4989 | esac |
7083c021 AC |
4990 | fi |
4991 | LN=$ac_cv_path_LN | |
4992 | if test -n "$LN"; then | |
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
4994 | $as_echo "$LN" >&6; } | |
212380e3 | 4995 | else |
7083c021 AC |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4997 | $as_echo "no" >&6; } | |
212380e3 | 4998 | fi |
631ef239 | 4999 | |
7083c021 AC |
5000 | |
5001 | # Extract the first word of "sed", so it can be a program name with args. | |
5002 | set dummy sed; ac_word=$2 | |
5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5004 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5005 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
5006 | $as_echo_n "(cached) " >&6 |
5007 | else | |
5008 | case $SED in | |
5009 | [\\/]* | ?:[\\/]*) | |
5010 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
5011 | ;; | |
5012 | *) | |
5013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5014 | for as_dir in $PATH | |
5015 | do | |
5016 | IFS=$as_save_IFS | |
5017 | test -z "$as_dir" && as_dir=. | |
5018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5019 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5020 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
5021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5022 | break 2 | |
5023 | fi | |
5024 | done | |
212380e3 | 5025 | done |
7083c021 AC |
5026 | IFS=$as_save_IFS |
5027 | ||
5028 | ;; | |
5029 | esac | |
5030 | fi | |
5031 | SED=$ac_cv_path_SED | |
5032 | if test -n "$SED"; then | |
5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
5034 | $as_echo "$SED" >&6; } | |
212380e3 | 5035 | else |
7083c021 AC |
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5037 | $as_echo "no" >&6; } | |
5038 | fi | |
212380e3 | 5039 | |
212380e3 | 5040 | |
7083c021 AC |
5041 | # Extract the first word of "ar", so it can be a program name with args. |
5042 | set dummy ar; ac_word=$2 | |
5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5044 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5045 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
5046 | $as_echo_n "(cached) " >&6 |
5047 | else | |
5048 | case $AR in | |
5049 | [\\/]* | ?:[\\/]*) | |
5050 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
5051 | ;; | |
5052 | *) | |
5053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5054 | for as_dir in $PATH | |
5055 | do | |
5056 | IFS=$as_save_IFS | |
5057 | test -z "$as_dir" && as_dir=. | |
5058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5060 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
5061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5062 | break 2 | |
5063 | fi | |
5064 | done | |
5065 | done | |
5066 | IFS=$as_save_IFS | |
212380e3 | 5067 | |
7083c021 | 5068 | ;; |
631ef239 | 5069 | esac |
7083c021 AC |
5070 | fi |
5071 | AR=$ac_cv_path_AR | |
5072 | if test -n "$AR"; then | |
5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5074 | $as_echo "$AR" >&6; } | |
212380e3 | 5075 | else |
7083c021 AC |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5077 | $as_echo "no" >&6; } | |
212380e3 | 5078 | fi |
631ef239 | 5079 | |
7083c021 AC |
5080 | |
5081 | # Extract the first word of "ld", so it can be a program name with args. | |
5082 | set dummy ld; ac_word=$2 | |
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5084 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5085 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 5086 | $as_echo_n "(cached) " >&6 |
212380e3 | 5087 | else |
7083c021 AC |
5088 | case $LD in |
5089 | [\\/]* | ?:[\\/]*) | |
5090 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
5091 | ;; | |
5092 | *) | |
5093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5094 | for as_dir in $PATH | |
5095 | do | |
5096 | IFS=$as_save_IFS | |
5097 | test -z "$as_dir" && as_dir=. | |
5098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5100 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
5101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5102 | break 2 | |
5103 | fi | |
5104 | done | |
5105 | done | |
5106 | IFS=$as_save_IFS | |
212380e3 | 5107 | |
7083c021 AC |
5108 | ;; |
5109 | esac | |
212380e3 | 5110 | fi |
7083c021 AC |
5111 | LD=$ac_cv_path_LD |
5112 | if test -n "$LD"; then | |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5114 | $as_echo "$LD" >&6; } | |
5115 | else | |
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5117 | $as_echo "no" >&6; } | |
212380e3 | 5118 | fi |
631ef239 | 5119 | |
212380e3 | 5120 | |
7083c021 AC |
5121 | # Extract the first word of "ranlib", so it can be a program name with args. |
5122 | set dummy ranlib; ac_word=$2 | |
5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5124 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5125 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 5126 | $as_echo_n "(cached) " >&6 |
212380e3 | 5127 | else |
7083c021 AC |
5128 | case $RANLIB in |
5129 | [\\/]* | ?:[\\/]*) | |
5130 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
5131 | ;; | |
5132 | *) | |
5133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5134 | for as_dir in $PATH | |
5135 | do | |
5136 | IFS=$as_save_IFS | |
5137 | test -z "$as_dir" && as_dir=. | |
5138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5139 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5140 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
5141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5142 | break 2 | |
5143 | fi | |
5144 | done | |
5145 | done | |
5146 | IFS=$as_save_IFS | |
212380e3 | 5147 | |
7083c021 AC |
5148 | ;; |
5149 | esac | |
5150 | fi | |
5151 | RANLIB=$ac_cv_path_RANLIB | |
5152 | if test -n "$RANLIB"; then | |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5154 | $as_echo "$RANLIB" >&6; } | |
5155 | else | |
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5157 | $as_echo "no" >&6; } | |
212380e3 | 5158 | fi |
631ef239 | 5159 | |
7083c021 AC |
5160 | |
5161 | # Extract the first word of "touch", so it can be a program name with args. | |
5162 | set dummy touch; ac_word=$2 | |
5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5164 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5165 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
5166 | $as_echo_n "(cached) " >&6 |
5167 | else | |
5168 | case $TOUCH in | |
5169 | [\\/]* | ?:[\\/]*) | |
5170 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5171 | ;; | |
5172 | *) | |
5173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5174 | for as_dir in $PATH | |
5175 | do | |
5176 | IFS=$as_save_IFS | |
5177 | test -z "$as_dir" && as_dir=. | |
5178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5180 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
5181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5182 | break 2 | |
5183 | fi | |
212380e3 | 5184 | done |
7083c021 AC |
5185 | done |
5186 | IFS=$as_save_IFS | |
5187 | ||
5188 | ;; | |
212380e3 | 5189 | esac |
7083c021 AC |
5190 | fi |
5191 | TOUCH=$ac_cv_path_TOUCH | |
5192 | if test -n "$TOUCH"; then | |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
5194 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 5195 | else |
7083c021 AC |
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5197 | $as_echo "no" >&6; } | |
5198 | fi | |
212380e3 | 5199 | |
212380e3 | 5200 | |
7083c021 AC |
5201 | |
5202 | for ac_prog in 'bison -y' byacc | |
5203 | do | |
5204 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5205 | set dummy $ac_prog; ac_word=$2 | |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5207 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5208 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 5209 | $as_echo_n "(cached) " >&6 |
212380e3 | 5210 | else |
7083c021 AC |
5211 | if test -n "$YACC"; then |
5212 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5213 | else | |
5214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5215 | for as_dir in $PATH | |
5216 | do | |
5217 | IFS=$as_save_IFS | |
5218 | test -z "$as_dir" && as_dir=. | |
5219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5221 | ac_cv_prog_YACC="$ac_prog" |
5222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5223 | break 2 | |
5224 | fi | |
5225 | done | |
5226 | done | |
5227 | IFS=$as_save_IFS | |
212380e3 | 5228 | |
212380e3 AC |
5229 | fi |
5230 | fi | |
7083c021 AC |
5231 | YACC=$ac_cv_prog_YACC |
5232 | if test -n "$YACC"; then | |
5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5234 | $as_echo "$YACC" >&6; } | |
5235 | else | |
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5237 | $as_echo "no" >&6; } | |
212380e3 | 5238 | fi |
631ef239 AC |
5239 | |
5240 | ||
7083c021 AC |
5241 | test -n "$YACC" && break |
5242 | done | |
5243 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
5244 | |
5245 | ||
7083c021 | 5246 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 5247 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 5248 | fi |
212380e3 | 5249 | |
7083c021 AC |
5250 | for ac_prog in flex lex |
5251 | do | |
5252 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5253 | set dummy $ac_prog; ac_word=$2 | |
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5255 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5256 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 5257 | $as_echo_n "(cached) " >&6 |
212380e3 | 5258 | else |
7083c021 AC |
5259 | if test -n "$LEX"; then |
5260 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 5261 | else |
7083c021 AC |
5262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5263 | for as_dir in $PATH | |
5264 | do | |
5265 | IFS=$as_save_IFS | |
5266 | test -z "$as_dir" && as_dir=. | |
5267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 5268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
5269 | ac_cv_prog_LEX="$ac_prog" |
5270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5271 | break 2 | |
5272 | fi | |
631ef239 | 5273 | done |
7083c021 AC |
5274 | done |
5275 | IFS=$as_save_IFS | |
631ef239 | 5276 | |
7083c021 AC |
5277 | fi |
5278 | fi | |
5279 | LEX=$ac_cv_prog_LEX | |
5280 | if test -n "$LEX"; then | |
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
5282 | $as_echo "$LEX" >&6; } | |
631ef239 | 5283 | else |
7083c021 AC |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5285 | $as_echo "no" >&6; } | |
631ef239 AC |
5286 | fi |
5287 | ||
5288 | ||
7083c021 AC |
5289 | test -n "$LEX" && break |
5290 | done | |
5291 | test -n "$LEX" || LEX=":" | |
212380e3 | 5292 | |
7083c021 AC |
5293 | if test "x$LEX" != "x:"; then |
5294 | cat >conftest.l <<_ACEOF | |
5295 | %% | |
5296 | a { ECHO; } | |
5297 | b { REJECT; } | |
5298 | c { yymore (); } | |
5299 | d { yyless (1); } | |
2eff3833 JT |
5300 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
5301 | yyless ((input () != 0)); } | |
7083c021 AC |
5302 | f { unput (yytext[0]); } |
5303 | . { BEGIN INITIAL; } | |
5304 | %% | |
5305 | #ifdef YYTEXT_POINTER | |
5306 | extern char *yytext; | |
212380e3 | 5307 | #endif |
212380e3 | 5308 | int |
7083c021 | 5309 | main (void) |
212380e3 | 5310 | { |
7083c021 | 5311 | return ! yylex () + ! yywrap (); |
212380e3 AC |
5312 | } |
5313 | _ACEOF | |
7083c021 | 5314 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
5315 | case "(($ac_try" in |
5316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5317 | *) ac_try_echo=$ac_try;; | |
5318 | esac | |
7083c021 AC |
5319 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5320 | $as_echo "$ac_try_echo"; } >&5 | |
5321 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 5322 | ac_status=$? |
7083c021 AC |
5323 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5324 | test $ac_status = 0; } | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
5326 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 5327 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 5328 | $as_echo_n "(cached) " >&6 |
212380e3 | 5329 | else |
212380e3 | 5330 | |
7083c021 AC |
5331 | if test -f lex.yy.c; then |
5332 | ac_cv_prog_lex_root=lex.yy | |
5333 | elif test -f lexyy.c; then | |
5334 | ac_cv_prog_lex_root=lexyy | |
5335 | else | |
b6d0720c | 5336 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
5337 | fi |
5338 | fi | |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
5340 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
5341 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
5342 | ||
5343 | if test -z "${LEXLIB+set}"; then | |
5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
5345 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 5346 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
5347 | $as_echo_n "(cached) " >&6 |
5348 | else | |
631ef239 | 5349 | |
7083c021 AC |
5350 | ac_save_LIBS=$LIBS |
5351 | ac_cv_lib_lex='none needed' | |
5352 | for ac_lib in '' -lfl -ll; do | |
5353 | LIBS="$ac_lib $ac_save_LIBS" | |
5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5355 | /* end confdefs.h. */ | |
5356 | `cat $LEX_OUTPUT_ROOT.c` | |
5357 | _ACEOF | |
5358 | if ac_fn_c_try_link "$LINENO"; then : | |
5359 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 5360 | fi |
7083c021 AC |
5361 | rm -f core conftest.err conftest.$ac_objext \ |
5362 | conftest$ac_exeext conftest.$ac_ext | |
5363 | test "$ac_cv_lib_lex" != 'none needed' && break | |
5364 | done | |
5365 | LIBS=$ac_save_LIBS | |
631ef239 | 5366 | |
631ef239 | 5367 | fi |
7083c021 AC |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
5369 | $as_echo "$ac_cv_lib_lex" >&6; } | |
5370 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
5371 | fi | |
5372 | ||
5373 | ||
5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
5375 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 5376 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 5377 | $as_echo_n "(cached) " >&6 |
631ef239 | 5378 | else |
7083c021 AC |
5379 | # POSIX says lex can declare yytext either as a pointer or an array; the |
5380 | # default is implementation-dependent. Figure out which it is, since | |
5381 | # not all implementations provide the %pointer and %array declarations. | |
5382 | ac_cv_prog_lex_yytext_pointer=no | |
5383 | ac_save_LIBS=$LIBS | |
5384 | LIBS="$LEXLIB $ac_save_LIBS" | |
5385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5386 | /* end confdefs.h. */ | |
b6d0720c AC |
5387 | |
5388 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
5389 | `cat $LEX_OUTPUT_ROOT.c` |
5390 | _ACEOF | |
5391 | if ac_fn_c_try_link "$LINENO"; then : | |
5392 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 5393 | fi |
7083c021 AC |
5394 | rm -f core conftest.err conftest.$ac_objext \ |
5395 | conftest$ac_exeext conftest.$ac_ext | |
5396 | LIBS=$ac_save_LIBS | |
5397 | ||
212380e3 | 5398 | fi |
7083c021 AC |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5400 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
5401 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 5402 | |
7083c021 AC |
5403 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
5404 | ||
5405 | fi | |
5406 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
5407 | ||
5408 | fi | |
5409 | ||
5410 | if test "$LEX" = ":"; then | |
b6d0720c | 5411 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
5412 | fi |
5413 | ||
9f9b7042 NPB |
5414 | # Check whether --enable-fhs-paths was given. |
5415 | if test "${enable_fhs_paths+set}" = set; then : | |
5416 | enableval=$enable_fhs_paths; | |
5417 | else | |
5418 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
5419 | test "$localstatedir" = '${prefix}/var' && \ | |
5420 | test "$libdir" = '${exec_prefix}/lib'; then : | |
5421 | enable_fhs_paths=no | |
5422 | else | |
5423 | enable_fhs_paths=yes | |
5424 | fi | |
5425 | ||
5426 | fi | |
5427 | ||
5428 | if test "x$enable_fhs_paths" = "xyes"; then : | |
5429 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
5430 | rundir=${rundir-'${prefix}/run'} | |
5431 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
5432 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
5433 | else | |
5434 | libexecdir='${bindir}' | |
5435 | pkglibexecdir='${libexecdir}' | |
5436 | rundir='${sysconfdir}' | |
5437 | pkgrundir='${rundir}' | |
7083c021 | 5438 | localstatedir='${prefix}' |
9f9b7042 | 5439 | pkglocalstatedir='${sysconfdir}' |
631ef239 | 5440 | fi |
9f9b7042 NPB |
5441 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' |
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
5448 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5449 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
5450 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 5451 | ac_define_dir_counter=0 |
9f9b7042 NPB |
5452 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
5453 | last_ac_define_dir="$ac_define_dir" | |
5454 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
5455 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
5456 | if test "x$ac_define_dir_counter" = x128; then : | |
5457 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
5458 | break | |
5459 | fi | |
9f9b7042 NPB |
5460 | done |
5461 | PKGLOCALSTATEDIR="$ac_define_dir" | |
5462 | ||
5463 | ||
5464 | cat >>confdefs.h <<_ACEOF | |
5465 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
5466 | _ACEOF | |
5467 | ||
5468 | ||
5469 | ||
5470 | ||
5471 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
5472 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5473 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
5474 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 5475 | ac_define_dir_counter=0 |
9f9b7042 NPB |
5476 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
5477 | last_ac_define_dir="$ac_define_dir" | |
5478 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
5479 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
5480 | if test "x$ac_define_dir_counter" = x128; then : | |
5481 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
5482 | break | |
5483 | fi | |
9f9b7042 NPB |
5484 | done |
5485 | PKGLIBEXECDIR="$ac_define_dir" | |
5486 | ||
5487 | ||
5488 | cat >>confdefs.h <<_ACEOF | |
5489 | #define PKGLIBEXECDIR "$ac_define_dir" | |
5490 | _ACEOF | |
5491 | ||
5492 | ||
212380e3 | 5493 | |
7083c021 AC |
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5495 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 5496 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 5497 | $as_echo_n "(cached) " >&6 |
212380e3 | 5498 | else |
7083c021 | 5499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5500 | /* end confdefs.h. */ |
7083c021 AC |
5501 | #include <stdlib.h> |
5502 | #include <stdarg.h> | |
5503 | #include <string.h> | |
5504 | #include <float.h> | |
212380e3 AC |
5505 | |
5506 | int | |
5507 | main () | |
5508 | { | |
7083c021 | 5509 | |
212380e3 AC |
5510 | ; |
5511 | return 0; | |
5512 | } | |
5513 | _ACEOF | |
7083c021 AC |
5514 | if ac_fn_c_try_compile "$LINENO"; then : |
5515 | ac_cv_header_stdc=yes | |
212380e3 | 5516 | else |
7083c021 | 5517 | ac_cv_header_stdc=no |
212380e3 | 5518 | fi |
631ef239 | 5519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5520 | |
7083c021 AC |
5521 | if test $ac_cv_header_stdc = yes; then |
5522 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5524 | /* end confdefs.h. */ | |
5525 | #include <string.h> | |
5526 | ||
212380e3 | 5527 | _ACEOF |
7083c021 AC |
5528 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5529 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5530 | ||
5531 | else | |
5532 | ac_cv_header_stdc=no | |
5533 | fi | |
5534 | rm -f conftest* | |
212380e3 AC |
5535 | |
5536 | fi | |
5537 | ||
7083c021 AC |
5538 | if test $ac_cv_header_stdc = yes; then |
5539 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5541 | /* end confdefs.h. */ | |
5542 | #include <stdlib.h> | |
5543 | ||
5544 | _ACEOF | |
5545 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5546 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 5547 | |
212380e3 | 5548 | else |
7083c021 | 5549 | ac_cv_header_stdc=no |
631ef239 | 5550 | fi |
7083c021 | 5551 | rm -f conftest* |
631ef239 | 5552 | |
7083c021 | 5553 | fi |
212380e3 | 5554 | |
7083c021 AC |
5555 | if test $ac_cv_header_stdc = yes; then |
5556 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5557 | if test "$cross_compiling" = yes; then : | |
5558 | : | |
212380e3 | 5559 | else |
7083c021 | 5560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5561 | /* end confdefs.h. */ |
7083c021 AC |
5562 | #include <ctype.h> |
5563 | #include <stdlib.h> | |
5564 | #if ((' ' & 0x0FF) == 0x020) | |
5565 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5566 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5567 | #else | |
5568 | # define ISLOWER(c) \ | |
5569 | (('a' <= (c) && (c) <= 'i') \ | |
5570 | || ('j' <= (c) && (c) <= 'r') \ | |
5571 | || ('s' <= (c) && (c) <= 'z')) | |
5572 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 5573 | #endif |
7083c021 AC |
5574 | |
5575 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
5576 | int |
5577 | main () | |
5578 | { | |
7083c021 AC |
5579 | int i; |
5580 | for (i = 0; i < 256; i++) | |
5581 | if (XOR (islower (i), ISLOWER (i)) | |
5582 | || toupper (i) != TOUPPER (i)) | |
5583 | return 2; | |
212380e3 AC |
5584 | return 0; |
5585 | } | |
5586 | _ACEOF | |
7083c021 | 5587 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 5588 | |
7083c021 AC |
5589 | else |
5590 | ac_cv_header_stdc=no | |
631ef239 | 5591 | fi |
7083c021 AC |
5592 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5593 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5594 | fi |
7083c021 | 5595 | |
212380e3 | 5596 | fi |
212380e3 | 5597 | fi |
7083c021 AC |
5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5599 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5600 | if test $ac_cv_header_stdc = yes; then | |
5601 | ||
5602 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
5603 | |
5604 | fi | |
5605 | ||
5606 | ||
7083c021 AC |
5607 | 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 |
5608 | do : | |
5609 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5610 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 5611 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
5612 | cat >>confdefs.h <<_ACEOF |
5613 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5614 | _ACEOF | |
212380e3 | 5615 | |
212380e3 AC |
5616 | fi |
5617 | ||
7083c021 | 5618 | done |
212380e3 AC |
5619 | |
5620 | ||
212380e3 | 5621 | |
7083c021 AC |
5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
5623 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 5624 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
5625 | $as_echo_n "(cached) " >&6 |
5626 | else | |
5627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5628 | /* end confdefs.h. */ | |
212380e3 | 5629 | |
7083c021 AC |
5630 | int |
5631 | main () | |
5632 | { | |
2eff3833 | 5633 | |
7083c021 | 5634 | #ifndef __cplusplus |
2eff3833 | 5635 | /* Ultrix mips cc rejects this sort of thing. */ |
7083c021 | 5636 | typedef int charset[2]; |
2eff3833 | 5637 | const charset cs = { 0, 0 }; |
7083c021 AC |
5638 | /* SunOS 4.1.1 cc rejects this. */ |
5639 | char const *const *pcpcc; | |
5640 | char **ppc; | |
5641 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5642 | struct point {int x, y;}; | |
5643 | static struct point const zero = {0,0}; | |
5644 | /* AIX XL C 1.02.0.0 rejects this. | |
5645 | It does not let you subtract one const X* pointer from another in | |
5646 | an arm of an if-expression whose if-part is not a constant | |
5647 | expression */ | |
5648 | const char *g = "string"; | |
5649 | pcpcc = &g + (g ? g-g : 0); | |
5650 | /* HPUX 7.0 cc rejects these. */ | |
5651 | ++pcpcc; | |
5652 | ppc = (char**) pcpcc; | |
5653 | pcpcc = (char const *const *) ppc; | |
2eff3833 JT |
5654 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
5655 | char tx; | |
5656 | char *t = &tx; | |
7083c021 | 5657 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
212380e3 | 5658 | |
7083c021 AC |
5659 | *t++ = 0; |
5660 | if (s) return 0; | |
5661 | } | |
5662 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5663 | int x[] = {25, 17}; | |
5664 | const int *foo = &x[0]; | |
5665 | ++foo; | |
5666 | } | |
5667 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5668 | typedef const int *iptr; | |
5669 | iptr p = 0; | |
5670 | ++p; | |
5671 | } | |
2eff3833 | 5672 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
7083c021 | 5673 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
2eff3833 JT |
5674 | struct s { int j; const int *ap[3]; } bx; |
5675 | struct s *b = &bx; b->j = 5; | |
7083c021 AC |
5676 | } |
5677 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5678 | const int foo = 10; | |
5679 | if (!foo) return 0; | |
5680 | } | |
5681 | return !cs[0] && !zero.x; | |
5682 | #endif | |
212380e3 | 5683 | |
7083c021 AC |
5684 | ; |
5685 | return 0; | |
5686 | } | |
212380e3 | 5687 | _ACEOF |
7083c021 AC |
5688 | if ac_fn_c_try_compile "$LINENO"; then : |
5689 | ac_cv_c_const=yes | |
212380e3 | 5690 | else |
7083c021 | 5691 | ac_cv_c_const=no |
212380e3 | 5692 | fi |
631ef239 | 5693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5694 | fi |
7083c021 AC |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5696 | $as_echo "$ac_cv_c_const" >&6; } | |
5697 | if test $ac_cv_c_const = no; then | |
212380e3 | 5698 | |
7083c021 | 5699 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
5700 | |
5701 | fi | |
5702 | ||
7083c021 AC |
5703 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
5705 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 5706 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 5707 | $as_echo_n "(cached) " >&6 |
212380e3 | 5708 | else |
7083c021 AC |
5709 | ac_cv_c_bigendian=unknown |
5710 | # See if we're dealing with a universal compiler. | |
5711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5712 | /* end confdefs.h. */ | |
5713 | #ifndef __APPLE_CC__ | |
5714 | not a universal capable compiler | |
5715 | #endif | |
5716 | typedef int dummy; | |
5717 | ||
5718 | _ACEOF | |
5719 | if ac_fn_c_try_compile "$LINENO"; then : | |
5720 | ||
5721 | # Check for potential -arch flags. It is not universal unless | |
5722 | # there are at least two -arch flags with different values. | |
5723 | ac_arch= | |
5724 | ac_prev= | |
5725 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5726 | if test -n "$ac_prev"; then | |
5727 | case $ac_word in | |
5728 | i?86 | x86_64 | ppc | ppc64) | |
5729 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5730 | ac_arch=$ac_word | |
5731 | else | |
5732 | ac_cv_c_bigendian=universal | |
5733 | break | |
5734 | fi | |
5735 | ;; | |
5736 | esac | |
5737 | ac_prev= | |
5738 | elif test "x$ac_word" = "x-arch"; then | |
5739 | ac_prev=arch | |
5740 | fi | |
5741 | done | |
5742 | fi | |
5743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5744 | if test $ac_cv_c_bigendian = unknown; then | |
5745 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
5747 | /* end confdefs.h. */ |
5748 | #include <sys/types.h> | |
7083c021 | 5749 | #include <sys/param.h> |
212380e3 AC |
5750 | |
5751 | int | |
5752 | main () | |
5753 | { | |
7083c021 AC |
5754 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5755 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5756 | && LITTLE_ENDIAN) | |
5757 | bogus endian macros | |
5758 | #endif | |
212380e3 AC |
5759 | |
5760 | ; | |
5761 | return 0; | |
5762 | } | |
5763 | _ACEOF | |
7083c021 | 5764 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5765 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 5766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
5767 | /* end confdefs.h. */ |
5768 | #include <sys/types.h> | |
7083c021 | 5769 | #include <sys/param.h> |
212380e3 AC |
5770 | |
5771 | int | |
5772 | main () | |
5773 | { | |
5774 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
5775 | not big endian |
5776 | #endif | |
212380e3 AC |
5777 | |
5778 | ; | |
5779 | return 0; | |
5780 | } | |
5781 | _ACEOF | |
7083c021 | 5782 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
5783 | ac_cv_c_bigendian=yes |
5784 | else | |
7083c021 | 5785 | ac_cv_c_bigendian=no |
212380e3 | 5786 | fi |
631ef239 | 5787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
5788 | fi |
5789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5790 | fi | |
5791 | if test $ac_cv_c_bigendian = unknown; then | |
5792 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5794 | /* end confdefs.h. */ | |
5795 | #include <limits.h> | |
212380e3 | 5796 | |
7083c021 AC |
5797 | int |
5798 | main () | |
5799 | { | |
5800 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5801 | bogus endian macros | |
5802 | #endif | |
5803 | ||
5804 | ; | |
5805 | return 0; | |
5806 | } | |
212380e3 | 5807 | _ACEOF |
7083c021 AC |
5808 | if ac_fn_c_try_compile "$LINENO"; then : |
5809 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 5811 | /* end confdefs.h. */ |
7083c021 AC |
5812 | #include <limits.h> |
5813 | ||
212380e3 AC |
5814 | int |
5815 | main () | |
5816 | { | |
7083c021 AC |
5817 | #ifndef _BIG_ENDIAN |
5818 | not big endian | |
5819 | #endif | |
5820 | ||
212380e3 AC |
5821 | ; |
5822 | return 0; | |
5823 | } | |
5824 | _ACEOF | |
7083c021 | 5825 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5826 | ac_cv_c_bigendian=yes |
7083c021 AC |
5827 | else |
5828 | ac_cv_c_bigendian=no | |
212380e3 | 5829 | fi |
7083c021 | 5830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5831 | fi |
7083c021 AC |
5832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5833 | fi | |
5834 | if test $ac_cv_c_bigendian = unknown; then | |
5835 | # Compile a test program. | |
5836 | if test "$cross_compiling" = yes; then : | |
5837 | # Try to guess by grepping values from an object file. | |
5838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5839 | /* end confdefs.h. */ | |
5840 | short int ascii_mm[] = | |
5841 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5842 | short int ascii_ii[] = | |
5843 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5844 | int use_ascii (int i) { | |
5845 | return ascii_mm[i] + ascii_ii[i]; | |
5846 | } | |
5847 | short int ebcdic_ii[] = | |
5848 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5849 | short int ebcdic_mm[] = | |
5850 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5851 | int use_ebcdic (int i) { | |
5852 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5853 | } | |
5854 | extern int foo; | |
631ef239 | 5855 | |
7083c021 AC |
5856 | int |
5857 | main () | |
5858 | { | |
5859 | return use_ascii (foo) == use_ebcdic (foo); | |
5860 | ; | |
5861 | return 0; | |
5862 | } | |
5863 | _ACEOF | |
5864 | if ac_fn_c_try_compile "$LINENO"; then : | |
5865 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5866 | ac_cv_c_bigendian=yes | |
5867 | fi | |
5868 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5869 | if test "$ac_cv_c_bigendian" = unknown; then | |
5870 | ac_cv_c_bigendian=no | |
5871 | else | |
5872 | # finding both strings is unlikely to happen, but who knows? | |
5873 | ac_cv_c_bigendian=unknown | |
5874 | fi | |
5875 | fi | |
212380e3 | 5876 | fi |
631ef239 | 5877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5878 | else |
7083c021 | 5879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5880 | /* end confdefs.h. */ |
631ef239 | 5881 | $ac_includes_default |
212380e3 AC |
5882 | int |
5883 | main () | |
5884 | { | |
631ef239 | 5885 | |
7083c021 AC |
5886 | /* Are we little or big endian? From Harbison&Steele. */ |
5887 | union | |
5888 | { | |
5889 | long int l; | |
5890 | char c[sizeof (long int)]; | |
5891 | } u; | |
5892 | u.l = 1; | |
5893 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
5894 | |
5895 | ; | |
5896 | return 0; | |
212380e3 AC |
5897 | } |
5898 | _ACEOF | |
7083c021 | 5899 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
5900 | ac_cv_c_bigendian=no |
5901 | else | |
7083c021 | 5902 | ac_cv_c_bigendian=yes |
212380e3 | 5903 | fi |
7083c021 AC |
5904 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5905 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5906 | fi |
631ef239 | 5907 | |
7083c021 | 5908 | fi |
212380e3 | 5909 | fi |
7083c021 AC |
5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5911 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5912 | case $ac_cv_c_bigendian in #( | |
5913 | yes) | |
5914 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5915 | ;; #( | |
5916 | no) | |
5917 | ;; #( | |
5918 | universal) | |
5919 | ||
5920 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5921 | ||
5922 | ;; #( | |
5923 | *) | |
b6d0720c | 5924 | as_fn_error $? "unknown endianness |
7083c021 AC |
5925 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
5926 | esac | |
631ef239 | 5927 | |
212380e3 | 5928 | fi |
7083c021 | 5929 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 5930 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 5931 | |
7083c021 | 5932 | else |
212380e3 | 5933 | |
7083c021 AC |
5934 | cat >>confdefs.h <<_ACEOF |
5935 | #define pid_t int | |
5936 | _ACEOF | |
212380e3 | 5937 | |
212380e3 | 5938 | fi |
7083c021 AC |
5939 | |
5940 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 5941 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 5942 | |
212380e3 | 5943 | else |
7083c021 AC |
5944 | |
5945 | cat >>confdefs.h <<_ACEOF | |
5946 | #define size_t unsigned int | |
212380e3 | 5947 | _ACEOF |
7083c021 AC |
5948 | |
5949 | fi | |
5950 | ||
5951 | # The cast to long int works around a bug in the HP C Compiler | |
5952 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5953 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5954 | # This bug is HP SR number 8606223364. | |
5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
5956 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 5957 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 5958 | $as_echo_n "(cached) " >&6 |
212380e3 | 5959 | else |
7083c021 AC |
5960 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
5961 | ||
5962 | else | |
5963 | if test "$ac_cv_type_short" = yes; then | |
5964 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5965 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5966 | as_fn_error 77 "cannot compute sizeof (short) |
5967 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5968 | else |
5969 | ac_cv_sizeof_short=0 | |
5970 | fi | |
5971 | fi | |
212380e3 | 5972 | |
212380e3 | 5973 | fi |
7083c021 AC |
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
5975 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 5976 | |
212380e3 | 5977 | |
7083c021 AC |
5978 | |
5979 | cat >>confdefs.h <<_ACEOF | |
5980 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 5981 | _ACEOF |
7083c021 AC |
5982 | |
5983 | ||
5984 | # The cast to long int works around a bug in the HP C Compiler | |
5985 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5986 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5987 | # This bug is HP SR number 8606223364. | |
5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
5989 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 5990 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
5991 | $as_echo_n "(cached) " >&6 |
5992 | else | |
5993 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
5994 | ||
5995 | else | |
5996 | if test "$ac_cv_type_int" = yes; then | |
5997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5998 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5999 | as_fn_error 77 "cannot compute sizeof (int) |
6000 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
6001 | else |
6002 | ac_cv_sizeof_int=0 | |
6003 | fi | |
6004 | fi | |
6005 | ||
6006 | fi | |
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
6008 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
6009 | ||
6010 | ||
6011 | ||
6012 | cat >>confdefs.h <<_ACEOF | |
6013 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 6014 | _ACEOF |
7083c021 AC |
6015 | |
6016 | ||
6017 | # The cast to long int works around a bug in the HP C Compiler | |
6018 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6019 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6020 | # This bug is HP SR number 8606223364. | |
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
6022 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 6023 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 6024 | $as_echo_n "(cached) " >&6 |
212380e3 | 6025 | else |
7083c021 | 6026 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 6027 | |
7083c021 AC |
6028 | else |
6029 | if test "$ac_cv_type_long" = yes; then | |
6030 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6031 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
6032 | as_fn_error 77 "cannot compute sizeof (long) |
6033 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
6034 | else |
6035 | ac_cv_sizeof_long=0 | |
6036 | fi | |
212380e3 | 6037 | fi |
631ef239 | 6038 | |
7083c021 AC |
6039 | fi |
6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
6041 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 6042 | |
631ef239 | 6043 | |
7083c021 AC |
6044 | |
6045 | cat >>confdefs.h <<_ACEOF | |
6046 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6047 | _ACEOF | |
6048 | ||
6049 | ||
6050 | # The cast to long int works around a bug in the HP C Compiler | |
6051 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6052 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6053 | # This bug is HP SR number 8606223364. | |
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
6055 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 6056 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
6057 | $as_echo_n "(cached) " >&6 |
6058 | else | |
6059 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
6060 | ||
212380e3 | 6061 | else |
7083c021 AC |
6062 | if test "$ac_cv_type_long_long" = yes; then |
6063 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6064 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
6065 | as_fn_error 77 "cannot compute sizeof (long long) |
6066 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
6067 | else |
6068 | ac_cv_sizeof_long_long=0 | |
6069 | fi | |
212380e3 | 6070 | fi |
212380e3 AC |
6071 | |
6072 | fi | |
7083c021 AC |
6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
6074 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
6075 | |
6076 | ||
6077 | ||
7083c021 AC |
6078 | cat >>confdefs.h <<_ACEOF |
6079 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6080 | _ACEOF | |
212380e3 | 6081 | |
212380e3 | 6082 | |
212380e3 | 6083 | |
7083c021 AC |
6084 | |
6085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
6086 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 6087 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
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. */ |
7083c021 AC |
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 socket (); | |
212380e3 AC |
6101 | int |
6102 | main () | |
6103 | { | |
7083c021 | 6104 | return socket (); |
212380e3 AC |
6105 | ; |
6106 | return 0; | |
6107 | } | |
6108 | _ACEOF | |
7083c021 AC |
6109 | for ac_lib in '' socket; 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_socket=$ac_res | |
6118 | fi | |
6119 | rm -f core conftest.err conftest.$ac_objext \ | |
6120 | conftest$ac_exeext | |
b6d0720c | 6121 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
6122 | break |
6123 | fi | |
6124 | done | |
b6d0720c | 6125 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
6126 | |
6127 | else | |
7083c021 AC |
6128 | ac_cv_search_socket=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_socket" >&5 | |
6134 | $as_echo "$ac_cv_search_socket" >&6; } | |
6135 | ac_res=$ac_cv_search_socket | |
6136 | if test "$ac_res" != no; then : | |
6137 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6138 | |
7083c021 | 6139 | else |
b6d0720c | 6140 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 6141 | fi |
631ef239 | 6142 | |
212380e3 | 6143 | |
7083c021 AC |
6144 | if test x"$SUN" = xyes; then |
6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
6146 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 6147 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
6148 | $as_echo_n "(cached) " >&6 |
6149 | else | |
6150 | ac_func_search_save_LIBS=$LIBS | |
6151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6152 | /* end confdefs.h. */ |
7083c021 AC |
6153 | |
6154 | /* Override any GCC internal prototype to avoid an error. | |
6155 | Use char because int might match the return type of a GCC | |
6156 | builtin and then its argument prototype would still apply. */ | |
6157 | #ifdef __cplusplus | |
6158 | extern "C" | |
6159 | #endif | |
6160 | char inet_ntoa (); | |
212380e3 AC |
6161 | int |
6162 | main () | |
6163 | { | |
7083c021 | 6164 | return inet_ntoa (); |
212380e3 AC |
6165 | ; |
6166 | return 0; | |
6167 | } | |
6168 | _ACEOF | |
7083c021 AC |
6169 | for ac_lib in '' nsl; do |
6170 | if test -z "$ac_lib"; then | |
6171 | ac_res="none required" | |
6172 | else | |
6173 | ac_res=-l$ac_lib | |
6174 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6175 | fi | |
6176 | if ac_fn_c_try_link "$LINENO"; then : | |
6177 | ac_cv_search_inet_ntoa=$ac_res | |
6178 | fi | |
6179 | rm -f core conftest.err conftest.$ac_objext \ | |
6180 | conftest$ac_exeext | |
b6d0720c | 6181 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
6182 | break |
6183 | fi | |
6184 | done | |
b6d0720c | 6185 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
6186 | |
6187 | else | |
7083c021 AC |
6188 | ac_cv_search_inet_ntoa=no |
6189 | fi | |
6190 | rm conftest.$ac_ext | |
6191 | LIBS=$ac_func_search_save_LIBS | |
6192 | fi | |
6193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
6194 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
6195 | ac_res=$ac_cv_search_inet_ntoa | |
6196 | if test "$ac_res" != no; then : | |
6197 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6198 | |
7083c021 | 6199 | else |
b6d0720c | 6200 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 6201 | fi |
631ef239 | 6202 | |
7083c021 | 6203 | fi |
212380e3 | 6204 | |
7083c021 AC |
6205 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
6206 | #include <sys/socket.h> | |
6207 | " | |
b6d0720c | 6208 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
6209 | |
6210 | else | |
6211 | ||
7083c021 | 6212 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 6213 | |
7083c021 | 6214 | fi |
212380e3 AC |
6215 | |
6216 | ||
7083c021 AC |
6217 | # Check whether --enable-ipv6 was given. |
6218 | if test "${enable_ipv6+set}" = set; then : | |
6219 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 6220 | else |
7083c021 AC |
6221 | ipv6=no |
6222 | fi | |
212380e3 | 6223 | |
212380e3 | 6224 | |
7083c021 AC |
6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
6226 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 6227 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
6228 | $as_echo_n "(cached) " >&6 |
6229 | else | |
6230 | ac_func_search_save_LIBS=$LIBS | |
6231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6232 | /* end confdefs.h. */ | |
212380e3 | 6233 | |
631ef239 AC |
6234 | /* Override any GCC internal prototype to avoid an error. |
6235 | Use char because int might match the return type of a GCC | |
6236 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6237 | #ifdef __cplusplus |
6238 | extern "C" | |
212380e3 | 6239 | #endif |
7083c021 | 6240 | char crypt (); |
212380e3 AC |
6241 | int |
6242 | main () | |
6243 | { | |
7083c021 | 6244 | return crypt (); |
212380e3 AC |
6245 | ; |
6246 | return 0; | |
6247 | } | |
6248 | _ACEOF | |
7083c021 AC |
6249 | for ac_lib in '' crypt descrypt; do |
6250 | if test -z "$ac_lib"; then | |
6251 | ac_res="none required" | |
6252 | else | |
6253 | ac_res=-l$ac_lib | |
6254 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6255 | fi | |
6256 | if ac_fn_c_try_link "$LINENO"; then : | |
6257 | ac_cv_search_crypt=$ac_res | |
6258 | fi | |
6259 | rm -f core conftest.err conftest.$ac_objext \ | |
6260 | conftest$ac_exeext | |
b6d0720c | 6261 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
6262 | break |
6263 | fi | |
6264 | done | |
b6d0720c | 6265 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 6266 | |
212380e3 | 6267 | else |
7083c021 AC |
6268 | ac_cv_search_crypt=no |
6269 | fi | |
6270 | rm conftest.$ac_ext | |
6271 | LIBS=$ac_func_search_save_LIBS | |
6272 | fi | |
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
6274 | $as_echo "$ac_cv_search_crypt" >&6; } | |
6275 | ac_res=$ac_cv_search_crypt | |
6276 | if test "$ac_res" != no; then : | |
6277 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6278 | |
212380e3 | 6279 | fi |
631ef239 | 6280 | |
7083c021 AC |
6281 | |
6282 | CRYPT_LIB=$ac_cv_search_crypt | |
6283 | ||
6284 | if test "$CRYPT_LIB" = "none required"; then | |
6285 | unset CRYPT_LIB | |
6286 | elif test "$CRYPT_LIB" = no; then | |
6287 | unset CRYPT_LIB | |
212380e3 | 6288 | fi |
7083c021 AC |
6289 | |
6290 | ||
6291 | ||
6292 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
6293 | VICONF=viconf | |
6294 | else | |
6295 | VICONF="" | |
6296 | fi | |
6297 | ||
6298 | ||
6299 | ||
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
6301 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
b6d0720c | 6302 | if ${gcc_cv_header_string+:} false; then : |
7083c021 AC |
6303 | $as_echo_n "(cached) " >&6 |
6304 | else | |
6305 | ||
6306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6307 | /* end confdefs.h. */ | |
6308 | #include <string.h> | |
6309 | #include <strings.h> | |
212380e3 | 6310 | _ACEOF |
7083c021 AC |
6311 | if ac_fn_c_try_compile "$LINENO"; then : |
6312 | gcc_cv_header_string=yes | |
6313 | else | |
6314 | gcc_cv_header_string=no | |
6315 | fi | |
6316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6317 | |
6318 | fi | |
7083c021 AC |
6319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
6320 | $as_echo "$gcc_cv_header_string" >&6; } | |
212380e3 | 6321 | |
7083c021 AC |
6322 | if test "$gcc_cv_header_string" = "yes"; then |
6323 | ||
6324 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
6325 | ||
6326 | fi | |
212380e3 | 6327 | |
7083c021 AC |
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
6329 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 6330 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
6331 | $as_echo_n "(cached) " >&6 |
6332 | else | |
6333 | ac_cv_c_bigendian=unknown | |
6334 | # See if we're dealing with a universal compiler. | |
6335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6336 | /* end confdefs.h. */ | |
6337 | #ifndef __APPLE_CC__ | |
6338 | not a universal capable compiler | |
6339 | #endif | |
6340 | typedef int dummy; | |
6341 | ||
6342 | _ACEOF | |
6343 | if ac_fn_c_try_compile "$LINENO"; then : | |
6344 | ||
6345 | # Check for potential -arch flags. It is not universal unless | |
6346 | # there are at least two -arch flags with different values. | |
6347 | ac_arch= | |
6348 | ac_prev= | |
6349 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6350 | if test -n "$ac_prev"; then | |
6351 | case $ac_word in | |
6352 | i?86 | x86_64 | ppc | ppc64) | |
6353 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6354 | ac_arch=$ac_word | |
6355 | else | |
6356 | ac_cv_c_bigendian=universal | |
6357 | break | |
6358 | fi | |
6359 | ;; | |
6360 | esac | |
6361 | ac_prev= | |
6362 | elif test "x$ac_word" = "x-arch"; then | |
6363 | ac_prev=arch | |
6364 | fi | |
6365 | done | |
212380e3 | 6366 | fi |
7083c021 AC |
6367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6368 | if test $ac_cv_c_bigendian = unknown; then | |
6369 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6371 | /* end confdefs.h. */ | |
6372 | #include <sys/types.h> | |
6373 | #include <sys/param.h> | |
6374 | ||
6375 | int | |
6376 | main () | |
6377 | { | |
6378 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
6379 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6380 | && LITTLE_ENDIAN) | |
6381 | bogus endian macros | |
6382 | #endif | |
6383 | ||
6384 | ; | |
6385 | return 0; | |
6386 | } | |
6387 | _ACEOF | |
6388 | if ac_fn_c_try_compile "$LINENO"; then : | |
6389 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6391 | /* end confdefs.h. */ | |
6392 | #include <sys/types.h> | |
6393 | #include <sys/param.h> | |
6394 | ||
6395 | int | |
6396 | main () | |
6397 | { | |
6398 | #if BYTE_ORDER != BIG_ENDIAN | |
6399 | not big endian | |
6400 | #endif | |
212380e3 | 6401 | |
7083c021 AC |
6402 | ; |
6403 | return 0; | |
6404 | } | |
6405 | _ACEOF | |
6406 | if ac_fn_c_try_compile "$LINENO"; then : | |
6407 | ac_cv_c_bigendian=yes | |
212380e3 | 6408 | else |
7083c021 AC |
6409 | ac_cv_c_bigendian=no |
6410 | fi | |
6411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6412 | fi | |
6413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6414 | fi | |
6415 | if test $ac_cv_c_bigendian = unknown; then | |
6416 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6418 | /* end confdefs.h. */ | |
6419 | #include <limits.h> | |
6420 | ||
6421 | int | |
6422 | main () | |
6423 | { | |
6424 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6425 | bogus endian macros | |
6426 | #endif | |
6427 | ||
6428 | ; | |
6429 | return 0; | |
6430 | } | |
212380e3 | 6431 | _ACEOF |
7083c021 AC |
6432 | if ac_fn_c_try_compile "$LINENO"; then : |
6433 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6435 | /* end confdefs.h. */ |
7083c021 AC |
6436 | #include <limits.h> |
6437 | ||
212380e3 AC |
6438 | int |
6439 | main () | |
6440 | { | |
7083c021 AC |
6441 | #ifndef _BIG_ENDIAN |
6442 | not big endian | |
6443 | #endif | |
6444 | ||
212380e3 AC |
6445 | ; |
6446 | return 0; | |
6447 | } | |
6448 | _ACEOF | |
7083c021 AC |
6449 | if ac_fn_c_try_compile "$LINENO"; then : |
6450 | ac_cv_c_bigendian=yes | |
212380e3 | 6451 | else |
7083c021 | 6452 | ac_cv_c_bigendian=no |
212380e3 | 6453 | fi |
631ef239 | 6454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6455 | fi |
7083c021 AC |
6456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6457 | fi | |
6458 | if test $ac_cv_c_bigendian = unknown; then | |
6459 | # Compile a test program. | |
6460 | if test "$cross_compiling" = yes; then : | |
6461 | # Try to guess by grepping values from an object file. | |
6462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6463 | /* end confdefs.h. */ | |
6464 | short int ascii_mm[] = | |
6465 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6466 | short int ascii_ii[] = | |
6467 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6468 | int use_ascii (int i) { | |
6469 | return ascii_mm[i] + ascii_ii[i]; | |
6470 | } | |
6471 | short int ebcdic_ii[] = | |
6472 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6473 | short int ebcdic_mm[] = | |
6474 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6475 | int use_ebcdic (int i) { | |
6476 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6477 | } | |
6478 | extern int foo; | |
212380e3 | 6479 | |
7083c021 AC |
6480 | int |
6481 | main () | |
6482 | { | |
6483 | return use_ascii (foo) == use_ebcdic (foo); | |
6484 | ; | |
6485 | return 0; | |
6486 | } | |
212380e3 | 6487 | _ACEOF |
7083c021 AC |
6488 | if ac_fn_c_try_compile "$LINENO"; then : |
6489 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6490 | ac_cv_c_bigendian=yes | |
6491 | fi | |
6492 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6493 | if test "$ac_cv_c_bigendian" = unknown; then | |
6494 | ac_cv_c_bigendian=no | |
6495 | else | |
6496 | # finding both strings is unlikely to happen, but who knows? | |
6497 | ac_cv_c_bigendian=unknown | |
6498 | fi | |
6499 | fi | |
6500 | fi | |
6501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6502 | else | |
6503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
6504 | /* end confdefs.h. */ |
6505 | $ac_includes_default | |
6506 | int | |
6507 | main () | |
6508 | { | |
7083c021 AC |
6509 | |
6510 | /* Are we little or big endian? From Harbison&Steele. */ | |
6511 | union | |
6512 | { | |
6513 | long int l; | |
6514 | char c[sizeof (long int)]; | |
6515 | } u; | |
6516 | u.l = 1; | |
6517 | return u.c[sizeof (long int) - 1] == 1; | |
6518 | ||
212380e3 AC |
6519 | ; |
6520 | return 0; | |
6521 | } | |
6522 | _ACEOF | |
7083c021 AC |
6523 | if ac_fn_c_try_run "$LINENO"; then : |
6524 | ac_cv_c_bigendian=no | |
212380e3 | 6525 | else |
7083c021 | 6526 | ac_cv_c_bigendian=yes |
212380e3 | 6527 | fi |
7083c021 AC |
6528 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6529 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6530 | fi |
212380e3 | 6531 | |
7083c021 AC |
6532 | fi |
6533 | fi | |
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6535 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6536 | case $ac_cv_c_bigendian in #( | |
6537 | yes) | |
6538 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6539 | ;; #( | |
6540 | no) | |
6541 | ;; #( | |
6542 | universal) | |
212380e3 | 6543 | |
7083c021 | 6544 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 6545 | |
7083c021 AC |
6546 | ;; #( |
6547 | *) | |
b6d0720c | 6548 | as_fn_error $? "unknown endianness |
7083c021 AC |
6549 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
6550 | esac | |
212380e3 | 6551 | |
212380e3 | 6552 | |
7083c021 | 6553 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 6554 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 6555 | |
7083c021 | 6556 | else |
b6d0720c | 6557 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 6558 | fi |
212380e3 AC |
6559 | |
6560 | ||
212380e3 AC |
6561 | |
6562 | ||
7083c021 | 6563 | if test "$ac_cv_c_compiler_gnu" = yes; then |
212380e3 | 6564 | |
7083c021 AC |
6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5 |
6566 | $as_echo_n "checking for strlcpy... " >&6; } | |
6567 | save_CFLAGS=$CFLAGS | |
6568 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
212380e3 | 6569 | |
7083c021 | 6570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6571 | /* end confdefs.h. */ |
7083c021 AC |
6572 | #include <string.h> |
6573 | #include <stdlib.h> | |
212380e3 AC |
6574 | int |
6575 | main () | |
6576 | { | |
7083c021 AC |
6577 | char *a = malloc(6); |
6578 | strlcpy(a, "hello", 6); | |
6579 | ||
212380e3 AC |
6580 | ; |
6581 | return 0; | |
6582 | } | |
6583 | _ACEOF | |
7083c021 AC |
6584 | if ac_fn_c_try_link "$LINENO"; then : |
6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6586 | $as_echo "yes" >&6; } | |
212380e3 | 6587 | |
7083c021 | 6588 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h |
631ef239 | 6589 | |
212380e3 | 6590 | else |
7083c021 AC |
6591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6592 | $as_echo "no" >&6; } | |
212380e3 | 6593 | |
7083c021 AC |
6594 | fi |
6595 | rm -f core conftest.err conftest.$ac_objext \ | |
6596 | conftest$ac_exeext conftest.$ac_ext | |
6597 | ||
6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5 | |
6599 | $as_echo_n "checking for strlcat... " >&6; } | |
6600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6601 | /* end confdefs.h. */ |
7083c021 AC |
6602 | #include <string.h> |
6603 | #include <stdlib.h> | |
212380e3 AC |
6604 | int |
6605 | main () | |
6606 | { | |
7083c021 AC |
6607 | char *a = malloc(6); |
6608 | a[0] = '\0'; | |
6609 | strlcat(a, "hello", 6); | |
6610 | ||
212380e3 AC |
6611 | ; |
6612 | return 0; | |
6613 | } | |
6614 | _ACEOF | |
7083c021 AC |
6615 | if ac_fn_c_try_link "$LINENO"; then : |
6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6617 | $as_echo "yes" >&6; } | |
631ef239 | 6618 | |
7083c021 | 6619 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h |
212380e3 | 6620 | |
7083c021 AC |
6621 | else |
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6623 | $as_echo "no" >&6; } | |
212380e3 | 6624 | |
7083c021 AC |
6625 | fi |
6626 | rm -f core conftest.err conftest.$ac_objext \ | |
6627 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6628 | |
7083c021 | 6629 | CFLAGS=$save_CFLAGS |
212380e3 AC |
6630 | |
6631 | else | |
6632 | ||
212380e3 | 6633 | |
7083c021 AC |
6634 | for ac_func in strlcat strlcpy |
6635 | do : | |
6636 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6637 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6638 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
6639 | cat >>confdefs.h <<_ACEOF |
6640 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
6641 | _ACEOF |
6642 | ||
212380e3 | 6643 | fi |
7083c021 | 6644 | done |
212380e3 AC |
6645 | |
6646 | ||
6647 | fi | |
6648 | ||
7083c021 | 6649 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 6650 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 6651 | |
212380e3 | 6652 | else |
212380e3 | 6653 | |
7083c021 | 6654 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 6655 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 6656 | |
631ef239 | 6657 | |
7083c021 | 6658 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 6659 | |
212380e3 | 6660 | |
7083c021 | 6661 | else |
212380e3 | 6662 | |
7083c021 AC |
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
6664 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 6665 | |
7083c021 | 6666 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 6667 | |
212380e3 | 6668 | |
212380e3 | 6669 | fi |
631ef239 | 6670 | |
7083c021 | 6671 | |
212380e3 | 6672 | fi |
7083c021 AC |
6673 | |
6674 | ||
6675 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 6676 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 6677 | |
212380e3 AC |
6678 | else |
6679 | ||
7083c021 | 6680 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 6681 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 6682 | |
7083c021 AC |
6683 | |
6684 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
6685 | |
6686 | ||
212380e3 | 6687 | else |
212380e3 | 6688 | |
7083c021 AC |
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
6690 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 6691 | |
7083c021 | 6692 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 6693 | |
7083c021 AC |
6694 | |
6695 | fi | |
212380e3 AC |
6696 | |
6697 | ||
6698 | fi | |
6699 | ||
6700 | ||
7083c021 AC |
6701 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
6702 | #include <netinet/in.h> | |
6703 | " | |
b6d0720c | 6704 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 6705 | |
7083c021 | 6706 | else |
212380e3 | 6707 | |
7083c021 | 6708 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 6709 | |
7083c021 | 6710 | fi |
212380e3 AC |
6711 | |
6712 | ||
7083c021 AC |
6713 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
6714 | #include <sys/socket.h> | |
6715 | " | |
b6d0720c | 6716 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 6717 | |
212380e3 | 6718 | else |
212380e3 | 6719 | |
7083c021 | 6720 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 6721 | |
7083c021 | 6722 | fi |
212380e3 | 6723 | |
212380e3 | 6724 | |
7083c021 | 6725 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 6726 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 6727 | |
7083c021 AC |
6728 | cat >>confdefs.h <<_ACEOF |
6729 | #define HAVE_UINTPTR_T 1 | |
6730 | _ACEOF | |
212380e3 | 6731 | |
631ef239 | 6732 | |
212380e3 | 6733 | fi |
7083c021 AC |
6734 | |
6735 | ||
6736 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
6737 | do : | |
6738 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6739 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6740 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 6741 | cat >>confdefs.h <<_ACEOF |
7083c021 | 6742 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
6743 | _ACEOF |
6744 | ||
6745 | fi | |
6746 | done | |
6747 | ||
6748 | ||
6749 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6750 | # for constant arguments. Useless! | |
7083c021 AC |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
6752 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 6753 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 6754 | $as_echo_n "(cached) " >&6 |
212380e3 | 6755 | else |
7083c021 | 6756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6757 | /* end confdefs.h. */ |
6758 | #include <alloca.h> | |
6759 | int | |
6760 | main () | |
6761 | { | |
6762 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 6763 | if (p) return 0; |
212380e3 AC |
6764 | ; |
6765 | return 0; | |
6766 | } | |
6767 | _ACEOF | |
7083c021 | 6768 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6769 | ac_cv_working_alloca_h=yes |
6770 | else | |
7083c021 | 6771 | ac_cv_working_alloca_h=no |
212380e3 | 6772 | fi |
7083c021 AC |
6773 | rm -f core conftest.err conftest.$ac_objext \ |
6774 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6775 | fi |
7083c021 AC |
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
6777 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
6778 | if test $ac_cv_working_alloca_h = yes; then |
6779 | ||
7083c021 | 6780 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
6781 | |
6782 | fi | |
6783 | ||
7083c021 AC |
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
6785 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 6786 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 6787 | $as_echo_n "(cached) " >&6 |
212380e3 | 6788 | else |
7083c021 | 6789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6790 | /* end confdefs.h. */ |
6791 | #ifdef __GNUC__ | |
6792 | # define alloca __builtin_alloca | |
6793 | #else | |
6794 | # ifdef _MSC_VER | |
6795 | # include <malloc.h> | |
6796 | # define alloca _alloca | |
6797 | # else | |
631ef239 | 6798 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
6799 | # include <alloca.h> |
6800 | # else | |
6801 | # ifdef _AIX | |
6802 | #pragma alloca | |
6803 | # else | |
6804 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 6805 | void *alloca (size_t); |
212380e3 AC |
6806 | # endif |
6807 | # endif | |
6808 | # endif | |
6809 | # endif | |
6810 | #endif | |
6811 | ||
6812 | int | |
6813 | main () | |
6814 | { | |
6815 | char *p = (char *) alloca (1); | |
631ef239 | 6816 | if (p) return 0; |
212380e3 AC |
6817 | ; |
6818 | return 0; | |
6819 | } | |
6820 | _ACEOF | |
7083c021 | 6821 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6822 | ac_cv_func_alloca_works=yes |
6823 | else | |
7083c021 | 6824 | ac_cv_func_alloca_works=no |
212380e3 | 6825 | fi |
7083c021 AC |
6826 | rm -f core conftest.err conftest.$ac_objext \ |
6827 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6828 | fi |
7083c021 AC |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
6830 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
6831 | |
6832 | if test $ac_cv_func_alloca_works = yes; then | |
6833 | ||
7083c021 | 6834 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
6835 | |
6836 | else | |
6837 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6838 | # that cause trouble. Some versions do not even contain alloca or | |
6839 | # contain a buggy version. If you still want to use their alloca, | |
6840 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6841 | ||
631ef239 | 6842 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 6843 | |
7083c021 | 6844 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
6845 | |
6846 | ||
7083c021 AC |
6847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
6848 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 6849 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 6850 | $as_echo_n "(cached) " >&6 |
212380e3 | 6851 | else |
7083c021 | 6852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6853 | /* end confdefs.h. */ |
631ef239 | 6854 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
6855 | webecray |
6856 | #else | |
6857 | wenotbecray | |
6858 | #endif | |
6859 | ||
6860 | _ACEOF | |
6861 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 6862 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
6863 | ac_cv_os_cray=yes |
6864 | else | |
6865 | ac_cv_os_cray=no | |
6866 | fi | |
6867 | rm -f conftest* | |
6868 | ||
6869 | fi | |
7083c021 AC |
6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
6871 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
6872 | if test $ac_cv_os_cray = yes; then |
6873 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
6874 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6875 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6876 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
6877 | |
6878 | cat >>confdefs.h <<_ACEOF | |
6879 | #define CRAY_STACKSEG_END $ac_func | |
6880 | _ACEOF | |
6881 | ||
6882 | break | |
6883 | fi | |
6884 | ||
6885 | done | |
6886 | fi | |
6887 | ||
7083c021 AC |
6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
6889 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 6890 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 6891 | $as_echo_n "(cached) " >&6 |
212380e3 | 6892 | else |
7083c021 | 6893 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
6894 | ac_cv_c_stack_direction=0 |
6895 | else | |
7083c021 | 6896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6897 | /* end confdefs.h. */ |
631ef239 | 6898 | $ac_includes_default |
212380e3 | 6899 | int |
2eff3833 | 6900 | find_stack_direction (int *addr, int depth) |
212380e3 | 6901 | { |
2eff3833 JT |
6902 | int dir, dummy = 0; |
6903 | if (! addr) | |
6904 | addr = &dummy; | |
6905 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
6906 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
6907 | return dir + dummy; | |
212380e3 AC |
6908 | } |
6909 | ||
6910 | int | |
2eff3833 | 6911 | main (int argc, char **argv) |
212380e3 | 6912 | { |
2eff3833 | 6913 | return find_stack_direction (0, argc + !argv + 20) < 0; |
212380e3 AC |
6914 | } |
6915 | _ACEOF | |
7083c021 | 6916 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
6917 | ac_cv_c_stack_direction=1 |
6918 | else | |
7083c021 | 6919 | ac_cv_c_stack_direction=-1 |
212380e3 | 6920 | fi |
7083c021 AC |
6921 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6922 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6923 | fi |
631ef239 | 6924 | |
212380e3 | 6925 | fi |
7083c021 AC |
6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
6927 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
6928 | cat >>confdefs.h <<_ACEOF |
6929 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6930 | _ACEOF | |
6931 | ||
6932 | ||
6933 | fi | |
6934 | ||
6935 | ||
6936 | ||
7083c021 | 6937 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 6938 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 6939 | |
212380e3 | 6940 | else |
7083c021 AC |
6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
6942 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 6943 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 6944 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
6945 | else |
6946 | ac_check_lib_save_LIBS=$LIBS | |
6947 | LIBS="-lrt $LIBS" | |
7083c021 | 6948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6949 | /* end confdefs.h. */ |
6950 | ||
631ef239 AC |
6951 | /* Override any GCC internal prototype to avoid an error. |
6952 | Use char because int might match the return type of a GCC | |
6953 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6954 | #ifdef __cplusplus |
6955 | extern "C" | |
6956 | #endif | |
212380e3 AC |
6957 | char nanosleep (); |
6958 | int | |
6959 | main () | |
6960 | { | |
631ef239 | 6961 | return nanosleep (); |
212380e3 AC |
6962 | ; |
6963 | return 0; | |
6964 | } | |
6965 | _ACEOF | |
7083c021 | 6966 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6967 | ac_cv_lib_rt_nanosleep=yes |
6968 | else | |
7083c021 | 6969 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 6970 | fi |
7083c021 AC |
6971 | rm -f core conftest.err conftest.$ac_objext \ |
6972 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
6973 | LIBS=$ac_check_lib_save_LIBS |
6974 | fi | |
7083c021 AC |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
6976 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 6977 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
6978 | LIBS="${LIBS} -lrt" |
6979 | else | |
7083c021 AC |
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
6981 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 6982 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 6983 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
6984 | else |
6985 | ac_check_lib_save_LIBS=$LIBS | |
6986 | LIBS="-lposix4 $LIBS" | |
7083c021 | 6987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6988 | /* end confdefs.h. */ |
6989 | ||
631ef239 AC |
6990 | /* Override any GCC internal prototype to avoid an error. |
6991 | Use char because int might match the return type of a GCC | |
6992 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6993 | #ifdef __cplusplus |
6994 | extern "C" | |
6995 | #endif | |
212380e3 AC |
6996 | char nanosleep (); |
6997 | int | |
6998 | main () | |
6999 | { | |
631ef239 | 7000 | return nanosleep (); |
212380e3 AC |
7001 | ; |
7002 | return 0; | |
7003 | } | |
7004 | _ACEOF | |
7083c021 | 7005 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7006 | ac_cv_lib_posix4_nanosleep=yes |
7007 | else | |
7083c021 | 7008 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 7009 | fi |
7083c021 AC |
7010 | rm -f core conftest.err conftest.$ac_objext \ |
7011 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7012 | LIBS=$ac_check_lib_save_LIBS |
7013 | fi | |
7083c021 AC |
7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
7015 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 7016 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
7017 | LIBS="${LIBS} -lposix4" |
7018 | ||
7019 | fi | |
7020 | ||
7021 | fi | |
7022 | ||
7023 | fi | |
7024 | ||
7025 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
7026 | then | |
7083c021 AC |
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
7028 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
7029 | else |
7030 | ||
7083c021 | 7031 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
7032 | |
7033 | fi | |
7034 | ||
7083c021 AC |
7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
7036 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 7037 | # Check whether --enable-openssl was given. |
7083c021 | 7038 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 7039 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
7040 | else |
7041 | cf_enable_openssl="auto" | |
631ef239 AC |
7042 | fi |
7043 | ||
212380e3 AC |
7044 | |
7045 | if test "$cf_enable_openssl" != "no" ; then | |
7046 | cf_openssl_basedir="" | |
7047 | if test "$cf_enable_openssl" != "auto" && | |
7048 | test "$cf_enable_openssl" != "yes" ; then | |
7049 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
7050 | else | |
7051 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
7052 | /usr/local/openssl ; do | |
7053 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
7054 | cf_openssl_basedir="${dirs}" | |
7055 | break | |
7056 | fi | |
7057 | done | |
7058 | unset dirs | |
7059 | fi | |
7060 | if test ! -z "$cf_openssl_basedir"; then | |
7061 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
7062 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
7063 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
7064 | else | |
7065 | cf_openssl_basedir="" | |
7066 | fi | |
7067 | else | |
7068 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
7069 | cf_openssl_basedir="/usr" | |
7070 | fi | |
7071 | fi | |
7072 | ||
7073 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
7075 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
7076 | cf_enable_openssl="yes" |
7077 | else | |
7083c021 AC |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
7079 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
7080 | cf_enable_openssl="no" |
7081 | fi | |
7082 | unset cf_openssl_basedir | |
7083 | else | |
7083c021 AC |
7084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
7085 | $as_echo "disabled" >&6; } | |
212380e3 AC |
7086 | fi |
7087 | ||
7088 | save_CPPFLAGS="$CPPFLAGS" | |
7089 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
7090 | save_LIBS="$LIBS" | |
7091 | LIBS="$LIBS $SSL_LIBS" | |
7092 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
7094 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
7095 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
7096 | cf_openssl_version_ok=no |
7097 | else | |
7083c021 | 7098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7099 | /* end confdefs.h. */ |
7100 | #include <openssl/opensslv.h> | |
7101 | #include <stdlib.h> | |
7102 | int | |
7103 | main () | |
7104 | { | |
7105 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
7106 | exit(0); else exit(1); | |
7107 | ; | |
7108 | return 0; | |
7109 | } | |
7110 | _ACEOF | |
7083c021 | 7111 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
7112 | cf_openssl_version_ok=yes |
7113 | else | |
7083c021 | 7114 | cf_openssl_version_ok=no |
212380e3 | 7115 | fi |
7083c021 AC |
7116 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7117 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
7118 | fi |
7119 | ||
631ef239 | 7120 | |
212380e3 | 7121 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
7123 | $as_echo "found" >&6; } | |
212380e3 AC |
7124 | |
7125 | ENCSPEED=encspeed | |
7126 | ||
7127 | ||
7128 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
7130 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 7131 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 7132 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7133 | else |
7134 | ac_check_lib_save_LIBS=$LIBS | |
7135 | LIBS="-lcrypto $LIBS" | |
7083c021 | 7136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7137 | /* end confdefs.h. */ |
7138 | ||
631ef239 AC |
7139 | /* Override any GCC internal prototype to avoid an error. |
7140 | Use char because int might match the return type of a GCC | |
7141 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7142 | #ifdef __cplusplus |
7143 | extern "C" | |
7144 | #endif | |
212380e3 AC |
7145 | char RSA_free (); |
7146 | int | |
7147 | main () | |
7148 | { | |
631ef239 | 7149 | return RSA_free (); |
212380e3 AC |
7150 | ; |
7151 | return 0; | |
7152 | } | |
7153 | _ACEOF | |
7083c021 | 7154 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7155 | ac_cv_lib_crypto_RSA_free=yes |
7156 | else | |
7083c021 | 7157 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 7158 | fi |
7083c021 AC |
7159 | rm -f core conftest.err conftest.$ac_objext \ |
7160 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7161 | LIBS=$ac_check_lib_save_LIBS |
7162 | fi | |
7083c021 AC |
7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
7164 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 7165 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
7166 | cat >>confdefs.h <<_ACEOF |
7167 | #define HAVE_LIBCRYPTO 1 | |
7168 | _ACEOF | |
7169 | ||
7170 | LIBS="-lcrypto $LIBS" | |
7171 | ||
7172 | fi | |
7173 | ||
7174 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
7175 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
7176 | else | |
7083c021 AC |
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
7178 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
7179 | fi |
7180 | fi | |
7181 | ||
7182 | CPPFLAGS="$save_CPPFLAGS" | |
7183 | LIBS="$save_LIBS" | |
7184 | ||
7185 | ||
7186 | ||
7187 | ||
7188 | ||
631ef239 | 7189 | # Check whether --with-zlib-path was given. |
7083c021 | 7190 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
7191 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
7192 | fi | |
212380e3 | 7193 | |
7083c021 AC |
7194 | |
7195 | # Check whether --enable-zlib was given. | |
7196 | if test "${enable_zlib+set}" = set; then : | |
7197 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 7198 | else |
7083c021 | 7199 | zlib=yes |
212380e3 | 7200 | fi |
212380e3 | 7201 | |
212380e3 | 7202 | |
7083c021 AC |
7203 | if test "$zlib" = yes; then |
7204 | ||
7205 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 7206 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
7207 | |
7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
7209 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 7210 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 7211 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7212 | else |
7213 | ac_check_lib_save_LIBS=$LIBS | |
7214 | LIBS="-lz $LIBS" | |
7083c021 | 7215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7216 | /* end confdefs.h. */ |
7217 | ||
631ef239 AC |
7218 | /* Override any GCC internal prototype to avoid an error. |
7219 | Use char because int might match the return type of a GCC | |
7220 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7221 | #ifdef __cplusplus |
7222 | extern "C" | |
7223 | #endif | |
212380e3 AC |
7224 | char zlibVersion (); |
7225 | int | |
7226 | main () | |
7227 | { | |
631ef239 | 7228 | return zlibVersion (); |
212380e3 AC |
7229 | ; |
7230 | return 0; | |
7231 | } | |
7232 | _ACEOF | |
7083c021 | 7233 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7234 | ac_cv_lib_z_zlibVersion=yes |
7235 | else | |
7083c021 | 7236 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 7237 | fi |
7083c021 AC |
7238 | rm -f core conftest.err conftest.$ac_objext \ |
7239 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7240 | LIBS=$ac_check_lib_save_LIBS |
7241 | fi | |
7083c021 AC |
7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
7243 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 7244 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
7245 | |
7246 | ZLIB_LD=-lz | |
7247 | ||
7248 | ||
7083c021 | 7249 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
7250 | |
7251 | ||
7252 | else | |
7253 | zlib=no | |
7254 | fi | |
7255 | ||
7256 | ||
7257 | else | |
7258 | zlib=no | |
7259 | fi | |
7260 | ||
7261 | ||
7262 | ||
497e30a0 LS |
7263 | fi |
7264 | ||
a6ef3156 LS |
7265 | |
7266 | # Check whether --with-shared-sqlite was given. | |
7267 | if test "${with_shared_sqlite+set}" = set; then : | |
7268 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
497e30a0 LS |
7269 | else |
7270 | shared_sqlite=no | |
7271 | fi | |
7272 | ||
7273 | ||
7274 | if test "$shared_sqlite" = yes; then | |
7275 | ||
cf1001a7 | 7276 | |
a5471f24 LS |
7277 | |
7278 | ||
7279 | ||
7280 | ||
7281 | ||
7282 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
7283 | if test -n "$ac_tool_prefix"; then | |
7284 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7285 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
7286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7287 | $as_echo_n "checking for $ac_word... " >&6; } | |
7288 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
7289 | $as_echo_n "(cached) " >&6 | |
7290 | else | |
7291 | case $PKG_CONFIG in | |
7292 | [\\/]* | ?:[\\/]*) | |
7293 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
7294 | ;; | |
7295 | *) | |
7296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7297 | for as_dir in $PATH | |
7298 | do | |
7299 | IFS=$as_save_IFS | |
7300 | test -z "$as_dir" && as_dir=. | |
7301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7303 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7305 | break 2 | |
7306 | fi | |
7307 | done | |
7308 | done | |
7309 | IFS=$as_save_IFS | |
7310 | ||
7311 | ;; | |
cf1001a7 | 7312 | esac |
a5471f24 LS |
7313 | fi |
7314 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
7315 | if test -n "$PKG_CONFIG"; then | |
7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7317 | $as_echo "$PKG_CONFIG" >&6; } | |
7318 | else | |
7319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7320 | $as_echo "no" >&6; } | |
7321 | fi | |
cf1001a7 | 7322 | |
497e30a0 | 7323 | |
a5471f24 LS |
7324 | fi |
7325 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7326 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7327 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7328 | set dummy pkg-config; ac_word=$2 | |
7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7330 | $as_echo_n "checking for $ac_word... " >&6; } | |
7331 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
497e30a0 LS |
7332 | $as_echo_n "(cached) " >&6 |
7333 | else | |
a5471f24 LS |
7334 | case $ac_pt_PKG_CONFIG in |
7335 | [\\/]* | ?:[\\/]*) | |
7336 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
7337 | ;; | |
7338 | *) | |
7339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7340 | for as_dir in $PATH | |
7341 | do | |
7342 | IFS=$as_save_IFS | |
7343 | test -z "$as_dir" && as_dir=. | |
7344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7346 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7348 | break 2 | |
7349 | fi | |
7350 | done | |
7351 | done | |
7352 | IFS=$as_save_IFS | |
497e30a0 | 7353 | |
a5471f24 LS |
7354 | ;; |
7355 | esac | |
7356 | fi | |
7357 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
7358 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7360 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
497e30a0 | 7361 | else |
a5471f24 LS |
7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7363 | $as_echo "no" >&6; } | |
497e30a0 | 7364 | fi |
a5471f24 LS |
7365 | |
7366 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
7367 | PKG_CONFIG="" | |
7368 | else | |
7369 | case $cross_compiling:$ac_tool_warned in | |
7370 | yes:) | |
7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7372 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7373 | ac_tool_warned=yes ;; | |
7374 | esac | |
7375 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7376 | fi | |
7377 | else | |
7378 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
497e30a0 | 7379 | fi |
497e30a0 | 7380 | |
a5471f24 LS |
7381 | fi |
7382 | if test -n "$PKG_CONFIG"; then | |
7383 | _pkg_min_version=0.9.0 | |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7385 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7386 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7388 | $as_echo "yes" >&6; } | |
7389 | else | |
7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7391 | $as_echo "no" >&6; } | |
7392 | PKG_CONFIG="" | |
7393 | fi | |
7394 | fi | |
7395 | ||
7396 | pkg_failed=no | |
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
7398 | $as_echo_n "checking for SQLITE... " >&6; } | |
497e30a0 | 7399 | |
a5471f24 LS |
7400 | if test -n "$SQLITE_CFLAGS"; then |
7401 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
7402 | elif test -n "$PKG_CONFIG"; then | |
7403 | if test -n "$PKG_CONFIG" && \ | |
7404 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
7405 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
7406 | ac_status=$? | |
7407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7408 | test $ac_status = 0; }; then | |
7409 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
7410 | test "x$?" != "x0" && pkg_failed=yes | |
497e30a0 | 7411 | else |
a5471f24 LS |
7412 | pkg_failed=yes |
7413 | fi | |
7414 | else | |
7415 | pkg_failed=untried | |
7416 | fi | |
7417 | if test -n "$SQLITE_LIBS"; then | |
7418 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
7419 | elif test -n "$PKG_CONFIG"; then | |
7420 | if test -n "$PKG_CONFIG" && \ | |
7421 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
7422 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
7423 | ac_status=$? | |
7424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7425 | test $ac_status = 0; }; then | |
7426 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
7427 | test "x$?" != "x0" && pkg_failed=yes | |
7428 | else | |
7429 | pkg_failed=yes | |
7430 | fi | |
7431 | else | |
7432 | pkg_failed=untried | |
497e30a0 LS |
7433 | fi |
7434 | ||
7435 | ||
a5471f24 LS |
7436 | |
7437 | if test $pkg_failed = yes; then | |
7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7439 | $as_echo "no" >&6; } | |
7440 | ||
7441 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7442 | _pkg_short_errors_supported=yes | |
497e30a0 | 7443 | else |
a5471f24 | 7444 | _pkg_short_errors_supported=no |
497e30a0 | 7445 | fi |
a5471f24 LS |
7446 | if test $_pkg_short_errors_supported = yes; then |
7447 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
7448 | else | |
7449 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
7450 | fi | |
7451 | # Put the nasty error message in config.log where it belongs | |
7452 | echo "$SQLITE_PKG_ERRORS" >&5 | |
497e30a0 | 7453 | |
a5471f24 LS |
7454 | shared_sqlite=no |
7455 | elif test $pkg_failed = untried; then | |
7456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7457 | $as_echo "no" >&6; } | |
7458 | shared_sqlite=no | |
7459 | else | |
7460 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
7461 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7463 | $as_echo "yes" >&6; } | |
497e30a0 | 7464 | |
a5471f24 | 7465 | shared_sqlite=yes |
497e30a0 | 7466 | |
74ab6be0 | 7467 | fi |
a5471f24 | 7468 | fi |
74ab6be0 LS |
7469 | |
7470 | if test "$shared_sqlite" = no; then | |
cf1001a7 | 7471 | SQLITE_SRC="sqlite3.c" |
212380e3 AC |
7472 | fi |
7473 | ||
a5471f24 | 7474 | SQLITE_LD="$SQLITE_LIBS" |
212380e3 | 7475 | |
a5471f24 | 7476 | SQLITE_INCLUDES="$SQLITE_CFLAGS" |
cf1001a7 LS |
7477 | |
7478 | ||
cf1001a7 LS |
7479 | |
7480 | ||
c1c5fdc4 | 7481 | # Check whether --enable-ports was given. |
7083c021 | 7482 | if test "${enable_ports+set}" = set; then : |
c1c5fdc4 AC |
7483 | enableval=$enable_ports; if test $enableval = yes; then |
7484 | SELECT_TYPE_EXPLICIT="ports" | |
7485 | else | |
7486 | use_ports=no | |
7487 | fi | |
7488 | ||
7489 | fi | |
7490 | ||
7491 | ||
631ef239 | 7492 | # Check whether --enable-poll was given. |
7083c021 | 7493 | if test "${enable_poll+set}" = set; then : |
631ef239 | 7494 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
7495 | SELECT_TYPE_EXPLICIT="poll" |
7496 | else | |
7497 | use_poll=no | |
7498 | fi | |
7499 | ||
631ef239 AC |
7500 | fi |
7501 | ||
212380e3 | 7502 | |
631ef239 | 7503 | # Check whether --enable-select was given. |
7083c021 | 7504 | if test "${enable_select+set}" = set; then : |
631ef239 | 7505 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
7506 | SELECT_TYPE_EXPLICIT="select" |
7507 | else | |
7508 | use_select=no | |
7509 | fi | |
7510 | ||
631ef239 AC |
7511 | fi |
7512 | ||
212380e3 | 7513 | |
631ef239 | 7514 | # Check whether --enable-kqueue was given. |
7083c021 | 7515 | if test "${enable_kqueue+set}" = set; then : |
631ef239 | 7516 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
7517 | SELECT_TYPE_EXPLICIT="kqueue" |
7518 | else | |
7519 | use_kqueue=no | |
7520 | fi | |
7521 | ||
631ef239 AC |
7522 | fi |
7523 | ||
212380e3 | 7524 | |
631ef239 | 7525 | # Check whether --enable-epoll was given. |
7083c021 | 7526 | if test "${enable_epoll+set}" = set; then : |
631ef239 | 7527 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 7528 | SELECT_TYPE_EXPLICIT="epoll" |
7083c021 AC |
7529 | for ac_func in epoll_ctl |
7530 | do : | |
7531 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 7532 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
3ad1a781 | 7533 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7534 | #define HAVE_EPOLL_CTL 1 |
3ad1a781 JT |
7535 | _ACEOF |
7536 | haveepoll=yes | |
7537 | else | |
7538 | haveepoll=no | |
7539 | fi | |
7540 | done | |
7541 | ||
212380e3 AC |
7542 | else |
7543 | use_epoll=no | |
7544 | fi | |
7545 | ||
631ef239 AC |
7546 | fi |
7547 | ||
212380e3 AC |
7548 | |
7549 | ||
212380e3 | 7550 | |
631ef239 | 7551 | # Check whether --with-confdir was given. |
7083c021 | 7552 | if test "${with_confdir+set}" = set; then : |
634d4aad | 7553 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` |
212380e3 | 7554 | else |
9f9b7042 | 7555 | confdir='${sysconfdir}' |
634d4aad NPB |
7556 | fi |
7557 | ||
212380e3 AC |
7558 | |
7559 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7560 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
634d4aad | 7561 | last_ac_define_dir=`eval echo $sysconfdir` |
9f9b7042 | 7562 | ac_define_dir=`eval echo $last_ac_define_dir` |
422cf3bb | 7563 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7564 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7565 | last_ac_define_dir="$ac_define_dir" | |
7566 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7567 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7568 | if test "x$ac_define_dir_counter" = x128; then : | |
7569 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
7570 | break | |
7571 | fi | |
9f9b7042 | 7572 | done |
212380e3 AC |
7573 | ETC_DIR="$ac_define_dir" |
7574 | ||
7575 | ||
7576 | cat >>confdefs.h <<_ACEOF | |
7577 | #define ETC_DIR "$ac_define_dir" | |
7578 | _ACEOF | |
7579 | ||
7580 | ||
7581 | ||
7582 | ||
7083c021 AC |
7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
7584 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 7585 | |
631ef239 | 7586 | # Check whether --with-logdir was given. |
7083c021 | 7587 | if test "${with_logdir+set}" = set; then : |
631ef239 | 7588 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7590 | $as_echo "yes" >&6; } | |
212380e3 | 7591 | else |
9f9b7042 NPB |
7592 | if test "x$enable_fhs_paths" = "xyes"; then : |
7593 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
7594 | else | |
7595 | logdir='${prefix}/logs' | |
7596 | fi | |
7083c021 AC |
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7598 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
7599 | fi |
7600 | ||
212380e3 AC |
7601 | |
7602 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7603 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
7604 | last_ac_define_dir=`eval echo $logdir` |
7605 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 7606 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7607 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7608 | last_ac_define_dir="$ac_define_dir" | |
7609 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7610 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7611 | if test "x$ac_define_dir_counter" = x128; then : | |
7612 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
7613 | break | |
7614 | fi | |
9f9b7042 | 7615 | done |
212380e3 AC |
7616 | LOG_DIR="$ac_define_dir" |
7617 | ||
7618 | ||
7619 | cat >>confdefs.h <<_ACEOF | |
7620 | #define LOG_DIR "$ac_define_dir" | |
7621 | _ACEOF | |
7622 | ||
7623 | ||
7624 | ||
7625 | ||
7626 | logdir=`( | |
7627 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7628 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7629 | eval echo \""$logdir"\" | |
7630 | )` | |
7631 | ||
7632 | ||
7633 | ||
212380e3 | 7634 | |
7083c021 AC |
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
7636 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 7637 | |
631ef239 | 7638 | # Check whether --with-helpdir was given. |
7083c021 | 7639 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 7640 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7642 | $as_echo "yes" >&6; } | |
212380e3 | 7643 | else |
9f9b7042 NPB |
7644 | if test "x$enable_fhs_paths" = "xyes"; then : |
7645 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
7646 | else | |
7647 | helpdir='${prefix}/help' | |
7648 | fi | |
7083c021 AC |
7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7650 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
7651 | fi |
7652 | ||
212380e3 AC |
7653 | |
7654 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7655 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
7656 | last_ac_define_dir=`eval echo $helpdir` |
7657 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 7658 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7659 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7660 | last_ac_define_dir="$ac_define_dir" | |
7661 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7662 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7663 | if test "x$ac_define_dir_counter" = x128; then : | |
7664 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
7665 | break | |
7666 | fi | |
9f9b7042 | 7667 | done |
212380e3 AC |
7668 | HELP_DIR="$ac_define_dir" |
7669 | ||
7670 | ||
7671 | cat >>confdefs.h <<_ACEOF | |
7672 | #define HELP_DIR "$ac_define_dir" | |
7673 | _ACEOF | |
7674 | ||
7675 | ||
7676 | ||
7677 | ||
7678 | helpdir=`( | |
7679 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7680 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7681 | eval echo \""$helpdir"\" | |
7682 | )` | |
7683 | ||
7684 | ||
7685 | ||
212380e3 | 7686 | |
7083c021 AC |
7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
7688 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 7689 | |
631ef239 | 7690 | # Check whether --with-moduledir was given. |
7083c021 | 7691 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 7692 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7694 | $as_echo "yes" >&6; } | |
9f9b7042 NPB |
7695 | else |
7696 | if test "x$enable_fhs_paths" = "xyes"; then : | |
7697 | moduledir='${pkglibdir}/modules' | |
7698 | else | |
7699 | moduledir='${prefix}/modules' | |
7700 | fi | |
7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7702 | $as_echo "no" >&6; } | |
7703 | ||
7704 | fi | |
7705 | ||
212380e3 AC |
7706 | |
7707 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7708 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
7709 | last_ac_define_dir=`eval echo $moduledir` |
7710 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 7711 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7712 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7713 | last_ac_define_dir="$ac_define_dir" | |
7714 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7715 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7716 | if test "x$ac_define_dir_counter" = x128; then : | |
7717 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
7718 | break | |
7719 | fi | |
9f9b7042 | 7720 | done |
212380e3 AC |
7721 | MODULE_DIR="$ac_define_dir" |
7722 | ||
7723 | ||
7724 | cat >>confdefs.h <<_ACEOF | |
7725 | #define MODULE_DIR "$ac_define_dir" | |
7726 | _ACEOF | |
7727 | ||
7728 | ||
7729 | ||
7730 | ||
7731 | moduledir=`( | |
7732 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7733 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7734 | eval echo \""$moduledir"\" | |
7735 | )` | |
7736 | ||
7737 | ||
9f9b7042 NPB |
7738 | |
7739 | ||
7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
7741 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
7742 | ||
7743 | # Check whether --with-rundir was given. | |
7744 | if test "${with_rundir+set}" = set; then : | |
7745 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7746 | $as_echo "yes" >&6; } | |
7747 | rundir=`echo $withval | sed 's/\/$//'` | |
212380e3 | 7748 | else |
9f9b7042 | 7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7083c021 | 7750 | $as_echo "no" >&6; } |
9f9b7042 NPB |
7751 | if test "x$enable_fhs_paths" = "xyes"; then : |
7752 | rundir='${prefix}/run' | |
7753 | else | |
7754 | rundir='${sysconfdir}' | |
7755 | fi | |
7756 | fi | |
7757 | ||
7758 | ||
212380e3 AC |
7759 | |
7760 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7761 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
7762 | last_ac_define_dir=`eval echo $pkgrundir` |
7763 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 7764 | ac_define_dir_counter=0 |
9f9b7042 NPB |
7765 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
7766 | last_ac_define_dir="$ac_define_dir" | |
7767 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
7768 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
7769 | if test "x$ac_define_dir_counter" = x128; then : | |
7770 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
7771 | break | |
7772 | fi | |
9f9b7042 NPB |
7773 | done |
7774 | PKGRUNDIR="$ac_define_dir" | |
212380e3 AC |
7775 | |
7776 | ||
7777 | cat >>confdefs.h <<_ACEOF | |
9f9b7042 | 7778 | #define PKGRUNDIR "$ac_define_dir" |
212380e3 AC |
7779 | _ACEOF |
7780 | ||
7781 | ||
7782 | ||
9f9b7042 NPB |
7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 |
7784 | $as_echo_n "checking for program prefix... " >&6; } | |
212380e3 | 7785 | |
9f9b7042 NPB |
7786 | # Check whether --with-program-prefix was given. |
7787 | if test "${with_program_prefix+set}" = set; then : | |
7788 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
7789 | else | |
7790 | with_program_prefix= | |
7791 | fi | |
212380e3 | 7792 | |
9f9b7042 NPB |
7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 |
7794 | $as_echo "\"$with_program_prefix\"" >&6; } | |
7795 | PROGRAM_PREFIX="$with_program_prefix" | |
212380e3 AC |
7796 | |
7797 | ||
9f9b7042 NPB |
7798 | cat >>confdefs.h <<_ACEOF |
7799 | #define PROGRAM_PREFIX "$with_program_prefix" | |
7800 | _ACEOF | |
631ef239 | 7801 | |
7083c021 | 7802 | |
b6d0720c AC |
7803 | |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
7805 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
7806 | ||
7807 | # Check whether --with-custom-branding was given. | |
7808 | if test "${with_custom_branding+set}" = set; then : | |
7809 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7811 | $as_echo "yes" >&6; } | |
7812 | else | |
7813 | BRANDING_NAME=$PACKAGE_NAME | |
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7815 | $as_echo "no" >&6; } | |
7816 | ||
7817 | fi | |
7818 | ||
7819 | ||
7820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
7821 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
7822 | ||
7823 | # Check whether --with-custom-version was given. | |
7824 | if test "${with_custom_version+set}" = set; then : | |
7825 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7827 | $as_echo "yes" >&6; } | |
7828 | else | |
7829 | BRANDING_VERSION=$PACKAGE_VERSION | |
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7831 | $as_echo "no" >&6; } | |
7832 | ||
7833 | fi | |
7834 | ||
7835 | ||
7836 | ||
7837 | cat >>confdefs.h <<_ACEOF | |
7838 | #define BRANDING_NAME "$BRANDING_NAME" | |
7839 | _ACEOF | |
7840 | ||
7841 | ||
7842 | cat >>confdefs.h <<_ACEOF | |
7843 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
7844 | _ACEOF | |
7845 | ||
7846 | ||
f5493691 AC |
7847 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
7848 | ||
7849 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
7850 | ||
7851 | fi | |
7852 | ||
7083c021 AC |
7853 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then |
7854 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
7855 | echo "Forcing $SELECT_TYPE to be enabled" | |
7856 | else | |
7857 | ||
7858 | if test ! "x$use_ports" = "xno"; then | |
7859 | for ac_func in port_getn | |
7860 | do : | |
7861 | ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn" | |
b6d0720c | 7862 | if test "x$ac_cv_func_port_getn" = xyes; then : |
212380e3 | 7863 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7864 | #define HAVE_PORT_GETN 1 |
212380e3 | 7865 | _ACEOF |
7083c021 | 7866 | haveports=yes |
212380e3 | 7867 | else |
7083c021 | 7868 | haveports=no |
212380e3 AC |
7869 | fi |
7870 | done | |
7871 | ||
7083c021 AC |
7872 | if test "x$haveports" = "xyes" ; then |
7873 | SELECT_TYPE="ports" | |
212380e3 AC |
7874 | fi |
7875 | fi | |
7876 | ||
7083c021 AC |
7877 | if test ! "x$use_select" = "xno"; then |
7878 | for ac_func in select | |
7879 | do : | |
7880 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" | |
b6d0720c | 7881 | if test "x$ac_cv_func_select" = xyes; then : |
7083c021 AC |
7882 | cat >>confdefs.h <<_ACEOF |
7883 | #define HAVE_SELECT 1 | |
212380e3 | 7884 | _ACEOF |
7083c021 AC |
7885 | haveselect=yes |
7886 | else | |
7887 | haveselect=no | |
7888 | fi | |
7889 | done | |
212380e3 | 7890 | |
7083c021 AC |
7891 | if test "x$haveselect" = "xyes" ; then |
7892 | SELECT_TYPE="select" | |
7893 | fi | |
7894 | fi | |
212380e3 | 7895 | |
7083c021 AC |
7896 | if test ! "x$use_poll" = "xno"; then |
7897 | for ac_func in poll | |
7898 | do : | |
7899 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
b6d0720c | 7900 | if test "x$ac_cv_func_poll" = xyes; then : |
7083c021 AC |
7901 | cat >>confdefs.h <<_ACEOF |
7902 | #define HAVE_POLL 1 | |
212380e3 | 7903 | _ACEOF |
7083c021 | 7904 | havepoll=yes |
212380e3 | 7905 | else |
7083c021 | 7906 | havepoll=no |
212380e3 | 7907 | fi |
7083c021 | 7908 | done |
631ef239 | 7909 | |
7083c021 AC |
7910 | if test "x$havepoll" = "xyes" ; then |
7911 | SELECT_TYPE="poll" | |
7912 | fi | |
212380e3 | 7913 | fi |
7083c021 AC |
7914 | |
7915 | if test ! "x$use_kqueue" = "xno"; then | |
7916 | for ac_func in kevent | |
7917 | do : | |
7918 | ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent" | |
b6d0720c | 7919 | if test "x$ac_cv_func_kevent" = xyes; then : |
212380e3 | 7920 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7921 | #define HAVE_KEVENT 1 |
212380e3 AC |
7922 | _ACEOF |
7923 | havekqueue=yes | |
7924 | else | |
7925 | havekqueue=no | |
7926 | fi | |
7927 | done | |
7928 | ||
7929 | if test "x$havekqueue" = "xyes" ; then | |
7930 | SELECT_TYPE="kqueue" | |
7931 | fi | |
7932 | fi | |
7933 | ||
7934 | if test ! "x$use_epoll" = "xno"; then | |
7083c021 AC |
7935 | for ac_func in epoll_ctl |
7936 | do : | |
7937 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 7938 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
212380e3 | 7939 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7940 | #define HAVE_EPOLL_CTL 1 |
212380e3 AC |
7941 | _ACEOF |
7942 | haveepoll=yes | |
7943 | else | |
7944 | haveepoll=no | |
7945 | fi | |
7946 | done | |
7947 | ||
7948 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7949 | if test "x$haveepoll" = "xyes" ; then | |
7083c021 AC |
7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5 |
7951 | $as_echo_n "checking for epoll support in kernel... " >&6; } | |
7952 | if test "$cross_compiling" = yes; then : | |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7954 | $as_echo "no" >&6; } | |
212380e3 | 7955 | else |
7083c021 | 7956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7957 | /* end confdefs.h. */ |
7958 | #include <stdint.h> | |
7959 | #include <sys/param.h> | |
7960 | #include <sys/types.h> | |
7961 | #include <sys/epoll.h> | |
7962 | #include <sys/syscall.h> | |
7963 | #include <unistd.h> | |
7964 | ||
7965 | int | |
7966 | main(int argc, char **argv) | |
7967 | { | |
7968 | int epfd; | |
7969 | ||
7970 | epfd = epoll_create(256); | |
b676ea3b | 7971 | return (epfd == -1 ? 1 : 0); |
212380e3 AC |
7972 | } |
7973 | _ACEOF | |
7083c021 AC |
7974 | if ac_fn_c_try_run "$LINENO"; then : |
7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7976 | $as_echo "yes" >&6; } | |
212380e3 | 7977 | |
7083c021 | 7978 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
7979 | |
7980 | SELECT_TYPE="epoll" | |
7981 | else | |
7083c021 AC |
7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7983 | $as_echo "no" >&6; } | |
212380e3 | 7984 | fi |
7083c021 AC |
7985 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7986 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 7987 | fi |
631ef239 | 7988 | |
212380e3 AC |
7989 | fi |
7990 | fi | |
7991 | ||
7992 | haveepollsyscall=no | |
7993 | ||
7994 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7995 | if test "x$haveepoll" = "xno" ; then | |
7083c021 AC |
7996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 |
7997 | $as_echo_n "checking for epoll system call... " >&6; } | |
7998 | if test "$cross_compiling" = yes; then : | |
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8000 | $as_echo "no" >&6; } | |
212380e3 | 8001 | else |
7083c021 | 8002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8003 | /* end confdefs.h. */ |
8004 | #include <stdint.h> | |
8005 | #include <sys/param.h> | |
8006 | #include <sys/types.h> | |
8007 | #include <sys/epoll.h> | |
8008 | #include <sys/syscall.h> | |
8009 | #include <unistd.h> | |
8010 | ||
8011 | int | |
8012 | epoll_create(int size) | |
8013 | { | |
8014 | return (syscall(__NR_epoll_create, size)); | |
8015 | } | |
8016 | ||
8017 | int | |
8018 | main(int argc, char **argv) | |
8019 | { | |
8020 | int epfd; | |
8021 | ||
8022 | epfd = epoll_create(256); | |
8023 | exit (epfd == -1 ? 1 : 0); | |
8024 | } | |
8025 | _ACEOF | |
7083c021 AC |
8026 | if ac_fn_c_try_run "$LINENO"; then : |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8028 | $as_echo "yes" >&6; } | |
212380e3 | 8029 | |
7083c021 | 8030 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
8031 | |
8032 | SELECT_TYPE="epoll" | |
8033 | else | |
7083c021 AC |
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8035 | $as_echo "no" >&6; } | |
212380e3 | 8036 | fi |
7083c021 AC |
8037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8038 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 8039 | fi |
631ef239 | 8040 | |
212380e3 AC |
8041 | fi |
8042 | fi | |
8043 | ||
8044 | fi | |
8045 | ||
8046 | fi | |
8047 | ||
8048 | if test -z "$SELECT_TYPE"; then | |
b6d0720c | 8049 | as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5 |
212380e3 AC |
8050 | fi |
8051 | ||
8052 | echo "Using $SELECT_TYPE for select loop." | |
8053 | ||
8054 | ||
8055 | cat >>confdefs.h <<_ACEOF | |
8056 | #define SELECT_TYPE "$SELECT_TYPE" | |
8057 | _ACEOF | |
8058 | ||
8059 | ||
8060 | ||
8061 | ||
8062 | ||
631ef239 | 8063 | # Check whether --enable-assert was given. |
7083c021 | 8064 | if test "${enable_assert+set}" = set; then : |
631ef239 | 8065 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
8066 | else |
8067 | assert=no | |
631ef239 AC |
8068 | fi |
8069 | ||
212380e3 AC |
8070 | |
8071 | if test "$assert" = no; then | |
8072 | ||
7083c021 | 8073 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
8074 | |
8075 | elif test "$assert" = soft; then | |
8076 | ||
7083c021 | 8077 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
8078 | |
8079 | ||
7083c021 | 8080 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
8081 | |
8082 | elif test "$assert" = yes; then | |
8083 | assert = "hard"; | |
8084 | fi | |
8085 | ||
7083c021 AC |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
8087 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 8088 | # Check whether --enable-iodebug was given. |
7083c021 | 8089 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 8090 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
8091 | else |
8092 | iodebug=no | |
631ef239 AC |
8093 | fi |
8094 | ||
212380e3 AC |
8095 | |
8096 | if test "$iodebug" = yes; then | |
8097 | ||
7083c021 | 8098 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 8099 | |
7083c021 AC |
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8101 | $as_echo "yes" >&6; } | |
212380e3 | 8102 | else |
7083c021 AC |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8104 | $as_echo "no" >&6; } | |
212380e3 AC |
8105 | fi |
8106 | ||
8107 | ||
7083c021 AC |
8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
8109 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 8110 | # Check whether --enable-profile was given. |
7083c021 | 8111 | if test "${enable_profile+set}" = set; then : |
631ef239 | 8112 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
8113 | else |
8114 | profile=no | |
631ef239 AC |
8115 | fi |
8116 | ||
212380e3 AC |
8117 | |
8118 | if test "$profile" = yes; then | |
8119 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
8120 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
8122 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 8123 | |
7083c021 | 8124 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
8125 | |
8126 | else | |
7083c021 AC |
8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
8128 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
8129 | fi |
8130 | else | |
7083c021 AC |
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8132 | $as_echo "no" >&6; } | |
212380e3 AC |
8133 | fi |
8134 | ||
631ef239 | 8135 | # Check whether --enable-balloc was given. |
7083c021 | 8136 | if test "${enable_balloc+set}" = set; then : |
631ef239 | 8137 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
8138 | else |
8139 | balloc=yes | |
631ef239 AC |
8140 | fi |
8141 | ||
212380e3 AC |
8142 | |
8143 | if test "$balloc" = no; then | |
8144 | ||
7083c021 | 8145 | $as_echo "#define NOBALLOC 1" >>confdefs.h |
212380e3 AC |
8146 | |
8147 | fi | |
8148 | ||
631ef239 | 8149 | # Check whether --enable-small-net was given. |
7083c021 | 8150 | if test "${enable_small_net+set}" = set; then : |
631ef239 | 8151 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
8152 | else |
8153 | small_net=no | |
631ef239 AC |
8154 | fi |
8155 | ||
212380e3 AC |
8156 | |
8157 | if test "$small_net" = yes; then | |
8158 | ||
7083c021 | 8159 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
212380e3 AC |
8160 | |
8161 | ||
7083c021 | 8162 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8163 | |
8164 | ||
7083c021 | 8165 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8166 | |
8167 | ||
7083c021 | 8168 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8169 | |
8170 | ||
7083c021 | 8171 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8172 | |
8173 | ||
7083c021 | 8174 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h |
212380e3 AC |
8175 | |
8176 | ||
7083c021 | 8177 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8178 | |
8179 | ||
7083c021 | 8180 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8181 | |
8182 | ||
7083c021 | 8183 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8184 | |
8185 | ||
7083c021 | 8186 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8187 | |
8188 | ||
7083c021 | 8189 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8190 | |
8191 | ||
7083c021 | 8192 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8193 | |
8194 | ||
7083c021 | 8195 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
8196 | |
8197 | ||
7083c021 | 8198 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 8199 | |
f589ec6f | 8200 | |
7083c021 | 8201 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h |
2b428185 AC |
8202 | |
8203 | ||
7083c021 | 8204 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h |
f589ec6f | 8205 | |
212380e3 AC |
8206 | else |
8207 | ||
7083c021 | 8208 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
8209 | |
8210 | ||
7083c021 | 8211 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
8212 | |
8213 | ||
7083c021 | 8214 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
8215 | |
8216 | ||
7083c021 | 8217 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
8218 | |
8219 | ||
7083c021 | 8220 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
8221 | |
8222 | ||
7083c021 | 8223 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8224 | |
8225 | ||
7083c021 | 8226 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
8227 | |
8228 | ||
7083c021 | 8229 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
8230 | |
8231 | ||
7083c021 | 8232 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
8233 | |
8234 | ||
7083c021 | 8235 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
8236 | |
8237 | ||
7083c021 | 8238 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
8239 | |
8240 | ||
7083c021 | 8241 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
8242 | |
8243 | ||
7083c021 | 8244 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
8245 | |
8246 | ||
7083c021 | 8247 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 8248 | |
f589ec6f | 8249 | |
7083c021 | 8250 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
8251 | |
8252 | ||
7083c021 | 8253 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 8254 | |
212380e3 AC |
8255 | fi |
8256 | ||
8257 | ||
631ef239 | 8258 | # Check whether --with-nicklen was given. |
7083c021 | 8259 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 8260 | withval=$with_nicklen; |
aa769893 | 8261 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 8262 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 8263 | fi |
cf533739 | 8264 | if test $withval -gt 50; then |
212380e3 | 8265 | NICKLEN=50 |
7083c021 AC |
8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
8267 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
cf533739 JT |
8268 | elif test $withval -lt 9; then |
8269 | NICKLEN=9 | |
8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
8271 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
212380e3 AC |
8272 | else |
8273 | NICKLEN="$withval" | |
8274 | fi | |
8275 | ||
8276 | else | |
cf533739 | 8277 | NICKLEN=31 |
631ef239 | 8278 | fi |
212380e3 AC |
8279 | |
8280 | ||
212380e3 | 8281 | |
631ef239 | 8282 | # Check whether --with-topiclen was given. |
7083c021 | 8283 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 8284 | withval=$with_topiclen; |
212380e3 AC |
8285 | if test $withval -ge 390; then |
8286 | TOPICLEN=390 | |
7083c021 AC |
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
8288 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
8289 | else |
8290 | TOPICLEN=$withval | |
8291 | fi | |
8292 | ||
8293 | else | |
8294 | TOPICLEN=390 | |
212380e3 AC |
8295 | fi |
8296 | ||
212380e3 AC |
8297 | |
8298 | ||
8299 | cat >>confdefs.h <<_ACEOF | |
8300 | #define TOPICLEN ${TOPICLEN} | |
8301 | _ACEOF | |
8302 | ||
8303 | ||
8304 | cat >>confdefs.h <<_ACEOF | |
8305 | #define NICKLEN (${NICKLEN}+1) | |
8306 | _ACEOF | |
8307 | ||
8308 | ||
b676ea3b | 8309 | shared_modules="yes" |
212380e3 | 8310 | if test "$shared_modules" = yes; then |
212380e3 | 8311 | if test "$CC" = tcc -a "$TenDRA" = "no"; then |
7083c021 AC |
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 |
8313 | $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
212380e3 AC |
8314 | shared_modules="no" |
8315 | fi | |
8316 | fi | |
8317 | ||
8318 | if test "$shared_modules" = yes; then | |
7083c021 AC |
8319 | DYNLINK_C=dynlink.c |
8320 | for ac_header in dlfcn.h | |
8321 | do : | |
8322 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
b6d0720c | 8323 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
212380e3 | 8324 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8325 | #define HAVE_DLFCN_H 1 |
212380e3 AC |
8326 | _ACEOF |
8327 | ||
8328 | fi | |
8329 | ||
8330 | done | |
8331 | ||
7083c021 AC |
8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 |
8333 | $as_echo_n "checking for library containing shl_load... " >&6; } | |
b6d0720c | 8334 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 8335 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8336 | else |
8337 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 8338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8339 | /* end confdefs.h. */ |
8340 | ||
631ef239 AC |
8341 | /* Override any GCC internal prototype to avoid an error. |
8342 | Use char because int might match the return type of a GCC | |
8343 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8344 | #ifdef __cplusplus |
8345 | extern "C" | |
8346 | #endif | |
212380e3 AC |
8347 | char shl_load (); |
8348 | int | |
8349 | main () | |
8350 | { | |
631ef239 | 8351 | return shl_load (); |
212380e3 AC |
8352 | ; |
8353 | return 0; | |
8354 | } | |
8355 | _ACEOF | |
631ef239 AC |
8356 | for ac_lib in '' dld; do |
8357 | if test -z "$ac_lib"; then | |
8358 | ac_res="none required" | |
8359 | else | |
8360 | ac_res=-l$ac_lib | |
8361 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8362 | fi | |
7083c021 | 8363 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8364 | ac_cv_search_shl_load=$ac_res |
631ef239 | 8365 | fi |
7083c021 AC |
8366 | rm -f core conftest.err conftest.$ac_objext \ |
8367 | conftest$ac_exeext | |
b6d0720c | 8368 | if ${ac_cv_search_shl_load+:} false; then : |
631ef239 | 8369 | break |
212380e3 | 8370 | fi |
631ef239 | 8371 | done |
b6d0720c | 8372 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 8373 | |
631ef239 AC |
8374 | else |
8375 | ac_cv_search_shl_load=no | |
212380e3 | 8376 | fi |
631ef239 | 8377 | rm conftest.$ac_ext |
212380e3 AC |
8378 | LIBS=$ac_func_search_save_LIBS |
8379 | fi | |
7083c021 AC |
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 |
8381 | $as_echo "$ac_cv_search_shl_load" >&6; } | |
631ef239 | 8382 | ac_res=$ac_cv_search_shl_load |
7083c021 | 8383 | if test "$ac_res" != no; then : |
631ef239 | 8384 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
8385 | |
8386 | ||
7083c021 | 8387 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 AC |
8388 | |
8389 | SUFFIX=".sl" | |
8390 | MOD_TARGET=hpux_shared | |
8391 | SEDOBJ="s/\.o/.sl/g" | |
8392 | ||
8393 | else | |
8394 | ||
7083c021 AC |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
8396 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
b6d0720c | 8397 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 8398 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8399 | else |
8400 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 8401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8402 | /* end confdefs.h. */ |
8403 | ||
631ef239 AC |
8404 | /* Override any GCC internal prototype to avoid an error. |
8405 | Use char because int might match the return type of a GCC | |
8406 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8407 | #ifdef __cplusplus |
8408 | extern "C" | |
8409 | #endif | |
212380e3 AC |
8410 | char dlopen (); |
8411 | int | |
8412 | main () | |
8413 | { | |
631ef239 | 8414 | return dlopen (); |
212380e3 AC |
8415 | ; |
8416 | return 0; | |
8417 | } | |
8418 | _ACEOF | |
631ef239 AC |
8419 | for ac_lib in '' dl c_r; do |
8420 | if test -z "$ac_lib"; then | |
8421 | ac_res="none required" | |
8422 | else | |
8423 | ac_res=-l$ac_lib | |
8424 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8425 | fi | |
7083c021 | 8426 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8427 | ac_cv_search_dlopen=$ac_res |
631ef239 | 8428 | fi |
7083c021 AC |
8429 | rm -f core conftest.err conftest.$ac_objext \ |
8430 | conftest$ac_exeext | |
b6d0720c | 8431 | if ${ac_cv_search_dlopen+:} false; then : |
631ef239 | 8432 | break |
212380e3 | 8433 | fi |
631ef239 | 8434 | done |
b6d0720c | 8435 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 8436 | |
631ef239 AC |
8437 | else |
8438 | ac_cv_search_dlopen=no | |
212380e3 | 8439 | fi |
631ef239 | 8440 | rm conftest.$ac_ext |
212380e3 AC |
8441 | LIBS=$ac_func_search_save_LIBS |
8442 | fi | |
7083c021 AC |
8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
8444 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
631ef239 | 8445 | ac_res=$ac_cv_search_dlopen |
7083c021 | 8446 | if test "$ac_res" != no; then : |
631ef239 | 8447 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
8448 | |
8449 | ||
7083c021 | 8450 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
212380e3 AC |
8451 | |
8452 | SUFFIX=".so" | |
8453 | MOD_TARGET=shared_modules | |
8454 | SEDOBJ="s/\.o/.so/g" | |
8455 | if test "$AppleGCC" = yes; then | |
7083c021 AC |
8456 | for ac_header in mach-o/dyld.h |
8457 | do : | |
8458 | ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" | |
b6d0720c | 8459 | if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : |
212380e3 | 8460 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8461 | #define HAVE_MACH_O_DYLD_H 1 |
212380e3 AC |
8462 | _ACEOF |
8463 | ||
8464 | fi | |
8465 | ||
8466 | done | |
8467 | ||
8468 | fi | |
7083c021 | 8469 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" |
b6d0720c | 8470 | if test "x$ac_cv_func_dlsym" = xyes; then : |
631ef239 | 8471 | |
212380e3 AC |
8472 | else |
8473 | ||
7083c021 AC |
8474 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5 |
8475 | $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
212380e3 AC |
8476 | shared_modules=no |
8477 | ||
8478 | fi | |
8479 | ||
7083c021 AC |
8480 | for ac_func in dlfunc |
8481 | do : | |
8482 | ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc" | |
b6d0720c | 8483 | if test "x$ac_cv_func_dlfunc" = xyes; then : |
212380e3 | 8484 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8485 | #define HAVE_DLFUNC 1 |
212380e3 AC |
8486 | _ACEOF |
8487 | ||
8488 | fi | |
8489 | done | |
8490 | ||
8491 | ||
8492 | else | |
8493 | ||
8494 | shared_modules=no | |
8495 | ||
8496 | fi | |
8497 | ||
8498 | ||
8499 | fi | |
8500 | ||
8501 | fi | |
8502 | ||
8503 | ||
8504 | cat >>confdefs.h <<_ACEOF | |
8505 | #define SHARED_SUFFIX "$SUFFIX" | |
8506 | _ACEOF | |
8507 | ||
8508 | ||
8509 | if test "$shared_modules" = yes; then | |
8510 | # The GNU linker requires the -export-dynamic option to make | |
8511 | # all symbols visible in the dynamic symbol table. | |
8512 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5 |
8514 | $as_echo_n "checking for the ld -export-dynamic flag... " >&6; } | |
212380e3 | 8515 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
7083c021 | 8516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8517 | /* end confdefs.h. */ |
8518 | ||
8519 | int | |
8520 | main () | |
8521 | { | |
8522 | int i; | |
8523 | ; | |
8524 | return 0; | |
8525 | } | |
8526 | _ACEOF | |
7083c021 | 8527 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
8528 | found=yes |
8529 | else | |
7083c021 | 8530 | found=no |
212380e3 | 8531 | fi |
7083c021 AC |
8532 | rm -f core conftest.err conftest.$ac_objext \ |
8533 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
8534 | LDFLAGS=$hold_ldflags |
8535 | ||
8536 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
8537 | found="no, IRIX ld uses -B,dynamic" | |
8538 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
8539 | fi | |
8540 | ||
8541 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
8542 | found="no, AIX ld uses -G -brtl" | |
8543 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
8544 | fi | |
8545 | ||
7083c021 AC |
8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8547 | $as_echo "$found" >&6; } | |
212380e3 AC |
8548 | |
8549 | if test "$found" = yes; then | |
8550 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
8551 | fi | |
8552 | ||
7083c021 AC |
8553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5 |
8554 | $as_echo_n "checking for compiler option to produce PIC... " >&6; } | |
212380e3 | 8555 | if test "$SGS" = "yes"; then |
7083c021 AC |
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
8557 | $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
8558 | PICFLAGS="-KPIC -DPIC -G" |
8559 | fi | |
8560 | ||
8561 | if test "$AppleGCC" = "yes"; then | |
7083c021 AC |
8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
8563 | $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
8564 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
8565 | fi | |
8566 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
7083c021 AC |
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5 |
8568 | $as_echo "HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 8569 | PICFLAGS="+z -r -q -n -c" |
7083c021 AC |
8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5 |
8571 | $as_echo_n "checking if +ESfic is required on this platform... " >&6; } | |
212380e3 AC |
8572 | |
8573 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
7083c021 AC |
8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8575 | $as_echo "no" >&6; } | |
212380e3 | 8576 | else |
7083c021 AC |
8577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8578 | $as_echo "yes" >&6; } | |
212380e3 AC |
8579 | PICFLAGS="$PICFLAGS +ESfic" |
8580 | fi | |
8581 | ||
8582 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
8583 | fi | |
8584 | if test "$Tru" = yes -a "$CC" != gcc; then | |
7083c021 AC |
8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5 |
8586 | $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
8587 | PICFLAGS="-shared -expect_unresolved '*' " |
8588 | LDFLAGS="-call_shared" | |
8589 | fi | |
8590 | if test -z "$PICFLAGS"; then | |
8591 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
7083c021 AC |
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5 |
8593 | $as_echo "gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
8594 | PICFLAGS="-fPIC -DPIC -shared" |
8595 | else | |
7083c021 AC |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8597 | $as_echo "no" >&6; } | |
212380e3 AC |
8598 | shared_modules=no |
8599 | fi | |
8600 | fi | |
8601 | fi | |
8602 | ||
1a82970f JT |
8603 | # rpath, for finding libratbox.so at run time |
8604 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
8606 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 8607 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 8608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
8609 | /* end confdefs.h. */ |
8610 | ||
8611 | int | |
8612 | main () | |
8613 | { | |
8614 | int i; | |
8615 | ; | |
8616 | return 0; | |
8617 | } | |
8618 | _ACEOF | |
7083c021 | 8619 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
8620 | found=yes |
8621 | else | |
7083c021 | 8622 | found=no |
1a82970f | 8623 | fi |
7083c021 AC |
8624 | rm -f core conftest.err conftest.$ac_objext \ |
8625 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 8626 | LDFLAGS=$hold_ldflags |
7083c021 AC |
8627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8628 | $as_echo "$found" >&6; } | |
1a82970f JT |
8629 | if test "$found" = yes; then |
8630 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
8631 | fi | |
8632 | ||
212380e3 AC |
8633 | # This must be down here, or it will mess up checks like the ones |
8634 | # for -Wl,-export-dynamic | |
8635 | # -- jilles | |
d2c5159a | 8636 | CWARNS="" |
631ef239 | 8637 | # Check whether --enable-warnings was given. |
7083c021 | 8638 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 8639 | enableval=$enable_warnings; |
212380e3 AC |
8640 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
8641 | CFLAGS="$IRC_CFLAGS" | |
8642 | ||
8643 | ||
7083c021 AC |
8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
8645 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
8646 | if test "${GCC-no}" = yes |
8647 | then | |
b6d0720c | 8648 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 8649 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8650 | else |
8651 | ||
8652 | oldcflags="${CFLAGS-}" | |
8653 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 8654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8655 | /* end confdefs.h. */ |
8656 | ||
8657 | #include <string.h> | |
8658 | #include <stdio.h> | |
8659 | int main(void); | |
8660 | ||
8661 | int | |
8662 | main () | |
8663 | { | |
8664 | ||
b1fc1658 | 8665 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8666 | |
8667 | ; | |
8668 | return 0; | |
8669 | } | |
8670 | _ACEOF | |
7083c021 | 8671 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8672 | charybdis_cv_c_gcc_w_all=yes |
8673 | else | |
7083c021 | 8674 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 8675 | fi |
631ef239 | 8676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8677 | CFLAGS="${oldcflags}" |
8678 | fi | |
8679 | ||
8680 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
8681 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8683 | $as_echo "ok" >&6; } | |
212380e3 AC |
8684 | else |
8685 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8687 | $as_echo "no" >&6; } | |
212380e3 AC |
8688 | fi |
8689 | else | |
7083c021 AC |
8690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8691 | $as_echo "no" >&6; } | |
212380e3 AC |
8692 | fi |
8693 | ||
8694 | ||
7083c021 AC |
8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
8696 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
8697 | if test "${GCC-no}" = yes |
8698 | then | |
b6d0720c | 8699 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 8700 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8701 | else |
8702 | ||
8703 | oldcflags="${CFLAGS-}" | |
8704 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 8705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8706 | /* end confdefs.h. */ |
8707 | ||
8708 | #include <string.h> | |
8709 | #include <stdio.h> | |
8710 | int main(void); | |
8711 | ||
8712 | int | |
8713 | main () | |
8714 | { | |
8715 | ||
b1fc1658 | 8716 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8717 | |
8718 | ; | |
8719 | return 0; | |
8720 | } | |
8721 | _ACEOF | |
7083c021 | 8722 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8723 | charybdis_cv_c_gcc_w_pointer_arith=yes |
8724 | else | |
7083c021 | 8725 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 8726 | fi |
631ef239 | 8727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8728 | CFLAGS="${oldcflags}" |
8729 | fi | |
8730 | ||
8731 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
8732 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8734 | $as_echo "ok" >&6; } | |
212380e3 AC |
8735 | else |
8736 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8738 | $as_echo "no" >&6; } | |
212380e3 AC |
8739 | fi |
8740 | else | |
7083c021 AC |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8742 | $as_echo "no" >&6; } | |
212380e3 AC |
8743 | fi |
8744 | ||
8745 | ||
7083c021 AC |
8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
8747 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
8748 | if test "${GCC-no}" = yes |
8749 | then | |
b6d0720c | 8750 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 8751 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8752 | else |
8753 | ||
8754 | oldcflags="${CFLAGS-}" | |
8755 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 8756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8757 | /* end confdefs.h. */ |
8758 | ||
8759 | #include <string.h> | |
8760 | #include <stdio.h> | |
8761 | int main(void); | |
8762 | ||
8763 | int | |
8764 | main () | |
8765 | { | |
8766 | ||
b1fc1658 | 8767 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8768 | |
8769 | ; | |
8770 | return 0; | |
8771 | } | |
8772 | _ACEOF | |
7083c021 | 8773 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8774 | charybdis_cv_c_gcc_w_implicit=yes |
8775 | else | |
7083c021 | 8776 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 8777 | fi |
631ef239 | 8778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8779 | CFLAGS="${oldcflags}" |
8780 | fi | |
8781 | ||
8782 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
8783 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
8784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8785 | $as_echo "ok" >&6; } | |
212380e3 AC |
8786 | else |
8787 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8789 | $as_echo "no" >&6; } | |
212380e3 AC |
8790 | fi |
8791 | else | |
7083c021 AC |
8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8793 | $as_echo "no" >&6; } | |
212380e3 AC |
8794 | fi |
8795 | ||
8796 | ||
7083c021 AC |
8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
8798 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
8799 | if test "${GCC-no}" = yes |
8800 | then | |
b6d0720c | 8801 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 8802 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8803 | else |
8804 | ||
8805 | oldcflags="${CFLAGS-}" | |
8806 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 8807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8808 | /* end confdefs.h. */ |
8809 | ||
8810 | #include <string.h> | |
8811 | #include <stdio.h> | |
8812 | int main(void); | |
8813 | ||
8814 | int | |
8815 | main () | |
8816 | { | |
8817 | ||
b1fc1658 | 8818 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
8819 | |
8820 | ; | |
8821 | return 0; | |
8822 | } | |
8823 | _ACEOF | |
8824 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
8825 | charybdis_cv_c_gcc_w_cast_align=yes |
8826 | else | |
7083c021 | 8827 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 8828 | fi |
631ef239 | 8829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8830 | CFLAGS="${oldcflags}" |
8831 | fi | |
8832 | ||
8833 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
8834 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8836 | $as_echo "ok" >&6; } | |
212380e3 AC |
8837 | else |
8838 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8840 | $as_echo "no" >&6; } | |
212380e3 AC |
8841 | fi |
8842 | else | |
7083c021 AC |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8844 | $as_echo "no" >&6; } | |
212380e3 AC |
8845 | fi |
8846 | ||
8847 | ||
7083c021 AC |
8848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
8849 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
8850 | if test "${GCC-no}" = yes |
8851 | then | |
b6d0720c | 8852 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 8853 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8854 | else |
8855 | ||
8856 | oldcflags="${CFLAGS-}" | |
8857 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 8858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8859 | /* end confdefs.h. */ |
8860 | ||
8861 | #include <string.h> | |
8862 | #include <stdio.h> | |
8863 | int main(void); | |
8864 | ||
8865 | int | |
8866 | main () | |
8867 | { | |
8868 | ||
b1fc1658 | 8869 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8870 | |
8871 | ; | |
8872 | return 0; | |
8873 | } | |
8874 | _ACEOF | |
7083c021 | 8875 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8876 | charybdis_cv_c_gcc_w_cast_qual=yes |
8877 | else | |
7083c021 | 8878 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 8879 | fi |
631ef239 | 8880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8881 | CFLAGS="${oldcflags}" |
8882 | fi | |
8883 | ||
8884 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
8885 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
8886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8887 | $as_echo "ok" >&6; } | |
212380e3 AC |
8888 | else |
8889 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
8890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8891 | $as_echo "no" >&6; } | |
212380e3 AC |
8892 | fi |
8893 | else | |
7083c021 AC |
8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8895 | $as_echo "no" >&6; } | |
212380e3 AC |
8896 | fi |
8897 | ||
8898 | ||
7083c021 AC |
8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
8900 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
8901 | if test "${GCC-no}" = yes |
8902 | then | |
b6d0720c | 8903 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 8904 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
8905 | else |
8906 | ||
8907 | oldcflags="${CFLAGS-}" | |
8908 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 8909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
8910 | /* end confdefs.h. */ |
8911 | ||
8912 | #include <string.h> | |
8913 | #include <stdio.h> | |
8914 | int main(void); | |
8915 | ||
8916 | int | |
8917 | main () | |
8918 | { | |
8919 | ||
8920 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8921 | ||
8922 | ; | |
8923 | return 0; | |
8924 | } | |
8925 | _ACEOF | |
7083c021 | 8926 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 8927 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 8928 | else |
7083c021 | 8929 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 8930 | fi |
d2c5159a JT |
8931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8932 | CFLAGS="${oldcflags}" | |
8933 | fi | |
8934 | ||
bbe58888 | 8935 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 8936 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8938 | $as_echo "ok" >&6; } | |
d2c5159a | 8939 | else |
bbe58888 | 8940 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8942 | $as_echo "no" >&6; } | |
bbe58888 VY |
8943 | fi |
8944 | else | |
7083c021 AC |
8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8946 | $as_echo "no" >&6; } | |
bbe58888 VY |
8947 | fi |
8948 | ||
8949 | ||
7083c021 AC |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
8951 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
8952 | if test "${GCC-no}" = yes |
8953 | then | |
b6d0720c | 8954 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 8955 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
8956 | else |
8957 | ||
8958 | oldcflags="${CFLAGS-}" | |
8959 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 8960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
8961 | /* end confdefs.h. */ |
8962 | ||
8963 | #include <string.h> | |
8964 | #include <stdio.h> | |
8965 | int main(void); | |
8966 | ||
8967 | int | |
8968 | main () | |
8969 | { | |
8970 | ||
8971 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8972 | ||
8973 | ; | |
8974 | return 0; | |
8975 | } | |
8976 | _ACEOF | |
7083c021 | 8977 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
8978 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
8979 | else | |
7083c021 | 8980 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 8981 | fi |
bbe58888 VY |
8982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8983 | CFLAGS="${oldcflags}" | |
8984 | fi | |
8985 | ||
8986 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
8987 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8989 | $as_echo "ok" >&6; } | |
bbe58888 VY |
8990 | else |
8991 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8993 | $as_echo "no" >&6; } | |
d2c5159a JT |
8994 | fi |
8995 | else | |
7083c021 AC |
8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8997 | $as_echo "no" >&6; } | |
d2c5159a JT |
8998 | fi |
8999 | ||
9000 | ||
7083c021 AC |
9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
9002 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
9003 | if test "${GCC-no}" = yes |
9004 | then | |
b6d0720c | 9005 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 9006 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9007 | else |
9008 | ||
9009 | oldcflags="${CFLAGS-}" | |
9010 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 9011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9012 | /* end confdefs.h. */ |
9013 | ||
9014 | #include <string.h> | |
9015 | #include <stdio.h> | |
9016 | int main(void); | |
9017 | ||
9018 | int | |
9019 | main () | |
9020 | { | |
9021 | ||
b1fc1658 | 9022 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9023 | |
9024 | ; | |
9025 | return 0; | |
9026 | } | |
9027 | _ACEOF | |
7083c021 | 9028 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9029 | charybdis_cv_c_gcc_prototypes=yes |
9030 | else | |
7083c021 | 9031 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 9032 | fi |
631ef239 | 9033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9034 | CFLAGS="${oldcflags}" |
9035 | fi | |
9036 | ||
9037 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
9038 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9040 | $as_echo "ok" >&6; } | |
212380e3 AC |
9041 | else |
9042 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9044 | $as_echo "no" >&6; } | |
212380e3 AC |
9045 | fi |
9046 | else | |
7083c021 AC |
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9048 | $as_echo "no" >&6; } | |
212380e3 AC |
9049 | fi |
9050 | ||
9051 | ||
7083c021 AC |
9052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
9053 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
9054 | if test "${GCC-no}" = yes |
9055 | then | |
b6d0720c | 9056 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 9057 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9058 | else |
9059 | ||
9060 | oldcflags="${CFLAGS-}" | |
9061 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 9062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9063 | /* end confdefs.h. */ |
9064 | ||
9065 | #include <string.h> | |
9066 | #include <stdio.h> | |
9067 | int main(void); | |
9068 | ||
9069 | int | |
9070 | main () | |
9071 | { | |
9072 | ||
b1fc1658 | 9073 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9074 | |
9075 | ; | |
9076 | return 0; | |
9077 | } | |
9078 | _ACEOF | |
7083c021 | 9079 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9080 | charybdis_cv_c_gcc_parenthesis=yes |
9081 | else | |
7083c021 | 9082 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 9083 | fi |
631ef239 | 9084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9085 | CFLAGS="${oldcflags}" |
9086 | fi | |
9087 | ||
9088 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
9089 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9091 | $as_echo "ok" >&6; } | |
212380e3 AC |
9092 | else |
9093 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9095 | $as_echo "no" >&6; } | |
212380e3 AC |
9096 | fi |
9097 | else | |
7083c021 AC |
9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9099 | $as_echo "no" >&6; } | |
212380e3 AC |
9100 | fi |
9101 | ||
9102 | ||
7083c021 AC |
9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
9104 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
9105 | if test "${GCC-no}" = yes |
9106 | then | |
b6d0720c | 9107 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 9108 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9109 | else |
9110 | ||
9111 | oldcflags="${CFLAGS-}" | |
9112 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 9113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9114 | /* end confdefs.h. */ |
9115 | ||
9116 | #include <string.h> | |
9117 | #include <stdio.h> | |
9118 | int main(void); | |
9119 | ||
9120 | int | |
9121 | main () | |
9122 | { | |
9123 | ||
b1fc1658 | 9124 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9125 | |
9126 | ; | |
9127 | return 0; | |
9128 | } | |
9129 | _ACEOF | |
7083c021 | 9130 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9131 | charybdis_cv_c_gcc_w=yes |
9132 | else | |
7083c021 | 9133 | charybdis_cv_c_gcc_w=no |
212380e3 | 9134 | fi |
631ef239 | 9135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9136 | CFLAGS="${oldcflags}" |
9137 | fi | |
9138 | ||
9139 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
9140 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9142 | $as_echo "ok" >&6; } | |
212380e3 AC |
9143 | else |
9144 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9146 | $as_echo "no" >&6; } | |
212380e3 AC |
9147 | fi |
9148 | else | |
7083c021 AC |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9150 | $as_echo "no" >&6; } | |
212380e3 AC |
9151 | fi |
9152 | ||
9153 | ||
7083c021 AC |
9154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
9155 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
9156 | if test "${GCC-no}" = yes |
9157 | then | |
b6d0720c | 9158 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 9159 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9160 | else |
9161 | ||
9162 | oldcflags="${CFLAGS-}" | |
9163 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 9164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9165 | /* end confdefs.h. */ |
9166 | ||
9167 | #include <string.h> | |
9168 | #include <stdio.h> | |
9169 | int main(void); | |
9170 | ||
9171 | int | |
9172 | main () | |
9173 | { | |
9174 | ||
b1fc1658 | 9175 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9176 | |
9177 | ; | |
9178 | return 0; | |
9179 | } | |
9180 | _ACEOF | |
7083c021 | 9181 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9182 | charybdis_cv_c_gcc_w_extra=yes |
9183 | else | |
7083c021 | 9184 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 9185 | fi |
631ef239 | 9186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9187 | CFLAGS="${oldcflags}" |
9188 | fi | |
9189 | ||
9190 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
9191 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9193 | $as_echo "ok" >&6; } | |
212380e3 AC |
9194 | else |
9195 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
9196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9197 | $as_echo "no" >&6; } | |
212380e3 AC |
9198 | fi |
9199 | else | |
7083c021 AC |
9200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9201 | $as_echo "no" >&6; } | |
212380e3 AC |
9202 | fi |
9203 | ||
9204 | ||
7083c021 AC |
9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
9206 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
9207 | if test "${GCC-no}" = yes |
9208 | then | |
b6d0720c | 9209 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 9210 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9211 | else |
9212 | ||
9213 | oldcflags="${CFLAGS-}" | |
9214 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 9215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9216 | /* end confdefs.h. */ |
9217 | ||
9218 | #include <string.h> | |
9219 | #include <stdio.h> | |
9220 | int main(void); | |
9221 | ||
9222 | int | |
9223 | main () | |
9224 | { | |
9225 | ||
b1fc1658 | 9226 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9227 | |
9228 | ; | |
9229 | return 0; | |
9230 | } | |
9231 | _ACEOF | |
7083c021 | 9232 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9233 | charybdis_cv_c_gcc_w_shadow=yes |
9234 | else | |
7083c021 | 9235 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 9236 | fi |
631ef239 | 9237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9238 | CFLAGS="${oldcflags}" |
9239 | fi | |
9240 | ||
9241 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
9242 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9244 | $as_echo "ok" >&6; } | |
212380e3 AC |
9245 | else |
9246 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9248 | $as_echo "no" >&6; } | |
212380e3 AC |
9249 | fi |
9250 | else | |
7083c021 AC |
9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9252 | $as_echo "no" >&6; } | |
212380e3 AC |
9253 | fi |
9254 | ||
9255 | ||
7083c021 AC |
9256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
9257 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
9258 | if test "${GCC-no}" = yes |
9259 | then | |
b6d0720c | 9260 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 9261 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9262 | else |
9263 | ||
9264 | oldcflags="${CFLAGS-}" | |
9265 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 9266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9267 | /* end confdefs.h. */ |
9268 | ||
9269 | #include <string.h> | |
9270 | #include <stdio.h> | |
9271 | int main(void); | |
9272 | ||
9273 | int | |
9274 | main () | |
9275 | { | |
9276 | ||
b1fc1658 | 9277 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9278 | |
9279 | ; | |
9280 | return 0; | |
9281 | } | |
9282 | _ACEOF | |
7083c021 | 9283 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9284 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
9285 | else | |
7083c021 | 9286 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 9287 | fi |
631ef239 | 9288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9289 | CFLAGS="${oldcflags}" |
9290 | fi | |
9291 | ||
9292 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
9293 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9295 | $as_echo "ok" >&6; } | |
212380e3 AC |
9296 | else |
9297 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9299 | $as_echo "no" >&6; } | |
212380e3 AC |
9300 | fi |
9301 | else | |
7083c021 AC |
9302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9303 | $as_echo "no" >&6; } | |
212380e3 AC |
9304 | fi |
9305 | ||
9306 | ||
7083c021 AC |
9307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
9308 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
9309 | if test "${GCC-no}" = yes |
9310 | then | |
b6d0720c | 9311 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 9312 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9313 | else |
9314 | ||
9315 | oldcflags="${CFLAGS-}" | |
9316 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 9317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9318 | /* end confdefs.h. */ |
9319 | ||
9320 | #include <string.h> | |
9321 | #include <stdio.h> | |
9322 | int main(void); | |
9323 | ||
9324 | int | |
9325 | main () | |
9326 | { | |
9327 | ||
b1fc1658 | 9328 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9329 | |
9330 | ; | |
9331 | return 0; | |
9332 | } | |
9333 | _ACEOF | |
7083c021 | 9334 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9335 | charybdis_cv_c_gcc_w_undef=yes |
9336 | else | |
7083c021 | 9337 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 9338 | fi |
631ef239 | 9339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9340 | CFLAGS="${oldcflags}" |
9341 | fi | |
9342 | ||
9343 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
9344 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9346 | $as_echo "ok" >&6; } | |
212380e3 AC |
9347 | else |
9348 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
9349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9350 | $as_echo "no" >&6; } | |
212380e3 AC |
9351 | fi |
9352 | else | |
7083c021 AC |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9354 | $as_echo "no" >&6; } | |
212380e3 AC |
9355 | fi |
9356 | ||
9357 | ||
7083c021 AC |
9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
9359 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
9360 | if test "${GCC-no}" = yes |
9361 | then | |
b6d0720c | 9362 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 9363 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9364 | else |
9365 | ||
9366 | oldcflags="${CFLAGS-}" | |
9367 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 9368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9369 | /* end confdefs.h. */ |
9370 | ||
9371 | #include <string.h> | |
9372 | #include <stdio.h> | |
9373 | int main(void); | |
9374 | ||
9375 | int | |
9376 | main () | |
9377 | { | |
9378 | ||
b1fc1658 | 9379 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9380 | |
9381 | ; | |
9382 | return 0; | |
9383 | } | |
9384 | _ACEOF | |
7083c021 | 9385 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9386 | charybdis_cv_c_gcc_w_packed=yes |
9387 | else | |
7083c021 | 9388 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 9389 | fi |
631ef239 | 9390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9391 | CFLAGS="${oldcflags}" |
9392 | fi | |
9393 | ||
9394 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
9395 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
9396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9397 | $as_echo "ok" >&6; } | |
212380e3 AC |
9398 | else |
9399 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
9400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9401 | $as_echo "no" >&6; } | |
212380e3 AC |
9402 | fi |
9403 | else | |
7083c021 AC |
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9405 | $as_echo "no" >&6; } | |
212380e3 AC |
9406 | fi |
9407 | ||
9408 | ||
7083c021 AC |
9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
9410 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
9411 | if test "${GCC-no}" = yes |
9412 | then | |
b6d0720c | 9413 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 9414 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9415 | else |
9416 | ||
9417 | oldcflags="${CFLAGS-}" | |
9418 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 9419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9420 | /* end confdefs.h. */ |
9421 | ||
9422 | #include <string.h> | |
9423 | #include <stdio.h> | |
9424 | int main(void); | |
9425 | ||
9426 | int | |
9427 | main () | |
9428 | { | |
9429 | ||
b1fc1658 | 9430 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9431 | |
9432 | ; | |
9433 | return 0; | |
9434 | } | |
9435 | _ACEOF | |
7083c021 | 9436 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9437 | charybdis_cv_c_gcc_w_nested_externs=yes |
9438 | else | |
7083c021 | 9439 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 9440 | fi |
631ef239 | 9441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9442 | CFLAGS="${oldcflags}" |
9443 | fi | |
9444 | ||
9445 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
9446 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9448 | $as_echo "ok" >&6; } | |
212380e3 AC |
9449 | else |
9450 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9452 | $as_echo "no" >&6; } | |
212380e3 AC |
9453 | fi |
9454 | else | |
7083c021 AC |
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9456 | $as_echo "no" >&6; } | |
212380e3 AC |
9457 | fi |
9458 | ||
9459 | ||
7083c021 AC |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
9461 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
9462 | if test "${GCC-no}" = yes |
9463 | then | |
b6d0720c | 9464 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 9465 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9466 | else |
9467 | ||
9468 | oldcflags="${CFLAGS-}" | |
9469 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 9470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9471 | /* end confdefs.h. */ |
9472 | ||
9473 | #include <string.h> | |
9474 | #include <stdio.h> | |
9475 | int main(void); | |
9476 | ||
9477 | int | |
9478 | main () | |
9479 | { | |
9480 | ||
b1fc1658 | 9481 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9482 | |
9483 | ; | |
9484 | return 0; | |
9485 | } | |
9486 | _ACEOF | |
7083c021 | 9487 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9488 | charybdis_cv_c_gcc_w_unused=yes |
9489 | else | |
7083c021 | 9490 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 9491 | fi |
631ef239 | 9492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9493 | CFLAGS="${oldcflags}" |
9494 | fi | |
9495 | ||
9496 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
9497 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9499 | $as_echo "ok" >&6; } | |
212380e3 AC |
9500 | else |
9501 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9503 | $as_echo "no" >&6; } | |
212380e3 AC |
9504 | fi |
9505 | else | |
7083c021 AC |
9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9507 | $as_echo "no" >&6; } | |
212380e3 AC |
9508 | fi |
9509 | ||
9510 | ||
7083c021 AC |
9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
9512 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
9513 | if test "${GCC-no}" = yes |
9514 | then | |
b6d0720c | 9515 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 9516 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9517 | else |
9518 | ||
9519 | oldcflags="${CFLAGS-}" | |
9520 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 9521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9522 | /* end confdefs.h. */ |
9523 | ||
9524 | #include <string.h> | |
9525 | #include <stdio.h> | |
9526 | int main(void); | |
9527 | ||
9528 | int | |
9529 | main () | |
9530 | { | |
9531 | ||
b1fc1658 | 9532 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9533 | |
9534 | ; | |
9535 | return 0; | |
9536 | } | |
9537 | _ACEOF | |
7083c021 | 9538 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9539 | charybdis_cv_c_gcc_w_redundant_decls=yes |
9540 | else | |
7083c021 | 9541 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 9542 | fi |
631ef239 | 9543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9544 | CFLAGS="${oldcflags}" |
9545 | fi | |
9546 | ||
9547 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
9548 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9550 | $as_echo "ok" >&6; } | |
212380e3 AC |
9551 | else |
9552 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
9553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9554 | $as_echo "no" >&6; } | |
212380e3 AC |
9555 | fi |
9556 | else | |
7083c021 AC |
9557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9558 | $as_echo "no" >&6; } | |
212380e3 AC |
9559 | fi |
9560 | ||
9561 | ||
7083c021 AC |
9562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
9563 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
9564 | if test "${GCC-no}" = yes |
9565 | then | |
b6d0720c | 9566 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 9567 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9568 | else |
9569 | ||
9570 | oldcflags="${CFLAGS-}" | |
9571 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 9572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9573 | /* end confdefs.h. */ |
9574 | ||
9575 | #include <string.h> | |
9576 | #include <stdio.h> | |
9577 | int main(void); | |
9578 | ||
9579 | int | |
9580 | main () | |
9581 | { | |
9582 | ||
b1fc1658 | 9583 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9584 | |
9585 | ; | |
9586 | return 0; | |
9587 | } | |
9588 | _ACEOF | |
7083c021 | 9589 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9590 | charybdis_cv_c_gcc_w_float_equal=yes |
9591 | else | |
7083c021 | 9592 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 9593 | fi |
631ef239 | 9594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9595 | CFLAGS="${oldcflags}" |
9596 | fi | |
9597 | ||
9598 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
9599 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
9600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9601 | $as_echo "ok" >&6; } | |
212380e3 AC |
9602 | else |
9603 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
9604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9605 | $as_echo "no" >&6; } | |
212380e3 AC |
9606 | fi |
9607 | else | |
7083c021 AC |
9608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9609 | $as_echo "no" >&6; } | |
212380e3 AC |
9610 | fi |
9611 | ||
9612 | ||
7083c021 AC |
9613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
9614 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
9615 | if test "${GCC-no}" = yes |
9616 | then | |
b6d0720c | 9617 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 9618 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9619 | else |
9620 | ||
9621 | oldcflags="${CFLAGS-}" | |
4a584d41 | 9622 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 9623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9624 | /* end confdefs.h. */ |
9625 | ||
9626 | #include <string.h> | |
9627 | #include <stdio.h> | |
9628 | int main(void); | |
9629 | ||
9630 | int | |
9631 | main () | |
9632 | { | |
7083c021 AC |
9633 | |
9634 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
9635 | ||
212380e3 AC |
9636 | ; |
9637 | return 0; | |
9638 | } | |
9639 | _ACEOF | |
7083c021 AC |
9640 | if ac_fn_c_try_compile "$LINENO"; then : |
9641 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 9642 | else |
7083c021 AC |
9643 | charybdis_cv_c_gcc_w_format=no |
9644 | fi | |
9645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9646 | CFLAGS="${oldcflags}" | |
9647 | fi | |
9648 | ||
9649 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
9650 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
9652 | $as_echo "ok" >&6; } | |
9653 | else | |
9654 | charybdis_cv_c_gcc_w_format='' | |
9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9656 | $as_echo "no" >&6; } | |
9657 | fi | |
9658 | else | |
9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9660 | $as_echo "no" >&6; } | |
9661 | fi | |
9662 | ||
9663 | ||
9664 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 9665 | |
212380e3 | 9666 | fi |
631ef239 | 9667 | |
7083c021 AC |
9668 | |
9669 | if test "$shared_modules" = no; then | |
9670 | DYNLINK_C="" | |
9671 | MOD_TARGET="libmodules.a" | |
9672 | MODULES_LIBS="../modules/libmodules.a" | |
9673 | SEDOBJ="" | |
9674 | ||
9675 | $as_echo "#define STATIC_MODULES 1" >>confdefs.h | |
9676 | ||
9677 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5 | |
9678 | $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
212380e3 | 9679 | fi |
7083c021 AC |
9680 | |
9681 | if test "$shared_modules" = yes; then | |
9682 | ||
9683 | ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist" | |
b6d0720c | 9684 | if test "x$ac_cv_func_nlist" = xyes; then : |
7083c021 | 9685 | |
212380e3 | 9686 | else |
7083c021 AC |
9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5 |
9688 | $as_echo_n "checking for nlist in -ldl... " >&6; } | |
b6d0720c | 9689 | if ${ac_cv_lib_dl_nlist+:} false; then : |
7083c021 | 9690 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9691 | else |
9692 | ac_check_lib_save_LIBS=$LIBS | |
9693 | LIBS="-ldl $LIBS" | |
7083c021 | 9694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9695 | /* end confdefs.h. */ |
9696 | ||
631ef239 AC |
9697 | /* Override any GCC internal prototype to avoid an error. |
9698 | Use char because int might match the return type of a GCC | |
9699 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9700 | #ifdef __cplusplus |
9701 | extern "C" | |
9702 | #endif | |
212380e3 AC |
9703 | char nlist (); |
9704 | int | |
9705 | main () | |
9706 | { | |
631ef239 | 9707 | return nlist (); |
212380e3 AC |
9708 | ; |
9709 | return 0; | |
9710 | } | |
9711 | _ACEOF | |
7083c021 | 9712 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
9713 | ac_cv_lib_dl_nlist=yes |
9714 | else | |
7083c021 | 9715 | ac_cv_lib_dl_nlist=no |
212380e3 | 9716 | fi |
7083c021 AC |
9717 | rm -f core conftest.err conftest.$ac_objext \ |
9718 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
9719 | LIBS=$ac_check_lib_save_LIBS |
9720 | fi | |
7083c021 AC |
9721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5 |
9722 | $as_echo "$ac_cv_lib_dl_nlist" >&6; } | |
b6d0720c | 9723 | if test "x$ac_cv_lib_dl_nlist" = xyes; then : |
212380e3 AC |
9724 | nlist_lib="-ldl" |
9725 | else | |
7083c021 AC |
9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 |
9727 | $as_echo_n "checking for nlist in -lelf... " >&6; } | |
b6d0720c | 9728 | if ${ac_cv_lib_elf_nlist+:} false; then : |
7083c021 | 9729 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9730 | else |
9731 | ac_check_lib_save_LIBS=$LIBS | |
9732 | LIBS="-lelf $LIBS" | |
7083c021 | 9733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9734 | /* end confdefs.h. */ |
9735 | ||
631ef239 AC |
9736 | /* Override any GCC internal prototype to avoid an error. |
9737 | Use char because int might match the return type of a GCC | |
9738 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9739 | #ifdef __cplusplus |
9740 | extern "C" | |
9741 | #endif | |
212380e3 AC |
9742 | char nlist (); |
9743 | int | |
9744 | main () | |
9745 | { | |
631ef239 | 9746 | return nlist (); |
212380e3 AC |
9747 | ; |
9748 | return 0; | |
9749 | } | |
9750 | _ACEOF | |
7083c021 | 9751 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
9752 | ac_cv_lib_elf_nlist=yes |
9753 | else | |
7083c021 | 9754 | ac_cv_lib_elf_nlist=no |
212380e3 | 9755 | fi |
7083c021 AC |
9756 | rm -f core conftest.err conftest.$ac_objext \ |
9757 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
9758 | LIBS=$ac_check_lib_save_LIBS |
9759 | fi | |
7083c021 AC |
9760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 |
9761 | $as_echo "$ac_cv_lib_elf_nlist" >&6; } | |
b6d0720c | 9762 | if test "x$ac_cv_lib_elf_nlist" = xyes; then : |
212380e3 AC |
9763 | nlist_lib="-lelf" |
9764 | fi | |
9765 | ||
9766 | ||
9767 | fi | |
9768 | ||
9769 | ||
9770 | fi | |
9771 | ||
9772 | ||
7083c021 | 9773 | ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default" |
b6d0720c | 9774 | if test "x$ac_cv_header_libelf_nlist_h" = xyes; then : |
212380e3 AC |
9775 | nlist_h="libelf/nlist.h" |
9776 | fi | |
9777 | ||
9778 | ||
7083c021 | 9779 | ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default" |
b6d0720c | 9780 | if test "x$ac_cv_header_elf_nlist_h" = xyes; then : |
212380e3 AC |
9781 | nlist_h="elf/nlist.h" |
9782 | fi | |
9783 | ||
9784 | ||
7083c021 | 9785 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
b6d0720c | 9786 | if test "x$ac_cv_header_nlist_h" = xyes; then : |
212380e3 AC |
9787 | nlist_h="nlist.h" |
9788 | fi | |
9789 | ||
9790 | ||
9791 | if test x"$nlist_h" = "x"; then | |
9792 | ||
9793 | cat >>confdefs.h <<_ACEOF | |
9794 | #define SYMBOL_PREFIX "" | |
9795 | _ACEOF | |
9796 | ||
9797 | else | |
7083c021 AC |
9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5 |
9799 | $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; } | |
b6d0720c | 9800 | if ${symbol_underscores+:} false; then : |
7083c021 | 9801 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9802 | else |
9803 | ||
9804 | cat << EOF > conftest.c | |
9805 | #include <$nlist_h> | |
9806 | #include <stdio.h> | |
9807 | #include <stdlib.h> | |
9808 | void _modinit(void); | |
9809 | int main(int argc, char *argv[]) { | |
9810 | int i; | |
9811 | struct nlist nl[5]; | |
9812 | ||
9813 | /* fill the names in this way, so it'll work almost everywhere */ | |
9814 | nl[0].n_name = "_modinit"; | |
9815 | nl[1].n_name = "__modinit"; | |
9816 | nl[2].n_name = "___modinit"; | |
9817 | nl[3].n_name = "____modinit"; | |
9818 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
9819 | ||
9820 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
9821 | for(i = 0; i < 4; i++) { | |
9822 | if(nl[i].n_value != NULL) | |
9823 | { | |
9824 | int j; | |
9825 | for(j = 0; j < i; j++) | |
9826 | printf("_"); | |
9827 | exit(i); | |
9828 | } | |
9829 | } | |
9830 | exit(-1); | |
9831 | } | |
9832 | void _modinit(void) { return; } | |
9833 | EOF | |
9834 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
9835 | symbol_underscores=`./conftest conftest` | |
7083c021 AC |
9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5 |
9837 | $as_echo "$symbol_underscores" >&6; } | |
212380e3 AC |
9838 | $RM -f conftest conftest.c |
9839 | ||
9840 | fi | |
9841 | ||
9842 | ||
9843 | cat >>confdefs.h <<_ACEOF | |
9844 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
9845 | _ACEOF | |
9846 | ||
9847 | fi | |
9848 | fi | |
9849 | ||
d2c5159a JT |
9850 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
9851 | ||
212380e3 AC |
9852 | |
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | if test "$prefix" = "NONE"; then | |
9866 | ||
9867 | cat >>confdefs.h <<_ACEOF | |
9868 | #define IRCD_PREFIX "$ac_default_prefix" | |
9869 | _ACEOF | |
9870 | ||
9871 | ||
9872 | else | |
9873 | ||
9874 | ||
9875 | prefix=`echo $prefix | sed 's/\/$//'` | |
9876 | ||
9877 | cat >>confdefs.h <<_ACEOF | |
9878 | #define IRCD_PREFIX "$prefix" | |
9879 | _ACEOF | |
9880 | ||
9881 | ||
9882 | fi | |
9883 | ||
2eff3833 | 9884 | ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile" |
9f9b7042 | 9885 | |
2eff3833 | 9886 | ac_config_commands="$ac_config_commands tools/genssl_chmod" |
212380e3 AC |
9887 | |
9888 | ||
9889 | cat >confcache <<\_ACEOF | |
9890 | # This file is a shell script that caches the results of configure | |
9891 | # tests run on this system so they can be shared between configure | |
9892 | # scripts and configure runs, see configure's option --config-cache. | |
9893 | # It is not useful on other systems. If it contains results you don't | |
9894 | # want to keep, you may remove or edit it. | |
9895 | # | |
9896 | # config.status only pays attention to the cache file if you give it | |
9897 | # the --recheck option to rerun configure. | |
9898 | # | |
9899 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9900 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9901 | # following values. | |
9902 | ||
9903 | _ACEOF | |
9904 | ||
9905 | # The following way of writing the cache mishandles newlines in values, | |
9906 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 9907 | # So, we kill variables containing newlines. |
212380e3 AC |
9908 | # Ultrix sh set writes to stderr and can't be redirected directly, |
9909 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
9910 | ( |
9911 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9912 | eval ac_val=\$$ac_var | |
9913 | case $ac_val in #( | |
9914 | *${as_nl}*) | |
9915 | case $ac_var in #( | |
7083c021 AC |
9916 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
9917 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
9918 | esac |
9919 | case $ac_var in #( | |
9920 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
9921 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
9922 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
9923 | esac ;; |
9924 | esac | |
9925 | done | |
9926 | ||
212380e3 | 9927 | (set) 2>&1 | |
631ef239 AC |
9928 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9929 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
9930 | # `set' does not quote correctly, so add quotes: double-quote |
9931 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
9932 | sed -n \ |
9933 | "s/'/'\\\\''/g; | |
9934 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 9935 | ;; #( |
212380e3 AC |
9936 | *) |
9937 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 9938 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 9939 | ;; |
631ef239 AC |
9940 | esac | |
9941 | sort | |
9942 | ) | | |
212380e3 | 9943 | sed ' |
631ef239 | 9944 | /^ac_cv_env_/b end |
212380e3 | 9945 | t clear |
631ef239 | 9946 | :clear |
212380e3 AC |
9947 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
9948 | t end | |
631ef239 AC |
9949 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9950 | :end' >>confcache | |
9951 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9952 | if test -w "$cache_file"; then | |
b6d0720c | 9953 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
9955 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
9956 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
9957 | cat confcache >"$cache_file" | |
9958 | else | |
9959 | case $cache_file in #( | |
9960 | */* | ?:*) | |
9961 | mv -f confcache "$cache_file"$$ && | |
9962 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
9963 | *) | |
9964 | mv -f confcache "$cache_file" ;; | |
9965 | esac | |
9966 | fi | |
9967 | fi | |
212380e3 | 9968 | else |
7083c021 AC |
9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
9970 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
9971 | fi |
9972 | fi | |
9973 | rm -f confcache | |
9974 | ||
9975 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9976 | # Let make expand exec_prefix. | |
9977 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9978 | ||
212380e3 AC |
9979 | DEFS=-DHAVE_CONFIG_H |
9980 | ||
9981 | ac_libobjs= | |
9982 | ac_ltlibobjs= | |
b6d0720c | 9983 | U= |
212380e3 AC |
9984 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
9985 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 9986 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 9987 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
9988 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
9989 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
9990 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
9991 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
9992 | done |
9993 | LIBOBJS=$ac_libobjs | |
9994 | ||
9995 | LTLIBOBJS=$ac_ltlibobjs | |
9996 | ||
9997 | ||
9998 | ||
7083c021 AC |
9999 | |
10000 | ||
b6d0720c | 10001 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 10002 | ac_write_fail=0 |
212380e3 AC |
10003 | ac_clean_files_save=$ac_clean_files |
10004 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
10006 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10007 | as_write_fail=0 | |
10008 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
10009 | #! $SHELL |
10010 | # Generated by $as_me. | |
10011 | # Run this file to recreate the current configuration. | |
10012 | # Compiler output produced by configure, useful for debugging | |
10013 | # configure, is in config.log if it exists. | |
10014 | ||
10015 | debug=false | |
10016 | ac_cs_recheck=false | |
10017 | ac_cs_silent=false | |
212380e3 | 10018 | |
7083c021 AC |
10019 | SHELL=\${CONFIG_SHELL-$SHELL} |
10020 | export SHELL | |
10021 | _ASEOF | |
10022 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10023 | ## -------------------- ## | |
10024 | ## M4sh Initialization. ## | |
10025 | ## -------------------- ## | |
212380e3 | 10026 | |
631ef239 AC |
10027 | # Be more Bourne compatible |
10028 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 10029 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
10030 | emulate sh |
10031 | NULLCMD=: | |
7083c021 | 10032 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
10033 | # is contrary to our usage. Disable this feature. |
10034 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 10035 | setopt NO_GLOB_SUBST |
212380e3 | 10036 | else |
7083c021 AC |
10037 | case `(set -o) 2>/dev/null` in #( |
10038 | *posix*) : | |
10039 | set -o posix ;; #( | |
10040 | *) : | |
10041 | ;; | |
631ef239 | 10042 | esac |
212380e3 AC |
10043 | fi |
10044 | ||
10045 | ||
7083c021 AC |
10046 | as_nl=' |
10047 | ' | |
10048 | export as_nl | |
10049 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10050 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10051 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10052 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
10053 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
10054 | # but without wasting forks for bash or zsh. | |
10055 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10056 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10057 | as_echo='print -r --' | |
10058 | as_echo_n='print -rn --' | |
10059 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10060 | as_echo='printf %s\n' | |
10061 | as_echo_n='printf %s' | |
10062 | else | |
10063 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10064 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10065 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 10066 | else |
7083c021 AC |
10067 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10068 | as_echo_n_body='eval | |
10069 | arg=$1; | |
10070 | case $arg in #( | |
10071 | *"$as_nl"*) | |
10072 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10073 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10074 | esac; | |
10075 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10076 | ' | |
10077 | export as_echo_n_body | |
10078 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 10079 | fi |
7083c021 AC |
10080 | export as_echo_body |
10081 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
10082 | fi |
10083 | ||
7083c021 AC |
10084 | # The user is always right. |
10085 | if test "${PATH_SEPARATOR+set}" != set; then | |
10086 | PATH_SEPARATOR=: | |
10087 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10088 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10089 | PATH_SEPARATOR=';' | |
10090 | } | |
631ef239 AC |
10091 | fi |
10092 | ||
10093 | ||
10094 | # IFS | |
10095 | # We need space, tab and new line, in precisely that order. Quoting is | |
10096 | # there to prevent editors from complaining about space-tab. | |
10097 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10098 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
10099 | IFS=" "" $as_nl" |
10100 | ||
10101 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 10102 | as_myself= |
7083c021 | 10103 | case $0 in #(( |
631ef239 AC |
10104 | *[\\/]* ) as_myself=$0 ;; |
10105 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10106 | for as_dir in $PATH | |
10107 | do | |
10108 | IFS=$as_save_IFS | |
10109 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
10110 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10111 | done | |
631ef239 AC |
10112 | IFS=$as_save_IFS |
10113 | ||
10114 | ;; | |
10115 | esac | |
10116 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10117 | # in which case we are not to be found in the path. | |
10118 | if test "x$as_myself" = x; then | |
10119 | as_myself=$0 | |
10120 | fi | |
10121 | if test ! -f "$as_myself"; then | |
7083c021 AC |
10122 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
10123 | exit 1 | |
631ef239 AC |
10124 | fi |
10125 | ||
7083c021 AC |
10126 | # Unset variables that we do not need and which cause bugs (e.g. in |
10127 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10128 | # suppresses any "Segmentation fault" message there. '((' could | |
10129 | # trigger a bug in pdksh 5.2.14. | |
10130 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10131 | do eval test x\${$as_var+set} = xset \ | |
10132 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 10133 | done |
212380e3 AC |
10134 | PS1='$ ' |
10135 | PS2='> ' | |
10136 | PS4='+ ' | |
10137 | ||
7083c021 AC |
10138 | # NLS nuisances. |
10139 | LC_ALL=C | |
10140 | export LC_ALL | |
10141 | LANGUAGE=C | |
10142 | export LANGUAGE | |
10143 | ||
10144 | # CDPATH. | |
10145 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10146 | ||
10147 | ||
b6d0720c AC |
10148 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
10149 | # ---------------------------------------- | |
7083c021 AC |
10150 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
10151 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 10152 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
10153 | as_fn_error () |
10154 | { | |
b6d0720c AC |
10155 | as_status=$1; test $as_status -eq 0 && as_status=1 |
10156 | if test "$4"; then | |
10157 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10158 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 10159 | fi |
b6d0720c | 10160 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
10161 | as_fn_exit $as_status |
10162 | } # as_fn_error | |
10163 | ||
10164 | ||
10165 | # as_fn_set_status STATUS | |
10166 | # ----------------------- | |
10167 | # Set $? to STATUS, without forking. | |
10168 | as_fn_set_status () | |
10169 | { | |
10170 | return $1 | |
10171 | } # as_fn_set_status | |
10172 | ||
10173 | # as_fn_exit STATUS | |
10174 | # ----------------- | |
10175 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10176 | as_fn_exit () | |
10177 | { | |
10178 | set +e | |
10179 | as_fn_set_status $1 | |
10180 | exit $1 | |
10181 | } # as_fn_exit | |
10182 | ||
10183 | # as_fn_unset VAR | |
10184 | # --------------- | |
10185 | # Portably unset VAR. | |
10186 | as_fn_unset () | |
10187 | { | |
10188 | { eval $1=; unset $1;} | |
10189 | } | |
10190 | as_unset=as_fn_unset | |
10191 | # as_fn_append VAR VALUE | |
10192 | # ---------------------- | |
10193 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10194 | # advantage of any shell optimizations that allow amortized linear growth over | |
10195 | # repeated appends, instead of the typical quadratic growth present in naive | |
10196 | # implementations. | |
10197 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10198 | eval 'as_fn_append () | |
10199 | { | |
10200 | eval $1+=\$2 | |
10201 | }' | |
10202 | else | |
10203 | as_fn_append () | |
10204 | { | |
10205 | eval $1=\$$1\$2 | |
10206 | } | |
10207 | fi # as_fn_append | |
10208 | ||
10209 | # as_fn_arith ARG... | |
10210 | # ------------------ | |
10211 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10212 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10213 | # must be portable across $(()) and expr. | |
10214 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10215 | eval 'as_fn_arith () | |
10216 | { | |
10217 | as_val=$(( $* )) | |
10218 | }' | |
10219 | else | |
10220 | as_fn_arith () | |
10221 | { | |
10222 | as_val=`expr "$@" || test $? -eq 1` | |
10223 | } | |
10224 | fi # as_fn_arith | |
10225 | ||
212380e3 | 10226 | |
631ef239 AC |
10227 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10228 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
10229 | as_expr=expr |
10230 | else | |
10231 | as_expr=false | |
10232 | fi | |
10233 | ||
631ef239 | 10234 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
10235 | as_basename=basename |
10236 | else | |
10237 | as_basename=false | |
10238 | fi | |
10239 | ||
7083c021 AC |
10240 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10241 | as_dirname=dirname | |
10242 | else | |
10243 | as_dirname=false | |
10244 | fi | |
212380e3 | 10245 | |
631ef239 | 10246 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
10247 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10248 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 10249 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 10250 | $as_echo X/"$0" | |
631ef239 AC |
10251 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10252 | s//\1/ | |
10253 | q | |
10254 | } | |
10255 | /^X\/\(\/\/\)$/{ | |
10256 | s//\1/ | |
10257 | q | |
10258 | } | |
10259 | /^X\/\(\/\).*/{ | |
10260 | s//\1/ | |
10261 | q | |
10262 | } | |
10263 | s/.*/./; q'` | |
212380e3 | 10264 | |
7083c021 AC |
10265 | # Avoid depending upon Character Ranges. |
10266 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10267 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10268 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10269 | as_cr_digits='0123456789' | |
10270 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
10271 | |
10272 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 10273 | case `echo -n x` in #((((( |
631ef239 | 10274 | -n*) |
7083c021 | 10275 | case `echo 'xy\c'` in |
631ef239 | 10276 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
10277 | xy) ECHO_C='\c';; |
10278 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10279 | ECHO_T=' ';; | |
631ef239 AC |
10280 | esac;; |
10281 | *) | |
10282 | ECHO_N='-n';; | |
212380e3 AC |
10283 | esac |
10284 | ||
212380e3 | 10285 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
10286 | if test -d conf$$.dir; then |
10287 | rm -f conf$$.dir/conf$$.file | |
10288 | else | |
10289 | rm -f conf$$.dir | |
7083c021 AC |
10290 | mkdir conf$$.dir 2>/dev/null |
10291 | fi | |
10292 | if (echo >conf$$.file) 2>/dev/null; then | |
10293 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10294 | as_ln_s='ln -s' | |
10295 | # ... but there are two gotchas: | |
10296 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10297 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 10298 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 10299 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 10300 | as_ln_s='cp -pR' |
7083c021 AC |
10301 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10302 | as_ln_s=ln | |
10303 | else | |
2eff3833 | 10304 | as_ln_s='cp -pR' |
7083c021 | 10305 | fi |
212380e3 | 10306 | else |
2eff3833 | 10307 | as_ln_s='cp -pR' |
212380e3 | 10308 | fi |
631ef239 AC |
10309 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10310 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 10311 | |
7083c021 AC |
10312 | |
10313 | # as_fn_mkdir_p | |
10314 | # ------------- | |
10315 | # Create "$as_dir" as a directory, including parents if necessary. | |
10316 | as_fn_mkdir_p () | |
10317 | { | |
10318 | ||
10319 | case $as_dir in #( | |
10320 | -*) as_dir=./$as_dir;; | |
10321 | esac | |
10322 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10323 | as_dirs= | |
10324 | while :; do | |
10325 | case $as_dir in #( | |
10326 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10327 | *) as_qdir=$as_dir;; | |
10328 | esac | |
10329 | as_dirs="'$as_qdir' $as_dirs" | |
10330 | as_dir=`$as_dirname -- "$as_dir" || | |
10331 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10332 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10333 | X"$as_dir" : 'X\(//\)$' \| \ | |
10334 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10335 | $as_echo X"$as_dir" | | |
10336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10337 | s//\1/ | |
10338 | q | |
10339 | } | |
10340 | /^X\(\/\/\)[^/].*/{ | |
10341 | s//\1/ | |
10342 | q | |
10343 | } | |
10344 | /^X\(\/\/\)$/{ | |
10345 | s//\1/ | |
10346 | q | |
10347 | } | |
10348 | /^X\(\/\).*/{ | |
10349 | s//\1/ | |
10350 | q | |
10351 | } | |
10352 | s/.*/./; q'` | |
10353 | test -d "$as_dir" && break | |
10354 | done | |
10355 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 10356 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
10357 | |
10358 | ||
10359 | } # as_fn_mkdir_p | |
212380e3 | 10360 | if mkdir -p . 2>/dev/null; then |
7083c021 | 10361 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
10362 | else |
10363 | test -d ./-p && rmdir ./-p | |
10364 | as_mkdir_p=false | |
10365 | fi | |
10366 | ||
2eff3833 JT |
10367 | |
10368 | # as_fn_executable_p FILE | |
10369 | # ----------------------- | |
10370 | # Test if FILE is an executable regular file. | |
10371 | as_fn_executable_p () | |
10372 | { | |
10373 | test -f "$1" && test -x "$1" | |
10374 | } # as_fn_executable_p | |
10375 | as_test_x='test -x' | |
10376 | as_executable_p=as_fn_executable_p | |
212380e3 AC |
10377 | |
10378 | # Sed expression to map a string onto a valid CPP name. | |
10379 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10380 | ||
10381 | # Sed expression to map a string onto a valid variable name. | |
10382 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10383 | ||
10384 | ||
212380e3 | 10385 | exec 6>&1 |
7083c021 AC |
10386 | ## ----------------------------------- ## |
10387 | ## Main body of $CONFIG_STATUS script. ## | |
10388 | ## ----------------------------------- ## | |
10389 | _ASEOF | |
10390 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 10391 | |
7083c021 AC |
10392 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10393 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 10394 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
10395 | # values after options handling. |
10396 | ac_log=" | |
dc9aebf4 | 10397 | This file was extended by charybdis $as_me 3.5.0-dev, which was |
2eff3833 | 10398 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 AC |
10399 | |
10400 | CONFIG_FILES = $CONFIG_FILES | |
10401 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10402 | CONFIG_LINKS = $CONFIG_LINKS | |
10403 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10404 | $ $0 $@ | |
10405 | ||
631ef239 AC |
10406 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10407 | " | |
10408 | ||
212380e3 AC |
10409 | _ACEOF |
10410 | ||
7083c021 AC |
10411 | case $ac_config_files in *" |
10412 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10413 | esac | |
10414 | ||
10415 | case $ac_config_headers in *" | |
10416 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10417 | esac | |
10418 | ||
10419 | ||
10420 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 10421 | # Files that config.status was made for. |
631ef239 AC |
10422 | config_files="$ac_config_files" |
10423 | config_headers="$ac_config_headers" | |
9f9b7042 | 10424 | config_commands="$ac_config_commands" |
212380e3 | 10425 | |
631ef239 | 10426 | _ACEOF |
212380e3 | 10427 | |
7083c021 | 10428 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 10429 | ac_cs_usage="\ |
7083c021 AC |
10430 | \`$as_me' instantiates files and other configuration actions |
10431 | from templates according to the current configuration. Unless the files | |
10432 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 10433 | |
7083c021 | 10434 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
10435 | |
10436 | -h, --help print this help, then exit | |
631ef239 | 10437 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 10438 | --config print configuration, then exit |
7083c021 AC |
10439 | -q, --quiet, --silent |
10440 | do not print progress messages | |
212380e3 AC |
10441 | -d, --debug don't remove temporary files |
10442 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
10443 | --file=FILE[:TEMPLATE] |
10444 | instantiate the configuration file FILE | |
10445 | --header=FILE[:TEMPLATE] | |
10446 | instantiate the configuration header FILE | |
212380e3 AC |
10447 | |
10448 | Configuration files: | |
10449 | $config_files | |
10450 | ||
10451 | Configuration headers: | |
10452 | $config_headers | |
10453 | ||
9f9b7042 NPB |
10454 | Configuration commands: |
10455 | $config_commands | |
10456 | ||
7083c021 | 10457 | Report bugs to the package provider." |
212380e3 | 10458 | |
631ef239 | 10459 | _ACEOF |
7083c021 | 10460 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 10461 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 10462 | ac_cs_version="\\ |
dc9aebf4 | 10463 | charybdis config.status 3.5.0-dev |
2eff3833 | 10464 | configured by $0, generated by GNU Autoconf 2.69, |
6fb6bd15 | 10465 | with options \\"\$ac_cs_config\\" |
212380e3 | 10466 | |
2eff3833 | 10467 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
10468 | This config.status script is free software; the Free Software Foundation |
10469 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
10470 | |
10471 | ac_pwd='$ac_pwd' | |
10472 | srcdir='$srcdir' | |
10473 | INSTALL='$INSTALL' | |
7083c021 | 10474 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
10475 | _ACEOF |
10476 | ||
7083c021 AC |
10477 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10478 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
10479 | ac_need_defaults=: |
10480 | while test $# != 0 | |
10481 | do | |
10482 | case $1 in | |
b6d0720c | 10483 | --*=?*) |
631ef239 AC |
10484 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10485 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
10486 | ac_shift=: |
10487 | ;; | |
b6d0720c AC |
10488 | --*=) |
10489 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10490 | ac_optarg= | |
10491 | ac_shift=: | |
10492 | ;; | |
631ef239 | 10493 | *) |
212380e3 AC |
10494 | ac_option=$1 |
10495 | ac_optarg=$2 | |
10496 | ac_shift=shift | |
10497 | ;; | |
212380e3 AC |
10498 | esac |
10499 | ||
10500 | case $ac_option in | |
10501 | # Handling of the options. | |
212380e3 AC |
10502 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10503 | ac_cs_recheck=: ;; | |
631ef239 | 10504 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 10505 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
10506 | --config | --confi | --conf | --con | --co | --c ) |
10507 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 10508 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
10509 | debug=: ;; |
10510 | --file | --fil | --fi | --f ) | |
10511 | $ac_shift | |
7083c021 AC |
10512 | case $ac_optarg in |
10513 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 10514 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
10515 | esac |
10516 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
10517 | ac_need_defaults=false;; |
10518 | --header | --heade | --head | --hea ) | |
10519 | $ac_shift | |
7083c021 AC |
10520 | case $ac_optarg in |
10521 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10522 | esac | |
10523 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 10524 | ac_need_defaults=false;; |
631ef239 AC |
10525 | --he | --h) |
10526 | # Conflict between --help and --header | |
b6d0720c | 10527 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 10528 | Try \`$0 --help' for more information.";; |
631ef239 | 10529 | --help | --hel | -h ) |
7083c021 | 10530 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
10531 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10532 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10533 | ac_cs_silent=: ;; | |
10534 | ||
10535 | # This is an error. | |
b6d0720c | 10536 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 10537 | Try \`$0 --help' for more information." ;; |
212380e3 | 10538 | |
7083c021 | 10539 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 10540 | ac_need_defaults=false ;; |
212380e3 AC |
10541 | |
10542 | esac | |
10543 | shift | |
10544 | done | |
10545 | ||
10546 | ac_configure_extra_args= | |
10547 | ||
10548 | if $ac_cs_silent; then | |
10549 | exec 6>/dev/null | |
10550 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10551 | fi | |
10552 | ||
10553 | _ACEOF | |
7083c021 | 10554 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 10555 | if \$ac_cs_recheck; then |
2eff3833 | 10556 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
10557 | shift |
10558 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10559 | CONFIG_SHELL='$SHELL' | |
631ef239 | 10560 | export CONFIG_SHELL |
7083c021 | 10561 | exec "\$@" |
212380e3 AC |
10562 | fi |
10563 | ||
10564 | _ACEOF | |
7083c021 | 10565 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10566 | exec 5>>config.log |
10567 | { | |
10568 | echo | |
10569 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10570 | ## Running $as_me. ## | |
10571 | _ASBOX | |
7083c021 | 10572 | $as_echo "$ac_log" |
631ef239 | 10573 | } >&5 |
212380e3 | 10574 | |
631ef239 | 10575 | _ACEOF |
7083c021 | 10576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 | 10577 | _ACEOF |
212380e3 | 10578 | |
7083c021 | 10579 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10580 | |
10581 | # Handling of arguments. | |
212380e3 AC |
10582 | for ac_config_target in $ac_config_targets |
10583 | do | |
631ef239 AC |
10584 | case $ac_config_target in |
10585 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
10586 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7083c021 | 10587 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 10588 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 10589 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
631ef239 AC |
10590 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
10591 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
10592 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
2eff3833 | 10593 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; |
631ef239 AC |
10594 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
10595 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
2eff3833 | 10596 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; |
631ef239 | 10597 | |
b6d0720c | 10598 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
10599 | esac |
10600 | done | |
10601 | ||
631ef239 | 10602 | |
212380e3 AC |
10603 | # If the user did not use the arguments to specify the items to instantiate, |
10604 | # then the envvar interface is used. Set only those that are not. | |
10605 | # We use the long form for the default assignment because of an extremely | |
10606 | # bizarre bug on SunOS 4.1.3. | |
10607 | if $ac_need_defaults; then | |
10608 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10609 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9f9b7042 | 10610 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
212380e3 AC |
10611 | fi |
10612 | ||
10613 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 10614 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 10615 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
10616 | # Hook for its removal unless debugging. |
10617 | # Note that there is a small window in which the directory will not be cleaned: | |
10618 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
10619 | $debug || |
10620 | { | |
b6d0720c | 10621 | tmp= ac_tmp= |
631ef239 | 10622 | trap 'exit_status=$? |
b6d0720c AC |
10623 | : "${ac_tmp:=$tmp}" |
10624 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 10625 | ' 0 |
7083c021 | 10626 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 10627 | } |
212380e3 AC |
10628 | # Create a (secure) tmp directory for tmp files. |
10629 | ||
10630 | { | |
631ef239 | 10631 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 10632 | test -d "$tmp" |
212380e3 AC |
10633 | } || |
10634 | { | |
631ef239 AC |
10635 | tmp=./conf$$-$RANDOM |
10636 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
10637 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
10638 | ac_tmp=$tmp | |
212380e3 | 10639 | |
7083c021 AC |
10640 | # Set up the scripts for CONFIG_FILES section. |
10641 | # No need to generate them if there are no CONFIG_FILES. | |
10642 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
10643 | if test -n "$CONFIG_FILES"; then |
10644 | ||
631ef239 | 10645 | |
7083c021 AC |
10646 | ac_cr=`echo X | tr X '\015'` |
10647 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10648 | # But we know of no other shell where ac_cr would be empty at this | |
10649 | # point, so we can use a bashism as a fallback. | |
10650 | if test "x$ac_cr" = x; then | |
10651 | eval ac_cr=\$\'\\r\' | |
10652 | fi | |
10653 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10654 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 10655 | ac_cs_awk_cr='\\r' |
7083c021 AC |
10656 | else |
10657 | ac_cs_awk_cr=$ac_cr | |
10658 | fi | |
10659 | ||
b6d0720c | 10660 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 10661 | _ACEOF |
631ef239 AC |
10662 | |
10663 | ||
7083c021 AC |
10664 | { |
10665 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10666 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10667 | echo "_ACEOF" | |
10668 | } >conf$$subs.sh || | |
b6d0720c AC |
10669 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10670 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
10671 | ac_delim='%!_!# ' |
10672 | for ac_last_try in false false false false false :; do | |
7083c021 | 10673 | . ./conf$$subs.sh || |
b6d0720c | 10674 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
10675 | |
10676 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10677 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
10678 | break |
10679 | elif $ac_last_try; then | |
b6d0720c | 10680 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
10681 | else |
10682 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 10683 | fi |
631ef239 | 10684 | done |
7083c021 AC |
10685 | rm -f conf$$subs.sh |
10686 | ||
10687 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 10688 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
10689 | _ACEOF |
10690 | sed -n ' | |
10691 | h | |
10692 | s/^/S["/; s/!.*/"]=/ | |
10693 | p | |
10694 | g | |
10695 | s/^[^!]*!// | |
10696 | :repl | |
10697 | t repl | |
10698 | s/'"$ac_delim"'$// | |
10699 | t delim | |
10700 | :nl | |
10701 | h | |
6fb6bd15 | 10702 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
10703 | t more1 |
10704 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10705 | p | |
10706 | n | |
10707 | b repl | |
10708 | :more1 | |
10709 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10710 | p | |
10711 | g | |
10712 | s/.\{148\}// | |
10713 | t nl | |
10714 | :delim | |
10715 | h | |
6fb6bd15 | 10716 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
10717 | t more2 |
10718 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10719 | p | |
10720 | b | |
10721 | :more2 | |
10722 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10723 | p | |
10724 | g | |
10725 | s/.\{148\}// | |
10726 | t delim | |
10727 | ' <conf$$subs.awk | sed ' | |
10728 | /^[^""]/{ | |
10729 | N | |
10730 | s/\n// | |
10731 | } | |
10732 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10733 | rm -f conf$$subs.awk | |
10734 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10735 | _ACAWK | |
b6d0720c | 10736 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
10737 | for (key in S) S_is_set[key] = 1 |
10738 | FS = "\a" | |
212380e3 | 10739 | |
7083c021 AC |
10740 | } |
10741 | { | |
10742 | line = $ 0 | |
10743 | nfields = split(line, field, "@") | |
10744 | substed = 0 | |
10745 | len = length(field[1]) | |
10746 | for (i = 2; i < nfields; i++) { | |
10747 | key = field[i] | |
10748 | keylen = length(key) | |
10749 | if (S_is_set[key]) { | |
10750 | value = S[key] | |
10751 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10752 | len += length(value) + length(field[++i]) | |
10753 | substed = 1 | |
10754 | } else | |
10755 | len += 1 + keylen | |
10756 | } | |
631ef239 | 10757 | |
7083c021 AC |
10758 | print line |
10759 | } | |
10760 | ||
10761 | _ACAWK | |
631ef239 | 10762 | _ACEOF |
7083c021 AC |
10763 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10764 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10765 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10766 | else | |
10767 | cat | |
b6d0720c AC |
10768 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
10769 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 10770 | _ACEOF |
631ef239 | 10771 | |
b6d0720c AC |
10772 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
10773 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
10774 | # trailing colons and then remove the whole line if VPATH becomes empty |
10775 | # (actually we leave an empty line to preserve line numbers). | |
10776 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
10777 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
10778 | h | |
10779 | s/// | |
10780 | s/^/:/ | |
10781 | s/[ ]*$/:/ | |
10782 | s/:\$(srcdir):/:/g | |
10783 | s/:\${srcdir}:/:/g | |
10784 | s/:@srcdir@:/:/g | |
10785 | s/^:*// | |
631ef239 | 10786 | s/:*$// |
b6d0720c AC |
10787 | x |
10788 | s/\(=[ ]*\).*/\1/ | |
10789 | G | |
10790 | s/\n// | |
631ef239 AC |
10791 | s/^[^=]*=[ ]*$// |
10792 | }' | |
10793 | fi | |
10794 | ||
7083c021 | 10795 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10796 | fi # test -n "$CONFIG_FILES" |
10797 | ||
7083c021 AC |
10798 | # Set up the scripts for CONFIG_HEADERS section. |
10799 | # No need to generate them if there are no CONFIG_HEADERS. | |
10800 | # This happens for instance with `./config.status Makefile'. | |
10801 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 10802 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
10803 | BEGIN { |
10804 | _ACEOF | |
10805 | ||
10806 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
10807 | # here-document in config.status, that substitutes the proper values into | |
10808 | # config.h.in to produce config.h. | |
10809 | ||
10810 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
10811 | # handling of long lines. | |
10812 | ac_delim='%!_!# ' | |
10813 | for ac_last_try in false false :; do | |
b6d0720c AC |
10814 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
10815 | if test -z "$ac_tt"; then | |
7083c021 AC |
10816 | break |
10817 | elif $ac_last_try; then | |
b6d0720c | 10818 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
10819 | else |
10820 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10821 | fi | |
10822 | done | |
10823 | ||
10824 | # For the awk script, D is an array of macro values keyed by name, | |
10825 | # likewise P contains macro parameters if any. Preserve backslash | |
10826 | # newline sequences. | |
10827 | ||
10828 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10829 | sed -n ' | |
10830 | s/.\{148\}/&'"$ac_delim"'/g | |
10831 | t rset | |
10832 | :rset | |
10833 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
10834 | t def | |
10835 | d | |
10836 | :def | |
10837 | s/\\$// | |
10838 | t bsnl | |
10839 | s/["\\]/\\&/g | |
10840 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10841 | D["\1"]=" \3"/p | |
10842 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
10843 | d | |
10844 | :bsnl | |
10845 | s/["\\]/\\&/g | |
10846 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10847 | D["\1"]=" \3\\\\\\n"\\/p | |
10848 | t cont | |
10849 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
10850 | t cont | |
10851 | d | |
10852 | :cont | |
10853 | n | |
10854 | s/.\{148\}/&'"$ac_delim"'/g | |
10855 | t clear | |
10856 | :clear | |
10857 | s/\\$// | |
10858 | t bsnlc | |
10859 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
10860 | d | |
10861 | :bsnlc | |
10862 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
10863 | b cont | |
10864 | ' <confdefs.h | sed ' | |
10865 | s/'"$ac_delim"'/"\\\ | |
10866 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
10867 | ||
10868 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10869 | for (key in D) D_is_set[key] = 1 | |
10870 | FS = "\a" | |
10871 | } | |
10872 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
10873 | line = \$ 0 | |
10874 | split(line, arg, " ") | |
10875 | if (arg[1] == "#") { | |
10876 | defundef = arg[2] | |
10877 | mac1 = arg[3] | |
10878 | } else { | |
10879 | defundef = substr(arg[1], 2) | |
10880 | mac1 = arg[2] | |
10881 | } | |
10882 | split(mac1, mac2, "(") #) | |
10883 | macro = mac2[1] | |
10884 | prefix = substr(line, 1, index(line, defundef) - 1) | |
10885 | if (D_is_set[macro]) { | |
10886 | # Preserve the white space surrounding the "#". | |
10887 | print prefix "define", macro P[macro] D[macro] | |
10888 | next | |
10889 | } else { | |
10890 | # Replace #undef with comments. This is necessary, for example, | |
10891 | # in the case of _POSIX_SOURCE, which is predefined and required | |
10892 | # on some systems where configure will not decide to define it. | |
10893 | if (defundef == "undef") { | |
10894 | print "/*", prefix defundef, macro, "*/" | |
10895 | next | |
10896 | } | |
10897 | } | |
10898 | } | |
10899 | { print } | |
10900 | _ACAWK | |
10901 | _ACEOF | |
10902 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 10903 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
10904 | fi # test -n "$CONFIG_HEADERS" |
10905 | ||
631ef239 | 10906 | |
9f9b7042 | 10907 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
7083c021 AC |
10908 | shift |
10909 | for ac_tag | |
631ef239 AC |
10910 | do |
10911 | case $ac_tag in | |
10912 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
10913 | esac | |
10914 | case $ac_mode$ac_tag in | |
10915 | :[FHL]*:*);; | |
b6d0720c | 10916 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
10917 | :[FH]-) ac_tag=-:-;; |
10918 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 10919 | esac |
631ef239 AC |
10920 | ac_save_IFS=$IFS |
10921 | IFS=: | |
10922 | set x $ac_tag | |
10923 | IFS=$ac_save_IFS | |
10924 | shift | |
10925 | ac_file=$1 | |
10926 | shift | |
212380e3 | 10927 | |
631ef239 AC |
10928 | case $ac_mode in |
10929 | :L) ac_source=$1;; | |
10930 | :[FH]) | |
10931 | ac_file_inputs= | |
10932 | for ac_f | |
10933 | do | |
10934 | case $ac_f in | |
b6d0720c | 10935 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
10936 | *) # Look for the file first in the build tree, then in the source tree |
10937 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10938 | # because $ac_f cannot contain `:'. | |
10939 | test -f "$ac_f" || | |
10940 | case $ac_f in | |
10941 | [\\/$]*) false;; | |
10942 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10943 | esac || | |
b6d0720c | 10944 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 10945 | esac |
7083c021 AC |
10946 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
10947 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
10948 | done |
10949 | ||
10950 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10951 | # use $as_me), people would be surprised to read: | |
10952 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
10953 | configure_input='Generated from '` |
10954 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
10955 | `' by configure.' | |
631ef239 AC |
10956 | if test x"$ac_file" != x-; then |
10957 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
10959 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 10960 | fi |
7083c021 AC |
10961 | # Neutralize special characters interpreted by sed in replacement strings. |
10962 | case $configure_input in #( | |
10963 | *\&* | *\|* | *\\* ) | |
10964 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
10965 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
10966 | *) ac_sed_conf_input=$configure_input;; | |
10967 | esac | |
631ef239 AC |
10968 | |
10969 | case $ac_tag in | |
b6d0720c AC |
10970 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
10971 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
10972 | esac |
10973 | ;; | |
10974 | esac | |
10975 | ||
10976 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
10977 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10978 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10979 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 10980 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 10981 | $as_echo X"$ac_file" | |
631ef239 AC |
10982 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10983 | s//\1/ | |
10984 | q | |
10985 | } | |
10986 | /^X\(\/\/\)[^/].*/{ | |
10987 | s//\1/ | |
10988 | q | |
10989 | } | |
10990 | /^X\(\/\/\)$/{ | |
10991 | s//\1/ | |
10992 | q | |
10993 | } | |
10994 | /^X\(\/\).*/{ | |
10995 | s//\1/ | |
10996 | q | |
10997 | } | |
10998 | s/.*/./; q'` | |
7083c021 | 10999 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
11000 | ac_builddir=. |
11001 | ||
631ef239 AC |
11002 | case "$ac_dir" in |
11003 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11004 | *) | |
7083c021 | 11005 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 11006 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 11007 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
11008 | case $ac_top_builddir_sub in |
11009 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11010 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11011 | esac ;; | |
11012 | esac | |
11013 | ac_abs_top_builddir=$ac_pwd | |
11014 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11015 | # for backward compatibility: | |
11016 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
11017 | |
11018 | case $srcdir in | |
631ef239 | 11019 | .) # We are building in place. |
212380e3 | 11020 | ac_srcdir=. |
631ef239 AC |
11021 | ac_top_srcdir=$ac_top_builddir_sub |
11022 | ac_abs_top_srcdir=$ac_pwd ;; | |
11023 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 11024 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
11025 | ac_top_srcdir=$srcdir |
11026 | ac_abs_top_srcdir=$srcdir ;; | |
11027 | *) # Relative name. | |
11028 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11029 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11030 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 11031 | esac |
631ef239 | 11032 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 11033 | |
212380e3 | 11034 | |
631ef239 AC |
11035 | case $ac_mode in |
11036 | :F) | |
11037 | # | |
11038 | # CONFIG_FILE | |
11039 | # | |
212380e3 AC |
11040 | |
11041 | case $INSTALL in | |
11042 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 11043 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 11044 | esac |
631ef239 | 11045 | _ACEOF |
212380e3 | 11046 | |
7083c021 | 11047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
11048 | # If the template does not know about datarootdir, expand it. |
11049 | # FIXME: This hack should be removed a few years after 2.60. | |
11050 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
11051 | ac_sed_dataroot=' |
11052 | /datarootdir/ { | |
631ef239 AC |
11053 | p |
11054 | q | |
11055 | } | |
11056 | /@datadir@/p | |
11057 | /@docdir@/p | |
11058 | /@infodir@/p | |
11059 | /@localedir@/p | |
7083c021 AC |
11060 | /@mandir@/p' |
11061 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
11062 | *datarootdir*) ac_datarootdir_seen=yes;; |
11063 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
11064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
11065 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 11066 | _ACEOF |
7083c021 | 11067 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
11068 | ac_datarootdir_hack=' |
11069 | s&@datadir@&$datadir&g | |
11070 | s&@docdir@&$docdir&g | |
11071 | s&@infodir@&$infodir&g | |
11072 | s&@localedir@&$localedir&g | |
11073 | s&@mandir@&$mandir&g | |
7083c021 | 11074 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 11075 | esac |
212380e3 | 11076 | _ACEOF |
631ef239 AC |
11077 | |
11078 | # Neutralize VPATH when `$srcdir' = `.'. | |
11079 | # Shell code in configure.ac might set extrasub. | |
11080 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
11081 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11082 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
11083 | $extrasub |
11084 | _ACEOF | |
7083c021 | 11085 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
11086 | :t |
11087 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 11088 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 11089 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 11090 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
11091 | s&@srcdir@&$ac_srcdir&;t t |
11092 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11093 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11094 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11095 | s&@builddir@&$ac_builddir&;t t | |
11096 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11097 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11098 | s&@INSTALL@&$ac_INSTALL&;t t | |
11099 | $ac_datarootdir_hack | |
7083c021 | 11100 | " |
b6d0720c AC |
11101 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
11102 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
11103 | |
11104 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
11105 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
11106 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
11107 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 11108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 11109 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 11110 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 11111 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 11112 | |
b6d0720c | 11113 | rm -f "$ac_tmp/stdin" |
212380e3 | 11114 | case $ac_file in |
b6d0720c AC |
11115 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
11116 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 11117 | esac \ |
b6d0720c | 11118 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
11119 | ;; |
11120 | :H) | |
11121 | # | |
11122 | # CONFIG_HEADER | |
11123 | # | |
212380e3 | 11124 | if test x"$ac_file" != x-; then |
7083c021 AC |
11125 | { |
11126 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
11127 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
11128 | } >"$ac_tmp/config.h" \ | |
11129 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11130 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
11131 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
11132 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 11133 | else |
7083c021 | 11134 | rm -f "$ac_file" |
b6d0720c AC |
11135 | mv "$ac_tmp/config.h" "$ac_file" \ |
11136 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
11137 | fi |
11138 | else | |
7083c021 | 11139 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
11140 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
11141 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 11142 | fi |
631ef239 AC |
11143 | ;; |
11144 | ||
9f9b7042 NPB |
11145 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
11146 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
11147 | ;; | |
631ef239 AC |
11148 | esac |
11149 | ||
9f9b7042 NPB |
11150 | |
11151 | case $ac_file$ac_mode in | |
2eff3833 | 11152 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; |
9f9b7042 NPB |
11153 | |
11154 | esac | |
631ef239 | 11155 | done # for ac_tag |
212380e3 | 11156 | |
212380e3 | 11157 | |
7083c021 | 11158 | as_fn_exit 0 |
212380e3 | 11159 | _ACEOF |
212380e3 AC |
11160 | ac_clean_files=$ac_clean_files_save |
11161 | ||
7083c021 | 11162 | test $ac_write_fail = 0 || |
b6d0720c | 11163 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 11164 | |
212380e3 AC |
11165 | |
11166 | # configure is writing to config.log, and then calls config.status. | |
11167 | # config.status does its own redirection, appending to config.log. | |
11168 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11169 | # by configure, so config.status won't be able to write to it; its | |
11170 | # output is simply discarded. So we exec the FD to /dev/null, | |
11171 | # effectively closing config.log, so it can be properly (re)opened and | |
11172 | # appended to by config.status. When coming back to configure, we | |
11173 | # need to make the FD available again. | |
11174 | if test "$no_create" != yes; then | |
11175 | ac_cs_success=: | |
11176 | ac_config_status_args= | |
11177 | test "$silent" = yes && | |
11178 | ac_config_status_args="$ac_config_status_args --quiet" | |
11179 | exec 5>/dev/null | |
11180 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11181 | exec 5>>config.log | |
11182 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11183 | # would make configure fail if this is the last instruction. | |
b6d0720c | 11184 | $ac_cs_success || as_fn_exit 1 |
212380e3 | 11185 | fi |
7083c021 AC |
11186 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
11188 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
11189 | fi | |
b676ea3b | 11190 | |
212380e3 AC |
11191 | |
11192 | if test "$cf_openssl_version_ok" = yes; then | |
11193 | openssl="yes" | |
11194 | else | |
11195 | openssl="no" | |
11196 | fi | |
11197 | ||
11198 | if test "$shared_modules" = yes; then | |
11199 | modules=shared | |
11200 | else | |
11201 | modules=static | |
11202 | fi | |
11203 | ||
11204 | echo " | |
b6d0720c | 11205 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
11206 | Install directory : $prefix |
11207 | ||
11208 | Ziplinks : $zlib | |
11209 | OpenSSL : $openssl | |
212380e3 AC |
11210 | Socket Engine : $SELECT_TYPE |
11211 | Small network : $small_net | |
11212 | Block allocator : $balloc | |
212380e3 AC |
11213 | |
11214 | Nickname length : $NICKLEN | |
11215 | Topic length : $TOPICLEN | |
11216 | ||
b6d0720c | 11217 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 11218 | " |