Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for pam_radius $Id$.
4 #
5 # Report bugs to <https://github.com/FreeRADIUS/pam_radius/issues>.
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 [email protected] and
271 $0: https://github.com/FreeRADIUS/pam_radius/issues about
272 $0: your system, including any error possibly output before
273 $0: this message. Then install a modern shell, or manually
274 $0: run 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='pam_radius'
613 PACKAGE_TARNAME='pam_radius'
614 PACKAGE_VERSION='$Id$'
615 PACKAGE_STRING='pam_radius $Id$'
616 PACKAGE_BUGREPORT='https://github.com/FreeRADIUS/pam_radius/issues'
617 PACKAGE_URL='http://www.freeradius.org'
618
619 ac_unique_file="src/pam_radius_auth.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 HOSTINFO
655 clang_path
656 RANLIB
657 EGREP
658 GREP
659 CPP
660 ac_ct_CXX
661 CXXFLAGS
662 CXX
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
669 CC
670 target_os
671 target_vendor
672 target_cpu
673 target
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 PAM_RADIUS_VERSION_STRING
683 GIT
684 target_alias
685 host_alias
686 build_alias
687 LIBS
688 ECHO_T
689 ECHO_N
690 ECHO_C
691 DEFS
692 mandir
693 localedir
694 libdir
695 psdir
696 pdfdir
697 dvidir
698 htmldir
699 infodir
700 docdir
701 oldincludedir
702 includedir
703 runstatedir
704 localstatedir
705 sharedstatedir
706 sysconfdir
707 datadir
708 datarootdir
709 libexecdir
710 sbindir
711 bindir
712 program_transform_name
713 prefix
714 exec_prefix
715 PACKAGE_URL
716 PACKAGE_BUGREPORT
717 PACKAGE_STRING
718 PACKAGE_VERSION
719 PACKAGE_TARNAME
720 PACKAGE_NAME
721 PATH_SEPARATOR
722 SHELL'
723 ac_subst_files=''
724 ac_user_opts='
725 enable_option_checking
726 enable_developer
727 enable_address_sanitizer
728 enable_leak_sanitizer
729 enable_undefined_behaviour_sanitizer
730 enable_werror
731 '
732 ac_precious_vars='build_alias
733 host_alias
734 target_alias
735 CC
736 CFLAGS
737 LDFLAGS
738 LIBS
739 CPPFLAGS
740 CXX
741 CXXFLAGS
742 CCC
743 CPP'
744
745
746 # Initialize some variables set by options.
747 ac_init_help=
748 ac_init_version=false
749 ac_unrecognized_opts=
750 ac_unrecognized_sep=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
767
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 runstatedir='${localstatedir}/run'
783 includedir='${prefix}/include'
784 oldincludedir='/usr/include'
785 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir='${datarootdir}/info'
787 htmldir='${docdir}'
788 dvidir='${docdir}'
789 pdfdir='${docdir}'
790 psdir='${docdir}'
791 libdir='${exec_prefix}/lib'
792 localedir='${datarootdir}/locale'
793 mandir='${datarootdir}/man'
794
795 ac_prev=
796 ac_dashdash=
797 for ac_option
798 do
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\$ac_option
802 ac_prev=
803 continue
804 fi
805
806 case $ac_option in
807 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808 *=) ac_optarg= ;;
809 *) ac_optarg=yes ;;
810 esac
811
812 case $ac_dashdash$ac_option in
813 --)
814 ac_dashdash=yes ;;
815
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
820
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
825
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
832
833 --config-cache | -C)
834 cache_file=config.cache ;;
835
836 -datadir | --datadir | --datadi | --datad)
837 ac_prev=datadir ;;
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
840
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
847
848 -disable-* | --disable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: \`$ac_useropt'"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857 "enable_$ac_useropt"
858 "*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=no ;;
863
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
868
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
873
874 -enable-* | --enable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: \`$ac_useropt'"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=\$ac_optarg ;;
889
890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892 | --exec | --exe | --ex)
893 ac_prev=exec_prefix ;;
894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896 | --exec=* | --exe=* | --ex=*)
897 exec_prefix=$ac_optarg ;;
898
899 -gas | --gas | --ga | --g)
900 # Obsolete; use --with-gas.
901 with_gas=yes ;;
902
903 -help | --help | --hel | --he | -h)
904 ac_init_help=long ;;
905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906 ac_init_help=recursive ;;
907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908 ac_init_help=short ;;
909
910 -host | --host | --hos | --ho)
911 ac_prev=host_alias ;;
912 -host=* | --host=* | --hos=* | --ho=*)
913 host_alias=$ac_optarg ;;
914
915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916 ac_prev=htmldir ;;
917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918 | --ht=*)
919 htmldir=$ac_optarg ;;
920
921 -includedir | --includedir | --includedi | --included | --include \
922 | --includ | --inclu | --incl | --inc)
923 ac_prev=includedir ;;
924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925 | --includ=* | --inclu=* | --incl=* | --inc=*)
926 includedir=$ac_optarg ;;
927
928 -infodir | --infodir | --infodi | --infod | --info | --inf)
929 ac_prev=infodir ;;
930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931 infodir=$ac_optarg ;;
932
933 -libdir | --libdir | --libdi | --libd)
934 ac_prev=libdir ;;
935 -libdir=* | --libdir=* | --libdi=* | --libd=*)
936 libdir=$ac_optarg ;;
937
938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939 | --libexe | --libex | --libe)
940 ac_prev=libexecdir ;;
941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942 | --libexe=* | --libex=* | --libe=*)
943 libexecdir=$ac_optarg ;;
944
945 -localedir | --localedir | --localedi | --localed | --locale)
946 ac_prev=localedir ;;
947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948 localedir=$ac_optarg ;;
949
950 -localstatedir | --localstatedir | --localstatedi | --localstated \
951 | --localstate | --localstat | --localsta | --localst | --locals)
952 ac_prev=localstatedir ;;
953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955 localstatedir=$ac_optarg ;;
956
957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958 ac_prev=mandir ;;
959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960 mandir=$ac_optarg ;;
961
962 -nfp | --nfp | --nf)
963 # Obsolete; use --without-fp.
964 with_fp=no ;;
965
966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 | --no-cr | --no-c | -n)
968 no_create=yes ;;
969
970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972 no_recursion=yes ;;
973
974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976 | --oldin | --oldi | --old | --ol | --o)
977 ac_prev=oldincludedir ;;
978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981 oldincludedir=$ac_optarg ;;
982
983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984 ac_prev=prefix ;;
985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986 prefix=$ac_optarg ;;
987
988 -program-prefix | --program-prefix | --program-prefi | --program-pref \
989 | --program-pre | --program-pr | --program-p)
990 ac_prev=program_prefix ;;
991 -program-prefix=* | --program-prefix=* | --program-prefi=* \
992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993 program_prefix=$ac_optarg ;;
994
995 -program-suffix | --program-suffix | --program-suffi | --program-suff \
996 | --program-suf | --program-su | --program-s)
997 ac_prev=program_suffix ;;
998 -program-suffix=* | --program-suffix=* | --program-suffi=* \
999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000 program_suffix=$ac_optarg ;;
1001
1002 -program-transform-name | --program-transform-name \
1003 | --program-transform-nam | --program-transform-na \
1004 | --program-transform-n | --program-transform- \
1005 | --program-transform | --program-transfor \
1006 | --program-transfo | --program-transf \
1007 | --program-trans | --program-tran \
1008 | --progr-tra | --program-tr | --program-t)
1009 ac_prev=program_transform_name ;;
1010 -program-transform-name=* | --program-transform-name=* \
1011 | --program-transform-nam=* | --program-transform-na=* \
1012 | --program-transform-n=* | --program-transform-=* \
1013 | --program-transform=* | --program-transfor=* \
1014 | --program-transfo=* | --program-transf=* \
1015 | --program-trans=* | --program-tran=* \
1016 | --progr-tra=* | --program-tr=* | --program-t=*)
1017 program_transform_name=$ac_optarg ;;
1018
1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020 ac_prev=pdfdir ;;
1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022 pdfdir=$ac_optarg ;;
1023
1024 -psdir | --psdir | --psdi | --psd | --ps)
1025 ac_prev=psdir ;;
1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027 psdir=$ac_optarg ;;
1028
1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030 | -silent | --silent | --silen | --sile | --sil)
1031 silent=yes ;;
1032
1033 -runstatedir | --runstatedir | --runstatedi | --runstated \
1034 | --runstate | --runstat | --runsta | --runst | --runs \
1035 | --run | --ru | --r)
1036 ac_prev=runstatedir ;;
1037 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1038 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1039 | --run=* | --ru=* | --r=*)
1040 runstatedir=$ac_optarg ;;
1041
1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043 ac_prev=sbindir ;;
1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045 | --sbi=* | --sb=*)
1046 sbindir=$ac_optarg ;;
1047
1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050 | --sharedst | --shareds | --shared | --share | --shar \
1051 | --sha | --sh)
1052 ac_prev=sharedstatedir ;;
1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056 | --sha=* | --sh=*)
1057 sharedstatedir=$ac_optarg ;;
1058
1059 -site | --site | --sit)
1060 ac_prev=site ;;
1061 -site=* | --site=* | --sit=*)
1062 site=$ac_optarg ;;
1063
1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065 ac_prev=srcdir ;;
1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067 srcdir=$ac_optarg ;;
1068
1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070 | --syscon | --sysco | --sysc | --sys | --sy)
1071 ac_prev=sysconfdir ;;
1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074 sysconfdir=$ac_optarg ;;
1075
1076 -target | --target | --targe | --targ | --tar | --ta | --t)
1077 ac_prev=target_alias ;;
1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079 target_alias=$ac_optarg ;;
1080
1081 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082 verbose=yes ;;
1083
1084 -version | --version | --versio | --versi | --vers | -V)
1085 ac_init_version=: ;;
1086
1087 -with-* | --with-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: \`$ac_useropt'"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "with_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=\$ac_optarg ;;
1102
1103 -without-* | --without-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid package name: \`$ac_useropt'"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=no ;;
1118
1119 --x)
1120 # Obsolete; use --with-x.
1121 with_x=yes ;;
1122
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1129
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1136
1137 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information"
1139 ;;
1140
1141 *=*)
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 case $ac_envvar in #(
1145 '' | [0-9]* | *[!_$as_cr_alnum]* )
1146 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1147 esac
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1150
1151 *)
1152 # FIXME: should be removed in autoconf 3.0.
1153 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1157 ;;
1158
1159 esac
1160 done
1161
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 as_fn_error $? "missing argument to $ac_option"
1165 fi
1166
1167 if test -n "$ac_unrecognized_opts"; then
1168 case $enable_option_checking in
1169 no) ;;
1170 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1171 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172 esac
1173 fi
1174
1175 # Check all directory arguments for consistency.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir runstatedir
1180 do
1181 eval ac_val=\$$ac_var
1182 # Remove trailing slashes.
1183 case $ac_val in
1184 */ )
1185 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186 eval $ac_var=\$ac_val;;
1187 esac
1188 # Be sure to have absolute directory names.
1189 case $ac_val in
1190 [\\/$]* | ?:[\\/]* ) continue;;
1191 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192 esac
1193 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1194 done
1195
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1199 build=$build_alias
1200 host=$host_alias
1201 target=$target_alias
1202
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1209 fi
1210 fi
1211
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215 test "$silent" = yes && exec 6>/dev/null
1216
1217
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error $? "working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error $? "pwd does not report name of working directory"
1224
1225
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 printf "%s\n" X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\).*/{
1249 s//\1/
1250 q
1251 }
1252 s/.*/./; q'`
1253 srcdir=$ac_confdir
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 srcdir=..
1256 fi
1257 else
1258 ac_srcdir_defaulted=no
1259 fi
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263 fi
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1271 fi
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1284
1285 #
1286 # Report the --help message.
1287 #
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures pam_radius $Id$ to adapt to many kinds of systems.
1293
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1298
1299 Defaults for the options are specified in brackets.
1300
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking ...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1317
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1322
1323 For better control, use the options below.
1324
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/pam_radius]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1346 _ACEOF
1347
1348 cat <<\_ACEOF
1349
1350 System types:
1351 --build=BUILD configure for building on BUILD [guessed]
1352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 --target=TARGET configure for building compilers for TARGET [HOST]
1354 _ACEOF
1355 fi
1356
1357 if test -n "$ac_init_help"; then
1358 case $ac_init_help in
1359 short | recursive ) echo "Configuration of pam_radius $Id$:";;
1360 esac
1361 cat <<\_ACEOF
1362
1363 Optional Features:
1364 --disable-option-checking ignore unrecognized --enable/--with options
1365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1367 --enable-developer enables features of interest to developers.
1368 --enable-address-sanitizer
1369 build with support for address sanitizer.
1370 --enable-leak-sanitizer build with support for leak sanitizer.
1371 --enable-undefined-behaviour-sanitizer
1372 build with support for undefined behaviour
1373 sanitizer.
1374 --enable-werror causes the build to fail if any warnings are generated.
1375
1376 Some influential environment variables:
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1384 CXX C++ compiler command
1385 CXXFLAGS C++ compiler flags
1386 CPP C preprocessor
1387
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1390
1391 Report bugs to <https://github.com/FreeRADIUS/pam_radius/issues>.
1392 pam_radius home page: <http://www.freeradius.org>.
1393 _ACEOF
1394 ac_status=$?
1395 fi
1396
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" ||
1401 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1402 continue
1403 ac_builddir=.
1404
1405 case "$ac_dir" in
1406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 *)
1408 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;;
1415 esac
1416 ac_abs_top_builddir=$ac_pwd
1417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418 # for backward compatibility:
1419 ac_top_builddir=$ac_top_build_prefix
1420
1421 case $srcdir in
1422 .) # We are building in place.
1423 ac_srcdir=.
1424 ac_top_srcdir=$ac_top_builddir_sub
1425 ac_abs_top_srcdir=$ac_pwd ;;
1426 [\\/]* | ?:[\\/]* ) # Absolute name.
1427 ac_srcdir=$srcdir$ac_dir_suffix;
1428 ac_top_srcdir=$srcdir
1429 ac_abs_top_srcdir=$srcdir ;;
1430 *) # Relative name.
1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 esac
1435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436
1437 cd "$ac_dir" || { ac_status=$?; continue; }
1438 # Check for configure.gnu first; this name is used for a wrapper for
1439 # Metaconfig's "Configure" on case-insensitive file systems.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1446 else
1447 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 fi || ac_status=$?
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1450 done
1451 fi
1452
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455 cat <<\_ACEOF
1456 pam_radius configure $Id$
1457 generated by GNU Autoconf 2.71
1458
1459 Copyright (C) 2021 Free Software Foundation, Inc.
1460 This configure script is free software; the Free Software Foundation
1461 gives unlimited permission to copy, distribute and modify it.
1462 _ACEOF
1463 exit
1464 fi
1465
1466 ## ------------------------ ##
1467 ## Autoconf initialization. ##
1468 ## ------------------------ ##
1469
1470 # ac_fn_c_try_compile LINENO
1471 # --------------------------
1472 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1473 ac_fn_c_try_compile ()
1474 {
1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476 rm -f conftest.$ac_objext conftest.beam
1477 if { { ac_try="$ac_compile"
1478 case "(($ac_try" in
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1481 esac
1482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483 printf "%s\n" "$ac_try_echo"; } >&5
1484 (eval "$ac_compile") 2>conftest.err
1485 ac_status=$?
1486 if test -s conftest.err; then
1487 grep -v '^ *+' conftest.err >conftest.er1
1488 cat conftest.er1 >&5
1489 mv -f conftest.er1 conftest.err
1490 fi
1491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492 test $ac_status = 0; } && {
1493 test -z "$ac_c_werror_flag" ||
1494 test ! -s conftest.err
1495 } && test -s conftest.$ac_objext
1496 then :
1497 ac_retval=0
1498 else $as_nop
1499 printf "%s\n" "$as_me: failed program was:" >&5
1500 sed 's/^/| /' conftest.$ac_ext >&5
1501
1502 ac_retval=1
1503 fi
1504 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505 as_fn_set_status $ac_retval
1506
1507 } # ac_fn_c_try_compile
1508
1509 # ac_fn_cxx_try_compile LINENO
1510 # ----------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_cxx_try_compile ()
1513 {
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext conftest.beam
1516 if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 printf "%s\n" "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_cxx_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext
1535 then :
1536 ac_retval=0
1537 else $as_nop
1538 printf "%s\n" "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=1
1542 fi
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1545
1546 } # ac_fn_cxx_try_compile
1547
1548 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1549 # -------------------------------------------------------
1550 # Tests whether HEADER exists and can be compiled using the include files in
1551 # INCLUDES, setting the cache variable VAR accordingly.
1552 ac_fn_c_check_header_compile ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1556 printf %s "checking for $2... " >&6; }
1557 if eval test \${$3+y}
1558 then :
1559 printf %s "(cached) " >&6
1560 else $as_nop
1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562 /* end confdefs.h. */
1563 $4
1564 #include <$2>
1565 _ACEOF
1566 if ac_fn_c_try_compile "$LINENO"
1567 then :
1568 eval "$3=yes"
1569 else $as_nop
1570 eval "$3=no"
1571 fi
1572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1573 fi
1574 eval ac_res=\$$3
1575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1576 printf "%s\n" "$ac_res" >&6; }
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578
1579 } # ac_fn_c_check_header_compile
1580
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 printf "%s\n" "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } > conftest.i && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 }
1606 then :
1607 ac_retval=0
1608 else $as_nop
1609 printf "%s\n" "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_cpp
1618
1619 # ac_fn_c_try_run LINENO
1620 # ----------------------
1621 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1622 # executables *can* be run.
1623 ac_fn_c_try_run ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 printf "%s\n" "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>&5
1634 ac_status=$?
1635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1637 { { case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 printf "%s\n" "$ac_try_echo"; } >&5
1643 (eval "$ac_try") 2>&5
1644 ac_status=$?
1645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; }; }
1647 then :
1648 ac_retval=0
1649 else $as_nop
1650 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1651 printf "%s\n" "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=$ac_status
1655 fi
1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_run
1661
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_link ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1669 if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 printf "%s\n" "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 test -x conftest$ac_exeext
1690 }
1691 then :
1692 ac_retval=0
1693 else $as_nop
1694 printf "%s\n" "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698 fi
1699 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1700 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1701 # interfere with the next link command; also delete a directory that is
1702 # left behind by Apple's compiler. We do this before executing the actions.
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_link
1708
1709 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1710 # -------------------------------------------
1711 # Tests whether TYPE exists after having included INCLUDES, setting cache
1712 # variable VAR accordingly.
1713 ac_fn_c_check_type ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 printf %s "checking for $2... " >&6; }
1718 if eval test \${$3+y}
1719 then :
1720 printf %s "(cached) " >&6
1721 else $as_nop
1722 eval "$3=no"
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $4
1726 int
1727 main (void)
1728 {
1729 if (sizeof ($2))
1730 return 0;
1731 ;
1732 return 0;
1733 }
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"
1736 then :
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 int
1741 main (void)
1742 {
1743 if (sizeof (($2)))
1744 return 0;
1745 ;
1746 return 0;
1747 }
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"
1750 then :
1751
1752 else $as_nop
1753 eval "$3=yes"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1758 fi
1759 eval ac_res=\$$3
1760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 printf "%s\n" "$ac_res" >&6; }
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764 } # ac_fn_c_check_type
1765
1766 # ac_fn_c_check_func LINENO FUNC VAR
1767 # ----------------------------------
1768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1769 ac_fn_c_check_func ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 printf %s "checking for $2... " >&6; }
1774 if eval test \${$3+y}
1775 then :
1776 printf %s "(cached) " >&6
1777 else $as_nop
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1783
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below. */
1786
1787 #include <limits.h>
1788 #undef $2
1789
1790 /* Override any GCC internal prototype to avoid an error.
1791 Use char because int might match the return type of a GCC
1792 builtin and then its argument prototype would still apply. */
1793 #ifdef __cplusplus
1794 extern "C"
1795 #endif
1796 char $2 ();
1797 /* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800 #if defined __stub_$2 || defined __stub___$2
1801 choke me
1802 #endif
1803
1804 int
1805 main (void)
1806 {
1807 return $2 ();
1808 ;
1809 return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_link "$LINENO"
1813 then :
1814 eval "$3=yes"
1815 else $as_nop
1816 eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1819 conftest$ac_exeext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 printf "%s\n" "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_func
1827 ac_configure_args_raw=
1828 for ac_arg
1829 do
1830 case $ac_arg in
1831 *\'*)
1832 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1833 esac
1834 as_fn_append ac_configure_args_raw " '$ac_arg'"
1835 done
1836
1837 case $ac_configure_args_raw in
1838 *$as_nl*)
1839 ac_safe_unquote= ;;
1840 *)
1841 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1842 ac_unsafe_a="$ac_unsafe_z#~"
1843 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1844 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1845 esac
1846
1847 cat >config.log <<_ACEOF
1848 This file contains any messages produced by compilers while
1849 running configure, to aid debugging if configure makes a mistake.
1850
1851 It was created by pam_radius $as_me $Id$, which was
1852 generated by GNU Autoconf 2.71. Invocation command line was
1853
1854 $ $0$ac_configure_args_raw
1855
1856 _ACEOF
1857 exec 5>>config.log
1858 {
1859 cat <<_ASUNAME
1860 ## --------- ##
1861 ## Platform. ##
1862 ## --------- ##
1863
1864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872
1873 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1874 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1877 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1878 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1879 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1880
1881 _ASUNAME
1882
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886 IFS=$as_save_IFS
1887 case $as_dir in #(((
1888 '') as_dir=./ ;;
1889 */) ;;
1890 *) as_dir=$as_dir/ ;;
1891 esac
1892 printf "%s\n" "PATH: $as_dir"
1893 done
1894 IFS=$as_save_IFS
1895
1896 } >&5
1897
1898 cat >&5 <<_ACEOF
1899
1900
1901 ## ----------- ##
1902 ## Core tests. ##
1903 ## ----------- ##
1904
1905 _ACEOF
1906
1907
1908 # Keep a trace of the command line.
1909 # Strip out --no-create and --no-recursion so they do not pile up.
1910 # Strip out --silent because we don't want to record it for future runs.
1911 # Also quote any args containing shell meta-characters.
1912 # Make two passes to allow for proper duplicate-argument suppression.
1913 ac_configure_args=
1914 ac_configure_args0=
1915 ac_configure_args1=
1916 ac_must_keep_next=false
1917 for ac_pass in 1 2
1918 do
1919 for ac_arg
1920 do
1921 case $ac_arg in
1922 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1924 | -silent | --silent | --silen | --sile | --sil)
1925 continue ;;
1926 *\'*)
1927 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 esac
1929 case $ac_pass in
1930 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 2)
1932 as_fn_append ac_configure_args1 " '$ac_arg'"
1933 if test $ac_must_keep_next = true; then
1934 ac_must_keep_next=false # Got value, back to normal.
1935 else
1936 case $ac_arg in
1937 *=* | --config-cache | -C | -disable-* | --disable-* \
1938 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1939 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1940 | -with-* | --with-* | -without-* | --without-* | --x)
1941 case "$ac_configure_args0 " in
1942 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 esac
1944 ;;
1945 -* ) ac_must_keep_next=true ;;
1946 esac
1947 fi
1948 as_fn_append ac_configure_args " '$ac_arg'"
1949 ;;
1950 esac
1951 done
1952 done
1953 { ac_configure_args0=; unset ac_configure_args0;}
1954 { ac_configure_args1=; unset ac_configure_args1;}
1955
1956 # When interrupted or exit'd, cleanup temporary files, and complete
1957 # config.log. We remove comments because anyway the quotes in there
1958 # would cause problems or look ugly.
1959 # WARNING: Use '\'' to represent an apostrophe within the trap.
1960 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1961 trap 'exit_status=$?
1962 # Sanitize IFS.
1963 IFS=" "" $as_nl"
1964 # Save into config.log some information that might help in debugging.
1965 {
1966 echo
1967
1968 printf "%s\n" "## ---------------- ##
1969 ## Cache variables. ##
1970 ## ---------------- ##"
1971 echo
1972 # The following way of writing the cache mishandles newlines in values,
1973 (
1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975 eval ac_val=\$$ac_var
1976 case $ac_val in #(
1977 *${as_nl}*)
1978 case $ac_var in #(
1979 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1981 esac
1982 case $ac_var in #(
1983 _ | IFS | as_nl) ;; #(
1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985 *) { eval $ac_var=; unset $ac_var;} ;;
1986 esac ;;
1987 esac
1988 done
1989 (set) 2>&1 |
1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991 *${as_nl}ac_space=\ *)
1992 sed -n \
1993 "s/'\''/'\''\\\\'\'''\''/g;
1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995 ;; #(
1996 *)
1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998 ;;
1999 esac |
2000 sort
2001 )
2002 echo
2003
2004 printf "%s\n" "## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##"
2007 echo
2008 for ac_var in $ac_subst_vars
2009 do
2010 eval ac_val=\$$ac_var
2011 case $ac_val in
2012 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 esac
2014 printf "%s\n" "$ac_var='\''$ac_val'\''"
2015 done | sort
2016 echo
2017
2018 if test -n "$ac_subst_files"; then
2019 printf "%s\n" "## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##"
2022 echo
2023 for ac_var in $ac_subst_files
2024 do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in
2027 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 esac
2029 printf "%s\n" "$ac_var='\''$ac_val'\''"
2030 done | sort
2031 echo
2032 fi
2033
2034 if test -s confdefs.h; then
2035 printf "%s\n" "## ----------- ##
2036 ## confdefs.h. ##
2037 ## ----------- ##"
2038 echo
2039 cat confdefs.h
2040 echo
2041 fi
2042 test "$ac_signal" != 0 &&
2043 printf "%s\n" "$as_me: caught signal $ac_signal"
2044 printf "%s\n" "$as_me: exit $exit_status"
2045 } >&5
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048 exit $exit_status
2049 ' 0
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2052 done
2053 ac_signal=0
2054
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2057
2058 printf "%s\n" "/* confdefs.h */" > confdefs.h
2059
2060 # Predefined preprocessor variables.
2061
2062 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2063
2064 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2065
2066 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2067
2068 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2069
2070 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2071
2072 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2073
2074
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer an explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078 ac_site_files="$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2081 else
2082 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2083 fi
2084
2085 for ac_site_file in $ac_site_files
2086 do
2087 case $ac_site_file in #(
2088 */*) :
2089 ;; #(
2090 *) :
2091 ac_site_file=./$ac_site_file ;;
2092 esac
2093 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2095 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2096 sed 's/^/| /' "$ac_site_file" >&5
2097 . "$ac_site_file" \
2098 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2100 as_fn_error $? "failed to load site script $ac_site_file
2101 See \`config.log' for more details" "$LINENO" 5; }
2102 fi
2103 done
2104
2105 if test -r "$cache_file"; then
2106 # Some versions of bash will fail to source /dev/null (special files
2107 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2108 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2111 case $cache_file in
2112 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113 *) . "./$cache_file";;
2114 esac
2115 fi
2116 else
2117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2119 >$cache_file
2120 fi
2121
2122 # Test code for whether the C compiler supports C89 (global declarations)
2123 ac_c_conftest_c89_globals='
2124 /* Does the compiler advertise C89 conformance?
2125 Do not test the value of __STDC__, because some compilers set it to 0
2126 while being otherwise adequately conformant. */
2127 #if !defined __STDC__
2128 # error "Compiler does not advertise C89 conformance"
2129 #endif
2130
2131 #include <stddef.h>
2132 #include <stdarg.h>
2133 struct stat;
2134 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2135 struct buf { int x; };
2136 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2137 static char *e (p, i)
2138 char **p;
2139 int i;
2140 {
2141 return p[i];
2142 }
2143 static char *f (char * (*g) (char **, int), char **p, ...)
2144 {
2145 char *s;
2146 va_list v;
2147 va_start (v,p);
2148 s = g (p, va_arg (v,int));
2149 va_end (v);
2150 return s;
2151 }
2152
2153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2154 function prototypes and stuff, but not \xHH hex character constants.
2155 These do not provoke an error unfortunately, instead are silently treated
2156 as an "x". The following induces an error, until -std is added to get
2157 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2158 array size at least. It is necessary to write \x00 == 0 to get something
2159 that is true only with -std. */
2160 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2161
2162 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2163 inside strings and character constants. */
2164 #define FOO(x) '\''x'\''
2165 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2166
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2171 int, int);'
2172
2173 # Test code for whether the C compiler supports C89 (body of main).
2174 ac_c_conftest_c89_main='
2175 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2176 '
2177
2178 # Test code for whether the C compiler supports C99 (global declarations)
2179 ac_c_conftest_c99_globals='
2180 // Does the compiler advertise C99 conformance?
2181 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2182 # error "Compiler does not advertise C99 conformance"
2183 #endif
2184
2185 #include <stdbool.h>
2186 extern int puts (const char *);
2187 extern int printf (const char *, ...);
2188 extern int dprintf (int, const char *, ...);
2189 extern void *malloc (size_t);
2190
2191 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2192 // dprintf is used instead of fprintf to avoid needing to declare
2193 // FILE and stderr.
2194 #define debug(...) dprintf (2, __VA_ARGS__)
2195 #define showlist(...) puts (#__VA_ARGS__)
2196 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2197 static void
2198 test_varargs_macros (void)
2199 {
2200 int x = 1234;
2201 int y = 5678;
2202 debug ("Flag");
2203 debug ("X = %d\n", x);
2204 showlist (The first, second, and third items.);
2205 report (x>y, "x is %d but y is %d", x, y);
2206 }
2207
2208 // Check long long types.
2209 #define BIG64 18446744073709551615ull
2210 #define BIG32 4294967295ul
2211 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2212 #if !BIG_OK
2213 #error "your preprocessor is broken"
2214 #endif
2215 #if BIG_OK
2216 #else
2217 #error "your preprocessor is broken"
2218 #endif
2219 static long long int bignum = -9223372036854775807LL;
2220 static unsigned long long int ubignum = BIG64;
2221
2222 struct incomplete_array
2223 {
2224 int datasize;
2225 double data[];
2226 };
2227
2228 struct named_init {
2229 int number;
2230 const wchar_t *name;
2231 double average;
2232 };
2233
2234 typedef const char *ccp;
2235
2236 static inline int
2237 test_restrict (ccp restrict text)
2238 {
2239 // See if C++-style comments work.
2240 // Iterate through items via the restricted pointer.
2241 // Also check for declarations in for loops.
2242 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2243 continue;
2244 return 0;
2245 }
2246
2247 // Check varargs and va_copy.
2248 static bool
2249 test_varargs (const char *format, ...)
2250 {
2251 va_list args;
2252 va_start (args, format);
2253 va_list args_copy;
2254 va_copy (args_copy, args);
2255
2256 const char *str = "";
2257 int number = 0;
2258 float fnumber = 0;
2259
2260 while (*format)
2261 {
2262 switch (*format++)
2263 {
2264 case '\''s'\'': // string
2265 str = va_arg (args_copy, const char *);
2266 break;
2267 case '\''d'\'': // int
2268 number = va_arg (args_copy, int);
2269 break;
2270 case '\''f'\'': // float
2271 fnumber = va_arg (args_copy, double);
2272 break;
2273 default:
2274 break;
2275 }
2276 }
2277 va_end (args_copy);
2278 va_end (args);
2279
2280 return *str && number && fnumber;
2281 }
2282 '
2283
2284 # Test code for whether the C compiler supports C99 (body of main).
2285 ac_c_conftest_c99_main='
2286 // Check bool.
2287 _Bool success = false;
2288 success |= (argc != 0);
2289
2290 // Check restrict.
2291 if (test_restrict ("String literal") == 0)
2292 success = true;
2293 char *restrict newvar = "Another string";
2294
2295 // Check varargs.
2296 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2297 test_varargs_macros ();
2298
2299 // Check flexible array members.
2300 struct incomplete_array *ia =
2301 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2302 ia->datasize = 10;
2303 for (int i = 0; i < ia->datasize; ++i)
2304 ia->data[i] = i * 1.234;
2305
2306 // Check named initializers.
2307 struct named_init ni = {
2308 .number = 34,
2309 .name = L"Test wide string",
2310 .average = 543.34343,
2311 };
2312
2313 ni.number = 58;
2314
2315 int dynamic_array[ni.number];
2316 dynamic_array[0] = argv[0][0];
2317 dynamic_array[ni.number - 1] = 543;
2318
2319 // work around unused variable warnings
2320 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2321 || dynamic_array[ni.number - 1] != 543);
2322 '
2323
2324 # Test code for whether the C compiler supports C11 (global declarations)
2325 ac_c_conftest_c11_globals='
2326 // Does the compiler advertise C11 conformance?
2327 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2328 # error "Compiler does not advertise C11 conformance"
2329 #endif
2330
2331 // Check _Alignas.
2332 char _Alignas (double) aligned_as_double;
2333 char _Alignas (0) no_special_alignment;
2334 extern char aligned_as_int;
2335 char _Alignas (0) _Alignas (int) aligned_as_int;
2336
2337 // Check _Alignof.
2338 enum
2339 {
2340 int_alignment = _Alignof (int),
2341 int_array_alignment = _Alignof (int[100]),
2342 char_alignment = _Alignof (char)
2343 };
2344 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2345
2346 // Check _Noreturn.
2347 int _Noreturn does_not_return (void) { for (;;) continue; }
2348
2349 // Check _Static_assert.
2350 struct test_static_assert
2351 {
2352 int x;
2353 _Static_assert (sizeof (int) <= sizeof (long int),
2354 "_Static_assert does not work in struct");
2355 long int y;
2356 };
2357
2358 // Check UTF-8 literals.
2359 #define u8 syntax error!
2360 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2361
2362 // Check duplicate typedefs.
2363 typedef long *long_ptr;
2364 typedef long int *long_ptr;
2365 typedef long_ptr long_ptr;
2366
2367 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2368 struct anonymous
2369 {
2370 union {
2371 struct { int i; int j; };
2372 struct { int k; long int l; } w;
2373 };
2374 int m;
2375 } v1;
2376 '
2377
2378 # Test code for whether the C compiler supports C11 (body of main).
2379 ac_c_conftest_c11_main='
2380 _Static_assert ((offsetof (struct anonymous, i)
2381 == offsetof (struct anonymous, w.k)),
2382 "Anonymous union alignment botch");
2383 v1.i = 2;
2384 v1.w.k = 5;
2385 ok |= v1.i != 5;
2386 '
2387
2388 # Test code for whether the C compiler supports C11 (complete).
2389 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2390 ${ac_c_conftest_c99_globals}
2391 ${ac_c_conftest_c11_globals}
2392
2393 int
2394 main (int argc, char **argv)
2395 {
2396 int ok = 0;
2397 ${ac_c_conftest_c89_main}
2398 ${ac_c_conftest_c99_main}
2399 ${ac_c_conftest_c11_main}
2400 return ok;
2401 }
2402 "
2403
2404 # Test code for whether the C compiler supports C99 (complete).
2405 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2406 ${ac_c_conftest_c99_globals}
2407
2408 int
2409 main (int argc, char **argv)
2410 {
2411 int ok = 0;
2412 ${ac_c_conftest_c89_main}
2413 ${ac_c_conftest_c99_main}
2414 return ok;
2415 }
2416 "
2417
2418 # Test code for whether the C compiler supports C89 (complete).
2419 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2420
2421 int
2422 main (int argc, char **argv)
2423 {
2424 int ok = 0;
2425 ${ac_c_conftest_c89_main}
2426 return ok;
2427 }
2428 "
2429
2430 # Test code for whether the C++ compiler supports C++98 (global declarations)
2431 ac_cxx_conftest_cxx98_globals='
2432 // Does the compiler advertise C++98 conformance?
2433 #if !defined __cplusplus || __cplusplus < 199711L
2434 # error "Compiler does not advertise C++98 conformance"
2435 #endif
2436
2437 // These inclusions are to reject old compilers that
2438 // lack the unsuffixed header files.
2439 #include <cstdlib>
2440 #include <exception>
2441
2442 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2443 extern void assert (int);
2444 namespace std {
2445 extern int strcmp (const char *, const char *);
2446 }
2447
2448 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2449 using std::exception;
2450 using std::strcmp;
2451
2452 namespace {
2453
2454 void test_exception_syntax()
2455 {
2456 try {
2457 throw "test";
2458 } catch (const char *s) {
2459 // Extra parentheses suppress a warning when building autoconf itself,
2460 // due to lint rules shared with more typical C programs.
2461 assert (!(strcmp) (s, "test"));
2462 }
2463 }
2464
2465 template <typename T> struct test_template
2466 {
2467 T const val;
2468 explicit test_template(T t) : val(t) {}
2469 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2470 };
2471
2472 } // anonymous namespace
2473 '
2474
2475 # Test code for whether the C++ compiler supports C++98 (body of main)
2476 ac_cxx_conftest_cxx98_main='
2477 assert (argc);
2478 assert (! argv[0]);
2479 {
2480 test_exception_syntax ();
2481 test_template<double> tt (2.0);
2482 assert (tt.add (4) == 6.0);
2483 assert (true && !false);
2484 }
2485 '
2486
2487 # Test code for whether the C++ compiler supports C++11 (global declarations)
2488 ac_cxx_conftest_cxx11_globals='
2489 // Does the compiler advertise C++ 2011 conformance?
2490 #if !defined __cplusplus || __cplusplus < 201103L
2491 # error "Compiler does not advertise C++11 conformance"
2492 #endif
2493
2494 namespace cxx11test
2495 {
2496 constexpr int get_val() { return 20; }
2497
2498 struct testinit
2499 {
2500 int i;
2501 double d;
2502 };
2503
2504 class delegate
2505 {
2506 public:
2507 delegate(int n) : n(n) {}
2508 delegate(): delegate(2354) {}
2509
2510 virtual int getval() { return this->n; };
2511 protected:
2512 int n;
2513 };
2514
2515 class overridden : public delegate
2516 {
2517 public:
2518 overridden(int n): delegate(n) {}
2519 virtual int getval() override final { return this->n * 2; }
2520 };
2521
2522 class nocopy
2523 {
2524 public:
2525 nocopy(int i): i(i) {}
2526 nocopy() = default;
2527 nocopy(const nocopy&) = delete;
2528 nocopy & operator=(const nocopy&) = delete;
2529 private:
2530 int i;
2531 };
2532
2533 // for testing lambda expressions
2534 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2535 {
2536 return f(v);
2537 }
2538
2539 // for testing variadic templates and trailing return types
2540 template <typename V> auto sum(V first) -> V
2541 {
2542 return first;
2543 }
2544 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2545 {
2546 return first + sum(rest...);
2547 }
2548 }
2549 '
2550
2551 # Test code for whether the C++ compiler supports C++11 (body of main)
2552 ac_cxx_conftest_cxx11_main='
2553 {
2554 // Test auto and decltype
2555 auto a1 = 6538;
2556 auto a2 = 48573953.4;
2557 auto a3 = "String literal";
2558
2559 int total = 0;
2560 for (auto i = a3; *i; ++i) { total += *i; }
2561
2562 decltype(a2) a4 = 34895.034;
2563 }
2564 {
2565 // Test constexpr
2566 short sa[cxx11test::get_val()] = { 0 };
2567 }
2568 {
2569 // Test initializer lists
2570 cxx11test::testinit il = { 4323, 435234.23544 };
2571 }
2572 {
2573 // Test range-based for
2574 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2575 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2576 for (auto &x : array) { x += 23; }
2577 }
2578 {
2579 // Test lambda expressions
2580 using cxx11test::eval;
2581 assert (eval ([](int x) { return x*2; }, 21) == 42);
2582 double d = 2.0;
2583 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2584 assert (d == 5.0);
2585 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2586 assert (d == 5.0);
2587 }
2588 {
2589 // Test use of variadic templates
2590 using cxx11test::sum;
2591 auto a = sum(1);
2592 auto b = sum(1, 2);
2593 auto c = sum(1.0, 2.0, 3.0);
2594 }
2595 {
2596 // Test constructor delegation
2597 cxx11test::delegate d1;
2598 cxx11test::delegate d2();
2599 cxx11test::delegate d3(45);
2600 }
2601 {
2602 // Test override and final
2603 cxx11test::overridden o1(55464);
2604 }
2605 {
2606 // Test nullptr
2607 char *c = nullptr;
2608 }
2609 {
2610 // Test template brackets
2611 test_template<::test_template<int>> v(test_template<int>(12));
2612 }
2613 {
2614 // Unicode literals
2615 char const *utf8 = u8"UTF-8 string \u2500";
2616 char16_t const *utf16 = u"UTF-8 string \u2500";
2617 char32_t const *utf32 = U"UTF-32 string \u2500";
2618 }
2619 '
2620
2621 # Test code for whether the C compiler supports C++11 (complete).
2622 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2623 ${ac_cxx_conftest_cxx11_globals}
2624
2625 int
2626 main (int argc, char **argv)
2627 {
2628 int ok = 0;
2629 ${ac_cxx_conftest_cxx98_main}
2630 ${ac_cxx_conftest_cxx11_main}
2631 return ok;
2632 }
2633 "
2634
2635 # Test code for whether the C compiler supports C++98 (complete).
2636 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2637 int
2638 main (int argc, char **argv)
2639 {
2640 int ok = 0;
2641 ${ac_cxx_conftest_cxx98_main}
2642 return ok;
2643 }
2644 "
2645
2646 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2647 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2648 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2649 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2650 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2651 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2652 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2653 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2654 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2655 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2656 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2657
2658 # Auxiliary files required by this configure script.
2659 ac_aux_files="config.guess config.sub"
2660
2661 # Locations in which to look for auxiliary files.
2662 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2663
2664 # Search for a directory containing all of the required auxiliary files,
2665 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2666 # If we don't find one directory that contains all the files we need,
2667 # we report the set of missing files from the *first* directory in
2668 # $ac_aux_dir_candidates and give up.
2669 ac_missing_aux_files=""
2670 ac_first_candidate=:
2671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 as_found=false
2674 for as_dir in $ac_aux_dir_candidates
2675 do
2676 IFS=$as_save_IFS
2677 case $as_dir in #(((
2678 '') as_dir=./ ;;
2679 */) ;;
2680 *) as_dir=$as_dir/ ;;
2681 esac
2682 as_found=:
2683
2684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2685 ac_aux_dir_found=yes
2686 ac_install_sh=
2687 for ac_aux in $ac_aux_files
2688 do
2689 # As a special case, if "install-sh" is required, that requirement
2690 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2691 # and $ac_install_sh is set appropriately for whichever one is found.
2692 if test x"$ac_aux" = x"install-sh"
2693 then
2694 if test -f "${as_dir}install-sh"; then
2695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2696 ac_install_sh="${as_dir}install-sh -c"
2697 elif test -f "${as_dir}install.sh"; then
2698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2699 ac_install_sh="${as_dir}install.sh -c"
2700 elif test -f "${as_dir}shtool"; then
2701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2702 ac_install_sh="${as_dir}shtool install -c"
2703 else
2704 ac_aux_dir_found=no
2705 if $ac_first_candidate; then
2706 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2707 else
2708 break
2709 fi
2710 fi
2711 else
2712 if test -f "${as_dir}${ac_aux}"; then
2713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2714 else
2715 ac_aux_dir_found=no
2716 if $ac_first_candidate; then
2717 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2718 else
2719 break
2720 fi
2721 fi
2722 fi
2723 done
2724 if test "$ac_aux_dir_found" = yes; then
2725 ac_aux_dir="$as_dir"
2726 break
2727 fi
2728 ac_first_candidate=false
2729
2730 as_found=false
2731 done
2732 IFS=$as_save_IFS
2733 if $as_found
2734 then :
2735
2736 else $as_nop
2737 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2738 fi
2739
2740
2741 # These three variables are undocumented and unsupported,
2742 # and are intended to be withdrawn in a future Autoconf release.
2743 # They can cause serious problems if a builder's source tree is in a directory
2744 # whose full name contains unusual characters.
2745 if test -f "${ac_aux_dir}config.guess"; then
2746 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2747 fi
2748 if test -f "${ac_aux_dir}config.sub"; then
2749 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2750 fi
2751 if test -f "$ac_aux_dir/configure"; then
2752 ac_configure="$SHELL ${ac_aux_dir}configure"
2753 fi
2754
2755 # Check that the precious variables saved in the cache have kept the same
2756 # value.
2757 ac_cache_corrupted=false
2758 for ac_var in $ac_precious_vars; do
2759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2760 eval ac_new_set=\$ac_env_${ac_var}_set
2761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2762 eval ac_new_val=\$ac_env_${ac_var}_value
2763 case $ac_old_set,$ac_new_set in
2764 set,)
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2766 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2767 ac_cache_corrupted=: ;;
2768 ,set)
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2770 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2771 ac_cache_corrupted=: ;;
2772 ,);;
2773 *)
2774 if test "x$ac_old_val" != "x$ac_new_val"; then
2775 # differences in whitespace do not lead to failure.
2776 ac_old_val_w=`echo x $ac_old_val`
2777 ac_new_val_w=`echo x $ac_new_val`
2778 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2780 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2781 ac_cache_corrupted=:
2782 else
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2784 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2785 eval $ac_var=\$ac_old_val
2786 fi
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2788 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2790 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2791 fi;;
2792 esac
2793 # Pass precious variables to config.status.
2794 if test "$ac_new_set" = set; then
2795 case $ac_new_val in
2796 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2797 *) ac_arg=$ac_var=$ac_new_val ;;
2798 esac
2799 case " $ac_configure_args " in
2800 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2801 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2802 esac
2803 fi
2804 done
2805 if $ac_cache_corrupted; then
2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2809 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2810 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2811 and start over" "$LINENO" 5
2812 fi
2813 ## -------------------- ##
2814 ## Main body of script. ##
2815 ## -------------------- ##
2816
2817 ac_ext=c
2818 ac_cpp='$CPP $CPPFLAGS'
2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823
2824
2825 ac_config_headers="$ac_config_headers src/config.h"
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863 # Extract the first word of "git", so it can be a program name with args.
2864 set dummy git; ac_word=$2
2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 printf %s "checking for $ac_word... " >&6; }
2867 if test ${ac_cv_prog_GIT+y}
2868 then :
2869 printf %s "(cached) " >&6
2870 else $as_nop
2871 if test -n "$GIT"; then
2872 ac_cv_prog_GIT="$GIT" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 case $as_dir in #(((
2879 '') as_dir=./ ;;
2880 */) ;;
2881 *) as_dir=$as_dir/ ;;
2882 esac
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_GIT="yes"
2886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
2894 fi
2895 fi
2896 GIT=$ac_cv_prog_GIT
2897 if test -n "$GIT"; then
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
2899 printf "%s\n" "$GIT" >&6; }
2900 else
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 printf "%s\n" "no" >&6; }
2903 fi
2904
2905
2906
2907
2908 PAM_RADIUS_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2909 PAM_RADIUS_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2910 PAM_RADIUS_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2911
2912 PAM_RADIUS_VERSION=`echo | awk -v major="$PAM_RADIUS_MAJOR_VERSION" \
2913 -v minor="$PAM_RADIUS_MINOR_VERSION" \
2914 -v incrm="$PAM_RADIUS_INCRM_VERSION" \
2915 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2916
2917 PAM_RADIUS_VERSION_STRING=`cat VERSION`
2918
2919
2920
2921
2922 printf "%s\n" "#define PAM_RADIUS_VERSION ${PAM_RADIUS_VERSION}" >>confdefs.h
2923
2924
2925 printf "%s\n" "#define PAM_RADIUS_VERSION_STRING \"${PAM_RADIUS_VERSION_STRING}\"" >>confdefs.h
2926
2927
2928
2929
2930
2931
2932 # Make sure we can run config.sub.
2933 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2934 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2935
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2937 printf %s "checking build system type... " >&6; }
2938 if test ${ac_cv_build+y}
2939 then :
2940 printf %s "(cached) " >&6
2941 else $as_nop
2942 ac_build_alias=$build_alias
2943 test "x$ac_build_alias" = x &&
2944 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2945 test "x$ac_build_alias" = x &&
2946 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2947 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2948 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2949
2950 fi
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2952 printf "%s\n" "$ac_cv_build" >&6; }
2953 case $ac_cv_build in
2954 *-*-*) ;;
2955 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2956 esac
2957 build=$ac_cv_build
2958 ac_save_IFS=$IFS; IFS='-'
2959 set x $ac_cv_build
2960 shift
2961 build_cpu=$1
2962 build_vendor=$2
2963 shift; shift
2964 # Remember, the first character of IFS is used to create $*,
2965 # except with old shells:
2966 build_os=$*
2967 IFS=$ac_save_IFS
2968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2969
2970
2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2972 printf %s "checking host system type... " >&6; }
2973 if test ${ac_cv_host+y}
2974 then :
2975 printf %s "(cached) " >&6
2976 else $as_nop
2977 if test "x$host_alias" = x; then
2978 ac_cv_host=$ac_cv_build
2979 else
2980 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2981 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2982 fi
2983
2984 fi
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2986 printf "%s\n" "$ac_cv_host" >&6; }
2987 case $ac_cv_host in
2988 *-*-*) ;;
2989 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2990 esac
2991 host=$ac_cv_host
2992 ac_save_IFS=$IFS; IFS='-'
2993 set x $ac_cv_host
2994 shift
2995 host_cpu=$1
2996 host_vendor=$2
2997 shift; shift
2998 # Remember, the first character of IFS is used to create $*,
2999 # except with old shells:
3000 host_os=$*
3001 IFS=$ac_save_IFS
3002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3003
3004
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3006 printf %s "checking target system type... " >&6; }
3007 if test ${ac_cv_target+y}
3008 then :
3009 printf %s "(cached) " >&6
3010 else $as_nop
3011 if test "x$target_alias" = x; then
3012 ac_cv_target=$ac_cv_host
3013 else
3014 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3015 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3016 fi
3017
3018 fi
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3020 printf "%s\n" "$ac_cv_target" >&6; }
3021 case $ac_cv_target in
3022 *-*-*) ;;
3023 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3024 esac
3025 target=$ac_cv_target
3026 ac_save_IFS=$IFS; IFS='-'
3027 set x $ac_cv_target
3028 shift
3029 target_cpu=$1
3030 target_vendor=$2
3031 shift; shift
3032 # Remember, the first character of IFS is used to create $*,
3033 # except with old shells:
3034 target_os=$*
3035 IFS=$ac_save_IFS
3036 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3037
3038
3039 # The aliases save the names the user supplied, while $host etc.
3040 # will get canonicalized.
3041 test -n "$target_alias" &&
3042 test "$program_prefix$program_suffix$program_transform_name" = \
3043 NONENONEs,x,x, &&
3044 program_prefix=${target_alias}-
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056 ac_ext=c
3057 ac_cpp='$CPP $CPPFLAGS'
3058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3063 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 printf %s "checking for $ac_word... " >&6; }
3066 if test ${ac_cv_prog_CC+y}
3067 then :
3068 printf %s "(cached) " >&6
3069 else $as_nop
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 case $as_dir in #(((
3078 '') as_dir=./ ;;
3079 */) ;;
3080 *) as_dir=$as_dir/ ;;
3081 esac
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 printf "%s\n" "$CC" >&6; }
3098 else
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 printf "%s\n" "no" >&6; }
3101 fi
3102
3103
3104 fi
3105 if test -z "$ac_cv_prog_CC"; then
3106 ac_ct_CC=$CC
3107 # Extract the first word of "gcc", so it can be a program name with args.
3108 set dummy gcc; ac_word=$2
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 printf %s "checking for $ac_word... " >&6; }
3111 if test ${ac_cv_prog_ac_ct_CC+y}
3112 then :
3113 printf %s "(cached) " >&6
3114 else $as_nop
3115 if test -n "$ac_ct_CC"; then
3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 case $as_dir in #(((
3123 '') as_dir=./ ;;
3124 */) ;;
3125 *) as_dir=$as_dir/ ;;
3126 esac
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_ac_ct_CC="gcc"
3130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3140 if test -n "$ac_ct_CC"; then
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3142 printf "%s\n" "$ac_ct_CC" >&6; }
3143 else
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 printf "%s\n" "no" >&6; }
3146 fi
3147
3148 if test "x$ac_ct_CC" = x; then
3149 CC=""
3150 else
3151 case $cross_compiling:$ac_tool_warned in
3152 yes:)
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157 CC=$ac_ct_CC
3158 fi
3159 else
3160 CC="$ac_cv_prog_CC"
3161 fi
3162
3163 if test -z "$CC"; then
3164 if test -n "$ac_tool_prefix"; then
3165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3166 set dummy ${ac_tool_prefix}cc; ac_word=$2
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 printf %s "checking for $ac_word... " >&6; }
3169 if test ${ac_cv_prog_CC+y}
3170 then :
3171 printf %s "(cached) " >&6
3172 else $as_nop
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179 IFS=$as_save_IFS
3180 case $as_dir in #(((
3181 '') as_dir=./ ;;
3182 */) ;;
3183 *) as_dir=$as_dir/ ;;
3184 esac
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_CC="${ac_tool_prefix}cc"
3188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 CC=$ac_cv_prog_CC
3198 if test -n "$CC"; then
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 printf "%s\n" "$CC" >&6; }
3201 else
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 printf "%s\n" "no" >&6; }
3204 fi
3205
3206
3207 fi
3208 fi
3209 if test -z "$CC"; then
3210 # Extract the first word of "cc", so it can be a program name with args.
3211 set dummy cc; ac_word=$2
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 printf %s "checking for $ac_word... " >&6; }
3214 if test ${ac_cv_prog_CC+y}
3215 then :
3216 printf %s "(cached) " >&6
3217 else $as_nop
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 ac_prog_rejected=no
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225 IFS=$as_save_IFS
3226 case $as_dir in #(((
3227 '') as_dir=./ ;;
3228 */) ;;
3229 *) as_dir=$as_dir/ ;;
3230 esac
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3233 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3234 ac_prog_rejected=yes
3235 continue
3236 fi
3237 ac_cv_prog_CC="cc"
3238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 if test $ac_prog_rejected = yes; then
3246 # We found a bogon in the path, so make sure we never use it.
3247 set dummy $ac_cv_prog_CC
3248 shift
3249 if test $# != 0; then
3250 # We chose a different compiler from the bogus one.
3251 # However, it has the same basename, so the bogon will be chosen
3252 # first if we set CC to just the basename; use the full file name.
3253 shift
3254 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3255 fi
3256 fi
3257 fi
3258 fi
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 printf "%s\n" "$CC" >&6; }
3263 else
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 printf "%s\n" "no" >&6; }
3266 fi
3267
3268
3269 fi
3270 if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
3272 for ac_prog in cl.exe
3273 do
3274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 printf %s "checking for $ac_word... " >&6; }
3278 if test ${ac_cv_prog_CC+y}
3279 then :
3280 printf %s "(cached) " >&6
3281 else $as_nop
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 case $as_dir in #(((
3290 '') as_dir=./ ;;
3291 */) ;;
3292 *) as_dir=$as_dir/ ;;
3293 esac
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 CC=$ac_cv_prog_CC
3307 if test -n "$CC"; then
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 printf "%s\n" "$CC" >&6; }
3310 else
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 printf "%s\n" "no" >&6; }
3313 fi
3314
3315
3316 test -n "$CC" && break
3317 done
3318 fi
3319 if test -z "$CC"; then
3320 ac_ct_CC=$CC
3321 for ac_prog in cl.exe
3322 do
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 printf %s "checking for $ac_word... " >&6; }
3327 if test ${ac_cv_prog_ac_ct_CC+y}
3328 then :
3329 printf %s "(cached) " >&6
3330 else $as_nop
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337 IFS=$as_save_IFS
3338 case $as_dir in #(((
3339 '') as_dir=./ ;;
3340 */) ;;
3341 *) as_dir=$as_dir/ ;;
3342 esac
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_ac_ct_CC="$ac_prog"
3346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3356 if test -n "$ac_ct_CC"; then
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3358 printf "%s\n" "$ac_ct_CC" >&6; }
3359 else
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 printf "%s\n" "no" >&6; }
3362 fi
3363
3364
3365 test -n "$ac_ct_CC" && break
3366 done
3367
3368 if test "x$ac_ct_CC" = x; then
3369 CC=""
3370 else
3371 case $cross_compiling:$ac_tool_warned in
3372 yes:)
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3374 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3375 ac_tool_warned=yes ;;
3376 esac
3377 CC=$ac_ct_CC
3378 fi
3379 fi
3380
3381 fi
3382 if test -z "$CC"; then
3383 if test -n "$ac_tool_prefix"; then
3384 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}clang; ac_word=$2
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 printf %s "checking for $ac_word... " >&6; }
3388 if test ${ac_cv_prog_CC+y}
3389 then :
3390 printf %s "(cached) " >&6
3391 else $as_nop
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398 IFS=$as_save_IFS
3399 case $as_dir in #(((
3400 '') as_dir=./ ;;
3401 */) ;;
3402 *) as_dir=$as_dir/ ;;
3403 esac
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_CC="${ac_tool_prefix}clang"
3407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410 done
3411 done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419 printf "%s\n" "$CC" >&6; }
3420 else
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 printf "%s\n" "no" >&6; }
3423 fi
3424
3425
3426 fi
3427 if test -z "$ac_cv_prog_CC"; then
3428 ac_ct_CC=$CC
3429 # Extract the first word of "clang", so it can be a program name with args.
3430 set dummy clang; ac_word=$2
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 printf %s "checking for $ac_word... " >&6; }
3433 if test ${ac_cv_prog_ac_ct_CC+y}
3434 then :
3435 printf %s "(cached) " >&6
3436 else $as_nop
3437 if test -n "$ac_ct_CC"; then
3438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443 IFS=$as_save_IFS
3444 case $as_dir in #(((
3445 '') as_dir=./ ;;
3446 */) ;;
3447 *) as_dir=$as_dir/ ;;
3448 esac
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_ac_ct_CC="clang"
3452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3453 break 2
3454 fi
3455 done
3456 done
3457 IFS=$as_save_IFS
3458
3459 fi
3460 fi
3461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3462 if test -n "$ac_ct_CC"; then
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3464 printf "%s\n" "$ac_ct_CC" >&6; }
3465 else
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 printf "%s\n" "no" >&6; }
3468 fi
3469
3470 if test "x$ac_ct_CC" = x; then
3471 CC=""
3472 else
3473 case $cross_compiling:$ac_tool_warned in
3474 yes:)
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3476 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3477 ac_tool_warned=yes ;;
3478 esac
3479 CC=$ac_ct_CC
3480 fi
3481 else
3482 CC="$ac_cv_prog_CC"
3483 fi
3484
3485 fi
3486
3487
3488 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "no acceptable C compiler found in \$PATH
3491 See \`config.log' for more details" "$LINENO" 5; }
3492
3493 # Provide some information about the compiler.
3494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3495 set X $ac_compile
3496 ac_compiler=$2
3497 for ac_option in --version -v -V -qversion -version; do
3498 { { ac_try="$ac_compiler $ac_option >&5"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 printf "%s\n" "$ac_try_echo"; } >&5
3505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3506 ac_status=$?
3507 if test -s conftest.err; then
3508 sed '10a\
3509 ... rest of stderr output deleted ...
3510 10q' conftest.err >conftest.er1
3511 cat conftest.er1 >&5
3512 fi
3513 rm -f conftest.er1 conftest.err
3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }
3516 done
3517
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520
3521 int
3522 main (void)
3523 {
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 ac_clean_files_save=$ac_clean_files
3530 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3531 # Try to create an executable without -o first, disregard a.out.
3532 # It will help us diagnose broken compilers, and finding out an intuition
3533 # of exeext.
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3535 printf %s "checking whether the C compiler works... " >&6; }
3536 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3537
3538 # The possible output files:
3539 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3540
3541 ac_rmfiles=
3542 for ac_file in $ac_files
3543 do
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3546 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3547 esac
3548 done
3549 rm -f $ac_rmfiles
3550
3551 if { { ac_try="$ac_link_default"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 printf "%s\n" "$ac_try_echo"; } >&5
3558 (eval "$ac_link_default") 2>&5
3559 ac_status=$?
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3562 then :
3563 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3564 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3565 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3566 # so that the user can short-circuit this test for compilers unknown to
3567 # Autoconf.
3568 for ac_file in $ac_files ''
3569 do
3570 test -f "$ac_file" || continue
3571 case $ac_file in
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3573 ;;
3574 [ab].out )
3575 # We found the default executable, but exeext='' is most
3576 # certainly right.
3577 break;;
3578 *.* )
3579 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3580 then :; else
3581 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582 fi
3583 # We set ac_cv_exeext here because the later test for it is not
3584 # safe: cross compilers may not add the suffix if given an `-o'
3585 # argument, so we may need to know it at that point already.
3586 # Even if this section looks crufty: it has the advantage of
3587 # actually working.
3588 break;;
3589 * )
3590 break;;
3591 esac
3592 done
3593 test "$ac_cv_exeext" = no && ac_cv_exeext=
3594
3595 else $as_nop
3596 ac_file=''
3597 fi
3598 if test -z "$ac_file"
3599 then :
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 printf "%s\n" "no" >&6; }
3602 printf "%s\n" "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error 77 "C compiler cannot create executables
3608 See \`config.log' for more details" "$LINENO" 5; }
3609 else $as_nop
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3611 printf "%s\n" "yes" >&6; }
3612 fi
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3614 printf %s "checking for C compiler default output file name... " >&6; }
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3616 printf "%s\n" "$ac_file" >&6; }
3617 ac_exeext=$ac_cv_exeext
3618
3619 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3620 ac_clean_files=$ac_clean_files_save
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3622 printf %s "checking for suffix of executables... " >&6; }
3623 if { { ac_try="$ac_link"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629 printf "%s\n" "$ac_try_echo"; } >&5
3630 (eval "$ac_link") 2>&5
3631 ac_status=$?
3632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633 test $ac_status = 0; }
3634 then :
3635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3636 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3637 # work properly (i.e., refer to `conftest.exe'), while it won't with
3638 # `rm'.
3639 for ac_file in conftest.exe conftest conftest.*; do
3640 test -f "$ac_file" || continue
3641 case $ac_file in
3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644 break;;
3645 * ) break;;
3646 esac
3647 done
3648 else $as_nop
3649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3652 See \`config.log' for more details" "$LINENO" 5; }
3653 fi
3654 rm -f conftest conftest$ac_cv_exeext
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3656 printf "%s\n" "$ac_cv_exeext" >&6; }
3657
3658 rm -f conftest.$ac_ext
3659 EXEEXT=$ac_cv_exeext
3660 ac_exeext=$EXEEXT
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3663 #include <stdio.h>
3664 int
3665 main (void)
3666 {
3667 FILE *f = fopen ("conftest.out", "w");
3668 return ferror (f) || fclose (f) != 0;
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 ac_clean_files="$ac_clean_files conftest.out"
3675 # Check that the compiler produces executables we can run. If not, either
3676 # the compiler is broken, or we cross compile.
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3678 printf %s "checking whether we are cross compiling... " >&6; }
3679 if test "$cross_compiling" != yes; then
3680 { { ac_try="$ac_link"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 printf "%s\n" "$ac_try_echo"; } >&5
3687 (eval "$ac_link") 2>&5
3688 ac_status=$?
3689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }
3691 if { ac_try='./conftest$ac_cv_exeext'
3692 { { case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 printf "%s\n" "$ac_try_echo"; } >&5
3698 (eval "$ac_try") 2>&5
3699 ac_status=$?
3700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; }; then
3702 cross_compiling=no
3703 else
3704 if test "$cross_compiling" = maybe; then
3705 cross_compiling=yes
3706 else
3707 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error 77 "cannot run C compiled programs.
3710 If you meant to cross compile, use \`--host'.
3711 See \`config.log' for more details" "$LINENO" 5; }
3712 fi
3713 fi
3714 fi
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3716 printf "%s\n" "$cross_compiling" >&6; }
3717
3718 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3719 ac_clean_files=$ac_clean_files_save
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3721 printf %s "checking for suffix of object files... " >&6; }
3722 if test ${ac_cv_objext+y}
3723 then :
3724 printf %s "(cached) " >&6
3725 else $as_nop
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main (void)
3731 {
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 rm -f conftest.o conftest.obj
3738 if { { ac_try="$ac_compile"
3739 case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 printf "%s\n" "$ac_try_echo"; } >&5
3745 (eval "$ac_compile") 2>&5
3746 ac_status=$?
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749 then :
3750 for ac_file in conftest.o conftest.obj conftest.*; do
3751 test -f "$ac_file" || continue;
3752 case $ac_file in
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3755 break;;
3756 esac
3757 done
3758 else $as_nop
3759 printf "%s\n" "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "cannot compute suffix of object files: cannot compile
3765 See \`config.log' for more details" "$LINENO" 5; }
3766 fi
3767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3768 fi
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3770 printf "%s\n" "$ac_cv_objext" >&6; }
3771 OBJEXT=$ac_cv_objext
3772 ac_objext=$OBJEXT
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3774 printf %s "checking whether the compiler supports GNU C... " >&6; }
3775 if test ${ac_cv_c_compiler_gnu+y}
3776 then :
3777 printf %s "(cached) " >&6
3778 else $as_nop
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main (void)
3784 {
3785 #ifndef __GNUC__
3786 choke me
3787 #endif
3788
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"
3794 then :
3795 ac_compiler_gnu=yes
3796 else $as_nop
3797 ac_compiler_gnu=no
3798 fi
3799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3801
3802 fi
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3804 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807 if test $ac_compiler_gnu = yes; then
3808 GCC=yes
3809 else
3810 GCC=
3811 fi
3812 ac_test_CFLAGS=${CFLAGS+y}
3813 ac_save_CFLAGS=$CFLAGS
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3815 printf %s "checking whether $CC accepts -g... " >&6; }
3816 if test ${ac_cv_prog_cc_g+y}
3817 then :
3818 printf %s "(cached) " >&6
3819 else $as_nop
3820 ac_save_c_werror_flag=$ac_c_werror_flag
3821 ac_c_werror_flag=yes
3822 ac_cv_prog_cc_g=no
3823 CFLAGS="-g"
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826
3827 int
3828 main (void)
3829 {
3830
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 if ac_fn_c_try_compile "$LINENO"
3836 then :
3837 ac_cv_prog_cc_g=yes
3838 else $as_nop
3839 CFLAGS=""
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842
3843 int
3844 main (void)
3845 {
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"
3852 then :
3853
3854 else $as_nop
3855 ac_c_werror_flag=$ac_save_c_werror_flag
3856 CFLAGS="-g"
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859
3860 int
3861 main (void)
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 if ac_fn_c_try_compile "$LINENO"
3869 then :
3870 ac_cv_prog_cc_g=yes
3871 fi
3872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3873 fi
3874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3875 fi
3876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3877 ac_c_werror_flag=$ac_save_c_werror_flag
3878 fi
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3880 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3881 if test $ac_test_CFLAGS; then
3882 CFLAGS=$ac_save_CFLAGS
3883 elif test $ac_cv_prog_cc_g = yes; then
3884 if test "$GCC" = yes; then
3885 CFLAGS="-g -O2"
3886 else
3887 CFLAGS="-g"
3888 fi
3889 else
3890 if test "$GCC" = yes; then
3891 CFLAGS="-O2"
3892 else
3893 CFLAGS=
3894 fi
3895 fi
3896 ac_prog_cc_stdc=no
3897 if test x$ac_prog_cc_stdc = xno
3898 then :
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3900 printf %s "checking for $CC option to enable C11 features... " >&6; }
3901 if test ${ac_cv_prog_cc_c11+y}
3902 then :
3903 printf %s "(cached) " >&6
3904 else $as_nop
3905 ac_cv_prog_cc_c11=no
3906 ac_save_CC=$CC
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3909 $ac_c_conftest_c11_program
3910 _ACEOF
3911 for ac_arg in '' -std=gnu11
3912 do
3913 CC="$ac_save_CC $ac_arg"
3914 if ac_fn_c_try_compile "$LINENO"
3915 then :
3916 ac_cv_prog_cc_c11=$ac_arg
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext conftest.beam
3919 test "x$ac_cv_prog_cc_c11" != "xno" && break
3920 done
3921 rm -f conftest.$ac_ext
3922 CC=$ac_save_CC
3923 fi
3924
3925 if test "x$ac_cv_prog_cc_c11" = xno
3926 then :
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3928 printf "%s\n" "unsupported" >&6; }
3929 else $as_nop
3930 if test "x$ac_cv_prog_cc_c11" = x
3931 then :
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933 printf "%s\n" "none needed" >&6; }
3934 else $as_nop
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3936 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3937 CC="$CC $ac_cv_prog_cc_c11"
3938 fi
3939 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3940 ac_prog_cc_stdc=c11
3941 fi
3942 fi
3943 if test x$ac_prog_cc_stdc = xno
3944 then :
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3946 printf %s "checking for $CC option to enable C99 features... " >&6; }
3947 if test ${ac_cv_prog_cc_c99+y}
3948 then :
3949 printf %s "(cached) " >&6
3950 else $as_nop
3951 ac_cv_prog_cc_c99=no
3952 ac_save_CC=$CC
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 $ac_c_conftest_c99_program
3956 _ACEOF
3957 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3958 do
3959 CC="$ac_save_CC $ac_arg"
3960 if ac_fn_c_try_compile "$LINENO"
3961 then :
3962 ac_cv_prog_cc_c99=$ac_arg
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.beam
3965 test "x$ac_cv_prog_cc_c99" != "xno" && break
3966 done
3967 rm -f conftest.$ac_ext
3968 CC=$ac_save_CC
3969 fi
3970
3971 if test "x$ac_cv_prog_cc_c99" = xno
3972 then :
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3974 printf "%s\n" "unsupported" >&6; }
3975 else $as_nop
3976 if test "x$ac_cv_prog_cc_c99" = x
3977 then :
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3979 printf "%s\n" "none needed" >&6; }
3980 else $as_nop
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3982 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3983 CC="$CC $ac_cv_prog_cc_c99"
3984 fi
3985 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3986 ac_prog_cc_stdc=c99
3987 fi
3988 fi
3989 if test x$ac_prog_cc_stdc = xno
3990 then :
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3992 printf %s "checking for $CC option to enable C89 features... " >&6; }
3993 if test ${ac_cv_prog_cc_c89+y}
3994 then :
3995 printf %s "(cached) " >&6
3996 else $as_nop
3997 ac_cv_prog_cc_c89=no
3998 ac_save_CC=$CC
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 $ac_c_conftest_c89_program
4002 _ACEOF
4003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4004 do
4005 CC="$ac_save_CC $ac_arg"
4006 if ac_fn_c_try_compile "$LINENO"
4007 then :
4008 ac_cv_prog_cc_c89=$ac_arg
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext conftest.beam
4011 test "x$ac_cv_prog_cc_c89" != "xno" && break
4012 done
4013 rm -f conftest.$ac_ext
4014 CC=$ac_save_CC
4015 fi
4016
4017 if test "x$ac_cv_prog_cc_c89" = xno
4018 then :
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4020 printf "%s\n" "unsupported" >&6; }
4021 else $as_nop
4022 if test "x$ac_cv_prog_cc_c89" = x
4023 then :
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4025 printf "%s\n" "none needed" >&6; }
4026 else $as_nop
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4028 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4029 CC="$CC $ac_cv_prog_cc_c89"
4030 fi
4031 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4032 ac_prog_cc_stdc=c89
4033 fi
4034 fi
4035
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042
4043
4044
4045
4046
4047
4048 ac_ext=cpp
4049 ac_cpp='$CXXCPP $CPPFLAGS'
4050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4053 if test -z "$CXX"; then
4054 if test -n "$CCC"; then
4055 CXX=$CCC
4056 else
4057 if test -n "$ac_tool_prefix"; then
4058 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4059 do
4060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 printf %s "checking for $ac_word... " >&6; }
4064 if test ${ac_cv_prog_CXX+y}
4065 then :
4066 printf %s "(cached) " >&6
4067 else $as_nop
4068 if test -n "$CXX"; then
4069 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 case $as_dir in #(((
4076 '') as_dir=./ ;;
4077 */) ;;
4078 *) as_dir=$as_dir/ ;;
4079 esac
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4084 break 2
4085 fi
4086 done
4087 done
4088 IFS=$as_save_IFS
4089
4090 fi
4091 fi
4092 CXX=$ac_cv_prog_CXX
4093 if test -n "$CXX"; then
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4095 printf "%s\n" "$CXX" >&6; }
4096 else
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 printf "%s\n" "no" >&6; }
4099 fi
4100
4101
4102 test -n "$CXX" && break
4103 done
4104 fi
4105 if test -z "$CXX"; then
4106 ac_ct_CXX=$CXX
4107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4108 do
4109 # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 printf %s "checking for $ac_word... " >&6; }
4113 if test ${ac_cv_prog_ac_ct_CXX+y}
4114 then :
4115 printf %s "(cached) " >&6
4116 else $as_nop
4117 if test -n "$ac_ct_CXX"; then
4118 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123 IFS=$as_save_IFS
4124 case $as_dir in #(((
4125 '') as_dir=./ ;;
4126 */) ;;
4127 *) as_dir=$as_dir/ ;;
4128 esac
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_ac_ct_CXX="$ac_prog"
4132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135 done
4136 done
4137 IFS=$as_save_IFS
4138
4139 fi
4140 fi
4141 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4142 if test -n "$ac_ct_CXX"; then
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4144 printf "%s\n" "$ac_ct_CXX" >&6; }
4145 else
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 printf "%s\n" "no" >&6; }
4148 fi
4149
4150
4151 test -n "$ac_ct_CXX" && break
4152 done
4153
4154 if test "x$ac_ct_CXX" = x; then
4155 CXX="g++"
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163 CXX=$ac_ct_CXX
4164 fi
4165 fi
4166
4167 fi
4168 fi
4169 # Provide some information about the compiler.
4170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4171 set X $ac_compile
4172 ac_compiler=$2
4173 for ac_option in --version -v -V -qversion; do
4174 { { ac_try="$ac_compiler $ac_option >&5"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180 printf "%s\n" "$ac_try_echo"; } >&5
4181 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4182 ac_status=$?
4183 if test -s conftest.err; then
4184 sed '10a\
4185 ... rest of stderr output deleted ...
4186 10q' conftest.err >conftest.er1
4187 cat conftest.er1 >&5
4188 fi
4189 rm -f conftest.er1 conftest.err
4190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191 test $ac_status = 0; }
4192 done
4193
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4195 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4196 if test ${ac_cv_cxx_compiler_gnu+y}
4197 then :
4198 printf %s "(cached) " >&6
4199 else $as_nop
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202
4203 int
4204 main (void)
4205 {
4206 #ifndef __GNUC__
4207 choke me
4208 #endif
4209
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 if ac_fn_cxx_try_compile "$LINENO"
4215 then :
4216 ac_compiler_gnu=yes
4217 else $as_nop
4218 ac_compiler_gnu=no
4219 fi
4220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4221 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4222
4223 fi
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4225 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4227
4228 if test $ac_compiler_gnu = yes; then
4229 GXX=yes
4230 else
4231 GXX=
4232 fi
4233 ac_test_CXXFLAGS=${CXXFLAGS+y}
4234 ac_save_CXXFLAGS=$CXXFLAGS
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4236 printf %s "checking whether $CXX accepts -g... " >&6; }
4237 if test ${ac_cv_prog_cxx_g+y}
4238 then :
4239 printf %s "(cached) " >&6
4240 else $as_nop
4241 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4242 ac_cxx_werror_flag=yes
4243 ac_cv_prog_cxx_g=no
4244 CXXFLAGS="-g"
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247
4248 int
4249 main (void)
4250 {
4251
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_cxx_try_compile "$LINENO"
4257 then :
4258 ac_cv_prog_cxx_g=yes
4259 else $as_nop
4260 CXXFLAGS=""
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263
4264 int
4265 main (void)
4266 {
4267
4268 ;
4269 return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_cxx_try_compile "$LINENO"
4273 then :
4274
4275 else $as_nop
4276 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4277 CXXFLAGS="-g"
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280
4281 int
4282 main (void)
4283 {
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_cxx_try_compile "$LINENO"
4290 then :
4291 ac_cv_prog_cxx_g=yes
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4299 fi
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4301 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4302 if test $ac_test_CXXFLAGS; then
4303 CXXFLAGS=$ac_save_CXXFLAGS
4304 elif test $ac_cv_prog_cxx_g = yes; then
4305 if test "$GXX" = yes; then
4306 CXXFLAGS="-g -O2"
4307 else
4308 CXXFLAGS="-g"
4309 fi
4310 else
4311 if test "$GXX" = yes; then
4312 CXXFLAGS="-O2"
4313 else
4314 CXXFLAGS=
4315 fi
4316 fi
4317 ac_prog_cxx_stdcxx=no
4318 if test x$ac_prog_cxx_stdcxx = xno
4319 then :
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4321 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4322 if test ${ac_cv_prog_cxx_11+y}
4323 then :
4324 printf %s "(cached) " >&6
4325 else $as_nop
4326 ac_cv_prog_cxx_11=no
4327 ac_save_CXX=$CXX
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 $ac_cxx_conftest_cxx11_program
4331 _ACEOF
4332 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4333 do
4334 CXX="$ac_save_CXX $ac_arg"
4335 if ac_fn_cxx_try_compile "$LINENO"
4336 then :
4337 ac_cv_prog_cxx_cxx11=$ac_arg
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.beam
4340 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4341 done
4342 rm -f conftest.$ac_ext
4343 CXX=$ac_save_CXX
4344 fi
4345
4346 if test "x$ac_cv_prog_cxx_cxx11" = xno
4347 then :
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349 printf "%s\n" "unsupported" >&6; }
4350 else $as_nop
4351 if test "x$ac_cv_prog_cxx_cxx11" = x
4352 then :
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354 printf "%s\n" "none needed" >&6; }
4355 else $as_nop
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4357 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4358 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4359 fi
4360 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4361 ac_prog_cxx_stdcxx=cxx11
4362 fi
4363 fi
4364 if test x$ac_prog_cxx_stdcxx = xno
4365 then :
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4367 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4368 if test ${ac_cv_prog_cxx_98+y}
4369 then :
4370 printf %s "(cached) " >&6
4371 else $as_nop
4372 ac_cv_prog_cxx_98=no
4373 ac_save_CXX=$CXX
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376 $ac_cxx_conftest_cxx98_program
4377 _ACEOF
4378 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4379 do
4380 CXX="$ac_save_CXX $ac_arg"
4381 if ac_fn_cxx_try_compile "$LINENO"
4382 then :
4383 ac_cv_prog_cxx_cxx98=$ac_arg
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.beam
4386 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4387 done
4388 rm -f conftest.$ac_ext
4389 CXX=$ac_save_CXX
4390 fi
4391
4392 if test "x$ac_cv_prog_cxx_cxx98" = xno
4393 then :
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4395 printf "%s\n" "unsupported" >&6; }
4396 else $as_nop
4397 if test "x$ac_cv_prog_cxx_cxx98" = x
4398 then :
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4400 printf "%s\n" "none needed" >&6; }
4401 else $as_nop
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4403 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4404 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4405 fi
4406 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4407 ac_prog_cxx_stdcxx=cxx98
4408 fi
4409 fi
4410
4411 ac_ext=c
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
4417
4418
4419 ac_header= ac_cache=
4420 for ac_item in $ac_header_c_list
4421 do
4422 if test $ac_cache; then
4423 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4424 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4425 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4426 fi
4427 ac_header= ac_cache=
4428 elif test $ac_header; then
4429 ac_cache=$ac_item
4430 else
4431 ac_header=$ac_item
4432 fi
4433 done
4434
4435
4436
4437
4438
4439
4440
4441
4442 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4443 then :
4444
4445 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4446
4447 fi
4448
4449
4450
4451
4452
4453
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4455 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4456 if test ${ac_cv_safe_to_define___extensions__+y}
4457 then :
4458 printf %s "(cached) " >&6
4459 else $as_nop
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462
4463 # define __EXTENSIONS__ 1
4464 $ac_includes_default
4465 int
4466 main (void)
4467 {
4468
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_compile "$LINENO"
4474 then :
4475 ac_cv_safe_to_define___extensions__=yes
4476 else $as_nop
4477 ac_cv_safe_to_define___extensions__=no
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4480 fi
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4482 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4483
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4485 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4486 if test ${ac_cv_should_define__xopen_source+y}
4487 then :
4488 printf %s "(cached) " >&6
4489 else $as_nop
4490 ac_cv_should_define__xopen_source=no
4491 if test $ac_cv_header_wchar_h = yes
4492 then :
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495
4496 #include <wchar.h>
4497 mbstate_t x;
4498 int
4499 main (void)
4500 {
4501
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"
4507 then :
4508
4509 else $as_nop
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512
4513 #define _XOPEN_SOURCE 500
4514 #include <wchar.h>
4515 mbstate_t x;
4516 int
4517 main (void)
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"
4525 then :
4526 ac_cv_should_define__xopen_source=yes
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4531 fi
4532 fi
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4534 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4535
4536 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4537
4538 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4539
4540 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4541
4542 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4543
4544 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4545
4546 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4547
4548 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4549
4550 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4551
4552 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4553
4554 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4555
4556 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4557
4558 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4559
4560 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4561
4562 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4563
4564 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4565
4566 if test $ac_cv_header_minix_config_h = yes
4567 then :
4568 MINIX=yes
4569 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4570
4571 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4572
4573 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4574
4575 else $as_nop
4576 MINIX=
4577 fi
4578 if test $ac_cv_safe_to_define___extensions__ = yes
4579 then :
4580 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4581
4582 fi
4583 if test $ac_cv_should_define__xopen_source = yes
4584 then :
4585 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4586
4587 fi
4588
4589
4590
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4597 printf %s "checking how to run the C preprocessor... " >&6; }
4598 # On Suns, sometimes $CPP names a directory.
4599 if test -n "$CPP" && test -d "$CPP"; then
4600 CPP=
4601 fi
4602 if test -z "$CPP"; then
4603 if test ${ac_cv_prog_CPP+y}
4604 then :
4605 printf %s "(cached) " >&6
4606 else $as_nop
4607 # Double quotes because $CC needs to be expanded
4608 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4609 do
4610 ac_preproc_ok=false
4611 for ac_c_preproc_warn_flag in '' yes
4612 do
4613 # Use a header file that comes with gcc, so configuring glibc
4614 # with a fresh cross-compiler works.
4615 # On the NeXT, cc -E runs the code through the compiler's parser,
4616 # not just through cpp. "Syntax error" is here to catch this case.
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <limits.h>
4620 Syntax error
4621 _ACEOF
4622 if ac_fn_c_try_cpp "$LINENO"
4623 then :
4624
4625 else $as_nop
4626 # Broken: fails on valid input.
4627 continue
4628 fi
4629 rm -f conftest.err conftest.i conftest.$ac_ext
4630
4631 # OK, works on sane cases. Now check whether nonexistent headers
4632 # can be detected and how.
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <ac_nonexistent.h>
4636 _ACEOF
4637 if ac_fn_c_try_cpp "$LINENO"
4638 then :
4639 # Broken: success on invalid input.
4640 continue
4641 else $as_nop
4642 # Passes both tests.
4643 ac_preproc_ok=:
4644 break
4645 fi
4646 rm -f conftest.err conftest.i conftest.$ac_ext
4647
4648 done
4649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4650 rm -f conftest.i conftest.err conftest.$ac_ext
4651 if $ac_preproc_ok
4652 then :
4653 break
4654 fi
4655
4656 done
4657 ac_cv_prog_CPP=$CPP
4658
4659 fi
4660 CPP=$ac_cv_prog_CPP
4661 else
4662 ac_cv_prog_CPP=$CPP
4663 fi
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4665 printf "%s\n" "$CPP" >&6; }
4666 ac_preproc_ok=false
4667 for ac_c_preproc_warn_flag in '' yes
4668 do
4669 # Use a header file that comes with gcc, so configuring glibc
4670 # with a fresh cross-compiler works.
4671 # On the NeXT, cc -E runs the code through the compiler's parser,
4672 # not just through cpp. "Syntax error" is here to catch this case.
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #include <limits.h>
4676 Syntax error
4677 _ACEOF
4678 if ac_fn_c_try_cpp "$LINENO"
4679 then :
4680
4681 else $as_nop
4682 # Broken: fails on valid input.
4683 continue
4684 fi
4685 rm -f conftest.err conftest.i conftest.$ac_ext
4686
4687 # OK, works on sane cases. Now check whether nonexistent headers
4688 # can be detected and how.
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691 #include <ac_nonexistent.h>
4692 _ACEOF
4693 if ac_fn_c_try_cpp "$LINENO"
4694 then :
4695 # Broken: success on invalid input.
4696 continue
4697 else $as_nop
4698 # Passes both tests.
4699 ac_preproc_ok=:
4700 break
4701 fi
4702 rm -f conftest.err conftest.i conftest.$ac_ext
4703
4704 done
4705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4706 rm -f conftest.i conftest.err conftest.$ac_ext
4707 if $ac_preproc_ok
4708 then :
4709
4710 else $as_nop
4711 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4713 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4714 See \`config.log' for more details" "$LINENO" 5; }
4715 fi
4716
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722
4723
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4725 printf %s "checking for grep that handles long lines and -e... " >&6; }
4726 if test ${ac_cv_path_GREP+y}
4727 then :
4728 printf %s "(cached) " >&6
4729 else $as_nop
4730 if test -z "$GREP"; then
4731 ac_path_GREP_found=false
4732 # Loop through the user's path and test for each of PROGNAME-LIST
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4735 do
4736 IFS=$as_save_IFS
4737 case $as_dir in #(((
4738 '') as_dir=./ ;;
4739 */) ;;
4740 *) as_dir=$as_dir/ ;;
4741 esac
4742 for ac_prog in grep ggrep
4743 do
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4746 as_fn_executable_p "$ac_path_GREP" || continue
4747 # Check for GNU ac_path_GREP and select it if it is found.
4748 # Check for GNU $ac_path_GREP
4749 case `"$ac_path_GREP" --version 2>&1` in
4750 *GNU*)
4751 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4752 *)
4753 ac_count=0
4754 printf %s 0123456789 >"conftest.in"
4755 while :
4756 do
4757 cat "conftest.in" "conftest.in" >"conftest.tmp"
4758 mv "conftest.tmp" "conftest.in"
4759 cp "conftest.in" "conftest.nl"
4760 printf "%s\n" 'GREP' >> "conftest.nl"
4761 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4763 as_fn_arith $ac_count + 1 && ac_count=$as_val
4764 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4765 # Best one so far, save it but keep looking for a better one
4766 ac_cv_path_GREP="$ac_path_GREP"
4767 ac_path_GREP_max=$ac_count
4768 fi
4769 # 10*(2^10) chars as input seems more than enough
4770 test $ac_count -gt 10 && break
4771 done
4772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4773 esac
4774
4775 $ac_path_GREP_found && break 3
4776 done
4777 done
4778 done
4779 IFS=$as_save_IFS
4780 if test -z "$ac_cv_path_GREP"; then
4781 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4782 fi
4783 else
4784 ac_cv_path_GREP=$GREP
4785 fi
4786
4787 fi
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4789 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4790 GREP="$ac_cv_path_GREP"
4791
4792
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4794 printf %s "checking for egrep... " >&6; }
4795 if test ${ac_cv_path_EGREP+y}
4796 then :
4797 printf %s "(cached) " >&6
4798 else $as_nop
4799 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4800 then ac_cv_path_EGREP="$GREP -E"
4801 else
4802 if test -z "$EGREP"; then
4803 ac_path_EGREP_found=false
4804 # Loop through the user's path and test for each of PROGNAME-LIST
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4807 do
4808 IFS=$as_save_IFS
4809 case $as_dir in #(((
4810 '') as_dir=./ ;;
4811 */) ;;
4812 *) as_dir=$as_dir/ ;;
4813 esac
4814 for ac_prog in egrep
4815 do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4818 as_fn_executable_p "$ac_path_EGREP" || continue
4819 # Check for GNU ac_path_EGREP and select it if it is found.
4820 # Check for GNU $ac_path_EGREP
4821 case `"$ac_path_EGREP" --version 2>&1` in
4822 *GNU*)
4823 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4824 *)
4825 ac_count=0
4826 printf %s 0123456789 >"conftest.in"
4827 while :
4828 do
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 printf "%s\n" 'EGREP' >> "conftest.nl"
4833 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
4836 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_EGREP="$ac_path_EGREP"
4839 ac_path_EGREP_max=$ac_count
4840 fi
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4843 done
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845 esac
4846
4847 $ac_path_EGREP_found && break 3
4848 done
4849 done
4850 done
4851 IFS=$as_save_IFS
4852 if test -z "$ac_cv_path_EGREP"; then
4853 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854 fi
4855 else
4856 ac_cv_path_EGREP=$EGREP
4857 fi
4858
4859 fi
4860 fi
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4862 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4863 EGREP="$ac_cv_path_EGREP"
4864
4865
4866 if test $ac_cv_c_compiler_gnu = yes; then
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4868 printf %s "checking whether $CC needs -traditional... " >&6; }
4869 if test ${ac_cv_prog_gcc_traditional+y}
4870 then :
4871 printf %s "(cached) " >&6
4872 else $as_nop
4873 ac_pattern="Autoconf.*'x'"
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #include <sgtty.h>
4877 Autoconf TIOCGETP
4878 _ACEOF
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880 $EGREP "$ac_pattern" >/dev/null 2>&1
4881 then :
4882 ac_cv_prog_gcc_traditional=yes
4883 else $as_nop
4884 ac_cv_prog_gcc_traditional=no
4885 fi
4886 rm -rf conftest*
4887
4888
4889 if test $ac_cv_prog_gcc_traditional = no; then
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <termio.h>
4893 Autoconf TCGETA
4894 _ACEOF
4895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4896 $EGREP "$ac_pattern" >/dev/null 2>&1
4897 then :
4898 ac_cv_prog_gcc_traditional=yes
4899 fi
4900 rm -rf conftest*
4901
4902 fi
4903 fi
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4905 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
4906 if test $ac_cv_prog_gcc_traditional = yes; then
4907 CC="$CC -traditional"
4908 fi
4909 fi
4910
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4912 printf %s "checking whether we are using SUNPro C... " >&6; }
4913 if test ${ac_cv_prog_suncc+y}
4914 then :
4915 printf %s "(cached) " >&6
4916 else $as_nop
4917 cat > conftest.c <<EOF
4918 #ifdef __SUNPRO_C
4919 yes;
4920 #endif
4921 EOF
4922 if { ac_try='${CC-cc} -E conftest.c'
4923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4927 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4928 ac_cv_prog_suncc=yes
4929 else
4930 ac_cv_prog_suncc=no
4931 fi
4932 fi
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4934 printf "%s\n" "$ac_cv_prog_suncc" >&6; }
4935 if test -n "$ac_tool_prefix"; then
4936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4937 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 printf %s "checking for $ac_word... " >&6; }
4940 if test ${ac_cv_prog_RANLIB+y}
4941 then :
4942 printf %s "(cached) " >&6
4943 else $as_nop
4944 if test -n "$RANLIB"; then
4945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950 IFS=$as_save_IFS
4951 case $as_dir in #(((
4952 '') as_dir=./ ;;
4953 */) ;;
4954 *) as_dir=$as_dir/ ;;
4955 esac
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 RANLIB=$ac_cv_prog_RANLIB
4969 if test -n "$RANLIB"; then
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4971 printf "%s\n" "$RANLIB" >&6; }
4972 else
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 printf "%s\n" "no" >&6; }
4975 fi
4976
4977
4978 fi
4979 if test -z "$ac_cv_prog_RANLIB"; then
4980 ac_ct_RANLIB=$RANLIB
4981 # Extract the first word of "ranlib", so it can be a program name with args.
4982 set dummy ranlib; ac_word=$2
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 printf %s "checking for $ac_word... " >&6; }
4985 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4986 then :
4987 printf %s "(cached) " >&6
4988 else $as_nop
4989 if test -n "$ac_ct_RANLIB"; then
4990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995 IFS=$as_save_IFS
4996 case $as_dir in #(((
4997 '') as_dir=./ ;;
4998 */) ;;
4999 *) as_dir=$as_dir/ ;;
5000 esac
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5003 ac_cv_prog_ac_ct_RANLIB="ranlib"
5004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5005 break 2
5006 fi
5007 done
5008 done
5009 IFS=$as_save_IFS
5010
5011 fi
5012 fi
5013 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5014 if test -n "$ac_ct_RANLIB"; then
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5016 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5017 else
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 printf "%s\n" "no" >&6; }
5020 fi
5021
5022 if test "x$ac_ct_RANLIB" = x; then
5023 RANLIB=":"
5024 else
5025 case $cross_compiling:$ac_tool_warned in
5026 yes:)
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5029 ac_tool_warned=yes ;;
5030 esac
5031 RANLIB=$ac_ct_RANLIB
5032 fi
5033 else
5034 RANLIB="$ac_cv_prog_RANLIB"
5035 fi
5036
5037
5038
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
5040 printf %s "checking if compiler is clang... " >&6; }
5041 if test ${ax_cv_cc_clang+y}
5042 then :
5043 printf %s "(cached) " >&6
5044 else $as_nop
5045
5046
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049
5050 int
5051 main (void)
5052 {
5053
5054 #ifndef __clang__
5055 not clang
5056 #endif
5057
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"
5063 then :
5064 ax_cv_cc_clang=yes
5065 else $as_nop
5066 ax_cv_cc_clang=no
5067 fi
5068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5069
5070 fi
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
5072 printf "%s\n" "$ax_cv_cc_clang" >&6; }
5073
5074 if test "x$ax_cv_cc_clang" = "xyes"; then
5075 clang_path="$CC"
5076
5077 else
5078 clang_path=""
5079
5080 fi
5081
5082 if test "x$GCC" = "xyes"; then
5083 CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
5084 fi
5085
5086 # Check whether --enable-developer was given.
5087 if test ${enable_developer+y}
5088 then :
5089 enableval=$enable_developer; case "$enableval" in
5090 no)
5091 developer=no
5092 ;;
5093 *)
5094 developer=yes
5095 esac
5096
5097 fi
5098
5099
5100 if test "x$GIT" = "xyes" && git status 2>&1 > /dev/null; then
5101 if test "x$PAM_RADIUS_VERSION_RELEASE" = "x"; then
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build release" >&5
5103 printf %s "checking build release... " >&6; }
5104 PAM_RADIUS_VERSION_RELEASE=`git describe | sed -e 's/^.*-\([0-9]*\)-g[0-9a-f]*/\1/'`
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAM_RADIUS_VERSION_RELEASE" >&5
5106 printf "%s\n" "$PAM_RADIUS_VERSION_RELEASE" >&6; }
5107 fi
5108
5109 if test "x$PAM_RADIUS_VERSION_COMMIT" = "x"; then
5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build commit" >&5
5111 printf %s "checking build commit... " >&6; }
5112 PAM_RADIUS_VERSION_COMMIT=`git rev-parse --short=8 HEAD`
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAM_RADIUS_VERSION_COMMIT" >&5
5114 printf "%s\n" "$PAM_RADIUS_VERSION_COMMIT" >&6; }
5115 fi
5116
5117 if test "x$developer" != "xno"; then
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: in git repository, enabling developer build implicitly, disable with --disable-developer" >&5
5119 printf "%s\n" "$as_me: in git repository, enabling developer build implicitly, disable with --disable-developer" >&6;}
5120 developer="yes"
5121 fi
5122 fi
5123
5124 if test "x$PAM_RADIUS_VERSION_RELEASE" != "x"; then
5125
5126 printf "%s\n" "#define PAM_RADIUS_VERSION_RELEASE \"${PAM_RADIUS_VERSION_RELEASE}\"" >>confdefs.h
5127
5128 fi
5129
5130 if test "x$PAM_RADIUS_VERSION_COMMIT" != "x"; then
5131
5132 printf "%s\n" "#define PAM_RADIUS_VERSION_COMMIT \"${PAM_RADIUS_VERSION_COMMIT}\"" >>confdefs.h
5133
5134 fi
5135
5136 # Check whether --enable-address-sanitizer was given.
5137 if test ${enable_address_sanitizer+y}
5138 then :
5139 enableval=$enable_address_sanitizer; case "$enableval" in
5140 no)
5141 address_sanitizer=no
5142 ;;
5143 *)
5144 address_sanitizer=yes
5145 esac
5146
5147 fi
5148
5149
5150 # Check whether --enable-leak-sanitizer was given.
5151 if test ${enable_leak_sanitizer+y}
5152 then :
5153 enableval=$enable_leak_sanitizer; case "$enableval" in
5154 no)
5155 leak_sanitizer=no
5156 ;;
5157 *)
5158 leak_sanitizer=yes
5159 esac
5160
5161 fi
5162
5163
5164 # Check whether --enable-undefined-behaviour-sanitizer was given.
5165 if test ${enable_undefined_behaviour_sanitizer+y}
5166 then :
5167 enableval=$enable_undefined_behaviour_sanitizer; case "$enableval" in
5168 no)
5169 undefined_behaviour_sanitizer=no
5170 ;;
5171 *)
5172 undefined_behaviour_sanitizer=yes
5173 esac
5174
5175 fi
5176
5177
5178
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
5180 printf %s "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
5181 if test ${ax_cv_cc_qunused_arguments_flag+y}
5182 then :
5183 printf %s "(cached) " >&6
5184 else $as_nop
5185
5186
5187 CFLAGS_SAVED=$CFLAGS
5188 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
5189
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 int
5200 main (void)
5201 {
5202 return 0;
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"
5208 then :
5209 ax_cv_cc_qunused_arguments_flag="yes"
5210 else $as_nop
5211 ax_cv_cc_qunused_arguments_flag="no"
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5214 ac_ext=c
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219
5220
5221 CFLAGS="$CFLAGS_SAVED"
5222
5223 fi
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
5225 printf "%s\n" "$ax_cv_cc_qunused_arguments_flag" >&6; }
5226
5227 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
5228 CFLAGS="$CFLAGS -Qunused-arguments"
5229 LDFLAGS="$LDFLAGS -Qunused-arguments"
5230 fi
5231
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5233 printf %s "checking whether byte ordering is bigendian... " >&6; }
5234 if test ${ac_cv_c_bigendian+y}
5235 then :
5236 printf %s "(cached) " >&6
5237 else $as_nop
5238 ac_cv_c_bigendian=unknown
5239 # See if we're dealing with a universal compiler.
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242 #ifndef __APPLE_CC__
5243 not a universal capable compiler
5244 #endif
5245 typedef int dummy;
5246
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"
5249 then :
5250
5251 # Check for potential -arch flags. It is not universal unless
5252 # there are at least two -arch flags with different values.
5253 ac_arch=
5254 ac_prev=
5255 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5256 if test -n "$ac_prev"; then
5257 case $ac_word in
5258 i?86 | x86_64 | ppc | ppc64)
5259 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5260 ac_arch=$ac_word
5261 else
5262 ac_cv_c_bigendian=universal
5263 break
5264 fi
5265 ;;
5266 esac
5267 ac_prev=
5268 elif test "x$ac_word" = "x-arch"; then
5269 ac_prev=arch
5270 fi
5271 done
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5274 if test $ac_cv_c_bigendian = unknown; then
5275 # See if sys/param.h defines the BYTE_ORDER macro.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <sys/types.h>
5279 #include <sys/param.h>
5280
5281 int
5282 main (void)
5283 {
5284 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5285 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5286 && LITTLE_ENDIAN)
5287 bogus endian macros
5288 #endif
5289
5290 ;
5291 return 0;
5292 }
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"
5295 then :
5296 # It does; now see whether it defined to BIG_ENDIAN or not.
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <sys/types.h>
5300 #include <sys/param.h>
5301
5302 int
5303 main (void)
5304 {
5305 #if BYTE_ORDER != BIG_ENDIAN
5306 not big endian
5307 #endif
5308
5309 ;
5310 return 0;
5311 }
5312 _ACEOF
5313 if ac_fn_c_try_compile "$LINENO"
5314 then :
5315 ac_cv_c_bigendian=yes
5316 else $as_nop
5317 ac_cv_c_bigendian=no
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5322 fi
5323 if test $ac_cv_c_bigendian = unknown; then
5324 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 #include <limits.h>
5328
5329 int
5330 main (void)
5331 {
5332 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5333 bogus endian macros
5334 #endif
5335
5336 ;
5337 return 0;
5338 }
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"
5341 then :
5342 # It does; now see whether it defined to _BIG_ENDIAN or not.
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 #include <limits.h>
5346
5347 int
5348 main (void)
5349 {
5350 #ifndef _BIG_ENDIAN
5351 not big endian
5352 #endif
5353
5354 ;
5355 return 0;
5356 }
5357 _ACEOF
5358 if ac_fn_c_try_compile "$LINENO"
5359 then :
5360 ac_cv_c_bigendian=yes
5361 else $as_nop
5362 ac_cv_c_bigendian=no
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5367 fi
5368 if test $ac_cv_c_bigendian = unknown; then
5369 # Compile a test program.
5370 if test "$cross_compiling" = yes
5371 then :
5372 # Try to guess by grepping values from an object file.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5375 unsigned short int ascii_mm[] =
5376 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5377 unsigned short int ascii_ii[] =
5378 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5379 int use_ascii (int i) {
5380 return ascii_mm[i] + ascii_ii[i];
5381 }
5382 unsigned short int ebcdic_ii[] =
5383 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5384 unsigned short int ebcdic_mm[] =
5385 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5386 int use_ebcdic (int i) {
5387 return ebcdic_mm[i] + ebcdic_ii[i];
5388 }
5389 extern int foo;
5390
5391 int
5392 main (void)
5393 {
5394 return use_ascii (foo) == use_ebcdic (foo);
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"
5400 then :
5401 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5402 ac_cv_c_bigendian=yes
5403 fi
5404 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5405 if test "$ac_cv_c_bigendian" = unknown; then
5406 ac_cv_c_bigendian=no
5407 else
5408 # finding both strings is unlikely to happen, but who knows?
5409 ac_cv_c_bigendian=unknown
5410 fi
5411 fi
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5414 else $as_nop
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 $ac_includes_default
5418 int
5419 main (void)
5420 {
5421
5422 /* Are we little or big endian? From Harbison&Steele. */
5423 union
5424 {
5425 long int l;
5426 char c[sizeof (long int)];
5427 } u;
5428 u.l = 1;
5429 return u.c[sizeof (long int) - 1] == 1;
5430
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 if ac_fn_c_try_run "$LINENO"
5436 then :
5437 ac_cv_c_bigendian=no
5438 else $as_nop
5439 ac_cv_c_bigendian=yes
5440 fi
5441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5442 conftest.$ac_objext conftest.beam conftest.$ac_ext
5443 fi
5444
5445 fi
5446 fi
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5448 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5449 case $ac_cv_c_bigendian in #(
5450 yes)
5451 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5452 ;; #(
5453 no)
5454 ;; #(
5455 universal)
5456
5457 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5458
5459 ;; #(
5460 *)
5461 as_fn_error $? "unknown endianness
5462 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5463 esac
5464
5465
5466 # Check whether --enable-werror was given.
5467 if test ${enable_werror+y}
5468 then :
5469 enableval=$enable_werror; case "$enableval" in
5470 no)
5471 werror=no
5472 ;;
5473 *)
5474 werror=yes
5475 esac
5476
5477 fi
5478
5479
5480
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5482 printf %s "checking for inet_aton in -lresolv... " >&6; }
5483 if test ${ac_cv_lib_resolv_inet_aton+y}
5484 then :
5485 printf %s "(cached) " >&6
5486 else $as_nop
5487 ac_check_lib_save_LIBS=$LIBS
5488 LIBS="-lresolv $LIBS"
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5491
5492 /* Override any GCC internal prototype to avoid an error.
5493 Use char because int might match the return type of a GCC
5494 builtin and then its argument prototype would still apply. */
5495 char inet_aton ();
5496 int
5497 main (void)
5498 {
5499 return inet_aton ();
5500 ;
5501 return 0;
5502 }
5503 _ACEOF
5504 if ac_fn_c_try_link "$LINENO"
5505 then :
5506 ac_cv_lib_resolv_inet_aton=yes
5507 else $as_nop
5508 ac_cv_lib_resolv_inet_aton=no
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5511 conftest$ac_exeext conftest.$ac_ext
5512 LIBS=$ac_check_lib_save_LIBS
5513 fi
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
5515 printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; }
5516 if test "x$ac_cv_lib_resolv_inet_aton" = xyes
5517 then :
5518 printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
5519
5520 LIBS="-lresolv $LIBS"
5521
5522 fi
5523
5524
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5526 printf %s "checking for inet_ntoa in -lnsl... " >&6; }
5527 if test ${ac_cv_lib_nsl_inet_ntoa+y}
5528 then :
5529 printf %s "(cached) " >&6
5530 else $as_nop
5531 ac_check_lib_save_LIBS=$LIBS
5532 LIBS="-lnsl $LIBS"
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535
5536 /* Override any GCC internal prototype to avoid an error.
5537 Use char because int might match the return type of a GCC
5538 builtin and then its argument prototype would still apply. */
5539 char inet_ntoa ();
5540 int
5541 main (void)
5542 {
5543 return inet_ntoa ();
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_link "$LINENO"
5549 then :
5550 ac_cv_lib_nsl_inet_ntoa=yes
5551 else $as_nop
5552 ac_cv_lib_nsl_inet_ntoa=no
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5555 conftest$ac_exeext conftest.$ac_ext
5556 LIBS=$ac_check_lib_save_LIBS
5557 fi
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
5559 printf "%s\n" "$ac_cv_lib_nsl_inet_ntoa" >&6; }
5560 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes
5561 then :
5562 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
5563
5564 LIBS="-lnsl $LIBS"
5565
5566 fi
5567
5568
5569
5570 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
5571 if test "x$ac_cv_header_ctype_h" = xyes
5572 then :
5573 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
5574
5575 fi
5576 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
5577 if test "x$ac_cv_header_errno_h" = xyes
5578 then :
5579 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
5580
5581 fi
5582 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5583 if test "x$ac_cv_header_fcntl_h" = xyes
5584 then :
5585 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
5586
5587 fi
5588 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5589 if test "x$ac_cv_header_limits_h" = xyes
5590 then :
5591 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
5592
5593 fi
5594 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5595 if test "x$ac_cv_header_malloc_h" = xyes
5596 then :
5597 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
5598
5599 fi
5600 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
5601 if test "x$ac_cv_header_netdb_h" = xyes
5602 then :
5603 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
5604
5605 fi
5606 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
5607 if test "x$ac_cv_header_netinet_in_h" = xyes
5608 then :
5609 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
5610
5611 fi
5612 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5613 if test "x$ac_cv_header_stdarg_h" = xyes
5614 then :
5615 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
5616
5617 fi
5618 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
5619 if test "x$ac_cv_header_stdio_h" = xyes
5620 then :
5621 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
5622
5623 fi
5624 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5625 if test "x$ac_cv_header_stdlib_h" = xyes
5626 then :
5627 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
5628
5629 fi
5630 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5631 if test "x$ac_cv_header_string_h" = xyes
5632 then :
5633 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
5634
5635 fi
5636 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5637 if test "x$ac_cv_header_sys_param_h" = xyes
5638 then :
5639 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5640
5641 fi
5642 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
5643 if test "x$ac_cv_header_sys_resource_h" = xyes
5644 then :
5645 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
5646
5647 fi
5648 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5649 if test "x$ac_cv_header_sys_socket_h" = xyes
5650 then :
5651 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
5652
5653 fi
5654 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
5655 if test "x$ac_cv_header_sys_stat_h" = xyes
5656 then :
5657 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
5658
5659 fi
5660 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5661 if test "x$ac_cv_header_sys_time_h" = xyes
5662 then :
5663 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5664
5665 fi
5666 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5667 if test "x$ac_cv_header_sys_types_h" = xyes
5668 then :
5669 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
5670
5671 fi
5672 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
5673 if test "x$ac_cv_header_syslog_h" = xyes
5674 then :
5675 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
5676
5677 fi
5678 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
5679 if test "x$ac_cv_header_poll_h" = xyes
5680 then :
5681 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
5682
5683 fi
5684 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
5685 if test "x$ac_cv_header_time_h" = xyes
5686 then :
5687 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
5688
5689 fi
5690 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5691 if test "x$ac_cv_header_unistd_h" = xyes
5692 then :
5693 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5694
5695 fi
5696
5697
5698 ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
5699 if test "x$ac_cv_header_security_pam_appl_h" = xyes
5700 then :
5701 printf "%s\n" "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h
5702
5703 fi
5704 ac_fn_c_check_header_compile "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
5705 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
5706 then :
5707 printf "%s\n" "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
5708
5709 fi
5710
5711 ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "
5712 #ifdef HAVE_SECURITY_PAM_APPL_H
5713 # include <security/pam_appl.h>
5714 #endif
5715
5716
5717 "
5718 if test "x$ac_cv_header_security_pam_modules_h" = xyes
5719 then :
5720 printf "%s\n" "#define HAVE_SECURITY_PAM_MODULES_H 1" >>confdefs.h
5721
5722 fi
5723 ac_fn_c_check_header_compile "$LINENO" "pam/pam_modules.h" "ac_cv_header_pam_pam_modules_h" "
5724 #ifdef HAVE_SECURITY_PAM_APPL_H
5725 # include <security/pam_appl.h>
5726 #endif
5727
5728
5729 "
5730 if test "x$ac_cv_header_pam_pam_modules_h" = xyes
5731 then :
5732 printf "%s\n" "#define HAVE_PAM_PAM_MODULES_H 1" >>confdefs.h
5733
5734 fi
5735
5736 if test x"$ac_cv_header_security_pam_modules_h" != x"yes" -a x"$ac_cv_header_pam_modules_appl_h" != x"yes"; then
5737 as_fn_error $? "pam_modules.h not found" "$LINENO" 5
5738 fi
5739
5740 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
5741 #ifdef HAVE_SYS_SOCKET_H
5742 # include <sys/socket.h>
5743 #endif
5744
5745
5746 "
5747 if test "x$ac_cv_header_net_if_h" = xyes
5748 then :
5749 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
5750
5751 fi
5752
5753
5754 ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "
5755 #if HAVE_SYS_SOCKET_H
5756 # include <sys/socket.h>
5757 #endif
5758
5759
5760 "
5761 if test "x$ac_cv_header_linux_if_h" = xyes
5762 then :
5763 printf "%s\n" "#define HAVE_LINUX_IF_H 1" >>confdefs.h
5764
5765 fi
5766
5767
5768
5769 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5770 if test "x$ac_cv_type_off_t" = xyes
5771 then :
5772
5773 else $as_nop
5774
5775 printf "%s\n" "#define off_t long int" >>confdefs.h
5776
5777 fi
5778
5779
5780 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
5781 "
5782 if test "x$ac_cv_type_pid_t" = xyes
5783 then :
5784
5785 else $as_nop
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788
5789 #if defined _WIN64 && !defined __CYGWIN__
5790 LLP64
5791 #endif
5792
5793 int
5794 main (void)
5795 {
5796
5797 ;
5798 return 0;
5799 }
5800
5801 _ACEOF
5802 if ac_fn_c_try_compile "$LINENO"
5803 then :
5804 ac_pid_type='int'
5805 else $as_nop
5806 ac_pid_type='__int64'
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5809
5810 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
5811
5812
5813 fi
5814
5815
5816 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5817 if test "x$ac_cv_type_size_t" = xyes
5818 then :
5819
5820 else $as_nop
5821
5822 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5823
5824 fi
5825
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5827 printf %s "checking for uid_t in sys/types.h... " >&6; }
5828 if test ${ac_cv_type_uid_t+y}
5829 then :
5830 printf %s "(cached) " >&6
5831 else $as_nop
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <sys/types.h>
5835
5836 _ACEOF
5837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5838 $EGREP "uid_t" >/dev/null 2>&1
5839 then :
5840 ac_cv_type_uid_t=yes
5841 else $as_nop
5842 ac_cv_type_uid_t=no
5843 fi
5844 rm -rf conftest*
5845
5846 fi
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5848 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
5849 if test $ac_cv_type_uid_t = no; then
5850
5851 printf "%s\n" "#define uid_t int" >>confdefs.h
5852
5853
5854 printf "%s\n" "#define gid_t int" >>confdefs.h
5855
5856 fi
5857
5858
5859
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
5861 printf %s "checking for socklen_t... " >&6; }
5862 if test ${ac_cv_type_socklen_t+y}
5863 then :
5864 printf %s "(cached) " >&6
5865 else $as_nop
5866 ac_cv_type_socklen_t=no
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #ifdef HAVE_SYS_TYPES_H
5870 # include <sys/types.h>
5871 #endif
5872
5873 #ifdef HAVE_SYS_SOCKET_H
5874 # include <sys/socket.h>
5875 #endif
5876
5877 int
5878 main (void)
5879 {
5880 socklen_t foo
5881 ;
5882 return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"
5886 then :
5887 ac_cv_type_socklen_t=yes
5888 fi
5889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5890
5891
5892 fi
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
5894 printf "%s\n" "$ac_cv_type_socklen_t" >&6; }
5895
5896 if test "$ac_cv_type_socklen_t" != "yes"; then
5897
5898 printf "%s\n" "#define socklen_t int" >>confdefs.h
5899
5900 fi
5901
5902
5903
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
5905 printf %s "checking for uint8_t... " >&6; }
5906 if test ${ac_cv_type_uint8_t+y}
5907 then :
5908 printf %s "(cached) " >&6
5909 else $as_nop
5910 ac_cv_type_uint8_t=no
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 #ifdef HAVE_INTTYPES_H
5914 # include <inttypes.h>
5915 #endif
5916
5917 #ifdef HAVE_STDINT_H
5918 # include <stdint.h>
5919 #endif
5920
5921 int
5922 main (void)
5923 {
5924 uint8_t foo
5925 ;
5926 return 0;
5927 }
5928 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"
5930 then :
5931 ac_cv_type_uint8_t=yes
5932 fi
5933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5934
5935
5936 fi
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
5938 printf "%s\n" "$ac_cv_type_uint8_t" >&6; }
5939
5940 if test "$ac_cv_type_uint8_t" != "yes"; then
5941
5942 printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h
5943
5944 fi
5945
5946
5947
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
5949 printf %s "checking for uint16_t... " >&6; }
5950 if test ${ac_cv_type_uint16_t+y}
5951 then :
5952 printf %s "(cached) " >&6
5953 else $as_nop
5954 ac_cv_type_uint16_t=no
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 #ifdef HAVE_INTTYPES_H
5958 # include <inttypes.h>
5959 #endif
5960
5961 #ifdef HAVE_STDINT_H
5962 # include <stdint.h>
5963 #endif
5964
5965 int
5966 main (void)
5967 {
5968 uint16_t foo
5969 ;
5970 return 0;
5971 }
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"
5974 then :
5975 ac_cv_type_uint16_t=yes
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5978
5979
5980 fi
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
5982 printf "%s\n" "$ac_cv_type_uint16_t" >&6; }
5983
5984 if test "$ac_cv_type_uint16_t" != "yes"; then
5985
5986 printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h
5987
5988 fi
5989
5990
5991
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
5993 printf %s "checking for uint32_t... " >&6; }
5994 if test ${ac_cv_type_uint32_t+y}
5995 then :
5996 printf %s "(cached) " >&6
5997 else $as_nop
5998 ac_cv_type_uint32_t=no
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 #ifdef HAVE_INTTYPES_H
6002 # include <inttypes.h>
6003 #endif
6004
6005 #ifdef HAVE_STDINT_H
6006 # include <stdint.h>
6007 #endif
6008
6009 int
6010 main (void)
6011 {
6012 uint32_t foo
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_compile "$LINENO"
6018 then :
6019 ac_cv_type_uint32_t=yes
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6022
6023
6024 fi
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
6026 printf "%s\n" "$ac_cv_type_uint32_t" >&6; }
6027
6028 if test "$ac_cv_type_uint32_t" != "yes"; then
6029
6030 printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h
6031
6032 fi
6033
6034
6035
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
6037 printf %s "checking for uint64_t... " >&6; }
6038 if test ${ac_cv_type_uint64_t+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else $as_nop
6042 ac_cv_type_uint64_t=no
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045 #ifdef HAVE_INTTYPES_H
6046 # include <inttypes.h>
6047 #endif
6048
6049 #ifdef HAVE_STDINT_H
6050 # include <stdint.h>
6051 #endif
6052
6053 int
6054 main (void)
6055 {
6056 uint64_t foo
6057 ;
6058 return 0;
6059 }
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"
6062 then :
6063 ac_cv_type_uint64_t=yes
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6066
6067
6068 fi
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
6070 printf "%s\n" "$ac_cv_type_uint64_t" >&6; }
6071
6072 if test "$ac_cv_type_uint64_t" != "yes"; then
6073
6074 printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h
6075
6076 fi
6077
6078
6079 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
6080 if test "x$ac_cv_func_snprintf" = xyes
6081 then :
6082 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
6083
6084 fi
6085 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
6086 if test "x$ac_cv_func_inet_aton" = xyes
6087 then :
6088 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
6089
6090 fi
6091 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
6092 if test "x$ac_cv_func_inet_pton" = xyes
6093 then :
6094 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
6095
6096 fi
6097 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
6098 if test "x$ac_cv_func_inet_ntop" = xyes
6099 then :
6100 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
6101
6102 fi
6103 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
6104 if test "x$ac_cv_func_setsockopt" = xyes
6105 then :
6106 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
6107
6108 fi
6109 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6110 if test "x$ac_cv_func_strlcat" = xyes
6111 then :
6112 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
6113
6114 fi
6115 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6116 if test "x$ac_cv_func_strlcpy" = xyes
6117 then :
6118 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
6119
6120 fi
6121
6122
6123 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
6124 #ifdef HAVE_NETINET_IN_H
6125 # include <netinet/in.h>
6126 #endif
6127
6128
6129 "
6130 if test "x$ac_cv_type_struct_in6_addr" = xyes
6131 then :
6132
6133 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
6134
6135 fi
6136
6137
6138
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6140 printf %s "checking whether byte ordering is bigendian... " >&6; }
6141 if test ${ac_cv_c_bigendian+y}
6142 then :
6143 printf %s "(cached) " >&6
6144 else $as_nop
6145 ac_cv_c_bigendian=unknown
6146 # See if we're dealing with a universal compiler.
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 #ifndef __APPLE_CC__
6150 not a universal capable compiler
6151 #endif
6152 typedef int dummy;
6153
6154 _ACEOF
6155 if ac_fn_c_try_compile "$LINENO"
6156 then :
6157
6158 # Check for potential -arch flags. It is not universal unless
6159 # there are at least two -arch flags with different values.
6160 ac_arch=
6161 ac_prev=
6162 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6163 if test -n "$ac_prev"; then
6164 case $ac_word in
6165 i?86 | x86_64 | ppc | ppc64)
6166 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6167 ac_arch=$ac_word
6168 else
6169 ac_cv_c_bigendian=universal
6170 break
6171 fi
6172 ;;
6173 esac
6174 ac_prev=
6175 elif test "x$ac_word" = "x-arch"; then
6176 ac_prev=arch
6177 fi
6178 done
6179 fi
6180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6181 if test $ac_cv_c_bigendian = unknown; then
6182 # See if sys/param.h defines the BYTE_ORDER macro.
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <sys/types.h>
6186 #include <sys/param.h>
6187
6188 int
6189 main (void)
6190 {
6191 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6192 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6193 && LITTLE_ENDIAN)
6194 bogus endian macros
6195 #endif
6196
6197 ;
6198 return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"
6202 then :
6203 # It does; now see whether it defined to BIG_ENDIAN or not.
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 #include <sys/types.h>
6207 #include <sys/param.h>
6208
6209 int
6210 main (void)
6211 {
6212 #if BYTE_ORDER != BIG_ENDIAN
6213 not big endian
6214 #endif
6215
6216 ;
6217 return 0;
6218 }
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"
6221 then :
6222 ac_cv_c_bigendian=yes
6223 else $as_nop
6224 ac_cv_c_bigendian=no
6225 fi
6226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6229 fi
6230 if test $ac_cv_c_bigendian = unknown; then
6231 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <limits.h>
6235
6236 int
6237 main (void)
6238 {
6239 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6240 bogus endian macros
6241 #endif
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"
6248 then :
6249 # It does; now see whether it defined to _BIG_ENDIAN or not.
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 #include <limits.h>
6253
6254 int
6255 main (void)
6256 {
6257 #ifndef _BIG_ENDIAN
6258 not big endian
6259 #endif
6260
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"
6266 then :
6267 ac_cv_c_bigendian=yes
6268 else $as_nop
6269 ac_cv_c_bigendian=no
6270 fi
6271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6272 fi
6273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6274 fi
6275 if test $ac_cv_c_bigendian = unknown; then
6276 # Compile a test program.
6277 if test "$cross_compiling" = yes
6278 then :
6279 # Try to guess by grepping values from an object file.
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 unsigned short int ascii_mm[] =
6283 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6284 unsigned short int ascii_ii[] =
6285 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6286 int use_ascii (int i) {
6287 return ascii_mm[i] + ascii_ii[i];
6288 }
6289 unsigned short int ebcdic_ii[] =
6290 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6291 unsigned short int ebcdic_mm[] =
6292 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6293 int use_ebcdic (int i) {
6294 return ebcdic_mm[i] + ebcdic_ii[i];
6295 }
6296 extern int foo;
6297
6298 int
6299 main (void)
6300 {
6301 return use_ascii (foo) == use_ebcdic (foo);
6302 ;
6303 return 0;
6304 }
6305 _ACEOF
6306 if ac_fn_c_try_compile "$LINENO"
6307 then :
6308 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6309 ac_cv_c_bigendian=yes
6310 fi
6311 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6312 if test "$ac_cv_c_bigendian" = unknown; then
6313 ac_cv_c_bigendian=no
6314 else
6315 # finding both strings is unlikely to happen, but who knows?
6316 ac_cv_c_bigendian=unknown
6317 fi
6318 fi
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6321 else $as_nop
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 $ac_includes_default
6325 int
6326 main (void)
6327 {
6328
6329 /* Are we little or big endian? From Harbison&Steele. */
6330 union
6331 {
6332 long int l;
6333 char c[sizeof (long int)];
6334 } u;
6335 u.l = 1;
6336 return u.c[sizeof (long int) - 1] == 1;
6337
6338 ;
6339 return 0;
6340 }
6341 _ACEOF
6342 if ac_fn_c_try_run "$LINENO"
6343 then :
6344 ac_cv_c_bigendian=no
6345 else $as_nop
6346 ac_cv_c_bigendian=yes
6347 fi
6348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6349 conftest.$ac_objext conftest.beam conftest.$ac_ext
6350 fi
6351
6352 fi
6353 fi
6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6355 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
6356 case $ac_cv_c_bigendian in #(
6357 yes)
6358
6359 printf "%s\n" "#define AC_BIG_ENDIAN 1" >>confdefs.h
6360 ;; #(
6361 no)
6362
6363 printf "%s\n" "#define AC_LITTLE_ENDIAN 1" >>confdefs.h
6364
6365 ;; #(
6366 universal)
6367
6368 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6369
6370 ;; #(
6371 *)
6372 as_fn_error $? "unknown endianness
6373 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6374 esac
6375
6376
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6378 printf %s "checking for an ANSI C-conforming const... " >&6; }
6379 if test ${ac_cv_c_const+y}
6380 then :
6381 printf %s "(cached) " >&6
6382 else $as_nop
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385
6386 int
6387 main (void)
6388 {
6389
6390 #ifndef __cplusplus
6391 /* Ultrix mips cc rejects this sort of thing. */
6392 typedef int charset[2];
6393 const charset cs = { 0, 0 };
6394 /* SunOS 4.1.1 cc rejects this. */
6395 char const *const *pcpcc;
6396 char **ppc;
6397 /* NEC SVR4.0.2 mips cc rejects this. */
6398 struct point {int x, y;};
6399 static struct point const zero = {0,0};
6400 /* IBM XL C 1.02.0.0 rejects this.
6401 It does not let you subtract one const X* pointer from another in
6402 an arm of an if-expression whose if-part is not a constant
6403 expression */
6404 const char *g = "string";
6405 pcpcc = &g + (g ? g-g : 0);
6406 /* HPUX 7.0 cc rejects these. */
6407 ++pcpcc;
6408 ppc = (char**) pcpcc;
6409 pcpcc = (char const *const *) ppc;
6410 { /* SCO 3.2v4 cc rejects this sort of thing. */
6411 char tx;
6412 char *t = &tx;
6413 char const *s = 0 ? (char *) 0 : (char const *) 0;
6414
6415 *t++ = 0;
6416 if (s) return 0;
6417 }
6418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6419 int x[] = {25, 17};
6420 const int *foo = &x[0];
6421 ++foo;
6422 }
6423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6424 typedef const int *iptr;
6425 iptr p = 0;
6426 ++p;
6427 }
6428 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
6429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6430 struct s { int j; const int *ap[3]; } bx;
6431 struct s *b = &bx; b->j = 5;
6432 }
6433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6434 const int foo = 10;
6435 if (!foo) return 0;
6436 }
6437 return !cs[0] && !zero.x;
6438 #endif
6439
6440 ;
6441 return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"
6445 then :
6446 ac_cv_c_const=yes
6447 else $as_nop
6448 ac_cv_c_const=no
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6451 fi
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6453 printf "%s\n" "$ac_cv_c_const" >&6; }
6454 if test $ac_cv_c_const = no; then
6455
6456 printf "%s\n" "#define const /**/" >>confdefs.h
6457
6458 fi
6459
6460
6461
6462
6463
6464 if test "x$developer" = "xyes"; then
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
6466 printf "%s\n" "$as_me: Setting additional developer CFLAGS" >&6;}
6467
6468
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Weverything\"" >&5
6470 printf %s "checking for the compiler flag \"-Weverything\"... " >&6; }
6471 if test ${ax_cv_cc_weverything_flag+y}
6472 then :
6473 printf %s "(cached) " >&6
6474 else $as_nop
6475
6476
6477 CFLAGS_SAVED=$CFLAGS
6478 CFLAGS="$CFLAGS -Werror -Weverything -Wno-reserved-id-macro -Wno-unused-macros -Wno-unreachable-code-return -Wno-poison-system-directories"
6479
6480 ac_ext=c
6481 ac_cpp='$CPP $CPPFLAGS'
6482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6485
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488
6489 int
6490 main (void)
6491 {
6492 return 0;
6493 ;
6494 return 0;
6495 }
6496 _ACEOF
6497 if ac_fn_c_try_compile "$LINENO"
6498 then :
6499 ax_cv_cc_weverything_flag="yes"
6500 else $as_nop
6501 ax_cv_cc_weverything_flag="no"
6502 fi
6503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6504 ac_ext=c
6505 ac_cpp='$CPP $CPPFLAGS'
6506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509
6510
6511 CFLAGS="$CFLAGS_SAVED"
6512
6513 fi
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_weverything_flag" >&5
6515 printf "%s\n" "$ax_cv_cc_weverything_flag" >&6; }
6516
6517 if test "x$ax_cv_cc_weverything_flag" = "xyes"; then
6518 devcflags="$devcflags \
6519 -W \
6520 -Weverything \
6521 -Wformat=2 \
6522 -Wno-date-time \
6523 -Wno-disabled-macro-expansion \
6524 -Wno-format-pedantic \
6525 -Wno-missing-field-initializers \
6526 -Wno-cast-align \
6527 -Wno-conversion \
6528 -Wno-covered-switch-default \
6529 -Wno-documentation-unknown-command \
6530 -Wno-invalid-offsetof \
6531 -Wno-gnu-empty-initializer \
6532 -Wno-gnu-statement-expression \
6533 -Wno-gnu-zero-variadic-macro-arguments \
6534 -Wno-packed \
6535 -Wno-padded \
6536 -Wno-poison-system-directories \
6537 -Wno-reserved-id-macro \
6538 -Wno-shorten-64-to-32 \
6539 -Wno-sign-conversion \
6540 -Wno-switch-enum \
6541 -Wno-vla"
6542 else
6543 if test "x$GCC" = "xyes"; then
6544 devcflags="$devcflags \
6545 -W \
6546 -Wall \
6547 -Wcast-align \
6548 -Wcast-qual \
6549 -Wformat-nonliteral \
6550 -Wformat-security \
6551 -Wformat-y2k \
6552 -Wformat=2 \
6553 -Wmissing-declarations \
6554 -Wmissing-prototypes \
6555 -Wnested-externs \
6556 -Wno-cast-align \
6557 -Wno-format-extra-args \
6558 -Wno-format-zero-length \
6559 -Wno-missing-field-initializers \
6560 -Wpointer-arith \
6561 -Wredundant-decls \
6562 -Wshadow \
6563 -Wstrict-prototypes \
6564 -Wundef \
6565 -Wwrite-strings"
6566 INSTALLSTRIP=""
6567 fi
6568 fi
6569
6570
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
6572 printf %s "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
6573 if test ${ax_cv_cc_wdocumentation_flag+y}
6574 then :
6575 printf %s "(cached) " >&6
6576 else $as_nop
6577
6578
6579 CFLAGS_SAVED=$CFLAGS
6580 CFLAGS="$CFLAGS -Werror -Wdocumentation"
6581
6582 ac_ext=c
6583 ac_cpp='$CPP $CPPFLAGS'
6584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590
6591 int
6592 main (void)
6593 {
6594 return 0;
6595 ;
6596 return 0;
6597 }
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"
6600 then :
6601 ax_cv_cc_wdocumentation_flag="yes"
6602 else $as_nop
6603 ax_cv_cc_wdocumentation_flag="no"
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6606 ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611
6612
6613 CFLAGS="$CFLAGS_SAVED"
6614
6615 fi
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
6617 printf "%s\n" "$ax_cv_cc_wdocumentation_flag" >&6; }
6618
6619 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
6620 devcflags="$devcflags -Wdocumentation"
6621
6622 printf "%s\n" "#define HAVE_WDOCUMENTATION 1" >>confdefs.h
6623
6624 fi
6625
6626
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wimplicit-fallthrough\"" >&5
6628 printf %s "checking for the compiler flag \"-Wimplicit-fallthrough\"... " >&6; }
6629 if test ${ax_cv_cc_wimplicit_fallthrough_flag+y}
6630 then :
6631 printf %s "(cached) " >&6
6632 else $as_nop
6633
6634
6635 CFLAGS_SAVED=$CFLAGS
6636 CFLAGS="$CFLAGS -Werror -Wimplicit-fallthrough"
6637
6638 ac_ext=c
6639 ac_cpp='$CPP $CPPFLAGS'
6640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6643
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646
6647 int
6648 main (void)
6649 {
6650 return 0;
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 if ac_fn_c_try_compile "$LINENO"
6656 then :
6657 ax_cv_cc_wimplicit_fallthrough_flag="yes"
6658 else $as_nop
6659 ax_cv_cc_wimplicit_fallthrough_flag="no"
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6662 ac_ext=c
6663 ac_cpp='$CPP $CPPFLAGS'
6664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6667
6668
6669 CFLAGS="$CFLAGS_SAVED"
6670
6671 fi
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wimplicit_fallthrough_flag" >&5
6673 printf "%s\n" "$ax_cv_cc_wimplicit_fallthrough_flag" >&6; }
6674
6675 if test "x$ax_cv_cc_wimplicit_fallthrough_flag" = "xyes"; then
6676 devcflags="$devcflags -Wimplicit-fallthrough"
6677 fi
6678
6679 fsanitizeflags=
6680
6681 if test "x$address_sanitizer" = "xyes"; then
6682 devcflags="$devcflags -fno-omit-frame-pointer -fno-optimize-sibling-calls"
6683
6684 ac_fn_c_check_header_compile "$LINENO" "sanitizer/lsan_interface.h" "ac_cv_header_sanitizer_lsan_interface_h" "$ac_includes_default"
6685 if test "x$ac_cv_header_sanitizer_lsan_interface_h" = xyes
6686 then :
6687 printf "%s\n" "#define HAVE_SANITIZER_LSAN_INTERFACE_H 1" >>confdefs.h
6688
6689 fi
6690
6691 fsanitizeflags="$fsanitizeflags,address"
6692 fi
6693
6694 if test "x$leak_sanitizer" = "xyes"; then
6695 fsanitizeflags="$fsanitizeflags,leak"
6696 fi
6697
6698 devcflags="$(echo $devcflags | sed -e 's/\\t//g;s/ //g')"
6699 devldflags="$(echo $devldflags | sed -e 's/\\t//g;s/ //g')"
6700
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devcflags\"" >&5
6702 printf "%s\n" "$as_me: Developer CFLAGS are \"$devcflags\"" >&6;}
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Developer LDFLAGS are \"$devldflags\"" >&5
6704 printf "%s\n" "$as_me: Developer LDFLAGS are \"$devldflags\"" >&6;}
6705
6706 if test "x$EXPERIMENTAL" != "xno"; then
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
6708 printf "%s\n" "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
6709 EXPERIMENTAL=yes
6710 fi
6711 else
6712 devcflags=""
6713 devldflags=""
6714 CFLAGS="$CFLAGS -DNDEBUG"
6715 INSTALLSTRIP=""
6716 fi
6717
6718
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
6720 printf %s "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
6721 if test ${ax_cv_cc_wdocumentation_flag+y}
6722 then :
6723 printf %s "(cached) " >&6
6724 else $as_nop
6725
6726
6727 CFLAGS_SAVED=$CFLAGS
6728 CFLAGS="$CFLAGS -Werror -Wdocumentation"
6729
6730 ac_ext=c
6731 ac_cpp='$CPP $CPPFLAGS'
6732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6735
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6738
6739 int
6740 main (void)
6741 {
6742 return 0;
6743 ;
6744 return 0;
6745 }
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"
6748 then :
6749 ax_cv_cc_wdocumentation_flag="yes"
6750 else $as_nop
6751 ax_cv_cc_wdocumentation_flag="no"
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6754 ac_ext=c
6755 ac_cpp='$CPP $CPPFLAGS'
6756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759
6760
6761 CFLAGS="$CFLAGS_SAVED"
6762
6763 fi
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
6765 printf "%s\n" "$ax_cv_cc_wdocumentation_flag" >&6; }
6766
6767 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
6768 devflags="-Wdocumentation"
6769 fi
6770
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
6772 printf %s "checking if building with -DNDEBUG... " >&6; }
6773 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6775 printf "%s\n" "yes" >&6; }
6776
6777 printf "%s\n" "#define WITH_NDEBUG 1" >>confdefs.h
6778
6779 else
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 printf "%s\n" "no" >&6; }
6782 fi
6783
6784 HOSTINFO=$host
6785
6786
6787 CFLAGS="$CFLAGS $devcflags"
6788 LDFLAGS="$LDFLAGS $devldflags"
6789 if test "x$werror" = "xyes"; then
6790 CFLAGS="-Werror $CFLAGS"
6791 fi
6792
6793
6794
6795 unset ac_cv_env_LIBS_set
6796 unset ac_cv_env_LIBS_value
6797
6798 ac_config_files="$ac_config_files Make.inc"
6799
6800 cat >confcache <<\_ACEOF
6801 # This file is a shell script that caches the results of configure
6802 # tests run on this system so they can be shared between configure
6803 # scripts and configure runs, see configure's option --config-cache.
6804 # It is not useful on other systems. If it contains results you don't
6805 # want to keep, you may remove or edit it.
6806 #
6807 # config.status only pays attention to the cache file if you give it
6808 # the --recheck option to rerun configure.
6809 #
6810 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6811 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6812 # following values.
6813
6814 _ACEOF
6815
6816 # The following way of writing the cache mishandles newlines in values,
6817 # but we know of no workaround that is simple, portable, and efficient.
6818 # So, we kill variables containing newlines.
6819 # Ultrix sh set writes to stderr and can't be redirected directly,
6820 # and sets the high bit in the cache file unless we assign to the vars.
6821 (
6822 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6823 eval ac_val=\$$ac_var
6824 case $ac_val in #(
6825 *${as_nl}*)
6826 case $ac_var in #(
6827 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6828 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6829 esac
6830 case $ac_var in #(
6831 _ | IFS | as_nl) ;; #(
6832 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6833 *) { eval $ac_var=; unset $ac_var;} ;;
6834 esac ;;
6835 esac
6836 done
6837
6838 (set) 2>&1 |
6839 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6840 *${as_nl}ac_space=\ *)
6841 # `set' does not quote correctly, so add quotes: double-quote
6842 # substitution turns \\\\ into \\, and sed turns \\ into \.
6843 sed -n \
6844 "s/'/'\\\\''/g;
6845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6846 ;; #(
6847 *)
6848 # `set' quotes correctly as required by POSIX, so do not add quotes.
6849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6850 ;;
6851 esac |
6852 sort
6853 ) |
6854 sed '
6855 /^ac_cv_env_/b end
6856 t clear
6857 :clear
6858 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6859 t end
6860 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6861 :end' >>confcache
6862 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6863 if test -w "$cache_file"; then
6864 if test "x$cache_file" != "x/dev/null"; then
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6866 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6867 if test ! -f "$cache_file" || test -h "$cache_file"; then
6868 cat confcache >"$cache_file"
6869 else
6870 case $cache_file in #(
6871 */* | ?:*)
6872 mv -f confcache "$cache_file"$$ &&
6873 mv -f "$cache_file"$$ "$cache_file" ;; #(
6874 *)
6875 mv -f confcache "$cache_file" ;;
6876 esac
6877 fi
6878 fi
6879 else
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6881 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6882 fi
6883 fi
6884 rm -f confcache
6885
6886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6887 # Let make expand exec_prefix.
6888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6889
6890 DEFS=-DHAVE_CONFIG_H
6891
6892 ac_libobjs=
6893 ac_ltlibobjs=
6894 U=
6895 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6896 # 1. Remove the extension, and $U if already installed.
6897 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6898 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6899 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6900 # will be set to the directory where LIBOBJS objects are built.
6901 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6902 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6903 done
6904 LIBOBJS=$ac_libobjs
6905
6906 LTLIBOBJS=$ac_ltlibobjs
6907
6908
6909
6910
6911
6912 : "${CONFIG_STATUS=./config.status}"
6913 ac_write_fail=0
6914 ac_clean_files_save=$ac_clean_files
6915 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6917 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6918 as_write_fail=0
6919 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6920 #! $SHELL
6921 # Generated by $as_me.
6922 # Run this file to recreate the current configuration.
6923 # Compiler output produced by configure, useful for debugging
6924 # configure, is in config.log if it exists.
6925
6926 debug=false
6927 ac_cs_recheck=false
6928 ac_cs_silent=false
6929
6930 SHELL=\${CONFIG_SHELL-$SHELL}
6931 export SHELL
6932 _ASEOF
6933 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6934 ## -------------------- ##
6935 ## M4sh Initialization. ##
6936 ## -------------------- ##
6937
6938 # Be more Bourne compatible
6939 DUALCASE=1; export DUALCASE # for MKS sh
6940 as_nop=:
6941 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6942 then :
6943 emulate sh
6944 NULLCMD=:
6945 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6946 # is contrary to our usage. Disable this feature.
6947 alias -g '${1+"$@"}'='"$@"'
6948 setopt NO_GLOB_SUBST
6949 else $as_nop
6950 case `(set -o) 2>/dev/null` in #(
6951 *posix*) :
6952 set -o posix ;; #(
6953 *) :
6954 ;;
6955 esac
6956 fi
6957
6958
6959
6960 # Reset variables that may have inherited troublesome values from
6961 # the environment.
6962
6963 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6964 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6965 # side effect of setting IFS to empty, thus disabling word splitting.)
6966 # Quoting is to prevent editors from complaining about space-tab.
6967 as_nl='
6968 '
6969 export as_nl
6970 IFS=" "" $as_nl"
6971
6972 PS1='$ '
6973 PS2='> '
6974 PS4='+ '
6975
6976 # Ensure predictable behavior from utilities with locale-dependent output.
6977 LC_ALL=C
6978 export LC_ALL
6979 LANGUAGE=C
6980 export LANGUAGE
6981
6982 # We cannot yet rely on "unset" to work, but we need these variables
6983 # to be unset--not just set to an empty or harmless value--now, to
6984 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6985 # also avoids known problems related to "unset" and subshell syntax
6986 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6987 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6988 do eval test \${$as_var+y} \
6989 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6990 done
6991
6992 # Ensure that fds 0, 1, and 2 are open.
6993 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6994 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6995 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6996
6997 # The user is always right.
6998 if ${PATH_SEPARATOR+false} :; then
6999 PATH_SEPARATOR=:
7000 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7001 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7002 PATH_SEPARATOR=';'
7003 }
7004 fi
7005
7006
7007 # Find who we are. Look in the path if we contain no directory separator.
7008 as_myself=
7009 case $0 in #((
7010 *[\\/]* ) as_myself=$0 ;;
7011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 case $as_dir in #(((
7016 '') as_dir=./ ;;
7017 */) ;;
7018 *) as_dir=$as_dir/ ;;
7019 esac
7020 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7021 done
7022 IFS=$as_save_IFS
7023
7024 ;;
7025 esac
7026 # We did not find ourselves, most probably we were run as `sh COMMAND'
7027 # in which case we are not to be found in the path.
7028 if test "x$as_myself" = x; then
7029 as_myself=$0
7030 fi
7031 if test ! -f "$as_myself"; then
7032 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7033 exit 1
7034 fi
7035
7036
7037
7038 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7039 # ----------------------------------------
7040 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7041 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7042 # script with STATUS, using 1 if that was 0.
7043 as_fn_error ()
7044 {
7045 as_status=$1; test $as_status -eq 0 && as_status=1
7046 if test "$4"; then
7047 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7049 fi
7050 printf "%s\n" "$as_me: error: $2" >&2
7051 as_fn_exit $as_status
7052 } # as_fn_error
7053
7054
7055
7056 # as_fn_set_status STATUS
7057 # -----------------------
7058 # Set $? to STATUS, without forking.
7059 as_fn_set_status ()
7060 {
7061 return $1
7062 } # as_fn_set_status
7063
7064 # as_fn_exit STATUS
7065 # -----------------
7066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7067 as_fn_exit ()
7068 {
7069 set +e
7070 as_fn_set_status $1
7071 exit $1
7072 } # as_fn_exit
7073
7074 # as_fn_unset VAR
7075 # ---------------
7076 # Portably unset VAR.
7077 as_fn_unset ()
7078 {
7079 { eval $1=; unset $1;}
7080 }
7081 as_unset=as_fn_unset
7082
7083 # as_fn_append VAR VALUE
7084 # ----------------------
7085 # Append the text in VALUE to the end of the definition contained in VAR. Take
7086 # advantage of any shell optimizations that allow amortized linear growth over
7087 # repeated appends, instead of the typical quadratic growth present in naive
7088 # implementations.
7089 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7090 then :
7091 eval 'as_fn_append ()
7092 {
7093 eval $1+=\$2
7094 }'
7095 else $as_nop
7096 as_fn_append ()
7097 {
7098 eval $1=\$$1\$2
7099 }
7100 fi # as_fn_append
7101
7102 # as_fn_arith ARG...
7103 # ------------------
7104 # Perform arithmetic evaluation on the ARGs, and store the result in the
7105 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7106 # must be portable across $(()) and expr.
7107 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7108 then :
7109 eval 'as_fn_arith ()
7110 {
7111 as_val=$(( $* ))
7112 }'
7113 else $as_nop
7114 as_fn_arith ()
7115 {
7116 as_val=`expr "$@" || test $? -eq 1`
7117 }
7118 fi # as_fn_arith
7119
7120
7121 if expr a : '\(a\)' >/dev/null 2>&1 &&
7122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7123 as_expr=expr
7124 else
7125 as_expr=false
7126 fi
7127
7128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7129 as_basename=basename
7130 else
7131 as_basename=false
7132 fi
7133
7134 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7135 as_dirname=dirname
7136 else
7137 as_dirname=false
7138 fi
7139
7140 as_me=`$as_basename -- "$0" ||
7141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7142 X"$0" : 'X\(//\)$' \| \
7143 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7144 printf "%s\n" X/"$0" |
7145 sed '/^.*\/\([^/][^/]*\)\/*$/{
7146 s//\1/
7147 q
7148 }
7149 /^X\/\(\/\/\)$/{
7150 s//\1/
7151 q
7152 }
7153 /^X\/\(\/\).*/{
7154 s//\1/
7155 q
7156 }
7157 s/.*/./; q'`
7158
7159 # Avoid depending upon Character Ranges.
7160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7163 as_cr_digits='0123456789'
7164 as_cr_alnum=$as_cr_Letters$as_cr_digits
7165
7166
7167 # Determine whether it's possible to make 'echo' print without a newline.
7168 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7169 # for compatibility with existing Makefiles.
7170 ECHO_C= ECHO_N= ECHO_T=
7171 case `echo -n x` in #(((((
7172 -n*)
7173 case `echo 'xy\c'` in
7174 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7175 xy) ECHO_C='\c';;
7176 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7177 ECHO_T=' ';;
7178 esac;;
7179 *)
7180 ECHO_N='-n';;
7181 esac
7182
7183 # For backward compatibility with old third-party macros, we provide
7184 # the shell variables $as_echo and $as_echo_n. New code should use
7185 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7186 as_echo='printf %s\n'
7187 as_echo_n='printf %s'
7188
7189 rm -f conf$$ conf$$.exe conf$$.file
7190 if test -d conf$$.dir; then
7191 rm -f conf$$.dir/conf$$.file
7192 else
7193 rm -f conf$$.dir
7194 mkdir conf$$.dir 2>/dev/null
7195 fi
7196 if (echo >conf$$.file) 2>/dev/null; then
7197 if ln -s conf$$.file conf$$ 2>/dev/null; then
7198 as_ln_s='ln -s'
7199 # ... but there are two gotchas:
7200 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7201 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7202 # In both cases, we have to default to `cp -pR'.
7203 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7204 as_ln_s='cp -pR'
7205 elif ln conf$$.file conf$$ 2>/dev/null; then
7206 as_ln_s=ln
7207 else
7208 as_ln_s='cp -pR'
7209 fi
7210 else
7211 as_ln_s='cp -pR'
7212 fi
7213 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7214 rmdir conf$$.dir 2>/dev/null
7215
7216
7217 # as_fn_mkdir_p
7218 # -------------
7219 # Create "$as_dir" as a directory, including parents if necessary.
7220 as_fn_mkdir_p ()
7221 {
7222
7223 case $as_dir in #(
7224 -*) as_dir=./$as_dir;;
7225 esac
7226 test -d "$as_dir" || eval $as_mkdir_p || {
7227 as_dirs=
7228 while :; do
7229 case $as_dir in #(
7230 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7231 *) as_qdir=$as_dir;;
7232 esac
7233 as_dirs="'$as_qdir' $as_dirs"
7234 as_dir=`$as_dirname -- "$as_dir" ||
7235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7236 X"$as_dir" : 'X\(//\)[^/]' \| \
7237 X"$as_dir" : 'X\(//\)$' \| \
7238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7239 printf "%s\n" X"$as_dir" |
7240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7241 s//\1/
7242 q
7243 }
7244 /^X\(\/\/\)[^/].*/{
7245 s//\1/
7246 q
7247 }
7248 /^X\(\/\/\)$/{
7249 s//\1/
7250 q
7251 }
7252 /^X\(\/\).*/{
7253 s//\1/
7254 q
7255 }
7256 s/.*/./; q'`
7257 test -d "$as_dir" && break
7258 done
7259 test -z "$as_dirs" || eval "mkdir $as_dirs"
7260 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7261
7262
7263 } # as_fn_mkdir_p
7264 if mkdir -p . 2>/dev/null; then
7265 as_mkdir_p='mkdir -p "$as_dir"'
7266 else
7267 test -d ./-p && rmdir ./-p
7268 as_mkdir_p=false
7269 fi
7270
7271
7272 # as_fn_executable_p FILE
7273 # -----------------------
7274 # Test if FILE is an executable regular file.
7275 as_fn_executable_p ()
7276 {
7277 test -f "$1" && test -x "$1"
7278 } # as_fn_executable_p
7279 as_test_x='test -x'
7280 as_executable_p=as_fn_executable_p
7281
7282 # Sed expression to map a string onto a valid CPP name.
7283 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7284
7285 # Sed expression to map a string onto a valid variable name.
7286 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7287
7288
7289 exec 6>&1
7290 ## ----------------------------------- ##
7291 ## Main body of $CONFIG_STATUS script. ##
7292 ## ----------------------------------- ##
7293 _ASEOF
7294 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7295
7296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7297 # Save the log message, to keep $0 and so on meaningful, and to
7298 # report actual input values of CONFIG_FILES etc. instead of their
7299 # values after options handling.
7300 ac_log="
7301 This file was extended by pam_radius $as_me $Id$, which was
7302 generated by GNU Autoconf 2.71. Invocation command line was
7303
7304 CONFIG_FILES = $CONFIG_FILES
7305 CONFIG_HEADERS = $CONFIG_HEADERS
7306 CONFIG_LINKS = $CONFIG_LINKS
7307 CONFIG_COMMANDS = $CONFIG_COMMANDS
7308 $ $0 $@
7309
7310 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7311 "
7312
7313 _ACEOF
7314
7315 case $ac_config_files in *"
7316 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7317 esac
7318
7319 case $ac_config_headers in *"
7320 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7321 esac
7322
7323
7324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7325 # Files that config.status was made for.
7326 config_files="$ac_config_files"
7327 config_headers="$ac_config_headers"
7328
7329 _ACEOF
7330
7331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7332 ac_cs_usage="\
7333 \`$as_me' instantiates files and other configuration actions
7334 from templates according to the current configuration. Unless the files
7335 and actions are specified as TAGs, all are instantiated by default.
7336
7337 Usage: $0 [OPTION]... [TAG]...
7338
7339 -h, --help print this help, then exit
7340 -V, --version print version number and configuration settings, then exit
7341 --config print configuration, then exit
7342 -q, --quiet, --silent
7343 do not print progress messages
7344 -d, --debug don't remove temporary files
7345 --recheck update $as_me by reconfiguring in the same conditions
7346 --file=FILE[:TEMPLATE]
7347 instantiate the configuration file FILE
7348 --header=FILE[:TEMPLATE]
7349 instantiate the configuration header FILE
7350
7351 Configuration files:
7352 $config_files
7353
7354 Configuration headers:
7355 $config_headers
7356
7357 Report bugs to <https://github.com/FreeRADIUS/pam_radius/issues>.
7358 pam_radius home page: <http://www.freeradius.org>."
7359
7360 _ACEOF
7361 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7362 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7364 ac_cs_config='$ac_cs_config_escaped'
7365 ac_cs_version="\\
7366 pam_radius config.status $Id$
7367 configured by $0, generated by GNU Autoconf 2.71,
7368 with options \\"\$ac_cs_config\\"
7369
7370 Copyright (C) 2021 Free Software Foundation, Inc.
7371 This config.status script is free software; the Free Software Foundation
7372 gives unlimited permission to copy, distribute and modify it."
7373
7374 ac_pwd='$ac_pwd'
7375 srcdir='$srcdir'
7376 test -n "\$AWK" || AWK=awk
7377 _ACEOF
7378
7379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7380 # The default lists apply if the user does not specify any file.
7381 ac_need_defaults=:
7382 while test $# != 0
7383 do
7384 case $1 in
7385 --*=?*)
7386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7387 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7388 ac_shift=:
7389 ;;
7390 --*=)
7391 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7392 ac_optarg=
7393 ac_shift=:
7394 ;;
7395 *)
7396 ac_option=$1
7397 ac_optarg=$2
7398 ac_shift=shift
7399 ;;
7400 esac
7401
7402 case $ac_option in
7403 # Handling of the options.
7404 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7405 ac_cs_recheck=: ;;
7406 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7407 printf "%s\n" "$ac_cs_version"; exit ;;
7408 --config | --confi | --conf | --con | --co | --c )
7409 printf "%s\n" "$ac_cs_config"; exit ;;
7410 --debug | --debu | --deb | --de | --d | -d )
7411 debug=: ;;
7412 --file | --fil | --fi | --f )
7413 $ac_shift
7414 case $ac_optarg in
7415 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7416 '') as_fn_error $? "missing file argument" ;;
7417 esac
7418 as_fn_append CONFIG_FILES " '$ac_optarg'"
7419 ac_need_defaults=false;;
7420 --header | --heade | --head | --hea )
7421 $ac_shift
7422 case $ac_optarg in
7423 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7424 esac
7425 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7426 ac_need_defaults=false;;
7427 --he | --h)
7428 # Conflict between --help and --header
7429 as_fn_error $? "ambiguous option: \`$1'
7430 Try \`$0 --help' for more information.";;
7431 --help | --hel | -h )
7432 printf "%s\n" "$ac_cs_usage"; exit ;;
7433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7434 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7435 ac_cs_silent=: ;;
7436
7437 # This is an error.
7438 -*) as_fn_error $? "unrecognized option: \`$1'
7439 Try \`$0 --help' for more information." ;;
7440
7441 *) as_fn_append ac_config_targets " $1"
7442 ac_need_defaults=false ;;
7443
7444 esac
7445 shift
7446 done
7447
7448 ac_configure_extra_args=
7449
7450 if $ac_cs_silent; then
7451 exec 6>/dev/null
7452 ac_configure_extra_args="$ac_configure_extra_args --silent"
7453 fi
7454
7455 _ACEOF
7456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7457 if \$ac_cs_recheck; then
7458 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7459 shift
7460 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7461 CONFIG_SHELL='$SHELL'
7462 export CONFIG_SHELL
7463 exec "\$@"
7464 fi
7465
7466 _ACEOF
7467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7468 exec 5>>config.log
7469 {
7470 echo
7471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7472 ## Running $as_me. ##
7473 _ASBOX
7474 printf "%s\n" "$ac_log"
7475 } >&5
7476
7477 _ACEOF
7478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7479 _ACEOF
7480
7481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7482
7483 # Handling of arguments.
7484 for ac_config_target in $ac_config_targets
7485 do
7486 case $ac_config_target in
7487 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
7488 "Make.inc") CONFIG_FILES="$CONFIG_FILES Make.inc" ;;
7489
7490 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7491 esac
7492 done
7493
7494
7495 # If the user did not use the arguments to specify the items to instantiate,
7496 # then the envvar interface is used. Set only those that are not.
7497 # We use the long form for the default assignment because of an extremely
7498 # bizarre bug on SunOS 4.1.3.
7499 if $ac_need_defaults; then
7500 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7501 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7502 fi
7503
7504 # Have a temporary directory for convenience. Make it in the build tree
7505 # simply because there is no reason against having it here, and in addition,
7506 # creating and moving files from /tmp can sometimes cause problems.
7507 # Hook for its removal unless debugging.
7508 # Note that there is a small window in which the directory will not be cleaned:
7509 # after its creation but before its name has been assigned to `$tmp'.
7510 $debug ||
7511 {
7512 tmp= ac_tmp=
7513 trap 'exit_status=$?
7514 : "${ac_tmp:=$tmp}"
7515 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7516 ' 0
7517 trap 'as_fn_exit 1' 1 2 13 15
7518 }
7519 # Create a (secure) tmp directory for tmp files.
7520
7521 {
7522 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7523 test -d "$tmp"
7524 } ||
7525 {
7526 tmp=./conf$$-$RANDOM
7527 (umask 077 && mkdir "$tmp")
7528 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7529 ac_tmp=$tmp
7530
7531 # Set up the scripts for CONFIG_FILES section.
7532 # No need to generate them if there are no CONFIG_FILES.
7533 # This happens for instance with `./config.status config.h'.
7534 if test -n "$CONFIG_FILES"; then
7535
7536
7537 ac_cr=`echo X | tr X '\015'`
7538 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7539 # But we know of no other shell where ac_cr would be empty at this
7540 # point, so we can use a bashism as a fallback.
7541 if test "x$ac_cr" = x; then
7542 eval ac_cr=\$\'\\r\'
7543 fi
7544 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7545 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7546 ac_cs_awk_cr='\\r'
7547 else
7548 ac_cs_awk_cr=$ac_cr
7549 fi
7550
7551 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7552 _ACEOF
7553
7554
7555 {
7556 echo "cat >conf$$subs.awk <<_ACEOF" &&
7557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7558 echo "_ACEOF"
7559 } >conf$$subs.sh ||
7560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7561 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7562 ac_delim='%!_!# '
7563 for ac_last_try in false false false false false :; do
7564 . ./conf$$subs.sh ||
7565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7566
7567 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7568 if test $ac_delim_n = $ac_delim_num; then
7569 break
7570 elif $ac_last_try; then
7571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7572 else
7573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7574 fi
7575 done
7576 rm -f conf$$subs.sh
7577
7578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7579 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7580 _ACEOF
7581 sed -n '
7582 h
7583 s/^/S["/; s/!.*/"]=/
7584 p
7585 g
7586 s/^[^!]*!//
7587 :repl
7588 t repl
7589 s/'"$ac_delim"'$//
7590 t delim
7591 :nl
7592 h
7593 s/\(.\{148\}\)..*/\1/
7594 t more1
7595 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7596 p
7597 n
7598 b repl
7599 :more1
7600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7601 p
7602 g
7603 s/.\{148\}//
7604 t nl
7605 :delim
7606 h
7607 s/\(.\{148\}\)..*/\1/
7608 t more2
7609 s/["\\]/\\&/g; s/^/"/; s/$/"/
7610 p
7611 b
7612 :more2
7613 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7614 p
7615 g
7616 s/.\{148\}//
7617 t delim
7618 ' <conf$$subs.awk | sed '
7619 /^[^""]/{
7620 N
7621 s/\n//
7622 }
7623 ' >>$CONFIG_STATUS || ac_write_fail=1
7624 rm -f conf$$subs.awk
7625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7626 _ACAWK
7627 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7628 for (key in S) S_is_set[key] = 1
7629 FS = ""
7630
7631 }
7632 {
7633 line = $ 0
7634 nfields = split(line, field, "@")
7635 substed = 0
7636 len = length(field[1])
7637 for (i = 2; i < nfields; i++) {
7638 key = field[i]
7639 keylen = length(key)
7640 if (S_is_set[key]) {
7641 value = S[key]
7642 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7643 len += length(value) + length(field[++i])
7644 substed = 1
7645 } else
7646 len += 1 + keylen
7647 }
7648
7649 print line
7650 }
7651
7652 _ACAWK
7653 _ACEOF
7654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7655 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7656 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7657 else
7658 cat
7659 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7660 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7661 _ACEOF
7662
7663 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7664 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7665 # trailing colons and then remove the whole line if VPATH becomes empty
7666 # (actually we leave an empty line to preserve line numbers).
7667 if test "x$srcdir" = x.; then
7668 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7669 h
7670 s///
7671 s/^/:/
7672 s/[ ]*$/:/
7673 s/:\$(srcdir):/:/g
7674 s/:\${srcdir}:/:/g
7675 s/:@srcdir@:/:/g
7676 s/^:*//
7677 s/:*$//
7678 x
7679 s/\(=[ ]*\).*/\1/
7680 G
7681 s/\n//
7682 s/^[^=]*=[ ]*$//
7683 }'
7684 fi
7685
7686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7687 fi # test -n "$CONFIG_FILES"
7688
7689 # Set up the scripts for CONFIG_HEADERS section.
7690 # No need to generate them if there are no CONFIG_HEADERS.
7691 # This happens for instance with `./config.status Makefile'.
7692 if test -n "$CONFIG_HEADERS"; then
7693 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7694 BEGIN {
7695 _ACEOF
7696
7697 # Transform confdefs.h into an awk script `defines.awk', embedded as
7698 # here-document in config.status, that substitutes the proper values into
7699 # config.h.in to produce config.h.
7700
7701 # Create a delimiter string that does not exist in confdefs.h, to ease
7702 # handling of long lines.
7703 ac_delim='%!_!# '
7704 for ac_last_try in false false :; do
7705 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7706 if test -z "$ac_tt"; then
7707 break
7708 elif $ac_last_try; then
7709 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7710 else
7711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7712 fi
7713 done
7714
7715 # For the awk script, D is an array of macro values keyed by name,
7716 # likewise P contains macro parameters if any. Preserve backslash
7717 # newline sequences.
7718
7719 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7720 sed -n '
7721 s/.\{148\}/&'"$ac_delim"'/g
7722 t rset
7723 :rset
7724 s/^[ ]*#[ ]*define[ ][ ]*/ /
7725 t def
7726 d
7727 :def
7728 s/\\$//
7729 t bsnl
7730 s/["\\]/\\&/g
7731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7732 D["\1"]=" \3"/p
7733 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7734 d
7735 :bsnl
7736 s/["\\]/\\&/g
7737 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7738 D["\1"]=" \3\\\\\\n"\\/p
7739 t cont
7740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7741 t cont
7742 d
7743 :cont
7744 n
7745 s/.\{148\}/&'"$ac_delim"'/g
7746 t clear
7747 :clear
7748 s/\\$//
7749 t bsnlc
7750 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7751 d
7752 :bsnlc
7753 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7754 b cont
7755 ' <confdefs.h | sed '
7756 s/'"$ac_delim"'/"\\\
7757 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7758
7759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7760 for (key in D) D_is_set[key] = 1
7761 FS = ""
7762 }
7763 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7764 line = \$ 0
7765 split(line, arg, " ")
7766 if (arg[1] == "#") {
7767 defundef = arg[2]
7768 mac1 = arg[3]
7769 } else {
7770 defundef = substr(arg[1], 2)
7771 mac1 = arg[2]
7772 }
7773 split(mac1, mac2, "(") #)
7774 macro = mac2[1]
7775 prefix = substr(line, 1, index(line, defundef) - 1)
7776 if (D_is_set[macro]) {
7777 # Preserve the white space surrounding the "#".
7778 print prefix "define", macro P[macro] D[macro]
7779 next
7780 } else {
7781 # Replace #undef with comments. This is necessary, for example,
7782 # in the case of _POSIX_SOURCE, which is predefined and required
7783 # on some systems where configure will not decide to define it.
7784 if (defundef == "undef") {
7785 print "/*", prefix defundef, macro, "*/"
7786 next
7787 }
7788 }
7789 }
7790 { print }
7791 _ACAWK
7792 _ACEOF
7793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7794 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7795 fi # test -n "$CONFIG_HEADERS"
7796
7797
7798 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7799 shift
7800 for ac_tag
7801 do
7802 case $ac_tag in
7803 :[FHLC]) ac_mode=$ac_tag; continue;;
7804 esac
7805 case $ac_mode$ac_tag in
7806 :[FHL]*:*);;
7807 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7808 :[FH]-) ac_tag=-:-;;
7809 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7810 esac
7811 ac_save_IFS=$IFS
7812 IFS=:
7813 set x $ac_tag
7814 IFS=$ac_save_IFS
7815 shift
7816 ac_file=$1
7817 shift
7818
7819 case $ac_mode in
7820 :L) ac_source=$1;;
7821 :[FH])
7822 ac_file_inputs=
7823 for ac_f
7824 do
7825 case $ac_f in
7826 -) ac_f="$ac_tmp/stdin";;
7827 *) # Look for the file first in the build tree, then in the source tree
7828 # (if the path is not absolute). The absolute path cannot be DOS-style,
7829 # because $ac_f cannot contain `:'.
7830 test -f "$ac_f" ||
7831 case $ac_f in
7832 [\\/$]*) false;;
7833 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7834 esac ||
7835 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7836 esac
7837 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7838 as_fn_append ac_file_inputs " '$ac_f'"
7839 done
7840
7841 # Let's still pretend it is `configure' which instantiates (i.e., don't
7842 # use $as_me), people would be surprised to read:
7843 # /* config.h. Generated by config.status. */
7844 configure_input='Generated from '`
7845 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7846 `' by configure.'
7847 if test x"$ac_file" != x-; then
7848 configure_input="$ac_file. $configure_input"
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7850 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7851 fi
7852 # Neutralize special characters interpreted by sed in replacement strings.
7853 case $configure_input in #(
7854 *\&* | *\|* | *\\* )
7855 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7856 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7857 *) ac_sed_conf_input=$configure_input;;
7858 esac
7859
7860 case $ac_tag in
7861 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7863 esac
7864 ;;
7865 esac
7866
7867 ac_dir=`$as_dirname -- "$ac_file" ||
7868 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7869 X"$ac_file" : 'X\(//\)[^/]' \| \
7870 X"$ac_file" : 'X\(//\)$' \| \
7871 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7872 printf "%s\n" X"$ac_file" |
7873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7874 s//\1/
7875 q
7876 }
7877 /^X\(\/\/\)[^/].*/{
7878 s//\1/
7879 q
7880 }
7881 /^X\(\/\/\)$/{
7882 s//\1/
7883 q
7884 }
7885 /^X\(\/\).*/{
7886 s//\1/
7887 q
7888 }
7889 s/.*/./; q'`
7890 as_dir="$ac_dir"; as_fn_mkdir_p
7891 ac_builddir=.
7892
7893 case "$ac_dir" in
7894 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7895 *)
7896 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7897 # A ".." for each directory in $ac_dir_suffix.
7898 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7899 case $ac_top_builddir_sub in
7900 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7901 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7902 esac ;;
7903 esac
7904 ac_abs_top_builddir=$ac_pwd
7905 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7906 # for backward compatibility:
7907 ac_top_builddir=$ac_top_build_prefix
7908
7909 case $srcdir in
7910 .) # We are building in place.
7911 ac_srcdir=.
7912 ac_top_srcdir=$ac_top_builddir_sub
7913 ac_abs_top_srcdir=$ac_pwd ;;
7914 [\\/]* | ?:[\\/]* ) # Absolute name.
7915 ac_srcdir=$srcdir$ac_dir_suffix;
7916 ac_top_srcdir=$srcdir
7917 ac_abs_top_srcdir=$srcdir ;;
7918 *) # Relative name.
7919 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7920 ac_top_srcdir=$ac_top_build_prefix$srcdir
7921 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7922 esac
7923 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7924
7925
7926 case $ac_mode in
7927 :F)
7928 #
7929 # CONFIG_FILE
7930 #
7931
7932 _ACEOF
7933
7934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7935 # If the template does not know about datarootdir, expand it.
7936 # FIXME: This hack should be removed a few years after 2.60.
7937 ac_datarootdir_hack=; ac_datarootdir_seen=
7938 ac_sed_dataroot='
7939 /datarootdir/ {
7940 p
7941 q
7942 }
7943 /@datadir@/p
7944 /@docdir@/p
7945 /@infodir@/p
7946 /@localedir@/p
7947 /@mandir@/p'
7948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7949 *datarootdir*) ac_datarootdir_seen=yes;;
7950 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7952 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7953 _ACEOF
7954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7955 ac_datarootdir_hack='
7956 s&@datadir@&$datadir&g
7957 s&@docdir@&$docdir&g
7958 s&@infodir@&$infodir&g
7959 s&@localedir@&$localedir&g
7960 s&@mandir@&$mandir&g
7961 s&\\\${datarootdir}&$datarootdir&g' ;;
7962 esac
7963 _ACEOF
7964
7965 # Neutralize VPATH when `$srcdir' = `.'.
7966 # Shell code in configure.ac might set extrasub.
7967 # FIXME: do we really want to maintain this feature?
7968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7969 ac_sed_extra="$ac_vpsub
7970 $extrasub
7971 _ACEOF
7972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7973 :t
7974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7975 s|@configure_input@|$ac_sed_conf_input|;t t
7976 s&@top_builddir@&$ac_top_builddir_sub&;t t
7977 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7978 s&@srcdir@&$ac_srcdir&;t t
7979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7980 s&@top_srcdir@&$ac_top_srcdir&;t t
7981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7982 s&@builddir@&$ac_builddir&;t t
7983 s&@abs_builddir@&$ac_abs_builddir&;t t
7984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7985 $ac_datarootdir_hack
7986 "
7987 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7988 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7989
7990 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7991 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7992 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7993 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7995 which seems to be undefined. Please make sure it is defined" >&5
7996 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7997 which seems to be undefined. Please make sure it is defined" >&2;}
7998
7999 rm -f "$ac_tmp/stdin"
8000 case $ac_file in
8001 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8002 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8003 esac \
8004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8005 ;;
8006 :H)
8007 #
8008 # CONFIG_HEADER
8009 #
8010 if test x"$ac_file" != x-; then
8011 {
8012 printf "%s\n" "/* $configure_input */" >&1 \
8013 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8014 } >"$ac_tmp/config.h" \
8015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8016 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8018 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8019 else
8020 rm -f "$ac_file"
8021 mv "$ac_tmp/config.h" "$ac_file" \
8022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8023 fi
8024 else
8025 printf "%s\n" "/* $configure_input */" >&1 \
8026 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8027 || as_fn_error $? "could not create -" "$LINENO" 5
8028 fi
8029 ;;
8030
8031
8032 esac
8033
8034 done # for ac_tag
8035
8036
8037 as_fn_exit 0
8038 _ACEOF
8039 ac_clean_files=$ac_clean_files_save
8040
8041 test $ac_write_fail = 0 ||
8042 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8043
8044
8045 # configure is writing to config.log, and then calls config.status.
8046 # config.status does its own redirection, appending to config.log.
8047 # Unfortunately, on DOS this fails, as config.log is still kept open
8048 # by configure, so config.status won't be able to write to it; its
8049 # output is simply discarded. So we exec the FD to /dev/null,
8050 # effectively closing config.log, so it can be properly (re)opened and
8051 # appended to by config.status. When coming back to configure, we
8052 # need to make the FD available again.
8053 if test "$no_create" != yes; then
8054 ac_cs_success=:
8055 ac_config_status_args=
8056 test "$silent" = yes &&
8057 ac_config_status_args="$ac_config_status_args --quiet"
8058 exec 5>/dev/null
8059 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8060 exec 5>>config.log
8061 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8062 # would make configure fail if this is the last instruction.
8063 $ac_cs_success || as_fn_exit 1
8064 fi
8065 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8067 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8068 fi
8069
8070
8071