configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for simdzone 0.2.4.
4 #
5 # Report bugs to <https://github.com/NLnetLabs/simdzone/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else case e in #(
191 e) as_have_required=no ;;
192 esac
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi ;;
237 esac
238 fi
239
240
241 if test "x$CONFIG_SHELL" != x
242 then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
262 fi
263
264 if test x$as_have_required = xno
265 then :
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 else
272 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
273 $0: https://github.com/NLnetLabs/simdzone/issues about your
274 $0: system, including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
277 fi
278 exit 1
279 fi ;;
280 esac
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382 then :
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
387 else case e in #(
388 e) as_fn_append ()
389 {
390 eval $1=\$$1\$2
391 } ;;
392 esac
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else case e in #(
407 e) as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 } ;;
411 esac
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
491 b
492 :lineno
493 N
494 :loop
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 t loop
497 s/-\n.*//
498 ' >$as_me.lineno &&
499 chmod +x "$as_me.lineno" ||
500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
501
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec=no; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
509 . "./$as_me.lineno"
510 # Exit status is that of the last command.
511 exit
512 }
513
514
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echo -n x` in #(((((
520 -n*)
521 case `echo 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 ECHO_T=' ';;
526 esac;;
527 *)
528 ECHO_N='-n';;
529 esac
530
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo='printf %s\n'
535 as_echo_n='printf %s'
536
537 rm -f conf$$ conf$$.exe conf$$.file
538 if test -d conf$$.dir; then
539 rm -f conf$$.dir/conf$$.file
540 else
541 rm -f conf$$.dir
542 mkdir conf$$.dir 2>/dev/null
543 fi
544 if (echo >conf$$.file) 2>/dev/null; then
545 if ln -s conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s='ln -s'
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
552 as_ln_s='cp -pR'
553 elif ln conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s=ln
555 else
556 as_ln_s='cp -pR'
557 fi
558 else
559 as_ln_s='cp -pR'
560 fi
561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562 rmdir conf$$.dir 2>/dev/null
563
564 if mkdir -p . 2>/dev/null; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566 else
567 test -d ./-p && rmdir ./-p
568 as_mkdir_p=false
569 fi
570
571 as_test_x='test -x'
572 as_executable_p=as_fn_executable_p
573
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
577
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
581
582
583 test -n "$DJDIR" || exec 7<&0 </dev/null
584 exec 6>&1
585
586 # Name of the host.
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590
591 #
592 # Initializations.
593 #
594 ac_default_prefix=/usr/local
595 ac_clean_files=
596 ac_config_libobj_dir=.
597 LIBOBJS=
598 cross_compiling=no
599 subdirs=
600 MFLAGS=
601 MAKEFLAGS=
602
603 # Identity of this package.
604 PACKAGE_NAME='simdzone'
605 PACKAGE_TARNAME='simdzone'
606 PACKAGE_VERSION='0.2.4'
607 PACKAGE_STRING='simdzone 0.2.4'
608 PACKAGE_BUGREPORT='https://github.com/NLnetLabs/simdzone/issues'
609 PACKAGE_URL=''
610
611 # Factoring default headers for most tests.
612 ac_includes_default="\
613 #include <stddef.h>
614 #ifdef HAVE_STDIO_H
615 # include <stdio.h>
616 #endif
617 #ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 #endif
620 #ifdef HAVE_STRING_H
621 # include <string.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_STRINGS_H
630 # include <strings.h>
631 #endif
632 #ifdef HAVE_SYS_TYPES_H
633 # include <sys/types.h>
634 #endif
635 #ifdef HAVE_SYS_STAT_H
636 # include <sys/stat.h>
637 #endif
638 #ifdef HAVE_UNISTD_H
639 # include <unistd.h>
640 #endif"
641
642 ac_header_c_list=
643 ac_subst_vars='LTLIBOBJS
644 LIBOBJS
645 HAVE_HASWELL
646 HAVE_WESTMERE
647 HAVE_ENDIAN_H
648 target_os
649 target_vendor
650 target_cpu
651 target
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 DEPFLAGS
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
667 CC
668 target_alias
669 host_alias
670 build_alias
671 LIBS
672 ECHO_T
673 ECHO_N
674 ECHO_C
675 DEFS
676 mandir
677 localedir
678 libdir
679 psdir
680 pdfdir
681 dvidir
682 htmldir
683 infodir
684 docdir
685 oldincludedir
686 includedir
687 runstatedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_URL
700 PACKAGE_BUGREPORT
701 PACKAGE_STRING
702 PACKAGE_VERSION
703 PACKAGE_TARNAME
704 PACKAGE_NAME
705 PATH_SEPARATOR
706 SHELL'
707 ac_subst_files=''
708 ac_user_opts='
709 enable_option_checking
710 enable_pie
711 enable_westmere
712 enable_haswell
713 '
714 ac_precious_vars='build_alias
715 host_alias
716 target_alias
717 CC
718 CFLAGS
719 LDFLAGS
720 LIBS
721 CPPFLAGS'
722
723
724 # Initialize some variables set by options.
725 ac_init_help=
726 ac_init_version=false
727 ac_unrecognized_opts=
728 ac_unrecognized_sep=
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
731 cache_file=/dev/null
732 exec_prefix=NONE
733 no_create=
734 no_recursion=
735 prefix=NONE
736 program_prefix=NONE
737 program_suffix=NONE
738 program_transform_name=s,x,x,
739 silent=
740 site=
741 srcdir=
742 verbose=
743 x_includes=NONE
744 x_libraries=NONE
745
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 runstatedir='${localstatedir}/run'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
780 ac_prev=
781 continue
782 fi
783
784 case $ac_option in
785 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 *=) ac_optarg= ;;
787 *) ac_optarg=yes ;;
788 esac
789
790 case $ac_dashdash$ac_option in
791 --)
792 ac_dashdash=yes ;;
793
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
795 ac_prev=bindir ;;
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797 bindir=$ac_optarg ;;
798
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
803
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
810
811 --config-cache | -C)
812 cache_file=config.cache ;;
813
814 -datadir | --datadir | --datadi | --datad)
815 ac_prev=datadir ;;
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
818
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
825
826 -disable-* | --disable-*)
827 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830 as_fn_error $? "invalid feature name: '$ac_useropt'"
831 ac_useropt_orig=$ac_useropt
832 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
833 case $ac_user_opts in
834 *"
835 "enable_$ac_useropt"
836 "*) ;;
837 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
838 ac_unrecognized_sep=', ';;
839 esac
840 eval enable_$ac_useropt=no ;;
841
842 -docdir | --docdir | --docdi | --doc | --do)
843 ac_prev=docdir ;;
844 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845 docdir=$ac_optarg ;;
846
847 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
848 ac_prev=dvidir ;;
849 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850 dvidir=$ac_optarg ;;
851
852 -enable-* | --enable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error $? "invalid feature name: '$ac_useropt'"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
860 *"
861 "enable_$ac_useropt"
862 "*) ;;
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
865 esac
866 eval enable_$ac_useropt=\$ac_optarg ;;
867
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
876
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
879 with_gas=yes ;;
880
881 -help | --help | --hel | --he | -h)
882 ac_init_help=long ;;
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
887
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
892
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
894 ac_prev=htmldir ;;
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
896 | --ht=*)
897 htmldir=$ac_optarg ;;
898
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
905
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
907 ac_prev=infodir ;;
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
910
911 -libdir | --libdir | --libdi | --libd)
912 ac_prev=libdir ;;
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
914 libdir=$ac_optarg ;;
915
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
922
923 -localedir | --localedir | --localedi | --localed | --locale)
924 ac_prev=localedir ;;
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
927
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
934
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
936 ac_prev=mandir ;;
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
938 mandir=$ac_optarg ;;
939
940 -nfp | --nfp | --nf)
941 # Obsolete; use --without-fp.
942 with_fp=no ;;
943
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
946 no_create=yes ;;
947
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
950 no_recursion=yes ;;
951
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
960
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
962 ac_prev=prefix ;;
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
964 prefix=$ac_optarg ;;
965
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
972
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
979
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
996
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
998 ac_prev=pdfdir ;;
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1001
1002 -psdir | --psdir | --psdi | --psd | --ps)
1003 ac_prev=psdir ;;
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1005 psdir=$ac_optarg ;;
1006
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1009 silent=yes ;;
1010
1011 -runstatedir | --runstatedir | --runstatedi | --runstated \
1012 | --runstate | --runstat | --runsta | --runst | --runs \
1013 | --run | --ru | --r)
1014 ac_prev=runstatedir ;;
1015 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1016 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1017 | --run=* | --ru=* | --r=*)
1018 runstatedir=$ac_optarg ;;
1019
1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 ac_prev=sbindir ;;
1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 | --sbi=* | --sb=*)
1024 sbindir=$ac_optarg ;;
1025
1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028 | --sharedst | --shareds | --shared | --share | --shar \
1029 | --sha | --sh)
1030 ac_prev=sharedstatedir ;;
1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 | --sha=* | --sh=*)
1035 sharedstatedir=$ac_optarg ;;
1036
1037 -site | --site | --sit)
1038 ac_prev=site ;;
1039 -site=* | --site=* | --sit=*)
1040 site=$ac_optarg ;;
1041
1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 ac_prev=srcdir ;;
1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045 srcdir=$ac_optarg ;;
1046
1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048 | --syscon | --sysco | --sysc | --sys | --sy)
1049 ac_prev=sysconfdir ;;
1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052 sysconfdir=$ac_optarg ;;
1053
1054 -target | --target | --targe | --targ | --tar | --ta | --t)
1055 ac_prev=target_alias ;;
1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057 target_alias=$ac_optarg ;;
1058
1059 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 verbose=yes ;;
1061
1062 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;;
1064
1065 -with-* | --with-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid package name: '$ac_useropt'"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074 "with_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval with_$ac_useropt=\$ac_optarg ;;
1080
1081 -without-* | --without-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid package name: '$ac_useropt'"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090 "with_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval with_$ac_useropt=no ;;
1096
1097 --x)
1098 # Obsolete; use --with-x.
1099 with_x=yes ;;
1100
1101 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102 | --x-incl | --x-inc | --x-in | --x-i)
1103 ac_prev=x_includes ;;
1104 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106 x_includes=$ac_optarg ;;
1107
1108 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110 ac_prev=x_libraries ;;
1111 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113 x_libraries=$ac_optarg ;;
1114
1115 -*) as_fn_error $? "unrecognized option: '$ac_option'
1116 Try '$0 --help' for more information"
1117 ;;
1118
1119 *=*)
1120 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1121 # Reject names that are not valid shell variable names.
1122 case $ac_envvar in #(
1123 '' | [0-9]* | *[!_$as_cr_alnum]* )
1124 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1125 esac
1126 eval $ac_envvar=\$ac_optarg
1127 export $ac_envvar ;;
1128
1129 *)
1130 # FIXME: should be removed in autoconf 3.0.
1131 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1134 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1135 ;;
1136
1137 esac
1138 done
1139
1140 if test -n "$ac_prev"; then
1141 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142 as_fn_error $? "missing argument to $ac_option"
1143 fi
1144
1145 if test -n "$ac_unrecognized_opts"; then
1146 case $enable_option_checking in
1147 no) ;;
1148 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1149 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1150 esac
1151 fi
1152
1153 # Check all directory arguments for consistency.
1154 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1155 datadir sysconfdir sharedstatedir localstatedir includedir \
1156 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1157 libdir localedir mandir runstatedir
1158 do
1159 eval ac_val=\$$ac_var
1160 # Remove trailing slashes.
1161 case $ac_val in
1162 */ )
1163 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1164 eval $ac_var=\$ac_val;;
1165 esac
1166 # Be sure to have absolute directory names.
1167 case $ac_val in
1168 [\\/$]* | ?:[\\/]* ) continue;;
1169 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1170 esac
1171 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1172 done
1173
1174 # There might be people who depend on the old broken behavior: '$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1177 build=$build_alias
1178 host=$host_alias
1179 target=$target_alias
1180
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x; then
1183 if test "x$build_alias" = x; then
1184 cross_compiling=maybe
1185 elif test "x$build_alias" != "x$host_alias"; then
1186 cross_compiling=yes
1187 fi
1188 fi
1189
1190 ac_tool_prefix=
1191 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1192
1193 test "$silent" = yes && exec 6>/dev/null
1194
1195
1196 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1197 ac_ls_di=`ls -di .` &&
1198 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1199 as_fn_error $? "working directory cannot be determined"
1200 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1201 as_fn_error $? "pwd does not report name of working directory"
1202
1203
1204 # Find the source files, if location was not specified.
1205 if test -z "$srcdir"; then
1206 ac_srcdir_defaulted=yes
1207 # Try the directory containing this script, then the parent directory.
1208 ac_confdir=`$as_dirname -- "$as_myself" ||
1209 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1210 X"$as_myself" : 'X\(//\)[^/]' \| \
1211 X"$as_myself" : 'X\(//\)$' \| \
1212 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1213 printf "%s\n" X"$as_myself" |
1214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215 s//\1/
1216 q
1217 }
1218 /^X\(\/\/\)[^/].*/{
1219 s//\1/
1220 q
1221 }
1222 /^X\(\/\/\)$/{
1223 s//\1/
1224 q
1225 }
1226 /^X\(\/\).*/{
1227 s//\1/
1228 q
1229 }
1230 s/.*/./; q'`
1231 srcdir=$ac_confdir
1232 if test ! -r "$srcdir/$ac_unique_file"; then
1233 srcdir=..
1234 fi
1235 else
1236 ac_srcdir_defaulted=no
1237 fi
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1240 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1241 fi
1242 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1243 ac_abs_confdir=`(
1244 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1245 pwd)`
1246 # When building in place, set srcdir=.
1247 if test "$ac_abs_confdir" = "$ac_pwd"; then
1248 srcdir=.
1249 fi
1250 # Remove unnecessary trailing slashes from srcdir.
1251 # Double slashes in file names in object file debugging info
1252 # mess up M-x gdb in Emacs.
1253 case $srcdir in
1254 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 esac
1256 for ac_var in $ac_precious_vars; do
1257 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_env_${ac_var}_value=\$${ac_var}
1259 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1261 done
1262
1263 #
1264 # Report the --help message.
1265 #
1266 if test "$ac_init_help" = "long"; then
1267 # Omit some internal or obsolete options to make the list less imposing.
1268 # This message is too long to be a string in the A/UX 3.1 sh.
1269 cat <<_ACEOF
1270 'configure' configures simdzone 0.2.4 to adapt to many kinds of systems.
1271
1272 Usage: $0 [OPTION]... [VAR=VALUE]...
1273
1274 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275 VAR=VALUE. See below for descriptions of some of the useful variables.
1276
1277 Defaults for the options are specified in brackets.
1278
1279 Configuration:
1280 -h, --help display this help and exit
1281 --help=short display options specific to this package
1282 --help=recursive display the short help of all the included packages
1283 -V, --version display version information and exit
1284 -q, --quiet, --silent do not print 'checking ...' messages
1285 --cache-file=FILE cache test results in FILE [disabled]
1286 -C, --config-cache alias for '--cache-file=config.cache'
1287 -n, --no-create do not create output files
1288 --srcdir=DIR find the sources in DIR [configure dir or '..']
1289
1290 Installation directories:
1291 --prefix=PREFIX install architecture-independent files in PREFIX
1292 [$ac_default_prefix]
1293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1294 [PREFIX]
1295
1296 By default, 'make install' will install all the files in
1297 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1298 an installation prefix other than '$ac_default_prefix' using '--prefix',
1299 for instance '--prefix=\$HOME'.
1300
1301 For better control, use the options below.
1302
1303 Fine tuning of the installation directories:
1304 --bindir=DIR user executables [EPREFIX/bin]
1305 --sbindir=DIR system admin executables [EPREFIX/sbin]
1306 --libexecdir=DIR program executables [EPREFIX/libexec]
1307 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1308 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1309 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1310 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1311 --libdir=DIR object code libraries [EPREFIX/lib]
1312 --includedir=DIR C header files [PREFIX/include]
1313 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1314 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1315 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1316 --infodir=DIR info documentation [DATAROOTDIR/info]
1317 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1318 --mandir=DIR man documentation [DATAROOTDIR/man]
1319 --docdir=DIR documentation root [DATAROOTDIR/doc/simdzone]
1320 --htmldir=DIR html documentation [DOCDIR]
1321 --dvidir=DIR dvi documentation [DOCDIR]
1322 --pdfdir=DIR pdf documentation [DOCDIR]
1323 --psdir=DIR ps documentation [DOCDIR]
1324 _ACEOF
1325
1326 cat <<\_ACEOF
1327
1328 System types:
1329 --build=BUILD configure for building on BUILD [guessed]
1330 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1331 --target=TARGET configure for building compilers for TARGET [HOST]
1332 _ACEOF
1333 fi
1334
1335 if test -n "$ac_init_help"; then
1336 case $ac_init_help in
1337 short | recursive ) echo "Configuration of simdzone 0.2.4:";;
1338 esac
1339 cat <<\_ACEOF
1340
1341 Optional Features:
1342 --disable-option-checking ignore unrecognized --enable/--with options
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --enable-pie Enable Position-Independent Executable (eg. to fully
1346 benefit from ASLR, small performance penalty)
1347 --disable-westmere Disable Westmere (SSE4.2) kernel
1348 --disable-haswell Disable Haswell (AVX2) kernel
1349
1350 Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
1355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
1358
1359 Use these variables to override the choices made by 'configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1361
1362 Report bugs to <https://github.com/NLnetLabs/simdzone/issues>.
1363 _ACEOF
1364 ac_status=$?
1365 fi
1366
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" ||
1371 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1372 continue
1373 ac_builddir=.
1374
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *)
1378 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1390
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for configure.gnu first; this name is used for a wrapper for
1409 # Metaconfig's "Configure" on case-insensitive file systems.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1421 fi
1422
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425 cat <<\_ACEOF
1426 simdzone configure 0.2.4
1427 generated by GNU Autoconf 2.72
1428
1429 Copyright (C) 2023 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1434 fi
1435
1436 ## ------------------------ ##
1437 ## Autoconf initialization. ##
1438 ## ------------------------ ##
1439
1440 # ac_fn_c_try_compile LINENO
1441 # --------------------------
1442 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1443 ac_fn_c_try_compile ()
1444 {
1445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446 rm -f conftest.$ac_objext conftest.beam
1447 if { { ac_try="$ac_compile"
1448 case "(($ac_try" in
1449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1450 *) ac_try_echo=$ac_try;;
1451 esac
1452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1453 printf "%s\n" "$ac_try_echo"; } >&5
1454 (eval "$ac_compile") 2>conftest.err
1455 ac_status=$?
1456 if test -s conftest.err; then
1457 grep -v '^ *+' conftest.err >conftest.er1
1458 cat conftest.er1 >&5
1459 mv -f conftest.er1 conftest.err
1460 fi
1461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1462 test $ac_status = 0; } && {
1463 test -z "$ac_c_werror_flag" ||
1464 test ! -s conftest.err
1465 } && test -s conftest.$ac_objext
1466 then :
1467 ac_retval=0
1468 else case e in #(
1469 e) printf "%s\n" "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.$ac_ext >&5
1471
1472 ac_retval=1 ;;
1473 esac
1474 fi
1475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1476 as_fn_set_status $ac_retval
1477
1478 } # ac_fn_c_try_compile
1479
1480 # ac_fn_c_try_link LINENO
1481 # -----------------------
1482 # Try to link conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_link ()
1484 {
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1487 if { { ac_try="$ac_link"
1488 case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 printf "%s\n" "$ac_try_echo"; } >&5
1494 (eval "$ac_link") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1500 fi
1501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest$ac_exeext && {
1506 test "$cross_compiling" = yes ||
1507 test -x conftest$ac_exeext
1508 }
1509 then :
1510 ac_retval=0
1511 else case e in #(
1512 e) printf "%s\n" "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1514
1515 ac_retval=1 ;;
1516 esac
1517 fi
1518 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1519 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1520 # interfere with the next link command; also delete a directory that is
1521 # left behind by Apple's compiler. We do this before executing the actions.
1522 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524 as_fn_set_status $ac_retval
1525
1526 } # ac_fn_c_try_link
1527
1528 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1529 # -------------------------------------------------------
1530 # Tests whether HEADER exists and can be compiled using the include files in
1531 # INCLUDES, setting the cache variable VAR accordingly.
1532 ac_fn_c_check_header_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1536 printf %s "checking for $2... " >&6; }
1537 if eval test \${$3+y}
1538 then :
1539 printf %s "(cached) " >&6
1540 else case e in #(
1541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1542 /* end confdefs.h. */
1543 $4
1544 #include <$2>
1545 _ACEOF
1546 if ac_fn_c_try_compile "$LINENO"
1547 then :
1548 eval "$3=yes"
1549 else case e in #(
1550 e) eval "$3=no" ;;
1551 esac
1552 fi
1553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1554 esac
1555 fi
1556 eval ac_res=\$$3
1557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1558 printf "%s\n" "$ac_res" >&6; }
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560
1561 } # ac_fn_c_check_header_compile
1562
1563 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1564 # ------------------------------------------------------------------
1565 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1566 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1567 ac_fn_check_decl ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 as_decl_name=`echo $2|sed 's/ *(.*//'`
1571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1572 printf %s "checking whether $as_decl_name is declared... " >&6; }
1573 if eval test \${$3+y}
1574 then :
1575 printf %s "(cached) " >&6
1576 else case e in #(
1577 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1578 eval ac_save_FLAGS=\$$6
1579 as_fn_append $6 " $5"
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h. */
1582 $4
1583 int
1584 main (void)
1585 {
1586 #ifndef $as_decl_name
1587 #ifdef __cplusplus
1588 (void) $as_decl_use;
1589 #else
1590 (void) $as_decl_name;
1591 #endif
1592 #endif
1593
1594 ;
1595 return 0;
1596 }
1597 _ACEOF
1598 if ac_fn_c_try_compile "$LINENO"
1599 then :
1600 eval "$3=yes"
1601 else case e in #(
1602 e) eval "$3=no" ;;
1603 esac
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1606 eval $6=\$ac_save_FLAGS
1607 ;;
1608 esac
1609 fi
1610 eval ac_res=\$$3
1611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 printf "%s\n" "$ac_res" >&6; }
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614
1615 } # ac_fn_check_decl
1616
1617 # ac_fn_c_check_func LINENO FUNC VAR
1618 # ----------------------------------
1619 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1620 ac_fn_c_check_func ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 printf %s "checking for $2... " >&6; }
1625 if eval test \${$3+y}
1626 then :
1627 printf %s "(cached) " >&6
1628 else case e in #(
1629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1633 #define $2 innocuous_$2
1634
1635 /* System header to define __stub macros and hopefully few prototypes,
1636 which can conflict with char $2 (void); below. */
1637
1638 #include <limits.h>
1639 #undef $2
1640
1641 /* Override any GCC internal prototype to avoid an error.
1642 Use char because int might match the return type of a GCC
1643 builtin and then its argument prototype would still apply. */
1644 #ifdef __cplusplus
1645 extern "C"
1646 #endif
1647 char $2 (void);
1648 /* The GNU C library defines this for functions which it implements
1649 to always fail with ENOSYS. Some functions are actually named
1650 something starting with __ and the normal name is an alias. */
1651 #if defined __stub_$2 || defined __stub___$2
1652 choke me
1653 #endif
1654
1655 int
1656 main (void)
1657 {
1658 return $2 ();
1659 ;
1660 return 0;
1661 }
1662 _ACEOF
1663 if ac_fn_c_try_link "$LINENO"
1664 then :
1665 eval "$3=yes"
1666 else case e in #(
1667 e) eval "$3=no" ;;
1668 esac
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1671 conftest$ac_exeext conftest.$ac_ext ;;
1672 esac
1673 fi
1674 eval ac_res=\$$3
1675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 printf "%s\n" "$ac_res" >&6; }
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679 } # ac_fn_c_check_func
1680 ac_configure_args_raw=
1681 for ac_arg
1682 do
1683 case $ac_arg in
1684 *\'*)
1685 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1686 esac
1687 as_fn_append ac_configure_args_raw " '$ac_arg'"
1688 done
1689
1690 case $ac_configure_args_raw in
1691 *$as_nl*)
1692 ac_safe_unquote= ;;
1693 *)
1694 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1695 ac_unsafe_a="$ac_unsafe_z#~"
1696 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1697 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1698 esac
1699
1700 cat >config.log <<_ACEOF
1701 This file contains any messages produced by compilers while
1702 running configure, to aid debugging if configure makes a mistake.
1703
1704 It was created by simdzone $as_me 0.2.4, which was
1705 generated by GNU Autoconf 2.72. Invocation command line was
1706
1707 $ $0$ac_configure_args_raw
1708
1709 _ACEOF
1710 exec 5>>config.log
1711 {
1712 cat <<_ASUNAME
1713 ## --------- ##
1714 ## Platform. ##
1715 ## --------- ##
1716
1717 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1718 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1719 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1720 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1721 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1722
1723 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1724 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1725
1726 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1727 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1728 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1729 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1730 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1731 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1732 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1733
1734 _ASUNAME
1735
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1738 do
1739 IFS=$as_save_IFS
1740 case $as_dir in #(((
1741 '') as_dir=./ ;;
1742 */) ;;
1743 *) as_dir=$as_dir/ ;;
1744 esac
1745 printf "%s\n" "PATH: $as_dir"
1746 done
1747 IFS=$as_save_IFS
1748
1749 } >&5
1750
1751 cat >&5 <<_ACEOF
1752
1753
1754 ## ----------- ##
1755 ## Core tests. ##
1756 ## ----------- ##
1757
1758 _ACEOF
1759
1760
1761 # Keep a trace of the command line.
1762 # Strip out --no-create and --no-recursion so they do not pile up.
1763 # Strip out --silent because we don't want to record it for future runs.
1764 # Also quote any args containing shell meta-characters.
1765 # Make two passes to allow for proper duplicate-argument suppression.
1766 ac_configure_args=
1767 ac_configure_args0=
1768 ac_configure_args1=
1769 ac_must_keep_next=false
1770 for ac_pass in 1 2
1771 do
1772 for ac_arg
1773 do
1774 case $ac_arg in
1775 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1777 | -silent | --silent | --silen | --sile | --sil)
1778 continue ;;
1779 *\'*)
1780 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 esac
1782 case $ac_pass in
1783 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1784 2)
1785 as_fn_append ac_configure_args1 " '$ac_arg'"
1786 if test $ac_must_keep_next = true; then
1787 ac_must_keep_next=false # Got value, back to normal.
1788 else
1789 case $ac_arg in
1790 *=* | --config-cache | -C | -disable-* | --disable-* \
1791 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1792 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1793 | -with-* | --with-* | -without-* | --without-* | --x)
1794 case "$ac_configure_args0 " in
1795 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 esac
1797 ;;
1798 -* ) ac_must_keep_next=true ;;
1799 esac
1800 fi
1801 as_fn_append ac_configure_args " '$ac_arg'"
1802 ;;
1803 esac
1804 done
1805 done
1806 { ac_configure_args0=; unset ac_configure_args0;}
1807 { ac_configure_args1=; unset ac_configure_args1;}
1808
1809 # When interrupted or exit'd, cleanup temporary files, and complete
1810 # config.log. We remove comments because anyway the quotes in there
1811 # would cause problems or look ugly.
1812 # WARNING: Use '\'' to represent an apostrophe within the trap.
1813 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1814 trap 'exit_status=$?
1815 # Sanitize IFS.
1816 IFS=" "" $as_nl"
1817 # Save into config.log some information that might help in debugging.
1818 {
1819 echo
1820
1821 printf "%s\n" "## ---------------- ##
1822 ## Cache variables. ##
1823 ## ---------------- ##"
1824 echo
1825 # The following way of writing the cache mishandles newlines in values,
1826 (
1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828 eval ac_val=\$$ac_var
1829 case $ac_val in #(
1830 *${as_nl}*)
1831 case $ac_var in #(
1832 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1833 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1834 esac
1835 case $ac_var in #(
1836 _ | IFS | as_nl) ;; #(
1837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1838 *) { eval $ac_var=; unset $ac_var;} ;;
1839 esac ;;
1840 esac
1841 done
1842 (set) 2>&1 |
1843 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1844 *${as_nl}ac_space=\ *)
1845 sed -n \
1846 "s/'\''/'\''\\\\'\'''\''/g;
1847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1848 ;; #(
1849 *)
1850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1851 ;;
1852 esac |
1853 sort
1854 )
1855 echo
1856
1857 printf "%s\n" "## ----------------- ##
1858 ## Output variables. ##
1859 ## ----------------- ##"
1860 echo
1861 for ac_var in $ac_subst_vars
1862 do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 printf "%s\n" "$ac_var='\''$ac_val'\''"
1868 done | sort
1869 echo
1870
1871 if test -n "$ac_subst_files"; then
1872 printf "%s\n" "## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##"
1875 echo
1876 for ac_var in $ac_subst_files
1877 do
1878 eval ac_val=\$$ac_var
1879 case $ac_val in
1880 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1881 esac
1882 printf "%s\n" "$ac_var='\''$ac_val'\''"
1883 done | sort
1884 echo
1885 fi
1886
1887 if test -s confdefs.h; then
1888 printf "%s\n" "## ----------- ##
1889 ## confdefs.h. ##
1890 ## ----------- ##"
1891 echo
1892 cat confdefs.h
1893 echo
1894 fi
1895 test "$ac_signal" != 0 &&
1896 printf "%s\n" "$as_me: caught signal $ac_signal"
1897 printf "%s\n" "$as_me: exit $exit_status"
1898 } >&5
1899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901 exit $exit_status
1902 ' 0
1903 for ac_signal in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1905 done
1906 ac_signal=0
1907
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest* confdefs.h
1910
1911 printf "%s\n" "/* confdefs.h */" > confdefs.h
1912
1913 # Predefined preprocessor variables.
1914
1915 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1916
1917 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1918
1919 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1920
1921 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1922
1923 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1924
1925 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1926
1927
1928 # Let the site file select an alternate cache file if it wants to.
1929 # Prefer an explicitly selected file to automatically selected ones.
1930 if test -n "$CONFIG_SITE"; then
1931 ac_site_files="$CONFIG_SITE"
1932 elif test "x$prefix" != xNONE; then
1933 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1934 else
1935 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1936 fi
1937
1938 for ac_site_file in $ac_site_files
1939 do
1940 case $ac_site_file in #(
1941 */*) :
1942 ;; #(
1943 *) :
1944 ac_site_file=./$ac_site_file ;;
1945 esac
1946 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1948 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1949 sed 's/^/| /' "$ac_site_file" >&5
1950 . "$ac_site_file" \
1951 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1952 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1953 as_fn_error $? "failed to load site script $ac_site_file
1954 See 'config.log' for more details" "$LINENO" 5; }
1955 fi
1956 done
1957
1958 if test -r "$cache_file"; then
1959 # Some versions of bash will fail to source /dev/null (special files
1960 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1961 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1963 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1964 case $cache_file in
1965 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1966 *) . "./$cache_file";;
1967 esac
1968 fi
1969 else
1970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1971 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1972 >$cache_file
1973 fi
1974
1975 # Test code for whether the C compiler supports C89 (global declarations)
1976 ac_c_conftest_c89_globals='
1977 /* Does the compiler advertise C89 conformance?
1978 Do not test the value of __STDC__, because some compilers set it to 0
1979 while being otherwise adequately conformant. */
1980 #if !defined __STDC__
1981 # error "Compiler does not advertise C89 conformance"
1982 #endif
1983
1984 #include <stddef.h>
1985 #include <stdarg.h>
1986 struct stat;
1987 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1988 struct buf { int x; };
1989 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1990 static char *e (char **p, int i)
1991 {
1992 return p[i];
1993 }
1994 static char *f (char * (*g) (char **, int), char **p, ...)
1995 {
1996 char *s;
1997 va_list v;
1998 va_start (v,p);
1999 s = g (p, va_arg (v,int));
2000 va_end (v);
2001 return s;
2002 }
2003
2004 /* C89 style stringification. */
2005 #define noexpand_stringify(a) #a
2006 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2007
2008 /* C89 style token pasting. Exercises some of the corner cases that
2009 e.g. old MSVC gets wrong, but not very hard. */
2010 #define noexpand_concat(a,b) a##b
2011 #define expand_concat(a,b) noexpand_concat(a,b)
2012 extern int vA;
2013 extern int vbee;
2014 #define aye A
2015 #define bee B
2016 int *pvA = &expand_concat(v,aye);
2017 int *pvbee = &noexpand_concat(v,bee);
2018
2019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2020 function prototypes and stuff, but not \xHH hex character constants.
2021 These do not provoke an error unfortunately, instead are silently treated
2022 as an "x". The following induces an error, until -std is added to get
2023 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2024 array size at least. It is necessary to write \x00 == 0 to get something
2025 that is true only with -std. */
2026 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2027
2028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2029 inside strings and character constants. */
2030 #define FOO(x) '\''x'\''
2031 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2032
2033 int test (int i, double x);
2034 struct s1 {int (*f) (int a);};
2035 struct s2 {int (*f) (double a);};
2036 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2037 int, int);'
2038
2039 # Test code for whether the C compiler supports C89 (body of main).
2040 ac_c_conftest_c89_main='
2041 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2042 '
2043
2044 # Test code for whether the C compiler supports C99 (global declarations)
2045 ac_c_conftest_c99_globals='
2046 /* Does the compiler advertise C99 conformance? */
2047 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2048 # error "Compiler does not advertise C99 conformance"
2049 #endif
2050
2051 // See if C++-style comments work.
2052
2053 #include <stdbool.h>
2054 extern int puts (const char *);
2055 extern int printf (const char *, ...);
2056 extern int dprintf (int, const char *, ...);
2057 extern void *malloc (size_t);
2058 extern void free (void *);
2059
2060 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2061 // dprintf is used instead of fprintf to avoid needing to declare
2062 // FILE and stderr.
2063 #define debug(...) dprintf (2, __VA_ARGS__)
2064 #define showlist(...) puts (#__VA_ARGS__)
2065 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2066 static void
2067 test_varargs_macros (void)
2068 {
2069 int x = 1234;
2070 int y = 5678;
2071 debug ("Flag");
2072 debug ("X = %d\n", x);
2073 showlist (The first, second, and third items.);
2074 report (x>y, "x is %d but y is %d", x, y);
2075 }
2076
2077 // Check long long types.
2078 #define BIG64 18446744073709551615ull
2079 #define BIG32 4294967295ul
2080 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2081 #if !BIG_OK
2082 #error "your preprocessor is broken"
2083 #endif
2084 #if BIG_OK
2085 #else
2086 #error "your preprocessor is broken"
2087 #endif
2088 static long long int bignum = -9223372036854775807LL;
2089 static unsigned long long int ubignum = BIG64;
2090
2091 struct incomplete_array
2092 {
2093 int datasize;
2094 double data[];
2095 };
2096
2097 struct named_init {
2098 int number;
2099 const wchar_t *name;
2100 double average;
2101 };
2102
2103 typedef const char *ccp;
2104
2105 static inline int
2106 test_restrict (ccp restrict text)
2107 {
2108 // Iterate through items via the restricted pointer.
2109 // Also check for declarations in for loops.
2110 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2111 continue;
2112 return 0;
2113 }
2114
2115 // Check varargs and va_copy.
2116 static bool
2117 test_varargs (const char *format, ...)
2118 {
2119 va_list args;
2120 va_start (args, format);
2121 va_list args_copy;
2122 va_copy (args_copy, args);
2123
2124 const char *str = "";
2125 int number = 0;
2126 float fnumber = 0;
2127
2128 while (*format)
2129 {
2130 switch (*format++)
2131 {
2132 case '\''s'\'': // string
2133 str = va_arg (args_copy, const char *);
2134 break;
2135 case '\''d'\'': // int
2136 number = va_arg (args_copy, int);
2137 break;
2138 case '\''f'\'': // float
2139 fnumber = va_arg (args_copy, double);
2140 break;
2141 default:
2142 break;
2143 }
2144 }
2145 va_end (args_copy);
2146 va_end (args);
2147
2148 return *str && number && fnumber;
2149 }
2150 '
2151
2152 # Test code for whether the C compiler supports C99 (body of main).
2153 ac_c_conftest_c99_main='
2154 // Check bool.
2155 _Bool success = false;
2156 success |= (argc != 0);
2157
2158 // Check restrict.
2159 if (test_restrict ("String literal") == 0)
2160 success = true;
2161 char *restrict newvar = "Another string";
2162
2163 // Check varargs.
2164 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2165 test_varargs_macros ();
2166
2167 // Check flexible array members.
2168 struct incomplete_array *ia =
2169 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2170 ia->datasize = 10;
2171 for (int i = 0; i < ia->datasize; ++i)
2172 ia->data[i] = i * 1.234;
2173 // Work around memory leak warnings.
2174 free (ia);
2175
2176 // Check named initializers.
2177 struct named_init ni = {
2178 .number = 34,
2179 .name = L"Test wide string",
2180 .average = 543.34343,
2181 };
2182
2183 ni.number = 58;
2184
2185 int dynamic_array[ni.number];
2186 dynamic_array[0] = argv[0][0];
2187 dynamic_array[ni.number - 1] = 543;
2188
2189 // work around unused variable warnings
2190 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2191 || dynamic_array[ni.number - 1] != 543);
2192 '
2193
2194 # Test code for whether the C compiler supports C11 (global declarations)
2195 ac_c_conftest_c11_globals='
2196 /* Does the compiler advertise C11 conformance? */
2197 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2198 # error "Compiler does not advertise C11 conformance"
2199 #endif
2200
2201 // Check _Alignas.
2202 char _Alignas (double) aligned_as_double;
2203 char _Alignas (0) no_special_alignment;
2204 extern char aligned_as_int;
2205 char _Alignas (0) _Alignas (int) aligned_as_int;
2206
2207 // Check _Alignof.
2208 enum
2209 {
2210 int_alignment = _Alignof (int),
2211 int_array_alignment = _Alignof (int[100]),
2212 char_alignment = _Alignof (char)
2213 };
2214 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2215
2216 // Check _Noreturn.
2217 int _Noreturn does_not_return (void) { for (;;) continue; }
2218
2219 // Check _Static_assert.
2220 struct test_static_assert
2221 {
2222 int x;
2223 _Static_assert (sizeof (int) <= sizeof (long int),
2224 "_Static_assert does not work in struct");
2225 long int y;
2226 };
2227
2228 // Check UTF-8 literals.
2229 #define u8 syntax error!
2230 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2231
2232 // Check duplicate typedefs.
2233 typedef long *long_ptr;
2234 typedef long int *long_ptr;
2235 typedef long_ptr long_ptr;
2236
2237 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2238 struct anonymous
2239 {
2240 union {
2241 struct { int i; int j; };
2242 struct { int k; long int l; } w;
2243 };
2244 int m;
2245 } v1;
2246 '
2247
2248 # Test code for whether the C compiler supports C11 (body of main).
2249 ac_c_conftest_c11_main='
2250 _Static_assert ((offsetof (struct anonymous, i)
2251 == offsetof (struct anonymous, w.k)),
2252 "Anonymous union alignment botch");
2253 v1.i = 2;
2254 v1.w.k = 5;
2255 ok |= v1.i != 5;
2256 '
2257
2258 # Test code for whether the C compiler supports C11 (complete).
2259 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2260 ${ac_c_conftest_c99_globals}
2261 ${ac_c_conftest_c11_globals}
2262
2263 int
2264 main (int argc, char **argv)
2265 {
2266 int ok = 0;
2267 ${ac_c_conftest_c89_main}
2268 ${ac_c_conftest_c99_main}
2269 ${ac_c_conftest_c11_main}
2270 return ok;
2271 }
2272 "
2273
2274 # Test code for whether the C compiler supports C99 (complete).
2275 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2276 ${ac_c_conftest_c99_globals}
2277
2278 int
2279 main (int argc, char **argv)
2280 {
2281 int ok = 0;
2282 ${ac_c_conftest_c89_main}
2283 ${ac_c_conftest_c99_main}
2284 return ok;
2285 }
2286 "
2287
2288 # Test code for whether the C compiler supports C89 (complete).
2289 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2290
2291 int
2292 main (int argc, char **argv)
2293 {
2294 int ok = 0;
2295 ${ac_c_conftest_c89_main}
2296 return ok;
2297 }
2298 "
2299
2300 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2301 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2302 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2303 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2304 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2305 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2306 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2307 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2308 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2309
2310 # Auxiliary files required by this configure script.
2311 ac_aux_files="config.guess config.sub"
2312
2313 # Locations in which to look for auxiliary files.
2314 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2315
2316 # Search for a directory containing all of the required auxiliary files,
2317 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2318 # If we don't find one directory that contains all the files we need,
2319 # we report the set of missing files from the *first* directory in
2320 # $ac_aux_dir_candidates and give up.
2321 ac_missing_aux_files=""
2322 ac_first_candidate=:
2323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 as_found=false
2326 for as_dir in $ac_aux_dir_candidates
2327 do
2328 IFS=$as_save_IFS
2329 case $as_dir in #(((
2330 '') as_dir=./ ;;
2331 */) ;;
2332 *) as_dir=$as_dir/ ;;
2333 esac
2334 as_found=:
2335
2336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2337 ac_aux_dir_found=yes
2338 ac_install_sh=
2339 for ac_aux in $ac_aux_files
2340 do
2341 # As a special case, if "install-sh" is required, that requirement
2342 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2343 # and $ac_install_sh is set appropriately for whichever one is found.
2344 if test x"$ac_aux" = x"install-sh"
2345 then
2346 if test -f "${as_dir}install-sh"; then
2347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2348 ac_install_sh="${as_dir}install-sh -c"
2349 elif test -f "${as_dir}install.sh"; then
2350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2351 ac_install_sh="${as_dir}install.sh -c"
2352 elif test -f "${as_dir}shtool"; then
2353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2354 ac_install_sh="${as_dir}shtool install -c"
2355 else
2356 ac_aux_dir_found=no
2357 if $ac_first_candidate; then
2358 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2359 else
2360 break
2361 fi
2362 fi
2363 else
2364 if test -f "${as_dir}${ac_aux}"; then
2365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2366 else
2367 ac_aux_dir_found=no
2368 if $ac_first_candidate; then
2369 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2370 else
2371 break
2372 fi
2373 fi
2374 fi
2375 done
2376 if test "$ac_aux_dir_found" = yes; then
2377 ac_aux_dir="$as_dir"
2378 break
2379 fi
2380 ac_first_candidate=false
2381
2382 as_found=false
2383 done
2384 IFS=$as_save_IFS
2385 if $as_found
2386 then :
2387
2388 else case e in #(
2389 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2390 esac
2391 fi
2392
2393
2394 # These three variables are undocumented and unsupported,
2395 # and are intended to be withdrawn in a future Autoconf release.
2396 # They can cause serious problems if a builder's source tree is in a directory
2397 # whose full name contains unusual characters.
2398 if test -f "${ac_aux_dir}config.guess"; then
2399 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2400 fi
2401 if test -f "${ac_aux_dir}config.sub"; then
2402 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2403 fi
2404 if test -f "$ac_aux_dir/configure"; then
2405 ac_configure="$SHELL ${ac_aux_dir}configure"
2406 fi
2407
2408 # Check that the precious variables saved in the cache have kept the same
2409 # value.
2410 ac_cache_corrupted=false
2411 for ac_var in $ac_precious_vars; do
2412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2413 eval ac_new_set=\$ac_env_${ac_var}_set
2414 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2415 eval ac_new_val=\$ac_env_${ac_var}_value
2416 case $ac_old_set,$ac_new_set in
2417 set,)
2418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2419 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2420 ac_cache_corrupted=: ;;
2421 ,set)
2422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2423 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2424 ac_cache_corrupted=: ;;
2425 ,);;
2426 *)
2427 if test "x$ac_old_val" != "x$ac_new_val"; then
2428 # differences in whitespace do not lead to failure.
2429 ac_old_val_w=`echo x $ac_old_val`
2430 ac_new_val_w=`echo x $ac_new_val`
2431 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2433 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2434 ac_cache_corrupted=:
2435 else
2436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2437 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2438 eval $ac_var=\$ac_old_val
2439 fi
2440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2441 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2443 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2444 fi;;
2445 esac
2446 # Pass precious variables to config.status.
2447 if test "$ac_new_set" = set; then
2448 case $ac_new_val in
2449 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2450 *) ac_arg=$ac_var=$ac_new_val ;;
2451 esac
2452 case " $ac_configure_args " in
2453 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2454 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2455 esac
2456 fi
2457 done
2458 if $ac_cache_corrupted; then
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2460 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2462 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2463 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2464 and start over" "$LINENO" 5
2465 fi
2466 ## -------------------- ##
2467 ## Main body of script. ##
2468 ## -------------------- ##
2469
2470 ac_ext=c
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475
2476
2477
2478 ac_config_headers="$ac_config_headers config.h"
2479
2480 ac_config_files="$ac_config_files Makefile"
2481
2482
2483 # acx_nlnetlabs.m4 - common macros for configure checks
2484 # Copyright 2009, Wouter Wijngaards, NLnet Labs.
2485 # BSD licensed.
2486 #
2487 # Version 48
2488 # 2024-01-16 fix to add -l:libssp.a to -lcrypto link check.
2489 # and check for getaddrinfo with only header.
2490 # 2024-01-15 fix to add crypt32 to -lcrypto link check when checking for gdi32.
2491 # 2023-05-04 fix to remove unused whitespace.
2492 # 2023-01-26 fix -Wstrict-prototypes.
2493 # 2022-09-01 fix checking if nonblocking sockets work on OpenBSD.
2494 # 2021-08-17 fix sed script in ssldir split handling.
2495 # 2021-08-17 fix for openssl to detect split version, with ssldir_include
2496 # and ssldir_lib output directories.
2497 # 2021-07-30 fix for openssl use of lib64 directory.
2498 # 2021-06-14 fix nonblocking test to use host instead of target for mingw test.
2499 # 2021-05-17 fix nonblocking socket test from grep on mingw32 to mingw for
2500 # 64bit compatibility.
2501 # 2021-03-24 fix ACX_FUNC_DEPRECATED to use CPPFLAGS and CFLAGS.
2502 # 2021-01-05 fix defun for aclocal
2503 # 2021-01-05 autoconf 2.70 autoupdate and fixes, no AC_TRY_COMPILE
2504 # 2020-08-24 Use EVP_sha256 instead of HMAC_Update (for openssl-3.0.0).
2505 # 2016-03-21 Check -ldl -pthread for libcrypto for ldns and openssl 1.1.0.
2506 # 2016-03-21 Use HMAC_Update instead of HMAC_CTX_Init (for openssl-1.1.0).
2507 # 2016-01-04 -D_DEFAULT_SOURCE defined with -D_BSD_SOURCE for Linux glibc 2.20
2508 # 2015-12-11 FLTO check for new OSX, clang.
2509 # 2015-11-18 spelling check fix.
2510 # 2015-11-05 ACX_SSL_CHECKS no longer adds -ldl needlessly.
2511 # 2015-08-28 ACX_CHECK_PIE and ACX_CHECK_RELRO_NOW added.
2512 # 2015-03-17 AHX_CONFIG_REALLOCARRAY added
2513 # 2013-09-19 FLTO help text improved.
2514 # 2013-07-18 Enable ACX_CHECK_COMPILER_FLAG to test for -Wstrict-prototypes
2515 # 2013-06-25 FLTO has --disable-flto option.
2516 # 2013-05-03 Update W32_SLEEP for newer mingw that links but not defines it.
2517 # 2013-03-22 Fix ACX_RSRC_VERSION for long version numbers.
2518 # 2012-02-09 Fix AHX_MEMCMP_BROKEN with undef in compat/memcmp.h.
2519 # 2012-01-20 Fix COMPILER_FLAGS_UNBOUND for gcc 4.6.2 assigned-not-used-warns.
2520 # 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
2521 # Fix ACX_MALLOC for redefined malloc error.
2522 # Fix GETADDRINFO_WITH_INCLUDES to add -lws2_32
2523 # 2011-11-10 Fix FLTO test to not drop a.out in current directory.
2524 # 2011-11-01 Fix FLTO test for llvm on Lion.
2525 # 2011-08-01 Fix nonblock test (broken at v13).
2526 # 2011-08-01 Fix autoconf 2.68 warnings
2527 # 2011-06-23 Add ACX_CHECK_FLTO to check -flto.
2528 # 2010-08-16 Fix FLAG_OMITTED for AS_TR_CPP changes in autoconf-2.66.
2529 # 2010-07-02 Add check for ss_family (for minix).
2530 # 2010-04-26 Fix to use CPPFLAGS for CHECK_COMPILER_FLAGS.
2531 # 2010-03-01 Fix RPATH using CONFIG_COMMANDS to run at the very end.
2532 # 2010-02-18 WITH_SSL outputs the LIBSSL_LDFLAGS, LIBS, CPPFLAGS separate, -ldl
2533 # 2010-02-01 added ACX_CHECK_MEMCMP_SIGNED, AHX_MEMCMP_BROKEN
2534 # 2010-01-20 added AHX_COONFIG_STRLCAT
2535 # 2009-07-14 U_CHAR detection improved for windows crosscompile.
2536 # added ACX_FUNC_MALLOC
2537 # fixup some #if to #ifdef
2538 # NONBLOCKING test for mingw crosscompile.
2539 # 2009-07-13 added ACX_WITH_SSL_OPTIONAL
2540 # 2009-07-03 fixup LDFLAGS for empty ssl dir.
2541 #
2542 # Automates some of the checking constructs. Aims at portability for POSIX.
2543 # Documentation for functions is below.
2544 #
2545 # the following macro's are provided in this file:
2546 # (see below for details on each macro).
2547 #
2548 # ACX_ESCAPE_BACKSLASH - escape backslashes in var for C-preproc.
2549 # ACX_RSRC_VERSION - create windows resource version number.
2550 # ACX_CHECK_COMPILER_FLAG - see if cc supports a flag.
2551 # ACX_CHECK_ERROR_FLAGS - see which flag is -werror (used below).
2552 # ACX_CHECK_COMPILER_FLAG_NEEDED - see if flags make the code compile cleanly.
2553 # ACX_DEPFLAG - find cc dependency flags.
2554 # ACX_DETERMINE_EXT_FLAGS_UNBOUND - find out which flags enable BSD and POSIX.
2555 # ACX_CHECK_FORMAT_ATTRIBUTE - find cc printf format syntax.
2556 # ACX_CHECK_UNUSED_ATTRIBUTE - find cc variable unused syntax.
2557 # ACX_CHECK_FLTO - see if cc supports -flto and use it if so.
2558 # ACX_LIBTOOL_C_ONLY - create libtool for C only, improved.
2559 # ACX_TYPE_U_CHAR - u_char type.
2560 # ACX_TYPE_RLIM_T - rlim_t type.
2561 # ACX_TYPE_SOCKLEN_T - socklen_t type.
2562 # ACX_TYPE_IN_ADDR_T - in_addr_t type.
2563 # ACX_TYPE_IN_PORT_T - in_port_t type.
2564 # ACX_ARG_RPATH - add --disable-rpath option.
2565 # ACX_WITH_SSL - add --with-ssl option, link -lcrypto.
2566 # ACX_WITH_SSL_OPTIONAL - add --with-ssl option, link -lcrypto,
2567 # where --without-ssl is also accepted
2568 # ACX_LIB_SSL - setup to link -lssl.
2569 # ACX_SYS_LARGEFILE - improved sys_largefile, fseeko, >2G files.
2570 # ACX_CHECK_GETADDRINFO_WITH_INCLUDES - find getaddrinfo, portably.
2571 # ACX_FUNC_DEPRECATED - see if func is deprecated.
2572 # ACX_CHECK_NONBLOCKING_BROKEN - see if nonblocking sockets really work.
2573 # ACX_MKDIR_ONE_ARG - determine mkdir(2) number of arguments.
2574 # ACX_FUNC_IOCTLSOCKET - find ioctlsocket, portably.
2575 # ACX_FUNC_MALLOC - check malloc, define replacement .
2576 # AHX_CONFIG_FORMAT_ATTRIBUTE - config.h text for format.
2577 # AHX_CONFIG_UNUSED_ATTRIBUTE - config.h text for unused.
2578 # AHX_CONFIG_FSEEKO - define fseeko, ftello fallback.
2579 # AHX_CONFIG_RAND_MAX - define RAND_MAX if needed.
2580 # AHX_CONFIG_MAXHOSTNAMELEN - define MAXHOSTNAMELEN if needed.
2581 # AHX_CONFIG_IPV6_MIN_MTU - define IPV6_MIN_MTU if needed.
2582 # AHX_CONFIG_SNPRINTF - snprintf compat prototype
2583 # AHX_CONFIG_INET_PTON - inet_pton compat prototype
2584 # AHX_CONFIG_INET_NTOP - inet_ntop compat prototype
2585 # AHX_CONFIG_INET_ATON - inet_aton compat prototype
2586 # AHX_CONFIG_MEMMOVE - memmove compat prototype
2587 # AHX_CONFIG_STRLCAT - strlcat compat prototype
2588 # AHX_CONFIG_STRLCPY - strlcpy compat prototype
2589 # AHX_CONFIG_GMTIME_R - gmtime_r compat prototype
2590 # AHX_CONFIG_W32_SLEEP - w32 compat for sleep
2591 # AHX_CONFIG_W32_USLEEP - w32 compat for usleep
2592 # AHX_CONFIG_W32_RANDOM - w32 compat for random
2593 # AHX_CONFIG_W32_SRANDOM - w32 compat for srandom
2594 # AHX_CONFIG_W32_FD_SET_T - w32 detection of FD_SET_T.
2595 # ACX_CFLAGS_STRIP - strip one flag from CFLAGS
2596 # ACX_STRIP_EXT_FLAGS - strip extension flags from CFLAGS
2597 # AHX_CONFIG_FLAG_OMITTED - define omitted flag
2598 # AHX_CONFIG_FLAG_EXT - define omitted extension flag
2599 # AHX_CONFIG_EXT_FLAGS - define the stripped extension flags
2600 # ACX_CHECK_MEMCMP_SIGNED - check if memcmp uses signed characters.
2601 # AHX_MEMCMP_BROKEN - replace memcmp func for CHECK_MEMCMP_SIGNED.
2602 # ACX_CHECK_SS_FAMILY - check for sockaddr_storage.ss_family
2603 # ACX_CHECK_PIE - add --enable-pie option and check if works
2604 # ACX_CHECK_RELRO_NOW - add --enable-relro-now option and check it
2605 #
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713 # ===========================================================================
2714 # https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
2715 # ===========================================================================
2716 #
2717 # SYNOPSIS
2718 #
2719 # AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])
2720 #
2721 # DESCRIPTION
2722 #
2723 # Check whether the given FLAG works with the current language's compiler
2724 # or gives an error. (Warnings, however, are ignored)
2725 #
2726 # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
2727 # success/failure.
2728 #
2729 # If EXTRA-FLAGS is defined, it is added to the current language's default
2730 # flags (e.g. CFLAGS) when the check is done. The check is thus made with
2731 # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to
2732 # force the compiler to issue an error when a bad flag is given.
2733 #
2734 # INPUT gives an alternative input source to AC_COMPILE_IFELSE.
2735 #
2736 # NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
2737 # macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG.
2738 #
2739 # LICENSE
2740 #
2741 # Copyright (c) 2008 Guido U. Draheim <guidod (at] gmx.de>
2742 # Copyright (c) 2011 Maarten Bosmans <mkbosmans (at] gmail.com>
2743 #
2744 # Copying and distribution of this file, with or without modification, are
2745 # permitted in any medium without royalty provided the copyright notice
2746 # and this notice are preserved. This file is offered as-is, without any
2747 # warranty.
2748
2749 #serial 6
2750
2751
2752
2753 CFLAGS="$CFLAGS"
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 printf %s "checking for $ac_word... " >&6; }
2773 if test ${ac_cv_prog_CC+y}
2774 then :
2775 printf %s "(cached) " >&6
2776 else case e in #(
2777 e) if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 case $as_dir in #(((
2785 '') as_dir=./ ;;
2786 */) ;;
2787 *) as_dir=$as_dir/ ;;
2788 esac
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi ;;
2800 esac
2801 fi
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 printf "%s\n" "$CC" >&6; }
2806 else
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 printf "%s\n" "no" >&6; }
2809 fi
2810
2811
2812 fi
2813 if test -z "$ac_cv_prog_CC"; then
2814 ac_ct_CC=$CC
2815 # Extract the first word of "gcc", so it can be a program name with args.
2816 set dummy gcc; ac_word=$2
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 printf %s "checking for $ac_word... " >&6; }
2819 if test ${ac_cv_prog_ac_ct_CC+y}
2820 then :
2821 printf %s "(cached) " >&6
2822 else case e in #(
2823 e) if test -n "$ac_ct_CC"; then
2824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 case $as_dir in #(((
2831 '') as_dir=./ ;;
2832 */) ;;
2833 *) as_dir=$as_dir/ ;;
2834 esac
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_ac_ct_CC="gcc"
2838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi ;;
2846 esac
2847 fi
2848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849 if test -n "$ac_ct_CC"; then
2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2851 printf "%s\n" "$ac_ct_CC" >&6; }
2852 else
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 printf "%s\n" "no" >&6; }
2855 fi
2856
2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2865 esac
2866 CC=$ac_ct_CC
2867 fi
2868 else
2869 CC="$ac_cv_prog_CC"
2870 fi
2871
2872 if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}cc; ac_word=$2
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 printf %s "checking for $ac_word... " >&6; }
2878 if test ${ac_cv_prog_CC+y}
2879 then :
2880 printf %s "(cached) " >&6
2881 else case e in #(
2882 e) if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 case $as_dir in #(((
2890 '') as_dir=./ ;;
2891 */) ;;
2892 *) as_dir=$as_dir/ ;;
2893 esac
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_CC="${ac_tool_prefix}cc"
2897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi ;;
2905 esac
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 printf "%s\n" "$CC" >&6; }
2911 else
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 printf "%s\n" "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 fi
2919 if test -z "$CC"; then
2920 # Extract the first word of "cc", so it can be a program name with args.
2921 set dummy cc; ac_word=$2
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 printf %s "checking for $ac_word... " >&6; }
2924 if test ${ac_cv_prog_CC+y}
2925 then :
2926 printf %s "(cached) " >&6
2927 else case e in #(
2928 e) if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 ac_prog_rejected=no
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 case $as_dir in #(((
2937 '') as_dir=./ ;;
2938 */) ;;
2939 *) as_dir=$as_dir/ ;;
2940 esac
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2943 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2944 ac_prog_rejected=yes
2945 continue
2946 fi
2947 ac_cv_prog_CC="cc"
2948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 if test $ac_prog_rejected = yes; then
2956 # We found a bogon in the path, so make sure we never use it.
2957 set dummy $ac_cv_prog_CC
2958 shift
2959 if test $# != 0; then
2960 # We chose a different compiler from the bogus one.
2961 # However, it has the same basename, so the bogon will be chosen
2962 # first if we set CC to just the basename; use the full file name.
2963 shift
2964 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2965 fi
2966 fi
2967 fi ;;
2968 esac
2969 fi
2970 CC=$ac_cv_prog_CC
2971 if test -n "$CC"; then
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 printf "%s\n" "$CC" >&6; }
2974 else
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 printf "%s\n" "no" >&6; }
2977 fi
2978
2979
2980 fi
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 for ac_prog in cl.exe
2984 do
2985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 printf %s "checking for $ac_word... " >&6; }
2989 if test ${ac_cv_prog_CC+y}
2990 then :
2991 printf %s "(cached) " >&6
2992 else case e in #(
2993 e) if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 case $as_dir in #(((
3001 '') as_dir=./ ;;
3002 */) ;;
3003 *) as_dir=$as_dir/ ;;
3004 esac
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi ;;
3016 esac
3017 fi
3018 CC=$ac_cv_prog_CC
3019 if test -n "$CC"; then
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 printf "%s\n" "$CC" >&6; }
3022 else
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 printf "%s\n" "no" >&6; }
3025 fi
3026
3027
3028 test -n "$CC" && break
3029 done
3030 fi
3031 if test -z "$CC"; then
3032 ac_ct_CC=$CC
3033 for ac_prog in cl.exe
3034 do
3035 # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 printf %s "checking for $ac_word... " >&6; }
3039 if test ${ac_cv_prog_ac_ct_CC+y}
3040 then :
3041 printf %s "(cached) " >&6
3042 else case e in #(
3043 e) if test -n "$ac_ct_CC"; then
3044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 case $as_dir in #(((
3051 '') as_dir=./ ;;
3052 */) ;;
3053 *) as_dir=$as_dir/ ;;
3054 esac
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_ac_ct_CC="$ac_prog"
3058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi ;;
3066 esac
3067 fi
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 printf "%s\n" "$ac_ct_CC" >&6; }
3072 else
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 printf "%s\n" "no" >&6; }
3075 fi
3076
3077
3078 test -n "$ac_ct_CC" && break
3079 done
3080
3081 if test "x$ac_ct_CC" = x; then
3082 CC=""
3083 else
3084 case $cross_compiling:$ac_tool_warned in
3085 yes:)
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088 ac_tool_warned=yes ;;
3089 esac
3090 CC=$ac_ct_CC
3091 fi
3092 fi
3093
3094 fi
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3098 set dummy ${ac_tool_prefix}clang; ac_word=$2
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 printf %s "checking for $ac_word... " >&6; }
3101 if test ${ac_cv_prog_CC+y}
3102 then :
3103 printf %s "(cached) " >&6
3104 else case e in #(
3105 e) if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 case $as_dir in #(((
3113 '') as_dir=./ ;;
3114 */) ;;
3115 *) as_dir=$as_dir/ ;;
3116 esac
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_CC="${ac_tool_prefix}clang"
3120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 fi ;;
3128 esac
3129 fi
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 printf "%s\n" "$CC" >&6; }
3134 else
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 printf "%s\n" "no" >&6; }
3137 fi
3138
3139
3140 fi
3141 if test -z "$ac_cv_prog_CC"; then
3142 ac_ct_CC=$CC
3143 # Extract the first word of "clang", so it can be a program name with args.
3144 set dummy clang; ac_word=$2
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 printf %s "checking for $ac_word... " >&6; }
3147 if test ${ac_cv_prog_ac_ct_CC+y}
3148 then :
3149 printf %s "(cached) " >&6
3150 else case e in #(
3151 e) if test -n "$ac_ct_CC"; then
3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 case $as_dir in #(((
3159 '') as_dir=./ ;;
3160 */) ;;
3161 *) as_dir=$as_dir/ ;;
3162 esac
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_ac_ct_CC="clang"
3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi ;;
3174 esac
3175 fi
3176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177 if test -n "$ac_ct_CC"; then
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3179 printf "%s\n" "$ac_ct_CC" >&6; }
3180 else
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 printf "%s\n" "no" >&6; }
3183 fi
3184
3185 if test "x$ac_ct_CC" = x; then
3186 CC=""
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189 yes:)
3190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3193 esac
3194 CC=$ac_ct_CC
3195 fi
3196 else
3197 CC="$ac_cv_prog_CC"
3198 fi
3199
3200 fi
3201
3202
3203 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3204 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3205 as_fn_error $? "no acceptable C compiler found in \$PATH
3206 See 'config.log' for more details" "$LINENO" 5; }
3207
3208 # Provide some information about the compiler.
3209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3210 set X $ac_compile
3211 ac_compiler=$2
3212 for ac_option in --version -v -V -qversion -version; do
3213 { { ac_try="$ac_compiler $ac_option >&5"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 printf "%s\n" "$ac_try_echo"; } >&5
3220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3221 ac_status=$?
3222 if test -s conftest.err; then
3223 sed '10a\
3224 ... rest of stderr output deleted ...
3225 10q' conftest.err >conftest.er1
3226 cat conftest.er1 >&5
3227 fi
3228 rm -f conftest.er1 conftest.err
3229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3231 done
3232
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3235
3236 int
3237 main (void)
3238 {
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 ac_clean_files_save=$ac_clean_files
3245 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3246 # Try to create an executable without -o first, disregard a.out.
3247 # It will help us diagnose broken compilers, and finding out an intuition
3248 # of exeext.
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3250 printf %s "checking whether the C compiler works... " >&6; }
3251 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3252
3253 # The possible output files:
3254 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255
3256 ac_rmfiles=
3257 for ac_file in $ac_files
3258 do
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3261 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3262 esac
3263 done
3264 rm -f $ac_rmfiles
3265
3266 if { { ac_try="$ac_link_default"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 printf "%s\n" "$ac_try_echo"; } >&5
3273 (eval "$ac_link_default") 2>&5
3274 ac_status=$?
3275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }
3277 then :
3278 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3279 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3280 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3281 # so that the user can short-circuit this test for compilers unknown to
3282 # Autoconf.
3283 for ac_file in $ac_files ''
3284 do
3285 test -f "$ac_file" || continue
3286 case $ac_file in
3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3288 ;;
3289 [ab].out )
3290 # We found the default executable, but exeext='' is most
3291 # certainly right.
3292 break;;
3293 *.* )
3294 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3295 then :; else
3296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 fi
3298 # We set ac_cv_exeext here because the later test for it is not
3299 # safe: cross compilers may not add the suffix if given an '-o'
3300 # argument, so we may need to know it at that point already.
3301 # Even if this section looks crufty: it has the advantage of
3302 # actually working.
3303 break;;
3304 * )
3305 break;;
3306 esac
3307 done
3308 test "$ac_cv_exeext" = no && ac_cv_exeext=
3309
3310 else case e in #(
3311 e) ac_file='' ;;
3312 esac
3313 fi
3314 if test -z "$ac_file"
3315 then :
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 printf "%s\n" "no" >&6; }
3318 printf "%s\n" "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3322 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3323 as_fn_error 77 "C compiler cannot create executables
3324 See 'config.log' for more details" "$LINENO" 5; }
3325 else case e in #(
3326 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 printf "%s\n" "yes" >&6; } ;;
3328 esac
3329 fi
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3331 printf %s "checking for C compiler default output file name... " >&6; }
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3333 printf "%s\n" "$ac_file" >&6; }
3334 ac_exeext=$ac_cv_exeext
3335
3336 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3337 ac_clean_files=$ac_clean_files_save
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3339 printf %s "checking for suffix of executables... " >&6; }
3340 if { { ac_try="$ac_link"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 printf "%s\n" "$ac_try_echo"; } >&5
3347 (eval "$ac_link") 2>&5
3348 ac_status=$?
3349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }
3351 then :
3352 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3353 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3354 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3355 # 'rm'.
3356 for ac_file in conftest.exe conftest conftest.*; do
3357 test -f "$ac_file" || continue
3358 case $ac_file in
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3360 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361 break;;
3362 * ) break;;
3363 esac
3364 done
3365 else case e in #(
3366 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3367 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3368 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3369 See 'config.log' for more details" "$LINENO" 5; } ;;
3370 esac
3371 fi
3372 rm -f conftest conftest$ac_cv_exeext
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3374 printf "%s\n" "$ac_cv_exeext" >&6; }
3375
3376 rm -f conftest.$ac_ext
3377 EXEEXT=$ac_cv_exeext
3378 ac_exeext=$EXEEXT
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3381 #include <stdio.h>
3382 int
3383 main (void)
3384 {
3385 FILE *f = fopen ("conftest.out", "w");
3386 if (!f)
3387 return 1;
3388 return ferror (f) || fclose (f) != 0;
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 ac_clean_files="$ac_clean_files conftest.out"
3395 # Check that the compiler produces executables we can run. If not, either
3396 # the compiler is broken, or we cross compile.
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3398 printf %s "checking whether we are cross compiling... " >&6; }
3399 if test "$cross_compiling" != yes; then
3400 { { ac_try="$ac_link"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 printf "%s\n" "$ac_try_echo"; } >&5
3407 (eval "$ac_link") 2>&5
3408 ac_status=$?
3409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }
3411 if { ac_try='./conftest$ac_cv_exeext'
3412 { { case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 printf "%s\n" "$ac_try_echo"; } >&5
3418 (eval "$ac_try") 2>&5
3419 ac_status=$?
3420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }; }; then
3422 cross_compiling=no
3423 else
3424 if test "$cross_compiling" = maybe; then
3425 cross_compiling=yes
3426 else
3427 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3428 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3429 as_fn_error 77 "cannot run C compiled programs.
3430 If you meant to cross compile, use '--host'.
3431 See 'config.log' for more details" "$LINENO" 5; }
3432 fi
3433 fi
3434 fi
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3436 printf "%s\n" "$cross_compiling" >&6; }
3437
3438 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3439 conftest.o conftest.obj conftest.out
3440 ac_clean_files=$ac_clean_files_save
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3442 printf %s "checking for suffix of object files... " >&6; }
3443 if test ${ac_cv_objext+y}
3444 then :
3445 printf %s "(cached) " >&6
3446 else case e in #(
3447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3449
3450 int
3451 main (void)
3452 {
3453
3454 ;
3455 return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.o conftest.obj
3459 if { { ac_try="$ac_compile"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 printf "%s\n" "$ac_try_echo"; } >&5
3466 (eval "$ac_compile") 2>&5
3467 ac_status=$?
3468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3470 then :
3471 for ac_file in conftest.o conftest.obj conftest.*; do
3472 test -f "$ac_file" || continue;
3473 case $ac_file in
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3476 break;;
3477 esac
3478 done
3479 else case e in #(
3480 e) printf "%s\n" "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3484 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3485 as_fn_error $? "cannot compute suffix of object files: cannot compile
3486 See 'config.log' for more details" "$LINENO" 5; } ;;
3487 esac
3488 fi
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3490 esac
3491 fi
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3493 printf "%s\n" "$ac_cv_objext" >&6; }
3494 OBJEXT=$ac_cv_objext
3495 ac_objext=$OBJEXT
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3497 printf %s "checking whether the compiler supports GNU C... " >&6; }
3498 if test ${ac_cv_c_compiler_gnu+y}
3499 then :
3500 printf %s "(cached) " >&6
3501 else case e in #(
3502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main (void)
3507 {
3508 #ifndef __GNUC__
3509 choke me
3510 #endif
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 if ac_fn_c_try_compile "$LINENO"
3517 then :
3518 ac_compiler_gnu=yes
3519 else case e in #(
3520 e) ac_compiler_gnu=no ;;
3521 esac
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525 ;;
3526 esac
3527 fi
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3529 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531
3532 if test $ac_compiler_gnu = yes; then
3533 GCC=yes
3534 else
3535 GCC=
3536 fi
3537 ac_test_CFLAGS=${CFLAGS+y}
3538 ac_save_CFLAGS=$CFLAGS
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3540 printf %s "checking whether $CC accepts -g... " >&6; }
3541 if test ${ac_cv_prog_cc_g+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else case e in #(
3545 e) ac_save_c_werror_flag=$ac_c_werror_flag
3546 ac_c_werror_flag=yes
3547 ac_cv_prog_cc_g=no
3548 CFLAGS="-g"
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551
3552 int
3553 main (void)
3554 {
3555
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"
3561 then :
3562 ac_cv_prog_cc_g=yes
3563 else case e in #(
3564 e) CFLAGS=""
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main (void)
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"
3577 then :
3578
3579 else case e in #(
3580 e) ac_c_werror_flag=$ac_save_c_werror_flag
3581 CFLAGS="-g"
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main (void)
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"
3594 then :
3595 ac_cv_prog_cc_g=yes
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3598 esac
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3601 esac
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3604 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3605 esac
3606 fi
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3609 if test $ac_test_CFLAGS; then
3610 CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612 if test "$GCC" = yes; then
3613 CFLAGS="-g -O2"
3614 else
3615 CFLAGS="-g"
3616 fi
3617 else
3618 if test "$GCC" = yes; then
3619 CFLAGS="-O2"
3620 else
3621 CFLAGS=
3622 fi
3623 fi
3624 ac_prog_cc_stdc=no
3625 if test x$ac_prog_cc_stdc = xno
3626 then :
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3628 printf %s "checking for $CC option to enable C11 features... " >&6; }
3629 if test ${ac_cv_prog_cc_c11+y}
3630 then :
3631 printf %s "(cached) " >&6
3632 else case e in #(
3633 e) ac_cv_prog_cc_c11=no
3634 ac_save_CC=$CC
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637 $ac_c_conftest_c11_program
3638 _ACEOF
3639 for ac_arg in '' -std=gnu11
3640 do
3641 CC="$ac_save_CC $ac_arg"
3642 if ac_fn_c_try_compile "$LINENO"
3643 then :
3644 ac_cv_prog_cc_c11=$ac_arg
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext conftest.beam
3647 test "x$ac_cv_prog_cc_c11" != "xno" && break
3648 done
3649 rm -f conftest.$ac_ext
3650 CC=$ac_save_CC ;;
3651 esac
3652 fi
3653
3654 if test "x$ac_cv_prog_cc_c11" = xno
3655 then :
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 printf "%s\n" "unsupported" >&6; }
3658 else case e in #(
3659 e) if test "x$ac_cv_prog_cc_c11" = x
3660 then :
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3662 printf "%s\n" "none needed" >&6; }
3663 else case e in #(
3664 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3665 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3666 CC="$CC $ac_cv_prog_cc_c11" ;;
3667 esac
3668 fi
3669 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3670 ac_prog_cc_stdc=c11 ;;
3671 esac
3672 fi
3673 fi
3674 if test x$ac_prog_cc_stdc = xno
3675 then :
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3677 printf %s "checking for $CC option to enable C99 features... " >&6; }
3678 if test ${ac_cv_prog_cc_c99+y}
3679 then :
3680 printf %s "(cached) " >&6
3681 else case e in #(
3682 e) ac_cv_prog_cc_c99=no
3683 ac_save_CC=$CC
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 $ac_c_conftest_c99_program
3687 _ACEOF
3688 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3689 do
3690 CC="$ac_save_CC $ac_arg"
3691 if ac_fn_c_try_compile "$LINENO"
3692 then :
3693 ac_cv_prog_cc_c99=$ac_arg
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext conftest.beam
3696 test "x$ac_cv_prog_cc_c99" != "xno" && break
3697 done
3698 rm -f conftest.$ac_ext
3699 CC=$ac_save_CC ;;
3700 esac
3701 fi
3702
3703 if test "x$ac_cv_prog_cc_c99" = xno
3704 then :
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3706 printf "%s\n" "unsupported" >&6; }
3707 else case e in #(
3708 e) if test "x$ac_cv_prog_cc_c99" = x
3709 then :
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3711 printf "%s\n" "none needed" >&6; }
3712 else case e in #(
3713 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3714 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3715 CC="$CC $ac_cv_prog_cc_c99" ;;
3716 esac
3717 fi
3718 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3719 ac_prog_cc_stdc=c99 ;;
3720 esac
3721 fi
3722 fi
3723 if test x$ac_prog_cc_stdc = xno
3724 then :
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3726 printf %s "checking for $CC option to enable C89 features... " >&6; }
3727 if test ${ac_cv_prog_cc_c89+y}
3728 then :
3729 printf %s "(cached) " >&6
3730 else case e in #(
3731 e) ac_cv_prog_cc_c89=no
3732 ac_save_CC=$CC
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 $ac_c_conftest_c89_program
3736 _ACEOF
3737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3738 do
3739 CC="$ac_save_CC $ac_arg"
3740 if ac_fn_c_try_compile "$LINENO"
3741 then :
3742 ac_cv_prog_cc_c89=$ac_arg
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.beam
3745 test "x$ac_cv_prog_cc_c89" != "xno" && break
3746 done
3747 rm -f conftest.$ac_ext
3748 CC=$ac_save_CC ;;
3749 esac
3750 fi
3751
3752 if test "x$ac_cv_prog_cc_c89" = xno
3753 then :
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3755 printf "%s\n" "unsupported" >&6; }
3756 else case e in #(
3757 e) if test "x$ac_cv_prog_cc_c89" = x
3758 then :
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760 printf "%s\n" "none needed" >&6; }
3761 else case e in #(
3762 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3763 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3764 CC="$CC $ac_cv_prog_cc_c89" ;;
3765 esac
3766 fi
3767 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3768 ac_prog_cc_stdc=c89 ;;
3769 esac
3770 fi
3771 fi
3772
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779
3780 # allow user to override the -g -O2 flags.
3781 if test "x$CFLAGS" = "x" ; then
3782
3783
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
3785 printf %s "checking whether $CC supports -g... " >&6; }
3786 cache=`echo g | sed 'y%.=/+-%___p_%'`
3787 if eval test \${cv_prog_cc_flag_$cache+y}
3788 then :
3789 printf %s "(cached) " >&6
3790 else case e in #(
3791 e)
3792 echo 'void f(void){}' >conftest.c
3793 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
3794 eval "cv_prog_cc_flag_$cache=yes"
3795 else
3796 eval "cv_prog_cc_flag_$cache=no"
3797 fi
3798 rm -f conftest conftest.o conftest.c
3799 ;;
3800 esac
3801 fi
3802
3803 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805 printf "%s\n" "yes" >&6; }
3806 :
3807 CFLAGS="$CFLAGS -g"
3808 else
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 printf "%s\n" "no" >&6; }
3811 :
3812
3813 fi
3814
3815
3816
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
3818 printf %s "checking whether $CC supports -O2... " >&6; }
3819 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
3820 if eval test \${cv_prog_cc_flag_$cache+y}
3821 then :
3822 printf %s "(cached) " >&6
3823 else case e in #(
3824 e)
3825 echo 'void f(void){}' >conftest.c
3826 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
3827 eval "cv_prog_cc_flag_$cache=yes"
3828 else
3829 eval "cv_prog_cc_flag_$cache=no"
3830 fi
3831 rm -f conftest conftest.o conftest.c
3832 ;;
3833 esac
3834 fi
3835
3836 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3838 printf "%s\n" "yes" >&6; }
3839 :
3840 CFLAGS="$CFLAGS -O2"
3841 else
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 printf "%s\n" "no" >&6; }
3844 :
3845
3846 fi
3847
3848
3849
3850 # Check whether --enable-pie was given.
3851 if test ${enable_pie+y}
3852 then :
3853 enableval=$enable_pie;
3854 fi
3855
3856 if test "x$enable_pie" = "xyes"
3857 then :
3858
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
3860 printf %s "checking if $CC supports PIE... " >&6; }
3861 BAKLDFLAGS="$LDFLAGS"
3862 BAKCFLAGS="$CFLAGS"
3863 LDFLAGS="$LDFLAGS -pie"
3864 CFLAGS="$CFLAGS -fPIE"
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867
3868 int
3869 main (void)
3870 {
3871
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 if ac_fn_c_try_link "$LINENO"
3877 then :
3878
3879 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
3880 LDFLAGS="$BAKLDFLAGS"
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 printf "%s\n" "no" >&6; }
3883 else
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3885 printf "%s\n" "yes" >&6; }
3886 fi
3887 rm -f conftest conftest.c conftest.o
3888
3889 else case e in #(
3890 e) LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 printf "%s\n" "no" >&6; } ;;
3892 esac
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3895 conftest$ac_exeext conftest.$ac_ext
3896
3897 fi
3898
3899 fi
3900
3901 ac_header= ac_cache=
3902 for ac_item in $ac_header_c_list
3903 do
3904 if test $ac_cache; then
3905 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3906 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3907 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3908 fi
3909 ac_header= ac_cache=
3910 elif test $ac_header; then
3911 ac_cache=$ac_item
3912 else
3913 ac_header=$ac_item
3914 fi
3915 done
3916
3917
3918
3919
3920
3921
3922
3923
3924 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3925 then :
3926
3927 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3928
3929 fi
3930 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default
3931 "
3932 if test "x$ac_cv_header_endian_h" = xyes
3933 then :
3934 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
3935
3936 fi
3937 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default
3938 "
3939 if test "x$ac_cv_header_sys_endian_h" = xyes
3940 then :
3941 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
3942
3943 fi
3944
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3946 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3947 if test ${ac_cv_c_undeclared_builtin_options+y}
3948 then :
3949 printf %s "(cached) " >&6
3950 else case e in #(
3951 e) ac_save_CFLAGS=$CFLAGS
3952 ac_cv_c_undeclared_builtin_options='cannot detect'
3953 for ac_arg in '' -fno-builtin; do
3954 CFLAGS="$ac_save_CFLAGS $ac_arg"
3955 # This test program should *not* compile successfully.
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958
3959 int
3960 main (void)
3961 {
3962 (void) strchr;
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 if ac_fn_c_try_compile "$LINENO"
3968 then :
3969
3970 else case e in #(
3971 e) # This test program should compile successfully.
3972 # No library function is consistently available on
3973 # freestanding implementations, so test against a dummy
3974 # declaration. Include always-available headers on the
3975 # off chance that they somehow elicit warnings.
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978 #include <float.h>
3979 #include <limits.h>
3980 #include <stdarg.h>
3981 #include <stddef.h>
3982 extern void ac_decl (int, char *);
3983
3984 int
3985 main (void)
3986 {
3987 (void) ac_decl (0, (char *) 0);
3988 (void) ac_decl;
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_c_try_compile "$LINENO"
3995 then :
3996 if test x"$ac_arg" = x
3997 then :
3998 ac_cv_c_undeclared_builtin_options='none needed'
3999 else case e in #(
4000 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4001 esac
4002 fi
4003 break
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4006 esac
4007 fi
4008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4009 done
4010 CFLAGS=$ac_save_CFLAGS
4011 ;;
4012 esac
4013 fi
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4015 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4016 case $ac_cv_c_undeclared_builtin_options in #(
4017 'cannot detect') :
4018 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4019 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4020 as_fn_error $? "cannot make $CC report undeclared builtins
4021 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4022 'none needed') :
4023 ac_c_undeclared_builtin_options='' ;; #(
4024 *) :
4025 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4026 esac
4027
4028 ac_fn_check_decl "$LINENO" "bswap16" "ac_cv_have_decl_bswap16" "
4029 $ac_includes_default
4030 #ifdef HAVE_ENDIAN_H
4031 #include <endian.h>
4032 #endif
4033 #ifdef HAVE_SYS_ENDIAN_H
4034 #include <sys/endian.h>
4035 #endif
4036
4037 " "$ac_c_undeclared_builtin_options" "CFLAGS"
4038 if test "x$ac_cv_have_decl_bswap16" = xyes
4039 then :
4040 ac_have_decl=1
4041 else case e in #(
4042 e) ac_have_decl=0 ;;
4043 esac
4044 fi
4045 printf "%s\n" "#define HAVE_DECL_BSWAP16 $ac_have_decl" >>confdefs.h
4046 ac_fn_check_decl "$LINENO" "bswap32" "ac_cv_have_decl_bswap32" "
4047 $ac_includes_default
4048 #ifdef HAVE_ENDIAN_H
4049 #include <endian.h>
4050 #endif
4051 #ifdef HAVE_SYS_ENDIAN_H
4052 #include <sys/endian.h>
4053 #endif
4054
4055 " "$ac_c_undeclared_builtin_options" "CFLAGS"
4056 if test "x$ac_cv_have_decl_bswap32" = xyes
4057 then :
4058 ac_have_decl=1
4059 else case e in #(
4060 e) ac_have_decl=0 ;;
4061 esac
4062 fi
4063 printf "%s\n" "#define HAVE_DECL_BSWAP32 $ac_have_decl" >>confdefs.h
4064 ac_fn_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "
4065 $ac_includes_default
4066 #ifdef HAVE_ENDIAN_H
4067 #include <endian.h>
4068 #endif
4069 #ifdef HAVE_SYS_ENDIAN_H
4070 #include <sys/endian.h>
4071 #endif
4072
4073 " "$ac_c_undeclared_builtin_options" "CFLAGS"
4074 if test "x$ac_cv_have_decl_bswap64" = xyes
4075 then :
4076 ac_have_decl=1
4077 else case e in #(
4078 e) ac_have_decl=0 ;;
4079 esac
4080 fi
4081 printf "%s\n" "#define HAVE_DECL_BSWAP64 $ac_have_decl" >>confdefs.h
4082
4083
4084 # Check whether --enable-westmere was given.
4085 if test ${enable_westmere+y}
4086 then :
4087 enableval=$enable_westmere;
4088 fi
4089
4090 case "$enable_westmere" in
4091 no) enable_westmere=no ;;
4092 yes|*) enable_westmere=yes ;;
4093 esac
4094
4095 # Check whether --enable-haswell was given.
4096 if test ${enable_haswell+y}
4097 then :
4098 enableval=$enable_haswell;
4099 fi
4100
4101 case "$enable_haswell" in
4102 no) enable_haswell=no ;;
4103 yes|*) enable_haswell=yes ;;
4104 esac
4105
4106 # GCC and Clang
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -MMD" >&5
4108 printf %s "checking whether C compiler accepts -MMD... " >&6; }
4109 if test ${ax_cv_check_cflags___MMD+y}
4110 then :
4111 printf %s "(cached) " >&6
4112 else case e in #(
4113 e)
4114 ax_check_save_flags=$CFLAGS
4115 CFLAGS="$CFLAGS -MMD"
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118
4119 int
4120 main (void)
4121 {
4122
4123 ;
4124 return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"
4128 then :
4129 ax_cv_check_cflags___MMD=yes
4130 else case e in #(
4131 e) ax_cv_check_cflags___MMD=no ;;
4132 esac
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4135 CFLAGS=$ax_check_save_flags ;;
4136 esac
4137 fi
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___MMD" >&5
4139 printf "%s\n" "$ax_cv_check_cflags___MMD" >&6; }
4140 if test "x$ax_cv_check_cflags___MMD" = xyes
4141 then :
4142 DEPFLAGS="-MMD -MP"
4143 else case e in #(
4144 e) : ;;
4145 esac
4146 fi
4147
4148 # Oracle Developer Studio (no -MP)
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xMMD" >&5
4150 printf %s "checking whether C compiler accepts -xMMD... " >&6; }
4151 if test ${ax_cv_check_cflags___xMMD+y}
4152 then :
4153 printf %s "(cached) " >&6
4154 else case e in #(
4155 e)
4156 ax_check_save_flags=$CFLAGS
4157 CFLAGS="$CFLAGS -xMMD"
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160
4161 int
4162 main (void)
4163 {
4164
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"
4170 then :
4171 ax_cv_check_cflags___xMMD=yes
4172 else case e in #(
4173 e) ax_cv_check_cflags___xMMD=no ;;
4174 esac
4175 fi
4176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4177 CFLAGS=$ax_check_save_flags ;;
4178 esac
4179 fi
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___xMMD" >&5
4181 printf "%s\n" "$ax_cv_check_cflags___xMMD" >&6; }
4182 if test "x$ax_cv_check_cflags___xMMD" = xyes
4183 then :
4184 DEPFLAGS="-xMMD"
4185 else case e in #(
4186 e) : ;;
4187 esac
4188 fi
4189
4190
4191
4192
4193 # Figure out the canonical target architecture.
4194
4195
4196
4197 # Make sure we can run config.sub.
4198 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4199 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4200
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4202 printf %s "checking build system type... " >&6; }
4203 if test ${ac_cv_build+y}
4204 then :
4205 printf %s "(cached) " >&6
4206 else case e in #(
4207 e) ac_build_alias=$build_alias
4208 test "x$ac_build_alias" = x &&
4209 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4210 test "x$ac_build_alias" = x &&
4211 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4212 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4213 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4214 ;;
4215 esac
4216 fi
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4218 printf "%s\n" "$ac_cv_build" >&6; }
4219 case $ac_cv_build in
4220 *-*-*) ;;
4221 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4222 esac
4223 build=$ac_cv_build
4224 ac_save_IFS=$IFS; IFS='-'
4225 set x $ac_cv_build
4226 shift
4227 build_cpu=$1
4228 build_vendor=$2
4229 shift; shift
4230 # Remember, the first character of IFS is used to create $*,
4231 # except with old shells:
4232 build_os=$*
4233 IFS=$ac_save_IFS
4234 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4235
4236
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4238 printf %s "checking host system type... " >&6; }
4239 if test ${ac_cv_host+y}
4240 then :
4241 printf %s "(cached) " >&6
4242 else case e in #(
4243 e) if test "x$host_alias" = x; then
4244 ac_cv_host=$ac_cv_build
4245 else
4246 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4247 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4248 fi
4249 ;;
4250 esac
4251 fi
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4253 printf "%s\n" "$ac_cv_host" >&6; }
4254 case $ac_cv_host in
4255 *-*-*) ;;
4256 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4257 esac
4258 host=$ac_cv_host
4259 ac_save_IFS=$IFS; IFS='-'
4260 set x $ac_cv_host
4261 shift
4262 host_cpu=$1
4263 host_vendor=$2
4264 shift; shift
4265 # Remember, the first character of IFS is used to create $*,
4266 # except with old shells:
4267 host_os=$*
4268 IFS=$ac_save_IFS
4269 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4270
4271
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4273 printf %s "checking target system type... " >&6; }
4274 if test ${ac_cv_target+y}
4275 then :
4276 printf %s "(cached) " >&6
4277 else case e in #(
4278 e) if test "x$target_alias" = x; then
4279 ac_cv_target=$ac_cv_host
4280 else
4281 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
4282 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
4283 fi
4284 ;;
4285 esac
4286 fi
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4288 printf "%s\n" "$ac_cv_target" >&6; }
4289 case $ac_cv_target in
4290 *-*-*) ;;
4291 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4292 esac
4293 target=$ac_cv_target
4294 ac_save_IFS=$IFS; IFS='-'
4295 set x $ac_cv_target
4296 shift
4297 target_cpu=$1
4298 target_vendor=$2
4299 shift; shift
4300 # Remember, the first character of IFS is used to create $*,
4301 # except with old shells:
4302 target_os=$*
4303 IFS=$ac_save_IFS
4304 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4305
4306
4307 # The aliases save the names the user supplied, while $host etc.
4308 # will get canonicalized.
4309 test -n "$target_alias" &&
4310 test "$program_prefix$program_suffix$program_transform_name" = \
4311 NONENONEs,x,x, &&
4312 program_prefix=${target_alias}-
4313
4314 # Multiple instruction sets may be supported by a specific architecture.
4315 # e.g. x86_64 may (or may not) support any of SSE42, AVX2 and AVX-512. The
4316 # best instruction set is automatically selected at runtime, but the compiler
4317 # may or may not support generating code for an instruction set.
4318 case "$target" in
4319 *amd64*) x86_64=yes ;;
4320 *x86_64*) x86_64=yes ;;
4321 *) x86_64=no ;;
4322 esac
4323
4324 HAVE_WESTMERE=NO
4325 HAVE_HASWELL=NO
4326
4327 if test $x86_64 = "yes"; then
4328 ac_fn_c_check_header_compile "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
4329 if test "x$ac_cv_header_immintrin_h" = xyes
4330 then :
4331
4332 fi
4333
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=westmere" >&5
4335 printf %s "checking whether C compiler accepts -march=westmere... " >&6; }
4336 if test ${ax_cv_check_cflags__Werror__march_westmere+y}
4337 then :
4338 printf %s "(cached) " >&6
4339 else case e in #(
4340 e)
4341 ax_check_save_flags=$CFLAGS
4342 CFLAGS="$CFLAGS -Werror -march=westmere"
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345
4346 int
4347 main (void)
4348 {
4349
4350 ;
4351 return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"
4355 then :
4356 ax_cv_check_cflags__Werror__march_westmere=yes
4357 else case e in #(
4358 e) ax_cv_check_cflags__Werror__march_westmere=no ;;
4359 esac
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4362 CFLAGS=$ax_check_save_flags ;;
4363 esac
4364 fi
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__march_westmere" >&5
4366 printf "%s\n" "$ax_cv_check_cflags__Werror__march_westmere" >&6; }
4367 if test "x$ax_cv_check_cflags__Werror__march_westmere" = xyes
4368 then :
4369 :
4370 else case e in #(
4371 e) : ;;
4372 esac
4373 fi
4374
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=haswell" >&5
4376 printf %s "checking whether C compiler accepts -march=haswell... " >&6; }
4377 if test ${ax_cv_check_cflags__Werror__march_haswell+y}
4378 then :
4379 printf %s "(cached) " >&6
4380 else case e in #(
4381 e)
4382 ax_check_save_flags=$CFLAGS
4383 CFLAGS="$CFLAGS -Werror -march=haswell"
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386
4387 int
4388 main (void)
4389 {
4390
4391 ;
4392 return 0;
4393 }
4394 _ACEOF
4395 if ac_fn_c_try_compile "$LINENO"
4396 then :
4397 ax_cv_check_cflags__Werror__march_haswell=yes
4398 else case e in #(
4399 e) ax_cv_check_cflags__Werror__march_haswell=no ;;
4400 esac
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4403 CFLAGS=$ax_check_save_flags ;;
4404 esac
4405 fi
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__march_haswell" >&5
4407 printf "%s\n" "$ax_cv_check_cflags__Werror__march_haswell" >&6; }
4408 if test "x$ax_cv_check_cflags__Werror__march_haswell" = xyes
4409 then :
4410 :
4411 else case e in #(
4412 e) : ;;
4413 esac
4414 fi
4415
4416
4417 # Check if the arch instruction set support includes the simd instructions.
4418 if test $enable_westmere != "no" -a \
4419 $ax_cv_check_cflags__Werror__march_westmere = "yes" -a \
4420 $ac_cv_header_immintrin_h = "yes" ; then
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -march=westmere works" >&5
4422 printf %s "checking whether -march=westmere works... " >&6; }
4423 BAKCFLAGS="$CFLAGS"
4424 CFLAGS="-march=westmere $CFLAGS"
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427
4428 $ac_includes_default
4429
4430 #include <stdint.h>
4431 #include <immintrin.h>
4432
4433 int main(int argc, char *argv[])
4434 {
4435 (void)argv;
4436 uint64_t popcnt = _mm_popcnt_u64((uint64_t)argc);
4437 return popcnt == 11;
4438 }
4439
4440
4441 _ACEOF
4442 if ac_fn_c_try_compile "$LINENO"
4443 then :
4444
4445
4446 printf "%s\n" "#define HAVE_WESTMERE 1" >>confdefs.h
4447
4448 HAVE_WESTMERE=WESTMERE
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4450 printf "%s\n" "yes" >&6; }
4451
4452 else case e in #(
4453 e)
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 printf "%s\n" "no" >&6; }
4456 ;;
4457 esac
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4460 CFLAGS="$BAKCFLAGS"
4461 fi
4462
4463 if test $enable_haswell != "no" -a \
4464 $ax_cv_check_cflags__Werror__march_haswell = "yes" -a \
4465 $ac_cv_header_immintrin_h = "yes" ; then
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -march=haswell works" >&5
4467 printf %s "checking whether -march=haswell works... " >&6; }
4468 BAKCFLAGS="$CFLAGS"
4469 CFLAGS="-march=haswell $CFLAGS"
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472
4473 $ac_includes_default
4474
4475 #include <stdint.h>
4476 #include <immintrin.h>
4477
4478 int main(int argc, char *argv[])
4479 {
4480 (void)argv;
4481 int argc32x8[8] = { argc, 0, 0, 0, 0, 0, 0, 0 };
4482 __m256i argc256 = _mm256_loadu_si256((__m256i *)argc32x8);
4483 return _mm256_testz_si256(argc256, _mm256_set1_epi8(11));
4484 }
4485
4486
4487 _ACEOF
4488 if ac_fn_c_try_compile "$LINENO"
4489 then :
4490
4491
4492 printf "%s\n" "#define HAVE_HASWELL 1" >>confdefs.h
4493
4494 HAVE_HASWELL=HASWELL
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496 printf "%s\n" "yes" >&6; }
4497
4498 else case e in #(
4499 e)
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501 printf "%s\n" "no" >&6; }
4502 ;;
4503 esac
4504 fi
4505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4506 CFLAGS="$BAKCFLAGS"
4507 fi
4508 fi
4509
4510
4511 for ac_func in realpath
4512 do :
4513 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
4514 if test "x$ac_cv_func_realpath" = xyes
4515 then :
4516 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
4517
4518 else case e in #(
4519 e) as_fn_error $? "realpath is not available" "$LINENO" 5 ;;
4520 esac
4521 fi
4522
4523 done
4524
4525
4526
4527
4528
4529
4530
4531 cat >confcache <<\_ACEOF
4532 # This file is a shell script that caches the results of configure
4533 # tests run on this system so they can be shared between configure
4534 # scripts and configure runs, see configure's option --config-cache.
4535 # It is not useful on other systems. If it contains results you don't
4536 # want to keep, you may remove or edit it.
4537 #
4538 # config.status only pays attention to the cache file if you give it
4539 # the --recheck option to rerun configure.
4540 #
4541 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
4542 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
4543 # following values.
4544
4545 _ACEOF
4546
4547 # The following way of writing the cache mishandles newlines in values,
4548 # but we know of no workaround that is simple, portable, and efficient.
4549 # So, we kill variables containing newlines.
4550 # Ultrix sh set writes to stderr and can't be redirected directly,
4551 # and sets the high bit in the cache file unless we assign to the vars.
4552 (
4553 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4554 eval ac_val=\$$ac_var
4555 case $ac_val in #(
4556 *${as_nl}*)
4557 case $ac_var in #(
4558 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4559 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4560 esac
4561 case $ac_var in #(
4562 _ | IFS | as_nl) ;; #(
4563 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4564 *) { eval $ac_var=; unset $ac_var;} ;;
4565 esac ;;
4566 esac
4567 done
4568
4569 (set) 2>&1 |
4570 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4571 *${as_nl}ac_space=\ *)
4572 # 'set' does not quote correctly, so add quotes: double-quote
4573 # substitution turns \\\\ into \\, and sed turns \\ into \.
4574 sed -n \
4575 "s/'/'\\\\''/g;
4576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4577 ;; #(
4578 *)
4579 # 'set' quotes correctly as required by POSIX, so do not add quotes.
4580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4581 ;;
4582 esac |
4583 sort
4584 ) |
4585 sed '
4586 /^ac_cv_env_/b end
4587 t clear
4588 :clear
4589 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4590 t end
4591 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4592 :end' >>confcache
4593 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4594 if test -w "$cache_file"; then
4595 if test "x$cache_file" != "x/dev/null"; then
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4597 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4598 if test ! -f "$cache_file" || test -h "$cache_file"; then
4599 cat confcache >"$cache_file"
4600 else
4601 case $cache_file in #(
4602 */* | ?:*)
4603 mv -f confcache "$cache_file"$$ &&
4604 mv -f "$cache_file"$$ "$cache_file" ;; #(
4605 *)
4606 mv -f confcache "$cache_file" ;;
4607 esac
4608 fi
4609 fi
4610 else
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4612 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4613 fi
4614 fi
4615 rm -f confcache
4616
4617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4618 # Let make expand exec_prefix.
4619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4620
4621 DEFS=-DHAVE_CONFIG_H
4622
4623 ac_libobjs=
4624 ac_ltlibobjs=
4625 U=
4626 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4627 # 1. Remove the extension, and $U if already installed.
4628 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4629 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4630 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4631 # will be set to the directory where LIBOBJS objects are built.
4632 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4633 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4634 done
4635 LIBOBJS=$ac_libobjs
4636
4637 LTLIBOBJS=$ac_ltlibobjs
4638
4639
4640
4641 : "${CONFIG_STATUS=./config.status}"
4642 ac_write_fail=0
4643 ac_clean_files_save=$ac_clean_files
4644 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4646 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
4647 as_write_fail=0
4648 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4649 #! $SHELL
4650 # Generated by $as_me.
4651 # Run this file to recreate the current configuration.
4652 # Compiler output produced by configure, useful for debugging
4653 # configure, is in config.log if it exists.
4654
4655 debug=false
4656 ac_cs_recheck=false
4657 ac_cs_silent=false
4658
4659 SHELL=\${CONFIG_SHELL-$SHELL}
4660 export SHELL
4661 _ASEOF
4662 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4663 ## -------------------- ##
4664 ## M4sh Initialization. ##
4665 ## -------------------- ##
4666
4667 # Be more Bourne compatible
4668 DUALCASE=1; export DUALCASE # for MKS sh
4669 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4670 then :
4671 emulate sh
4672 NULLCMD=:
4673 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4674 # is contrary to our usage. Disable this feature.
4675 alias -g '${1+"$@"}'='"$@"'
4676 setopt NO_GLOB_SUBST
4677 else case e in #(
4678 e) case `(set -o) 2>/dev/null` in #(
4679 *posix*) :
4680 set -o posix ;; #(
4681 *) :
4682 ;;
4683 esac ;;
4684 esac
4685 fi
4686
4687
4688
4689 # Reset variables that may have inherited troublesome values from
4690 # the environment.
4691
4692 # IFS needs to be set, to space, tab, and newline, in precisely that order.
4693 # (If _AS_PATH_WALK were called with IFS unset, it would have the
4694 # side effect of setting IFS to empty, thus disabling word splitting.)
4695 # Quoting is to prevent editors from complaining about space-tab.
4696 as_nl='
4697 '
4698 export as_nl
4699 IFS=" "" $as_nl"
4700
4701 PS1='$ '
4702 PS2='> '
4703 PS4='+ '
4704
4705 # Ensure predictable behavior from utilities with locale-dependent output.
4706 LC_ALL=C
4707 export LC_ALL
4708 LANGUAGE=C
4709 export LANGUAGE
4710
4711 # We cannot yet rely on "unset" to work, but we need these variables
4712 # to be unset--not just set to an empty or harmless value--now, to
4713 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4714 # also avoids known problems related to "unset" and subshell syntax
4715 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4716 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4717 do eval test \${$as_var+y} \
4718 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4719 done
4720
4721 # Ensure that fds 0, 1, and 2 are open.
4722 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4723 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4724 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
4725
4726 # The user is always right.
4727 if ${PATH_SEPARATOR+false} :; then
4728 PATH_SEPARATOR=:
4729 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4730 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4731 PATH_SEPARATOR=';'
4732 }
4733 fi
4734
4735
4736 # Find who we are. Look in the path if we contain no directory separator.
4737 as_myself=
4738 case $0 in #((
4739 *[\\/]* ) as_myself=$0 ;;
4740 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743 IFS=$as_save_IFS
4744 case $as_dir in #(((
4745 '') as_dir=./ ;;
4746 */) ;;
4747 *) as_dir=$as_dir/ ;;
4748 esac
4749 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
4750 done
4751 IFS=$as_save_IFS
4752
4753 ;;
4754 esac
4755 # We did not find ourselves, most probably we were run as 'sh COMMAND'
4756 # in which case we are not to be found in the path.
4757 if test "x$as_myself" = x; then
4758 as_myself=$0
4759 fi
4760 if test ! -f "$as_myself"; then
4761 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4762 exit 1
4763 fi
4764
4765
4766
4767 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4768 # ----------------------------------------
4769 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4770 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4771 # script with STATUS, using 1 if that was 0.
4772 as_fn_error ()
4773 {
4774 as_status=$1; test $as_status -eq 0 && as_status=1
4775 if test "$4"; then
4776 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4778 fi
4779 printf "%s\n" "$as_me: error: $2" >&2
4780 as_fn_exit $as_status
4781 } # as_fn_error
4782
4783
4784 # as_fn_set_status STATUS
4785 # -----------------------
4786 # Set $? to STATUS, without forking.
4787 as_fn_set_status ()
4788 {
4789 return $1
4790 } # as_fn_set_status
4791
4792 # as_fn_exit STATUS
4793 # -----------------
4794 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4795 as_fn_exit ()
4796 {
4797 set +e
4798 as_fn_set_status $1
4799 exit $1
4800 } # as_fn_exit
4801
4802 # as_fn_unset VAR
4803 # ---------------
4804 # Portably unset VAR.
4805 as_fn_unset ()
4806 {
4807 { eval $1=; unset $1;}
4808 }
4809 as_unset=as_fn_unset
4810
4811 # as_fn_append VAR VALUE
4812 # ----------------------
4813 # Append the text in VALUE to the end of the definition contained in VAR. Take
4814 # advantage of any shell optimizations that allow amortized linear growth over
4815 # repeated appends, instead of the typical quadratic growth present in naive
4816 # implementations.
4817 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4818 then :
4819 eval 'as_fn_append ()
4820 {
4821 eval $1+=\$2
4822 }'
4823 else case e in #(
4824 e) as_fn_append ()
4825 {
4826 eval $1=\$$1\$2
4827 } ;;
4828 esac
4829 fi # as_fn_append
4830
4831 # as_fn_arith ARG...
4832 # ------------------
4833 # Perform arithmetic evaluation on the ARGs, and store the result in the
4834 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4835 # must be portable across $(()) and expr.
4836 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4837 then :
4838 eval 'as_fn_arith ()
4839 {
4840 as_val=$(( $* ))
4841 }'
4842 else case e in #(
4843 e) as_fn_arith ()
4844 {
4845 as_val=`expr "$@" || test $? -eq 1`
4846 } ;;
4847 esac
4848 fi # as_fn_arith
4849
4850
4851 if expr a : '\(a\)' >/dev/null 2>&1 &&
4852 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4853 as_expr=expr
4854 else
4855 as_expr=false
4856 fi
4857
4858 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4859 as_basename=basename
4860 else
4861 as_basename=false
4862 fi
4863
4864 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4865 as_dirname=dirname
4866 else
4867 as_dirname=false
4868 fi
4869
4870 as_me=`$as_basename -- "$0" ||
4871 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4872 X"$0" : 'X\(//\)$' \| \
4873 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4874 printf "%s\n" X/"$0" |
4875 sed '/^.*\/\([^/][^/]*\)\/*$/{
4876 s//\1/
4877 q
4878 }
4879 /^X\/\(\/\/\)$/{
4880 s//\1/
4881 q
4882 }
4883 /^X\/\(\/\).*/{
4884 s//\1/
4885 q
4886 }
4887 s/.*/./; q'`
4888
4889 # Avoid depending upon Character Ranges.
4890 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4891 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4892 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4893 as_cr_digits='0123456789'
4894 as_cr_alnum=$as_cr_Letters$as_cr_digits
4895
4896
4897 # Determine whether it's possible to make 'echo' print without a newline.
4898 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4899 # for compatibility with existing Makefiles.
4900 ECHO_C= ECHO_N= ECHO_T=
4901 case `echo -n x` in #(((((
4902 -n*)
4903 case `echo 'xy\c'` in
4904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4905 xy) ECHO_C='\c';;
4906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4907 ECHO_T=' ';;
4908 esac;;
4909 *)
4910 ECHO_N='-n';;
4911 esac
4912
4913 # For backward compatibility with old third-party macros, we provide
4914 # the shell variables $as_echo and $as_echo_n. New code should use
4915 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4916 as_echo='printf %s\n'
4917 as_echo_n='printf %s'
4918
4919 rm -f conf$$ conf$$.exe conf$$.file
4920 if test -d conf$$.dir; then
4921 rm -f conf$$.dir/conf$$.file
4922 else
4923 rm -f conf$$.dir
4924 mkdir conf$$.dir 2>/dev/null
4925 fi
4926 if (echo >conf$$.file) 2>/dev/null; then
4927 if ln -s conf$$.file conf$$ 2>/dev/null; then
4928 as_ln_s='ln -s'
4929 # ... but there are two gotchas:
4930 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
4931 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
4932 # In both cases, we have to default to 'cp -pR'.
4933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4934 as_ln_s='cp -pR'
4935 elif ln conf$$.file conf$$ 2>/dev/null; then
4936 as_ln_s=ln
4937 else
4938 as_ln_s='cp -pR'
4939 fi
4940 else
4941 as_ln_s='cp -pR'
4942 fi
4943 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4944 rmdir conf$$.dir 2>/dev/null
4945
4946
4947 # as_fn_mkdir_p
4948 # -------------
4949 # Create "$as_dir" as a directory, including parents if necessary.
4950 as_fn_mkdir_p ()
4951 {
4952
4953 case $as_dir in #(
4954 -*) as_dir=./$as_dir;;
4955 esac
4956 test -d "$as_dir" || eval $as_mkdir_p || {
4957 as_dirs=
4958 while :; do
4959 case $as_dir in #(
4960 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4961 *) as_qdir=$as_dir;;
4962 esac
4963 as_dirs="'$as_qdir' $as_dirs"
4964 as_dir=`$as_dirname -- "$as_dir" ||
4965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4966 X"$as_dir" : 'X\(//\)[^/]' \| \
4967 X"$as_dir" : 'X\(//\)$' \| \
4968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4969 printf "%s\n" X"$as_dir" |
4970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4971 s//\1/
4972 q
4973 }
4974 /^X\(\/\/\)[^/].*/{
4975 s//\1/
4976 q
4977 }
4978 /^X\(\/\/\)$/{
4979 s//\1/
4980 q
4981 }
4982 /^X\(\/\).*/{
4983 s//\1/
4984 q
4985 }
4986 s/.*/./; q'`
4987 test -d "$as_dir" && break
4988 done
4989 test -z "$as_dirs" || eval "mkdir $as_dirs"
4990 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4991
4992
4993 } # as_fn_mkdir_p
4994 if mkdir -p . 2>/dev/null; then
4995 as_mkdir_p='mkdir -p "$as_dir"'
4996 else
4997 test -d ./-p && rmdir ./-p
4998 as_mkdir_p=false
4999 fi
5000
5001
5002 # as_fn_executable_p FILE
5003 # -----------------------
5004 # Test if FILE is an executable regular file.
5005 as_fn_executable_p ()
5006 {
5007 test -f "$1" && test -x "$1"
5008 } # as_fn_executable_p
5009 as_test_x='test -x'
5010 as_executable_p=as_fn_executable_p
5011
5012 # Sed expression to map a string onto a valid CPP name.
5013 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5014 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5015
5016 # Sed expression to map a string onto a valid variable name.
5017 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5018 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
5019
5020
5021 exec 6>&1
5022 ## ----------------------------------- ##
5023 ## Main body of $CONFIG_STATUS script. ##
5024 ## ----------------------------------- ##
5025 _ASEOF
5026 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5027
5028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5029 # Save the log message, to keep $0 and so on meaningful, and to
5030 # report actual input values of CONFIG_FILES etc. instead of their
5031 # values after options handling.
5032 ac_log="
5033 This file was extended by simdzone $as_me 0.2.4, which was
5034 generated by GNU Autoconf 2.72. Invocation command line was
5035
5036 CONFIG_FILES = $CONFIG_FILES
5037 CONFIG_HEADERS = $CONFIG_HEADERS
5038 CONFIG_LINKS = $CONFIG_LINKS
5039 CONFIG_COMMANDS = $CONFIG_COMMANDS
5040 $ $0 $@
5041
5042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5043 "
5044
5045 _ACEOF
5046
5047 case $ac_config_files in *"
5048 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5049 esac
5050
5051 case $ac_config_headers in *"
5052 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5053 esac
5054
5055
5056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5057 # Files that config.status was made for.
5058 config_files="$ac_config_files"
5059 config_headers="$ac_config_headers"
5060
5061 _ACEOF
5062
5063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5064 ac_cs_usage="\
5065 '$as_me' instantiates files and other configuration actions
5066 from templates according to the current configuration. Unless the files
5067 and actions are specified as TAGs, all are instantiated by default.
5068
5069 Usage: $0 [OPTION]... [TAG]...
5070
5071 -h, --help print this help, then exit
5072 -V, --version print version number and configuration settings, then exit
5073 --config print configuration, then exit
5074 -q, --quiet, --silent
5075 do not print progress messages
5076 -d, --debug don't remove temporary files
5077 --recheck update $as_me by reconfiguring in the same conditions
5078 --file=FILE[:TEMPLATE]
5079 instantiate the configuration file FILE
5080 --header=FILE[:TEMPLATE]
5081 instantiate the configuration header FILE
5082
5083 Configuration files:
5084 $config_files
5085
5086 Configuration headers:
5087 $config_headers
5088
5089 Report bugs to <https://github.com/NLnetLabs/simdzone/issues>."
5090
5091 _ACEOF
5092 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5093 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5095 ac_cs_config='$ac_cs_config_escaped'
5096 ac_cs_version="\\
5097 simdzone config.status 0.2.4
5098 configured by $0, generated by GNU Autoconf 2.72,
5099 with options \\"\$ac_cs_config\\"
5100
5101 Copyright (C) 2023 Free Software Foundation, Inc.
5102 This config.status script is free software; the Free Software Foundation
5103 gives unlimited permission to copy, distribute and modify it."
5104
5105 ac_pwd='$ac_pwd'
5106 srcdir='$srcdir'
5107 test -n "\$AWK" || AWK=awk
5108 _ACEOF
5109
5110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5111 # The default lists apply if the user does not specify any file.
5112 ac_need_defaults=:
5113 while test $# != 0
5114 do
5115 case $1 in
5116 --*=?*)
5117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5119 ac_shift=:
5120 ;;
5121 --*=)
5122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5123 ac_optarg=
5124 ac_shift=:
5125 ;;
5126 *)
5127 ac_option=$1
5128 ac_optarg=$2
5129 ac_shift=shift
5130 ;;
5131 esac
5132
5133 case $ac_option in
5134 # Handling of the options.
5135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5136 ac_cs_recheck=: ;;
5137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5138 printf "%s\n" "$ac_cs_version"; exit ;;
5139 --config | --confi | --conf | --con | --co | --c )
5140 printf "%s\n" "$ac_cs_config"; exit ;;
5141 --debug | --debu | --deb | --de | --d | -d )
5142 debug=: ;;
5143 --file | --fil | --fi | --f )
5144 $ac_shift
5145 case $ac_optarg in
5146 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5147 '') as_fn_error $? "missing file argument" ;;
5148 esac
5149 as_fn_append CONFIG_FILES " '$ac_optarg'"
5150 ac_need_defaults=false;;
5151 --header | --heade | --head | --hea )
5152 $ac_shift
5153 case $ac_optarg in
5154 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5155 esac
5156 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5157 ac_need_defaults=false;;
5158 --he | --h)
5159 # Conflict between --help and --header
5160 as_fn_error $? "ambiguous option: '$1'
5161 Try '$0 --help' for more information.";;
5162 --help | --hel | -h )
5163 printf "%s\n" "$ac_cs_usage"; exit ;;
5164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5165 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5166 ac_cs_silent=: ;;
5167
5168 # This is an error.
5169 -*) as_fn_error $? "unrecognized option: '$1'
5170 Try '$0 --help' for more information." ;;
5171
5172 *) as_fn_append ac_config_targets " $1"
5173 ac_need_defaults=false ;;
5174
5175 esac
5176 shift
5177 done
5178
5179 ac_configure_extra_args=
5180
5181 if $ac_cs_silent; then
5182 exec 6>/dev/null
5183 ac_configure_extra_args="$ac_configure_extra_args --silent"
5184 fi
5185
5186 _ACEOF
5187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5188 if \$ac_cs_recheck; then
5189 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5190 shift
5191 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5192 CONFIG_SHELL='$SHELL'
5193 export CONFIG_SHELL
5194 exec "\$@"
5195 fi
5196
5197 _ACEOF
5198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5199 exec 5>>config.log
5200 {
5201 echo
5202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5203 ## Running $as_me. ##
5204 _ASBOX
5205 printf "%s\n" "$ac_log"
5206 } >&5
5207
5208 _ACEOF
5209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5210 _ACEOF
5211
5212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5213
5214 # Handling of arguments.
5215 for ac_config_target in $ac_config_targets
5216 do
5217 case $ac_config_target in
5218 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5219 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5220
5221 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
5222 esac
5223 done
5224
5225
5226 # If the user did not use the arguments to specify the items to instantiate,
5227 # then the envvar interface is used. Set only those that are not.
5228 # We use the long form for the default assignment because of an extremely
5229 # bizarre bug on SunOS 4.1.3.
5230 if $ac_need_defaults; then
5231 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5232 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5233 fi
5234
5235 # Have a temporary directory for convenience. Make it in the build tree
5236 # simply because there is no reason against having it here, and in addition,
5237 # creating and moving files from /tmp can sometimes cause problems.
5238 # Hook for its removal unless debugging.
5239 # Note that there is a small window in which the directory will not be cleaned:
5240 # after its creation but before its name has been assigned to '$tmp'.
5241 $debug ||
5242 {
5243 tmp= ac_tmp=
5244 trap 'exit_status=$?
5245 : "${ac_tmp:=$tmp}"
5246 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5247 ' 0
5248 trap 'as_fn_exit 1' 1 2 13 15
5249 }
5250 # Create a (secure) tmp directory for tmp files.
5251
5252 {
5253 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5254 test -d "$tmp"
5255 } ||
5256 {
5257 tmp=./conf$$-$RANDOM
5258 (umask 077 && mkdir "$tmp")
5259 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5260 ac_tmp=$tmp
5261
5262 # Set up the scripts for CONFIG_FILES section.
5263 # No need to generate them if there are no CONFIG_FILES.
5264 # This happens for instance with './config.status config.h'.
5265 if test -n "$CONFIG_FILES"; then
5266
5267
5268 ac_cr=`echo X | tr X '\015'`
5269 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5270 # But we know of no other shell where ac_cr would be empty at this
5271 # point, so we can use a bashism as a fallback.
5272 if test "x$ac_cr" = x; then
5273 eval ac_cr=\$\'\\r\'
5274 fi
5275 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5276 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5277 ac_cs_awk_cr='\\r'
5278 else
5279 ac_cs_awk_cr=$ac_cr
5280 fi
5281
5282 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5283 _ACEOF
5284
5285
5286 {
5287 echo "cat >conf$$subs.awk <<_ACEOF" &&
5288 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5289 echo "_ACEOF"
5290 } >conf$$subs.sh ||
5291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5292 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5293 ac_delim='%!_!# '
5294 for ac_last_try in false false false false false :; do
5295 . ./conf$$subs.sh ||
5296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5297
5298 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5299 if test $ac_delim_n = $ac_delim_num; then
5300 break
5301 elif $ac_last_try; then
5302 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5303 else
5304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5305 fi
5306 done
5307 rm -f conf$$subs.sh
5308
5309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5310 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5311 _ACEOF
5312 sed -n '
5313 h
5314 s/^/S["/; s/!.*/"]=/
5315 p
5316 g
5317 s/^[^!]*!//
5318 :repl
5319 t repl
5320 s/'"$ac_delim"'$//
5321 t delim
5322 :nl
5323 h
5324 s/\(.\{148\}\)..*/\1/
5325 t more1
5326 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5327 p
5328 n
5329 b repl
5330 :more1
5331 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5332 p
5333 g
5334 s/.\{148\}//
5335 t nl
5336 :delim
5337 h
5338 s/\(.\{148\}\)..*/\1/
5339 t more2
5340 s/["\\]/\\&/g; s/^/"/; s/$/"/
5341 p
5342 b
5343 :more2
5344 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5345 p
5346 g
5347 s/.\{148\}//
5348 t delim
5349 ' <conf$$subs.awk | sed '
5350 /^[^""]/{
5351 N
5352 s/\n//
5353 }
5354 ' >>$CONFIG_STATUS || ac_write_fail=1
5355 rm -f conf$$subs.awk
5356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5357 _ACAWK
5358 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5359 for (key in S) S_is_set[key] = 1
5360 FS = ""
5361
5362 }
5363 {
5364 line = $ 0
5365 nfields = split(line, field, "@")
5366 substed = 0
5367 len = length(field[1])
5368 for (i = 2; i < nfields; i++) {
5369 key = field[i]
5370 keylen = length(key)
5371 if (S_is_set[key]) {
5372 value = S[key]
5373 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5374 len += length(value) + length(field[++i])
5375 substed = 1
5376 } else
5377 len += 1 + keylen
5378 }
5379
5380 print line
5381 }
5382
5383 _ACAWK
5384 _ACEOF
5385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5386 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5387 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5388 else
5389 cat
5390 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5391 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5392 _ACEOF
5393
5394 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5395 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5396 # trailing colons and then remove the whole line if VPATH becomes empty
5397 # (actually we leave an empty line to preserve line numbers).
5398 if test "x$srcdir" = x.; then
5399 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5400 h
5401 s///
5402 s/^/:/
5403 s/[ ]*$/:/
5404 s/:\$(srcdir):/:/g
5405 s/:\${srcdir}:/:/g
5406 s/:@srcdir@:/:/g
5407 s/^:*//
5408 s/:*$//
5409 x
5410 s/\(=[ ]*\).*/\1/
5411 G
5412 s/\n//
5413 s/^[^=]*=[ ]*$//
5414 }'
5415 fi
5416
5417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5418 fi # test -n "$CONFIG_FILES"
5419
5420 # Set up the scripts for CONFIG_HEADERS section.
5421 # No need to generate them if there are no CONFIG_HEADERS.
5422 # This happens for instance with './config.status Makefile'.
5423 if test -n "$CONFIG_HEADERS"; then
5424 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5425 BEGIN {
5426 _ACEOF
5427
5428 # Transform confdefs.h into an awk script 'defines.awk', embedded as
5429 # here-document in config.status, that substitutes the proper values into
5430 # config.h.in to produce config.h.
5431
5432 # Create a delimiter string that does not exist in confdefs.h, to ease
5433 # handling of long lines.
5434 ac_delim='%!_!# '
5435 for ac_last_try in false false :; do
5436 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5437 if test -z "$ac_tt"; then
5438 break
5439 elif $ac_last_try; then
5440 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5441 else
5442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5443 fi
5444 done
5445
5446 # For the awk script, D is an array of macro values keyed by name,
5447 # likewise P contains macro parameters if any. Preserve backslash
5448 # newline sequences.
5449
5450 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5451 sed -n '
5452 s/.\{148\}/&'"$ac_delim"'/g
5453 t rset
5454 :rset
5455 s/^[ ]*#[ ]*define[ ][ ]*/ /
5456 t def
5457 d
5458 :def
5459 s/\\$//
5460 t bsnl
5461 s/["\\]/\\&/g
5462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5463 D["\1"]=" \3"/p
5464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5465 d
5466 :bsnl
5467 s/["\\]/\\&/g
5468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5469 D["\1"]=" \3\\\\\\n"\\/p
5470 t cont
5471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5472 t cont
5473 d
5474 :cont
5475 n
5476 s/.\{148\}/&'"$ac_delim"'/g
5477 t clear
5478 :clear
5479 s/\\$//
5480 t bsnlc
5481 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5482 d
5483 :bsnlc
5484 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5485 b cont
5486 ' <confdefs.h | sed '
5487 s/'"$ac_delim"'/"\\\
5488 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5489
5490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5491 for (key in D) D_is_set[key] = 1
5492 FS = ""
5493 }
5494 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5495 line = \$ 0
5496 split(line, arg, " ")
5497 if (arg[1] == "#") {
5498 defundef = arg[2]
5499 mac1 = arg[3]
5500 } else {
5501 defundef = substr(arg[1], 2)
5502 mac1 = arg[2]
5503 }
5504 split(mac1, mac2, "(") #)
5505 macro = mac2[1]
5506 prefix = substr(line, 1, index(line, defundef) - 1)
5507 if (D_is_set[macro]) {
5508 # Preserve the white space surrounding the "#".
5509 print prefix "define", macro P[macro] D[macro]
5510 next
5511 } else {
5512 # Replace #undef with comments. This is necessary, for example,
5513 # in the case of _POSIX_SOURCE, which is predefined and required
5514 # on some systems where configure will not decide to define it.
5515 if (defundef == "undef") {
5516 print "/*", prefix defundef, macro, "*/"
5517 next
5518 }
5519 }
5520 }
5521 { print }
5522 _ACAWK
5523 _ACEOF
5524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5525 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5526 fi # test -n "$CONFIG_HEADERS"
5527
5528
5529 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5530 shift
5531 for ac_tag
5532 do
5533 case $ac_tag in
5534 :[FHLC]) ac_mode=$ac_tag; continue;;
5535 esac
5536 case $ac_mode$ac_tag in
5537 :[FHL]*:*);;
5538 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
5539 :[FH]-) ac_tag=-:-;;
5540 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5541 esac
5542 ac_save_IFS=$IFS
5543 IFS=:
5544 set x $ac_tag
5545 IFS=$ac_save_IFS
5546 shift
5547 ac_file=$1
5548 shift
5549
5550 case $ac_mode in
5551 :L) ac_source=$1;;
5552 :[FH])
5553 ac_file_inputs=
5554 for ac_f
5555 do
5556 case $ac_f in
5557 -) ac_f="$ac_tmp/stdin";;
5558 *) # Look for the file first in the build tree, then in the source tree
5559 # (if the path is not absolute). The absolute path cannot be DOS-style,
5560 # because $ac_f cannot contain ':'.
5561 test -f "$ac_f" ||
5562 case $ac_f in
5563 [\\/$]*) false;;
5564 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5565 esac ||
5566 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
5567 esac
5568 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5569 as_fn_append ac_file_inputs " '$ac_f'"
5570 done
5571
5572 # Let's still pretend it is 'configure' which instantiates (i.e., don't
5573 # use $as_me), people would be surprised to read:
5574 # /* config.h. Generated by config.status. */
5575 configure_input='Generated from '`
5576 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5577 `' by configure.'
5578 if test x"$ac_file" != x-; then
5579 configure_input="$ac_file. $configure_input"
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5581 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5582 fi
5583 # Neutralize special characters interpreted by sed in replacement strings.
5584 case $configure_input in #(
5585 *\&* | *\|* | *\\* )
5586 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5587 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5588 *) ac_sed_conf_input=$configure_input;;
5589 esac
5590
5591 case $ac_tag in
5592 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5594 esac
5595 ;;
5596 esac
5597
5598 ac_dir=`$as_dirname -- "$ac_file" ||
5599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5600 X"$ac_file" : 'X\(//\)[^/]' \| \
5601 X"$ac_file" : 'X\(//\)$' \| \
5602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5603 printf "%s\n" X"$ac_file" |
5604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5605 s//\1/
5606 q
5607 }
5608 /^X\(\/\/\)[^/].*/{
5609 s//\1/
5610 q
5611 }
5612 /^X\(\/\/\)$/{
5613 s//\1/
5614 q
5615 }
5616 /^X\(\/\).*/{
5617 s//\1/
5618 q
5619 }
5620 s/.*/./; q'`
5621 as_dir="$ac_dir"; as_fn_mkdir_p
5622 ac_builddir=.
5623
5624 case "$ac_dir" in
5625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5626 *)
5627 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
5628 # A ".." for each directory in $ac_dir_suffix.
5629 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5630 case $ac_top_builddir_sub in
5631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5633 esac ;;
5634 esac
5635 ac_abs_top_builddir=$ac_pwd
5636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5637 # for backward compatibility:
5638 ac_top_builddir=$ac_top_build_prefix
5639
5640 case $srcdir in
5641 .) # We are building in place.
5642 ac_srcdir=.
5643 ac_top_srcdir=$ac_top_builddir_sub
5644 ac_abs_top_srcdir=$ac_pwd ;;
5645 [\\/]* | ?:[\\/]* ) # Absolute name.
5646 ac_srcdir=$srcdir$ac_dir_suffix;
5647 ac_top_srcdir=$srcdir
5648 ac_abs_top_srcdir=$srcdir ;;
5649 *) # Relative name.
5650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5651 ac_top_srcdir=$ac_top_build_prefix$srcdir
5652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5653 esac
5654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5655
5656
5657 case $ac_mode in
5658 :F)
5659 #
5660 # CONFIG_FILE
5661 #
5662
5663 _ACEOF
5664
5665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5666 # If the template does not know about datarootdir, expand it.
5667 # FIXME: This hack should be removed a few years after 2.60.
5668 ac_datarootdir_hack=; ac_datarootdir_seen=
5669 ac_sed_dataroot='
5670 /datarootdir/ {
5671 p
5672 q
5673 }
5674 /@datadir@/p
5675 /@docdir@/p
5676 /@infodir@/p
5677 /@localedir@/p
5678 /@mandir@/p'
5679 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5680 *datarootdir*) ac_datarootdir_seen=yes;;
5681 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5683 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5684 _ACEOF
5685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5686 ac_datarootdir_hack='
5687 s&@datadir@&$datadir&g
5688 s&@docdir@&$docdir&g
5689 s&@infodir@&$infodir&g
5690 s&@localedir@&$localedir&g
5691 s&@mandir@&$mandir&g
5692 s&\\\${datarootdir}&$datarootdir&g' ;;
5693 esac
5694 _ACEOF
5695
5696 # Neutralize VPATH when '$srcdir' = '.'.
5697 # Shell code in configure.ac might set extrasub.
5698 # FIXME: do we really want to maintain this feature?
5699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5700 ac_sed_extra="$ac_vpsub
5701 $extrasub
5702 _ACEOF
5703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5704 :t
5705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5706 s|@configure_input@|$ac_sed_conf_input|;t t
5707 s&@top_builddir@&$ac_top_builddir_sub&;t t
5708 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5709 s&@srcdir@&$ac_srcdir&;t t
5710 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5711 s&@top_srcdir@&$ac_top_srcdir&;t t
5712 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5713 s&@builddir@&$ac_builddir&;t t
5714 s&@abs_builddir@&$ac_abs_builddir&;t t
5715 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5716 $ac_datarootdir_hack
5717 "
5718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5719 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5720
5721 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5722 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5723 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5724 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5726 which seems to be undefined. Please make sure it is defined" >&5
5727 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5728 which seems to be undefined. Please make sure it is defined" >&2;}
5729
5730 rm -f "$ac_tmp/stdin"
5731 case $ac_file in
5732 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5733 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5734 esac \
5735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5736 ;;
5737 :H)
5738 #
5739 # CONFIG_HEADER
5740 #
5741 if test x"$ac_file" != x-; then
5742 {
5743 printf "%s\n" "/* $configure_input */" >&1 \
5744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5745 } >"$ac_tmp/config.h" \
5746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5747 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5749 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
5750 else
5751 rm -f "$ac_file"
5752 mv "$ac_tmp/config.h" "$ac_file" \
5753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5754 fi
5755 else
5756 printf "%s\n" "/* $configure_input */" >&1 \
5757 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5758 || as_fn_error $? "could not create -" "$LINENO" 5
5759 fi
5760 ;;
5761
5762
5763 esac
5764
5765 done # for ac_tag
5766
5767
5768 as_fn_exit 0
5769 _ACEOF
5770 ac_clean_files=$ac_clean_files_save
5771
5772 test $ac_write_fail = 0 ||
5773 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5774
5775
5776 # configure is writing to config.log, and then calls config.status.
5777 # config.status does its own redirection, appending to config.log.
5778 # Unfortunately, on DOS this fails, as config.log is still kept open
5779 # by configure, so config.status won't be able to write to it; its
5780 # output is simply discarded. So we exec the FD to /dev/null,
5781 # effectively closing config.log, so it can be properly (re)opened and
5782 # appended to by config.status. When coming back to configure, we
5783 # need to make the FD available again.
5784 if test "$no_create" != yes; then
5785 ac_cs_success=:
5786 ac_config_status_args=
5787 test "$silent" = yes &&
5788 ac_config_status_args="$ac_config_status_args --quiet"
5789 exec 5>/dev/null
5790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5791 exec 5>>config.log
5792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5793 # would make configure fail if this is the last instruction.
5794 $ac_cs_success || as_fn_exit 1
5795 fi
5796 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5798 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5799 fi
5800
5801
5802