on 8e1ed02 help sign in
streamly/configure
4317 lines 125 kB history raw
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for streamly 0.10.1.
4#
5# Report bugs to <streamly@composewell.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35esac
36fi
40# Reset variables that may have inherited troublesome values from
41# the environment.
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
49export as_nl
50IFS=" "" $as_nl"
52PS1='$ '
53PS2='> '
54PS4='+ '
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
87# Find who we are. Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102IFS=$as_save_IFS
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
117# Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158esac
159fi
161 as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
175else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev/null
187then :
188 as_have_required=yes
189else $as_nop
190 as_have_required=no
191fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193then :
195else $as_nop
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197as_found=false
198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199do
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
214then :
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
217then :
218 break 2
219fi
220fi
221 done;;
222 esac
223 as_found=false
224done
225IFS=$as_save_IFS
226if $as_found
227then :
229else $as_nop
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi
235fi
238 if test "x$CONFIG_SHELL" != x
239then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
261 if test x$as_have_required = xno
262then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270$0: streamly@composewell.com about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
293 { eval $1=; unset $1;}
295as_unset=as_fn_unset
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
303 return $1
304} # as_fn_set_status
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
311 set +e
312 as_fn_set_status $1
313 exit $1
314} # as_fn_exit
315# as_fn_nop
316# ---------
317# Do nothing but, unlike ":", preserve the value of $?.
318as_fn_nop ()
320 return $?
322as_nop=as_fn_nop
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370} # as_fn_mkdir_p
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else $as_nop
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409else $as_nop
410 as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 }
414fi # as_fn_arith
416# as_fn_nop
417# ---------
418# Do nothing but, unlike ":", preserve the value of $?.
419as_fn_nop ()
421 return $?
423as_nop=as_fn_nop
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439} # as_fn_error
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444else
445 as_expr=false
446fi
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450else
451 as_basename=false
452fi
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456else
457 as_dirname=false
458fi
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
523# Determine whether it's possible to make 'echo' print without a newline.
524# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525# for compatibility with existing Makefiles.
526ECHO_C= ECHO_N= ECHO_T=
527case `echo -n x` in #(((((
528-n*)
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531 xy) ECHO_C='\c';;
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533 ECHO_T=' ';;
534 esac;;
535*)
536 ECHO_N='-n';;
537esac
539# For backward compatibility with old third-party macros, we provide
540# the shell variables $as_echo and $as_echo_n. New code should use
541# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542as_echo='printf %s\n'
543as_echo_n='printf %s'
546rm -f conf$$ conf$$.exe conf$$.file
547if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552fi
553if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567else
568 as_ln_s='cp -pR'
569fi
570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571rmdir conf$$.dir 2>/dev/null
573if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578fi
580as_test_x='test -x'
581as_executable_p=as_fn_executable_p
583# Sed expression to map a string onto a valid CPP name.
584as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586# Sed expression to map a string onto a valid variable name.
587as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590test -n "$DJDIR" || exec 7<&0 </dev/null
591exec 6>&1
593# Name of the host.
594# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595# so uname gets run too.
596ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599# Initializations.
601ac_default_prefix=/usr/local
602ac_clean_files=
603ac_config_libobj_dir=.
604LIBOBJS=
605cross_compiling=no
606subdirs=
607MFLAGS=
608MAKEFLAGS=
610# Identity of this package.
611PACKAGE_NAME='streamly'
612PACKAGE_TARNAME='streamly'
613PACKAGE_VERSION='0.10.1'
614PACKAGE_STRING='streamly 0.10.1'
615PACKAGE_BUGREPORT='streamly@composewell.com'
616PACKAGE_URL='https://streamly.composewell.com'
618ac_subst_vars='LTLIBOBJS
619LIBOBJS
620OBJEXT
621EXEEXT
622ac_ct_CC
623CPPFLAGS
624LDFLAGS
625CFLAGS
626CC
627target_alias
628host_alias
629build_alias
630LIBS
631ECHO_T
632ECHO_N
633ECHO_C
634DEFS
635mandir
636localedir
637libdir
638psdir
639pdfdir
640dvidir
641htmldir
642infodir
643docdir
644oldincludedir
645includedir
646runstatedir
647localstatedir
648sharedstatedir
649sysconfdir
650datadir
651datarootdir
652libexecdir
653sbindir
654bindir
655program_transform_name
656prefix
657exec_prefix
658PACKAGE_URL
659PACKAGE_BUGREPORT
660PACKAGE_STRING
661PACKAGE_VERSION
662PACKAGE_TARNAME
663PACKAGE_NAME
664PATH_SEPARATOR
665SHELL'
666ac_subst_files=''
667ac_user_opts='
668enable_option_checking
669with_compiler
671 ac_precious_vars='build_alias
672host_alias
673target_alias
674CC
675CFLAGS
676LDFLAGS
677LIBS
678CPPFLAGS'
681# Initialize some variables set by options.
682ac_init_help=
683ac_init_version=false
684ac_unrecognized_opts=
685ac_unrecognized_sep=
686# The variables have the same names as the options, with
687# dashes changed to underlines.
688cache_file=/dev/null
689exec_prefix=NONE
690no_create=
691no_recursion=
692prefix=NONE
693program_prefix=NONE
694program_suffix=NONE
695program_transform_name=s,x,x,
696silent=
697site=
698srcdir=
699verbose=
700x_includes=NONE
701x_libraries=NONE
703# Installation directory options.
704# These are left unexpanded so users can "make install exec_prefix=/foo"
705# and all the variables that are supposed to be based on exec_prefix
706# by default will actually change.
707# Use braces instead of parens because sh, perl, etc. also accept them.
708# (The list follows the same order as the GNU Coding Standards.)
709bindir='${exec_prefix}/bin'
710sbindir='${exec_prefix}/sbin'
711libexecdir='${exec_prefix}/libexec'
712datarootdir='${prefix}/share'
713datadir='${datarootdir}'
714sysconfdir='${prefix}/etc'
715sharedstatedir='${prefix}/com'
716localstatedir='${prefix}/var'
717runstatedir='${localstatedir}/run'
718includedir='${prefix}/include'
719oldincludedir='/usr/include'
720docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
721infodir='${datarootdir}/info'
722htmldir='${docdir}'
723dvidir='${docdir}'
724pdfdir='${docdir}'
725psdir='${docdir}'
726libdir='${exec_prefix}/lib'
727localedir='${datarootdir}/locale'
728mandir='${datarootdir}/man'
730ac_prev=
731ac_dashdash=
732for ac_option
733do
734 # If the previous option needs an argument, assign it.
735 if test -n "$ac_prev"; then
736 eval $ac_prev=\$ac_option
737 ac_prev=
738 continue
739 fi
741 case $ac_option in
742 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
743 *=) ac_optarg= ;;
744 *) ac_optarg=yes ;;
745 esac
747 case $ac_dashdash$ac_option in
748 --)
749 ac_dashdash=yes ;;
751 -bindir | --bindir | --bindi | --bind | --bin | --bi)
752 ac_prev=bindir ;;
753 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
754 bindir=$ac_optarg ;;
756 -build | --build | --buil | --bui | --bu)
757 ac_prev=build_alias ;;
758 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
759 build_alias=$ac_optarg ;;
761 -cache-file | --cache-file | --cache-fil | --cache-fi \
762 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
763 ac_prev=cache_file ;;
764 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
765 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
766 cache_file=$ac_optarg ;;
768 --config-cache | -C)
769 cache_file=config.cache ;;
771 -datadir | --datadir | --datadi | --datad)
772 ac_prev=datadir ;;
773 -datadir=* | --datadir=* | --datadi=* | --datad=*)
774 datadir=$ac_optarg ;;
776 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
777 | --dataroo | --dataro | --datar)
778 ac_prev=datarootdir ;;
779 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
780 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
781 datarootdir=$ac_optarg ;;
783 -disable-* | --disable-*)
784 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
787 as_fn_error $? "invalid feature name: \`$ac_useropt'"
788 ac_useropt_orig=$ac_useropt
789 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
790 case $ac_user_opts in
791 *"
792"enable_$ac_useropt"
793"*) ;;
794 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
795 ac_unrecognized_sep=', ';;
796 esac
797 eval enable_$ac_useropt=no ;;
799 -docdir | --docdir | --docdi | --doc | --do)
800 ac_prev=docdir ;;
801 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
802 docdir=$ac_optarg ;;
804 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
805 ac_prev=dvidir ;;
806 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
807 dvidir=$ac_optarg ;;
809 -enable-* | --enable-*)
810 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
811 # Reject names that are not valid shell variable names.
812 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
813 as_fn_error $? "invalid feature name: \`$ac_useropt'"
814 ac_useropt_orig=$ac_useropt
815 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
816 case $ac_user_opts in
817 *"
818"enable_$ac_useropt"
819"*) ;;
820 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
821 ac_unrecognized_sep=', ';;
822 esac
823 eval enable_$ac_useropt=\$ac_optarg ;;
825 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
826 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
827 | --exec | --exe | --ex)
828 ac_prev=exec_prefix ;;
829 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
830 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
831 | --exec=* | --exe=* | --ex=*)
832 exec_prefix=$ac_optarg ;;
834 -gas | --gas | --ga | --g)
835 # Obsolete; use --with-gas.
836 with_gas=yes ;;
838 -help | --help | --hel | --he | -h)
839 ac_init_help=long ;;
840 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
841 ac_init_help=recursive ;;
842 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
843 ac_init_help=short ;;
845 -host | --host | --hos | --ho)
846 ac_prev=host_alias ;;
847 -host=* | --host=* | --hos=* | --ho=*)
848 host_alias=$ac_optarg ;;
850 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
851 ac_prev=htmldir ;;
852 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
853 | --ht=*)
854 htmldir=$ac_optarg ;;
856 -includedir | --includedir | --includedi | --included | --include \
857 | --includ | --inclu | --incl | --inc)
858 ac_prev=includedir ;;
859 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
860 | --includ=* | --inclu=* | --incl=* | --inc=*)
861 includedir=$ac_optarg ;;
863 -infodir | --infodir | --infodi | --infod | --info | --inf)
864 ac_prev=infodir ;;
865 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
866 infodir=$ac_optarg ;;
868 -libdir | --libdir | --libdi | --libd)
869 ac_prev=libdir ;;
870 -libdir=* | --libdir=* | --libdi=* | --libd=*)
871 libdir=$ac_optarg ;;
873 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
874 | --libexe | --libex | --libe)
875 ac_prev=libexecdir ;;
876 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
877 | --libexe=* | --libex=* | --libe=*)
878 libexecdir=$ac_optarg ;;
880 -localedir | --localedir | --localedi | --localed | --locale)
881 ac_prev=localedir ;;
882 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
883 localedir=$ac_optarg ;;
885 -localstatedir | --localstatedir | --localstatedi | --localstated \
886 | --localstate | --localstat | --localsta | --localst | --locals)
887 ac_prev=localstatedir ;;
888 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
889 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
890 localstatedir=$ac_optarg ;;
892 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
893 ac_prev=mandir ;;
894 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
895 mandir=$ac_optarg ;;
897 -nfp | --nfp | --nf)
898 # Obsolete; use --without-fp.
899 with_fp=no ;;
901 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
902 | --no-cr | --no-c | -n)
903 no_create=yes ;;
905 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
906 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
907 no_recursion=yes ;;
909 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
910 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
911 | --oldin | --oldi | --old | --ol | --o)
912 ac_prev=oldincludedir ;;
913 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
914 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
915 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
916 oldincludedir=$ac_optarg ;;
918 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
919 ac_prev=prefix ;;
920 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
921 prefix=$ac_optarg ;;
923 -program-prefix | --program-prefix | --program-prefi | --program-pref \
924 | --program-pre | --program-pr | --program-p)
925 ac_prev=program_prefix ;;
926 -program-prefix=* | --program-prefix=* | --program-prefi=* \
927 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
928 program_prefix=$ac_optarg ;;
930 -program-suffix | --program-suffix | --program-suffi | --program-suff \
931 | --program-suf | --program-su | --program-s)
932 ac_prev=program_suffix ;;
933 -program-suffix=* | --program-suffix=* | --program-suffi=* \
934 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
935 program_suffix=$ac_optarg ;;
937 -program-transform-name | --program-transform-name \
938 | --program-transform-nam | --program-transform-na \
939 | --program-transform-n | --program-transform- \
940 | --program-transform | --program-transfor \
941 | --program-transfo | --program-transf \
942 | --program-trans | --program-tran \
943 | --progr-tra | --program-tr | --program-t)
944 ac_prev=program_transform_name ;;
945 -program-transform-name=* | --program-transform-name=* \
946 | --program-transform-nam=* | --program-transform-na=* \
947 | --program-transform-n=* | --program-transform-=* \
948 | --program-transform=* | --program-transfor=* \
949 | --program-transfo=* | --program-transf=* \
950 | --program-trans=* | --program-tran=* \
951 | --progr-tra=* | --program-tr=* | --program-t=*)
952 program_transform_name=$ac_optarg ;;
954 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
955 ac_prev=pdfdir ;;
956 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
957 pdfdir=$ac_optarg ;;
959 -psdir | --psdir | --psdi | --psd | --ps)
960 ac_prev=psdir ;;
961 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
962 psdir=$ac_optarg ;;
964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
965 | -silent | --silent | --silen | --sile | --sil)
966 silent=yes ;;
968 -runstatedir | --runstatedir | --runstatedi | --runstated \
969 | --runstate | --runstat | --runsta | --runst | --runs \
970 | --run | --ru | --r)
971 ac_prev=runstatedir ;;
972 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
973 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
974 | --run=* | --ru=* | --r=*)
975 runstatedir=$ac_optarg ;;
977 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
978 ac_prev=sbindir ;;
979 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
980 | --sbi=* | --sb=*)
981 sbindir=$ac_optarg ;;
983 -sharedstatedir | --sharedstatedir | --sharedstatedi \
984 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
985 | --sharedst | --shareds | --shared | --share | --shar \
986 | --sha | --sh)
987 ac_prev=sharedstatedir ;;
988 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
989 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
990 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
991 | --sha=* | --sh=*)
992 sharedstatedir=$ac_optarg ;;
994 -site | --site | --sit)
995 ac_prev=site ;;
996 -site=* | --site=* | --sit=*)
997 site=$ac_optarg ;;
999 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1000 ac_prev=srcdir ;;
1001 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1002 srcdir=$ac_optarg ;;
1004 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1005 | --syscon | --sysco | --sysc | --sys | --sy)
1006 ac_prev=sysconfdir ;;
1007 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1008 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1009 sysconfdir=$ac_optarg ;;
1011 -target | --target | --targe | --targ | --tar | --ta | --t)
1012 ac_prev=target_alias ;;
1013 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1014 target_alias=$ac_optarg ;;
1016 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1017 verbose=yes ;;
1019 -version | --version | --versio | --versi | --vers | -V)
1020 ac_init_version=: ;;
1022 -with-* | --with-*)
1023 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026 as_fn_error $? "invalid package name: \`$ac_useropt'"
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031"with_$ac_useropt"
1032"*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval with_$ac_useropt=\$ac_optarg ;;
1038 -without-* | --without-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid package name: \`$ac_useropt'"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047"with_$ac_useropt"
1048"*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval with_$ac_useropt=no ;;
1054 --x)
1055 # Obsolete; use --with-x.
1056 with_x=yes ;;
1058 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1059 | --x-incl | --x-inc | --x-in | --x-i)
1060 ac_prev=x_includes ;;
1061 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1062 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1063 x_includes=$ac_optarg ;;
1065 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1066 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1067 ac_prev=x_libraries ;;
1068 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1069 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1070 x_libraries=$ac_optarg ;;
1072 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1073Try \`$0 --help' for more information"
1074 ;;
1076 *=*)
1077 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 case $ac_envvar in #(
1080 '' | [0-9]* | *[!_$as_cr_alnum]* )
1081 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1082 esac
1083 eval $ac_envvar=\$ac_optarg
1084 export $ac_envvar ;;
1086 *)
1087 # FIXME: should be removed in autoconf 3.0.
1088 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1090 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1092 ;;
1094 esac
1095done
1097if test -n "$ac_prev"; then
1098 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1099 as_fn_error $? "missing argument to $ac_option"
1102if test -n "$ac_unrecognized_opts"; then
1103 case $enable_option_checking in
1104 no) ;;
1105 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1106 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1107 esac
1110# Check all directory arguments for consistency.
1111for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1112 datadir sysconfdir sharedstatedir localstatedir includedir \
1113 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1114 libdir localedir mandir runstatedir
1116 eval ac_val=\$$ac_var
1117 # Remove trailing slashes.
1118 case $ac_val in
1119 */ )
1120 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1121 eval $ac_var=\$ac_val;;
1122 esac
1123 # Be sure to have absolute directory names.
1124 case $ac_val in
1125 [\\/$]* | ?:[\\/]* ) continue;;
1126 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1127 esac
1128 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1129done
1131# There might be people who depend on the old broken behavior: `$host'
1132# used to hold the argument of --host etc.
1133# FIXME: To remove some day.
1134build=$build_alias
1135host=$host_alias
1136target=$target_alias
1138# FIXME: To remove some day.
1139if test "x$host_alias" != x; then
1140 if test "x$build_alias" = x; then
1141 cross_compiling=maybe
1142 elif test "x$build_alias" != "x$host_alias"; then
1143 cross_compiling=yes
1144 fi
1147ac_tool_prefix=
1148test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150test "$silent" = yes && exec 6>/dev/null
1153ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154ac_ls_di=`ls -di .` &&
1155ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156 as_fn_error $? "working directory cannot be determined"
1157test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158 as_fn_error $? "pwd does not report name of working directory"
1161# Find the source files, if location was not specified.
1162if test -z "$srcdir"; then
1163 ac_srcdir_defaulted=yes
1164 # Try the directory containing this script, then the parent directory.
1165 ac_confdir=`$as_dirname -- "$as_myself" ||
1166$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1167 X"$as_myself" : 'X\(//\)[^/]' \| \
1168 X"$as_myself" : 'X\(//\)$' \| \
1169 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1170printf "%s\n" X"$as_myself" |
1171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172 s//\1/
1175 /^X\(\/\/\)[^/].*/{
1176 s//\1/
1179 /^X\(\/\/\)$/{
1180 s//\1/
1183 /^X\(\/\).*/{
1184 s//\1/
1187 s/.*/./; q'`
1188 srcdir=$ac_confdir
1189 if test ! -r "$srcdir/$ac_unique_file"; then
1190 srcdir=..
1191 fi
1192else
1193 ac_srcdir_defaulted=no
1195if test ! -r "$srcdir/$ac_unique_file"; then
1196 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1197 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1199ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1200ac_abs_confdir=`(
1201 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1202 pwd)`
1203# When building in place, set srcdir=.
1204if test "$ac_abs_confdir" = "$ac_pwd"; then
1205 srcdir=.
1207# Remove unnecessary trailing slashes from srcdir.
1208# Double slashes in file names in object file debugging info
1209# mess up M-x gdb in Emacs.
1210case $srcdir in
1211*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212esac
1213for ac_var in $ac_precious_vars; do
1214 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_env_${ac_var}_value=\$${ac_var}
1216 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218done
1221# Report the --help message.
1223if test "$ac_init_help" = "long"; then
1224 # Omit some internal or obsolete options to make the list less imposing.
1225 # This message is too long to be a string in the A/UX 3.1 sh.
1226 cat <<_ACEOF
1227\`configure' configures streamly 0.10.1 to adapt to many kinds of systems.
1229Usage: $0 [OPTION]... [VAR=VALUE]...
1231To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232VAR=VALUE. See below for descriptions of some of the useful variables.
1234Defaults for the options are specified in brackets.
1236Configuration:
1237 -h, --help display this help and exit
1238 --help=short display options specific to this package
1239 --help=recursive display the short help of all the included packages
1240 -V, --version display version information and exit
1241 -q, --quiet, --silent do not print \`checking ...' messages
1242 --cache-file=FILE cache test results in FILE [disabled]
1243 -C, --config-cache alias for \`--cache-file=config.cache'
1244 -n, --no-create do not create output files
1245 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1247Installation directories:
1248 --prefix=PREFIX install architecture-independent files in PREFIX
1249 [$ac_default_prefix]
1250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1251 [PREFIX]
1253By default, \`make install' will install all the files in
1254\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1255an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256for instance \`--prefix=\$HOME'.
1258For better control, use the options below.
1260Fine tuning of the installation directories:
1261 --bindir=DIR user executables [EPREFIX/bin]
1262 --sbindir=DIR system admin executables [EPREFIX/sbin]
1263 --libexecdir=DIR program executables [EPREFIX/libexec]
1264 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1265 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1266 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1267 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1268 --libdir=DIR object code libraries [EPREFIX/lib]
1269 --includedir=DIR C header files [PREFIX/include]
1270 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1271 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1272 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1273 --infodir=DIR info documentation [DATAROOTDIR/info]
1274 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1275 --mandir=DIR man documentation [DATAROOTDIR/man]
1276 --docdir=DIR documentation root [DATAROOTDIR/doc/streamly]
1277 --htmldir=DIR html documentation [DOCDIR]
1278 --dvidir=DIR dvi documentation [DOCDIR]
1279 --pdfdir=DIR pdf documentation [DOCDIR]
1280 --psdir=DIR ps documentation [DOCDIR]
1281_ACEOF
1283 cat <<\_ACEOF
1284_ACEOF
1287if test -n "$ac_init_help"; then
1288 case $ac_init_help in
1289 short | recursive ) echo "Configuration of streamly 0.10.1:";;
1290 esac
1291 cat <<\_ACEOF
1293Optional Packages:
1294 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1295 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1296GHC
1298Some influential environment variables:
1299 CC C compiler command
1300 CFLAGS C compiler flags
1301 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1302 nonstandard directory <lib dir>
1303 LIBS libraries to pass to the linker, e.g. -l<library>
1304 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1305 you have headers in a nonstandard directory <include dir>
1307Use these variables to override the choices made by `configure' or to help
1308it to find libraries and programs with nonstandard names/locations.
1310Report bugs to <streamly@composewell.com>.
1311streamly home page: <https://streamly.composewell.com>.
1312_ACEOF
1313ac_status=$?
1316if test "$ac_init_help" = "recursive"; then
1317 # If there are subdirs, report their specific --help.
1318 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1319 test -d "$ac_dir" ||
1320 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1321 continue
1322 ac_builddir=.
1324case "$ac_dir" in
1325.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1328 # A ".." for each directory in $ac_dir_suffix.
1329 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1330 case $ac_top_builddir_sub in
1331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1333 esac ;;
1334esac
1335ac_abs_top_builddir=$ac_pwd
1336ac_abs_builddir=$ac_pwd$ac_dir_suffix
1337# for backward compatibility:
1338ac_top_builddir=$ac_top_build_prefix
1340case $srcdir in
1341 .) # We are building in place.
1342 ac_srcdir=.
1343 ac_top_srcdir=$ac_top_builddir_sub
1344 ac_abs_top_srcdir=$ac_pwd ;;
1345 [\\/]* | ?:[\\/]* ) # Absolute name.
1346 ac_srcdir=$srcdir$ac_dir_suffix;
1347 ac_top_srcdir=$srcdir
1348 ac_abs_top_srcdir=$srcdir ;;
1349 *) # Relative name.
1350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1351 ac_top_srcdir=$ac_top_build_prefix$srcdir
1352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1353esac
1354ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1356 cd "$ac_dir" || { ac_status=$?; continue; }
1357 # Check for configure.gnu first; this name is used for a wrapper for
1358 # Metaconfig's "Configure" on case-insensitive file systems.
1359 if test -f "$ac_srcdir/configure.gnu"; then
1360 echo &&
1361 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1362 elif test -f "$ac_srcdir/configure"; then
1363 echo &&
1364 $SHELL "$ac_srcdir/configure" --help=recursive
1365 else
1366 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1367 fi || ac_status=$?
1368 cd "$ac_pwd" || { ac_status=$?; break; }
1369 done
1372test -n "$ac_init_help" && exit $ac_status
1373if $ac_init_version; then
1374 cat <<\_ACEOF
1375streamly configure 0.10.1
1376generated by GNU Autoconf 2.71
1378Copyright (C) 2021 Free Software Foundation, Inc.
1379This configure script is free software; the Free Software Foundation
1380gives unlimited permission to copy, distribute and modify it.
1381_ACEOF
1382 exit
1385## ------------------------ ##
1386## Autoconf initialization. ##
1387## ------------------------ ##
1389# ac_fn_c_try_compile LINENO
1390# --------------------------
1391# Try to compile conftest.$ac_ext, and return whether this succeeded.
1392ac_fn_c_try_compile ()
1394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1395 rm -f conftest.$ac_objext conftest.beam
1396 if { { ac_try="$ac_compile"
1397case "(($ac_try" in
1398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1399 *) ac_try_echo=$ac_try;;
1400esac
1401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1402printf "%s\n" "$ac_try_echo"; } >&5
1403 (eval "$ac_compile") 2>conftest.err
1404 ac_status=$?
1405 if test -s conftest.err; then
1406 grep -v '^ *+' conftest.err >conftest.er1
1407 cat conftest.er1 >&5
1408 mv -f conftest.er1 conftest.err
1409 fi
1410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1411 test $ac_status = 0; } && {
1412 test -z "$ac_c_werror_flag" ||
1413 test ! -s conftest.err
1414 } && test -s conftest.$ac_objext
1415then :
1416 ac_retval=0
1417else $as_nop
1418 printf "%s\n" "$as_me: failed program was:" >&5
1419sed 's/^/| /' conftest.$ac_ext >&5
1421 ac_retval=1
1423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1424 as_fn_set_status $ac_retval
1426} # ac_fn_c_try_compile
1428# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1429# ------------------------------------------------------------------
1430# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1431# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1432ac_fn_check_decl ()
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 as_decl_name=`echo $2|sed 's/ *(.*//'`
1436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1437printf %s "checking whether $as_decl_name is declared... " >&6; }
1438if eval test \${$3+y}
1439then :
1440 printf %s "(cached) " >&6
1441else $as_nop
1442 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1443 eval ac_save_FLAGS=\$$6
1444 as_fn_append $6 " $5"
1445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1446/* end confdefs.h. */
1448int
1449main (void)
1451#ifndef $as_decl_name
1452#ifdef __cplusplus
1453 (void) $as_decl_use;
1454#else
1455 (void) $as_decl_name;
1456#endif
1457#endif
1460 return 0;
1462_ACEOF
1463if ac_fn_c_try_compile "$LINENO"
1464then :
1465 eval "$3=yes"
1466else $as_nop
1467 eval "$3=no"
1469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1470 eval $6=\$ac_save_FLAGS
1473eval ac_res=\$$3
1474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1475printf "%s\n" "$ac_res" >&6; }
1476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1478} # ac_fn_check_decl
1479ac_configure_args_raw=
1480for ac_arg
1482 case $ac_arg in
1483 *\'*)
1484 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 esac
1486 as_fn_append ac_configure_args_raw " '$ac_arg'"
1487done
1489case $ac_configure_args_raw in
1490 *$as_nl*)
1491 ac_safe_unquote= ;;
1492 *)
1493 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1494 ac_unsafe_a="$ac_unsafe_z#~"
1495 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1496 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1497esac
1499cat >config.log <<_ACEOF
1500This file contains any messages produced by compilers while
1501running configure, to aid debugging if configure makes a mistake.
1503It was created by streamly $as_me 0.10.1, which was
1504generated by GNU Autoconf 2.71. Invocation command line was
1506 $ $0$ac_configure_args_raw
1508_ACEOF
1509exec 5>>config.log
1511cat <<_ASUNAME
1512## --------- ##
1513## Platform. ##
1514## --------- ##
1516hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1517uname -m = `(uname -m) 2>/dev/null || echo unknown`
1518uname -r = `(uname -r) 2>/dev/null || echo unknown`
1519uname -s = `(uname -s) 2>/dev/null || echo unknown`
1520uname -v = `(uname -v) 2>/dev/null || echo unknown`
1522/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1523/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1525/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1526/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1527/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1528/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1529/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1530/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1531/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1533_ASUNAME
1535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536for as_dir in $PATH
1538 IFS=$as_save_IFS
1539 case $as_dir in #(((
1540 '') as_dir=./ ;;
1541 */) ;;
1542 *) as_dir=$as_dir/ ;;
1543 esac
1544 printf "%s\n" "PATH: $as_dir"
1545 done
1546IFS=$as_save_IFS
1548} >&5
1550cat >&5 <<_ACEOF
1553## ----------- ##
1554## Core tests. ##
1555## ----------- ##
1557_ACEOF
1560# Keep a trace of the command line.
1561# Strip out --no-create and --no-recursion so they do not pile up.
1562# Strip out --silent because we don't want to record it for future runs.
1563# Also quote any args containing shell meta-characters.
1564# Make two passes to allow for proper duplicate-argument suppression.
1565ac_configure_args=
1566ac_configure_args0=
1567ac_configure_args1=
1568ac_must_keep_next=false
1569for ac_pass in 1 2
1571 for ac_arg
1572 do
1573 case $ac_arg in
1574 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1576 | -silent | --silent | --silen | --sile | --sil)
1577 continue ;;
1578 *\'*)
1579 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1580 esac
1581 case $ac_pass in
1582 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1583 2)
1584 as_fn_append ac_configure_args1 " '$ac_arg'"
1585 if test $ac_must_keep_next = true; then
1586 ac_must_keep_next=false # Got value, back to normal.
1587 else
1588 case $ac_arg in
1589 *=* | --config-cache | -C | -disable-* | --disable-* \
1590 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1591 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1592 | -with-* | --with-* | -without-* | --without-* | --x)
1593 case "$ac_configure_args0 " in
1594 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1595 esac
1596 ;;
1597 -* ) ac_must_keep_next=true ;;
1598 esac
1599 fi
1600 as_fn_append ac_configure_args " '$ac_arg'"
1601 ;;
1602 esac
1603 done
1604done
1605{ ac_configure_args0=; unset ac_configure_args0;}
1606{ ac_configure_args1=; unset ac_configure_args1;}
1608# When interrupted or exit'd, cleanup temporary files, and complete
1609# config.log. We remove comments because anyway the quotes in there
1610# would cause problems or look ugly.
1611# WARNING: Use '\'' to represent an apostrophe within the trap.
1612# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1613trap 'exit_status=$?
1614 # Sanitize IFS.
1615 IFS=" "" $as_nl"
1616 # Save into config.log some information that might help in debugging.
1618 echo
1620 printf "%s\n" "## ---------------- ##
1621## Cache variables. ##
1622## ---------------- ##"
1623 echo
1624 # The following way of writing the cache mishandles newlines in values,
1626 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in #(
1629 *${as_nl}*)
1630 case $ac_var in #(
1631 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1632printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1633 esac
1634 case $ac_var in #(
1635 _ | IFS | as_nl) ;; #(
1636 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1637 *) { eval $ac_var=; unset $ac_var;} ;;
1638 esac ;;
1639 esac
1640 done
1641 (set) 2>&1 |
1642 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1643 *${as_nl}ac_space=\ *)
1644 sed -n \
1645 "s/'\''/'\''\\\\'\'''\''/g;
1646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1647 ;; #(
1648 *)
1649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1650 ;;
1651 esac |
1652 sort
1654 echo
1656 printf "%s\n" "## ----------------- ##
1657## Output variables. ##
1658## ----------------- ##"
1659 echo
1660 for ac_var in $ac_subst_vars
1661 do
1662 eval ac_val=\$$ac_var
1663 case $ac_val in
1664 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665 esac
1666 printf "%s\n" "$ac_var='\''$ac_val'\''"
1667 done | sort
1668 echo
1670 if test -n "$ac_subst_files"; then
1671 printf "%s\n" "## ------------------- ##
1672## File substitutions. ##
1673## ------------------- ##"
1674 echo
1675 for ac_var in $ac_subst_files
1676 do
1677 eval ac_val=\$$ac_var
1678 case $ac_val in
1679 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1680 esac
1681 printf "%s\n" "$ac_var='\''$ac_val'\''"
1682 done | sort
1683 echo
1684 fi
1686 if test -s confdefs.h; then
1687 printf "%s\n" "## ----------- ##
1688## confdefs.h. ##
1689## ----------- ##"
1690 echo
1691 cat confdefs.h
1692 echo
1693 fi
1694 test "$ac_signal" != 0 &&
1695 printf "%s\n" "$as_me: caught signal $ac_signal"
1696 printf "%s\n" "$as_me: exit $exit_status"
1697 } >&5
1698 rm -f core *.core core.conftest.* &&
1699 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1700 exit $exit_status
1701' 0
1702for ac_signal in 1 2 13 15; do
1703 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1704done
1705ac_signal=0
1707# confdefs.h avoids OS command line length limits that DEFS can exceed.
1708rm -f -r conftest* confdefs.h
1710printf "%s\n" "/* confdefs.h */" > confdefs.h
1712# Predefined preprocessor variables.
1714printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1716printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1718printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1720printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1722printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1724printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1727# Let the site file select an alternate cache file if it wants to.
1728# Prefer an explicitly selected file to automatically selected ones.
1729if test -n "$CONFIG_SITE"; then
1730 ac_site_files="$CONFIG_SITE"
1731elif test "x$prefix" != xNONE; then
1732 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1733else
1734 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1737for ac_site_file in $ac_site_files
1739 case $ac_site_file in #(
1740 */*) :
1741 ;; #(
1742 *) :
1743 ac_site_file=./$ac_site_file ;;
1744esac
1745 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1747printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1748 sed 's/^/| /' "$ac_site_file" >&5
1749 . "$ac_site_file" \
1750 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1751printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1752as_fn_error $? "failed to load site script $ac_site_file
1753See \`config.log' for more details" "$LINENO" 5; }
1754 fi
1755done
1757if test -r "$cache_file"; then
1758 # Some versions of bash will fail to source /dev/null (special files
1759 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1760 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1762printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1763 case $cache_file in
1764 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1765 *) . "./$cache_file";;
1766 esac
1767 fi
1768else
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1770printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1771 >$cache_file
1774# Test code for whether the C compiler supports C89 (global declarations)
1775ac_c_conftest_c89_globals='
1776/* Does the compiler advertise C89 conformance?
1777 Do not test the value of __STDC__, because some compilers set it to 0
1778 while being otherwise adequately conformant. */
1779#if !defined __STDC__
1780# error "Compiler does not advertise C89 conformance"
1781#endif
1783#include <stddef.h>
1784#include <stdarg.h>
1785struct stat;
1786/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1787struct buf { int x; };
1788struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1789static char *e (p, i)
1790 char **p;
1791 int i;
1793 return p[i];
1795static char *f (char * (*g) (char **, int), char **p, ...)
1797 char *s;
1798 va_list v;
1799 va_start (v,p);
1800 s = g (p, va_arg (v,int));
1801 va_end (v);
1802 return s;
1805/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1806 function prototypes and stuff, but not \xHH hex character constants.
1807 These do not provoke an error unfortunately, instead are silently treated
1808 as an "x". The following induces an error, until -std is added to get
1809 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1810 array size at least. It is necessary to write \x00 == 0 to get something
1811 that is true only with -std. */
1812int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1814/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1815 inside strings and character constants. */
1816#define FOO(x) '\''x'\''
1817int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1819int test (int i, double x);
1820struct s1 {int (*f) (int a);};
1821struct s2 {int (*f) (double a);};
1822int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1823 int, int);'
1825# Test code for whether the C compiler supports C89 (body of main).
1826ac_c_conftest_c89_main='
1827ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1830# Test code for whether the C compiler supports C99 (global declarations)
1831ac_c_conftest_c99_globals='
1832// Does the compiler advertise C99 conformance?
1833#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1834# error "Compiler does not advertise C99 conformance"
1835#endif
1837#include <stdbool.h>
1838extern int puts (const char *);
1839extern int printf (const char *, ...);
1840extern int dprintf (int, const char *, ...);
1841extern void *malloc (size_t);
1843// Check varargs macros. These examples are taken from C99 6.10.3.5.
1844// dprintf is used instead of fprintf to avoid needing to declare
1845// FILE and stderr.
1846#define debug(...) dprintf (2, __VA_ARGS__)
1847#define showlist(...) puts (#__VA_ARGS__)
1848#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1849static void
1850test_varargs_macros (void)
1852 int x = 1234;
1853 int y = 5678;
1854 debug ("Flag");
1855 debug ("X = %d\n", x);
1856 showlist (The first, second, and third items.);
1857 report (x>y, "x is %d but y is %d", x, y);
1860// Check long long types.
1861#define BIG64 18446744073709551615ull
1862#define BIG32 4294967295ul
1863#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1864#if !BIG_OK
1865 #error "your preprocessor is broken"
1866#endif
1867#if BIG_OK
1868#else
1869 #error "your preprocessor is broken"
1870#endif
1871static long long int bignum = -9223372036854775807LL;
1872static unsigned long long int ubignum = BIG64;
1874struct incomplete_array
1876 int datasize;
1877 double data[];
1880struct named_init {
1881 int number;
1882 const wchar_t *name;
1883 double average;
1886typedef const char *ccp;
1888static inline int
1889test_restrict (ccp restrict text)
1891 // See if C++-style comments work.
1892 // Iterate through items via the restricted pointer.
1893 // Also check for declarations in for loops.
1894 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
1895 continue;
1896 return 0;
1899// Check varargs and va_copy.
1900static bool
1901test_varargs (const char *format, ...)
1903 va_list args;
1904 va_start (args, format);
1905 va_list args_copy;
1906 va_copy (args_copy, args);
1908 const char *str = "";
1909 int number = 0;
1910 float fnumber = 0;
1912 while (*format)
1914 switch (*format++)
1916 case '\''s'\'': // string
1917 str = va_arg (args_copy, const char *);
1918 break;
1919 case '\''d'\'': // int
1920 number = va_arg (args_copy, int);
1921 break;
1922 case '\''f'\'': // float
1923 fnumber = va_arg (args_copy, double);
1924 break;
1925 default:
1926 break;
1929 va_end (args_copy);
1930 va_end (args);
1932 return *str && number && fnumber;
1936# Test code for whether the C compiler supports C99 (body of main).
1937ac_c_conftest_c99_main='
1938 // Check bool.
1939 _Bool success = false;
1940 success |= (argc != 0);
1942 // Check restrict.
1943 if (test_restrict ("String literal") == 0)
1944 success = true;
1945 char *restrict newvar = "Another string";
1947 // Check varargs.
1948 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
1949 test_varargs_macros ();
1951 // Check flexible array members.
1952 struct incomplete_array *ia =
1953 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1954 ia->datasize = 10;
1955 for (int i = 0; i < ia->datasize; ++i)
1956 ia->data[i] = i * 1.234;
1958 // Check named initializers.
1959 struct named_init ni = {
1960 .number = 34,
1961 .name = L"Test wide string",
1962 .average = 543.34343,
1963 };
1965 ni.number = 58;
1967 int dynamic_array[ni.number];
1968 dynamic_array[0] = argv[0][0];
1969 dynamic_array[ni.number - 1] = 543;
1971 // work around unused variable warnings
1972 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
1973 || dynamic_array[ni.number - 1] != 543);
1976# Test code for whether the C compiler supports C11 (global declarations)
1977ac_c_conftest_c11_globals='
1978// Does the compiler advertise C11 conformance?
1979#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
1980# error "Compiler does not advertise C11 conformance"
1981#endif
1983// Check _Alignas.
1984char _Alignas (double) aligned_as_double;
1985char _Alignas (0) no_special_alignment;
1986extern char aligned_as_int;
1987char _Alignas (0) _Alignas (int) aligned_as_int;
1989// Check _Alignof.
1990enum
1992 int_alignment = _Alignof (int),
1993 int_array_alignment = _Alignof (int[100]),
1994 char_alignment = _Alignof (char)
1996_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
1998// Check _Noreturn.
1999int _Noreturn does_not_return (void) { for (;;) continue; }
2001// Check _Static_assert.
2002struct test_static_assert
2004 int x;
2005 _Static_assert (sizeof (int) <= sizeof (long int),
2006 "_Static_assert does not work in struct");
2007 long int y;
2010// Check UTF-8 literals.
2011#define u8 syntax error!
2012char const utf8_literal[] = u8"happens to be ASCII" "another string";
2014// Check duplicate typedefs.
2015typedef long *long_ptr;
2016typedef long int *long_ptr;
2017typedef long_ptr long_ptr;
2019// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2020struct anonymous
2022 union {
2023 struct { int i; int j; };
2024 struct { int k; long int l; } w;
2025 };
2026 int m;
2027} v1;
2030# Test code for whether the C compiler supports C11 (body of main).
2031ac_c_conftest_c11_main='
2032 _Static_assert ((offsetof (struct anonymous, i)
2033 == offsetof (struct anonymous, w.k)),
2034 "Anonymous union alignment botch");
2035 v1.i = 2;
2036 v1.w.k = 5;
2037 ok |= v1.i != 5;
2040# Test code for whether the C compiler supports C11 (complete).
2041ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2042${ac_c_conftest_c99_globals}
2043${ac_c_conftest_c11_globals}
2045int
2046main (int argc, char **argv)
2048 int ok = 0;
2049 ${ac_c_conftest_c89_main}
2050 ${ac_c_conftest_c99_main}
2051 ${ac_c_conftest_c11_main}
2052 return ok;
2056# Test code for whether the C compiler supports C99 (complete).
2057ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2058${ac_c_conftest_c99_globals}
2060int
2061main (int argc, char **argv)
2063 int ok = 0;
2064 ${ac_c_conftest_c89_main}
2065 ${ac_c_conftest_c99_main}
2066 return ok;
2070# Test code for whether the C compiler supports C89 (complete).
2071ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2073int
2074main (int argc, char **argv)
2076 int ok = 0;
2077 ${ac_c_conftest_c89_main}
2078 return ok;
2082# Check that the precious variables saved in the cache have kept the same
2083# value.
2084ac_cache_corrupted=false
2085for ac_var in $ac_precious_vars; do
2086 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2087 eval ac_new_set=\$ac_env_${ac_var}_set
2088 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2089 eval ac_new_val=\$ac_env_${ac_var}_value
2090 case $ac_old_set,$ac_new_set in
2091 set,)
2092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2093printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2094 ac_cache_corrupted=: ;;
2095 ,set)
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2097printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2098 ac_cache_corrupted=: ;;
2099 ,);;
2100 *)
2101 if test "x$ac_old_val" != "x$ac_new_val"; then
2102 # differences in whitespace do not lead to failure.
2103 ac_old_val_w=`echo x $ac_old_val`
2104 ac_new_val_w=`echo x $ac_new_val`
2105 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2107printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2108 ac_cache_corrupted=:
2109 else
2110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2111printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2112 eval $ac_var=\$ac_old_val
2113 fi
2114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2115printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2117printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2118 fi;;
2119 esac
2120 # Pass precious variables to config.status.
2121 if test "$ac_new_set" = set; then
2122 case $ac_new_val in
2123 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2124 *) ac_arg=$ac_var=$ac_new_val ;;
2125 esac
2126 case " $ac_configure_args " in
2127 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2128 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2129 esac
2130 fi
2131done
2132if $ac_cache_corrupted; then
2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2134printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2136printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2137 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2138 and start over" "$LINENO" 5
2140## -------------------- ##
2141## Main body of script. ##
2142## -------------------- ##
2144ac_ext=c
2145ac_cpp='$CPP $CPPFLAGS'
2146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148ac_compiler_gnu=$ac_cv_c_compiler_gnu
2152# To suppress "WARNING: unrecognized options: --with-compiler"
2154# Check whether --with-compiler was given.
2155if test ${with_compiler+y}
2156then :
2157 withval=$with_compiler;
2161# XXX Do this only for linux
2171ac_ext=c
2172ac_cpp='$CPP $CPPFLAGS'
2173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2175ac_compiler_gnu=$ac_cv_c_compiler_gnu
2176if test -n "$ac_tool_prefix"; then
2177 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2178set dummy ${ac_tool_prefix}gcc; ac_word=$2
2179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2180printf %s "checking for $ac_word... " >&6; }
2181if test ${ac_cv_prog_CC+y}
2182then :
2183 printf %s "(cached) " >&6
2184else $as_nop
2185 if test -n "$CC"; then
2186 ac_cv_prog_CC="$CC" # Let the user override the test.
2187else
2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189for as_dir in $PATH
2191 IFS=$as_save_IFS
2192 case $as_dir in #(((
2193 '') as_dir=./ ;;
2194 */) ;;
2195 *) as_dir=$as_dir/ ;;
2196 esac
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203done
2204 done
2205IFS=$as_save_IFS
2209CC=$ac_cv_prog_CC
2210if test -n "$CC"; then
2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2212printf "%s\n" "$CC" >&6; }
2213else
2214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2215printf "%s\n" "no" >&6; }
2220if test -z "$ac_cv_prog_CC"; then
2221 ac_ct_CC=$CC
2222 # Extract the first word of "gcc", so it can be a program name with args.
2223set dummy gcc; ac_word=$2
2224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2225printf %s "checking for $ac_word... " >&6; }
2226if test ${ac_cv_prog_ac_ct_CC+y}
2227then :
2228 printf %s "(cached) " >&6
2229else $as_nop
2230 if test -n "$ac_ct_CC"; then
2231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2232else
2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234for as_dir in $PATH
2236 IFS=$as_save_IFS
2237 case $as_dir in #(((
2238 '') as_dir=./ ;;
2239 */) ;;
2240 *) as_dir=$as_dir/ ;;
2241 esac
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_ac_ct_CC="gcc"
2245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2246 break 2
2247 fi
2248done
2249 done
2250IFS=$as_save_IFS
2254ac_ct_CC=$ac_cv_prog_ac_ct_CC
2255if test -n "$ac_ct_CC"; then
2256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2257printf "%s\n" "$ac_ct_CC" >&6; }
2258else
2259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2260printf "%s\n" "no" >&6; }
2263 if test "x$ac_ct_CC" = x; then
2264 CC=""
2265 else
2266 case $cross_compiling:$ac_tool_warned in
2267yes:)
2268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2269printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2270ac_tool_warned=yes ;;
2271esac
2272 CC=$ac_ct_CC
2273 fi
2274else
2275 CC="$ac_cv_prog_CC"
2278if test -z "$CC"; then
2279 if test -n "$ac_tool_prefix"; then
2280 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2281set dummy ${ac_tool_prefix}cc; ac_word=$2
2282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2283printf %s "checking for $ac_word... " >&6; }
2284if test ${ac_cv_prog_CC+y}
2285then :
2286 printf %s "(cached) " >&6
2287else $as_nop
2288 if test -n "$CC"; then
2289 ac_cv_prog_CC="$CC" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 case $as_dir in #(((
2296 '') as_dir=./ ;;
2297 */) ;;
2298 *) as_dir=$as_dir/ ;;
2299 esac
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2302 ac_cv_prog_CC="${ac_tool_prefix}cc"
2303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2304 break 2
2305 fi
2306done
2307 done
2308IFS=$as_save_IFS
2312CC=$ac_cv_prog_CC
2313if test -n "$CC"; then
2314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2315printf "%s\n" "$CC" >&6; }
2316else
2317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2318printf "%s\n" "no" >&6; }
2322 fi
2324if test -z "$CC"; then
2325 # Extract the first word of "cc", so it can be a program name with args.
2326set dummy cc; ac_word=$2
2327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2328printf %s "checking for $ac_word... " >&6; }
2329if test ${ac_cv_prog_CC+y}
2330then :
2331 printf %s "(cached) " >&6
2332else $as_nop
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2335else
2336 ac_prog_rejected=no
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2340 IFS=$as_save_IFS
2341 case $as_dir in #(((
2342 '') as_dir=./ ;;
2343 */) ;;
2344 *) as_dir=$as_dir/ ;;
2345 esac
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2348 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2349 ac_prog_rejected=yes
2350 continue
2351 fi
2352 ac_cv_prog_CC="cc"
2353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356done
2357 done
2358IFS=$as_save_IFS
2360if test $ac_prog_rejected = yes; then
2361 # We found a bogon in the path, so make sure we never use it.
2362 set dummy $ac_cv_prog_CC
2363 shift
2364 if test $# != 0; then
2365 # We chose a different compiler from the bogus one.
2366 # However, it has the same basename, so the bogon will be chosen
2367 # first if we set CC to just the basename; use the full file name.
2368 shift
2369 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2370 fi
2374CC=$ac_cv_prog_CC
2375if test -n "$CC"; then
2376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2377printf "%s\n" "$CC" >&6; }
2378else
2379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380printf "%s\n" "no" >&6; }
2385if test -z "$CC"; then
2386 if test -n "$ac_tool_prefix"; then
2387 for ac_prog in cl.exe
2388 do
2389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2390set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392printf %s "checking for $ac_word... " >&6; }
2393if test ${ac_cv_prog_CC+y}
2394then :
2395 printf %s "(cached) " >&6
2396else $as_nop
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC="$CC" # Let the user override the test.
2399else
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2403 IFS=$as_save_IFS
2404 case $as_dir in #(((
2405 '') as_dir=./ ;;
2406 */) ;;
2407 *) as_dir=$as_dir/ ;;
2408 esac
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415done
2416 done
2417IFS=$as_save_IFS
2421CC=$ac_cv_prog_CC
2422if test -n "$CC"; then
2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2424printf "%s\n" "$CC" >&6; }
2425else
2426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427printf "%s\n" "no" >&6; }
2431 test -n "$CC" && break
2432 done
2434if test -z "$CC"; then
2435 ac_ct_CC=$CC
2436 for ac_prog in cl.exe
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439set dummy $ac_prog; ac_word=$2
2440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441printf %s "checking for $ac_word... " >&6; }
2442if test ${ac_cv_prog_ac_ct_CC+y}
2443then :
2444 printf %s "(cached) " >&6
2445else $as_nop
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448else
2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2452 IFS=$as_save_IFS
2453 case $as_dir in #(((
2454 '') as_dir=./ ;;
2455 */) ;;
2456 *) as_dir=$as_dir/ ;;
2457 esac
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2460 ac_cv_prog_ac_ct_CC="$ac_prog"
2461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464done
2465 done
2466IFS=$as_save_IFS
2470ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471if test -n "$ac_ct_CC"; then
2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2473printf "%s\n" "$ac_ct_CC" >&6; }
2474else
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476printf "%s\n" "no" >&6; }
2480 test -n "$ac_ct_CC" && break
2481done
2483 if test "x$ac_ct_CC" = x; then
2484 CC=""
2485 else
2486 case $cross_compiling:$ac_tool_warned in
2487yes:)
2488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2489printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2490ac_tool_warned=yes ;;
2491esac
2492 CC=$ac_ct_CC
2493 fi
2497if test -z "$CC"; then
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2500set dummy ${ac_tool_prefix}clang; ac_word=$2
2501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502printf %s "checking for $ac_word... " >&6; }
2503if test ${ac_cv_prog_CC+y}
2504then :
2505 printf %s "(cached) " >&6
2506else $as_nop
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509else
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2513 IFS=$as_save_IFS
2514 case $as_dir in #(((
2515 '') as_dir=./ ;;
2516 */) ;;
2517 *) as_dir=$as_dir/ ;;
2518 esac
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2521 ac_cv_prog_CC="${ac_tool_prefix}clang"
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525done
2526 done
2527IFS=$as_save_IFS
2531CC=$ac_cv_prog_CC
2532if test -n "$CC"; then
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534printf "%s\n" "$CC" >&6; }
2535else
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537printf "%s\n" "no" >&6; }
2542if test -z "$ac_cv_prog_CC"; then
2543 ac_ct_CC=$CC
2544 # Extract the first word of "clang", so it can be a program name with args.
2545set dummy clang; ac_word=$2
2546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547printf %s "checking for $ac_word... " >&6; }
2548if test ${ac_cv_prog_ac_ct_CC+y}
2549then :
2550 printf %s "(cached) " >&6
2551else $as_nop
2552 if test -n "$ac_ct_CC"; then
2553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2558 IFS=$as_save_IFS
2559 case $as_dir in #(((
2560 '') as_dir=./ ;;
2561 */) ;;
2562 *) as_dir=$as_dir/ ;;
2563 esac
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_ac_ct_CC="clang"
2567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570done
2571 done
2572IFS=$as_save_IFS
2576ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577if test -n "$ac_ct_CC"; then
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2579printf "%s\n" "$ac_ct_CC" >&6; }
2580else
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582printf "%s\n" "no" >&6; }
2585 if test "x$ac_ct_CC" = x; then
2586 CC=""
2587 else
2588 case $cross_compiling:$ac_tool_warned in
2589yes:)
2590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2591printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592ac_tool_warned=yes ;;
2593esac
2594 CC=$ac_ct_CC
2595 fi
2596else
2597 CC="$ac_cv_prog_CC"
2603test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2605as_fn_error $? "no acceptable C compiler found in \$PATH
2606See \`config.log' for more details" "$LINENO" 5; }
2608# Provide some information about the compiler.
2609printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2610set X $ac_compile
2611ac_compiler=$2
2612for ac_option in --version -v -V -qversion -version; do
2613 { { ac_try="$ac_compiler $ac_option >&5"
2614case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2617esac
2618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2619printf "%s\n" "$ac_try_echo"; } >&5
2620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2621 ac_status=$?
2622 if test -s conftest.err; then
2623 sed '10a\
2624... rest of stderr output deleted ...
2625 10q' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2627 fi
2628 rm -f conftest.er1 conftest.err
2629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; }
2631done
2633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634/* end confdefs.h. */
2636int
2637main (void)
2641 return 0;
2643_ACEOF
2644ac_clean_files_save=$ac_clean_files
2645ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2646# Try to create an executable without -o first, disregard a.out.
2647# It will help us diagnose broken compilers, and finding out an intuition
2648# of exeext.
2649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2650printf %s "checking whether the C compiler works... " >&6; }
2651ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2653# The possible output files:
2654ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2656ac_rmfiles=
2657for ac_file in $ac_files
2659 case $ac_file in
2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2661 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2662 esac
2663done
2664rm -f $ac_rmfiles
2666if { { ac_try="$ac_link_default"
2667case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670esac
2671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672printf "%s\n" "$ac_try_echo"; } >&5
2673 (eval "$ac_link_default") 2>&5
2674 ac_status=$?
2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; }
2677then :
2678 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2679# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2680# in a Makefile. We should not override ac_cv_exeext if it was cached,
2681# so that the user can short-circuit this test for compilers unknown to
2682# Autoconf.
2683for ac_file in $ac_files ''
2685 test -f "$ac_file" || continue
2686 case $ac_file in
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2688 ;;
2689 [ab].out )
2690 # We found the default executable, but exeext='' is most
2691 # certainly right.
2692 break;;
2693 *.* )
2694 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2695 then :; else
2696 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2697 fi
2698 # We set ac_cv_exeext here because the later test for it is not
2699 # safe: cross compilers may not add the suffix if given an `-o'
2700 # argument, so we may need to know it at that point already.
2701 # Even if this section looks crufty: it has the advantage of
2702 # actually working.
2703 break;;
2704 * )
2705 break;;
2706 esac
2707done
2708test "$ac_cv_exeext" = no && ac_cv_exeext=
2710else $as_nop
2711 ac_file=''
2713if test -z "$ac_file"
2714then :
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716printf "%s\n" "no" >&6; }
2717printf "%s\n" "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2720{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2722as_fn_error 77 "C compiler cannot create executables
2723See \`config.log' for more details" "$LINENO" 5; }
2724else $as_nop
2725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726printf "%s\n" "yes" >&6; }
2728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2729printf %s "checking for C compiler default output file name... " >&6; }
2730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2731printf "%s\n" "$ac_file" >&6; }
2732ac_exeext=$ac_cv_exeext
2734rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2735ac_clean_files=$ac_clean_files_save
2736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2737printf %s "checking for suffix of executables... " >&6; }
2738if { { ac_try="$ac_link"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744printf "%s\n" "$ac_try_echo"; } >&5
2745 (eval "$ac_link") 2>&5
2746 ac_status=$?
2747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }
2749then :
2750 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2751# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2752# work properly (i.e., refer to `conftest.exe'), while it won't with
2753# `rm'.
2754for ac_file in conftest.exe conftest conftest.*; do
2755 test -f "$ac_file" || continue
2756 case $ac_file in
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759 break;;
2760 * ) break;;
2761 esac
2762done
2763else $as_nop
2764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2766as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2767See \`config.log' for more details" "$LINENO" 5; }
2769rm -f conftest conftest$ac_cv_exeext
2770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2771printf "%s\n" "$ac_cv_exeext" >&6; }
2773rm -f conftest.$ac_ext
2774EXEEXT=$ac_cv_exeext
2775ac_exeext=$EXEEXT
2776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777/* end confdefs.h. */
2778#include <stdio.h>
2779int
2780main (void)
2782FILE *f = fopen ("conftest.out", "w");
2783 return ferror (f) || fclose (f) != 0;
2786 return 0;
2788_ACEOF
2789ac_clean_files="$ac_clean_files conftest.out"
2790# Check that the compiler produces executables we can run. If not, either
2791# the compiler is broken, or we cross compile.
2792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2793printf %s "checking whether we are cross compiling... " >&6; }
2794if test "$cross_compiling" != yes; then
2795 { { ac_try="$ac_link"
2796case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799esac
2800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801printf "%s\n" "$ac_try_echo"; } >&5
2802 (eval "$ac_link") 2>&5
2803 ac_status=$?
2804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2805 test $ac_status = 0; }
2806 if { ac_try='./conftest$ac_cv_exeext'
2807 { { case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810esac
2811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812printf "%s\n" "$ac_try_echo"; } >&5
2813 (eval "$ac_try") 2>&5
2814 ac_status=$?
2815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816 test $ac_status = 0; }; }; then
2817 cross_compiling=no
2818 else
2819 if test "$cross_compiling" = maybe; then
2820 cross_compiling=yes
2821 else
2822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2824as_fn_error 77 "cannot run C compiled programs.
2825If you meant to cross compile, use \`--host'.
2826See \`config.log' for more details" "$LINENO" 5; }
2827 fi
2828 fi
2830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2831printf "%s\n" "$cross_compiling" >&6; }
2833rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2834ac_clean_files=$ac_clean_files_save
2835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2836printf %s "checking for suffix of object files... " >&6; }
2837if test ${ac_cv_objext+y}
2838then :
2839 printf %s "(cached) " >&6
2840else $as_nop
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842/* end confdefs.h. */
2844int
2845main (void)
2849 return 0;
2851_ACEOF
2852rm -f conftest.o conftest.obj
2853if { { ac_try="$ac_compile"
2854case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857esac
2858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2859printf "%s\n" "$ac_try_echo"; } >&5
2860 (eval "$ac_compile") 2>&5
2861 ac_status=$?
2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2863 test $ac_status = 0; }
2864then :
2865 for ac_file in conftest.o conftest.obj conftest.*; do
2866 test -f "$ac_file" || continue;
2867 case $ac_file in
2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2869 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2870 break;;
2871 esac
2872done
2873else $as_nop
2874 printf "%s\n" "$as_me: failed program was:" >&5
2875sed 's/^/| /' conftest.$ac_ext >&5
2877{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2879as_fn_error $? "cannot compute suffix of object files: cannot compile
2880See \`config.log' for more details" "$LINENO" 5; }
2882rm -f conftest.$ac_cv_objext conftest.$ac_ext
2884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2885printf "%s\n" "$ac_cv_objext" >&6; }
2886OBJEXT=$ac_cv_objext
2887ac_objext=$OBJEXT
2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
2889printf %s "checking whether the compiler supports GNU C... " >&6; }
2890if test ${ac_cv_c_compiler_gnu+y}
2891then :
2892 printf %s "(cached) " >&6
2893else $as_nop
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h. */
2897int
2898main (void)
2900#ifndef __GNUC__
2901 choke me
2902#endif
2905 return 0;
2907_ACEOF
2908if ac_fn_c_try_compile "$LINENO"
2909then :
2910 ac_compiler_gnu=yes
2911else $as_nop
2912 ac_compiler_gnu=no
2914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2915ac_cv_c_compiler_gnu=$ac_compiler_gnu
2918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2919printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
2920ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922if test $ac_compiler_gnu = yes; then
2923 GCC=yes
2924else
2925 GCC=
2927ac_test_CFLAGS=${CFLAGS+y}
2928ac_save_CFLAGS=$CFLAGS
2929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2930printf %s "checking whether $CC accepts -g... " >&6; }
2931if test ${ac_cv_prog_cc_g+y}
2932then :
2933 printf %s "(cached) " >&6
2934else $as_nop
2935 ac_save_c_werror_flag=$ac_c_werror_flag
2936 ac_c_werror_flag=yes
2937 ac_cv_prog_cc_g=no
2938 CFLAGS="-g"
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940/* end confdefs.h. */
2942int
2943main (void)
2947 return 0;
2949_ACEOF
2950if ac_fn_c_try_compile "$LINENO"
2951then :
2952 ac_cv_prog_cc_g=yes
2953else $as_nop
2954 CFLAGS=""
2955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956/* end confdefs.h. */
2958int
2959main (void)
2963 return 0;
2965_ACEOF
2966if ac_fn_c_try_compile "$LINENO"
2967then :
2969else $as_nop
2970 ac_c_werror_flag=$ac_save_c_werror_flag
2971 CFLAGS="-g"
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973/* end confdefs.h. */
2975int
2976main (void)
2980 return 0;
2982_ACEOF
2983if ac_fn_c_try_compile "$LINENO"
2984then :
2985 ac_cv_prog_cc_g=yes
2987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2992 ac_c_werror_flag=$ac_save_c_werror_flag
2994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2995printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
2996if test $ac_test_CFLAGS; then
2997 CFLAGS=$ac_save_CFLAGS
2998elif test $ac_cv_prog_cc_g = yes; then
2999 if test "$GCC" = yes; then
3000 CFLAGS="-g -O2"
3001 else
3002 CFLAGS="-g"
3003 fi
3004else
3005 if test "$GCC" = yes; then
3006 CFLAGS="-O2"
3007 else
3008 CFLAGS=
3009 fi
3011ac_prog_cc_stdc=no
3012if test x$ac_prog_cc_stdc = xno
3013then :
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3015printf %s "checking for $CC option to enable C11 features... " >&6; }
3016if test ${ac_cv_prog_cc_c11+y}
3017then :
3018 printf %s "(cached) " >&6
3019else $as_nop
3020 ac_cv_prog_cc_c11=no
3021ac_save_CC=$CC
3022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023/* end confdefs.h. */
3024$ac_c_conftest_c11_program
3025_ACEOF
3026for ac_arg in '' -std=gnu11
3028 CC="$ac_save_CC $ac_arg"
3029 if ac_fn_c_try_compile "$LINENO"
3030then :
3031 ac_cv_prog_cc_c11=$ac_arg
3033rm -f core conftest.err conftest.$ac_objext conftest.beam
3034 test "x$ac_cv_prog_cc_c11" != "xno" && break
3035done
3036rm -f conftest.$ac_ext
3037CC=$ac_save_CC
3040if test "x$ac_cv_prog_cc_c11" = xno
3041then :
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3043printf "%s\n" "unsupported" >&6; }
3044else $as_nop
3045 if test "x$ac_cv_prog_cc_c11" = x
3046then :
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3048printf "%s\n" "none needed" >&6; }
3049else $as_nop
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3051printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3052 CC="$CC $ac_cv_prog_cc_c11"
3054 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3055 ac_prog_cc_stdc=c11
3058if test x$ac_prog_cc_stdc = xno
3059then :
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3061printf %s "checking for $CC option to enable C99 features... " >&6; }
3062if test ${ac_cv_prog_cc_c99+y}
3063then :
3064 printf %s "(cached) " >&6
3065else $as_nop
3066 ac_cv_prog_cc_c99=no
3067ac_save_CC=$CC
3068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069/* end confdefs.h. */
3070$ac_c_conftest_c99_program
3071_ACEOF
3072for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3074 CC="$ac_save_CC $ac_arg"
3075 if ac_fn_c_try_compile "$LINENO"
3076then :
3077 ac_cv_prog_cc_c99=$ac_arg
3079rm -f core conftest.err conftest.$ac_objext conftest.beam
3080 test "x$ac_cv_prog_cc_c99" != "xno" && break
3081done
3082rm -f conftest.$ac_ext
3083CC=$ac_save_CC
3086if test "x$ac_cv_prog_cc_c99" = xno
3087then :
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3089printf "%s\n" "unsupported" >&6; }
3090else $as_nop
3091 if test "x$ac_cv_prog_cc_c99" = x
3092then :
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3094printf "%s\n" "none needed" >&6; }
3095else $as_nop
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3097printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3098 CC="$CC $ac_cv_prog_cc_c99"
3100 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3101 ac_prog_cc_stdc=c99
3104if test x$ac_prog_cc_stdc = xno
3105then :
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3107printf %s "checking for $CC option to enable C89 features... " >&6; }
3108if test ${ac_cv_prog_cc_c89+y}
3109then :
3110 printf %s "(cached) " >&6
3111else $as_nop
3112 ac_cv_prog_cc_c89=no
3113ac_save_CC=$CC
3114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115/* end confdefs.h. */
3116$ac_c_conftest_c89_program
3117_ACEOF
3118for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3120 CC="$ac_save_CC $ac_arg"
3121 if ac_fn_c_try_compile "$LINENO"
3122then :
3123 ac_cv_prog_cc_c89=$ac_arg
3125rm -f core conftest.err conftest.$ac_objext conftest.beam
3126 test "x$ac_cv_prog_cc_c89" != "xno" && break
3127done
3128rm -f conftest.$ac_ext
3129CC=$ac_save_CC
3132if test "x$ac_cv_prog_cc_c89" = xno
3133then :
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3135printf "%s\n" "unsupported" >&6; }
3136else $as_nop
3137 if test "x$ac_cv_prog_cc_c89" = x
3138then :
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3140printf "%s\n" "none needed" >&6; }
3141else $as_nop
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3143printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3144 CC="$CC $ac_cv_prog_cc_c89"
3146 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3147 ac_prog_cc_stdc=c89
3151ac_ext=c
3152ac_cpp='$CPP $CPPFLAGS'
3153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3159printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3160if test ${ac_cv_c_undeclared_builtin_options+y}
3161then :
3162 printf %s "(cached) " >&6
3163else $as_nop
3164 ac_save_CFLAGS=$CFLAGS
3165 ac_cv_c_undeclared_builtin_options='cannot detect'
3166 for ac_arg in '' -fno-builtin; do
3167 CFLAGS="$ac_save_CFLAGS $ac_arg"
3168 # This test program should *not* compile successfully.
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h. */
3172int
3173main (void)
3175(void) strchr;
3177 return 0;
3179_ACEOF
3180if ac_fn_c_try_compile "$LINENO"
3181then :
3183else $as_nop
3184 # This test program should compile successfully.
3185 # No library function is consistently available on
3186 # freestanding implementations, so test against a dummy
3187 # declaration. Include always-available headers on the
3188 # off chance that they somehow elicit warnings.
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190/* end confdefs.h. */
3191#include <float.h>
3192#include <limits.h>
3193#include <stdarg.h>
3194#include <stddef.h>
3195extern void ac_decl (int, char *);
3197int
3198main (void)
3200(void) ac_decl (0, (char *) 0);
3201 (void) ac_decl;
3204 return 0;
3206_ACEOF
3207if ac_fn_c_try_compile "$LINENO"
3208then :
3209 if test x"$ac_arg" = x
3210then :
3211 ac_cv_c_undeclared_builtin_options='none needed'
3212else $as_nop
3213 ac_cv_c_undeclared_builtin_options=$ac_arg
3215 break
3217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3220 done
3221 CFLAGS=$ac_save_CFLAGS
3224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
3225printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
3226 case $ac_cv_c_undeclared_builtin_options in #(
3227 'cannot detect') :
3228 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3230as_fn_error $? "cannot make $CC report undeclared builtins
3231See \`config.log' for more details" "$LINENO" 5; } ;; #(
3232 'none needed') :
3233 ac_c_undeclared_builtin_options='' ;; #(
3234 *) :
3235 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
3236esac
3238ac_fn_check_decl "$LINENO" "IN_MASK_CREATE" "ac_cv_have_decl_IN_MASK_CREATE" "#include <sys/inotify.h>
3239" "$ac_c_undeclared_builtin_options" "CFLAGS"
3240if test "x$ac_cv_have_decl_IN_MASK_CREATE" = xyes
3241then :
3242 ac_have_decl=1
3243else $as_nop
3244 ac_have_decl=0
3246printf "%s\n" "#define HAVE_DECL_IN_MASK_CREATE $ac_have_decl" >>confdefs.h
3248ac_fn_check_decl "$LINENO" "IN_EXCL_UNLINK" "ac_cv_have_decl_IN_EXCL_UNLINK" "#include <sys/inotify.h>
3249" "$ac_c_undeclared_builtin_options" "CFLAGS"
3250if test "x$ac_cv_have_decl_IN_EXCL_UNLINK" = xyes
3251then :
3252 ac_have_decl=1
3253else $as_nop
3254 ac_have_decl=0
3256printf "%s\n" "#define HAVE_DECL_IN_EXCL_UNLINK $ac_have_decl" >>confdefs.h
3259# XXX Do this only for macOS
3260ac_fn_check_decl "$LINENO" "kFSEventStreamCreateFlagFileEvents" "ac_cv_have_decl_kFSEventStreamCreateFlagFileEvents" "#include <CoreServices/CoreServices.h>
3261" "$ac_c_undeclared_builtin_options" "CFLAGS"
3262if test "x$ac_cv_have_decl_kFSEventStreamCreateFlagFileEvents" = xyes
3263then :
3264 ac_have_decl=1
3265else $as_nop
3266 ac_have_decl=0
3268printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFILEEVENTS $ac_have_decl" >>confdefs.h
3270ac_fn_check_decl "$LINENO" "kFSEventStreamCreateFlagFullHistory" "ac_cv_have_decl_kFSEventStreamCreateFlagFullHistory" "#include <CoreServices/CoreServices.h>
3271" "$ac_c_undeclared_builtin_options" "CFLAGS"
3272if test "x$ac_cv_have_decl_kFSEventStreamCreateFlagFullHistory" = xyes
3273then :
3274 ac_have_decl=1
3275else $as_nop
3276 ac_have_decl=0
3278printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFULLHISTORY $ac_have_decl" >>confdefs.h
3280ac_fn_check_decl "$LINENO" "kFSEventStreamEventFlagItemCloned" "ac_cv_have_decl_kFSEventStreamEventFlagItemCloned" "#include <CoreServices/CoreServices.h>
3281" "$ac_c_undeclared_builtin_options" "CFLAGS"
3282if test "x$ac_cv_have_decl_kFSEventStreamEventFlagItemCloned" = xyes
3283then :
3284 ac_have_decl=1
3285else $as_nop
3286 ac_have_decl=0
3288printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMEVENTFLAGITEMCLONED $ac_have_decl" >>confdefs.h
3290ac_fn_check_decl "$LINENO" "kFSEventStreamEventFlagItemIsHardlink" "ac_cv_have_decl_kFSEventStreamEventFlagItemIsHardlink" "#include <CoreServices/CoreServices.h>
3291" "$ac_c_undeclared_builtin_options" "CFLAGS"
3292if test "x$ac_cv_have_decl_kFSEventStreamEventFlagItemIsHardlink" = xyes
3293then :
3294 ac_have_decl=1
3295else $as_nop
3296 ac_have_decl=0
3298printf "%s\n" "#define HAVE_DECL_KFSEVENTSTREAMEVENTFLAGITEMISHARDLINK $ac_have_decl" >>confdefs.h
3301# Output
3302ac_config_headers="$ac_config_headers src/config.h"
3304cat >confcache <<\_ACEOF
3305# This file is a shell script that caches the results of configure
3306# tests run on this system so they can be shared between configure
3307# scripts and configure runs, see configure's option --config-cache.
3308# It is not useful on other systems. If it contains results you don't
3309# want to keep, you may remove or edit it.
3311# config.status only pays attention to the cache file if you give it
3312# the --recheck option to rerun configure.
3314# `ac_cv_env_foo' variables (set or unset) will be overridden when
3315# loading this file, other *unset* `ac_cv_foo' will be assigned the
3316# following values.
3318_ACEOF
3320# The following way of writing the cache mishandles newlines in values,
3321# but we know of no workaround that is simple, portable, and efficient.
3322# So, we kill variables containing newlines.
3323# Ultrix sh set writes to stderr and can't be redirected directly,
3324# and sets the high bit in the cache file unless we assign to the vars.
3326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3327 eval ac_val=\$$ac_var
3328 case $ac_val in #(
3329 *${as_nl}*)
3330 case $ac_var in #(
3331 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3332printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3333 esac
3334 case $ac_var in #(
3335 _ | IFS | as_nl) ;; #(
3336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3337 *) { eval $ac_var=; unset $ac_var;} ;;
3338 esac ;;
3339 esac
3340 done
3342 (set) 2>&1 |
3343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3344 *${as_nl}ac_space=\ *)
3345 # `set' does not quote correctly, so add quotes: double-quote
3346 # substitution turns \\\\ into \\, and sed turns \\ into \.
3347 sed -n \
3348 "s/'/'\\\\''/g;
3349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3350 ;; #(
3351 *)
3352 # `set' quotes correctly as required by POSIX, so do not add quotes.
3353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3354 ;;
3355 esac |
3356 sort
3357) |
3358 sed '
3359 /^ac_cv_env_/b end
3360 t clear
3361 :clear
3362 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
3363 t end
3364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3365 :end' >>confcache
3366if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3367 if test -w "$cache_file"; then
3368 if test "x$cache_file" != "x/dev/null"; then
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3370printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
3371 if test ! -f "$cache_file" || test -h "$cache_file"; then
3372 cat confcache >"$cache_file"
3373 else
3374 case $cache_file in #(
3375 */* | ?:*)
3376 mv -f confcache "$cache_file"$$ &&
3377 mv -f "$cache_file"$$ "$cache_file" ;; #(
3378 *)
3379 mv -f confcache "$cache_file" ;;
3380 esac
3381 fi
3382 fi
3383 else
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3385printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
3386 fi
3388rm -f confcache
3390test "x$prefix" = xNONE && prefix=$ac_default_prefix
3391# Let make expand exec_prefix.
3392test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3394DEFS=-DHAVE_CONFIG_H
3396ac_libobjs=
3397ac_ltlibobjs=
3399for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3400 # 1. Remove the extension, and $U if already installed.
3401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3402 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
3403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3404 # will be set to the directory where LIBOBJS objects are built.
3405 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3406 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3407done
3408LIBOBJS=$ac_libobjs
3410LTLIBOBJS=$ac_ltlibobjs
3414: "${CONFIG_STATUS=./config.status}"
3415ac_write_fail=0
3416ac_clean_files_save=$ac_clean_files
3417ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3419printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
3420as_write_fail=0
3421cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3422#! $SHELL
3423# Generated by $as_me.
3424# Run this file to recreate the current configuration.
3425# Compiler output produced by configure, useful for debugging
3426# configure, is in config.log if it exists.
3428debug=false
3429ac_cs_recheck=false
3430ac_cs_silent=false
3432SHELL=\${CONFIG_SHELL-$SHELL}
3433export SHELL
3434_ASEOF
3435cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3436## -------------------- ##
3437## M4sh Initialization. ##
3438## -------------------- ##
3440# Be more Bourne compatible
3441DUALCASE=1; export DUALCASE # for MKS sh
3442as_nop=:
3443if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
3444then :
3445 emulate sh
3446 NULLCMD=:
3447 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3448 # is contrary to our usage. Disable this feature.
3449 alias -g '${1+"$@"}'='"$@"'
3450 setopt NO_GLOB_SUBST
3451else $as_nop
3452 case `(set -o) 2>/dev/null` in #(
3453 *posix*) :
3454 set -o posix ;; #(
3455 *) :
3456 ;;
3457esac
3462# Reset variables that may have inherited troublesome values from
3463# the environment.
3465# IFS needs to be set, to space, tab, and newline, in precisely that order.
3466# (If _AS_PATH_WALK were called with IFS unset, it would have the
3467# side effect of setting IFS to empty, thus disabling word splitting.)
3468# Quoting is to prevent editors from complaining about space-tab.
3469as_nl='
3471export as_nl
3472IFS=" "" $as_nl"
3474PS1='$ '
3475PS2='> '
3476PS4='+ '
3478# Ensure predictable behavior from utilities with locale-dependent output.
3479LC_ALL=C
3480export LC_ALL
3481LANGUAGE=C
3482export LANGUAGE
3484# We cannot yet rely on "unset" to work, but we need these variables
3485# to be unset--not just set to an empty or harmless value--now, to
3486# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
3487# also avoids known problems related to "unset" and subshell syntax
3488# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3489for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3490do eval test \${$as_var+y} \
3491 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3492done
3494# Ensure that fds 0, 1, and 2 are open.
3495if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3496if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3497if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
3499# The user is always right.
3500if ${PATH_SEPARATOR+false} :; then
3501 PATH_SEPARATOR=:
3502 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3503 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3504 PATH_SEPARATOR=';'
3509# Find who we are. Look in the path if we contain no directory separator.
3510as_myself=
3511case $0 in #((
3512 *[\\/]* ) as_myself=$0 ;;
3513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514for as_dir in $PATH
3516 IFS=$as_save_IFS
3517 case $as_dir in #(((
3518 '') as_dir=./ ;;
3519 */) ;;
3520 *) as_dir=$as_dir/ ;;
3521 esac
3522 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
3523 done
3524IFS=$as_save_IFS
3526 ;;
3527esac
3528# We did not find ourselves, most probably we were run as `sh COMMAND'
3529# in which case we are not to be found in the path.
3530if test "x$as_myself" = x; then
3531 as_myself=$0
3533if test ! -f "$as_myself"; then
3534 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3535 exit 1
3540# as_fn_error STATUS ERROR [LINENO LOG_FD]
3541# ----------------------------------------
3542# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3543# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3544# script with STATUS, using 1 if that was 0.
3545as_fn_error ()
3547 as_status=$1; test $as_status -eq 0 && as_status=1
3548 if test "$4"; then
3549 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3551 fi
3552 printf "%s\n" "$as_me: error: $2" >&2
3553 as_fn_exit $as_status
3554} # as_fn_error
3558# as_fn_set_status STATUS
3559# -----------------------
3560# Set $? to STATUS, without forking.
3561as_fn_set_status ()
3563 return $1
3564} # as_fn_set_status
3566# as_fn_exit STATUS
3567# -----------------
3568# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3569as_fn_exit ()
3571 set +e
3572 as_fn_set_status $1
3573 exit $1
3574} # as_fn_exit
3576# as_fn_unset VAR
3577# ---------------
3578# Portably unset VAR.
3579as_fn_unset ()
3581 { eval $1=; unset $1;}
3583as_unset=as_fn_unset
3585# as_fn_append VAR VALUE
3586# ----------------------
3587# Append the text in VALUE to the end of the definition contained in VAR. Take
3588# advantage of any shell optimizations that allow amortized linear growth over
3589# repeated appends, instead of the typical quadratic growth present in naive
3590# implementations.
3591if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3592then :
3593 eval 'as_fn_append ()
3595 eval $1+=\$2
3596 }'
3597else $as_nop
3598 as_fn_append ()
3600 eval $1=\$$1\$2
3602fi # as_fn_append
3604# as_fn_arith ARG...
3605# ------------------
3606# Perform arithmetic evaluation on the ARGs, and store the result in the
3607# global $as_val. Take advantage of shells that can avoid forks. The arguments
3608# must be portable across $(()) and expr.
3609if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
3610then :
3611 eval 'as_fn_arith ()
3613 as_val=$(( $* ))
3614 }'
3615else $as_nop
3616 as_fn_arith ()
3618 as_val=`expr "$@" || test $? -eq 1`
3620fi # as_fn_arith
3623if expr a : '\(a\)' >/dev/null 2>&1 &&
3624 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3625 as_expr=expr
3626else
3627 as_expr=false
3630if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3631 as_basename=basename
3632else
3633 as_basename=false
3636if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3637 as_dirname=dirname
3638else
3639 as_dirname=false
3642as_me=`$as_basename -- "$0" ||
3643$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3644 X"$0" : 'X\(//\)$' \| \
3645 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3646printf "%s\n" X/"$0" |
3647 sed '/^.*\/\([^/][^/]*\)\/*$/{
3648 s//\1/
3651 /^X\/\(\/\/\)$/{
3652 s//\1/
3655 /^X\/\(\/\).*/{
3656 s//\1/
3659 s/.*/./; q'`
3661# Avoid depending upon Character Ranges.
3662as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3663as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3664as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3665as_cr_digits='0123456789'
3666as_cr_alnum=$as_cr_Letters$as_cr_digits
3669# Determine whether it's possible to make 'echo' print without a newline.
3670# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
3671# for compatibility with existing Makefiles.
3672ECHO_C= ECHO_N= ECHO_T=
3673case `echo -n x` in #(((((
3674-n*)
3675 case `echo 'xy\c'` in
3676 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3677 xy) ECHO_C='\c';;
3678 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3679 ECHO_T=' ';;
3680 esac;;
3682 ECHO_N='-n';;
3683esac
3685# For backward compatibility with old third-party macros, we provide
3686# the shell variables $as_echo and $as_echo_n. New code should use
3687# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
3688as_echo='printf %s\n'
3689as_echo_n='printf %s'
3691rm -f conf$$ conf$$.exe conf$$.file
3692if test -d conf$$.dir; then
3693 rm -f conf$$.dir/conf$$.file
3694else
3695 rm -f conf$$.dir
3696 mkdir conf$$.dir 2>/dev/null
3698if (echo >conf$$.file) 2>/dev/null; then
3699 if ln -s conf$$.file conf$$ 2>/dev/null; then
3700 as_ln_s='ln -s'
3701 # ... but there are two gotchas:
3702 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3703 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3704 # In both cases, we have to default to `cp -pR'.
3705 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3706 as_ln_s='cp -pR'
3707 elif ln conf$$.file conf$$ 2>/dev/null; then
3708 as_ln_s=ln
3709 else
3710 as_ln_s='cp -pR'
3711 fi
3712else
3713 as_ln_s='cp -pR'
3715rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3716rmdir conf$$.dir 2>/dev/null
3719# as_fn_mkdir_p
3720# -------------
3721# Create "$as_dir" as a directory, including parents if necessary.
3722as_fn_mkdir_p ()
3725 case $as_dir in #(
3726 -*) as_dir=./$as_dir;;
3727 esac
3728 test -d "$as_dir" || eval $as_mkdir_p || {
3729 as_dirs=
3730 while :; do
3731 case $as_dir in #(
3732 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3733 *) as_qdir=$as_dir;;
3734 esac
3735 as_dirs="'$as_qdir' $as_dirs"
3736 as_dir=`$as_dirname -- "$as_dir" ||
3737$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3738 X"$as_dir" : 'X\(//\)[^/]' \| \
3739 X"$as_dir" : 'X\(//\)$' \| \
3740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3741printf "%s\n" X"$as_dir" |
3742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3743 s//\1/
3746 /^X\(\/\/\)[^/].*/{
3747 s//\1/
3750 /^X\(\/\/\)$/{
3751 s//\1/
3754 /^X\(\/\).*/{
3755 s//\1/
3758 s/.*/./; q'`
3759 test -d "$as_dir" && break
3760 done
3761 test -z "$as_dirs" || eval "mkdir $as_dirs"
3762 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3765} # as_fn_mkdir_p
3766if mkdir -p . 2>/dev/null; then
3767 as_mkdir_p='mkdir -p "$as_dir"'
3768else
3769 test -d ./-p && rmdir ./-p
3770 as_mkdir_p=false
3774# as_fn_executable_p FILE
3775# -----------------------
3776# Test if FILE is an executable regular file.
3777as_fn_executable_p ()
3779 test -f "$1" && test -x "$1"
3780} # as_fn_executable_p
3781as_test_x='test -x'
3782as_executable_p=as_fn_executable_p
3784# Sed expression to map a string onto a valid CPP name.
3785as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3787# Sed expression to map a string onto a valid variable name.
3788as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3791exec 6>&1
3792## ----------------------------------- ##
3793## Main body of $CONFIG_STATUS script. ##
3794## ----------------------------------- ##
3795_ASEOF
3796test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3799# Save the log message, to keep $0 and so on meaningful, and to
3800# report actual input values of CONFIG_FILES etc. instead of their
3801# values after options handling.
3802ac_log="
3803This file was extended by streamly $as_me 0.10.1, which was
3804generated by GNU Autoconf 2.71. Invocation command line was
3806 CONFIG_FILES = $CONFIG_FILES
3807 CONFIG_HEADERS = $CONFIG_HEADERS
3808 CONFIG_LINKS = $CONFIG_LINKS
3809 CONFIG_COMMANDS = $CONFIG_COMMANDS
3810 $ $0 $@
3812on `(hostname || uname -n) 2>/dev/null | sed 1q`
3815_ACEOF
3818case $ac_config_headers in *"
3819"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3820esac
3823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3824# Files that config.status was made for.
3825config_headers="$ac_config_headers"
3827_ACEOF
3829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3830ac_cs_usage="\
3831\`$as_me' instantiates files and other configuration actions
3832from templates according to the current configuration. Unless the files
3833and actions are specified as TAGs, all are instantiated by default.
3835Usage: $0 [OPTION]... [TAG]...
3837 -h, --help print this help, then exit
3838 -V, --version print version number and configuration settings, then exit
3839 --config print configuration, then exit
3840 -q, --quiet, --silent
3841 do not print progress messages
3842 -d, --debug don't remove temporary files
3843 --recheck update $as_me by reconfiguring in the same conditions
3844 --header=FILE[:TEMPLATE]
3845 instantiate the configuration header FILE
3847Configuration headers:
3848$config_headers
3850Report bugs to <streamly@composewell.com>.
3851streamly home page: <https://streamly.composewell.com>."
3853_ACEOF
3854ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
3855ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
3856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3857ac_cs_config='$ac_cs_config_escaped'
3858ac_cs_version="\\
3859streamly config.status 0.10.1
3860configured by $0, generated by GNU Autoconf 2.71,
3861 with options \\"\$ac_cs_config\\"
3863Copyright (C) 2021 Free Software Foundation, Inc.
3864This config.status script is free software; the Free Software Foundation
3865gives unlimited permission to copy, distribute and modify it."
3867ac_pwd='$ac_pwd'
3868srcdir='$srcdir'
3869test -n "\$AWK" || AWK=awk
3870_ACEOF
3872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3873# The default lists apply if the user does not specify any file.
3874ac_need_defaults=:
3875while test $# != 0
3877 case $1 in
3878 --*=?*)
3879 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3880 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3881 ac_shift=:
3882 ;;
3883 --*=)
3884 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3885 ac_optarg=
3886 ac_shift=:
3887 ;;
3888 *)
3889 ac_option=$1
3890 ac_optarg=$2
3891 ac_shift=shift
3892 ;;
3893 esac
3895 case $ac_option in
3896 # Handling of the options.
3897 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3898 ac_cs_recheck=: ;;
3899 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3900 printf "%s\n" "$ac_cs_version"; exit ;;
3901 --config | --confi | --conf | --con | --co | --c )
3902 printf "%s\n" "$ac_cs_config"; exit ;;
3903 --debug | --debu | --deb | --de | --d | -d )
3904 debug=: ;;
3905 --header | --heade | --head | --hea )
3906 $ac_shift
3907 case $ac_optarg in
3908 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3909 esac
3910 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3911 ac_need_defaults=false;;
3912 --he | --h)
3913 # Conflict between --help and --header
3914 as_fn_error $? "ambiguous option: \`$1'
3915Try \`$0 --help' for more information.";;
3916 --help | --hel | -h )
3917 printf "%s\n" "$ac_cs_usage"; exit ;;
3918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3920 ac_cs_silent=: ;;
3922 # This is an error.
3923 -*) as_fn_error $? "unrecognized option: \`$1'
3924Try \`$0 --help' for more information." ;;
3926 *) as_fn_append ac_config_targets " $1"
3927 ac_need_defaults=false ;;
3929 esac
3930 shift
3931done
3933ac_configure_extra_args=
3935if $ac_cs_silent; then
3936 exec 6>/dev/null
3937 ac_configure_extra_args="$ac_configure_extra_args --silent"
3940_ACEOF
3941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3942if \$ac_cs_recheck; then
3943 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3944 shift
3945 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
3946 CONFIG_SHELL='$SHELL'
3947 export CONFIG_SHELL
3948 exec "\$@"
3951_ACEOF
3952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3953exec 5>>config.log
3955 echo
3956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3957## Running $as_me. ##
3958_ASBOX
3959 printf "%s\n" "$ac_log"
3960} >&5
3962_ACEOF
3963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3964_ACEOF
3966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3968# Handling of arguments.
3969for ac_config_target in $ac_config_targets
3971 case $ac_config_target in
3972 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
3974 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3975 esac
3976done
3979# If the user did not use the arguments to specify the items to instantiate,
3980# then the envvar interface is used. Set only those that are not.
3981# We use the long form for the default assignment because of an extremely
3982# bizarre bug on SunOS 4.1.3.
3983if $ac_need_defaults; then
3984 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
3987# Have a temporary directory for convenience. Make it in the build tree
3988# simply because there is no reason against having it here, and in addition,
3989# creating and moving files from /tmp can sometimes cause problems.
3990# Hook for its removal unless debugging.
3991# Note that there is a small window in which the directory will not be cleaned:
3992# after its creation but before its name has been assigned to `$tmp'.
3993$debug ||
3995 tmp= ac_tmp=
3996 trap 'exit_status=$?
3997 : "${ac_tmp:=$tmp}"
3998 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3999' 0
4000 trap 'as_fn_exit 1' 1 2 13 15
4002# Create a (secure) tmp directory for tmp files.
4005 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4006 test -d "$tmp"
4007} ||
4009 tmp=./conf$$-$RANDOM
4010 (umask 077 && mkdir "$tmp")
4011} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4012ac_tmp=$tmp
4014# Set up the scripts for CONFIG_HEADERS section.
4015# No need to generate them if there are no CONFIG_HEADERS.
4016# This happens for instance with `./config.status Makefile'.
4017if test -n "$CONFIG_HEADERS"; then
4018cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4019BEGIN {
4020_ACEOF
4022# Transform confdefs.h into an awk script `defines.awk', embedded as
4023# here-document in config.status, that substitutes the proper values into
4024# config.h.in to produce config.h.
4026# Create a delimiter string that does not exist in confdefs.h, to ease
4027# handling of long lines.
4028ac_delim='%!_!# '
4029for ac_last_try in false false :; do
4030 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4031 if test -z "$ac_tt"; then
4032 break
4033 elif $ac_last_try; then
4034 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4035 else
4036 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4037 fi
4038done
4040# For the awk script, D is an array of macro values keyed by name,
4041# likewise P contains macro parameters if any. Preserve backslash
4042# newline sequences.
4044ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4045sed -n '
4046s/.\{148\}/&'"$ac_delim"'/g
4047t rset
4048:rset
4049s/^[ ]*#[ ]*define[ ][ ]*/ /
4050t def
4052:def
4053s/\\$//
4054t bsnl
4055s/["\\]/\\&/g
4056s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4057D["\1"]=" \3"/p
4058s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4060:bsnl
4061s/["\\]/\\&/g
4062s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4063D["\1"]=" \3\\\\\\n"\\/p
4064t cont
4065s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4066t cont
4068:cont
4070s/.\{148\}/&'"$ac_delim"'/g
4071t clear
4072:clear
4073s/\\$//
4074t bsnlc
4075s/["\\]/\\&/g; s/^/"/; s/$/"/p
4077:bsnlc
4078s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4079b cont
4080' <confdefs.h | sed '
4081s/'"$ac_delim"'/"\\\
4082"/g' >>$CONFIG_STATUS || ac_write_fail=1
4084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4085 for (key in D) D_is_set[key] = 1
4086 FS = ""
4088/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4089 line = \$ 0
4090 split(line, arg, " ")
4091 if (arg[1] == "#") {
4092 defundef = arg[2]
4093 mac1 = arg[3]
4094 } else {
4095 defundef = substr(arg[1], 2)
4096 mac1 = arg[2]
4098 split(mac1, mac2, "(") #)
4099 macro = mac2[1]
4100 prefix = substr(line, 1, index(line, defundef) - 1)
4101 if (D_is_set[macro]) {
4102 # Preserve the white space surrounding the "#".
4103 print prefix "define", macro P[macro] D[macro]
4104 next
4105 } else {
4106 # Replace #undef with comments. This is necessary, for example,
4107 # in the case of _POSIX_SOURCE, which is predefined and required
4108 # on some systems where configure will not decide to define it.
4109 if (defundef == "undef") {
4110 print "/*", prefix defundef, macro, "*/"
4111 next
4115{ print }
4116_ACAWK
4117_ACEOF
4118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4119 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4120fi # test -n "$CONFIG_HEADERS"
4123eval set X " :H $CONFIG_HEADERS "
4124shift
4125for ac_tag
4127 case $ac_tag in
4128 :[FHLC]) ac_mode=$ac_tag; continue;;
4129 esac
4130 case $ac_mode$ac_tag in
4131 :[FHL]*:*);;
4132 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4133 :[FH]-) ac_tag=-:-;;
4134 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4135 esac
4136 ac_save_IFS=$IFS
4137 IFS=:
4138 set x $ac_tag
4139 IFS=$ac_save_IFS
4140 shift
4141 ac_file=$1
4142 shift
4144 case $ac_mode in
4145 :L) ac_source=$1;;
4146 :[FH])
4147 ac_file_inputs=
4148 for ac_f
4149 do
4150 case $ac_f in
4151 -) ac_f="$ac_tmp/stdin";;
4152 *) # Look for the file first in the build tree, then in the source tree
4153 # (if the path is not absolute). The absolute path cannot be DOS-style,
4154 # because $ac_f cannot contain `:'.
4155 test -f "$ac_f" ||
4156 case $ac_f in
4157 [\\/$]*) false;;
4158 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4159 esac ||
4160 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4161 esac
4162 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4163 as_fn_append ac_file_inputs " '$ac_f'"
4164 done
4166 # Let's still pretend it is `configure' which instantiates (i.e., don't
4167 # use $as_me), people would be surprised to read:
4168 # /* config.h. Generated by config.status. */
4169 configure_input='Generated from '`
4170 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4171 `' by configure.'
4172 if test x"$ac_file" != x-; then
4173 configure_input="$ac_file. $configure_input"
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4175printf "%s\n" "$as_me: creating $ac_file" >&6;}
4176 fi
4177 # Neutralize special characters interpreted by sed in replacement strings.
4178 case $configure_input in #(
4179 *\&* | *\|* | *\\* )
4180 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
4181 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4182 *) ac_sed_conf_input=$configure_input;;
4183 esac
4185 case $ac_tag in
4186 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4188 esac
4189 ;;
4190 esac
4192 ac_dir=`$as_dirname -- "$ac_file" ||
4193$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4194 X"$ac_file" : 'X\(//\)[^/]' \| \
4195 X"$ac_file" : 'X\(//\)$' \| \
4196 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4197printf "%s\n" X"$ac_file" |
4198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4199 s//\1/
4202 /^X\(\/\/\)[^/].*/{
4203 s//\1/
4206 /^X\(\/\/\)$/{
4207 s//\1/
4210 /^X\(\/\).*/{
4211 s//\1/
4214 s/.*/./; q'`
4215 as_dir="$ac_dir"; as_fn_mkdir_p
4216 ac_builddir=.
4218case "$ac_dir" in
4219.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4221 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
4222 # A ".." for each directory in $ac_dir_suffix.
4223 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4224 case $ac_top_builddir_sub in
4225 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4226 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4227 esac ;;
4228esac
4229ac_abs_top_builddir=$ac_pwd
4230ac_abs_builddir=$ac_pwd$ac_dir_suffix
4231# for backward compatibility:
4232ac_top_builddir=$ac_top_build_prefix
4234case $srcdir in
4235 .) # We are building in place.
4236 ac_srcdir=.
4237 ac_top_srcdir=$ac_top_builddir_sub
4238 ac_abs_top_srcdir=$ac_pwd ;;
4239 [\\/]* | ?:[\\/]* ) # Absolute name.
4240 ac_srcdir=$srcdir$ac_dir_suffix;
4241 ac_top_srcdir=$srcdir
4242 ac_abs_top_srcdir=$srcdir ;;
4243 *) # Relative name.
4244 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4245 ac_top_srcdir=$ac_top_build_prefix$srcdir
4246 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4247esac
4248ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4251 case $ac_mode in
4253 :H)
4255 # CONFIG_HEADER
4257 if test x"$ac_file" != x-; then
4259 printf "%s\n" "/* $configure_input */" >&1 \
4260 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4261 } >"$ac_tmp/config.h" \
4262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4263 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4265printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
4266 else
4267 rm -f "$ac_file"
4268 mv "$ac_tmp/config.h" "$ac_file" \
4269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4270 fi
4271 else
4272 printf "%s\n" "/* $configure_input */" >&1 \
4273 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4274 || as_fn_error $? "could not create -" "$LINENO" 5
4275 fi
4276 ;;
4279 esac
4281done # for ac_tag
4284as_fn_exit 0
4285_ACEOF
4286ac_clean_files=$ac_clean_files_save
4288test $ac_write_fail = 0 ||
4289 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4292# configure is writing to config.log, and then calls config.status.
4293# config.status does its own redirection, appending to config.log.
4294# Unfortunately, on DOS this fails, as config.log is still kept open
4295# by configure, so config.status won't be able to write to it; its
4296# output is simply discarded. So we exec the FD to /dev/null,
4297# effectively closing config.log, so it can be properly (re)opened and
4298# appended to by config.status. When coming back to configure, we
4299# need to make the FD available again.
4300if test "$no_create" != yes; then
4301 ac_cs_success=:
4302 ac_config_status_args=
4303 test "$silent" = yes &&
4304 ac_config_status_args="$ac_config_status_args --quiet"
4305 exec 5>/dev/null
4306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4307 exec 5>>config.log
4308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4309 # would make configure fail if this is the last instruction.
4310 $ac_cs_success || as_fn_exit 1
4312if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4314printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}