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