]> jfr.im git - irc/unrealircd/unrealircd.git/blob - configure
Updates for new repository name of test framework.
[irc/unrealircd/unrealircd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unrealircd 4.2.4.1.
4 #
5 # Report bugs to <https://bugs.unrealircd.org/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
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'
56 else
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'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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 }
81 fi
82
83
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
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=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
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
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
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 || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
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
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;}
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
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
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
213 do
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 :
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
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."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://bugs.unrealircd.org/ about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='unrealircd'
582 PACKAGE_TARNAME='unrealircd'
583 PACKAGE_VERSION='4.2.4.1'
584 PACKAGE_STRING='unrealircd 4.2.4.1'
585 PACKAGE_BUGREPORT='https://bugs.unrealircd.org/'
586 PACKAGE_URL='https://unrealircd.org/'
587
588 ac_unique_file="src/ircd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 UNRLINCDIR
628 IRCDLIBS
629 URL
630 PTHREAD_CFLAGS
631 PTHREAD_LIBS
632 PTHREAD_CC
633 ax_pthread_config
634 host_os
635 host_vendor
636 host_cpu
637 host
638 build_os
639 build_vendor
640 build_cpu
641 build
642 CARES_LIBS
643 CARES_CFLAGS
644 ARGON2_LIBS
645 ARGON2_CFLAGS
646 PCRE2_LIBS
647 PCRE2_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 TRE_LIBS
652 TRE_CFLAGS
653 FD_SETSIZE
654 LDFLAGS_PRIVATELIBS
655 PIDFILE
656 DOCDIR
657 PERMDATADIR
658 TMPDIR
659 CACHEDIR
660 LOGDIR
661 MODULESDIR
662 CONFDIR
663 SCRIPTDIR
664 BINDIR
665 DYNAMIC_LDFLAGS
666 MODULEFLAGS
667 CRYPTOLIB
668 STRTOUL
669 EGREP
670 GREP
671 CPP
672 HARDEN_BINLDFLAGS
673 HARDEN_BINCFLAGS
674 HARDEN_LDFLAGS
675 HARDEN_CFLAGS
676 MKPASSWDLIBS
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 PKGCONFIG
685 GUNZIP
686 GMAKE
687 MAKER
688 INSTALL
689 OPENSSLPATH
690 TOUCH
691 CP
692 RM
693 BUILDDIR
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 runstatedir
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'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_hardening
737 with_nick_history
738 with_sendq
739 with_permissions
740 with_bindir
741 with_scriptdir
742 with_confdir
743 with_modulesdir
744 with_logdir
745 with_cachedir
746 with_tmpdir
747 with_datadir
748 with_docdir
749 with_pidfile
750 with_privatelibdir
751 with_maxconnections
752 enable_prefixaq
753 with_showlistmodes
754 with_shunnotices
755 with_no_operoverride
756 with_disableusermod
757 with_operoverride_verify
758 with_disable_extendedban_stacking
759 with_tre
760 with_system_tre
761 with_system_pcre2
762 with_system_argon2
763 with_system_cares
764 enable_ssl
765 enable_dynamic_linking
766 enable_werror
767 enable_asan
768 enable_libcurl
769 '
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 CPP
779 PKG_CONFIG
780 PKG_CONFIG_PATH
781 PKG_CONFIG_LIBDIR
782 TRE_CFLAGS
783 TRE_LIBS
784 PCRE2_CFLAGS
785 PCRE2_LIBS
786 ARGON2_CFLAGS
787 ARGON2_LIBS
788 CARES_CFLAGS
789 CARES_LIBS'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 runstatedir='${localstatedir}/run'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -runstatedir | --runstatedir | --runstatedi | --runstated \
1082 | --runstate | --runstat | --runsta | --runst | --runs \
1083 | --run | --ru | --r)
1084 ac_prev=runstatedir ;;
1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087 | --run=* | --ru=* | --r=*)
1088 runstatedir=$ac_optarg ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir runstatedir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures unrealircd 4.2.4.1 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/unrealircd]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 System types:
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 _ACEOF
1402 fi
1403
1404 if test -n "$ac_init_help"; then
1405 case $ac_init_help in
1406 short | recursive ) echo "Configuration of unrealircd 4.2.4.1:";;
1407 esac
1408 cat <<\_ACEOF
1409
1410 Optional Features:
1411 --disable-option-checking ignore unrecognized --enable/--with options
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1414 --enable-hardening Enable compiler and linker options to frustrate
1415 memory corruption exploits [yes]
1416 --disable-prefixaq Disable chanadmin (+a) and chanowner (+q) prefixes
1417 --enable-ssl= enable ssl will check /usr/local/opt/openssl
1418 /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg
1419 /usr/sfw /usr/local /usr
1420 --disable-dynamic-linking
1421 Make the IRCd statically link with shared objects
1422 rather than dynamically (noone knows if disabling
1423 dynamic linking actually does anything or not)
1424 --enable-werror Turn compilation warnings into errors (-Werror)
1425 --enable-asan Enable address sanitizer, not recommended for
1426 production servers!
1427 --enable-libcurl=DIR enable libcurl (remote include) support
1428
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-nick-history=length
1433 Specify the length of the nickname history
1434 --with-sendq=maxsendq Specify the max sendq for the server
1435 --with-permissions=permissions
1436 Specify the default permissions for configuration
1437 files
1438 --with-bindir=path Specify the directory for the unrealircd binary
1439 --with-scriptdir=path Specify the directory for the unrealircd start-stop
1440 script
1441 --with-confdir=path Specify the directory where configuration files are
1442 stored
1443 --with-modulesdir=path Specify the directory for loadable modules
1444 --with-logdir=path Specify the directory where log files are stored
1445 --with-cachedir=path Specify the directory where cached files are stored
1446 --with-tmpdir=path Specify the directory where private temporary files
1447 are stored. Should not be readable or writable by
1448 others, so not /tmp!!
1449 --with-datadir=path Specify the directory where permanent data is stored
1450 --with-docdir=path Specify the directory where documentation is stored
1451 --with-pidfile=path Specify the path of the pid file
1452 --with-privatelibdir=path
1453 Specify the directory where private libraries are
1454 stored. Disable when building a package for a distro
1455 --with-maxconnections=size
1456 Specify the max file descriptors to use
1457 --with-showlistmodes Specify whether modes are shown in /list
1458 --with-shunnotices Notify a user when he/she is no longer shunned
1459 --with-no-operoverride Disable OperOverride
1460 --with-disableusermod Disable /set* and /chg*
1461 --with-operoverride-verify
1462 Require opers to invite themselves to +s/+p channels
1463 --with-disable-extendedban-stacking
1464 Disable extended ban stacking
1465 --without-tre Do not use the old deprecated TRE regex library
1466 --with-system-tre Use the system tre package instead of bundled,
1467 discovered using pkg-config
1468 --with-system-pcre2 Use the system pcre2 package instead of bundled,
1469 discovered using pkg-config
1470 --without-system-argon2 Use bundled version instead of system argon2
1471 library. Normally autodetected via pkg-config
1472 --without-system-cares Use bundled version instead of system c-ares.
1473 Normally autodetected via pkg-config.
1474
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 CPP C preprocessor
1484 PKG_CONFIG path to pkg-config utility
1485 PKG_CONFIG_PATH
1486 directories to add to pkg-config's search path
1487 PKG_CONFIG_LIBDIR
1488 path overriding pkg-config's built-in search path
1489 TRE_CFLAGS C compiler flags for TRE, overriding pkg-config
1490 TRE_LIBS linker flags for TRE, overriding pkg-config
1491 PCRE2_CFLAGS
1492 C compiler flags for PCRE2, overriding pkg-config
1493 PCRE2_LIBS linker flags for PCRE2, overriding pkg-config
1494 ARGON2_CFLAGS
1495 C compiler flags for ARGON2, overriding pkg-config
1496 ARGON2_LIBS linker flags for ARGON2, overriding pkg-config
1497 CARES_CFLAGS
1498 C compiler flags for CARES, overriding pkg-config
1499 CARES_LIBS linker flags for CARES, overriding pkg-config
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to <https://bugs.unrealircd.org/>.
1505 unrealircd home page: <https://unrealircd.org/>.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
1516 ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 unrealircd configure 4.2.4.1
1569 generated by GNU Autoconf 2.69
1570
1571 Copyright (C) 2012 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1581
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_compile
1619
1620 # ac_fn_c_try_link LINENO
1621 # -----------------------
1622 # Try to link conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_link ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext conftest$ac_exeext
1627 if { { ac_try="$ac_link"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_link") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest$ac_exeext && {
1646 test "$cross_compiling" = yes ||
1647 test -x conftest$ac_exeext
1648 }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1657 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1658 # interfere with the next link command; also delete a directory that is
1659 # left behind by Apple's compiler. We do this before executing the actions.
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_link
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701 fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_try_cpp LINENO
1709 # ----------------------
1710 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_cpp ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } > conftest.i && {
1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 }; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739 fi
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_cpp
1744
1745 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1748 # the include files in INCLUDES and setting the cache variable VAR
1749 # accordingly.
1750 ac_fn_c_check_header_mongrel ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if eval \${$3+:} false; then :
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 fi
1759 eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 else
1763 # Is the header compilable?
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1765 $as_echo_n "checking $2 usability... " >&6; }
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 $4
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 ac_header_compiler=yes
1773 else
1774 ac_header_compiler=no
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1778 $as_echo "$ac_header_compiler" >&6; }
1779
1780 # Is the header present?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1782 $as_echo_n "checking $2 presence... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_cpp "$LINENO"; then :
1788 ac_header_preproc=yes
1789 else
1790 ac_header_preproc=no
1791 fi
1792 rm -f conftest.err conftest.i conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1794 $as_echo "$ac_header_preproc" >&6; }
1795
1796 # So? What about this header?
1797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1798 yes:no: )
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1800 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1802 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 ;;
1804 no:yes:* )
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1806 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1808 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1810 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1812 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 ( $as_echo "## ------------------------------------------- ##
1816 ## Report this to https://bugs.unrealircd.org/ ##
1817 ## ------------------------------------------- ##"
1818 ) | sed "s/^/$as_me: WARNING: /" >&2
1819 ;;
1820 esac
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 eval "$3=\$ac_header_compiler"
1827 fi
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_c_check_header_mongrel
1835
1836 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1837 # -------------------------------------------------------
1838 # Tests whether HEADER exists and can be compiled using the include files in
1839 # INCLUDES, setting the cache variable VAR accordingly.
1840 ac_fn_c_check_header_compile ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $4
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 eval "$3=yes"
1855 else
1856 eval "$3=no"
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 fi
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_header_compile
1866
1867 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1868 # -------------------------------------------
1869 # Tests whether TYPE exists after having included INCLUDES, setting cache
1870 # variable VAR accordingly.
1871 ac_fn_c_check_type ()
1872 {
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878 else
1879 eval "$3=no"
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $4
1883 int
1884 main ()
1885 {
1886 if (sizeof ($2))
1887 return 0;
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 $4
1896 int
1897 main ()
1898 {
1899 if (sizeof (($2)))
1900 return 0;
1901 ;
1902 return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906
1907 else
1908 eval "$3=yes"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 fi
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919 } # ac_fn_c_check_type
1920
1921 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1922 # --------------------------------------------
1923 # Tries to find the compile-time value of EXPR in a program that includes
1924 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1925 # computed
1926 ac_fn_c_compute_int ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if test "$cross_compiling" = yes; then
1930 # Depending upon the size, compute the lo and hi bounds.
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 $4
1934 int
1935 main ()
1936 {
1937 static int test_array [1 - 2 * !(($2) >= 0)];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_lo=0 ac_mid=0
1947 while :; do
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 int
1952 main ()
1953 {
1954 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1955 test_array [0] = 0;
1956 return test_array [0];
1957
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_hi=$ac_mid; break
1964 else
1965 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1966 if test $ac_lo -le $ac_mid; then
1967 ac_lo= ac_hi=
1968 break
1969 fi
1970 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 done
1974 else
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main ()
1980 {
1981 static int test_array [1 - 2 * !(($2) < 0)];
1982 test_array [0] = 0;
1983 return test_array [0];
1984
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_hi=-1 ac_mid=-1
1991 while :; do
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 $4
1995 int
1996 main ()
1997 {
1998 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1999 test_array [0] = 0;
2000 return test_array [0];
2001
2002 ;
2003 return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_lo=$ac_mid; break
2008 else
2009 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2010 if test $ac_mid -le $ac_hi; then
2011 ac_lo= ac_hi=
2012 break
2013 fi
2014 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 done
2018 else
2019 ac_lo= ac_hi=
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 # Binary search between lo and hi bounds.
2025 while test "x$ac_lo" != "x$ac_hi"; do
2026 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 int
2031 main ()
2032 {
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2034 test_array [0] = 0;
2035 return test_array [0];
2036
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_hi=$ac_mid
2043 else
2044 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 done
2048 case $ac_lo in #((
2049 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2050 '') ac_retval=1 ;;
2051 esac
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 static long int longval () { return $2; }
2057 static unsigned long int ulongval () { return $2; }
2058 #include <stdio.h>
2059 #include <stdlib.h>
2060 int
2061 main ()
2062 {
2063
2064 FILE *f = fopen ("conftest.val", "w");
2065 if (! f)
2066 return 1;
2067 if (($2) < 0)
2068 {
2069 long int i = longval ();
2070 if (i != ($2))
2071 return 1;
2072 fprintf (f, "%ld", i);
2073 }
2074 else
2075 {
2076 unsigned long int i = ulongval ();
2077 if (i != ($2))
2078 return 1;
2079 fprintf (f, "%lu", i);
2080 }
2081 /* Do not output a trailing newline, as this causes \r\n confusion
2082 on some platforms. */
2083 return ferror (f) || fclose (f) != 0;
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_run "$LINENO"; then :
2090 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2091 else
2092 ac_retval=1
2093 fi
2094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2095 conftest.$ac_objext conftest.beam conftest.$ac_ext
2096 rm -f conftest.val
2097
2098 fi
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2101
2102 } # ac_fn_c_compute_int
2103
2104 # ac_fn_c_check_func LINENO FUNC VAR
2105 # ----------------------------------
2106 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2107 ac_fn_c_check_func ()
2108 {
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114 else
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2119 #define $2 innocuous_$2
2120
2121 /* System header to define __stub macros and hopefully few prototypes,
2122 which can conflict with char $2 (); below.
2123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2124 <limits.h> exists even on freestanding compilers. */
2125
2126 #ifdef __STDC__
2127 # include <limits.h>
2128 #else
2129 # include <assert.h>
2130 #endif
2131
2132 #undef $2
2133
2134 /* Override any GCC internal prototype to avoid an error.
2135 Use char because int might match the return type of a GCC
2136 builtin and then its argument prototype would still apply. */
2137 #ifdef __cplusplus
2138 extern "C"
2139 #endif
2140 char $2 ();
2141 /* The GNU C library defines this for functions which it implements
2142 to always fail with ENOSYS. Some functions are actually named
2143 something starting with __ and the normal name is an alias. */
2144 #if defined __stub_$2 || defined __stub___$2
2145 choke me
2146 #endif
2147
2148 int
2149 main ()
2150 {
2151 return $2 ();
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_link "$LINENO"; then :
2157 eval "$3=yes"
2158 else
2159 eval "$3=no"
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext \
2162 conftest$ac_exeext conftest.$ac_ext
2163 fi
2164 eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168
2169 } # ac_fn_c_check_func
2170 cat >config.log <<_ACEOF
2171 This file contains any messages produced by compilers while
2172 running configure, to aid debugging if configure makes a mistake.
2173
2174 It was created by unrealircd $as_me 4.2.4.1, which was
2175 generated by GNU Autoconf 2.69. Invocation command line was
2176
2177 $ $0 $@
2178
2179 _ACEOF
2180 exec 5>>config.log
2181 {
2182 cat <<_ASUNAME
2183 ## --------- ##
2184 ## Platform. ##
2185 ## --------- ##
2186
2187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2192
2193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2194 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2195
2196 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2197 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2199 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2200 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2201 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2202 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2203
2204 _ASUNAME
2205
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
2211 $as_echo "PATH: $as_dir"
2212 done
2213 IFS=$as_save_IFS
2214
2215 } >&5
2216
2217 cat >&5 <<_ACEOF
2218
2219
2220 ## ----------- ##
2221 ## Core tests. ##
2222 ## ----------- ##
2223
2224 _ACEOF
2225
2226
2227 # Keep a trace of the command line.
2228 # Strip out --no-create and --no-recursion so they do not pile up.
2229 # Strip out --silent because we don't want to record it for future runs.
2230 # Also quote any args containing shell meta-characters.
2231 # Make two passes to allow for proper duplicate-argument suppression.
2232 ac_configure_args=
2233 ac_configure_args0=
2234 ac_configure_args1=
2235 ac_must_keep_next=false
2236 for ac_pass in 1 2
2237 do
2238 for ac_arg
2239 do
2240 case $ac_arg in
2241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2243 | -silent | --silent | --silen | --sile | --sil)
2244 continue ;;
2245 *\'*)
2246 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2247 esac
2248 case $ac_pass in
2249 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2250 2)
2251 as_fn_append ac_configure_args1 " '$ac_arg'"
2252 if test $ac_must_keep_next = true; then
2253 ac_must_keep_next=false # Got value, back to normal.
2254 else
2255 case $ac_arg in
2256 *=* | --config-cache | -C | -disable-* | --disable-* \
2257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2259 | -with-* | --with-* | -without-* | --without-* | --x)
2260 case "$ac_configure_args0 " in
2261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2262 esac
2263 ;;
2264 -* ) ac_must_keep_next=true ;;
2265 esac
2266 fi
2267 as_fn_append ac_configure_args " '$ac_arg'"
2268 ;;
2269 esac
2270 done
2271 done
2272 { ac_configure_args0=; unset ac_configure_args0;}
2273 { ac_configure_args1=; unset ac_configure_args1;}
2274
2275 # When interrupted or exit'd, cleanup temporary files, and complete
2276 # config.log. We remove comments because anyway the quotes in there
2277 # would cause problems or look ugly.
2278 # WARNING: Use '\'' to represent an apostrophe within the trap.
2279 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2280 trap 'exit_status=$?
2281 # Save into config.log some information that might help in debugging.
2282 {
2283 echo
2284
2285 $as_echo "## ---------------- ##
2286 ## Cache variables. ##
2287 ## ---------------- ##"
2288 echo
2289 # The following way of writing the cache mishandles newlines in values,
2290 (
2291 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2292 eval ac_val=\$$ac_var
2293 case $ac_val in #(
2294 *${as_nl}*)
2295 case $ac_var in #(
2296 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2297 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2298 esac
2299 case $ac_var in #(
2300 _ | IFS | as_nl) ;; #(
2301 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2302 *) { eval $ac_var=; unset $ac_var;} ;;
2303 esac ;;
2304 esac
2305 done
2306 (set) 2>&1 |
2307 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2308 *${as_nl}ac_space=\ *)
2309 sed -n \
2310 "s/'\''/'\''\\\\'\'''\''/g;
2311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2312 ;; #(
2313 *)
2314 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2315 ;;
2316 esac |
2317 sort
2318 )
2319 echo
2320
2321 $as_echo "## ----------------- ##
2322 ## Output variables. ##
2323 ## ----------------- ##"
2324 echo
2325 for ac_var in $ac_subst_vars
2326 do
2327 eval ac_val=\$$ac_var
2328 case $ac_val in
2329 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2330 esac
2331 $as_echo "$ac_var='\''$ac_val'\''"
2332 done | sort
2333 echo
2334
2335 if test -n "$ac_subst_files"; then
2336 $as_echo "## ------------------- ##
2337 ## File substitutions. ##
2338 ## ------------------- ##"
2339 echo
2340 for ac_var in $ac_subst_files
2341 do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 $as_echo "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2349 fi
2350
2351 if test -s confdefs.h; then
2352 $as_echo "## ----------- ##
2353 ## confdefs.h. ##
2354 ## ----------- ##"
2355 echo
2356 cat confdefs.h
2357 echo
2358 fi
2359 test "$ac_signal" != 0 &&
2360 $as_echo "$as_me: caught signal $ac_signal"
2361 $as_echo "$as_me: exit $exit_status"
2362 } >&5
2363 rm -f core *.core core.conftest.* &&
2364 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2365 exit $exit_status
2366 ' 0
2367 for ac_signal in 1 2 13 15; do
2368 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2369 done
2370 ac_signal=0
2371
2372 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2373 rm -f -r conftest* confdefs.h
2374
2375 $as_echo "/* confdefs.h */" > confdefs.h
2376
2377 # Predefined preprocessor variables.
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_NAME "$PACKAGE_NAME"
2381 _ACEOF
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_STRING "$PACKAGE_STRING"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_URL "$PACKAGE_URL"
2401 _ACEOF
2402
2403
2404 # Let the site file select an alternate cache file if it wants to.
2405 # Prefer an explicitly selected file to automatically selected ones.
2406 ac_site_file1=NONE
2407 ac_site_file2=NONE
2408 if test -n "$CONFIG_SITE"; then
2409 # We do not want a PATH search for config.site.
2410 case $CONFIG_SITE in #((
2411 -*) ac_site_file1=./$CONFIG_SITE;;
2412 */*) ac_site_file1=$CONFIG_SITE;;
2413 *) ac_site_file1=./$CONFIG_SITE;;
2414 esac
2415 elif test "x$prefix" != xNONE; then
2416 ac_site_file1=$prefix/share/config.site
2417 ac_site_file2=$prefix/etc/config.site
2418 else
2419 ac_site_file1=$ac_default_prefix/share/config.site
2420 ac_site_file2=$ac_default_prefix/etc/config.site
2421 fi
2422 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2423 do
2424 test "x$ac_site_file" = xNONE && continue
2425 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's/^/| /' "$ac_site_file" >&5
2429 . "$ac_site_file" \
2430 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432 as_fn_error $? "failed to load site script $ac_site_file
2433 See \`config.log' for more details" "$LINENO" 5; }
2434 fi
2435 done
2436
2437 if test -r "$cache_file"; then
2438 # Some versions of bash will fail to source /dev/null (special files
2439 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2440 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2442 $as_echo "$as_me: loading cache $cache_file" >&6;}
2443 case $cache_file in
2444 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2445 *) . "./$cache_file";;
2446 esac
2447 fi
2448 else
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2450 $as_echo "$as_me: creating cache $cache_file" >&6;}
2451 >$cache_file
2452 fi
2453
2454 # Check that the precious variables saved in the cache have kept the same
2455 # value.
2456 ac_cache_corrupted=false
2457 for ac_var in $ac_precious_vars; do
2458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2459 eval ac_new_set=\$ac_env_${ac_var}_set
2460 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2461 eval ac_new_val=\$ac_env_${ac_var}_value
2462 case $ac_old_set,$ac_new_set in
2463 set,)
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2465 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2466 ac_cache_corrupted=: ;;
2467 ,set)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2469 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,);;
2472 *)
2473 if test "x$ac_old_val" != "x$ac_new_val"; then
2474 # differences in whitespace do not lead to failure.
2475 ac_old_val_w=`echo x $ac_old_val`
2476 ac_new_val_w=`echo x $ac_new_val`
2477 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2479 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2480 ac_cache_corrupted=:
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2483 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2484 eval $ac_var=\$ac_old_val
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2487 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2489 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2490 fi;;
2491 esac
2492 # Pass precious variables to config.status.
2493 if test "$ac_new_set" = set; then
2494 case $ac_new_val in
2495 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2496 *) ac_arg=$ac_var=$ac_new_val ;;
2497 esac
2498 case " $ac_configure_args " in
2499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2500 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2501 esac
2502 fi
2503 done
2504 if $ac_cache_corrupted; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2508 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2509 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2510 fi
2511 ## -------------------- ##
2512 ## Main body of script. ##
2513 ## -------------------- ##
2514
2515 ac_ext=c
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
2521
2522
2523 ac_config_headers="$ac_config_headers include/setup.h"
2524
2525 ac_aux_dir=
2526 for ac_dir in autoconf "$srcdir"/autoconf; do
2527 if test -f "$ac_dir/install-sh"; then
2528 ac_aux_dir=$ac_dir
2529 ac_install_sh="$ac_aux_dir/install-sh -c"
2530 break
2531 elif test -f "$ac_dir/install.sh"; then
2532 ac_aux_dir=$ac_dir
2533 ac_install_sh="$ac_aux_dir/install.sh -c"
2534 break
2535 elif test -f "$ac_dir/shtool"; then
2536 ac_aux_dir=$ac_dir
2537 ac_install_sh="$ac_aux_dir/shtool install -c"
2538 break
2539 fi
2540 done
2541 if test -z "$ac_aux_dir"; then
2542 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2543 fi
2544
2545 # These three variables are undocumented and unsupported,
2546 # and are intended to be withdrawn in a future Autoconf release.
2547 # They can cause serious problems if a builder's source tree is in a directory
2548 # whose full name contains unusual characters.
2549 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2550 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2551 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2552
2553
2554
2555
2556 if test "x$enable_dynamic_linking" = "x"; then
2557 echo "Please use ./Config instead of ./configure"
2558 exit 1
2559 fi
2560
2561 orig_cflags="$CFLAGS"
2562
2563 BUILDDIR="`pwd`"
2564
2565
2566 # Generation version number (e.g.: X in X.Y.Z)
2567 UNREAL_VERSION_GENERATION="4"
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define UNREAL_VERSION_GENERATION $UNREAL_VERSION_GENERATION
2571 _ACEOF
2572
2573
2574 # Major version number (e.g.: Y in X.Y.Z)
2575 UNREAL_VERSION_MAJOR="2"
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define UNREAL_VERSION_MAJOR $UNREAL_VERSION_MAJOR
2579 _ACEOF
2580
2581
2582 # Minor version number (e.g.: Z in X.Y.Z)
2583 UNREAL_VERSION_MINOR="4"
2584
2585 cat >>confdefs.h <<_ACEOF
2586 #define UNREAL_VERSION_MINOR $UNREAL_VERSION_MINOR
2587 _ACEOF
2588
2589
2590 # The version suffix such as a beta marker or release candidate
2591 # marker. (e.g.: -rcX for unrealircd-3.2.9-rcX). This macro is a
2592 # string instead of an integer because it contains arbitrary data.
2593 UNREAL_VERSION_SUFFIX=".1"
2594
2595 cat >>confdefs.h <<_ACEOF
2596 #define UNREAL_VERSION_SUFFIX "$UNREAL_VERSION_SUFFIX"
2597 _ACEOF
2598
2599
2600 # Extract the first word of "rm", so it can be a program name with args.
2601 set dummy rm; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_path_RM+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 case $RM in
2608 [\\/]* | ?:[\\/]*)
2609 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2610 ;;
2611 *)
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 ;;
2628 esac
2629 fi
2630 RM=$ac_cv_path_RM
2631 if test -n "$RM"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
2633 $as_echo "$RM" >&6; }
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 fi
2638
2639
2640 # Extract the first word of "cp", so it can be a program name with args.
2641 set dummy cp; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_path_CP+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 case $CP in
2648 [\\/]* | ?:[\\/]*)
2649 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2650 ;;
2651 *)
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 ;;
2668 esac
2669 fi
2670 CP=$ac_cv_path_CP
2671 if test -n "$CP"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
2673 $as_echo "$CP" >&6; }
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680 # Extract the first word of "touch", so it can be a program name with args.
2681 set dummy touch; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_path_TOUCH+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 case $TOUCH in
2688 [\\/]* | ?:[\\/]*)
2689 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
2690 ;;
2691 *)
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703 done
2704 done
2705 IFS=$as_save_IFS
2706
2707 ;;
2708 esac
2709 fi
2710 TOUCH=$ac_cv_path_TOUCH
2711 if test -n "$TOUCH"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
2713 $as_echo "$TOUCH" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719
2720 # Extract the first word of "openssl", so it can be a program name with args.
2721 set dummy openssl; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_path_OPENSSLPATH+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 case $OPENSSLPATH in
2728 [\\/]* | ?:[\\/]*)
2729 ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path.
2730 ;;
2731 *)
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_path_OPENSSLPATH="$as_dir/$ac_word$ac_exec_ext"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2746
2747 ;;
2748 esac
2749 fi
2750 OPENSSLPATH=$ac_cv_path_OPENSSLPATH
2751 if test -n "$OPENSSLPATH"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSLPATH" >&5
2753 $as_echo "$OPENSSLPATH" >&6; }
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2757 fi
2758
2759
2760 if test x"$OPENSSLPATH" = "x"; then :
2761
2762 echo ""
2763 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
2764 echo "The following packages are required:"
2765 echo "1) The library package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
2766 echo "2) The binary package is usually called 'openssl'."
2767 echo "NOTE: you or your system administrator needs to install the library AND the binary package."
2768 echo "After doing so, simply re-run ./Config"
2769 exit 1
2770
2771 fi
2772
2773 # Extract the first word of "install", so it can be a program name with args.
2774 set dummy install; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_path_INSTALL+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 case $INSTALL in
2781 [\\/]* | ?:[\\/]*)
2782 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
2783 ;;
2784 *)
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_path_INSTALL="$as_dir/$ac_word$ac_exec_ext"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 ;;
2801 esac
2802 fi
2803 INSTALL=$ac_cv_path_INSTALL
2804 if test -n "$INSTALL"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2806 $as_echo "$INSTALL" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 # Extract the first word of "gmake", so it can be a program name with args.
2814 set dummy gmake; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_MAKER+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 if test -n "$MAKER"; then
2821 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_MAKER="gmake"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
2839 fi
2840 fi
2841 MAKER=$ac_cv_prog_MAKER
2842 if test -n "$MAKER"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
2844 $as_echo "$MAKER" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850
2851 # Extract the first word of "gmake", so it can be a program name with args.
2852 set dummy gmake; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_path_GMAKE+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 case $GMAKE in
2859 [\\/]* | ?:[\\/]*)
2860 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2861 ;;
2862 *)
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 ;;
2879 esac
2880 fi
2881 GMAKE=$ac_cv_path_GMAKE
2882 if test -n "$GMAKE"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
2884 $as_echo "$GMAKE" >&6; }
2885 else
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 fi
2889
2890
2891 # Extract the first word of "gunzip", so it can be a program name with args.
2892 set dummy gunzip; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_path_GUNZIP+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 case $GUNZIP in
2899 [\\/]* | ?:[\\/]*)
2900 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
2901 ;;
2902 *)
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914 done
2915 done
2916 IFS=$as_save_IFS
2917
2918 ;;
2919 esac
2920 fi
2921 GUNZIP=$ac_cv_path_GUNZIP
2922 if test -n "$GUNZIP"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
2924 $as_echo "$GUNZIP" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931 # Extract the first word of "pkg-config", so it can be a program name with args.
2932 set dummy pkg-config; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_path_PKGCONFIG+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 case $PKGCONFIG in
2939 [\\/]* | ?:[\\/]*)
2940 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
2941 ;;
2942 *)
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 ;;
2959 esac
2960 fi
2961 PKGCONFIG=$ac_cv_path_PKGCONFIG
2962 if test -n "$PKGCONFIG"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
2964 $as_echo "$PKGCONFIG" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971
2972 ac_ext=c
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_CC+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014
3015 fi
3016 if test -z "$ac_cv_prog_CC"; then
3017 ac_ct_CC=$CC
3018 # Extract the first word of "gcc", so it can be a program name with args.
3019 set dummy gcc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 ac_cv_prog_ac_ct_CC="gcc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054 if test "x$ac_ct_CC" = x; then
3055 CC=""
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058 yes:)
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061 ac_tool_warned=yes ;;
3062 esac
3063 CC=$ac_ct_CC
3064 fi
3065 else
3066 CC="$ac_cv_prog_CC"
3067 fi
3068
3069 if test -z "$CC"; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}cc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_CC="${ac_tool_prefix}cc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 fi
3110 if test -z "$CC"; then
3111 # Extract the first word of "cc", so it can be a program name with args.
3112 set dummy cc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 else
3121 ac_prog_rejected=no
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3130 ac_prog_rejected=yes
3131 continue
3132 fi
3133 ac_cv_prog_CC="cc"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 if test $ac_prog_rejected = yes; then
3142 # We found a bogon in the path, so make sure we never use it.
3143 set dummy $ac_cv_prog_CC
3144 shift
3145 if test $# != 0; then
3146 # We chose a different compiler from the bogus one.
3147 # However, it has the same basename, so the bogon will be chosen
3148 # first if we set CC to just the basename; use the full file name.
3149 shift
3150 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3151 fi
3152 fi
3153 fi
3154 fi
3155 CC=$ac_cv_prog_CC
3156 if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165 fi
3166 if test -z "$CC"; then
3167 if test -n "$ac_tool_prefix"; then
3168 for ac_prog in cl.exe
3169 do
3170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 CC=$ac_cv_prog_CC
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207 test -n "$CC" && break
3208 done
3209 fi
3210 if test -z "$CC"; then
3211 ac_ct_CC=$CC
3212 for ac_prog in cl.exe
3213 do
3214 # Extract the first word of "$ac_prog", so it can be a program name with args.
3215 set dummy $ac_prog; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$ac_ct_CC"; then
3222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_ac_ct_CC="$ac_prog"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3242 if test -n "$ac_ct_CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3244 $as_echo "$ac_ct_CC" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 fi
3249
3250
3251 test -n "$ac_ct_CC" && break
3252 done
3253
3254 if test "x$ac_ct_CC" = x; then
3255 CC=""
3256 else
3257 case $cross_compiling:$ac_tool_warned in
3258 yes:)
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3261 ac_tool_warned=yes ;;
3262 esac
3263 CC=$ac_ct_CC
3264 fi
3265 fi
3266
3267 fi
3268
3269
3270 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error $? "no acceptable C compiler found in \$PATH
3273 See \`config.log' for more details" "$LINENO" 5; }
3274
3275 # Provide some information about the compiler.
3276 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3277 set X $ac_compile
3278 ac_compiler=$2
3279 for ac_option in --version -v -V -qversion; do
3280 { { ac_try="$ac_compiler $ac_option >&5"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3288 ac_status=$?
3289 if test -s conftest.err; then
3290 sed '10a\
3291 ... rest of stderr output deleted ...
3292 10q' conftest.err >conftest.er1
3293 cat conftest.er1 >&5
3294 fi
3295 rm -f conftest.er1 conftest.err
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }
3298 done
3299
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302
3303 int
3304 main ()
3305 {
3306
3307 ;
3308 return 0;
3309 }
3310 _ACEOF
3311 ac_clean_files_save=$ac_clean_files
3312 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3313 # Try to create an executable without -o first, disregard a.out.
3314 # It will help us diagnose broken compilers, and finding out an intuition
3315 # of exeext.
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3317 $as_echo_n "checking whether the C compiler works... " >&6; }
3318 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3319
3320 # The possible output files:
3321 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3322
3323 ac_rmfiles=
3324 for ac_file in $ac_files
3325 do
3326 case $ac_file in
3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3328 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3329 esac
3330 done
3331 rm -f $ac_rmfiles
3332
3333 if { { ac_try="$ac_link_default"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link_default") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
3344 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3345 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3346 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3347 # so that the user can short-circuit this test for compilers unknown to
3348 # Autoconf.
3349 for ac_file in $ac_files ''
3350 do
3351 test -f "$ac_file" || continue
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3354 ;;
3355 [ab].out )
3356 # We found the default executable, but exeext='' is most
3357 # certainly right.
3358 break;;
3359 *.* )
3360 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3361 then :; else
3362 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363 fi
3364 # We set ac_cv_exeext here because the later test for it is not
3365 # safe: cross compilers may not add the suffix if given an `-o'
3366 # argument, so we may need to know it at that point already.
3367 # Even if this section looks crufty: it has the advantage of
3368 # actually working.
3369 break;;
3370 * )
3371 break;;
3372 esac
3373 done
3374 test "$ac_cv_exeext" = no && ac_cv_exeext=
3375
3376 else
3377 ac_file=''
3378 fi
3379 if test -z "$ac_file"; then :
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 $as_echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error 77 "C compiler cannot create executables
3388 See \`config.log' for more details" "$LINENO" 5; }
3389 else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3391 $as_echo "yes" >&6; }
3392 fi
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3394 $as_echo_n "checking for C compiler default output file name... " >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3396 $as_echo "$ac_file" >&6; }
3397 ac_exeext=$ac_cv_exeext
3398
3399 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3400 ac_clean_files=$ac_clean_files_save
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3402 $as_echo_n "checking for suffix of executables... " >&6; }
3403 if { { ac_try="$ac_link"
3404 case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; then :
3414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3415 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3416 # work properly (i.e., refer to `conftest.exe'), while it won't with
3417 # `rm'.
3418 for ac_file in conftest.exe conftest conftest.*; do
3419 test -f "$ac_file" || continue
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3423 break;;
3424 * ) break;;
3425 esac
3426 done
3427 else
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3431 See \`config.log' for more details" "$LINENO" 5; }
3432 fi
3433 rm -f conftest conftest$ac_cv_exeext
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3435 $as_echo "$ac_cv_exeext" >&6; }
3436
3437 rm -f conftest.$ac_ext
3438 EXEEXT=$ac_cv_exeext
3439 ac_exeext=$EXEEXT
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442 #include <stdio.h>
3443 int
3444 main ()
3445 {
3446 FILE *f = fopen ("conftest.out", "w");
3447 return ferror (f) || fclose (f) != 0;
3448
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 ac_clean_files="$ac_clean_files conftest.out"
3454 # Check that the compiler produces executables we can run. If not, either
3455 # the compiler is broken, or we cross compile.
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3457 $as_echo_n "checking whether we are cross compiling... " >&6; }
3458 if test "$cross_compiling" != yes; then
3459 { { ac_try="$ac_link"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_link") 2>&5
3467 ac_status=$?
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3470 if { ac_try='./conftest$ac_cv_exeext'
3471 { { case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_try") 2>&5
3478 ac_status=$?
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; }; then
3481 cross_compiling=no
3482 else
3483 if test "$cross_compiling" = maybe; then
3484 cross_compiling=yes
3485 else
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $? "cannot run C compiled programs.
3489 If you meant to cross compile, use \`--host'.
3490 See \`config.log' for more details" "$LINENO" 5; }
3491 fi
3492 fi
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3495 $as_echo "$cross_compiling" >&6; }
3496
3497 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3498 ac_clean_files=$ac_clean_files_save
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3500 $as_echo_n "checking for suffix of object files... " >&6; }
3501 if ${ac_cv_objext+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.o conftest.obj
3516 if { { ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_compile") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3532 break;;
3533 esac
3534 done
3535 else
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error $? "cannot compute suffix of object files: cannot compile
3542 See \`config.log' for more details" "$LINENO" 5; }
3543 fi
3544 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3545 fi
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3547 $as_echo "$ac_cv_objext" >&6; }
3548 OBJEXT=$ac_cv_objext
3549 ac_objext=$OBJEXT
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3551 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3552 if ${ac_cv_c_compiler_gnu+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557
3558 int
3559 main ()
3560 {
3561 #ifndef __GNUC__
3562 choke me
3563 #endif
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570 ac_compiler_gnu=yes
3571 else
3572 ac_compiler_gnu=no
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3576
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3579 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3580 if test $ac_compiler_gnu = yes; then
3581 GCC=yes
3582 else
3583 GCC=
3584 fi
3585 ac_test_CFLAGS=${CFLAGS+set}
3586 ac_save_CFLAGS=$CFLAGS
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3588 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3589 if ${ac_cv_prog_cc_g+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 ac_save_c_werror_flag=$ac_c_werror_flag
3593 ac_c_werror_flag=yes
3594 ac_cv_prog_cc_g=no
3595 CFLAGS="-g"
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_prog_cc_g=yes
3609 else
3610 CFLAGS=""
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623
3624 else
3625 ac_c_werror_flag=$ac_save_c_werror_flag
3626 CFLAGS="-g"
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629
3630 int
3631 main ()
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639 ac_cv_prog_cc_g=yes
3640 fi
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_c_werror_flag=$ac_save_c_werror_flag
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3649 $as_echo "$ac_cv_prog_cc_g" >&6; }
3650 if test "$ac_test_CFLAGS" = set; then
3651 CFLAGS=$ac_save_CFLAGS
3652 elif test $ac_cv_prog_cc_g = yes; then
3653 if test "$GCC" = yes; then
3654 CFLAGS="-g -O2"
3655 else
3656 CFLAGS="-g"
3657 fi
3658 else
3659 if test "$GCC" = yes; then
3660 CFLAGS="-O2"
3661 else
3662 CFLAGS=
3663 fi
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3666 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3667 if ${ac_cv_prog_cc_c89+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 ac_cv_prog_cc_c89=no
3671 ac_save_CC=$CC
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674 #include <stdarg.h>
3675 #include <stdio.h>
3676 struct stat;
3677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678 struct buf { int x; };
3679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680 static char *e (p, i)
3681 char **p;
3682 int i;
3683 {
3684 return p[i];
3685 }
3686 static char *f (char * (*g) (char **, int), char **p, ...)
3687 {
3688 char *s;
3689 va_list v;
3690 va_start (v,p);
3691 s = g (p, va_arg (v,int));
3692 va_end (v);
3693 return s;
3694 }
3695
3696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3697 function prototypes and stuff, but not '\xHH' hex character constants.
3698 These don't provoke an error unfortunately, instead are silently treated
3699 as 'x'. The following induces an error, until -std is added to get
3700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3701 array size at least. It's necessary to write '\x00'==0 to get something
3702 that's true only with -std. */
3703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3704
3705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3706 inside strings and character constants. */
3707 #define FOO(x) 'x'
3708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3709
3710 int test (int i, double x);
3711 struct s1 {int (*f) (int a);};
3712 struct s2 {int (*f) (double a);};
3713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3714 int argc;
3715 char **argv;
3716 int
3717 main ()
3718 {
3719 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3726 do
3727 CC="$ac_save_CC $ac_arg"
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_cv_prog_cc_c89=$ac_arg
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext
3732 test "x$ac_cv_prog_cc_c89" != "xno" && break
3733 done
3734 rm -f conftest.$ac_ext
3735 CC=$ac_save_CC
3736
3737 fi
3738 # AC_CACHE_VAL
3739 case "x$ac_cv_prog_cc_c89" in
3740 x)
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3742 $as_echo "none needed" >&6; } ;;
3743 xno)
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3745 $as_echo "unsupported" >&6; } ;;
3746 *)
3747 CC="$CC $ac_cv_prog_cc_c89"
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3749 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3750 esac
3751 if test "x$ac_cv_prog_cc_c89" != xno; then :
3752
3753 fi
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -ldescrypt" >&5
3763 $as_echo_n "checking for crypt in -ldescrypt... " >&6; }
3764 if ${ac_cv_lib_descrypt_crypt+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 ac_check_lib_save_LIBS=$LIBS
3768 LIBS="-ldescrypt $LIBS"
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 /* Override any GCC internal prototype to avoid an error.
3773 Use char because int might match the return type of a GCC
3774 builtin and then its argument prototype would still apply. */
3775 #ifdef __cplusplus
3776 extern "C"
3777 #endif
3778 char crypt ();
3779 int
3780 main ()
3781 {
3782 return crypt ();
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_link "$LINENO"; then :
3788 ac_cv_lib_descrypt_crypt=yes
3789 else
3790 ac_cv_lib_descrypt_crypt=no
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext \
3793 conftest$ac_exeext conftest.$ac_ext
3794 LIBS=$ac_check_lib_save_LIBS
3795 fi
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_descrypt_crypt" >&5
3797 $as_echo "$ac_cv_lib_descrypt_crypt" >&6; }
3798 if test "x$ac_cv_lib_descrypt_crypt" = xyes; then :
3799
3800 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
3801
3802 IRCDLIBS="$IRCDLIBS-ldescrypt "
3803 MKPASSWDLIBS="-ldescrypt"
3804 else
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
3806 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
3807 if ${ac_cv_lib_crypt_crypt+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 ac_check_lib_save_LIBS=$LIBS
3811 LIBS="-lcrypt $LIBS"
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814
3815 /* Override any GCC internal prototype to avoid an error.
3816 Use char because int might match the return type of a GCC
3817 builtin and then its argument prototype would still apply. */
3818 #ifdef __cplusplus
3819 extern "C"
3820 #endif
3821 char crypt ();
3822 int
3823 main ()
3824 {
3825 return crypt ();
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 if ac_fn_c_try_link "$LINENO"; then :
3831 ac_cv_lib_crypt_crypt=yes
3832 else
3833 ac_cv_lib_crypt_crypt=no
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext \
3836 conftest$ac_exeext conftest.$ac_ext
3837 LIBS=$ac_check_lib_save_LIBS
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
3840 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
3841 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
3842
3843 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
3844
3845 IRCDLIBS="$IRCDLIBS-lcrypt "
3846 MKPASSWDLIBS="-lcrypt"
3847 fi
3848
3849 fi
3850
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
3852 $as_echo_n "checking for socket in -lsocket... " >&6; }
3853 if ${ac_cv_lib_socket_socket+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 ac_check_lib_save_LIBS=$LIBS
3857 LIBS="-lsocket $LIBS"
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860
3861 /* Override any GCC internal prototype to avoid an error.
3862 Use char because int might match the return type of a GCC
3863 builtin and then its argument prototype would still apply. */
3864 #ifdef __cplusplus
3865 extern "C"
3866 #endif
3867 char socket ();
3868 int
3869 main ()
3870 {
3871 return socket ();
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 if ac_fn_c_try_link "$LINENO"; then :
3877 ac_cv_lib_socket_socket=yes
3878 else
3879 ac_cv_lib_socket_socket=no
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext \
3882 conftest$ac_exeext conftest.$ac_ext
3883 LIBS=$ac_check_lib_save_LIBS
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
3886 $as_echo "$ac_cv_lib_socket_socket" >&6; }
3887 if test "x$ac_cv_lib_socket_socket" = xyes; then :
3888 IRCDLIBS="$IRCDLIBS-lsocket "
3889 SOCKLIB="-lsocket"
3890 fi
3891
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
3893 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
3894 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 ac_check_lib_save_LIBS=$LIBS
3898 LIBS="-lnsl $LIBS"
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901
3902 /* Override any GCC internal prototype to avoid an error.
3903 Use char because int might match the return type of a GCC
3904 builtin and then its argument prototype would still apply. */
3905 #ifdef __cplusplus
3906 extern "C"
3907 #endif
3908 char inet_ntoa ();
3909 int
3910 main ()
3911 {
3912 return inet_ntoa ();
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_link "$LINENO"; then :
3918 ac_cv_lib_nsl_inet_ntoa=yes
3919 else
3920 ac_cv_lib_nsl_inet_ntoa=no
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext \
3923 conftest$ac_exeext conftest.$ac_ext
3924 LIBS=$ac_check_lib_save_LIBS
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
3927 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
3928 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
3929 IRCDLIBS="$IRCDLIBS-lnsl "
3930 INETLIB="-lnsl"
3931 fi
3932
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5
3934 $as_echo_n "checking for RAND_egd in -lcrypto... " >&6; }
3935 if ${ac_cv_lib_crypto_RAND_egd+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 ac_check_lib_save_LIBS=$LIBS
3939 LIBS="-lcrypto $LIBS"
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942
3943 /* Override any GCC internal prototype to avoid an error.
3944 Use char because int might match the return type of a GCC
3945 builtin and then its argument prototype would still apply. */
3946 #ifdef __cplusplus
3947 extern "C"
3948 #endif
3949 char RAND_egd ();
3950 int
3951 main ()
3952 {
3953 return RAND_egd ();
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_link "$LINENO"; then :
3959 ac_cv_lib_crypto_RAND_egd=yes
3960 else
3961 ac_cv_lib_crypto_RAND_egd=no
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext \
3964 conftest$ac_exeext conftest.$ac_ext
3965 LIBS=$ac_check_lib_save_LIBS
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5
3968 $as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; }
3969 if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then :
3970
3971 $as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h
3972
3973 fi
3974
3975
3976
3977
3978 # We want to check for compiler flag support, but there is no way to make
3979 # clang's "argument unused" warning fatal. So we invoke the compiler through a
3980 # wrapper script that greps for this message.
3981 saved_CC="$CC"
3982 saved_CXX="$CXX"
3983 saved_LD="$LD"
3984 flag_wrap="$srcdir/extras/wrap-compiler-for-flag-check"
3985 CC="$flag_wrap $CC"
3986 CXX="$flag_wrap $CXX"
3987 LD="$flag_wrap $LD"
3988
3989 # We use the same hardening flags for C and C++. We must check that each flag
3990 # is supported by both compilers.
3991
3992
3993
3994
3995 # Check whether --enable-hardening was given.
3996 if test "${enable_hardening+set}" = set; then :
3997 enableval=$enable_hardening; hardening="$enableval"
3998 else
3999 hardening="yes"
4000 fi
4001
4002
4003 HARDEN_CFLAGS=""
4004 HARDEN_LDFLAGS=""
4005 if test x"$hardening" != x"no"; then :
4006
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4014 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4015 if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018
4019 ax_check_save_flags=$CFLAGS
4020 CFLAGS="$CFLAGS -Werror -fno-strict-overflow"
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023
4024 int
4025 main ()
4026 {
4027
4028 ;
4029 return 0;
4030 }
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4034 else
4035 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 CFLAGS=$ax_check_save_flags
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
4041 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
4042 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4050 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4051 if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054
4055 ax_check_save_flags=$CFLAGS
4056 CFLAGS="$CFLAGS -Werror -fno-strict-overflow"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059
4060 int
4061 main ()
4062 {
4063
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4070 else
4071 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 CFLAGS=$ax_check_save_flags
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
4077 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
4078 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4079 HARDEN_CFLAGS="$HARDEN_CFLAGS -fno-strict-overflow"
4080 else
4081 :
4082 fi
4083
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090 else
4091 :
4092 fi
4093
4094 ac_ext=c
4095 ac_cpp='$CPP $CPPFLAGS'
4096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099
4100
4101 # This one will likely succeed, even on platforms where it does nothing.
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
4109 $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
4110 if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113
4114 ax_check_save_flags=$CFLAGS
4115 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=2"
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118
4119 int
4120 main ()
4121 {
4122
4123 ;
4124 return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4129 else
4130 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 CFLAGS=$ax_check_save_flags
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5
4136 $as_echo "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; }
4137 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
4145 $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
4146 if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149
4150 ax_check_save_flags=$CFLAGS
4151 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=2"
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154
4155 int
4156 main ()
4157 {
4158
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4165 else
4166 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 CFLAGS=$ax_check_save_flags
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5
4172 $as_echo "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; }
4173 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4174 HARDEN_CFLAGS="$HARDEN_CFLAGS -D_FORTIFY_SOURCE=2"
4175 else
4176 :
4177 fi
4178
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185 else
4186 :
4187 fi
4188
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4203 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4204 if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207
4208 ax_check_save_flags=$CFLAGS
4209 CFLAGS="$CFLAGS -Werror -fstack-protector-all"
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212
4213 int
4214 main ()
4215 {
4216
4217 ;
4218 return 0;
4219 }
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4223 else
4224 ax_cv_check_cflags__Werror___fstack_protector_all=no
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 CFLAGS=$ax_check_save_flags
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
4230 $as_echo "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
4231 if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes; then :
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4239 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4240 if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243
4244 ax_check_save_flags=$CFLAGS
4245 CFLAGS="$CFLAGS -Werror -fstack-protector-all"
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248
4249 int
4250 main ()
4251 {
4252
4253 ;
4254 return 0;
4255 }
4256 _ACEOF
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4259 else
4260 ax_cv_check_cflags__Werror___fstack_protector_all=no
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 CFLAGS=$ax_check_save_flags
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
4266 $as_echo "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
4267 if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes; then :
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
4269 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
4270 if ${ax_cv_check_ldflags__Werror___fstack_protector_all+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273
4274 ax_check_save_flags=$LDFLAGS
4275 LDFLAGS="$LDFLAGS -Werror -fstack-protector-all"
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278
4279 int
4280 main ()
4281 {
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_c_try_link "$LINENO"; then :
4288 ax_cv_check_ldflags__Werror___fstack_protector_all=yes
4289 else
4290 ax_cv_check_ldflags__Werror___fstack_protector_all=no
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext \
4293 conftest$ac_exeext conftest.$ac_ext
4294 LDFLAGS=$ax_check_save_flags
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fstack_protector_all" >&5
4297 $as_echo "$ax_cv_check_ldflags__Werror___fstack_protector_all" >&6; }
4298 if test x"$ax_cv_check_ldflags__Werror___fstack_protector_all" = xyes; then :
4299 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-all"
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
4307 $as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; }
4308 if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311
4312 ax_check_save_flags=$CFLAGS
4313 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316
4317 int
4318 main ()
4319 {
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4327 else
4328 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4329 fi
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 CFLAGS=$ax_check_save_flags
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
4334 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
4335 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
4343 $as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; }
4344 if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347
4348 ax_check_save_flags=$CFLAGS
4349 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352
4353 int
4354 main ()
4355 {
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4363 else
4364 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4365 fi
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 CFLAGS=$ax_check_save_flags
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
4370 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
4371 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4372 HARDEN_CFLAGS="$HARDEN_CFLAGS -Wstack-protector"
4373 else
4374 :
4375 fi
4376
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382
4383 else
4384 :
4385 fi
4386
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392
4393 ac_ext=c
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
4400 $as_echo_n "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
4401 if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404
4405 ax_check_save_flags=$CFLAGS
4406 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409
4410 int
4411 main ()
4412 {
4413
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4420 else
4421 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4422 fi
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 CFLAGS=$ax_check_save_flags
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
4427 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
4428 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then :
4429 ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
4436 $as_echo_n "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
4437 if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440
4441 ax_check_save_flags=$CFLAGS
4442 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445
4446 int
4447 main ()
4448 {
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"; then :
4455 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4456 else
4457 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 CFLAGS=$ax_check_save_flags
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
4463 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
4464 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then :
4465 HARDEN_CFLAGS="$HARDEN_CFLAGS --param ssp-buffer-size=1"
4466 else
4467 :
4468 fi
4469
4470 ac_ext=c
4471 ac_cpp='$CPP $CPPFLAGS'
4472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475
4476 else
4477 :
4478 fi
4479
4480 ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486 else
4487 :
4488 fi
4489
4490 else
4491 :
4492 fi
4493
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500 else
4501 :
4502 fi
4503
4504 ac_ext=c
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
4510
4511 # At the link step, we might want -pie (GCC) or -Wl,-pie (Clang on OS X)
4512 #
4513 # The linker checks also compile code, so we need to include -fPIE as well.
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4521 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4522 if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525
4526 ax_check_save_flags=$CFLAGS
4527 CFLAGS="$CFLAGS -Werror -fPIE"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530
4531 int
4532 main ()
4533 {
4534
4535 ;
4536 return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540 ax_cv_check_cflags__Werror___fPIE=yes
4541 else
4542 ax_cv_check_cflags__Werror___fPIE=no
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 CFLAGS=$ax_check_save_flags
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
4548 $as_echo "$ax_cv_check_cflags__Werror___fPIE" >&6; }
4549 if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then :
4550 ac_ext=c
4551 ac_cpp='$CPP $CPPFLAGS'
4552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4557 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4558 if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561
4562 ax_check_save_flags=$CFLAGS
4563 CFLAGS="$CFLAGS -Werror -fPIE"
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main ()
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576 ax_cv_check_cflags__Werror___fPIE=yes
4577 else
4578 ax_cv_check_cflags__Werror___fPIE=no
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 CFLAGS=$ax_check_save_flags
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
4584 $as_echo "$ax_cv_check_cflags__Werror___fPIE" >&6; }
4585 if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then :
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -pie" >&5
4587 $as_echo_n "checking whether the linker accepts -fPIE -pie... " >&6; }
4588 if ${ax_cv_check_ldflags__Werror___fPIE__pie+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591
4592 ax_check_save_flags=$LDFLAGS
4593 LDFLAGS="$LDFLAGS -Werror -fPIE -pie"
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596
4597 int
4598 main ()
4599 {
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 if ac_fn_c_try_link "$LINENO"; then :
4606 ax_cv_check_ldflags__Werror___fPIE__pie=yes
4607 else
4608 ax_cv_check_ldflags__Werror___fPIE__pie=no
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext \
4611 conftest$ac_exeext conftest.$ac_ext
4612 LDFLAGS=$ax_check_save_flags
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__pie" >&5
4615 $as_echo "$ax_cv_check_ldflags__Werror___fPIE__pie" >&6; }
4616 if test x"$ax_cv_check_ldflags__Werror___fPIE__pie" = xyes; then :
4617 HARDEN_BINCFLAGS="-fPIE"
4618 HARDEN_BINLDFLAGS="-pie"
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -Wl,-pie" >&5
4621 $as_echo_n "checking whether the linker accepts -fPIE -Wl,-pie... " >&6; }
4622 if ${ax_cv_check_ldflags__Werror___fPIE__Wl__pie+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625
4626 ax_check_save_flags=$LDFLAGS
4627 LDFLAGS="$LDFLAGS -Werror -fPIE -Wl,-pie"
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630
4631 int
4632 main ()
4633 {
4634
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 if ac_fn_c_try_link "$LINENO"; then :
4640 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=yes
4641 else
4642 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=no
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext \
4645 conftest$ac_exeext conftest.$ac_ext
4646 LDFLAGS=$ax_check_save_flags
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&5
4649 $as_echo "$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&6; }
4650 if test x"$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" = xyes; then :
4651 HARDEN_BINCFLAGS="-fPIE"
4652 HARDEN_BINLDFLAGS="-Wl,-pie"
4653 else
4654 :
4655 fi
4656
4657 fi
4658
4659 else
4660 :
4661 fi
4662
4663 ac_ext=c
4664 ac_cpp='$CPP $CPPFLAGS'
4665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668
4669 else
4670 :
4671 fi
4672
4673 ac_ext=c
4674 ac_cpp='$CPP $CPPFLAGS'
4675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
4681 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
4682 if ${ax_cv_check_ldflags__Werror___Wl__z_relro+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685
4686 ax_check_save_flags=$LDFLAGS
4687 LDFLAGS="$LDFLAGS -Werror -Wl,-z,relro"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690
4691 int
4692 main ()
4693 {
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_link "$LINENO"; then :
4700 ax_cv_check_ldflags__Werror___Wl__z_relro=yes
4701 else
4702 ax_cv_check_ldflags__Werror___Wl__z_relro=no
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext \
4705 conftest$ac_exeext conftest.$ac_ext
4706 LDFLAGS=$ax_check_save_flags
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_relro" >&5
4709 $as_echo "$ax_cv_check_ldflags__Werror___Wl__z_relro" >&6; }
4710 if test x"$ax_cv_check_ldflags__Werror___Wl__z_relro" = xyes; then :
4711 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,relro"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
4713 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
4714 if ${ax_cv_check_ldflags__Werror___Wl__z_now+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717
4718 ax_check_save_flags=$LDFLAGS
4719 LDFLAGS="$LDFLAGS -Werror -Wl,-z,now"
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722
4723 int
4724 main ()
4725 {
4726
4727 ;
4728 return 0;
4729 }
4730 _ACEOF
4731 if ac_fn_c_try_link "$LINENO"; then :
4732 ax_cv_check_ldflags__Werror___Wl__z_now=yes
4733 else
4734 ax_cv_check_ldflags__Werror___Wl__z_now=no
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext \
4737 conftest$ac_exeext conftest.$ac_ext
4738 LDFLAGS=$ax_check_save_flags
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_now" >&5
4741 $as_echo "$ax_cv_check_ldflags__Werror___Wl__z_now" >&6; }
4742 if test x"$ax_cv_check_ldflags__Werror___Wl__z_now" = xyes; then :
4743 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,now"
4744 else
4745 :
4746 fi
4747
4748 else
4749 :
4750 fi
4751
4752 fi
4753
4754
4755
4756
4757
4758 # End of flag tests.
4759 CC="$saved_CC"
4760 CXX="$saved_CXX"
4761 LD="$saved_LD"
4762
4763 ac_ext=c
4764 ac_cpp='$CPP $CPPFLAGS'
4765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
4770 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
4771 if ${ax_cv_check_cflags__Werror___fno_strict_aliasing+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774
4775 ax_check_save_flags=$CFLAGS
4776 CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779
4780 int
4781 main ()
4782 {
4783
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ax_cv_check_cflags__Werror___fno_strict_aliasing=yes
4790 else
4791 ax_cv_check_cflags__Werror___fno_strict_aliasing=no
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 CFLAGS=$ax_check_save_flags
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_aliasing" >&5
4797 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_aliasing" >&6; }
4798 if test x"$ax_cv_check_cflags__Werror___fno_strict_aliasing" = xyes; then :
4799 ac_ext=c
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
4806 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
4807 if ${ax_cv_check_cflags__Werror___fno_strict_aliasing+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810
4811 ax_check_save_flags=$CFLAGS
4812 CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815
4816 int
4817 main ()
4818 {
4819
4820 ;
4821 return 0;
4822 }
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ax_cv_check_cflags__Werror___fno_strict_aliasing=yes
4826 else
4827 ax_cv_check_cflags__Werror___fno_strict_aliasing=no
4828 fi
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 CFLAGS=$ax_check_save_flags
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_aliasing" >&5
4833 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_aliasing" >&6; }
4834 if test x"$ax_cv_check_cflags__Werror___fno_strict_aliasing" = xyes; then :
4835 CFLAGS="$CFLAGS -fno-strict-aliasing"
4836 else
4837 :
4838 fi
4839
4840 ac_ext=c
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845
4846 else
4847 :
4848 fi
4849
4850 ac_ext=c
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855
4856
4857 CFLAGS="$CFLAGS -funsigned-char"
4858
4859
4860 CFLAGS="$CFLAGS -Wall"
4861
4862 ac_ext=c
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
4869 $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
4870 if ${ax_cv_check_cflags__Werror___Wextra+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873
4874 ax_check_save_flags=$CFLAGS
4875 CFLAGS="$CFLAGS -Werror -Wextra"
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4878
4879 int
4880 main ()
4881 {
4882
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ax_cv_check_cflags__Werror___Wextra=yes
4889 else
4890 ax_cv_check_cflags__Werror___Wextra=no
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 CFLAGS=$ax_check_save_flags
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wextra" >&5
4896 $as_echo "$ax_cv_check_cflags__Werror___Wextra" >&6; }
4897 if test x"$ax_cv_check_cflags__Werror___Wextra" = xyes; then :
4898 ac_ext=c
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
4905 $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
4906 if ${ax_cv_check_cflags__Werror___Wextra+:} false; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909
4910 ax_check_save_flags=$CFLAGS
4911 CFLAGS="$CFLAGS -Werror -Wextra"
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914
4915 int
4916 main ()
4917 {
4918
4919 ;
4920 return 0;
4921 }
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ax_cv_check_cflags__Werror___Wextra=yes
4925 else
4926 ax_cv_check_cflags__Werror___Wextra=no
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 CFLAGS=$ax_check_save_flags
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wextra" >&5
4932 $as_echo "$ax_cv_check_cflags__Werror___Wextra" >&6; }
4933 if test x"$ax_cv_check_cflags__Werror___Wextra" = xyes; then :
4934 CFLAGS="$CFLAGS -Wextra"
4935 else
4936 :
4937 fi
4938
4939 ac_ext=c
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944
4945 else
4946 :
4947 fi
4948
4949 ac_ext=c
4950 ac_cpp='$CPP $CPPFLAGS'
4951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954
4955 ac_ext=c
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waggregate-return" >&5
4962 $as_echo_n "checking whether C compiler accepts -Waggregate-return... " >&6; }
4963 if ${ax_cv_check_cflags__Werror___Waggregate_return+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966
4967 ax_check_save_flags=$CFLAGS
4968 CFLAGS="$CFLAGS -Werror -Waggregate-return"
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971
4972 int
4973 main ()
4974 {
4975
4976 ;
4977 return 0;
4978 }
4979 _ACEOF
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 ax_cv_check_cflags__Werror___Waggregate_return=yes
4982 else
4983 ax_cv_check_cflags__Werror___Waggregate_return=no
4984 fi
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 CFLAGS=$ax_check_save_flags
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waggregate_return" >&5
4989 $as_echo "$ax_cv_check_cflags__Werror___Waggregate_return" >&6; }
4990 if test x"$ax_cv_check_cflags__Werror___Waggregate_return" = xyes; then :
4991 ac_ext=c
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waggregate-return" >&5
4998 $as_echo_n "checking whether C compiler accepts -Waggregate-return... " >&6; }
4999 if ${ax_cv_check_cflags__Werror___Waggregate_return+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002
5003 ax_check_save_flags=$CFLAGS
5004 CFLAGS="$CFLAGS -Werror -Waggregate-return"
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007
5008 int
5009 main ()
5010 {
5011
5012 ;
5013 return 0;
5014 }
5015 _ACEOF
5016 if ac_fn_c_try_compile "$LINENO"; then :
5017 ax_cv_check_cflags__Werror___Waggregate_return=yes
5018 else
5019 ax_cv_check_cflags__Werror___Waggregate_return=no
5020 fi
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 CFLAGS=$ax_check_save_flags
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waggregate_return" >&5
5025 $as_echo "$ax_cv_check_cflags__Werror___Waggregate_return" >&6; }
5026 if test x"$ax_cv_check_cflags__Werror___Waggregate_return" = xyes; then :
5027 CFLAGS="$CFLAGS -Waggregate-return"
5028 else
5029 :
5030 fi
5031
5032 ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037
5038 else
5039 :
5040 fi
5041
5042 ac_ext=c
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047
5048 ac_ext=c
5049 ac_cpp='$CPP $CPPFLAGS'
5050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5
5055 $as_echo_n "checking whether C compiler accepts -Wduplicated-cond... " >&6; }
5056 if ${ax_cv_check_cflags__Werror___Wduplicated_cond+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059
5060 ax_check_save_flags=$CFLAGS
5061 CFLAGS="$CFLAGS -Werror -Wduplicated-cond"
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064
5065 int
5066 main ()
5067 {
5068
5069 ;
5070 return 0;
5071 }
5072 _ACEOF
5073 if ac_fn_c_try_compile "$LINENO"; then :
5074 ax_cv_check_cflags__Werror___Wduplicated_cond=yes
5075 else
5076 ax_cv_check_cflags__Werror___Wduplicated_cond=no
5077 fi
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 CFLAGS=$ax_check_save_flags
5080 fi
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_cond" >&5
5082 $as_echo "$ax_cv_check_cflags__Werror___Wduplicated_cond" >&6; }
5083 if test x"$ax_cv_check_cflags__Werror___Wduplicated_cond" = xyes; then :
5084 ac_ext=c
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5
5091 $as_echo_n "checking whether C compiler accepts -Wduplicated-cond... " >&6; }
5092 if ${ax_cv_check_cflags__Werror___Wduplicated_cond+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095
5096 ax_check_save_flags=$CFLAGS
5097 CFLAGS="$CFLAGS -Werror -Wduplicated-cond"
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5100
5101 int
5102 main ()
5103 {
5104
5105 ;
5106 return 0;
5107 }
5108 _ACEOF
5109 if ac_fn_c_try_compile "$LINENO"; then :
5110 ax_cv_check_cflags__Werror___Wduplicated_cond=yes
5111 else
5112 ax_cv_check_cflags__Werror___Wduplicated_cond=no
5113 fi
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 CFLAGS=$ax_check_save_flags
5116 fi
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_cond" >&5
5118 $as_echo "$ax_cv_check_cflags__Werror___Wduplicated_cond" >&6; }
5119 if test x"$ax_cv_check_cflags__Werror___Wduplicated_cond" = xyes; then :
5120 CFLAGS="$CFLAGS -Wduplicated-cond"
5121 else
5122 :
5123 fi
5124
5125 ac_ext=c
5126 ac_cpp='$CPP $CPPFLAGS'
5127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130
5131 else
5132 :
5133 fi
5134
5135 ac_ext=c
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140
5141 ac_ext=c
5142 ac_cpp='$CPP $CPPFLAGS'
5143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5
5148 $as_echo_n "checking whether C compiler accepts -Wduplicated-branches... " >&6; }
5149 if ${ax_cv_check_cflags__Werror___Wduplicated_branches+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152
5153 ax_check_save_flags=$CFLAGS
5154 CFLAGS="$CFLAGS -Werror -Wduplicated-branches"
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157
5158 int
5159 main ()
5160 {
5161
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 if ac_fn_c_try_compile "$LINENO"; then :
5167 ax_cv_check_cflags__Werror___Wduplicated_branches=yes
5168 else
5169 ax_cv_check_cflags__Werror___Wduplicated_branches=no
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 CFLAGS=$ax_check_save_flags
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_branches" >&5
5175 $as_echo "$ax_cv_check_cflags__Werror___Wduplicated_branches" >&6; }
5176 if test x"$ax_cv_check_cflags__Werror___Wduplicated_branches" = xyes; then :
5177 ac_ext=c
5178 ac_cpp='$CPP $CPPFLAGS'
5179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5
5184 $as_echo_n "checking whether C compiler accepts -Wduplicated-branches... " >&6; }
5185 if ${ax_cv_check_cflags__Werror___Wduplicated_branches+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188
5189 ax_check_save_flags=$CFLAGS
5190 CFLAGS="$CFLAGS -Werror -Wduplicated-branches"
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193
5194 int
5195 main ()
5196 {
5197
5198 ;
5199 return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203 ax_cv_check_cflags__Werror___Wduplicated_branches=yes
5204 else
5205 ax_cv_check_cflags__Werror___Wduplicated_branches=no
5206 fi
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 CFLAGS=$ax_check_save_flags
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_branches" >&5
5211 $as_echo "$ax_cv_check_cflags__Werror___Wduplicated_branches" >&6; }
5212 if test x"$ax_cv_check_cflags__Werror___Wduplicated_branches" = xyes; then :
5213 CFLAGS="$CFLAGS -Wduplicated-branches"
5214 else
5215 :
5216 fi
5217
5218 ac_ext=c
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223
5224 else
5225 :
5226 fi
5227
5228 ac_ext=c
5229 ac_cpp='$CPP $CPPFLAGS'
5230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233
5234
5235
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-sign" >&5
5243 $as_echo_n "checking whether C compiler accepts -Wpointer-sign... " >&6; }
5244 if ${ax_cv_check_cflags__Werror___Wpointer_sign+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247
5248 ax_check_save_flags=$CFLAGS
5249 CFLAGS="$CFLAGS -Werror -Wpointer-sign"
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252
5253 int
5254 main ()
5255 {
5256
5257 ;
5258 return 0;
5259 }
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262 ax_cv_check_cflags__Werror___Wpointer_sign=yes
5263 else
5264 ax_cv_check_cflags__Werror___Wpointer_sign=no
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 CFLAGS=$ax_check_save_flags
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wpointer_sign" >&5
5270 $as_echo "$ax_cv_check_cflags__Werror___Wpointer_sign" >&6; }
5271 if test x"$ax_cv_check_cflags__Werror___Wpointer_sign" = xyes; then :
5272 ac_ext=c
5273 ac_cpp='$CPP $CPPFLAGS'
5274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-sign" >&5
5279 $as_echo_n "checking whether C compiler accepts -Wpointer-sign... " >&6; }
5280 if ${ax_cv_check_cflags__Werror___Wpointer_sign+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283
5284 ax_check_save_flags=$CFLAGS
5285 CFLAGS="$CFLAGS -Werror -Wpointer-sign"
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288
5289 int
5290 main ()
5291 {
5292
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 ax_cv_check_cflags__Werror___Wpointer_sign=yes
5299 else
5300 ax_cv_check_cflags__Werror___Wpointer_sign=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 CFLAGS=$ax_check_save_flags
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wpointer_sign" >&5
5306 $as_echo "$ax_cv_check_cflags__Werror___Wpointer_sign" >&6; }
5307 if test x"$ax_cv_check_cflags__Werror___Wpointer_sign" = xyes; then :
5308 CFLAGS="$CFLAGS -Wno-pointer-sign"
5309 else
5310 :
5311 fi
5312
5313 ac_ext=c
5314 ac_cpp='$CPP $CPPFLAGS'
5315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318
5319 else
5320 :
5321 fi
5322
5323 ac_ext=c
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328
5329
5330 ac_ext=c
5331 ac_cpp='$CPP $CPPFLAGS'
5332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winvalid-source-encoding" >&5
5337 $as_echo_n "checking whether C compiler accepts -Winvalid-source-encoding... " >&6; }
5338 if ${ax_cv_check_cflags__Werror___Winvalid_source_encoding+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341
5342 ax_check_save_flags=$CFLAGS
5343 CFLAGS="$CFLAGS -Werror -Winvalid-source-encoding"
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346
5347 int
5348 main ()
5349 {
5350
5351 ;
5352 return 0;
5353 }
5354 _ACEOF
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356 ax_cv_check_cflags__Werror___Winvalid_source_encoding=yes
5357 else
5358 ax_cv_check_cflags__Werror___Winvalid_source_encoding=no
5359 fi
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 CFLAGS=$ax_check_save_flags
5362 fi
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&5
5364 $as_echo "$ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&6; }
5365 if test x"$ax_cv_check_cflags__Werror___Winvalid_source_encoding" = xyes; then :
5366 ac_ext=c
5367 ac_cpp='$CPP $CPPFLAGS'
5368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winvalid-source-encoding" >&5
5373 $as_echo_n "checking whether C compiler accepts -Winvalid-source-encoding... " >&6; }
5374 if ${ax_cv_check_cflags__Werror___Winvalid_source_encoding+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377
5378 ax_check_save_flags=$CFLAGS
5379 CFLAGS="$CFLAGS -Werror -Winvalid-source-encoding"
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382
5383 int
5384 main ()
5385 {
5386
5387 ;
5388 return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 ax_cv_check_cflags__Werror___Winvalid_source_encoding=yes
5393 else
5394 ax_cv_check_cflags__Werror___Winvalid_source_encoding=no
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 CFLAGS=$ax_check_save_flags
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&5
5400 $as_echo "$ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&6; }
5401 if test x"$ax_cv_check_cflags__Werror___Winvalid_source_encoding" = xyes; then :
5402 CFLAGS="$CFLAGS -Wno-invalid-source-encoding"
5403 else
5404 :
5405 fi
5406
5407 ac_ext=c
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412
5413 else
5414 :
5415 fi
5416
5417 ac_ext=c
5418 ac_cpp='$CPP $CPPFLAGS'
5419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5422
5423
5424 ac_ext=c
5425 ac_cpp='$CPP $CPPFLAGS'
5426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-zero-length" >&5
5431 $as_echo_n "checking whether C compiler accepts -Wformat-zero-length... " >&6; }
5432 if ${ax_cv_check_cflags__Werror___Wformat_zero_length+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435
5436 ax_check_save_flags=$CFLAGS
5437 CFLAGS="$CFLAGS -Werror -Wformat-zero-length"
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440
5441 int
5442 main ()
5443 {
5444
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 ax_cv_check_cflags__Werror___Wformat_zero_length=yes
5451 else
5452 ax_cv_check_cflags__Werror___Wformat_zero_length=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 CFLAGS=$ax_check_save_flags
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_zero_length" >&5
5458 $as_echo "$ax_cv_check_cflags__Werror___Wformat_zero_length" >&6; }
5459 if test x"$ax_cv_check_cflags__Werror___Wformat_zero_length" = xyes; then :
5460 ac_ext=c
5461 ac_cpp='$CPP $CPPFLAGS'
5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-zero-length" >&5
5467 $as_echo_n "checking whether C compiler accepts -Wformat-zero-length... " >&6; }
5468 if ${ax_cv_check_cflags__Werror___Wformat_zero_length+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471
5472 ax_check_save_flags=$CFLAGS
5473 CFLAGS="$CFLAGS -Werror -Wformat-zero-length"
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476
5477 int
5478 main ()
5479 {
5480
5481 ;
5482 return 0;
5483 }
5484 _ACEOF
5485 if ac_fn_c_try_compile "$LINENO"; then :
5486 ax_cv_check_cflags__Werror___Wformat_zero_length=yes
5487 else
5488 ax_cv_check_cflags__Werror___Wformat_zero_length=no
5489 fi
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 CFLAGS=$ax_check_save_flags
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_zero_length" >&5
5494 $as_echo "$ax_cv_check_cflags__Werror___Wformat_zero_length" >&6; }
5495 if test x"$ax_cv_check_cflags__Werror___Wformat_zero_length" = xyes; then :
5496 CFLAGS="$CFLAGS -Wno-format-zero-length"
5497 else
5498 :
5499 fi
5500
5501 ac_ext=c
5502 ac_cpp='$CPP $CPPFLAGS'
5503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5506
5507 else
5508 :
5509 fi
5510
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516
5517
5518 ac_ext=c
5519 ac_cpp='$CPP $CPPFLAGS'
5520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
5525 $as_echo_n "checking whether C compiler accepts -Wformat-truncation... " >&6; }
5526 if ${ax_cv_check_cflags__Werror___Wformat_truncation+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529
5530 ax_check_save_flags=$CFLAGS
5531 CFLAGS="$CFLAGS -Werror -Wformat-truncation"
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534
5535 int
5536 main ()
5537 {
5538
5539 ;
5540 return 0;
5541 }
5542 _ACEOF
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 ax_cv_check_cflags__Werror___Wformat_truncation=yes
5545 else
5546 ax_cv_check_cflags__Werror___Wformat_truncation=no
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 CFLAGS=$ax_check_save_flags
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_truncation" >&5
5552 $as_echo "$ax_cv_check_cflags__Werror___Wformat_truncation" >&6; }
5553 if test x"$ax_cv_check_cflags__Werror___Wformat_truncation" = xyes; then :
5554 ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
5561 $as_echo_n "checking whether C compiler accepts -Wformat-truncation... " >&6; }
5562 if ${ax_cv_check_cflags__Werror___Wformat_truncation+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565
5566 ax_check_save_flags=$CFLAGS
5567 CFLAGS="$CFLAGS -Werror -Wformat-truncation"
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570
5571 int
5572 main ()
5573 {
5574
5575 ;
5576 return 0;
5577 }
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"; then :
5580 ax_cv_check_cflags__Werror___Wformat_truncation=yes
5581 else
5582 ax_cv_check_cflags__Werror___Wformat_truncation=no
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 CFLAGS=$ax_check_save_flags
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_truncation" >&5
5588 $as_echo "$ax_cv_check_cflags__Werror___Wformat_truncation" >&6; }
5589 if test x"$ax_cv_check_cflags__Werror___Wformat_truncation" = xyes; then :
5590 CFLAGS="$CFLAGS -Wno-format-truncation"
5591 else
5592 :
5593 fi
5594
5595 ac_ext=c
5596 ac_cpp='$CPP $CPPFLAGS'
5597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600
5601 else
5602 :
5603 fi
5604
5605 ac_ext=c
5606 ac_cpp='$CPP $CPPFLAGS'
5607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5610
5611
5612 ac_ext=c
5613 ac_cpp='$CPP $CPPFLAGS'
5614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused" >&5
5619 $as_echo_n "checking whether C compiler accepts -Wunused... " >&6; }
5620 if ${ax_cv_check_cflags__Werror___Wunused+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623
5624 ax_check_save_flags=$CFLAGS
5625 CFLAGS="$CFLAGS -Werror -Wunused"
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628
5629 int
5630 main ()
5631 {
5632
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 ax_cv_check_cflags__Werror___Wunused=yes
5639 else
5640 ax_cv_check_cflags__Werror___Wunused=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 CFLAGS=$ax_check_save_flags
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused" >&5
5646 $as_echo "$ax_cv_check_cflags__Werror___Wunused" >&6; }
5647 if test x"$ax_cv_check_cflags__Werror___Wunused" = xyes; then :
5648 ac_ext=c
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused" >&5
5655 $as_echo_n "checking whether C compiler accepts -Wunused... " >&6; }
5656 if ${ax_cv_check_cflags__Werror___Wunused+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659
5660 ax_check_save_flags=$CFLAGS
5661 CFLAGS="$CFLAGS -Werror -Wunused"
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664
5665 int
5666 main ()
5667 {
5668
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 ax_cv_check_cflags__Werror___Wunused=yes
5675 else
5676 ax_cv_check_cflags__Werror___Wunused=no
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 CFLAGS=$ax_check_save_flags
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused" >&5
5682 $as_echo "$ax_cv_check_cflags__Werror___Wunused" >&6; }
5683 if test x"$ax_cv_check_cflags__Werror___Wunused" = xyes; then :
5684 CFLAGS="$CFLAGS -Wno-unused"
5685 else
5686 :
5687 fi
5688
5689 ac_ext=c
5690 ac_cpp='$CPP $CPPFLAGS'
5691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5694
5695 else
5696 :
5697 fi
5698
5699 ac_ext=c
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704
5705 ac_ext=c
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
5712 $as_echo_n "checking whether C compiler accepts -Wunused-parameter... " >&6; }
5713 if ${ax_cv_check_cflags__Werror___Wunused_parameter+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716
5717 ax_check_save_flags=$CFLAGS
5718 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721
5722 int
5723 main ()
5724 {
5725
5726 ;
5727 return 0;
5728 }
5729 _ACEOF
5730 if ac_fn_c_try_compile "$LINENO"; then :
5731 ax_cv_check_cflags__Werror___Wunused_parameter=yes
5732 else
5733 ax_cv_check_cflags__Werror___Wunused_parameter=no
5734 fi
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 CFLAGS=$ax_check_save_flags
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused_parameter" >&5
5739 $as_echo "$ax_cv_check_cflags__Werror___Wunused_parameter" >&6; }
5740 if test x"$ax_cv_check_cflags__Werror___Wunused_parameter" = xyes; then :
5741 ac_ext=c
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
5748 $as_echo_n "checking whether C compiler accepts -Wunused-parameter... " >&6; }
5749 if ${ax_cv_check_cflags__Werror___Wunused_parameter+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752
5753 ax_check_save_flags=$CFLAGS
5754 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757
5758 int
5759 main ()
5760 {
5761
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_c_try_compile "$LINENO"; then :
5767 ax_cv_check_cflags__Werror___Wunused_parameter=yes
5768 else
5769 ax_cv_check_cflags__Werror___Wunused_parameter=no
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 CFLAGS=$ax_check_save_flags
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused_parameter" >&5
5775 $as_echo "$ax_cv_check_cflags__Werror___Wunused_parameter" >&6; }
5776 if test x"$ax_cv_check_cflags__Werror___Wunused_parameter" = xyes; then :
5777 CFLAGS="$CFLAGS -Wno-unused-parameter"
5778 else
5779 :
5780 fi
5781
5782 ac_ext=c
5783 ac_cpp='$CPP $CPPFLAGS'
5784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787
5788 else
5789 :
5790 fi
5791
5792 ac_ext=c
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797
5798
5799 ac_ext=c
5800 ac_cpp='$CPP $CPPFLAGS'
5801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
5806 $as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
5807 if ${ax_cv_check_cflags__Werror___Wchar_subscripts+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810
5811 ax_check_save_flags=$CFLAGS
5812 CFLAGS="$CFLAGS -Werror -Wchar-subscripts"
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815
5816 int
5817 main ()
5818 {
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 if ac_fn_c_try_compile "$LINENO"; then :
5825 ax_cv_check_cflags__Werror___Wchar_subscripts=yes
5826 else
5827 ax_cv_check_cflags__Werror___Wchar_subscripts=no
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 CFLAGS=$ax_check_save_flags
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wchar_subscripts" >&5
5833 $as_echo "$ax_cv_check_cflags__Werror___Wchar_subscripts" >&6; }
5834 if test x"$ax_cv_check_cflags__Werror___Wchar_subscripts" = xyes; then :
5835 ac_ext=c
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
5842 $as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
5843 if ${ax_cv_check_cflags__Werror___Wchar_subscripts+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846
5847 ax_check_save_flags=$CFLAGS
5848 CFLAGS="$CFLAGS -Werror -Wchar-subscripts"
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851
5852 int
5853 main ()
5854 {
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861 ax_cv_check_cflags__Werror___Wchar_subscripts=yes
5862 else
5863 ax_cv_check_cflags__Werror___Wchar_subscripts=no
5864 fi
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 CFLAGS=$ax_check_save_flags
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wchar_subscripts" >&5
5869 $as_echo "$ax_cv_check_cflags__Werror___Wchar_subscripts" >&6; }
5870 if test x"$ax_cv_check_cflags__Werror___Wchar_subscripts" = xyes; then :
5871 CFLAGS="$CFLAGS -Wno-char-subscripts"
5872 else
5873 :
5874 fi
5875
5876 ac_ext=c
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881
5882 else
5883 :
5884 fi
5885
5886 ac_ext=c
5887 ac_cpp='$CPP $CPPFLAGS'
5888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5891
5892
5893 ac_ext=c
5894 ac_cpp='$CPP $CPPFLAGS'
5895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5898
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-compare" >&5
5900 $as_echo_n "checking whether C compiler accepts -Wsign-compare... " >&6; }
5901 if ${ax_cv_check_cflags__Werror___Wsign_compare+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904
5905 ax_check_save_flags=$CFLAGS
5906 CFLAGS="$CFLAGS -Werror -Wsign-compare"
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909
5910 int
5911 main ()
5912 {
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_compile "$LINENO"; then :
5919 ax_cv_check_cflags__Werror___Wsign_compare=yes
5920 else
5921 ax_cv_check_cflags__Werror___Wsign_compare=no
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 CFLAGS=$ax_check_save_flags
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wsign_compare" >&5
5927 $as_echo "$ax_cv_check_cflags__Werror___Wsign_compare" >&6; }
5928 if test x"$ax_cv_check_cflags__Werror___Wsign_compare" = xyes; then :
5929 ac_ext=c
5930 ac_cpp='$CPP $CPPFLAGS'
5931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-compare" >&5
5936 $as_echo_n "checking whether C compiler accepts -Wsign-compare... " >&6; }
5937 if ${ax_cv_check_cflags__Werror___Wsign_compare+:} false; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940
5941 ax_check_save_flags=$CFLAGS
5942 CFLAGS="$CFLAGS -Werror -Wsign-compare"
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945
5946 int
5947 main ()
5948 {
5949
5950 ;
5951 return 0;
5952 }
5953 _ACEOF
5954 if ac_fn_c_try_compile "$LINENO"; then :
5955 ax_cv_check_cflags__Werror___Wsign_compare=yes
5956 else
5957 ax_cv_check_cflags__Werror___Wsign_compare=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 CFLAGS=$ax_check_save_flags
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wsign_compare" >&5
5963 $as_echo "$ax_cv_check_cflags__Werror___Wsign_compare" >&6; }
5964 if test x"$ax_cv_check_cflags__Werror___Wsign_compare" = xyes; then :
5965 CFLAGS="$CFLAGS -Wno-sign-compare"
5966 else
5967 :
5968 fi
5969
5970 ac_ext=c
5971 ac_cpp='$CPP $CPPFLAGS'
5972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5975
5976 else
5977 :
5978 fi
5979
5980 ac_ext=c
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985
5986
5987 ac_ext=c
5988 ac_cpp='$CPP $CPPFLAGS'
5989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
5994 $as_echo_n "checking whether C compiler accepts -Wempty-body... " >&6; }
5995 if ${ax_cv_check_cflags__Werror___Wempty_body+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998
5999 ax_check_save_flags=$CFLAGS
6000 CFLAGS="$CFLAGS -Werror -Wempty-body"
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003
6004 int
6005 main ()
6006 {
6007
6008 ;
6009 return 0;
6010 }
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 ax_cv_check_cflags__Werror___Wempty_body=yes
6014 else
6015 ax_cv_check_cflags__Werror___Wempty_body=no
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 CFLAGS=$ax_check_save_flags
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wempty_body" >&5
6021 $as_echo "$ax_cv_check_cflags__Werror___Wempty_body" >&6; }
6022 if test x"$ax_cv_check_cflags__Werror___Wempty_body" = xyes; then :
6023 ac_ext=c
6024 ac_cpp='$CPP $CPPFLAGS'
6025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
6030 $as_echo_n "checking whether C compiler accepts -Wempty-body... " >&6; }
6031 if ${ax_cv_check_cflags__Werror___Wempty_body+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034
6035 ax_check_save_flags=$CFLAGS
6036 CFLAGS="$CFLAGS -Werror -Wempty-body"
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039
6040 int
6041 main ()
6042 {
6043
6044 ;
6045 return 0;
6046 }
6047 _ACEOF
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049 ax_cv_check_cflags__Werror___Wempty_body=yes
6050 else
6051 ax_cv_check_cflags__Werror___Wempty_body=no
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 CFLAGS=$ax_check_save_flags
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wempty_body" >&5
6057 $as_echo "$ax_cv_check_cflags__Werror___Wempty_body" >&6; }
6058 if test x"$ax_cv_check_cflags__Werror___Wempty_body" = xyes; then :
6059 CFLAGS="$CFLAGS -Wno-empty-body"
6060 else
6061 :
6062 fi
6063
6064 ac_ext=c
6065 ac_cpp='$CPP $CPPFLAGS'
6066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6069
6070 else
6071 :
6072 fi
6073
6074 ac_ext=c
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079
6080
6081 ac_ext=c
6082 ac_cpp='$CPP $CPPFLAGS'
6083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
6088 $as_echo_n "checking whether C compiler accepts -Waddress... " >&6; }
6089 if ${ax_cv_check_cflags__Werror___Waddress+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092
6093 ax_check_save_flags=$CFLAGS
6094 CFLAGS="$CFLAGS -Werror -Waddress"
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097
6098 int
6099 main ()
6100 {
6101
6102 ;
6103 return 0;
6104 }
6105 _ACEOF
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 ax_cv_check_cflags__Werror___Waddress=yes
6108 else
6109 ax_cv_check_cflags__Werror___Waddress=no
6110 fi
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 CFLAGS=$ax_check_save_flags
6113 fi
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waddress" >&5
6115 $as_echo "$ax_cv_check_cflags__Werror___Waddress" >&6; }
6116 if test x"$ax_cv_check_cflags__Werror___Waddress" = xyes; then :
6117 ac_ext=c
6118 ac_cpp='$CPP $CPPFLAGS'
6119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
6124 $as_echo_n "checking whether C compiler accepts -Waddress... " >&6; }
6125 if ${ax_cv_check_cflags__Werror___Waddress+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128
6129 ax_check_save_flags=$CFLAGS
6130 CFLAGS="$CFLAGS -Werror -Waddress"
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133
6134 int
6135 main ()
6136 {
6137
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_compile "$LINENO"; then :
6143 ax_cv_check_cflags__Werror___Waddress=yes
6144 else
6145 ax_cv_check_cflags__Werror___Waddress=no
6146 fi
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 CFLAGS=$ax_check_save_flags
6149 fi
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waddress" >&5
6151 $as_echo "$ax_cv_check_cflags__Werror___Waddress" >&6; }
6152 if test x"$ax_cv_check_cflags__Werror___Waddress" = xyes; then :
6153 CFLAGS="$CFLAGS -Wno-address"
6154 else
6155 :
6156 fi
6157
6158 ac_ext=c
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6163
6164 else
6165 :
6166 fi
6167
6168 ac_ext=c
6169 ac_cpp='$CPP $CPPFLAGS'
6170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173
6174
6175
6176
6177
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system has IPv6 support" >&5
6180 $as_echo_n "checking if your system has IPv6 support... " >&6; }
6181 if ${ac_cv_ip6+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184
6185 save_libs="$LIBS"
6186 LIBS="$LIBS $SOCKLIB"
6187 if test "$cross_compiling" = yes; then :
6188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6190 as_fn_error $? "cannot run test program while cross compiling
6191 See \`config.log' for more details" "$LINENO" 5; }
6192 else
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195
6196 #include <sys/types.h>
6197 #include <sys/socket.h>
6198 int main() {
6199 int s = socket(AF_INET6, SOCK_STREAM, 0);
6200 exit(0); /* We only check if the code compiles, that's enough. We can deal with missing runtime IPv6 */
6201 }
6202
6203 _ACEOF
6204 if ac_fn_c_try_run "$LINENO"; then :
6205 ac_cv_ip6=yes
6206 else
6207 ac_cv_ip6=no
6208 fi
6209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6210 conftest.$ac_objext conftest.beam conftest.$ac_ext
6211 fi
6212
6213
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip6" >&5
6216 $as_echo "$ac_cv_ip6" >&6; }
6217 if test "$ac_cv_ip6" = "no"; then
6218 as_fn_error $? "Your system does not support IPv6" "$LINENO" 5
6219 fi
6220 LIBS="$save_libs"
6221
6222 ac_ext=c
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6228 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6229 # On Suns, sometimes $CPP names a directory.
6230 if test -n "$CPP" && test -d "$CPP"; then
6231 CPP=
6232 fi
6233 if test -z "$CPP"; then
6234 if ${ac_cv_prog_CPP+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 # Double quotes because CPP needs to be expanded
6238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6239 do
6240 ac_preproc_ok=false
6241 for ac_c_preproc_warn_flag in '' yes
6242 do
6243 # Use a header file that comes with gcc, so configuring glibc
6244 # with a fresh cross-compiler works.
6245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6246 # <limits.h> exists even on freestanding compilers.
6247 # On the NeXT, cc -E runs the code through the compiler's parser,
6248 # not just through cpp. "Syntax error" is here to catch this case.
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 #ifdef __STDC__
6252 # include <limits.h>
6253 #else
6254 # include <assert.h>
6255 #endif
6256 Syntax error
6257 _ACEOF
6258 if ac_fn_c_try_cpp "$LINENO"; then :
6259
6260 else
6261 # Broken: fails on valid input.
6262 continue
6263 fi
6264 rm -f conftest.err conftest.i conftest.$ac_ext
6265
6266 # OK, works on sane cases. Now check whether nonexistent headers
6267 # can be detected and how.
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <ac_nonexistent.h>
6271 _ACEOF
6272 if ac_fn_c_try_cpp "$LINENO"; then :
6273 # Broken: success on invalid input.
6274 continue
6275 else
6276 # Passes both tests.
6277 ac_preproc_ok=:
6278 break
6279 fi
6280 rm -f conftest.err conftest.i conftest.$ac_ext
6281
6282 done
6283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6284 rm -f conftest.i conftest.err conftest.$ac_ext
6285 if $ac_preproc_ok; then :
6286 break
6287 fi
6288
6289 done
6290 ac_cv_prog_CPP=$CPP
6291
6292 fi
6293 CPP=$ac_cv_prog_CPP
6294 else
6295 ac_cv_prog_CPP=$CPP
6296 fi
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6298 $as_echo "$CPP" >&6; }
6299 ac_preproc_ok=false
6300 for ac_c_preproc_warn_flag in '' yes
6301 do
6302 # Use a header file that comes with gcc, so configuring glibc
6303 # with a fresh cross-compiler works.
6304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6305 # <limits.h> exists even on freestanding compilers.
6306 # On the NeXT, cc -E runs the code through the compiler's parser,
6307 # not just through cpp. "Syntax error" is here to catch this case.
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 #ifdef __STDC__
6311 # include <limits.h>
6312 #else
6313 # include <assert.h>
6314 #endif
6315 Syntax error
6316 _ACEOF
6317 if ac_fn_c_try_cpp "$LINENO"; then :
6318
6319 else
6320 # Broken: fails on valid input.
6321 continue
6322 fi
6323 rm -f conftest.err conftest.i conftest.$ac_ext
6324
6325 # OK, works on sane cases. Now check whether nonexistent headers
6326 # can be detected and how.
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 #include <ac_nonexistent.h>
6330 _ACEOF
6331 if ac_fn_c_try_cpp "$LINENO"; then :
6332 # Broken: success on invalid input.
6333 continue
6334 else
6335 # Passes both tests.
6336 ac_preproc_ok=:
6337 break
6338 fi
6339 rm -f conftest.err conftest.i conftest.$ac_ext
6340
6341 done
6342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6343 rm -f conftest.i conftest.err conftest.$ac_ext
6344 if $ac_preproc_ok; then :
6345
6346 else
6347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6349 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6350 See \`config.log' for more details" "$LINENO" 5; }
6351 fi
6352
6353 ac_ext=c
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358
6359
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6361 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6362 if ${ac_cv_path_GREP+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 if test -z "$GREP"; then
6366 ac_path_GREP_found=false
6367 # Loop through the user's path and test for each of PROGNAME-LIST
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_prog in grep ggrep; do
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6376 as_fn_executable_p "$ac_path_GREP" || continue
6377 # Check for GNU ac_path_GREP and select it if it is found.
6378 # Check for GNU $ac_path_GREP
6379 case `"$ac_path_GREP" --version 2>&1` in
6380 *GNU*)
6381 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6382 *)
6383 ac_count=0
6384 $as_echo_n 0123456789 >"conftest.in"
6385 while :
6386 do
6387 cat "conftest.in" "conftest.in" >"conftest.tmp"
6388 mv "conftest.tmp" "conftest.in"
6389 cp "conftest.in" "conftest.nl"
6390 $as_echo 'GREP' >> "conftest.nl"
6391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6393 as_fn_arith $ac_count + 1 && ac_count=$as_val
6394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6395 # Best one so far, save it but keep looking for a better one
6396 ac_cv_path_GREP="$ac_path_GREP"
6397 ac_path_GREP_max=$ac_count
6398 fi
6399 # 10*(2^10) chars as input seems more than enough
6400 test $ac_count -gt 10 && break
6401 done
6402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6403 esac
6404
6405 $ac_path_GREP_found && break 3
6406 done
6407 done
6408 done
6409 IFS=$as_save_IFS
6410 if test -z "$ac_cv_path_GREP"; then
6411 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6412 fi
6413 else
6414 ac_cv_path_GREP=$GREP
6415 fi
6416
6417 fi
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6419 $as_echo "$ac_cv_path_GREP" >&6; }
6420 GREP="$ac_cv_path_GREP"
6421
6422
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6424 $as_echo_n "checking for egrep... " >&6; }
6425 if ${ac_cv_path_EGREP+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6429 then ac_cv_path_EGREP="$GREP -E"
6430 else
6431 if test -z "$EGREP"; then
6432 ac_path_EGREP_found=false
6433 # Loop through the user's path and test for each of PROGNAME-LIST
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6436 do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_prog in egrep; do
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6442 as_fn_executable_p "$ac_path_EGREP" || continue
6443 # Check for GNU ac_path_EGREP and select it if it is found.
6444 # Check for GNU $ac_path_EGREP
6445 case `"$ac_path_EGREP" --version 2>&1` in
6446 *GNU*)
6447 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6448 *)
6449 ac_count=0
6450 $as_echo_n 0123456789 >"conftest.in"
6451 while :
6452 do
6453 cat "conftest.in" "conftest.in" >"conftest.tmp"
6454 mv "conftest.tmp" "conftest.in"
6455 cp "conftest.in" "conftest.nl"
6456 $as_echo 'EGREP' >> "conftest.nl"
6457 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6459 as_fn_arith $ac_count + 1 && ac_count=$as_val
6460 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6461 # Best one so far, save it but keep looking for a better one
6462 ac_cv_path_EGREP="$ac_path_EGREP"
6463 ac_path_EGREP_max=$ac_count
6464 fi
6465 # 10*(2^10) chars as input seems more than enough
6466 test $ac_count -gt 10 && break
6467 done
6468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6469 esac
6470
6471 $ac_path_EGREP_found && break 3
6472 done
6473 done
6474 done
6475 IFS=$as_save_IFS
6476 if test -z "$ac_cv_path_EGREP"; then
6477 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6478 fi
6479 else
6480 ac_cv_path_EGREP=$EGREP
6481 fi
6482
6483 fi
6484 fi
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6486 $as_echo "$ac_cv_path_EGREP" >&6; }
6487 EGREP="$ac_cv_path_EGREP"
6488
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6491 $as_echo_n "checking for ANSI C header files... " >&6; }
6492 if ${ac_cv_header_stdc+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 #include <stdlib.h>
6498 #include <stdarg.h>
6499 #include <string.h>
6500 #include <float.h>
6501
6502 int
6503 main ()
6504 {
6505
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_compile "$LINENO"; then :
6511 ac_cv_header_stdc=yes
6512 else
6513 ac_cv_header_stdc=no
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516
6517 if test $ac_cv_header_stdc = yes; then
6518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521 #include <string.h>
6522
6523 _ACEOF
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 $EGREP "memchr" >/dev/null 2>&1; then :
6526
6527 else
6528 ac_cv_header_stdc=no
6529 fi
6530 rm -f conftest*
6531
6532 fi
6533
6534 if test $ac_cv_header_stdc = yes; then
6535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #include <stdlib.h>
6539
6540 _ACEOF
6541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6542 $EGREP "free" >/dev/null 2>&1; then :
6543
6544 else
6545 ac_cv_header_stdc=no
6546 fi
6547 rm -f conftest*
6548
6549 fi
6550
6551 if test $ac_cv_header_stdc = yes; then
6552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6553 if test "$cross_compiling" = yes; then :
6554 :
6555 else
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6558 #include <ctype.h>
6559 #include <stdlib.h>
6560 #if ((' ' & 0x0FF) == 0x020)
6561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6563 #else
6564 # define ISLOWER(c) \
6565 (('a' <= (c) && (c) <= 'i') \
6566 || ('j' <= (c) && (c) <= 'r') \
6567 || ('s' <= (c) && (c) <= 'z'))
6568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6569 #endif
6570
6571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6572 int
6573 main ()
6574 {
6575 int i;
6576 for (i = 0; i < 256; i++)
6577 if (XOR (islower (i), ISLOWER (i))
6578 || toupper (i) != TOUPPER (i))
6579 return 2;
6580 return 0;
6581 }
6582 _ACEOF
6583 if ac_fn_c_try_run "$LINENO"; then :
6584
6585 else
6586 ac_cv_header_stdc=no
6587 fi
6588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6589 conftest.$ac_objext conftest.beam conftest.$ac_ext
6590 fi
6591
6592 fi
6593 fi
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6595 $as_echo "$ac_cv_header_stdc" >&6; }
6596 if test $ac_cv_header_stdc = yes; then
6597
6598 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6599
6600 fi
6601
6602 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6604 inttypes.h stdint.h unistd.h
6605 do :
6606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6608 "
6609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6610 cat >>confdefs.h <<_ACEOF
6611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6612 _ACEOF
6613
6614 fi
6615
6616 done
6617
6618
6619 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
6620 if test "x$ac_cv_header_sys_param_h" = xyes; then :
6621
6622 $as_echo "#define PARAMH /**/" >>confdefs.h
6623
6624 fi
6625
6626
6627 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6628 if test "x$ac_cv_header_stdlib_h" = xyes; then :
6629
6630 $as_echo "#define STDLIBH /**/" >>confdefs.h
6631
6632 fi
6633
6634
6635 ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
6636 if test "x$ac_cv_header_stddef_h" = xyes; then :
6637
6638 $as_echo "#define STDDEFH /**/" >>confdefs.h
6639
6640 fi
6641
6642
6643 ac_fn_c_check_header_mongrel "$LINENO" "sys/syslog.h" "ac_cv_header_sys_syslog_h" "$ac_includes_default"
6644 if test "x$ac_cv_header_sys_syslog_h" = xyes; then :
6645
6646 $as_echo "#define SYSSYSLOGH /**/" >>confdefs.h
6647
6648 fi
6649
6650
6651 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6652 if test "x$ac_cv_header_unistd_h" = xyes; then :
6653
6654 $as_echo "#define UNISTDH /**/" >>confdefs.h
6655
6656 fi
6657
6658
6659 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6660 if test "x$ac_cv_header_string_h" = xyes; then :
6661
6662 $as_echo "#define STRINGH /**/" >>confdefs.h
6663
6664 fi
6665
6666
6667 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
6668 if test "x$ac_cv_header_strings_h" = xyes; then :
6669
6670 $as_echo "#define STRINGSH /**/" >>confdefs.h
6671
6672 fi
6673
6674
6675 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
6676 if test "x$ac_cv_header_malloc_h" = xyes; then :
6677
6678 $as_echo "#define MALLOCH <malloc.h>" >>confdefs.h
6679
6680 fi
6681
6682
6683 ac_fn_c_check_header_mongrel "$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "$ac_includes_default"
6684 if test "x$ac_cv_header_sys_rusage_h" = xyes; then :
6685
6686 $as_echo "#define RUSAGEH /**/" >>confdefs.h
6687
6688 fi
6689
6690
6691 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
6692 if test "x$ac_cv_header_glob_h" = xyes; then :
6693
6694 $as_echo "#define GLOBH /**/" >>confdefs.h
6695
6696 fi
6697
6698
6699 for ac_header in stdint.h inttypes.h
6700 do :
6701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6702 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6703 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6704 cat >>confdefs.h <<_ACEOF
6705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706 _ACEOF
6707
6708 fi
6709
6710 done
6711
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6713 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6714 if ${ac_cv_c_const+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719
6720 int
6721 main ()
6722 {
6723
6724 #ifndef __cplusplus
6725 /* Ultrix mips cc rejects this sort of thing. */
6726 typedef int charset[2];
6727 const charset cs = { 0, 0 };
6728 /* SunOS 4.1.1 cc rejects this. */
6729 char const *const *pcpcc;
6730 char **ppc;
6731 /* NEC SVR4.0.2 mips cc rejects this. */
6732 struct point {int x, y;};
6733 static struct point const zero = {0,0};
6734 /* AIX XL C 1.02.0.0 rejects this.
6735 It does not let you subtract one const X* pointer from another in
6736 an arm of an if-expression whose if-part is not a constant
6737 expression */
6738 const char *g = "string";
6739 pcpcc = &g + (g ? g-g : 0);
6740 /* HPUX 7.0 cc rejects these. */
6741 ++pcpcc;
6742 ppc = (char**) pcpcc;
6743 pcpcc = (char const *const *) ppc;
6744 { /* SCO 3.2v4 cc rejects this sort of thing. */
6745 char tx;
6746 char *t = &tx;
6747 char const *s = 0 ? (char *) 0 : (char const *) 0;
6748
6749 *t++ = 0;
6750 if (s) return 0;
6751 }
6752 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6753 int x[] = {25, 17};
6754 const int *foo = &x[0];
6755 ++foo;
6756 }
6757 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6758 typedef const int *iptr;
6759 iptr p = 0;
6760 ++p;
6761 }
6762 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6763 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6764 struct s { int j; const int *ap[3]; } bx;
6765 struct s *b = &bx; b->j = 5;
6766 }
6767 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6768 const int foo = 10;
6769 if (!foo) return 0;
6770 }
6771 return !cs[0] && !zero.x;
6772 #endif
6773
6774 ;
6775 return 0;
6776 }
6777 _ACEOF
6778 if ac_fn_c_try_compile "$LINENO"; then :
6779 ac_cv_c_const=yes
6780 else
6781 ac_cv_c_const=no
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6786 $as_echo "$ac_cv_c_const" >&6; }
6787 if test $ac_cv_c_const = no; then
6788
6789 $as_echo "#define const /**/" >>confdefs.h
6790
6791 fi
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6794 $as_echo_n "checking for inline... " >&6; }
6795 if ${ac_cv_c_inline+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 ac_cv_c_inline=no
6799 for ac_kw in inline __inline__ __inline; do
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 #ifndef __cplusplus
6803 typedef int foo_t;
6804 static $ac_kw foo_t static_foo () {return 0; }
6805 $ac_kw foo_t foo () {return 0; }
6806 #endif
6807
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810 ac_cv_c_inline=$ac_kw
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 test "$ac_cv_c_inline" != no && break
6814 done
6815
6816 fi
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6818 $as_echo "$ac_cv_c_inline" >&6; }
6819
6820 case $ac_cv_c_inline in
6821 inline | yes) ;;
6822 *)
6823 case $ac_cv_c_inline in
6824 no) ac_val=;;
6825 *) ac_val=$ac_cv_c_inline;;
6826 esac
6827 cat >>confdefs.h <<_ACEOF
6828 #ifndef __cplusplus
6829 #define inline $ac_val
6830 #endif
6831 _ACEOF
6832 ;;
6833 esac
6834
6835
6836 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6837 if test "x$ac_cv_type_mode_t" = xyes; then :
6838
6839 else
6840
6841 cat >>confdefs.h <<_ACEOF
6842 #define mode_t int
6843 _ACEOF
6844
6845 fi
6846
6847 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6848 if test "x$ac_cv_type_size_t" = xyes; then :
6849
6850 else
6851
6852 cat >>confdefs.h <<_ACEOF
6853 #define size_t unsigned int
6854 _ACEOF
6855
6856 fi
6857
6858
6859 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6860 if test "x$ac_cv_type_intptr_t" = xyes; then :
6861
6862 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6863
6864 else
6865 for ac_type in 'int' 'long int' 'long long int'; do
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 $ac_includes_default
6869 int
6870 main ()
6871 {
6872 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6873 test_array [0] = 0;
6874 return test_array [0];
6875
6876 ;
6877 return 0;
6878 }
6879 _ACEOF
6880 if ac_fn_c_try_compile "$LINENO"; then :
6881
6882 cat >>confdefs.h <<_ACEOF
6883 #define intptr_t $ac_type
6884 _ACEOF
6885
6886 ac_type=
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 test -z "$ac_type" && break
6890 done
6891 fi
6892
6893
6894
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6896 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6897 if ${ac_cv_header_time+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 #include <sys/types.h>
6903 #include <sys/time.h>
6904 #include <time.h>
6905
6906 int
6907 main ()
6908 {
6909 if ((struct tm *) 0)
6910 return 0;
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 ac_cv_header_time=yes
6917 else
6918 ac_cv_header_time=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6923 $as_echo "$ac_cv_header_time" >&6; }
6924 if test $ac_cv_header_time = yes; then
6925
6926 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6927
6928 fi
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6931 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6932 if ${ac_cv_header_sys_wait_h+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 #include <sys/types.h>
6938 #include <sys/wait.h>
6939 #ifndef WEXITSTATUS
6940 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6941 #endif
6942 #ifndef WIFEXITED
6943 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6944 #endif
6945
6946 int
6947 main ()
6948 {
6949 int s;
6950 wait (&s);
6951 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6952 ;
6953 return 0;
6954 }
6955 _ACEOF
6956 if ac_fn_c_try_compile "$LINENO"; then :
6957 ac_cv_header_sys_wait_h=yes
6958 else
6959 ac_cv_header_sys_wait_h=no
6960 fi
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6964 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6965 if test $ac_cv_header_sys_wait_h = yes; then
6966
6967 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6968
6969 fi
6970
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6972 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6973 if ${ac_cv_struct_tm+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 #include <sys/types.h>
6979 #include <time.h>
6980
6981 int
6982 main ()
6983 {
6984 struct tm tm;
6985 int *p = &tm.tm_sec;
6986 return !p;
6987 ;
6988 return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_compile "$LINENO"; then :
6992 ac_cv_struct_tm=time.h
6993 else
6994 ac_cv_struct_tm=sys/time.h
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6999 $as_echo "$ac_cv_struct_tm" >&6; }
7000 if test $ac_cv_struct_tm = sys/time.h; then
7001
7002 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7003
7004 fi
7005
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7007 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7008 if ${ac_cv_type_uid_t+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013 #include <sys/types.h>
7014
7015 _ACEOF
7016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7017 $EGREP "uid_t" >/dev/null 2>&1; then :
7018 ac_cv_type_uid_t=yes
7019 else
7020 ac_cv_type_uid_t=no
7021 fi
7022 rm -f conftest*
7023
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7026 $as_echo "$ac_cv_type_uid_t" >&6; }
7027 if test $ac_cv_type_uid_t = no; then
7028
7029 $as_echo "#define uid_t int" >>confdefs.h
7030
7031
7032 $as_echo "#define gid_t int" >>confdefs.h
7033
7034 fi
7035
7036 # The cast to long int works around a bug in the HP C Compiler
7037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7039 # This bug is HP SR number 8606223364.
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7041 $as_echo_n "checking size of short... " >&6; }
7042 if ${ac_cv_sizeof_short+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7046
7047 else
7048 if test "$ac_cv_type_short" = yes; then
7049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7051 as_fn_error 77 "cannot compute sizeof (short)
7052 See \`config.log' for more details" "$LINENO" 5; }
7053 else
7054 ac_cv_sizeof_short=0
7055 fi
7056 fi
7057
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7060 $as_echo "$ac_cv_sizeof_short" >&6; }
7061
7062
7063
7064 cat >>confdefs.h <<_ACEOF
7065 #define SIZEOF_SHORT $ac_cv_sizeof_short
7066 _ACEOF
7067
7068
7069 # The cast to long int works around a bug in the HP C Compiler
7070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7072 # This bug is HP SR number 8606223364.
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7074 $as_echo_n "checking size of int... " >&6; }
7075 if ${ac_cv_sizeof_int+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7079
7080 else
7081 if test "$ac_cv_type_int" = yes; then
7082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7084 as_fn_error 77 "cannot compute sizeof (int)
7085 See \`config.log' for more details" "$LINENO" 5; }
7086 else
7087 ac_cv_sizeof_int=0
7088 fi
7089 fi
7090
7091 fi
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7093 $as_echo "$ac_cv_sizeof_int" >&6; }
7094
7095
7096
7097 cat >>confdefs.h <<_ACEOF
7098 #define SIZEOF_INT $ac_cv_sizeof_int
7099 _ACEOF
7100
7101
7102 # The cast to long int works around a bug in the HP C Compiler
7103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7105 # This bug is HP SR number 8606223364.
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7107 $as_echo_n "checking size of long... " >&6; }
7108 if ${ac_cv_sizeof_long+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7112
7113 else
7114 if test "$ac_cv_type_long" = yes; then
7115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7117 as_fn_error 77 "cannot compute sizeof (long)
7118 See \`config.log' for more details" "$LINENO" 5; }
7119 else
7120 ac_cv_sizeof_long=0
7121 fi
7122 fi
7123
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7126 $as_echo "$ac_cv_sizeof_long" >&6; }
7127
7128
7129
7130 cat >>confdefs.h <<_ACEOF
7131 #define SIZEOF_LONG $ac_cv_sizeof_long
7132 _ACEOF
7133
7134
7135 if test "$ac_cv_sizeof_int" = 2 ; then
7136 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7137 if test "x$ac_cv_type_int16_t" = xyes; then :
7138
7139 else
7140
7141 cat >>confdefs.h <<_ACEOF
7142 #define int16_t int
7143 _ACEOF
7144
7145 fi
7146
7147 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
7148 if test "x$ac_cv_type_u_int16_t" = xyes; then :
7149
7150 else
7151
7152 cat >>confdefs.h <<_ACEOF
7153 #define u_int16_t unsigned int
7154 _ACEOF
7155
7156 fi
7157
7158 elif test "$ac_cv_sizeof_short" = 2 ; then
7159 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7160 if test "x$ac_cv_type_int16_t" = xyes; then :
7161
7162 else
7163
7164 cat >>confdefs.h <<_ACEOF
7165 #define int16_t short
7166 _ACEOF
7167
7168 fi
7169
7170 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
7171 if test "x$ac_cv_type_u_int16_t" = xyes; then :
7172
7173 else
7174
7175 cat >>confdefs.h <<_ACEOF
7176 #define u_int16_t unsigned short
7177 _ACEOF
7178
7179 fi
7180
7181 else
7182 as_fn_error $? "Cannot find a type with size of 16 bits" "$LINENO" 5
7183 fi
7184 if test "$ac_cv_sizeof_int" = 4 ; then
7185 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7186 if test "x$ac_cv_type_int32_t" = xyes; then :
7187
7188 else
7189
7190 cat >>confdefs.h <<_ACEOF
7191 #define int32_t int
7192 _ACEOF
7193
7194 fi
7195
7196 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
7197 if test "x$ac_cv_type_u_int32_t" = xyes; then :
7198
7199 else
7200
7201 cat >>confdefs.h <<_ACEOF
7202 #define u_int32_t unsigned int
7203 _ACEOF
7204
7205 fi
7206
7207 elif test "$ac_cv_sizeof_short" = 4 ; then
7208 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7209 if test "x$ac_cv_type_int32_t" = xyes; then :
7210
7211 else
7212
7213 cat >>confdefs.h <<_ACEOF
7214 #define int32_t short
7215 _ACEOF
7216
7217 fi
7218
7219 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
7220 if test "x$ac_cv_type_u_int32_t" = xyes; then :
7221
7222 else
7223
7224 cat >>confdefs.h <<_ACEOF
7225 #define u_int32_t unsigned short
7226 _ACEOF
7227
7228 fi
7229
7230 elif test "$ac_cv_sizeof_long" = 4 ; then
7231 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7232 if test "x$ac_cv_type_int32_t" = xyes; then :
7233
7234 else
7235
7236 cat >>confdefs.h <<_ACEOF
7237 #define int32_t long
7238 _ACEOF
7239
7240 fi
7241
7242 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
7243 if test "x$ac_cv_type_u_int32_t" = xyes; then :
7244
7245 else
7246
7247 cat >>confdefs.h <<_ACEOF
7248 #define u_int32_t unsigned long
7249 _ACEOF
7250
7251 fi
7252
7253 else
7254 as_fn_error $? "Cannot find a type with size of 32 bits" "$LINENO" 5
7255 fi
7256 # The cast to long int works around a bug in the HP C Compiler
7257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7259 # This bug is HP SR number 8606223364.
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of rlim_t" >&5
7261 $as_echo_n "checking size of rlim_t... " >&6; }
7262 if ${ac_cv_sizeof_rlim_t+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (rlim_t))" "ac_cv_sizeof_rlim_t" "$ac_includes_default"; then :
7266
7267 else
7268 if test "$ac_cv_type_rlim_t" = yes; then
7269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7271 as_fn_error 77 "cannot compute sizeof (rlim_t)
7272 See \`config.log' for more details" "$LINENO" 5; }
7273 else
7274 ac_cv_sizeof_rlim_t=0
7275 fi
7276 fi
7277
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_rlim_t" >&5
7280 $as_echo "$ac_cv_sizeof_rlim_t" >&6; }
7281
7282
7283
7284 cat >>confdefs.h <<_ACEOF
7285 #define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
7286 _ACEOF
7287
7288
7289 if test "$ac_cv_sizeof_rlim_t" = 8 ; then
7290
7291 $as_echo "#define LONG_LONG_RLIM_T /**/" >>confdefs.h
7292
7293 fi
7294
7295
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of nonblocking sockets you have" >&5
7297 $as_echo_n "checking what kind of nonblocking sockets you have... " >&6; }
7298 if ${ac_cv_nonblocking+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301
7302 save_libs="$LIBS"
7303 LIBS="$LIBS $SOCKLIB"
7304 if test "$cross_compiling" = yes; then :
7305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7307 as_fn_error $? "cannot run test program while cross compiling
7308 See \`config.log' for more details" "$LINENO" 5; }
7309 else
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312
7313 #include <sys/types.h>
7314 #include <sys/socket.h>
7315 #include <fcntl.h>
7316 #include <sys/ioctl.h>
7317 #include <sys/file.h>
7318 #include <signal.h>
7319 alarmed() {
7320 exit(1);
7321 }
7322 int main() {
7323 #ifdef O_NONBLOCK
7324 char b[12], x[32];
7325 int f, l = sizeof(x);
7326 f = socket(AF_INET, SOCK_DGRAM, 0);
7327 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK))) {
7328 signal(SIGALRM, alarmed);
7329 alarm(3);
7330 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
7331 alarm(0);
7332 exit(0);
7333 }
7334 #endif
7335 exit(1);
7336 }
7337
7338 _ACEOF
7339 if ac_fn_c_try_run "$LINENO"; then :
7340 ac_cv_nonblocking=O_NONBLOCK
7341 else
7342
7343 if test "$cross_compiling" = yes; then :
7344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7346 as_fn_error $? "cannot run test program while cross compiling
7347 See \`config.log' for more details" "$LINENO" 5; }
7348 else
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351
7352 #include <sys/types.h>
7353 #include <sys/socket.h>
7354 #include <fcntl.h>
7355 #include <sys/ioctl.h>
7356 #include <sys/file.h>
7357 #include <signal.h>
7358 alarmed() {
7359 exit(0);
7360 }
7361 int main() {
7362 #ifdef O_NDELAY
7363 char b[12], x[32];
7364 int f, l = sizeof(x);
7365 f = socket(AF_INET, SOCK_DGRAM, 0);
7366 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY))) {
7367 signal(SIGALRM, alarmed);
7368 alarm(3);
7369 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
7370 alarm(0);
7371 exit(0);
7372 }
7373 #endif
7374 exit(1);
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_run "$LINENO"; then :
7378 ac_cv_nonblocking=O_NDELAY
7379 else
7380
7381 if test "$cross_compiling" = yes; then :
7382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7384 as_fn_error $? "cannot run test program while cross compiling
7385 See \`config.log' for more details" "$LINENO" 5; }
7386 else
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7389
7390 #include <sys/types.h>
7391 #include <sys/socket.h>
7392 #include <fcntl.h>
7393 #include <sys/ioctl.h>
7394 #include <sys/file.h>
7395 #include <signal.h>
7396 alarmed() {
7397 exit(1);
7398 }
7399 int main() {
7400 #ifdef FIONBIO
7401 char b[12], x[32];
7402 int f, l = sizeof(x);
7403 f = socket(AF_INET, SOCK_DGRAM, 0);
7404 if (f >= 0 && !(fcntl(f, F_SETFL, FIONBIO))) {
7405 signal(SIGALRM, alarmed);
7406 alarm(3);
7407 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
7408 alarm(0);
7409 exit(0);
7410 }
7411 #endif
7412 exit(1);
7413
7414 _ACEOF
7415 if ac_fn_c_try_run "$LINENO"; then :
7416 ac_cv_nonblocking=FIONBIO
7417 else
7418 ac_cv_nonblocking=none
7419 fi
7420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7421 conftest.$ac_objext conftest.beam conftest.$ac_ext
7422 fi
7423
7424 fi
7425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7426 conftest.$ac_objext conftest.beam conftest.$ac_ext
7427 fi
7428
7429 fi
7430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7431 conftest.$ac_objext conftest.beam conftest.$ac_ext
7432 fi
7433
7434 fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nonblocking" >&5
7436 $as_echo "$ac_cv_nonblocking" >&6; }
7437 if test "$ac_cv_nonblocking" = "O_NONBLOCK"; then
7438
7439 $as_echo "#define NBLOCK_POSIX /**/" >>confdefs.h
7440
7441 elif test "$ac_cv_nonblocking" = "O_NDELAY"; then
7442
7443 $as_echo "#define NBLOCK_BSD /**/" >>confdefs.h
7444
7445 elif test "$ac_cv_nonblocking" = "FIONBIO"; then
7446
7447 $as_echo "#define NBLOCK_SYSV /**/" >>confdefs.h
7448
7449 fi
7450 LIBS="$save_libs"
7451 if test $ac_cv_c_compiler_gnu = yes; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
7453 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
7454 if ${ac_cv_prog_gcc_traditional+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 ac_pattern="Autoconf.*'x'"
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <sgtty.h>
7461 Autoconf TIOCGETP
7462 _ACEOF
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7465 ac_cv_prog_gcc_traditional=yes
7466 else
7467 ac_cv_prog_gcc_traditional=no
7468 fi
7469 rm -f conftest*
7470
7471
7472 if test $ac_cv_prog_gcc_traditional = no; then
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 #include <termio.h>
7476 Autoconf TCGETA
7477 _ACEOF
7478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7479 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7480 ac_cv_prog_gcc_traditional=yes
7481 fi
7482 rm -f conftest*
7483
7484 fi
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
7487 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7488 if test $ac_cv_prog_gcc_traditional = yes; then
7489 CC="$CC -traditional"
7490 fi
7491 fi
7492
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
7494 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
7495 if ${ac_cv_func_setpgrp_void+:} false; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 if test "$cross_compiling" = yes; then :
7499 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
7500 else
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 $ac_includes_default
7504 int
7505 main ()
7506 {
7507 /* If this system has a BSD-style setpgrp which takes arguments,
7508 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
7509 exit successfully. */
7510 return setpgrp (1,1) != -1;
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_run "$LINENO"; then :
7516 ac_cv_func_setpgrp_void=no
7517 else
7518 ac_cv_func_setpgrp_void=yes
7519 fi
7520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7521 conftest.$ac_objext conftest.beam conftest.$ac_ext
7522 fi
7523
7524 fi
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
7526 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
7527 if test $ac_cv_func_setpgrp_void = yes; then
7528
7529 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
7530
7531 fi
7532
7533 if ${ac_cv_func_setvbuf_reversed+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 ac_cv_func_setvbuf_reversed=no
7537 fi
7538
7539
7540 for ac_func in snprintf
7541 do :
7542 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7543 if test "x$ac_cv_func_snprintf" = xyes; then :
7544 cat >>confdefs.h <<_ACEOF
7545 #define HAVE_SNPRINTF 1
7546 _ACEOF
7547
7548 $as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
7549
7550 fi
7551 done
7552
7553 for ac_func in vsnprintf
7554 do :
7555 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
7556 if test "x$ac_cv_func_vsnprintf" = xyes; then :
7557 cat >>confdefs.h <<_ACEOF
7558 #define HAVE_VSNPRINTF 1
7559 _ACEOF
7560
7561 $as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h
7562
7563 fi
7564 done
7565
7566 for ac_func in strlcpy
7567 do :
7568 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
7569 if test "x$ac_cv_func_strlcpy" = xyes; then :
7570 cat >>confdefs.h <<_ACEOF
7571 #define HAVE_STRLCPY 1
7572 _ACEOF
7573
7574 $as_echo "#define HAVE_STRLCPY /**/" >>confdefs.h
7575
7576 fi
7577 done
7578
7579 for ac_func in strlcat
7580 do :
7581 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
7582 if test "x$ac_cv_func_strlcat" = xyes; then :
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_STRLCAT 1
7585 _ACEOF
7586
7587 $as_echo "#define HAVE_STRLCAT /**/" >>confdefs.h
7588
7589 fi
7590 done
7591
7592 for ac_func in strlncat
7593 do :
7594 ac_fn_c_check_func "$LINENO" "strlncat" "ac_cv_func_strlncat"
7595 if test "x$ac_cv_func_strlncat" = xyes; then :
7596 cat >>confdefs.h <<_ACEOF
7597 #define HAVE_STRLNCAT 1
7598 _ACEOF
7599
7600 $as_echo "#define HAVE_STRLNCAT /**/" >>confdefs.h
7601
7602 fi
7603 done
7604
7605 for ac_func in inet_pton
7606 do :
7607 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
7608 if test "x$ac_cv_func_inet_pton" = xyes; then :
7609 cat >>confdefs.h <<_ACEOF
7610 #define HAVE_INET_PTON 1
7611 _ACEOF
7612
7613 $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
7614
7615 fi
7616 done
7617
7618 for ac_func in inet_ntop
7619 do :
7620 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
7621 if test "x$ac_cv_func_inet_ntop" = xyes; then :
7622 cat >>confdefs.h <<_ACEOF
7623 #define HAVE_INET_NTOP 1
7624 _ACEOF
7625
7626 $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
7627
7628 fi
7629 done
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99 variable length arrays are supported" >&5
7632 $as_echo_n "checking if C99 variable length arrays are supported... " >&6; }
7633 if ${ac_cv_varlen_arrays+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639
7640 int
7641 main ()
7642 {
7643
7644 int main() {
7645 int i = 5;
7646 int a[i];
7647 a[0] = 1;
7648 return 0;
7649 }
7650 ;
7651 return 0;
7652 }
7653 _ACEOF
7654 if ac_fn_c_try_compile "$LINENO"; then :
7655 ac_cv_varlen_arrays=yes
7656 else
7657 ac_cv_varlen_arrays=no
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660
7661 fi
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_varlen_arrays" >&5
7663 $as_echo "$ac_cv_varlen_arrays" >&6; }
7664 if test "$ac_cv_varlen_arrays" = "yes" ; then
7665
7666 $as_echo "#define HAVE_C99_VARLEN_ARRAY /**/" >>confdefs.h
7667
7668 fi
7669
7670 for ac_func in setrlimit
7671 do :
7672 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
7673 if test "x$ac_cv_func_setrlimit" = xyes; then :
7674 cat >>confdefs.h <<_ACEOF
7675 #define HAVE_SETRLIMIT 1
7676 _ACEOF
7677
7678 fi
7679 done
7680
7681 for ac_func in vprintf
7682 do :
7683 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7684 if test "x$ac_cv_func_vprintf" = xyes; then :
7685 cat >>confdefs.h <<_ACEOF
7686 #define HAVE_VPRINTF 1
7687 _ACEOF
7688
7689 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7690 if test "x$ac_cv_func__doprnt" = xyes; then :
7691
7692 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7693
7694 fi
7695
7696 fi
7697 done
7698
7699
7700 for ac_func in gettimeofday
7701 do :
7702 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7703 if test "x$ac_cv_func_gettimeofday" = xyes; then :
7704 cat >>confdefs.h <<_ACEOF
7705 #define HAVE_GETTIMEOFDAY 1
7706 _ACEOF
7707
7708 $as_echo "#define GETTIMEOFDAY /**/" >>confdefs.h
7709
7710 else
7711 for ac_func in lrand48
7712 do :
7713 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
7714 if test "x$ac_cv_func_lrand48" = xyes; then :
7715 cat >>confdefs.h <<_ACEOF
7716 #define HAVE_LRAND48 1
7717 _ACEOF
7718
7719 $as_echo "#define LRADN48 /**/" >>confdefs.h
7720
7721 fi
7722 done
7723
7724 fi
7725 done
7726
7727 for ac_func in getrusage
7728 do :
7729 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
7730 if test "x$ac_cv_func_getrusage" = xyes; then :
7731 cat >>confdefs.h <<_ACEOF
7732 #define HAVE_GETRUSAGE 1
7733 _ACEOF
7734
7735 $as_echo "#define GETRUSAGE_2 /**/" >>confdefs.h
7736
7737 else
7738 for ac_func in times
7739 do :
7740 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
7741 if test "x$ac_cv_func_times" = xyes; then :
7742 cat >>confdefs.h <<_ACEOF
7743 #define HAVE_TIMES 1
7744 _ACEOF
7745
7746 $as_echo "#define TIMES_2 /**/" >>confdefs.h
7747
7748 fi
7749 done
7750
7751 fi
7752 done
7753
7754 for ac_func in setproctitle
7755 do :
7756 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
7757 if test "x$ac_cv_func_setproctitle" = xyes; then :
7758 cat >>confdefs.h <<_ACEOF
7759 #define HAVE_SETPROCTITLE 1
7760 _ACEOF
7761
7762 $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
7763
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
7766 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
7767 if ${ac_cv_lib_util_setproctitle+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 ac_check_lib_save_LIBS=$LIBS
7771 LIBS="-lutil $LIBS"
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774
7775 /* Override any GCC internal prototype to avoid an error.
7776 Use char because int might match the return type of a GCC
7777 builtin and then its argument prototype would still apply. */
7778 #ifdef __cplusplus
7779 extern "C"
7780 #endif
7781 char setproctitle ();
7782 int
7783 main ()
7784 {
7785 return setproctitle ();
7786 ;
7787 return 0;
7788 }
7789 _ACEOF
7790 if ac_fn_c_try_link "$LINENO"; then :
7791 ac_cv_lib_util_setproctitle=yes
7792 else
7793 ac_cv_lib_util_setproctitle=no
7794 fi
7795 rm -f core conftest.err conftest.$ac_objext \
7796 conftest$ac_exeext conftest.$ac_ext
7797 LIBS=$ac_check_lib_save_LIBS
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
7800 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
7801 if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
7802
7803 $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
7804
7805 IRCDLIBS="$IRCDLIBS-lutil"
7806 else
7807
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 #include <sys/exec.h>
7811
7812 _ACEOF
7813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 $EGREP "#define.*PS_STRINGS.*" >/dev/null 2>&1; then :
7815
7816 $as_echo "#define HAVE_PSSTRINGS /**/" >>confdefs.h
7817
7818 else
7819 for ac_func in pstat
7820 do :
7821 ac_fn_c_check_func "$LINENO" "pstat" "ac_cv_func_pstat"
7822 if test "x$ac_cv_func_pstat" = xyes; then :
7823 cat >>confdefs.h <<_ACEOF
7824 #define HAVE_PSTAT 1
7825 _ACEOF
7826
7827 $as_echo "#define HAVE_PSTAT /**/" >>confdefs.h
7828
7829 fi
7830 done
7831
7832 fi
7833 rm -f conftest*
7834
7835
7836 fi
7837
7838
7839
7840 fi
7841 done
7842
7843
7844
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of signals you have" >&5
7846 $as_echo_n "checking what type of signals you have... " >&6; }
7847 if ${ac_cv_sigtype+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850
7851 if test "$cross_compiling" = yes; then :
7852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7854 as_fn_error $? "cannot run test program while cross compiling
7855 See \`config.log' for more details" "$LINENO" 5; }
7856 else
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7859
7860 #include <signal.h>
7861 int main() {
7862 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L);
7863 }
7864
7865 _ACEOF
7866 if ac_fn_c_try_run "$LINENO"; then :
7867 ac_cv_sigtype=POSIX
7868 else
7869
7870 if test "$cross_compiling" = yes; then :
7871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7873 as_fn_error $? "cannot run test program while cross compiling
7874 See \`config.log' for more details" "$LINENO" 5; }
7875 else
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878
7879 #include <signal.h>
7880 int calls = 0;
7881 void handler()
7882 {
7883 if (calls)
7884 return;
7885 calls++;
7886 kill(getpid(), SIGTERM);
7887 sleep(1);
7888 }
7889
7890 int main() {
7891 signal(SIGTERM, handler);
7892 kill(getpid(), SIGTERM);
7893 exit(0);
7894 }
7895
7896 _ACEOF
7897 if ac_fn_c_try_run "$LINENO"; then :
7898 ac_cv_sigtype=BSD
7899 else
7900 ac_cv_sigtype=SYSV
7901 fi
7902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7903 conftest.$ac_objext conftest.beam conftest.$ac_ext
7904 fi
7905
7906 fi
7907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7908 conftest.$ac_objext conftest.beam conftest.$ac_ext
7909 fi
7910
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigtype" >&5
7913 $as_echo "$ac_cv_sigtype" >&6; }
7914
7915 if test "$ac_cv_sigtype" = "POSIX"; then
7916
7917 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
7918
7919 elif test "$ac_cv_sigtype" = "BSD"; then
7920
7921 $as_echo "#define BSD_RELIABLE_SIGNALS /**/" >>confdefs.h
7922
7923 else
7924
7925 $as_echo "#define SYSV_UNRELIABLE_SIGNALS /**/" >>confdefs.h
7926
7927 fi
7928 for ac_func in strtoken
7929 do :
7930 ac_fn_c_check_func "$LINENO" "strtoken" "ac_cv_func_strtoken"
7931 if test "x$ac_cv_func_strtoken" = xyes; then :
7932 cat >>confdefs.h <<_ACEOF
7933 #define HAVE_STRTOKEN 1
7934 _ACEOF
7935
7936 else
7937
7938 $as_echo "#define NEED_STRTOKEN /**/" >>confdefs.h
7939
7940 fi
7941 done
7942
7943 for ac_func in strtok
7944 do :
7945 ac_fn_c_check_func "$LINENO" "strtok" "ac_cv_func_strtok"
7946 if test "x$ac_cv_func_strtok" = xyes; then :
7947 cat >>confdefs.h <<_ACEOF
7948 #define HAVE_STRTOK 1
7949 _ACEOF
7950
7951 else
7952
7953 $as_echo "#define NEED_STRTOK /**/" >>confdefs.h
7954
7955 fi
7956 done
7957
7958 for ac_func in strerror
7959 do :
7960 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
7961 if test "x$ac_cv_func_strerror" = xyes; then :
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_STRERROR 1
7964 _ACEOF
7965
7966 else
7967
7968 $as_echo "#define NEED_STRERROR /**/" >>confdefs.h
7969
7970 fi
7971 done
7972
7973 for ac_func in index
7974 do :
7975 ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
7976 if test "x$ac_cv_func_index" = xyes; then :
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_INDEX 1
7979 _ACEOF
7980
7981 else
7982
7983 $as_echo "#define NOINDEX /**/" >>confdefs.h
7984
7985 fi
7986 done
7987
7988 for ac_func in strtoul
7989 do :
7990 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
7991 if test "x$ac_cv_func_strtoul" = xyes; then :
7992 cat >>confdefs.h <<_ACEOF
7993 #define HAVE_STRTOUL 1
7994 _ACEOF
7995
7996 else
7997 STRTOUL="strtoul.o"
7998 fi
7999 done
8000
8001 for ac_func in bcopy
8002 do :
8003 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
8004 if test "x$ac_cv_func_bcopy" = xyes; then :
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_BCOPY 1
8007 _ACEOF
8008
8009 else
8010
8011 $as_echo "#define NEED_BCOPY /**/" >>confdefs.h
8012
8013 fi
8014 done
8015
8016 for ac_func in bcmp
8017 do :
8018 ac_fn_c_check_func "$LINENO" "bcmp" "ac_cv_func_bcmp"
8019 if test "x$ac_cv_func_bcmp" = xyes; then :
8020 cat >>confdefs.h <<_ACEOF
8021 #define HAVE_BCMP 1
8022 _ACEOF
8023
8024 else
8025
8026 $as_echo "#define NEED_BCMP /**/" >>confdefs.h
8027
8028 fi
8029 done
8030
8031 for ac_func in bzero
8032 do :
8033 ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
8034 if test "x$ac_cv_func_bzero" = xyes; then :
8035 cat >>confdefs.h <<_ACEOF
8036 #define HAVE_BZERO 1
8037 _ACEOF
8038
8039 else
8040
8041 $as_echo "#define NEED_BZERO /**/" >>confdefs.h
8042
8043 fi
8044 done
8045
8046 for ac_func in strcasecmp
8047 do :
8048 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8049 if test "x$ac_cv_func_strcasecmp" = xyes; then :
8050 cat >>confdefs.h <<_ACEOF
8051 #define HAVE_STRCASECMP 1
8052 _ACEOF
8053
8054 $as_echo "#define GOT_STRCASECMP /**/" >>confdefs.h
8055
8056 fi
8057 done
8058
8059 save_libs="$LIBS"
8060 LIBS="$LIBS $SOCKLIB $INETLIB"
8061 for ac_func in inet_addr
8062 do :
8063 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
8064 if test "x$ac_cv_func_inet_addr" = xyes; then :
8065 cat >>confdefs.h <<_ACEOF
8066 #define HAVE_INET_ADDR 1
8067 _ACEOF
8068
8069 else
8070
8071 $as_echo "#define NEED_INET_ADDR /**/" >>confdefs.h
8072
8073 fi
8074 done
8075
8076 for ac_func in inet_ntoa
8077 do :
8078 ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
8079 if test "x$ac_cv_func_inet_ntoa" = xyes; then :
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_INET_NTOA 1
8082 _ACEOF
8083
8084 else
8085
8086 $as_echo "#define NEED_INET_NTOA /**/" >>confdefs.h
8087
8088 fi
8089 done
8090
8091 LIBS="$save_libs"
8092 for ac_func in syslog
8093 do :
8094 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
8095 if test "x$ac_cv_func_syslog" = xyes; then :
8096 cat >>confdefs.h <<_ACEOF
8097 #define HAVE_SYSLOG 1
8098 _ACEOF
8099
8100 $as_echo "#define HAVE_SYSLOG /**/" >>confdefs.h
8101
8102 fi
8103 done
8104
8105
8106
8107
8108
8109
8110 # Check whether --with-nick-history was given.
8111 if test "${with_nick_history+set}" = set; then :
8112 withval=$with_nick_history;
8113 cat >>confdefs.h <<_ACEOF
8114 #define NICKNAMEHISTORYLENGTH $withval
8115 _ACEOF
8116
8117 else
8118
8119 $as_echo "#define NICKNAMEHISTORYLENGTH 2000" >>confdefs.h
8120
8121 fi
8122
8123
8124 # Check whether --with-sendq was given.
8125 if test "${with_sendq+set}" = set; then :
8126 withval=$with_sendq;
8127 cat >>confdefs.h <<_ACEOF
8128 #define MAXSENDQLENGTH $withval
8129 _ACEOF
8130
8131 else
8132
8133 $as_echo "#define MAXSENDQLENGTH 3000000" >>confdefs.h
8134
8135 fi
8136
8137
8138 # Check whether --with-permissions was given.
8139 if test "${with_permissions+set}" = set; then :
8140 withval=$with_permissions;
8141 cat >>confdefs.h <<_ACEOF
8142 #define DEFAULT_PERMISSIONS 0$withval
8143 _ACEOF
8144
8145 else
8146
8147 $as_echo "#define DEFAULT_PERMISSIONS 0600" >>confdefs.h
8148
8149 fi
8150
8151
8152
8153 # Check whether --with-bindir was given.
8154 if test "${with_bindir+set}" = set; then :
8155 withval=$with_bindir;
8156 cat >>confdefs.h <<_ACEOF
8157 #define BINDIR "$withval"
8158 _ACEOF
8159
8160 BINDIR="$withval"
8161 else
8162
8163 cat >>confdefs.h <<_ACEOF
8164 #define BINDIR "$HOME/unrealircd/bin"
8165 _ACEOF
8166
8167 BINDIR="$HOME/unrealircd/bin"
8168 fi
8169
8170
8171
8172 # Check whether --with-scriptdir was given.
8173 if test "${with_scriptdir+set}" = set; then :
8174 withval=$with_scriptdir;
8175 cat >>confdefs.h <<_ACEOF
8176 #define SCRIPTDIR "$withval"
8177 _ACEOF
8178
8179 SCRIPTDIR="$withval"
8180 else
8181
8182 cat >>confdefs.h <<_ACEOF
8183 #define SCRIPTDIR "$HOME/unrealircd"
8184 _ACEOF
8185
8186 SCRIPTDIR="$HOME/unrealircd"
8187 fi
8188
8189
8190
8191 # Check whether --with-confdir was given.
8192 if test "${with_confdir+set}" = set; then :
8193 withval=$with_confdir;
8194 cat >>confdefs.h <<_ACEOF
8195 #define CONFDIR "$withval"
8196 _ACEOF
8197
8198 CONFDIR="$withval"
8199 else
8200
8201 cat >>confdefs.h <<_ACEOF
8202 #define CONFDIR "$HOME/unrealircd/conf"
8203 _ACEOF
8204
8205 CONFDIR="$HOME/unrealircd/conf"
8206 fi
8207
8208
8209
8210 # Check whether --with-modulesdir was given.
8211 if test "${with_modulesdir+set}" = set; then :
8212 withval=$with_modulesdir;
8213 cat >>confdefs.h <<_ACEOF
8214 #define MODULESDIR "$withval"
8215 _ACEOF
8216
8217 MODULESDIR="$withval"
8218 else
8219
8220 cat >>confdefs.h <<_ACEOF
8221 #define MODULESDIR "$HOME/unrealircd/modules"
8222 _ACEOF
8223
8224 MODULESDIR="$HOME/unrealircd/modules"
8225 fi
8226
8227
8228
8229 # Check whether --with-logdir was given.
8230 if test "${with_logdir+set}" = set; then :
8231 withval=$with_logdir;
8232 cat >>confdefs.h <<_ACEOF
8233 #define LOGDIR "$withval"
8234 _ACEOF
8235
8236 LOGDIR="$withval"
8237 else
8238
8239 cat >>confdefs.h <<_ACEOF
8240 #define LOGDIR "$HOME/unrealircd/logs"
8241 _ACEOF
8242
8243 LOGDIR="$HOME/unrealircd/logs"
8244 fi
8245
8246
8247
8248 # Check whether --with-cachedir was given.
8249 if test "${with_cachedir+set}" = set; then :
8250 withval=$with_cachedir;
8251 cat >>confdefs.h <<_ACEOF
8252 #define CACHEDIR "$withval"
8253 _ACEOF
8254
8255 CACHEDIR="$withval"
8256 else
8257
8258 cat >>confdefs.h <<_ACEOF
8259 #define CACHEDIR "$HOME/unrealircd/cache"
8260 _ACEOF
8261
8262 CACHEDIR="$HOME/unrealircd/cache"
8263 fi
8264
8265
8266
8267 # Check whether --with-tmpdir was given.
8268 if test "${with_tmpdir+set}" = set; then :
8269 withval=$with_tmpdir;
8270 cat >>confdefs.h <<_ACEOF
8271 #define TMPDIR "$withval"
8272 _ACEOF
8273
8274 TMPDIR="$withval"
8275 else
8276
8277 cat >>confdefs.h <<_ACEOF
8278 #define TMPDIR "$HOME/unrealircd/tmp"
8279 _ACEOF
8280
8281 TMPDIR="$HOME/unrealircd/tmp"
8282 fi
8283
8284
8285
8286 # Check whether --with-datadir was given.
8287 if test "${with_datadir+set}" = set; then :
8288 withval=$with_datadir;
8289 cat >>confdefs.h <<_ACEOF
8290 #define PERMDATADIR "$withval"
8291 _ACEOF
8292
8293 PERMDATADIR="$withval"
8294 else
8295
8296 cat >>confdefs.h <<_ACEOF
8297 #define DATADIR "$HOME/unrealircd/data"
8298 _ACEOF
8299
8300 PERMDATADIR="$HOME/unrealircd/data"
8301 fi
8302
8303
8304
8305 # Check whether --with-docdir was given.
8306 if test "${with_docdir+set}" = set; then :
8307 withval=$with_docdir;
8308 cat >>confdefs.h <<_ACEOF
8309 #define DOCDIR "$withval"
8310 _ACEOF
8311
8312 DOCDIR="$withval"
8313 else
8314
8315 cat >>confdefs.h <<_ACEOF
8316 #define DOCDIR "$HOME/unrealircd/doc"
8317 _ACEOF
8318
8319 DOCDIR="$HOME/unrealircd/doc"
8320 fi
8321
8322
8323
8324 # Check whether --with-pidfile was given.
8325 if test "${with_pidfile+set}" = set; then :
8326 withval=$with_pidfile;
8327 cat >>confdefs.h <<_ACEOF
8328 #define PIDFILE "$withval"
8329 _ACEOF
8330
8331 PIDFILE="$withval"
8332 else
8333
8334 cat >>confdefs.h <<_ACEOF
8335 #define PIDFILE "$HOME/unrealircd/data/unrealircd.pid"
8336 _ACEOF
8337
8338 PIDFILE="$HOME/unrealircd/data/unrealircd.pid"
8339 fi
8340
8341
8342
8343 # Check whether --with-privatelibdir was given.
8344 if test "${with_privatelibdir+set}" = set; then :
8345 withval=$with_privatelibdir;
8346 else
8347 with_privatelibdir="yes"
8348 fi
8349
8350 if test "x$with_privatelibdir" = "xno"; then :
8351 PRIVATELIBDIR=
8352 elif test "x$with_privatelibdir" = "xyes"; then :
8353 PRIVATELIBDIR="$HOME/unrealircd/lib"
8354 else
8355 PRIVATELIBDIR="$with_privatelibdir"
8356 fi
8357 if test "x$PRIVATELIBDIR" = "x"; then :
8358 LDFLAGS_PRIVATELIBS=""
8359 else
8360
8361 cat >>confdefs.h <<_ACEOF
8362 #define PRIVATELIBDIR "$PRIVATELIBDIR"
8363 _ACEOF
8364
8365 LDFLAGS_PRIVATELIBS="-Wl,-rpath,$PRIVATELIBDIR"
8366 LDFLAGS="$LDFLAGS $LDFLAGS_PRIVATELIBS"
8367 export LDFLAGS
8368 fi
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 # Check whether --with-maxconnections was given.
8384 if test "${with_maxconnections+set}" = set; then :
8385 withval=$with_maxconnections; ac_fd=$withval
8386 else
8387 ac_fd=0
8388 fi
8389
8390
8391 cat >>confdefs.h <<_ACEOF
8392 #define MAXCONNECTIONS_REQUEST $ac_fd
8393 _ACEOF
8394
8395
8396 # Check whether --enable-prefixaq was given.
8397 if test "${enable_prefixaq+set}" = set; then :
8398 enableval=$enable_prefixaq;
8399 else
8400 enable_prefixaq=yes
8401 fi
8402
8403 if test $enable_prefixaq = "yes"; then :
8404
8405 $as_echo "#define PREFIX_AQ /**/" >>confdefs.h
8406
8407 fi
8408
8409
8410 # Check whether --with-showlistmodes was given.
8411 if test "${with_showlistmodes+set}" = set; then :
8412 withval=$with_showlistmodes; if test $withval = "yes"; then :
8413
8414 $as_echo "#define LIST_SHOW_MODES /**/" >>confdefs.h
8415
8416 fi
8417 fi
8418
8419
8420 # Check whether --with-shunnotices was given.
8421 if test "${with_shunnotices+set}" = set; then :
8422 withval=$with_shunnotices; if test $withval = "yes"; then :
8423
8424 $as_echo "#define SHUN_NOTICES /**/" >>confdefs.h
8425
8426 fi
8427 fi
8428
8429
8430 # Check whether --with-no-operoverride was given.
8431 if test "${with_no_operoverride+set}" = set; then :
8432 withval=$with_no_operoverride; if test $withval = "yes"; then :
8433
8434 $as_echo "#define NO_OPEROVERRIDE /**/" >>confdefs.h
8435
8436 fi
8437 fi
8438
8439
8440 # Check whether --with-disableusermod was given.
8441 if test "${with_disableusermod+set}" = set; then :
8442 withval=$with_disableusermod; if test $withval = "yes"; then :
8443
8444 $as_echo "#define DISABLE_USERMOD /**/" >>confdefs.h
8445
8446 fi
8447 fi
8448
8449
8450 # Check whether --with-operoverride-verify was given.
8451 if test "${with_operoverride_verify+set}" = set; then :
8452 withval=$with_operoverride_verify; if test $withval = "yes"; then :
8453
8454 $as_echo "#define OPEROVERRIDE_VERIFY /**/" >>confdefs.h
8455
8456 fi
8457 fi
8458
8459
8460 # Check whether --with-disable-extendedban-stacking was given.
8461 if test "${with_disable_extendedban_stacking+set}" = set; then :
8462 withval=$with_disable_extendedban_stacking; if test $withval = "yes"; then :
8463
8464 $as_echo "#define DISABLE_STACKED_EXTBANS /**/" >>confdefs.h
8465
8466 fi
8467 fi
8468
8469
8470 # Check whether --with-tre was given.
8471 if test "${with_tre+set}" = set; then :
8472 withval=$with_tre; with_tre=no
8473 else
8474 with_tre=yes
8475 fi
8476
8477
8478 # Check whether --with-system-tre was given.
8479 if test "${with_system_tre+set}" = set; then :
8480 withval=$with_system_tre;
8481 else
8482 with_system_tre=no
8483 fi
8484
8485
8486 # Check whether --with-system-pcre2 was given.
8487 if test "${with_system_pcre2+set}" = set; then :
8488 withval=$with_system_pcre2;
8489 else
8490 with_system_pcre2=no
8491 fi
8492
8493
8494 # Check whether --with-system-argon2 was given.
8495 if test "${with_system_argon2+set}" = set; then :
8496 withval=$with_system_argon2;
8497 else
8498 with_system_argon2=yes
8499 fi
8500
8501
8502 # Check whether --with-system-cares was given.
8503 if test "${with_system_cares+set}" = set; then :
8504 withval=$with_system_cares;
8505 else
8506 with_system_cares=yes
8507 fi
8508
8509
8510 # Check whether --enable-ssl was given.
8511 if test "${enable_ssl+set}" = set; then :
8512 enableval=$enable_ssl;
8513 else
8514 enable_ssl=no
8515 fi
8516
8517 if test $enable_ssl != "no"; then :
8518
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
8520 $as_echo_n "checking for openssl... " >&6; }
8521 for dir in $enable_ssl /usr/local/opt/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/sfw /usr/local /usr; do
8522 ssldir="$dir"
8523 if test -f "$dir/include/openssl/ssl.h"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include/openssl" >&5
8525 $as_echo "found in $ssldir/include/openssl" >&6; }
8526 found_ssl="yes";
8527 if test ! "$ssldir" = "/usr" ; then
8528 CFLAGS="$CFLAGS -I$ssldir/include";
8529 fi
8530 break
8531 fi
8532 if test -f "$dir/include/ssl.h"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include" >&5
8534 $as_echo "found in $ssldir/include" >&6; }
8535 found_ssl="yes";
8536 if test ! "$ssldir" = "/usr" ; then
8537 CFLAGS="$CFLAGS -I$ssldir/include";
8538 fi
8539 break
8540 fi
8541 done
8542 if test x_$found_ssl != x_yes; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8544 $as_echo "not found" >&6; }
8545 echo ""
8546 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
8547 echo "The following packages are required:"
8548 echo "1) The library package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
8549 echo "2) The binary package is usually called 'openssl'."
8550 echo "NOTE: you or your system administrator needs to install the library AND the binary package."
8551 echo "After doing so, simply re-run ./Config"
8552 exit 1
8553 else
8554 CRYPTOLIB="-lssl -lcrypto";
8555 if test ! "$ssldir" = "/usr" ; then
8556 LDFLAGS="$LDFLAGS -L$ssldir/lib";
8557 fi
8558 fi
8559
8560 fi
8561
8562
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set1_curves_list in SSL library" >&5
8564 $as_echo_n "checking for SSL_CTX_set1_curves_list in SSL library... " >&6; }
8565 ac_ext=c
8566 ac_cpp='$CPP $CPPFLAGS'
8567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8570
8571 SAVE_LIBS="$LIBS"
8572 LIBS="$LIBS $CRYPTOLIB"
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8575 #include <openssl/ssl.h>
8576 int
8577 main ()
8578 {
8579 SSL_CTX *ctx = NULL; SSL_CTX_set1_curves_list(ctx, "test");
8580 ;
8581 return 0;
8582 }
8583 _ACEOF
8584 if ac_fn_c_try_link "$LINENO"; then :
8585 has_function=1
8586 else
8587 has_function=0
8588 fi
8589 rm -f core conftest.err conftest.$ac_objext \
8590 conftest$ac_exeext conftest.$ac_ext
8591 LIBS="$SAVE_LIBS"
8592 ac_ext=c
8593 ac_cpp='$CPP $CPPFLAGS'
8594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8597
8598 if test $has_function = 1; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8600 $as_echo "yes" >&6; }
8601
8602 $as_echo "#define HAS_SSL_CTX_SET1_CURVES_LIST /**/" >>confdefs.h
8603
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8607 fi
8608
8609
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_min_proto_version in SSL library" >&5
8611 $as_echo_n "checking for SSL_CTX_set_min_proto_version in SSL library... " >&6; }
8612 ac_ext=c
8613 ac_cpp='$CPP $CPPFLAGS'
8614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8617
8618 SAVE_LIBS="$LIBS"
8619 LIBS="$LIBS $CRYPTOLIB"
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #include <openssl/ssl.h>
8623 int
8624 main ()
8625 {
8626 SSL_CTX *ctx = NULL; SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION);
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 if ac_fn_c_try_link "$LINENO"; then :
8632 has_function=1
8633 else
8634 has_function=0
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638 LIBS="$SAVE_LIBS"
8639 ac_ext=c
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8644
8645 if test $has_function = 1; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8647 $as_echo "yes" >&6; }
8648
8649 $as_echo "#define HAS_SSL_CTX_SET_MIN_PROTO_VERSION /**/" >>confdefs.h
8650
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8654 fi
8655
8656 # Check whether --enable-dynamic-linking was given.
8657 if test "${enable_dynamic_linking+set}" = set; then :
8658 enableval=$enable_dynamic_linking; enable_dynamic_linking=$enableval
8659 else
8660 enable_dynamic_linking="yes"
8661 fi
8662
8663 if test $enable_dynamic_linking = "yes"; then :
8664
8665 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8666 if test "x$ac_cv_func_dlopen" = xyes; then :
8667
8668 else
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8670 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8671 if ${ac_cv_lib_dl_dlopen+:} false; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 ac_check_lib_save_LIBS=$LIBS
8675 LIBS="-ldl $LIBS"
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678
8679 /* Override any GCC internal prototype to avoid an error.
8680 Use char because int might match the return type of a GCC
8681 builtin and then its argument prototype would still apply. */
8682 #ifdef __cplusplus
8683 extern "C"
8684 #endif
8685 char dlopen ();
8686 int
8687 main ()
8688 {
8689 return dlopen ();
8690 ;
8691 return 0;
8692 }
8693 _ACEOF
8694 if ac_fn_c_try_link "$LINENO"; then :
8695 ac_cv_lib_dl_dlopen=yes
8696 else
8697 ac_cv_lib_dl_dlopen=no
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8704 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8705 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8706 IRCDLIBS="$IRCDLIBS -ldl"
8707 else
8708
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5
8710 $as_echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;}
8711 $as_echo "#define STATIC_LINKING 1" >>confdefs.h
8712
8713
8714 fi
8715
8716 fi
8717
8718
8719 hold_cflags=$CFLAGS
8720 DYNAMIC_LDFLAGS=""
8721 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5
8723 $as_echo_n "checking if we need the -export-dynamic flag... " >&6; }
8724 if ${ac_cv_export_dynamic+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730
8731 int
8732 main ()
8733 {
8734 int i;
8735 ;
8736 return 0;
8737 }
8738 _ACEOF
8739 if ac_fn_c_try_link "$LINENO"; then :
8740 ac_cv_export_dynamic=yes
8741 else
8742 ac_cv_export_dynamic=no
8743 fi
8744 rm -f core conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8746 fi
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_export_dynamic" >&5
8748 $as_echo "$ac_cv_export_dynamic" >&6; }
8749 CFLAGS=$hold_cflags
8750 if test "$ac_cv_export_dynamic" = "yes"; then
8751 DYNAMIC_LDFLAGS="-Wl,-export-dynamic"
8752 fi
8753
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8755 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8756 if ${ac_cv_pic+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759
8760 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8761 ac_cv_pic="-fPIC -DPIC -shared"
8762 case `uname -s` in
8763 Darwin*)
8764 ac_cv_pic="-std=gnu89 -bundle -flat_namespace -undefined suppress"
8765 ;;
8766 HP-UX*)
8767 ac_cv_pic="-fPIC"
8768 ;;
8769 esac
8770 else
8771 case `uname -s` in
8772 SunOS*)
8773 ac_cv_pic="-KPIC -DPIC -G"
8774 ;;
8775 esac
8776 fi
8777
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pic" >&5
8780 $as_echo "$ac_cv_pic" >&6; }
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system prepends an underscore on symbols" >&5
8782 $as_echo_n "checking if your system prepends an underscore on symbols... " >&6; }
8783 if ${ac_cv_underscore+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786
8787 cat >uscore.c << __EOF__
8788 int main() {
8789 return 0;
8790 }
8791 __EOF__
8792 $CC -o uscore $CFLAGS uscore.c 1>&5
8793 if test -z "`strings -a uscore |grep '^_main$'`"; then
8794 ac_cv_underscore=no
8795 else
8796 ac_cv_underscore=yes
8797 fi
8798 rm -f uscore uscore.c
8799
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_underscore" >&5
8802 $as_echo "$ac_cv_underscore" >&6; }
8803 if test "$ac_cv_underscore" = "yes"; then
8804
8805 $as_echo "#define UNDERSCORE /**/" >>confdefs.h
8806
8807 fi
8808
8809 MODULEFLAGS="$ac_cv_pic $DYNAMIC_LDFLAGS"
8810
8811 else
8812
8813 $as_echo "#define STATIC_LINKING /**/" >>confdefs.h
8814
8815 fi
8816
8817 # Check whether --enable-werror was given.
8818 if test "${enable_werror+set}" = set; then :
8819 enableval=$enable_werror; ac_cv_werror="$enableval"
8820 else
8821 ac_cv_werror="no"
8822 fi
8823
8824
8825 # Check whether --enable-asan was given.
8826 if test "${enable_asan+set}" = set; then :
8827 enableval=$enable_asan; ac_cv_asan="$enableval"
8828 else
8829 ac_cv_asan="no"
8830 fi
8831
8832
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors" >&5
8834 $as_echo_n "checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors... " >&6; }
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8837
8838 #include <sys/types.h>
8839 #include <sys/time.h>
8840 int main() {
8841 #if FD_SETSIZE < $ac_fd
8842 #error FD_SETSIZE is smaller than $ac_fd
8843 #endif
8844 exit(0);
8845 }
8846
8847 _ACEOF
8848 if ac_fn_c_try_compile "$LINENO"; then :
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8850 $as_echo "yes" >&6; }
8851 else
8852
8853 # must be passed on the commandline to avoid a ``warning, you redefined something''
8854 FD_SETSIZE="-DFD_SETSIZE=$ac_fd"
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8857
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860
8861
8862 case `uname -s` in
8863 *SunOS*|*solaris*)
8864
8865 $as_echo "#define _SOLARIS /**/" >>confdefs.h
8866
8867 IRCDLIBS="$IRCDLIBS -lresolv "
8868 ;;
8869 esac
8870
8871 for ac_func in poll
8872 do :
8873 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
8874 if test "x$ac_cv_func_poll" = xyes; then :
8875 cat >>confdefs.h <<_ACEOF
8876 #define HAVE_POLL 1
8877 _ACEOF
8878
8879 $as_echo "#define HAVE_POLL /**/" >>confdefs.h
8880
8881 fi
8882 done
8883
8884 for ac_func in epoll_create epoll_ctl epoll_wait
8885 do :
8886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8887 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8888 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8889 cat >>confdefs.h <<_ACEOF
8890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8891 _ACEOF
8892
8893 $as_echo "#define HAVE_EPOLL /**/" >>confdefs.h
8894
8895 fi
8896 done
8897
8898 for ac_func in kqueue kevent
8899 do :
8900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8902 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8903 cat >>confdefs.h <<_ACEOF
8904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8905 _ACEOF
8906
8907 $as_echo "#define HAVE_KQUEUE /**/" >>confdefs.h
8908
8909 fi
8910 done
8911
8912
8913 export PATH_SEPARATOR
8914
8915 if test "x$with_tre" = "xyes"; then :
8916
8917
8918 $as_echo "#define USE_TRE /**/" >>confdefs.h
8919
8920
8921 fi
8922
8923 if test "x$with_system_tre" = "xno"; then :
8924
8925 if test "x$with_tre" = "xyes"; then :
8926
8927 compile_tre="yes"
8928
8929 fi
8930
8931 fi
8932
8933 if test "x$compile_tre" = "xyes"; then :
8934
8935 tre_version="0.8.0-git"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting TRE regex library" >&5
8937 $as_echo "extracting TRE regex library" >&6; }
8938 cur_dir=`pwd`
8939 cd extras
8940 rm -rf tre-$tre_version regexp
8941 if test "x$ac_cv_path_GUNZIP" = "x" ; then
8942 tar xfz tre.tar.gz
8943 else
8944 cp tre.tar.gz tre.tar.gz.bak
8945 gunzip -f tre.tar.gz
8946 cp tre.tar.gz.bak tre.tar.gz
8947 tar xf tre.tar
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring TRE regex library" >&5
8950 $as_echo "configuring TRE regex library" >&6; }
8951 cd tre-$tre_version
8952 ./configure --disable-agrep --enable-shared --disable-system-abi --disable-wchar --disable-multibyte --prefix=$cur_dir/extras/regexp --libdir=$PRIVATELIBDIR || exit 1
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling TRE regex library" >&5
8954 $as_echo "compiling TRE regex library" >&6; }
8955 $ac_cv_prog_MAKER || exit 1
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing TRE regex library" >&5
8957 $as_echo "installing TRE regex library" >&6; }
8958 $ac_cv_prog_MAKER install || exit 1
8959 TRE_CFLAGS="-I$cur_dir/extras/regexp/include"
8960
8961
8962 TRE_LIBS=
8963 if test -n "$ac_cv_path_PKGCONFIG"; then :
8964 TRE_LIBS="`$ac_cv_path_PKGCONFIG --libs tre.pc`"
8965 fi
8966 if test -z "$TRE_LIBS"; then :
8967 TRE_LIBS="$PRIVATELIBDIR/libtre.so"
8968 fi
8969
8970 cd $cur_dir
8971
8972 fi
8973
8974
8975
8976
8977
8978
8979
8980
8981 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8982 if test -n "$ac_tool_prefix"; then
8983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8984 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 case $PKG_CONFIG in
8991 [\\/]* | ?:[\\/]*)
8992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8993 ;;
8994 *)
8995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH
8997 do
8998 IFS=$as_save_IFS
8999 test -z "$as_dir" && as_dir=.
9000 for ac_exec_ext in '' $ac_executable_extensions; do
9001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004 break 2
9005 fi
9006 done
9007 done
9008 IFS=$as_save_IFS
9009
9010 ;;
9011 esac
9012 fi
9013 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9014 if test -n "$PKG_CONFIG"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9016 $as_echo "$PKG_CONFIG" >&6; }
9017 else
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9020 fi
9021
9022
9023 fi
9024 if test -z "$ac_cv_path_PKG_CONFIG"; then
9025 ac_pt_PKG_CONFIG=$PKG_CONFIG
9026 # Extract the first word of "pkg-config", so it can be a program name with args.
9027 set dummy pkg-config; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 case $ac_pt_PKG_CONFIG in
9034 [\\/]* | ?:[\\/]*)
9035 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9036 ;;
9037 *)
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9040 do
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9045 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9048 fi
9049 done
9050 done
9051 IFS=$as_save_IFS
9052
9053 ;;
9054 esac
9055 fi
9056 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9057 if test -n "$ac_pt_PKG_CONFIG"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9059 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9060 else
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9063 fi
9064
9065 if test "x$ac_pt_PKG_CONFIG" = x; then
9066 PKG_CONFIG=""
9067 else
9068 case $cross_compiling:$ac_tool_warned in
9069 yes:)
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9072 ac_tool_warned=yes ;;
9073 esac
9074 PKG_CONFIG=$ac_pt_PKG_CONFIG
9075 fi
9076 else
9077 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9078 fi
9079
9080 fi
9081 if test -n "$PKG_CONFIG"; then
9082 _pkg_min_version=0.9.0
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9084 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9085 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9087 $as_echo "yes" >&6; }
9088 else
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9091 PKG_CONFIG=""
9092 fi
9093 fi
9094 if test "x$with_system_tre" = "xyes"; then :
9095
9096
9097 pkg_failed=no
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRE" >&5
9099 $as_echo_n "checking for TRE... " >&6; }
9100
9101 if test -n "$TRE_CFLAGS"; then
9102 pkg_cv_TRE_CFLAGS="$TRE_CFLAGS"
9103 elif test -n "$PKG_CONFIG"; then
9104 if test -n "$PKG_CONFIG" && \
9105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
9106 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
9107 ac_status=$?
9108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9109 test $ac_status = 0; }; then
9110 pkg_cv_TRE_CFLAGS=`$PKG_CONFIG --cflags "tre >= 0.7.5" 2>/dev/null`
9111 test "x$?" != "x0" && pkg_failed=yes
9112 else
9113 pkg_failed=yes
9114 fi
9115 else
9116 pkg_failed=untried
9117 fi
9118 if test -n "$TRE_LIBS"; then
9119 pkg_cv_TRE_LIBS="$TRE_LIBS"
9120 elif test -n "$PKG_CONFIG"; then
9121 if test -n "$PKG_CONFIG" && \
9122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
9123 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
9124 ac_status=$?
9125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9126 test $ac_status = 0; }; then
9127 pkg_cv_TRE_LIBS=`$PKG_CONFIG --libs "tre >= 0.7.5" 2>/dev/null`
9128 test "x$?" != "x0" && pkg_failed=yes
9129 else
9130 pkg_failed=yes
9131 fi
9132 else
9133 pkg_failed=untried
9134 fi
9135
9136
9137
9138 if test $pkg_failed = yes; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9141
9142 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9143 _pkg_short_errors_supported=yes
9144 else
9145 _pkg_short_errors_supported=no
9146 fi
9147 if test $_pkg_short_errors_supported = yes; then
9148 TRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
9149 else
9150 TRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
9151 fi
9152 # Put the nasty error message in config.log where it belongs
9153 echo "$TRE_PKG_ERRORS" >&5
9154
9155 as_fn_error $? "Package requirements (tre >= 0.7.5) were not met:
9156
9157 $TRE_PKG_ERRORS
9158
9159 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9160 installed software in a non-standard prefix.
9161
9162 Alternatively, you may set the environment variables TRE_CFLAGS
9163 and TRE_LIBS to avoid the need to call pkg-config.
9164 See the pkg-config man page for more details." "$LINENO" 5
9165 elif test $pkg_failed = untried; then
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9170 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
9171 is in your PATH or set the PKG_CONFIG environment variable to the full
9172 path to pkg-config.
9173
9174 Alternatively, you may set the environment variables TRE_CFLAGS
9175 and TRE_LIBS to avoid the need to call pkg-config.
9176 See the pkg-config man page for more details.
9177
9178 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9179 See \`config.log' for more details" "$LINENO" 5; }
9180 else
9181 TRE_CFLAGS=$pkg_cv_TRE_CFLAGS
9182 TRE_LIBS=$pkg_cv_TRE_LIBS
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9184 $as_echo "yes" >&6; }
9185
9186 fi
9187
9188 fi
9189
9190 if test "x$with_system_pcre2" = "xno"; then :
9191
9192 pcre2_version="10.32"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting PCRE2 regex library" >&5
9194 $as_echo "extracting PCRE2 regex library" >&6; }
9195 cur_dir=`pwd`
9196 cd extras
9197 rm -rf pcre2-$pcre2_version pcre2
9198 if test "x$ac_cv_path_GUNZIP" = "x" ; then
9199 tar xfz pcre2.tar.gz
9200 else
9201 cp pcre2.tar.gz pcre2.tar.gz.bak
9202 gunzip -f pcre2.tar.gz
9203 cp pcre2.tar.gz.bak pcre2.tar.gz
9204 tar xf pcre2.tar
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring PCRE2 regex library" >&5
9207 $as_echo "configuring PCRE2 regex library" >&6; }
9208 cd pcre2-$pcre2_version
9209 ./configure --enable-jit --enable-shared --disable-unicode --prefix=$cur_dir/extras/pcre2 --libdir=$PRIVATELIBDIR || exit 1
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling PCRE2 regex library" >&5
9211 $as_echo "compiling PCRE2 regex library" >&6; }
9212 $ac_cv_prog_MAKER || exit 1
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing PCRE2 regex library" >&5
9214 $as_echo "installing PCRE2 regex library" >&6; }
9215 $ac_cv_prog_MAKER install || exit 1
9216 PCRE2_CFLAGS="-I$cur_dir/extras/pcre2/include"
9217
9218
9219 PCRE2_LIBS=
9220 if test -n "$ac_cv_path_PKGCONFIG"; then :
9221 PCRE2_LIBS="`$ac_cv_path_PKGCONFIG --libs libpcre2-8.pc`"
9222 fi
9223 if test -z "$PCRE2_LIBS"; then :
9224 PCRE2_LIBS="$PRIVATELIBDIR/libpcre2-8.so"
9225 fi
9226
9227 cd $cur_dir
9228
9229 else
9230
9231
9232 pkg_failed=no
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2" >&5
9234 $as_echo_n "checking for PCRE2... " >&6; }
9235
9236 if test -n "$PCRE2_CFLAGS"; then
9237 pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS"
9238 elif test -n "$PKG_CONFIG"; then
9239 if test -n "$PKG_CONFIG" && \
9240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.00\""; } >&5
9241 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.00") 2>&5
9242 ac_status=$?
9243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9244 test $ac_status = 0; }; then
9245 pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8 >= 10.00" 2>/dev/null`
9246 test "x$?" != "x0" && pkg_failed=yes
9247 else
9248 pkg_failed=yes
9249 fi
9250 else
9251 pkg_failed=untried
9252 fi
9253 if test -n "$PCRE2_LIBS"; then
9254 pkg_cv_PCRE2_LIBS="$PCRE2_LIBS"
9255 elif test -n "$PKG_CONFIG"; then
9256 if test -n "$PKG_CONFIG" && \
9257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.00\""; } >&5
9258 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.00") 2>&5
9259 ac_status=$?
9260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9261 test $ac_status = 0; }; then
9262 pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8 >= 10.00" 2>/dev/null`
9263 test "x$?" != "x0" && pkg_failed=yes
9264 else
9265 pkg_failed=yes
9266 fi
9267 else
9268 pkg_failed=untried
9269 fi
9270
9271
9272
9273 if test $pkg_failed = yes; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9276
9277 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9278 _pkg_short_errors_supported=yes
9279 else
9280 _pkg_short_errors_supported=no
9281 fi
9282 if test $_pkg_short_errors_supported = yes; then
9283 PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8 >= 10.00" 2>&1`
9284 else
9285 PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8 >= 10.00" 2>&1`
9286 fi
9287 # Put the nasty error message in config.log where it belongs
9288 echo "$PCRE2_PKG_ERRORS" >&5
9289
9290 as_fn_error $? "Package requirements (libpcre2-8 >= 10.00) were not met:
9291
9292 $PCRE2_PKG_ERRORS
9293
9294 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9295 installed software in a non-standard prefix.
9296
9297 Alternatively, you may set the environment variables PCRE2_CFLAGS
9298 and PCRE2_LIBS to avoid the need to call pkg-config.
9299 See the pkg-config man page for more details." "$LINENO" 5
9300 elif test $pkg_failed = untried; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302 $as_echo "no" >&6; }
9303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9305 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
9306 is in your PATH or set the PKG_CONFIG environment variable to the full
9307 path to pkg-config.
9308
9309 Alternatively, you may set the environment variables PCRE2_CFLAGS
9310 and PCRE2_LIBS to avoid the need to call pkg-config.
9311 See the pkg-config man page for more details.
9312
9313 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9314 See \`config.log' for more details" "$LINENO" 5; }
9315 else
9316 PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS
9317 PCRE2_LIBS=$pkg_cv_PCRE2_LIBS
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9319 $as_echo "yes" >&6; }
9320
9321 fi
9322
9323 fi
9324
9325 has_system_argon2="no"
9326 if test "x$with_system_argon2" = "xyes"; then :
9327
9328
9329 pkg_failed=no
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARGON2" >&5
9331 $as_echo_n "checking for ARGON2... " >&6; }
9332
9333 if test -n "$ARGON2_CFLAGS"; then
9334 pkg_cv_ARGON2_CFLAGS="$ARGON2_CFLAGS"
9335 elif test -n "$PKG_CONFIG"; then
9336 if test -n "$PKG_CONFIG" && \
9337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2 >= 0~20161029\""; } >&5
9338 ($PKG_CONFIG --exists --print-errors "libargon2 >= 0~20161029") 2>&5
9339 ac_status=$?
9340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9341 test $ac_status = 0; }; then
9342 pkg_cv_ARGON2_CFLAGS=`$PKG_CONFIG --cflags "libargon2 >= 0~20161029" 2>/dev/null`
9343 test "x$?" != "x0" && pkg_failed=yes
9344 else
9345 pkg_failed=yes
9346 fi
9347 else
9348 pkg_failed=untried
9349 fi
9350 if test -n "$ARGON2_LIBS"; then
9351 pkg_cv_ARGON2_LIBS="$ARGON2_LIBS"
9352 elif test -n "$PKG_CONFIG"; then
9353 if test -n "$PKG_CONFIG" && \
9354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2 >= 0~20161029\""; } >&5
9355 ($PKG_CONFIG --exists --print-errors "libargon2 >= 0~20161029") 2>&5
9356 ac_status=$?
9357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9358 test $ac_status = 0; }; then
9359 pkg_cv_ARGON2_LIBS=`$PKG_CONFIG --libs "libargon2 >= 0~20161029" 2>/dev/null`
9360 test "x$?" != "x0" && pkg_failed=yes
9361 else
9362 pkg_failed=yes
9363 fi
9364 else
9365 pkg_failed=untried
9366 fi
9367
9368
9369
9370 if test $pkg_failed = yes; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9373
9374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9375 _pkg_short_errors_supported=yes
9376 else
9377 _pkg_short_errors_supported=no
9378 fi
9379 if test $_pkg_short_errors_supported = yes; then
9380 ARGON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libargon2 >= 0~20161029" 2>&1`
9381 else
9382 ARGON2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libargon2 >= 0~20161029" 2>&1`
9383 fi
9384 # Put the nasty error message in config.log where it belongs
9385 echo "$ARGON2_PKG_ERRORS" >&5
9386
9387 has_system_argon2=no
9388 elif test $pkg_failed = untried; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 $as_echo "no" >&6; }
9391 has_system_argon2=no
9392 else
9393 ARGON2_CFLAGS=$pkg_cv_ARGON2_CFLAGS
9394 ARGON2_LIBS=$pkg_cv_ARGON2_LIBS
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9396 $as_echo "yes" >&6; }
9397 has_system_argon2=yes
9398 if test "x$PRIVATELIBDIR" != "x"; then :
9399 rm -f "$PRIVATELIBDIR/"libargon2*
9400 fi
9401 fi
9402 fi
9403
9404 if test "$has_system_argon2" = "no"; then :
9405
9406 argon2_version="20181209"
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting Argon2 library" >&5
9408 $as_echo "extracting Argon2 library" >&6; }
9409 cur_dir=`pwd`
9410 cd extras
9411 rm -rf argon2-$argon2_version argon2
9412 if test "x$ac_cv_path_GUNZIP" = "x" ; then
9413 tar xfz argon2-$argon2_version.tar.gz
9414 else
9415 cp argon2-$argon2_version.tar.gz argon2-$argon2_version.tar.gz.bak
9416 gunzip -f argon2-$argon2_version.tar.gz
9417 cp argon2-$argon2_version.tar.gz.bak argon2-$argon2_version.tar.gz
9418 tar xf argon2-$argon2_version.tar
9419 fi
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling Argon2 library" >&5
9421 $as_echo "compiling Argon2 library" >&6; }
9422 cd argon2-$argon2_version
9423 $ac_cv_prog_MAKER || exit 1
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing Argon2 library" >&5
9425 $as_echo "installing Argon2 library" >&6; }
9426 $ac_cv_prog_MAKER install PREFIX=$cur_dir/extras/argon2 || exit 1
9427 # We need to manually copy the libs to PRIVATELIBDIR because
9428 # there is no way to tell make install in libargon2 to do so.
9429 cp -av $cur_dir/extras/argon2/lib/* $PRIVATELIBDIR/
9430 ARGON2_CFLAGS="-I$cur_dir/extras/argon2/include"
9431
9432 ARGON2_LIBS="-L$PRIVATELIBDIR -largon2"
9433
9434 cd $cur_dir
9435
9436 fi
9437
9438 has_system_cares="no"
9439 if test "x$with_system_cares" = "xyes"; then :
9440
9441
9442 pkg_failed=no
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5
9444 $as_echo_n "checking for CARES... " >&6; }
9445
9446 if test -n "$CARES_CFLAGS"; then
9447 pkg_cv_CARES_CFLAGS="$CARES_CFLAGS"
9448 elif test -n "$PKG_CONFIG"; then
9449 if test -n "$PKG_CONFIG" && \
9450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
9451 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
9452 ac_status=$?
9453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9454 test $ac_status = 0; }; then
9455 pkg_cv_CARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.6.0" 2>/dev/null`
9456 test "x$?" != "x0" && pkg_failed=yes
9457 else
9458 pkg_failed=yes
9459 fi
9460 else
9461 pkg_failed=untried
9462 fi
9463 if test -n "$CARES_LIBS"; then
9464 pkg_cv_CARES_LIBS="$CARES_LIBS"
9465 elif test -n "$PKG_CONFIG"; then
9466 if test -n "$PKG_CONFIG" && \
9467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
9468 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
9469 ac_status=$?
9470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471 test $ac_status = 0; }; then
9472 pkg_cv_CARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.6.0" 2>/dev/null`
9473 test "x$?" != "x0" && pkg_failed=yes
9474 else
9475 pkg_failed=yes
9476 fi
9477 else
9478 pkg_failed=untried
9479 fi
9480
9481
9482
9483 if test $pkg_failed = yes; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 $as_echo "no" >&6; }
9486
9487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9488 _pkg_short_errors_supported=yes
9489 else
9490 _pkg_short_errors_supported=no
9491 fi
9492 if test $_pkg_short_errors_supported = yes; then
9493 CARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
9494 else
9495 CARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
9496 fi
9497 # Put the nasty error message in config.log where it belongs
9498 echo "$CARES_PKG_ERRORS" >&5
9499
9500 has_system_cares=no
9501 elif test $pkg_failed = untried; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9504 has_system_cares=no
9505 else
9506 CARES_CFLAGS=$pkg_cv_CARES_CFLAGS
9507 CARES_LIBS=$pkg_cv_CARES_LIBS
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9509 $as_echo "yes" >&6; }
9510 has_system_cares=yes
9511 if test "x$PRIVATELIBDIR" != "x"; then :
9512 rm -f "$PRIVATELIBDIR/"libcares*
9513 fi
9514 fi
9515 fi
9516
9517 if test "$has_system_cares" = "no"; then :
9518
9519 cares_version="1.15.0"
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting c-ares resolver library" >&5
9521 $as_echo "extracting c-ares resolver library" >&6; }
9522 cur_dir=`pwd`
9523 cd extras
9524 rm -rf c-ares-$cares_version c-ares
9525 if test "x$ac_cv_path_GUNZIP" = "x" ; then
9526 tar xfz c-ares.tar.gz
9527 else
9528 cp c-ares.tar.gz c-ares.tar.gz.bak
9529 gunzip -f c-ares.tar.gz
9530 cp c-ares.tar.gz.bak c-ares.tar.gz
9531 tar xf c-ares.tar
9532 fi
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring c-ares library" >&5
9534 $as_echo "configuring c-ares library" >&6; }
9535 cd c-ares-$cares_version
9536 save_cflags="$CFLAGS"
9537 CFLAGS="$orig_cflags"
9538 export CFLAGS
9539 ./configure --prefix=$cur_dir/extras/c-ares --libdir=$PRIVATELIBDIR --enable-shared || exit 1
9540 CFLAGS="$save_cflags"
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling c-ares resolver library" >&5
9542 $as_echo "compiling c-ares resolver library" >&6; }
9543 $ac_cv_prog_MAKER || exit 1
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing c-ares resolver library" >&5
9545 $as_echo "installing c-ares resolver library" >&6; }
9546 $ac_cv_prog_MAKER install || exit 1
9547 CARES_CFLAGS="-I$cur_dir/extras/c-ares/include"
9548
9549 CARES_LIBS="-L$PRIVATELIBDIR"
9550
9551 cd ../..
9552 CARESLIBSALT="$PRIVATELIBDIR/libcares.so"
9553 cd -
9554 case `uname -s` in
9555 *FreeBSD*)
9556 CARESLIBSALT="$CARESLIBSALT"
9557 ;;
9558 *Linux*)
9559 CARESLIBSALT="$CARESLIBSALT -lrt"
9560 ;;
9561 *SunOS*)
9562 CARESLIBSALT="$CARESLIBSALT -lrt"
9563 ;;
9564 esac
9565
9566 if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
9567 CARES_LIBS="$CARES_LIBS $CARESLIBSALT"
9568 else
9569 CARES_LIBSPRE="$CARES_LIBS"
9570 CARES_LIBS="$CARES_LIBS `$ac_cv_path_PKGCONFIG --libs libcares.pc | sed -e 's,-L\([^ ]\+lib\) -lcares,\1/libcares.so,'`"
9571 if test "$CARES_LIBS" = "$CARES_LIBSPRE " ; then
9572 CARES_LIBS="$CARES_LIBS $CARESLIBSALT"
9573 fi
9574 fi
9575
9576 cd $cur_dir
9577
9578 fi
9579
9580 # Make sure we can run config.sub.
9581 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
9582 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
9583
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
9585 $as_echo_n "checking build system type... " >&6; }
9586 if ${ac_cv_build+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 ac_build_alias=$build_alias
9590 test "x$ac_build_alias" = x &&
9591 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
9592 test "x$ac_build_alias" = x &&
9593 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
9594 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
9595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
9596
9597 fi
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
9599 $as_echo "$ac_cv_build" >&6; }
9600 case $ac_cv_build in
9601 *-*-*) ;;
9602 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
9603 esac
9604 build=$ac_cv_build
9605 ac_save_IFS=$IFS; IFS='-'
9606 set x $ac_cv_build
9607 shift
9608 build_cpu=$1
9609 build_vendor=$2
9610 shift; shift
9611 # Remember, the first character of IFS is used to create $*,
9612 # except with old shells:
9613 build_os=$*
9614 IFS=$ac_save_IFS
9615 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
9616
9617
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
9619 $as_echo_n "checking host system type... " >&6; }
9620 if ${ac_cv_host+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 if test "x$host_alias" = x; then
9624 ac_cv_host=$ac_cv_build
9625 else
9626 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
9627 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
9628 fi
9629
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
9632 $as_echo "$ac_cv_host" >&6; }
9633 case $ac_cv_host in
9634 *-*-*) ;;
9635 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
9636 esac
9637 host=$ac_cv_host
9638 ac_save_IFS=$IFS; IFS='-'
9639 set x $ac_cv_host
9640 shift
9641 host_cpu=$1
9642 host_vendor=$2
9643 shift; shift
9644 # Remember, the first character of IFS is used to create $*,
9645 # except with old shells:
9646 host_os=$*
9647 IFS=$ac_save_IFS
9648 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9649
9650
9651
9652
9653 ac_ext=c
9654 ac_cpp='$CPP $CPPFLAGS'
9655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9658
9659 ax_pthread_ok=no
9660
9661 # We used to check for pthread.h first, but this fails if pthread.h
9662 # requires special compiler flags (e.g. on True64 or Sequent).
9663 # It gets checked for in the link test anyway.
9664
9665 # First of all, check if the user has set any of the PTHREAD_LIBS,
9666 # etcetera environment variables, and if threads linking works using
9667 # them:
9668 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9669 save_CFLAGS="$CFLAGS"
9670 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9671 save_LIBS="$LIBS"
9672 LIBS="$PTHREAD_LIBS $LIBS"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9674 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677
9678 /* Override any GCC internal prototype to avoid an error.
9679 Use char because int might match the return type of a GCC
9680 builtin and then its argument prototype would still apply. */
9681 #ifdef __cplusplus
9682 extern "C"
9683 #endif
9684 char pthread_join ();
9685 int
9686 main ()
9687 {
9688 return pthread_join ();
9689 ;
9690 return 0;
9691 }
9692 _ACEOF
9693 if ac_fn_c_try_link "$LINENO"; then :
9694 ax_pthread_ok=yes
9695 fi
9696 rm -f core conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9699 $as_echo "$ax_pthread_ok" >&6; }
9700 if test x"$ax_pthread_ok" = xno; then
9701 PTHREAD_LIBS=""
9702 PTHREAD_CFLAGS=""
9703 fi
9704 LIBS="$save_LIBS"
9705 CFLAGS="$save_CFLAGS"
9706 fi
9707
9708 # We must check for the threads library under a number of different
9709 # names; the ordering is very important because some systems
9710 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9711 # libraries is broken (non-POSIX).
9712
9713 # Create a list of thread flags to try. Items starting with a "-" are
9714 # C compiler flags, and other items are library names, except for "none"
9715 # which indicates that we try without any flags at all, and "pthread-config"
9716 # which is a program returning the flags for the Pth emulation library.
9717
9718 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9719
9720 # The ordering *is* (sometimes) important. Some notes on the
9721 # individual items follow:
9722
9723 # pthreads: AIX (must check this before -lpthread)
9724 # none: in case threads are in libc; should be tried before -Kthread and
9725 # other compiler flags to prevent continual compiler warnings
9726 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9727 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9728 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9729 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9730 # -pthreads: Solaris/gcc
9731 # -mthreads: Mingw32/gcc, Lynx/gcc
9732 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9733 # doesn't hurt to check since this sometimes defines pthreads too;
9734 # also defines -D_REENTRANT)
9735 # ... -mt is also the pthreads flag for HP/aCC
9736 # pthread: Linux, etcetera
9737 # --thread-safe: KAI C++
9738 # pthread-config: use pthread-config program (for GNU Pth library)
9739
9740 case ${host_os} in
9741 solaris*)
9742
9743 # On Solaris (at least, for some versions), libc contains stubbed
9744 # (non-functional) versions of the pthreads routines, so link-based
9745 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9746 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9747 # a function called by this macro, so we could check for that, but
9748 # who knows whether they'll stub that too in a future libc.) So,
9749 # we'll just look for -pthreads and -lpthread first:
9750
9751 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9752 ;;
9753
9754 darwin*)
9755 ax_pthread_flags="-pthread $ax_pthread_flags"
9756 ;;
9757 esac
9758
9759 # Clang doesn't consider unrecognized options an error unless we specify
9760 # -Werror. We throw in some extra Clang-specific options to ensure that
9761 # this doesn't happen for GCC, which also accepts -Werror.
9762
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9764 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9765 save_CFLAGS="$CFLAGS"
9766 ax_pthread_extra_flags="-Werror"
9767 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 int foo(void);
9771 int
9772 main ()
9773 {
9774 foo()
9775 ;
9776 return 0;
9777 }
9778 _ACEOF
9779 if ac_fn_c_try_compile "$LINENO"; then :
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9781 $as_echo "yes" >&6; }
9782 else
9783 ax_pthread_extra_flags=
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 CFLAGS="$save_CFLAGS"
9789
9790 if test x"$ax_pthread_ok" = xno; then
9791 for flag in $ax_pthread_flags; do
9792
9793 case $flag in
9794 none)
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9796 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9797 ;;
9798
9799 -*)
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9801 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
9802 PTHREAD_CFLAGS="$flag"
9803 ;;
9804
9805 pthread-config)
9806 # Extract the first word of "pthread-config", so it can be a program name with args.
9807 set dummy pthread-config; ac_word=$2
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809 $as_echo_n "checking for $ac_word... " >&6; }
9810 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9811 $as_echo_n "(cached) " >&6
9812 else
9813 if test -n "$ax_pthread_config"; then
9814 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9815 else
9816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817 for as_dir in $PATH
9818 do
9819 IFS=$as_save_IFS
9820 test -z "$as_dir" && as_dir=.
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9823 ac_cv_prog_ax_pthread_config="yes"
9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 break 2
9826 fi
9827 done
9828 done
9829 IFS=$as_save_IFS
9830
9831 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9832 fi
9833 fi
9834 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9835 if test -n "$ax_pthread_config"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9837 $as_echo "$ax_pthread_config" >&6; }
9838 else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9841 fi
9842
9843
9844 if test x"$ax_pthread_config" = xno; then continue; fi
9845 PTHREAD_CFLAGS="`pthread-config --cflags`"
9846 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9847 ;;
9848
9849 *)
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9851 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9852 PTHREAD_LIBS="-l$flag"
9853 ;;
9854 esac
9855
9856 save_LIBS="$LIBS"
9857 save_CFLAGS="$CFLAGS"
9858 LIBS="$PTHREAD_LIBS $LIBS"
9859 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
9860
9861 # Check for various functions. We must include pthread.h,
9862 # since some functions may be macros. (On the Sequent, we
9863 # need a special flag -Kthread to make this header compile.)
9864 # We check for pthread_join because it is in -lpthread on IRIX
9865 # while pthread_create is in libc. We check for pthread_attr_init
9866 # due to DEC craziness with -lpthreads. We check for
9867 # pthread_cleanup_push because it is one of the few pthread
9868 # functions on Solaris that doesn't have a non-functional libc stub.
9869 # We try pthread_create on general principles.
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 #include <pthread.h>
9873 static void routine(void *a) { a = 0; }
9874 static void *start_routine(void *a) { return a; }
9875 int
9876 main ()
9877 {
9878 pthread_t th; pthread_attr_t attr;
9879 pthread_create(&th, 0, start_routine, 0);
9880 pthread_join(th, 0);
9881 pthread_attr_init(&attr);
9882 pthread_cleanup_push(routine, 0);
9883 pthread_cleanup_pop(0) /* ; */
9884 ;
9885 return 0;
9886 }
9887 _ACEOF
9888 if ac_fn_c_try_link "$LINENO"; then :
9889 ax_pthread_ok=yes
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893
9894 LIBS="$save_LIBS"
9895 CFLAGS="$save_CFLAGS"
9896
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9898 $as_echo "$ax_pthread_ok" >&6; }
9899 if test "x$ax_pthread_ok" = xyes; then
9900 break;
9901 fi
9902
9903 PTHREAD_LIBS=""
9904 PTHREAD_CFLAGS=""
9905 done
9906 fi
9907
9908 # Various other checks:
9909 if test "x$ax_pthread_ok" = xyes; then
9910 save_LIBS="$LIBS"
9911 LIBS="$PTHREAD_LIBS $LIBS"
9912 save_CFLAGS="$CFLAGS"
9913 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9914
9915 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9917 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9918 attr_name=unknown
9919 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 #include <pthread.h>
9923 int
9924 main ()
9925 {
9926 int attr = $attr; return attr /* ; */
9927 ;
9928 return 0;
9929 }
9930 _ACEOF
9931 if ac_fn_c_try_link "$LINENO"; then :
9932 attr_name=$attr; break
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 done
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9938 $as_echo "$attr_name" >&6; }
9939 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9940
9941 cat >>confdefs.h <<_ACEOF
9942 #define PTHREAD_CREATE_JOINABLE $attr_name
9943 _ACEOF
9944
9945 fi
9946
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9948 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9949 flag=no
9950 case ${host_os} in
9951 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9952 osf* | hpux*) flag="-D_REENTRANT";;
9953 solaris*)
9954 if test "$GCC" = "yes"; then
9955 flag="-D_REENTRANT"
9956 else
9957 # TODO: What about Clang on Solaris?
9958 flag="-mt -D_REENTRANT"
9959 fi
9960 ;;
9961 esac
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9963 $as_echo "$flag" >&6; }
9964 if test "x$flag" != xno; then
9965 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9966 fi
9967
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9969 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9970 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 #include <pthread.h>
9977 int
9978 main ()
9979 {
9980 int i = PTHREAD_PRIO_INHERIT;
9981 ;
9982 return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_link "$LINENO"; then :
9986 ax_cv_PTHREAD_PRIO_INHERIT=yes
9987 else
9988 ax_cv_PTHREAD_PRIO_INHERIT=no
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992
9993 fi
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9995 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9996 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9997
9998 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9999
10000 fi
10001
10002 LIBS="$save_LIBS"
10003 CFLAGS="$save_CFLAGS"
10004
10005 # More AIX lossage: compile with *_r variant
10006 if test "x$GCC" != xyes; then
10007 case $host_os in
10008 aix*)
10009 case "x/$CC" in #(
10010 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10011 #handle absolute path differently from PATH based program lookup
10012 case "x$CC" in #(
10013 x/*) :
10014 if as_fn_executable_p ${CC}_r; then :
10015 PTHREAD_CC="${CC}_r"
10016 fi ;; #(
10017 *) :
10018 for ac_prog in ${CC}_r
10019 do
10020 # Extract the first word of "$ac_prog", so it can be a program name with args.
10021 set dummy $ac_prog; ac_word=$2
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023 $as_echo_n "checking for $ac_word... " >&6; }
10024 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 if test -n "$PTHREAD_CC"; then
10028 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10029 else
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10037 ac_cv_prog_PTHREAD_CC="$ac_prog"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10040 fi
10041 done
10042 done
10043 IFS=$as_save_IFS
10044
10045 fi
10046 fi
10047 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10048 if test -n "$PTHREAD_CC"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10050 $as_echo "$PTHREAD_CC" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 fi
10055
10056
10057 test -n "$PTHREAD_CC" && break
10058 done
10059 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10060 ;;
10061 esac ;; #(
10062 *) :
10063 ;;
10064 esac
10065 ;;
10066 esac
10067 fi
10068 fi
10069
10070 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10071
10072
10073
10074
10075
10076 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10077 if test x"$ax_pthread_ok" = xyes; then
10078
10079 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10080
10081 :
10082 else
10083 ax_pthread_ok=no
10084
10085 fi
10086 ac_ext=c
10087 ac_cpp='$CPP $CPPFLAGS'
10088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10091
10092
10093
10094
10095 # Check whether --enable-libcurl was given.
10096 if test "${enable_libcurl+set}" = set; then :
10097 enableval=$enable_libcurl; enable_curl=$enableval
10098 else
10099 enable_curl=no
10100 fi
10101
10102
10103 if test "x$enable_curl" != "xno"; then :
10104
10105 CURLCONFIG="curl-config"
10106 if test "x$enable_curl" != "xyes"; then :
10107 CURLCONFIG="$enable_curl/bin/curl-config"
10108 fi
10109
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CURLCONFIG" >&5
10111 $as_echo_n "checking $CURLCONFIG... " >&6; }
10112 if $CURLCONFIG --version 2>/dev/null >/dev/null; then :
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10114 $as_echo "yes" >&6; }
10115 else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10120 as_fn_error $? "Could not find curl-config, try editing --enable-libcurl
10121 See \`config.log' for more details" "$LINENO" 5; }
10122 fi
10123
10124 CURLCFLAG="`$CURLCONFIG --cflags`"
10125 CURLLIBS="`$CURLCONFIG --libs`"
10126
10127 if $CURLCONFIG --libs | grep -q -e ares; then :
10128 CURLUSESCARES="1"
10129 else
10130 CURLUSESCARES="0"
10131 fi
10132
10133 if test -z "${CURLLIBS}"; then :
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&5
10135 $as_echo "$as_me: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&2;}
10136 fi
10137
10138
10139 if test "x$has_system_cares" = "xno" && test "x$BUILDDIR/extras/curl" != "x$enable_curl" && test "$CURLUSESCARES" != "0" ; then :
10140
10141 as_fn_error $? "
10142
10143 You have decided to build unrealIRCd with libcURL (remote includes) support.
10144 However, you have system-installed c-ares support has either been disabled
10145 (--without-system-cares) or is unavailable.
10146 Because UnrealIRCd will use a bundled copy of c-ares which may be incompatible
10147 with the system-installed libcURL, this is a bad idea which may result in error
10148 messages looking like:
10149
10150 \`\`[error] unrealircd.conf:9: include: error downloading '(http://example.net/ex.conf)': Could not resolve host: example.net (Successful completion)''
10151
10152 Or UnrealIRCd might even crash.
10153
10154 Please build UnrealIRCd with --with-system-cares when enabling --enable-libcurl
10155 " "$LINENO" 5
10156
10157 fi
10158
10159 IRCDLIBS="$IRCDLIBS $CURLLIBS"
10160 CFLAGS="$CFLAGS $CURLCFLAG"
10161
10162 $as_echo "#define USE_LIBCURL /**/" >>confdefs.h
10163
10164
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl_easy_init() in $CURLLIBS" >&5
10166 $as_echo_n "checking curl_easy_init() in $CURLLIBS... " >&6; }
10167 LIBS_SAVEDA="$LIBS"
10168 CFLAGS_SAVEDA="$CFLAGS"
10169
10170 LIBS="$IRCDLIBS $IRCDLIBS_CURL_CARES"
10171 CFLAGS="$CFLAGS $CFLAGS_CURL_CARES"
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174
10175 #include <curl/curl.h>
10176 int
10177 main ()
10178 {
10179 CURL *curl = curl_easy_init();
10180 ;
10181 return 0;
10182 }
10183
10184 _ACEOF
10185 if ac_fn_c_try_link "$LINENO"; then :
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10187 $as_echo "yes" >&6; }
10188 else
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10193 as_fn_error $? "You asked for libcURL (remote includes) support, but it can't be found at $enable_curl
10194 See \`config.log' for more details" "$LINENO" 5; }
10195
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 LIBS="$LIBS_SAVEDA"
10200 CFLAGS="$CFLAGS_SAVEDA"
10201
10202 URL="url.o"
10203
10204
10205 fi
10206
10207 UNRLINCDIR="`pwd`/include"
10208
10209 if test "$ac_cv_werror" = "yes" ; then
10210 CFLAGS="$CFLAGS -Werror"
10211 fi
10212
10213 if test "$ac_cv_asan" = "yes" ; then
10214 CFLAGS="$CFLAGS -O0 -fno-inline -fsanitize=address -fno-omit-frame-pointer -DNOCLOSEFD"
10215 IRCDLIBS="-fsanitize=address $IRCDLIBS"
10216 fi
10217
10218
10219
10220
10221
10222 ac_config_files="$ac_config_files Makefile src/Makefile src/modules/Makefile src/modules/chanmodes/Makefile src/modules/usermodes/Makefile src/modules/snomasks/Makefile src/modules/extbans/Makefile src/modules/cap/Makefile src/modules/third/Makefile unrealircd"
10223
10224 cat >confcache <<\_ACEOF
10225 # This file is a shell script that caches the results of configure
10226 # tests run on this system so they can be shared between configure
10227 # scripts and configure runs, see configure's option --config-cache.
10228 # It is not useful on other systems. If it contains results you don't
10229 # want to keep, you may remove or edit it.
10230 #
10231 # config.status only pays attention to the cache file if you give it
10232 # the --recheck option to rerun configure.
10233 #
10234 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10235 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10236 # following values.
10237
10238 _ACEOF
10239
10240 # The following way of writing the cache mishandles newlines in values,
10241 # but we know of no workaround that is simple, portable, and efficient.
10242 # So, we kill variables containing newlines.
10243 # Ultrix sh set writes to stderr and can't be redirected directly,
10244 # and sets the high bit in the cache file unless we assign to the vars.
10245 (
10246 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10247 eval ac_val=\$$ac_var
10248 case $ac_val in #(
10249 *${as_nl}*)
10250 case $ac_var in #(
10251 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10252 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10253 esac
10254 case $ac_var in #(
10255 _ | IFS | as_nl) ;; #(
10256 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10257 *) { eval $ac_var=; unset $ac_var;} ;;
10258 esac ;;
10259 esac
10260 done
10261
10262 (set) 2>&1 |
10263 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10264 *${as_nl}ac_space=\ *)
10265 # `set' does not quote correctly, so add quotes: double-quote
10266 # substitution turns \\\\ into \\, and sed turns \\ into \.
10267 sed -n \
10268 "s/'/'\\\\''/g;
10269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10270 ;; #(
10271 *)
10272 # `set' quotes correctly as required by POSIX, so do not add quotes.
10273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10274 ;;
10275 esac |
10276 sort
10277 ) |
10278 sed '
10279 /^ac_cv_env_/b end
10280 t clear
10281 :clear
10282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10283 t end
10284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10285 :end' >>confcache
10286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10287 if test -w "$cache_file"; then
10288 if test "x$cache_file" != "x/dev/null"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10290 $as_echo "$as_me: updating cache $cache_file" >&6;}
10291 if test ! -f "$cache_file" || test -h "$cache_file"; then
10292 cat confcache >"$cache_file"
10293 else
10294 case $cache_file in #(
10295 */* | ?:*)
10296 mv -f confcache "$cache_file"$$ &&
10297 mv -f "$cache_file"$$ "$cache_file" ;; #(
10298 *)
10299 mv -f confcache "$cache_file" ;;
10300 esac
10301 fi
10302 fi
10303 else
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10305 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10306 fi
10307 fi
10308 rm -f confcache
10309
10310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10311 # Let make expand exec_prefix.
10312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10313
10314 DEFS=-DHAVE_CONFIG_H
10315
10316 ac_libobjs=
10317 ac_ltlibobjs=
10318 U=
10319 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10320 # 1. Remove the extension, and $U if already installed.
10321 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10322 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10323 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10324 # will be set to the directory where LIBOBJS objects are built.
10325 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10326 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10327 done
10328 LIBOBJS=$ac_libobjs
10329
10330 LTLIBOBJS=$ac_ltlibobjs
10331
10332
10333
10334 : "${CONFIG_STATUS=./config.status}"
10335 ac_write_fail=0
10336 ac_clean_files_save=$ac_clean_files
10337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10340 as_write_fail=0
10341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10342 #! $SHELL
10343 # Generated by $as_me.
10344 # Run this file to recreate the current configuration.
10345 # Compiler output produced by configure, useful for debugging
10346 # configure, is in config.log if it exists.
10347
10348 debug=false
10349 ac_cs_recheck=false
10350 ac_cs_silent=false
10351
10352 SHELL=\${CONFIG_SHELL-$SHELL}
10353 export SHELL
10354 _ASEOF
10355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10356 ## -------------------- ##
10357 ## M4sh Initialization. ##
10358 ## -------------------- ##
10359
10360 # Be more Bourne compatible
10361 DUALCASE=1; export DUALCASE # for MKS sh
10362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10363 emulate sh
10364 NULLCMD=:
10365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10366 # is contrary to our usage. Disable this feature.
10367 alias -g '${1+"$@"}'='"$@"'
10368 setopt NO_GLOB_SUBST
10369 else
10370 case `(set -o) 2>/dev/null` in #(
10371 *posix*) :
10372 set -o posix ;; #(
10373 *) :
10374 ;;
10375 esac
10376 fi
10377
10378
10379 as_nl='
10380 '
10381 export as_nl
10382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10386 # Prefer a ksh shell builtin over an external printf program on Solaris,
10387 # but without wasting forks for bash or zsh.
10388 if test -z "$BASH_VERSION$ZSH_VERSION" \
10389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10390 as_echo='print -r --'
10391 as_echo_n='print -rn --'
10392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10393 as_echo='printf %s\n'
10394 as_echo_n='printf %s'
10395 else
10396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10398 as_echo_n='/usr/ucb/echo -n'
10399 else
10400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10401 as_echo_n_body='eval
10402 arg=$1;
10403 case $arg in #(
10404 *"$as_nl"*)
10405 expr "X$arg" : "X\\(.*\\)$as_nl";
10406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10407 esac;
10408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10409 '
10410 export as_echo_n_body
10411 as_echo_n='sh -c $as_echo_n_body as_echo'
10412 fi
10413 export as_echo_body
10414 as_echo='sh -c $as_echo_body as_echo'
10415 fi
10416
10417 # The user is always right.
10418 if test "${PATH_SEPARATOR+set}" != set; then
10419 PATH_SEPARATOR=:
10420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10422 PATH_SEPARATOR=';'
10423 }
10424 fi
10425
10426
10427 # IFS
10428 # We need space, tab and new line, in precisely that order. Quoting is
10429 # there to prevent editors from complaining about space-tab.
10430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10431 # splitting by setting IFS to empty value.)
10432 IFS=" "" $as_nl"
10433
10434 # Find who we are. Look in the path if we contain no directory separator.
10435 as_myself=
10436 case $0 in #((
10437 *[\\/]* ) as_myself=$0 ;;
10438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10440 do
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10444 done
10445 IFS=$as_save_IFS
10446
10447 ;;
10448 esac
10449 # We did not find ourselves, most probably we were run as `sh COMMAND'
10450 # in which case we are not to be found in the path.
10451 if test "x$as_myself" = x; then
10452 as_myself=$0
10453 fi
10454 if test ! -f "$as_myself"; then
10455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10456 exit 1
10457 fi
10458
10459 # Unset variables that we do not need and which cause bugs (e.g. in
10460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10461 # suppresses any "Segmentation fault" message there. '((' could
10462 # trigger a bug in pdksh 5.2.14.
10463 for as_var in BASH_ENV ENV MAIL MAILPATH
10464 do eval test x\${$as_var+set} = xset \
10465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10466 done
10467 PS1='$ '
10468 PS2='> '
10469 PS4='+ '
10470
10471 # NLS nuisances.
10472 LC_ALL=C
10473 export LC_ALL
10474 LANGUAGE=C
10475 export LANGUAGE
10476
10477 # CDPATH.
10478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10479
10480
10481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10482 # ----------------------------------------
10483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10485 # script with STATUS, using 1 if that was 0.
10486 as_fn_error ()
10487 {
10488 as_status=$1; test $as_status -eq 0 && as_status=1
10489 if test "$4"; then
10490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10492 fi
10493 $as_echo "$as_me: error: $2" >&2
10494 as_fn_exit $as_status
10495 } # as_fn_error
10496
10497
10498 # as_fn_set_status STATUS
10499 # -----------------------
10500 # Set $? to STATUS, without forking.
10501 as_fn_set_status ()
10502 {
10503 return $1
10504 } # as_fn_set_status
10505
10506 # as_fn_exit STATUS
10507 # -----------------
10508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10509 as_fn_exit ()
10510 {
10511 set +e
10512 as_fn_set_status $1
10513 exit $1
10514 } # as_fn_exit
10515
10516 # as_fn_unset VAR
10517 # ---------------
10518 # Portably unset VAR.
10519 as_fn_unset ()
10520 {
10521 { eval $1=; unset $1;}
10522 }
10523 as_unset=as_fn_unset
10524 # as_fn_append VAR VALUE
10525 # ----------------------
10526 # Append the text in VALUE to the end of the definition contained in VAR. Take
10527 # advantage of any shell optimizations that allow amortized linear growth over
10528 # repeated appends, instead of the typical quadratic growth present in naive
10529 # implementations.
10530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10531 eval 'as_fn_append ()
10532 {
10533 eval $1+=\$2
10534 }'
10535 else
10536 as_fn_append ()
10537 {
10538 eval $1=\$$1\$2
10539 }
10540 fi # as_fn_append
10541
10542 # as_fn_arith ARG...
10543 # ------------------
10544 # Perform arithmetic evaluation on the ARGs, and store the result in the
10545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10546 # must be portable across $(()) and expr.
10547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10548 eval 'as_fn_arith ()
10549 {
10550 as_val=$(( $* ))
10551 }'
10552 else
10553 as_fn_arith ()
10554 {
10555 as_val=`expr "$@" || test $? -eq 1`
10556 }
10557 fi # as_fn_arith
10558
10559
10560 if expr a : '\(a\)' >/dev/null 2>&1 &&
10561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10562 as_expr=expr
10563 else
10564 as_expr=false
10565 fi
10566
10567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10568 as_basename=basename
10569 else
10570 as_basename=false
10571 fi
10572
10573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10574 as_dirname=dirname
10575 else
10576 as_dirname=false
10577 fi
10578
10579 as_me=`$as_basename -- "$0" ||
10580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10581 X"$0" : 'X\(//\)$' \| \
10582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10583 $as_echo X/"$0" |
10584 sed '/^.*\/\([^/][^/]*\)\/*$/{
10585 s//\1/
10586 q
10587 }
10588 /^X\/\(\/\/\)$/{
10589 s//\1/
10590 q
10591 }
10592 /^X\/\(\/\).*/{
10593 s//\1/
10594 q
10595 }
10596 s/.*/./; q'`
10597
10598 # Avoid depending upon Character Ranges.
10599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10602 as_cr_digits='0123456789'
10603 as_cr_alnum=$as_cr_Letters$as_cr_digits
10604
10605 ECHO_C= ECHO_N= ECHO_T=
10606 case `echo -n x` in #(((((
10607 -n*)
10608 case `echo 'xy\c'` in
10609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10610 xy) ECHO_C='\c';;
10611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10612 ECHO_T=' ';;
10613 esac;;
10614 *)
10615 ECHO_N='-n';;
10616 esac
10617
10618 rm -f conf$$ conf$$.exe conf$$.file
10619 if test -d conf$$.dir; then
10620 rm -f conf$$.dir/conf$$.file
10621 else
10622 rm -f conf$$.dir
10623 mkdir conf$$.dir 2>/dev/null
10624 fi
10625 if (echo >conf$$.file) 2>/dev/null; then
10626 if ln -s conf$$.file conf$$ 2>/dev/null; then
10627 as_ln_s='ln -s'
10628 # ... but there are two gotchas:
10629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10631 # In both cases, we have to default to `cp -pR'.
10632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10633 as_ln_s='cp -pR'
10634 elif ln conf$$.file conf$$ 2>/dev/null; then
10635 as_ln_s=ln
10636 else
10637 as_ln_s='cp -pR'
10638 fi
10639 else
10640 as_ln_s='cp -pR'
10641 fi
10642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10643 rmdir conf$$.dir 2>/dev/null
10644
10645
10646 # as_fn_mkdir_p
10647 # -------------
10648 # Create "$as_dir" as a directory, including parents if necessary.
10649 as_fn_mkdir_p ()
10650 {
10651
10652 case $as_dir in #(
10653 -*) as_dir=./$as_dir;;
10654 esac
10655 test -d "$as_dir" || eval $as_mkdir_p || {
10656 as_dirs=
10657 while :; do
10658 case $as_dir in #(
10659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10660 *) as_qdir=$as_dir;;
10661 esac
10662 as_dirs="'$as_qdir' $as_dirs"
10663 as_dir=`$as_dirname -- "$as_dir" ||
10664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10665 X"$as_dir" : 'X\(//\)[^/]' \| \
10666 X"$as_dir" : 'X\(//\)$' \| \
10667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10668 $as_echo X"$as_dir" |
10669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10670 s//\1/
10671 q
10672 }
10673 /^X\(\/\/\)[^/].*/{
10674 s//\1/
10675 q
10676 }
10677 /^X\(\/\/\)$/{
10678 s//\1/
10679 q
10680 }
10681 /^X\(\/\).*/{
10682 s//\1/
10683 q
10684 }
10685 s/.*/./; q'`
10686 test -d "$as_dir" && break
10687 done
10688 test -z "$as_dirs" || eval "mkdir $as_dirs"
10689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10690
10691
10692 } # as_fn_mkdir_p
10693 if mkdir -p . 2>/dev/null; then
10694 as_mkdir_p='mkdir -p "$as_dir"'
10695 else
10696 test -d ./-p && rmdir ./-p
10697 as_mkdir_p=false
10698 fi
10699
10700
10701 # as_fn_executable_p FILE
10702 # -----------------------
10703 # Test if FILE is an executable regular file.
10704 as_fn_executable_p ()
10705 {
10706 test -f "$1" && test -x "$1"
10707 } # as_fn_executable_p
10708 as_test_x='test -x'
10709 as_executable_p=as_fn_executable_p
10710
10711 # Sed expression to map a string onto a valid CPP name.
10712 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10713
10714 # Sed expression to map a string onto a valid variable name.
10715 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10716
10717
10718 exec 6>&1
10719 ## ----------------------------------- ##
10720 ## Main body of $CONFIG_STATUS script. ##
10721 ## ----------------------------------- ##
10722 _ASEOF
10723 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10724
10725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10726 # Save the log message, to keep $0 and so on meaningful, and to
10727 # report actual input values of CONFIG_FILES etc. instead of their
10728 # values after options handling.
10729 ac_log="
10730 This file was extended by unrealircd $as_me 4.2.4.1, which was
10731 generated by GNU Autoconf 2.69. Invocation command line was
10732
10733 CONFIG_FILES = $CONFIG_FILES
10734 CONFIG_HEADERS = $CONFIG_HEADERS
10735 CONFIG_LINKS = $CONFIG_LINKS
10736 CONFIG_COMMANDS = $CONFIG_COMMANDS
10737 $ $0 $@
10738
10739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10740 "
10741
10742 _ACEOF
10743
10744 case $ac_config_files in *"
10745 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10746 esac
10747
10748 case $ac_config_headers in *"
10749 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10750 esac
10751
10752
10753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10754 # Files that config.status was made for.
10755 config_files="$ac_config_files"
10756 config_headers="$ac_config_headers"
10757
10758 _ACEOF
10759
10760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10761 ac_cs_usage="\
10762 \`$as_me' instantiates files and other configuration actions
10763 from templates according to the current configuration. Unless the files
10764 and actions are specified as TAGs, all are instantiated by default.
10765
10766 Usage: $0 [OPTION]... [TAG]...
10767
10768 -h, --help print this help, then exit
10769 -V, --version print version number and configuration settings, then exit
10770 --config print configuration, then exit
10771 -q, --quiet, --silent
10772 do not print progress messages
10773 -d, --debug don't remove temporary files
10774 --recheck update $as_me by reconfiguring in the same conditions
10775 --file=FILE[:TEMPLATE]
10776 instantiate the configuration file FILE
10777 --header=FILE[:TEMPLATE]
10778 instantiate the configuration header FILE
10779
10780 Configuration files:
10781 $config_files
10782
10783 Configuration headers:
10784 $config_headers
10785
10786 Report bugs to <https://bugs.unrealircd.org/>.
10787 unrealircd home page: <https://unrealircd.org/>."
10788
10789 _ACEOF
10790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10791 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10792 ac_cs_version="\\
10793 unrealircd config.status 4.2.4.1
10794 configured by $0, generated by GNU Autoconf 2.69,
10795 with options \\"\$ac_cs_config\\"
10796
10797 Copyright (C) 2012 Free Software Foundation, Inc.
10798 This config.status script is free software; the Free Software Foundation
10799 gives unlimited permission to copy, distribute and modify it."
10800
10801 ac_pwd='$ac_pwd'
10802 srcdir='$srcdir'
10803 test -n "\$AWK" || AWK=awk
10804 _ACEOF
10805
10806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10807 # The default lists apply if the user does not specify any file.
10808 ac_need_defaults=:
10809 while test $# != 0
10810 do
10811 case $1 in
10812 --*=?*)
10813 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10815 ac_shift=:
10816 ;;
10817 --*=)
10818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10819 ac_optarg=
10820 ac_shift=:
10821 ;;
10822 *)
10823 ac_option=$1
10824 ac_optarg=$2
10825 ac_shift=shift
10826 ;;
10827 esac
10828
10829 case $ac_option in
10830 # Handling of the options.
10831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10832 ac_cs_recheck=: ;;
10833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10834 $as_echo "$ac_cs_version"; exit ;;
10835 --config | --confi | --conf | --con | --co | --c )
10836 $as_echo "$ac_cs_config"; exit ;;
10837 --debug | --debu | --deb | --de | --d | -d )
10838 debug=: ;;
10839 --file | --fil | --fi | --f )
10840 $ac_shift
10841 case $ac_optarg in
10842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10843 '') as_fn_error $? "missing file argument" ;;
10844 esac
10845 as_fn_append CONFIG_FILES " '$ac_optarg'"
10846 ac_need_defaults=false;;
10847 --header | --heade | --head | --hea )
10848 $ac_shift
10849 case $ac_optarg in
10850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10851 esac
10852 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10853 ac_need_defaults=false;;
10854 --he | --h)
10855 # Conflict between --help and --header
10856 as_fn_error $? "ambiguous option: \`$1'
10857 Try \`$0 --help' for more information.";;
10858 --help | --hel | -h )
10859 $as_echo "$ac_cs_usage"; exit ;;
10860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10862 ac_cs_silent=: ;;
10863
10864 # This is an error.
10865 -*) as_fn_error $? "unrecognized option: \`$1'
10866 Try \`$0 --help' for more information." ;;
10867
10868 *) as_fn_append ac_config_targets " $1"
10869 ac_need_defaults=false ;;
10870
10871 esac
10872 shift
10873 done
10874
10875 ac_configure_extra_args=
10876
10877 if $ac_cs_silent; then
10878 exec 6>/dev/null
10879 ac_configure_extra_args="$ac_configure_extra_args --silent"
10880 fi
10881
10882 _ACEOF
10883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10884 if \$ac_cs_recheck; then
10885 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10886 shift
10887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10888 CONFIG_SHELL='$SHELL'
10889 export CONFIG_SHELL
10890 exec "\$@"
10891 fi
10892
10893 _ACEOF
10894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10895 exec 5>>config.log
10896 {
10897 echo
10898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10899 ## Running $as_me. ##
10900 _ASBOX
10901 $as_echo "$ac_log"
10902 } >&5
10903
10904 _ACEOF
10905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10906 _ACEOF
10907
10908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10909
10910 # Handling of arguments.
10911 for ac_config_target in $ac_config_targets
10912 do
10913 case $ac_config_target in
10914 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10915 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10916 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10917 "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
10918 "src/modules/chanmodes/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/chanmodes/Makefile" ;;
10919 "src/modules/usermodes/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/usermodes/Makefile" ;;
10920 "src/modules/snomasks/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/snomasks/Makefile" ;;
10921 "src/modules/extbans/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/extbans/Makefile" ;;
10922 "src/modules/cap/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/cap/Makefile" ;;
10923 "src/modules/third/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/third/Makefile" ;;
10924 "unrealircd") CONFIG_FILES="$CONFIG_FILES unrealircd" ;;
10925
10926 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10927 esac
10928 done
10929
10930
10931 # If the user did not use the arguments to specify the items to instantiate,
10932 # then the envvar interface is used. Set only those that are not.
10933 # We use the long form for the default assignment because of an extremely
10934 # bizarre bug on SunOS 4.1.3.
10935 if $ac_need_defaults; then
10936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10938 fi
10939
10940 # Have a temporary directory for convenience. Make it in the build tree
10941 # simply because there is no reason against having it here, and in addition,
10942 # creating and moving files from /tmp can sometimes cause problems.
10943 # Hook for its removal unless debugging.
10944 # Note that there is a small window in which the directory will not be cleaned:
10945 # after its creation but before its name has been assigned to `$tmp'.
10946 $debug ||
10947 {
10948 tmp= ac_tmp=
10949 trap 'exit_status=$?
10950 : "${ac_tmp:=$tmp}"
10951 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10952 ' 0
10953 trap 'as_fn_exit 1' 1 2 13 15
10954 }
10955 # Create a (secure) tmp directory for tmp files.
10956
10957 {
10958 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10959 test -d "$tmp"
10960 } ||
10961 {
10962 tmp=./conf$$-$RANDOM
10963 (umask 077 && mkdir "$tmp")
10964 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10965 ac_tmp=$tmp
10966
10967 # Set up the scripts for CONFIG_FILES section.
10968 # No need to generate them if there are no CONFIG_FILES.
10969 # This happens for instance with `./config.status config.h'.
10970 if test -n "$CONFIG_FILES"; then
10971
10972
10973 ac_cr=`echo X | tr X '\015'`
10974 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10975 # But we know of no other shell where ac_cr would be empty at this
10976 # point, so we can use a bashism as a fallback.
10977 if test "x$ac_cr" = x; then
10978 eval ac_cr=\$\'\\r\'
10979 fi
10980 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10981 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10982 ac_cs_awk_cr='\\r'
10983 else
10984 ac_cs_awk_cr=$ac_cr
10985 fi
10986
10987 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10988 _ACEOF
10989
10990
10991 {
10992 echo "cat >conf$$subs.awk <<_ACEOF" &&
10993 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10994 echo "_ACEOF"
10995 } >conf$$subs.sh ||
10996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10997 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10998 ac_delim='%!_!# '
10999 for ac_last_try in false false false false false :; do
11000 . ./conf$$subs.sh ||
11001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11002
11003 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11004 if test $ac_delim_n = $ac_delim_num; then
11005 break
11006 elif $ac_last_try; then
11007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11008 else
11009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11010 fi
11011 done
11012 rm -f conf$$subs.sh
11013
11014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11015 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11016 _ACEOF
11017 sed -n '
11018 h
11019 s/^/S["/; s/!.*/"]=/
11020 p
11021 g
11022 s/^[^!]*!//
11023 :repl
11024 t repl
11025 s/'"$ac_delim"'$//
11026 t delim
11027 :nl
11028 h
11029 s/\(.\{148\}\)..*/\1/
11030 t more1
11031 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11032 p
11033 n
11034 b repl
11035 :more1
11036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11037 p
11038 g
11039 s/.\{148\}//
11040 t nl
11041 :delim
11042 h
11043 s/\(.\{148\}\)..*/\1/
11044 t more2
11045 s/["\\]/\\&/g; s/^/"/; s/$/"/
11046 p
11047 b
11048 :more2
11049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11050 p
11051 g
11052 s/.\{148\}//
11053 t delim
11054 ' <conf$$subs.awk | sed '
11055 /^[^""]/{
11056 N
11057 s/\n//
11058 }
11059 ' >>$CONFIG_STATUS || ac_write_fail=1
11060 rm -f conf$$subs.awk
11061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11062 _ACAWK
11063 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11064 for (key in S) S_is_set[key] = 1
11065 FS = "\a"
11066
11067 }
11068 {
11069 line = $ 0
11070 nfields = split(line, field, "@")
11071 substed = 0
11072 len = length(field[1])
11073 for (i = 2; i < nfields; i++) {
11074 key = field[i]
11075 keylen = length(key)
11076 if (S_is_set[key]) {
11077 value = S[key]
11078 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11079 len += length(value) + length(field[++i])
11080 substed = 1
11081 } else
11082 len += 1 + keylen
11083 }
11084
11085 print line
11086 }
11087
11088 _ACAWK
11089 _ACEOF
11090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11091 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11092 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11093 else
11094 cat
11095 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11096 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11097 _ACEOF
11098
11099 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11100 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11101 # trailing colons and then remove the whole line if VPATH becomes empty
11102 # (actually we leave an empty line to preserve line numbers).
11103 if test "x$srcdir" = x.; then
11104 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11105 h
11106 s///
11107 s/^/:/
11108 s/[ ]*$/:/
11109 s/:\$(srcdir):/:/g
11110 s/:\${srcdir}:/:/g
11111 s/:@srcdir@:/:/g
11112 s/^:*//
11113 s/:*$//
11114 x
11115 s/\(=[ ]*\).*/\1/
11116 G
11117 s/\n//
11118 s/^[^=]*=[ ]*$//
11119 }'
11120 fi
11121
11122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11123 fi # test -n "$CONFIG_FILES"
11124
11125 # Set up the scripts for CONFIG_HEADERS section.
11126 # No need to generate them if there are no CONFIG_HEADERS.
11127 # This happens for instance with `./config.status Makefile'.
11128 if test -n "$CONFIG_HEADERS"; then
11129 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11130 BEGIN {
11131 _ACEOF
11132
11133 # Transform confdefs.h into an awk script `defines.awk', embedded as
11134 # here-document in config.status, that substitutes the proper values into
11135 # config.h.in to produce config.h.
11136
11137 # Create a delimiter string that does not exist in confdefs.h, to ease
11138 # handling of long lines.
11139 ac_delim='%!_!# '
11140 for ac_last_try in false false :; do
11141 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11142 if test -z "$ac_tt"; then
11143 break
11144 elif $ac_last_try; then
11145 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11146 else
11147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11148 fi
11149 done
11150
11151 # For the awk script, D is an array of macro values keyed by name,
11152 # likewise P contains macro parameters if any. Preserve backslash
11153 # newline sequences.
11154
11155 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11156 sed -n '
11157 s/.\{148\}/&'"$ac_delim"'/g
11158 t rset
11159 :rset
11160 s/^[ ]*#[ ]*define[ ][ ]*/ /
11161 t def
11162 d
11163 :def
11164 s/\\$//
11165 t bsnl
11166 s/["\\]/\\&/g
11167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11168 D["\1"]=" \3"/p
11169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11170 d
11171 :bsnl
11172 s/["\\]/\\&/g
11173 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11174 D["\1"]=" \3\\\\\\n"\\/p
11175 t cont
11176 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11177 t cont
11178 d
11179 :cont
11180 n
11181 s/.\{148\}/&'"$ac_delim"'/g
11182 t clear
11183 :clear
11184 s/\\$//
11185 t bsnlc
11186 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11187 d
11188 :bsnlc
11189 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11190 b cont
11191 ' <confdefs.h | sed '
11192 s/'"$ac_delim"'/"\\\
11193 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11194
11195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11196 for (key in D) D_is_set[key] = 1
11197 FS = "\a"
11198 }
11199 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11200 line = \$ 0
11201 split(line, arg, " ")
11202 if (arg[1] == "#") {
11203 defundef = arg[2]
11204 mac1 = arg[3]
11205 } else {
11206 defundef = substr(arg[1], 2)
11207 mac1 = arg[2]
11208 }
11209 split(mac1, mac2, "(") #)
11210 macro = mac2[1]
11211 prefix = substr(line, 1, index(line, defundef) - 1)
11212 if (D_is_set[macro]) {
11213 # Preserve the white space surrounding the "#".
11214 print prefix "define", macro P[macro] D[macro]
11215 next
11216 } else {
11217 # Replace #undef with comments. This is necessary, for example,
11218 # in the case of _POSIX_SOURCE, which is predefined and required
11219 # on some systems where configure will not decide to define it.
11220 if (defundef == "undef") {
11221 print "/*", prefix defundef, macro, "*/"
11222 next
11223 }
11224 }
11225 }
11226 { print }
11227 _ACAWK
11228 _ACEOF
11229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11230 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11231 fi # test -n "$CONFIG_HEADERS"
11232
11233
11234 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11235 shift
11236 for ac_tag
11237 do
11238 case $ac_tag in
11239 :[FHLC]) ac_mode=$ac_tag; continue;;
11240 esac
11241 case $ac_mode$ac_tag in
11242 :[FHL]*:*);;
11243 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11244 :[FH]-) ac_tag=-:-;;
11245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11246 esac
11247 ac_save_IFS=$IFS
11248 IFS=:
11249 set x $ac_tag
11250 IFS=$ac_save_IFS
11251 shift
11252 ac_file=$1
11253 shift
11254
11255 case $ac_mode in
11256 :L) ac_source=$1;;
11257 :[FH])
11258 ac_file_inputs=
11259 for ac_f
11260 do
11261 case $ac_f in
11262 -) ac_f="$ac_tmp/stdin";;
11263 *) # Look for the file first in the build tree, then in the source tree
11264 # (if the path is not absolute). The absolute path cannot be DOS-style,
11265 # because $ac_f cannot contain `:'.
11266 test -f "$ac_f" ||
11267 case $ac_f in
11268 [\\/$]*) false;;
11269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11270 esac ||
11271 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11272 esac
11273 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11274 as_fn_append ac_file_inputs " '$ac_f'"
11275 done
11276
11277 # Let's still pretend it is `configure' which instantiates (i.e., don't
11278 # use $as_me), people would be surprised to read:
11279 # /* config.h. Generated by config.status. */
11280 configure_input='Generated from '`
11281 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11282 `' by configure.'
11283 if test x"$ac_file" != x-; then
11284 configure_input="$ac_file. $configure_input"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11286 $as_echo "$as_me: creating $ac_file" >&6;}
11287 fi
11288 # Neutralize special characters interpreted by sed in replacement strings.
11289 case $configure_input in #(
11290 *\&* | *\|* | *\\* )
11291 ac_sed_conf_input=`$as_echo "$configure_input" |
11292 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11293 *) ac_sed_conf_input=$configure_input;;
11294 esac
11295
11296 case $ac_tag in
11297 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11299 esac
11300 ;;
11301 esac
11302
11303 ac_dir=`$as_dirname -- "$ac_file" ||
11304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11305 X"$ac_file" : 'X\(//\)[^/]' \| \
11306 X"$ac_file" : 'X\(//\)$' \| \
11307 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11308 $as_echo X"$ac_file" |
11309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11310 s//\1/
11311 q
11312 }
11313 /^X\(\/\/\)[^/].*/{
11314 s//\1/
11315 q
11316 }
11317 /^X\(\/\/\)$/{
11318 s//\1/
11319 q
11320 }
11321 /^X\(\/\).*/{
11322 s//\1/
11323 q
11324 }
11325 s/.*/./; q'`
11326 as_dir="$ac_dir"; as_fn_mkdir_p
11327 ac_builddir=.
11328
11329 case "$ac_dir" in
11330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11331 *)
11332 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11333 # A ".." for each directory in $ac_dir_suffix.
11334 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11335 case $ac_top_builddir_sub in
11336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11338 esac ;;
11339 esac
11340 ac_abs_top_builddir=$ac_pwd
11341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11342 # for backward compatibility:
11343 ac_top_builddir=$ac_top_build_prefix
11344
11345 case $srcdir in
11346 .) # We are building in place.
11347 ac_srcdir=.
11348 ac_top_srcdir=$ac_top_builddir_sub
11349 ac_abs_top_srcdir=$ac_pwd ;;
11350 [\\/]* | ?:[\\/]* ) # Absolute name.
11351 ac_srcdir=$srcdir$ac_dir_suffix;
11352 ac_top_srcdir=$srcdir
11353 ac_abs_top_srcdir=$srcdir ;;
11354 *) # Relative name.
11355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11356 ac_top_srcdir=$ac_top_build_prefix$srcdir
11357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11358 esac
11359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11360
11361
11362 case $ac_mode in
11363 :F)
11364 #
11365 # CONFIG_FILE
11366 #
11367
11368 _ACEOF
11369
11370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11371 # If the template does not know about datarootdir, expand it.
11372 # FIXME: This hack should be removed a few years after 2.60.
11373 ac_datarootdir_hack=; ac_datarootdir_seen=
11374 ac_sed_dataroot='
11375 /datarootdir/ {
11376 p
11377 q
11378 }
11379 /@datadir@/p
11380 /@docdir@/p
11381 /@infodir@/p
11382 /@localedir@/p
11383 /@mandir@/p'
11384 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11385 *datarootdir*) ac_datarootdir_seen=yes;;
11386 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11388 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11389 _ACEOF
11390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11391 ac_datarootdir_hack='
11392 s&@datadir@&$datadir&g
11393 s&@docdir@&$docdir&g
11394 s&@infodir@&$infodir&g
11395 s&@localedir@&$localedir&g
11396 s&@mandir@&$mandir&g
11397 s&\\\${datarootdir}&$datarootdir&g' ;;
11398 esac
11399 _ACEOF
11400
11401 # Neutralize VPATH when `$srcdir' = `.'.
11402 # Shell code in configure.ac might set extrasub.
11403 # FIXME: do we really want to maintain this feature?
11404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11405 ac_sed_extra="$ac_vpsub
11406 $extrasub
11407 _ACEOF
11408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11409 :t
11410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11411 s|@configure_input@|$ac_sed_conf_input|;t t
11412 s&@top_builddir@&$ac_top_builddir_sub&;t t
11413 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11414 s&@srcdir@&$ac_srcdir&;t t
11415 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11416 s&@top_srcdir@&$ac_top_srcdir&;t t
11417 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11418 s&@builddir@&$ac_builddir&;t t
11419 s&@abs_builddir@&$ac_abs_builddir&;t t
11420 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11421 $ac_datarootdir_hack
11422 "
11423 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11424 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11425
11426 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11427 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11428 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11429 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11431 which seems to be undefined. Please make sure it is defined" >&5
11432 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11433 which seems to be undefined. Please make sure it is defined" >&2;}
11434
11435 rm -f "$ac_tmp/stdin"
11436 case $ac_file in
11437 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11438 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11439 esac \
11440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11441 ;;
11442 :H)
11443 #
11444 # CONFIG_HEADER
11445 #
11446 if test x"$ac_file" != x-; then
11447 {
11448 $as_echo "/* $configure_input */" \
11449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11450 } >"$ac_tmp/config.h" \
11451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11452 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11454 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11455 else
11456 rm -f "$ac_file"
11457 mv "$ac_tmp/config.h" "$ac_file" \
11458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11459 fi
11460 else
11461 $as_echo "/* $configure_input */" \
11462 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11463 || as_fn_error $? "could not create -" "$LINENO" 5
11464 fi
11465 ;;
11466
11467
11468 esac
11469
11470 done # for ac_tag
11471
11472
11473 as_fn_exit 0
11474 _ACEOF
11475 ac_clean_files=$ac_clean_files_save
11476
11477 test $ac_write_fail = 0 ||
11478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11479
11480
11481 # configure is writing to config.log, and then calls config.status.
11482 # config.status does its own redirection, appending to config.log.
11483 # Unfortunately, on DOS this fails, as config.log is still kept open
11484 # by configure, so config.status won't be able to write to it; its
11485 # output is simply discarded. So we exec the FD to /dev/null,
11486 # effectively closing config.log, so it can be properly (re)opened and
11487 # appended to by config.status. When coming back to configure, we
11488 # need to make the FD available again.
11489 if test "$no_create" != yes; then
11490 ac_cs_success=:
11491 ac_config_status_args=
11492 test "$silent" = yes &&
11493 ac_config_status_args="$ac_config_status_args --quiet"
11494 exec 5>/dev/null
11495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11496 exec 5>>config.log
11497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11498 # would make configure fail if this is the last instruction.
11499 $ac_cs_success || as_fn_exit 1
11500 fi
11501 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11503 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11504 fi
11505
11506 chmod 0700 unrealircd