Debian Codegraph @

src/configure

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