2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmowgli-2 2.1.2.
5 # Report bugs to <https://github.com/atheme/libmowgli-2>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://github.com/atheme/libmowgli-2 about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir -p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='libmowgli-2'
582 PACKAGE_TARNAME
='libmowgli-2'
583 PACKAGE_VERSION
='2.1.2'
584 PACKAGE_STRING
='libmowgli-2 2.1.2'
585 PACKAGE_BUGREPORT
='https://github.com/atheme/libmowgli-2'
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
641 LIBMOWGLI_MODULE_BUILD
642 LIBMOWGLI_STATIC_MODULES
643 LIBMOWGLI_SHARED_MODULES
720 program_transform_name
733 enable_option_checking
739 ac_precious_vars
='build_alias
750 # Initialize some variables set by options.
752 ac_init_version
=false
753 ac_unrecognized_opts
=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name
=s
,x
,x
,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir
='${exec_prefix}/bin'
779 sbindir
='${exec_prefix}/sbin'
780 libexecdir
='${exec_prefix}/libexec'
781 datarootdir
='${prefix}/share'
782 datadir
='${datarootdir}'
783 sysconfdir
='${prefix}/etc'
784 sharedstatedir
='${prefix}/com'
785 localstatedir
='${prefix}/var'
786 runstatedir
='${localstatedir}/run'
787 includedir
='${prefix}/include'
788 oldincludedir
='/usr/include'
789 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir
='${datarootdir}/info'
795 libdir
='${exec_prefix}/lib'
796 localedir
='${datarootdir}/locale'
797 mandir
='${datarootdir}/man'
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\
$ac_option
811 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816 # Accept the important Cygnus configure options, so we can diagnose typos.
818 case $ac_dashdash$ac_option in
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 -build | --build | --buil | --bui | --bu)
828 ac_prev
=build_alias
;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias
=$ac_optarg ;;
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev
=cache_file
;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file
=$ac_optarg ;;
840 cache_file
=config.cache
;;
842 -datadir | --datadir | --datadi | --datad)
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir
=$ac_optarg ;;
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev
=datarootdir
;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir
=$ac_optarg ;;
854 -disable-* | --disable-*)
855 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
858 as_fn_error $?
"invalid feature name: $ac_useropt"
859 ac_useropt_orig
=$ac_useropt
860 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
865 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep
=', ';;
868 eval enable_
$ac_useropt=no
;;
870 -docdir | --docdir | --docdi | --doc | --do)
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 -enable-* | --enable-*)
881 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
884 as_fn_error $?
"invalid feature name: $ac_useropt"
885 ac_useropt_orig
=$ac_useropt
886 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep
=', ';;
894 eval enable_
$ac_useropt=\
$ac_optarg ;;
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev
=exec_prefix
;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix
=$ac_optarg ;;
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
909 -help | --help | --hel | --he | -h)
911 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
912 ac_init_help
=recursive
;;
913 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
914 ac_init_help
=short
;;
916 -host | --host | --hos | --ho)
917 ac_prev
=host_alias
;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias
=$ac_optarg ;;
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 htmldir
=$ac_optarg ;;
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev
=includedir
;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir
=$ac_optarg ;;
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir
=$ac_optarg ;;
939 -libdir | --libdir | --libdi | --libd)
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev
=libexecdir
;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir
=$ac_optarg ;;
951 -localedir | --localedir | --localedi | --localed | --locale)
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir
=$ac_optarg ;;
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev
=localstatedir
;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir
=$ac_optarg ;;
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969 # Obsolete; use --without-fp.
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev
=oldincludedir
;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir
=$ac_optarg ;;
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev
=program_prefix
;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix
=$ac_optarg ;;
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev
=program_suffix
;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix
=$ac_optarg ;;
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev
=program_transform_name
;;
1016 -program-transform-name=* | --program-transform-name=* \
1017 | --program-transform-nam=* | --program-transform-na=* \
1018 | --program-transform-n=* | --program-transform-=* \
1019 | --program-transform=* | --program-transfor=* \
1020 | --program-transfo=* | --program-transf=* \
1021 | --program-trans=* | --program-tran=* \
1022 | --progr-tra=* | --program-tr=* | --program-t=*)
1023 program_transform_name
=$ac_optarg ;;
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir
=$ac_optarg ;;
1030 -psdir | --psdir | --psdi | --psd | --ps)
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1039 -runstatedir | --runstatedir | --runstatedi | --runstated \
1040 | --runstate | --runstat | --runsta | --runst | --runs \
1041 | --run | --ru | --r)
1042 ac_prev
=runstatedir
;;
1043 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1044 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1045 | --run=* | --ru=* | --r=*)
1046 runstatedir
=$ac_optarg ;;
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 sbindir
=$ac_optarg ;;
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1058 ac_prev
=sharedstatedir
;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 sharedstatedir
=$ac_optarg ;;
1065 -site | --site | --sit)
1067 -site=* | --site=* | --sit=*)
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir
=$ac_optarg ;;
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev
=sysconfdir
;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir
=$ac_optarg ;;
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev
=target_alias
;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias
=$ac_optarg ;;
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version
=: ;;
1094 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1097 as_fn_error $?
"invalid package name: $ac_useropt"
1098 ac_useropt_orig
=$ac_useropt
1099 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1104 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep
=', ';;
1107 eval with_
$ac_useropt=\
$ac_optarg ;;
1109 -without-* | --without-*)
1110 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1113 as_fn_error $?
"invalid package name: $ac_useropt"
1114 ac_useropt_orig
=$ac_useropt
1115 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep
=', ';;
1123 eval with_
$ac_useropt=no
;;
1126 # Obsolete; use --with-x.
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev
=x_includes
;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes
=$ac_optarg ;;
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev
=x_libraries
;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries
=$ac_optarg ;;
1143 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information"
1148 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' | [0-9]* | *[!_$as_cr_alnum]* )
1152 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1154 eval $ac_envvar=\
$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1168 if test -n "$ac_prev"; then
1169 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error $?
"missing argument to $ac_option"
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1176 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 # Check all directory arguments for consistency.
1182 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir runstatedir
1187 eval ac_val
=\$
$ac_var
1188 # Remove trailing slashes.
1191 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\
$ac_val;;
1194 # Be sure to have absolute directory names.
1196 [\\/$
]* | ?
:[\\/]* ) continue;;
1197 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1199 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target
=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x
; then
1211 if test "x$build_alias" = x
; then
1212 cross_compiling
=maybe
1213 elif test "x$build_alias" != "x$host_alias"; then
1219 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1221 test "$silent" = yes && exec 6>/dev
/null
1224 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di
=`ls -di .` &&
1226 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error $?
"working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error $?
"pwd does not report name of working directory"
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted
=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir
=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1264 ac_srcdir_defaulted
=no
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1268 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1270 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1282 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 for ac_var
in $ac_precious_vars; do
1285 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1286 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1287 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1288 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1292 # Report the --help message.
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1298 \`configure' configures libmowgli-2 2.1.2 to adapt to many kinds of systems.
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1305 Defaults for the options are specified in brackets.
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking ...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1329 For better control, use the options below.
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/libmowgli-2]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1357 --build=BUILD configure
for building on BUILD
[guessed
]
1358 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1359 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1363 if test -n "$ac_init_help"; then
1364 case $ac_init_help in
1365 short
| recursive
) echo "Configuration of libmowgli-2 2.1.2:";;
1370 --disable-option-checking ignore unrecognized
--enable/--with options
1371 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1372 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1373 --disable-shared do not build shared library
1374 --enable-static build static library
1375 --enable-examples build examples
1378 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1379 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1380 --with-openssl=DIR root of the OpenSSL directory
1382 Some influential environment variables
:
1383 CC C compiler
command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1386 nonstandard directory
<lib dir
>
1387 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1388 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1389 you have headers
in a nonstandard directory
<include dir
>
1392 Use these variables to override the choices made by
`configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1395 Report bugs to <https://github.com/atheme/libmowgli-2>.
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" ||
1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1425 .) # We are building in place.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1458 libmowgli-2 configure 2.1.2
1459 generated by GNU Autoconf 2.69
1461 Copyright (C) 2012 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1468 ## ------------------------ ##
1469 ## Autoconf initialization. ##
1470 ## ------------------------ ##
1472 # ac_fn_c_try_compile LINENO
1473 # --------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_compile ()
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 rm -f conftest.$ac_objext
1479 if { { ac_try="$ac_compile"
1481 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1482 *) ac_try_echo
=$ac_try;;
1484 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486 (eval "$ac_compile") 2>conftest.err
1488 if test -s conftest.err
; then
1489 grep -v '^ *+' conftest.err
>conftest.er1
1490 cat conftest.er1
>&5
1491 mv -f conftest.er1 conftest.err
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; } && {
1495 test -z "$ac_c_werror_flag" ||
1496 test ! -s conftest.err
1497 } && test -s conftest.
$ac_objext; then :
1500 $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.
$ac_ext >&5
1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506 as_fn_set_status
$ac_retval
1508 } # ac_fn_c_try_compile
1510 # ac_fn_c_try_cpp LINENO
1511 # ----------------------
1512 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1515 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1516 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1518 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } > conftest.i && {
1532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1547 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1548 # -------------------------------------------------------
1549 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1550 # the include files in INCLUDES and setting the cache variable VAR
1552 ac_fn_c_check_header_mongrel ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 if eval \${$3+:} false; then :
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1557 $as_echo_n "checking for $2... " >&6; }
1558 if eval \${$3+:} false; then :
1559 $as_echo_n "(cached) " >&6
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1563 $as_echo "$ac_res" >&6; }
1565 # Is the header compilable?
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1567 $as_echo_n "checking $2 usability... " >&6; }
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1573 if ac_fn_c_try_compile "$LINENO"; then :
1574 ac_header_compiler=yes
1576 ac_header_compiler=no
1578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1580 $as_echo "$ac_header_compiler" >&6; }
1582 # Is the header present?
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1584 $as_echo_n "checking $2 presence... " >&6; }
1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h. */
1589 if ac_fn_c_try_cpp "$LINENO"; then :
1590 ac_header_preproc=yes
1592 ac_header_preproc=no
1594 rm -f conftest.err conftest.i conftest.$ac_ext
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1596 $as_echo "$ac_header_preproc" >&6; }
1598 # So? What about this header?
1599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1602 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1604 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1608 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1610 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1612 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1614 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1616 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1617 ( $as_echo "## ---------------------------------------------------- ##
1618 ## Report this to https://github.com/atheme/libmowgli-2 ##
1619 ## ---------------------------------------------------- ##"
1620 ) | sed "s/^/$as_me: WARNING: /" >&2
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1628 eval "$3=\$ac_header_compiler"
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 } # ac_fn_c_check_header_mongrel
1638 # ac_fn_c_try_run LINENO
1639 # ----------------------
1640 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1641 # that executables *can* be run.
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_link"
1647 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1648 *) ac_try_echo
=$ac_try;;
1650 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_link") 2>&5
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1656 { { case "(($ac_try" in
1657 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_try") 2>&5
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; }; }; then :
1668 $as_echo "$as_me: program exited with status $ac_status" >&5
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1672 ac_retval=$ac_status
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1697 if ac_fn_c_try_compile "$LINENO"; then :
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 } # ac_fn_c_check_header_compile
1711 # ac_fn_c_try_link LINENO
1712 # -----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest$ac_exeext
1718 if { { ac_try="$ac_link"
1720 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1721 *) ac_try_echo
=$ac_try;;
1723 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>conftest.err
1727 if test -s conftest.err
; then
1728 grep -v '^ *+' conftest.err
>conftest.er1
1729 cat conftest.er1
>&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest
$ac_exeext && {
1737 test "$cross_compiling" = yes ||
1738 test -x conftest
$ac_exeext
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.
$ac_ext >&5
1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749 # interfere with the next link command; also delete a directory that is
1750 # left behind by Apple's compiler. We do this before executing the actions.
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status
$ac_retval
1755 } # ac_fn_c_try_link
1757 # ac_fn_c_check_func LINENO FUNC VAR
1758 # ----------------------------------
1759 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1760 ac_fn_c_check_func
()
1762 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \
${$3+:} false
; then :
1766 $as_echo_n "(cached) " >&6
1768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1772 #define $2 innocuous_$2
1774 /* System header to define __stub macros and hopefully few prototypes,
1775 which can conflict with char $2 (); below.
1776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777 <limits.h> exists even on freestanding compilers. */
1780 # include <limits.h>
1782 # include <assert.h>
1787 /* Override any GCC internal prototype to avoid an error.
1788 Use char because int might match the return type of a GCC
1789 builtin and then its argument prototype would still apply. */
1794 /* The GNU C library defines this for functions which it implements
1795 to always fail with ENOSYS. Some functions are actually named
1796 something starting with __ and the normal name is an alias. */
1797 #if defined __stub_$2 || defined __stub___$2
1809 if ac_fn_c_try_link
"$LINENO"; then :
1814 rm -f core conftest.err conftest.
$ac_objext \
1815 conftest
$ac_exeext conftest.
$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 } # ac_fn_c_check_func
1823 cat >config.log
<<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1827 It was created by libmowgli-2 $as_me 2.1.2, which was
1828 generated by GNU Autoconf 2.69. Invocation command line was
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1849 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir
=.
1864 $as_echo "PATH: $as_dir"
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1888 ac_must_keep_next
=false
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1899 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1904 as_fn_append ac_configure_args1
" '$ac_arg'"
1905 if test $ac_must_keep_next = true
; then
1906 ac_must_keep_next
=false
# Got value, back to normal.
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1917 -* ) ac_must_keep_next
=true
;;
1920 as_fn_append ac_configure_args
" '$ac_arg'"
1925 { ac_configure_args0
=; unset ac_configure_args0
;}
1926 { ac_configure_args1
=; unset ac_configure_args1
;}
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Save into config.log some information that might help in debugging.
1938 $as_echo "## ---------------- ##
1939 ## Cache variables. ##
1940 ## ---------------- ##"
1942 # The following way of writing the cache mishandles newlines in values,
1944 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1945 eval ac_val=\$$ac_var
1949 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1950 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 _ | IFS | as_nl) ;; #(
1954 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1955 *) { eval $ac_var=; unset $ac_var;} ;;
1960 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1961 *${as_nl}ac_space=\ *)
1963 "s/'\''/'\''\\\\'\'''\''/g;
1964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1974 $as_echo "## ----------------- ##
1975 ## Output variables. ##
1976 ## ----------------- ##"
1978 for ac_var in $ac_subst_vars
1980 eval ac_val=\$$ac_var
1982 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984 $as_echo "$ac_var='\''$ac_val'\''"
1988 if test -n "$ac_subst_files"; then
1989 $as_echo "## ------------------- ##
1990 ## File substitutions. ##
1991 ## ------------------- ##"
1993 for ac_var
in $ac_subst_files
1995 eval ac_val
=\$
$ac_var
1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999 $as_echo "$ac_var='\''$ac_val'\''"
2004 if test -s confdefs.h; then
2005 $as_echo "## ----------- ##
2012 test "$ac_signal" != 0 &&
2013 $as_echo "$as_me: caught signal $ac_signal"
2014 $as_echo "$as_me: exit $exit_status"
2016 rm -f core *.core core.conftest.* &&
2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 for ac_signal
in 1 2 13 15; do
2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2026 rm -f -r conftest
* confdefs.h
2028 $as_echo "/* confdefs.h */" > confdefs.h
2030 # Predefined preprocessor variables.
2032 cat >>confdefs.h
<<_ACEOF
2033 #define PACKAGE_NAME "$PACKAGE_NAME"
2036 cat >>confdefs.h
<<_ACEOF
2037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2040 cat >>confdefs.h
<<_ACEOF
2041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2044 cat >>confdefs.h
<<_ACEOF
2045 #define PACKAGE_STRING "$PACKAGE_STRING"
2048 cat >>confdefs.h
<<_ACEOF
2049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2052 cat >>confdefs.h
<<_ACEOF
2053 #define PACKAGE_URL "$PACKAGE_URL"
2057 # Let the site file select an alternate cache file if it wants to.
2058 # Prefer an explicitly selected file to automatically selected ones.
2061 if test -n "$CONFIG_SITE"; then
2062 # We do not want a PATH search for config.site.
2063 case $CONFIG_SITE in #((
2064 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2065 */*) ac_site_file1
=$CONFIG_SITE;;
2066 *) ac_site_file1
=.
/$CONFIG_SITE;;
2068 elif test "x$prefix" != xNONE
; then
2069 ac_site_file1
=$prefix/share
/config.site
2070 ac_site_file2
=$prefix/etc
/config.site
2072 ac_site_file1
=$ac_default_prefix/share
/config.site
2073 ac_site_file2
=$ac_default_prefix/etc
/config.site
2075 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2077 test "x$ac_site_file" = xNONE
&& continue
2078 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2080 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2081 sed 's/^/| /' "$ac_site_file" >&5
2083 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2085 as_fn_error $?
"failed to load site script $ac_site_file
2086 See \`config.log' for more details" "$LINENO" 5; }
2090 if test -r "$cache_file"; then
2091 # Some versions of bash will fail to source /dev/null (special files
2092 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2093 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2095 $as_echo "$as_me: loading cache $cache_file" >&6;}
2097 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2098 *) .
"./$cache_file";;
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2103 $as_echo "$as_me: creating cache $cache_file" >&6;}
2107 # Check that the precious variables saved in the cache have kept the same
2109 ac_cache_corrupted
=false
2110 for ac_var
in $ac_precious_vars; do
2111 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2112 eval ac_new_set
=\
$ac_env_${ac_var}_set
2113 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2114 eval ac_new_val
=\
$ac_env_${ac_var}_value
2115 case $ac_old_set,$ac_new_set in
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2119 ac_cache_corrupted
=: ;;
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2123 ac_cache_corrupted
=: ;;
2126 if test "x$ac_old_val" != "x$ac_new_val"; then
2127 # differences in whitespace do not lead to failure.
2128 ac_old_val_w
=`echo x $ac_old_val`
2129 ac_new_val_w
=`echo x $ac_new_val`
2130 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2133 ac_cache_corrupted
=:
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2137 eval $ac_var=\
$ac_old_val
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2140 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2142 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2145 # Pass precious variables to config.status.
2146 if test "$ac_new_set" = set; then
2148 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2149 *) ac_arg
=$ac_var=$ac_new_val ;;
2151 case " $ac_configure_args " in
2152 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2153 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2157 if $ac_cache_corrupted; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2162 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2164 ## -------------------- ##
2165 ## Main body of script. ##
2166 ## -------------------- ##
2169 ac_cpp
='$CPP $CPPFLAGS'
2170 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2176 ac_config_headers
="$ac_config_headers src/libmowgli/platform/autoconf.h"
2180 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2181 if test -f "$ac_dir/install-sh"; then
2183 ac_install_sh
="$ac_aux_dir/install-sh -c"
2185 elif test -f "$ac_dir/install.sh"; then
2187 ac_install_sh
="$ac_aux_dir/install.sh -c"
2189 elif test -f "$ac_dir/shtool"; then
2191 ac_install_sh
="$ac_aux_dir/shtool install -c"
2195 if test -z "$ac_aux_dir"; then
2196 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2199 # These three variables are undocumented and unsupported,
2200 # and are intended to be withdrawn in a future Autoconf release.
2201 # They can cause serious problems if a builder's source tree is in a directory
2202 # whose full name contains unusual characters.
2203 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2204 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2205 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2208 # Make sure we can run config.sub.
2209 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2210 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2213 $as_echo_n "checking build system type... " >&6; }
2214 if ${ac_cv_build+:} false
; then :
2215 $as_echo_n "(cached) " >&6
2217 ac_build_alias
=$build_alias
2218 test "x$ac_build_alias" = x
&&
2219 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2220 test "x$ac_build_alias" = x
&&
2221 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2222 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2223 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2227 $as_echo "$ac_cv_build" >&6; }
2228 case $ac_cv_build in
2230 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2233 ac_save_IFS
=$IFS; IFS
='-'
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2243 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2247 $as_echo_n "checking host system type... " >&6; }
2248 if ${ac_cv_host+:} false
; then :
2249 $as_echo_n "(cached) " >&6
2251 if test "x$host_alias" = x
; then
2252 ac_cv_host
=$ac_cv_build
2254 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2255 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2260 $as_echo "$ac_cv_host" >&6; }
2263 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2266 ac_save_IFS
=$IFS; IFS
='-'
2272 # Remember, the first character of IFS is used to create $*,
2273 # except with old shells:
2276 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2280 $as_echo_n "checking target system type... " >&6; }
2281 if ${ac_cv_target+:} false
; then :
2282 $as_echo_n "(cached) " >&6
2284 if test "x$target_alias" = x
; then
2285 ac_cv_target
=$ac_cv_host
2287 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2288 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2293 $as_echo "$ac_cv_target" >&6; }
2294 case $ac_cv_target in
2296 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2298 target
=$ac_cv_target
2299 ac_save_IFS
=$IFS; IFS
='-'
2305 # Remember, the first character of IFS is used to create $*,
2306 # except with old shells:
2309 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2312 # The aliases save the names the user supplied, while $host etc.
2313 # will get canonicalized.
2314 test -n "$target_alias" &&
2315 test "$program_prefix$program_suffix$program_transform_name" = \
2317 program_prefix
=${target_alias}-
2320 ac_cpp
='$CPP $CPPFLAGS'
2321 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2324 if test -n "$ac_tool_prefix"; then
2325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2326 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2328 $as_echo_n "checking for $ac_word... " >&6; }
2329 if ${ac_cv_prog_CC+:} false
; then :
2330 $as_echo_n "(cached) " >&6
2332 if test -n "$CC"; then
2333 ac_cv_prog_CC
="$CC" # Let the user override the test.
2335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2339 test -z "$as_dir" && as_dir
=.
2340 for ac_exec_ext
in '' $ac_executable_extensions; do
2341 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 if test -n "$CC"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2355 $as_echo "$CC" >&6; }
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2358 $as_echo "no" >&6; }
2363 if test -z "$ac_cv_prog_CC"; then
2365 # Extract the first word of "gcc", so it can be a program name with args.
2366 set dummy gcc
; ac_word
=$2
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2368 $as_echo_n "checking for $ac_word... " >&6; }
2369 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2370 $as_echo_n "(cached) " >&6
2372 if test -n "$ac_ct_CC"; then
2373 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir
=.
2380 for ac_exec_ext
in '' $ac_executable_extensions; do
2381 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_ac_ct_CC
="gcc"
2383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2393 if test -n "$ac_ct_CC"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2395 $as_echo "$ac_ct_CC" >&6; }
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2398 $as_echo "no" >&6; }
2401 if test "x$ac_ct_CC" = x
; then
2404 case $cross_compiling:$ac_tool_warned in
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2408 ac_tool_warned
=yes ;;
2416 if test -z "$CC"; then
2417 if test -n "$ac_tool_prefix"; then
2418 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2419 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if ${ac_cv_prog_CC+:} false
; then :
2423 $as_echo_n "(cached) " >&6
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC
="$CC" # Let the user override the test.
2428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2432 test -z "$as_dir" && as_dir
=.
2433 for ac_exec_ext
in '' $ac_executable_extensions; do
2434 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 if test -n "$CC"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2448 $as_echo "$CC" >&6; }
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451 $as_echo "no" >&6; }
2457 if test -z "$CC"; then
2458 # Extract the first word of "cc", so it can be a program name with args.
2459 set dummy cc
; ac_word
=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if ${ac_cv_prog_CC+:} false
; then :
2463 $as_echo_n "(cached) " >&6
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC
="$CC" # Let the user override the test.
2469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir
=.
2474 for ac_exec_ext
in '' $ac_executable_extensions; do
2475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2477 ac_prog_rejected
=yes
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test $ac_prog_rejected = yes; then
2489 # We found a bogon in the path, so make sure we never use it.
2490 set dummy
$ac_cv_prog_CC
2492 if test $# != 0; then
2493 # We chose a different compiler from the bogus one.
2494 # However, it has the same basename, so the bogon will be chosen
2495 # first if we set CC to just the basename; use the full file name.
2497 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2503 if test -n "$CC"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2505 $as_echo "$CC" >&6; }
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2513 if test -z "$CC"; then
2514 if test -n "$ac_tool_prefix"; then
2515 for ac_prog
in cl.exe
2517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2518 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if ${ac_cv_prog_CC+:} false
; then :
2522 $as_echo_n "(cached) " >&6
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC
="$CC" # Let the user override the test.
2527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir
=.
2532 for ac_exec_ext
in '' $ac_executable_extensions; do
2533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2534 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 if test -n "$CC"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2547 $as_echo "$CC" >&6; }
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 $as_echo "no" >&6; }
2554 test -n "$CC" && break
2557 if test -z "$CC"; then
2559 for ac_prog
in cl.exe
2561 # Extract the first word of "$ac_prog", so it can be a program name with args.
2562 set dummy
$ac_prog; ac_word
=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2566 $as_echo_n "(cached) " >&6
2568 if test -n "$ac_ct_CC"; then
2569 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir
=.
2576 for ac_exec_ext
in '' $ac_executable_extensions; do
2577 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_ac_ct_CC
="$ac_prog"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2589 if test -n "$ac_ct_CC"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2591 $as_echo "$ac_ct_CC" >&6; }
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2598 test -n "$ac_ct_CC" && break
2601 if test "x$ac_ct_CC" = x
; then
2604 case $cross_compiling:$ac_tool_warned in
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2608 ac_tool_warned
=yes ;;
2617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 as_fn_error $?
"no acceptable C compiler found in \$PATH
2620 See \`config.log' for more details" "$LINENO" 5; }
2622 # Provide some information about the compiler.
2623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2626 for ac_option
in --version -v -V -qversion; do
2627 { { ac_try
="$ac_compiler $ac_option >&5"
2629 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2633 $as_echo "$ac_try_echo"; } >&5
2634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2636 if test -s conftest.err; then
2638 ... rest of stderr output deleted ...
2639 10q' conftest.err >conftest.er1
2640 cat conftest.er1 >&5
2642 rm -f conftest.er1 conftest.err
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; }
2647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648 /* end confdefs.h. */
2658 ac_clean_files_save=$ac_clean_files
2659 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2660 # Try to create an executable without -o first, disregard a.out.
2661 # It will help us diagnose broken compilers, and finding out an intuition
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2664 $as_echo_n "checking whether the C compiler works... " >&6; }
2665 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2667 # The possible output files:
2668 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2671 for ac_file in $ac_files
2674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2675 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2680 if { { ac_try="$ac_link_default"
2682 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2683 *) ac_try_echo
=$ac_try;;
2685 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2686 $as_echo "$ac_try_echo"; } >&5
2687 (eval "$ac_link_default") 2>&5
2689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2690 test $ac_status = 0; }; then :
2691 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2692 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2693 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2694 # so that the user can short-circuit this test for compilers unknown to
2696 for ac_file
in $ac_files ''
2698 test -f "$ac_file" || continue
2700 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
2703 # We found the default executable, but exeext='' is most
2707 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2709 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2711 # We set ac_cv_exeext here because the later test for it is not
2712 # safe: cross compilers may not add the suffix if given an `-o'
2713 # argument, so we may need to know it at that point already.
2714 # Even if this section looks crufty: it has the advantage of
2721 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2726 if test -z "$ac_file"; then :
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 $as_echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.
$ac_ext >&5
2732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734 as_fn_error
77 "C compiler cannot create executables
2735 See \`config.log' for more details" "$LINENO" 5; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2738 $as_echo "yes" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2741 $as_echo_n "checking for C compiler default output file name... " >&6; }
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2743 $as_echo "$ac_file" >&6; }
2744 ac_exeext
=$ac_cv_exeext
2746 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2747 ac_clean_files
=$ac_clean_files_save
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2749 $as_echo_n "checking for suffix of executables... " >&6; }
2750 if { { ac_try
="$ac_link"
2752 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2756 $as_echo "$ac_try_echo"; } >&5
2757 (eval "$ac_link") 2>&5
2759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2760 test $ac_status = 0; }; then :
2761 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2762 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2763 # work properly (i.e., refer to `conftest.exe'), while it won't with
2765 for ac_file
in conftest.exe conftest conftest.
*; do
2766 test -f "$ac_file" || continue
2768 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2769 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2778 See \`config.log' for more details" "$LINENO" 5; }
2780 rm -f conftest conftest
$ac_cv_exeext
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2782 $as_echo "$ac_cv_exeext" >&6; }
2784 rm -f conftest.
$ac_ext
2785 EXEEXT
=$ac_cv_exeext
2787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2788 /* end confdefs.h. */
2793 FILE *f = fopen ("conftest.out", "w");
2794 return ferror (f) || fclose (f) != 0;
2800 ac_clean_files
="$ac_clean_files conftest.out"
2801 # Check that the compiler produces executables we can run. If not, either
2802 # the compiler is broken, or we cross compile.
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2804 $as_echo_n "checking whether we are cross compiling... " >&6; }
2805 if test "$cross_compiling" != yes; then
2806 { { ac_try
="$ac_link"
2808 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_link") 2>&5
2815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816 test $ac_status = 0; }
2817 if { ac_try='./conftest$ac_cv_exeext'
2818 { { case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2820 *) ac_try_echo
=$ac_try;;
2822 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823 $as_echo "$ac_try_echo"; } >&5
2824 (eval "$ac_try") 2>&5
2826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827 test $ac_status = 0; }; }; then
2830 if test "$cross_compiling" = maybe
; then
2833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835 as_fn_error $?
"cannot run C compiled programs.
2836 If you meant to cross compile, use \`--host'.
2837 See \`config.log' for more details" "$LINENO" 5; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2842 $as_echo "$cross_compiling" >&6; }
2844 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2845 ac_clean_files
=$ac_clean_files_save
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2847 $as_echo_n "checking for suffix of object files... " >&6; }
2848 if ${ac_cv_objext+:} false
; then :
2849 $as_echo_n "(cached) " >&6
2851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2862 rm -f conftest.o conftest.obj
2863 if { { ac_try
="$ac_compile"
2865 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869 $as_echo "$ac_try_echo"; } >&5
2870 (eval "$ac_compile") 2>&5
2872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2873 test $ac_status = 0; }; then :
2874 for ac_file in conftest.o conftest.obj conftest.*; do
2875 test -f "$ac_file" || continue;
2877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2878 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2883 $as_echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2889 See \
`config.log' for more details" "$LINENO" 5; }
2891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2894 $as_echo "$ac_cv_objext" >&6; }
2895 OBJEXT=$ac_cv_objext
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2898 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2899 if ${ac_cv_c_compiler_gnu+:} false; then :
2900 $as_echo_n "(cached) " >&6
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h. */
2916 if ac_fn_c_try_compile "$LINENO"; then :
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2926 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2927 if test $ac_compiler_gnu = yes; then
2932 ac_test_CFLAGS=${CFLAGS+set}
2933 ac_save_CFLAGS=$CFLAGS
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2935 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2936 if ${ac_cv_prog_cc_g+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 ac_save_c_werror_flag=$ac_c_werror_flag
2940 ac_c_werror_flag=yes
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2954 if ac_fn_c_try_compile "$LINENO"; then :
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h. */
2969 if ac_fn_c_try_compile "$LINENO"; then :
2972 ac_c_werror_flag=$ac_save_c_werror_flag
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2985 if ac_fn_c_try_compile "$LINENO"; then :
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_c_werror_flag=$ac_save_c_werror_flag
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2996 $as_echo "$ac_cv_prog_cc_g" >&6; }
2997 if test "$ac_test_CFLAGS" = set; then
2998 CFLAGS=$ac_save_CFLAGS
2999 elif test $ac_cv_prog_cc_g = yes; then
3000 if test "$GCC" = yes; then
3006 if test "$GCC" = yes; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3013 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3014 if ${ac_cv_prog_cc_c89+:} false; then :
3015 $as_echo_n "(cached) " >&6
3017 ac_cv_prog_cc_c89=no
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3024 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3025 struct buf { int x; };
3026 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3027 static char *e (p, i)
3033 static char *f (char * (*g) (char **, int), char **p, ...)
3038 s = g (p, va_arg (v,int));
3043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3044 function prototypes and stuff, but not '\xHH' hex character constants.
3045 These don't provoke an error unfortunately, instead are silently treated
3046 as 'x'. The following induces an error, until -std is added to get
3047 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3048 array size at least. It's necessary to write '\x00'==0 to get something
3049 that's true only with -std. */
3050 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3053 inside strings and character constants. */
3055 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3057 int test (int i, double x);
3058 struct s1 {int (*f) (int a);};
3059 struct s2 {int (*f) (double a);};
3060 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3066 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3071 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3072 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3074 CC="$ac_save_CC $ac_arg"
3075 if ac_fn_c_try_compile "$LINENO"; then :
3076 ac_cv_prog_cc_c89=$ac_arg
3078 rm -f core conftest.err conftest.$ac_objext
3079 test "x$ac_cv_prog_cc_c89" != "xno" && break
3081 rm -f conftest.$ac_ext
3086 case "x$ac_cv_prog_cc_c89" in
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3089 $as_echo "none needed" >&6; } ;;
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3092 $as_echo "unsupported" >&6; } ;;
3094 CC="$CC $ac_cv_prog_cc_c89"
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3096 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3098 if test "x$ac_cv_prog_cc_c89" != xno; then :
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3114 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3115 # On Suns, sometimes $CPP names a directory.
3116 if test -n "$CPP" && test -d "$CPP"; then
3119 if test -z "$CPP"; then
3120 if ${ac_cv_prog_CPP+:} false; then :
3121 $as_echo_n "(cached) " >&6
3123 # Double quotes because CPP needs to be expanded
3124 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3127 for ac_c_preproc_warn_flag in '' yes
3129 # Use a header file that comes with gcc, so configuring glibc
3130 # with a fresh cross-compiler works.
3131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3132 # <limits.h> exists even on freestanding compilers.
3133 # On the NeXT, cc -E runs the code through the compiler's parser,
3134 # not just through cpp. "Syntax error" is here to catch this case.
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3138 # include <limits.h>
3140 # include <assert.h>
3144 if ac_fn_c_try_cpp "$LINENO"; then :
3147 # Broken: fails on valid input.
3150 rm -f conftest.err conftest.i conftest.$ac_ext
3152 # OK, works on sane cases. Now check whether nonexistent headers
3153 # can be detected and how.
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3156 #include <ac_nonexistent.h>
3158 if ac_fn_c_try_cpp "$LINENO"; then :
3159 # Broken: success on invalid input.
3162 # Passes both tests.
3166 rm -f conftest.err conftest.i conftest.$ac_ext
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.i conftest.err conftest.
$ac_ext
3171 if $ac_preproc_ok; then :
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3184 $as_echo "$CPP" >&6; }
3186 for ac_c_preproc_warn_flag
in '' yes
3188 # Use a header file that comes with gcc, so configuring glibc
3189 # with a fresh cross-compiler works.
3190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3191 # <limits.h> exists even on freestanding compilers.
3192 # On the NeXT, cc -E runs the code through the compiler's parser,
3193 # not just through cpp. "Syntax error" is here to catch this case.
3194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3197 # include <limits.h>
3199 # include <assert.h>
3203 if ac_fn_c_try_cpp
"$LINENO"; then :
3206 # Broken: fails on valid input.
3209 rm -f conftest.err conftest.i conftest.
$ac_ext
3211 # OK, works on sane cases. Now check whether nonexistent headers
3212 # can be detected and how.
3213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3215 #include <ac_nonexistent.h>
3217 if ac_fn_c_try_cpp
"$LINENO"; then :
3218 # Broken: success on invalid input.
3221 # Passes both tests.
3225 rm -f conftest.err conftest.i conftest.
$ac_ext
3228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3229 rm -f conftest.i conftest.err conftest.
$ac_ext
3230 if $ac_preproc_ok; then :
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3236 See \`config.log' for more details" "$LINENO" 5; }
3240 ac_cpp
='$CPP $CPPFLAGS'
3241 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3245 # Find a good install program. We prefer a C program (faster),
3246 # so one script is as good as another. But avoid the broken or
3247 # incompatible versions:
3248 # SysV /etc/install, /usr/sbin/install
3249 # SunOS /usr/etc/install
3250 # IRIX /sbin/install
3252 # AmigaOS /C/install, which installs bootblocks on floppy discs
3253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3256 # OS/2's system install, which has a completely different semantic
3257 # ./install, which can be erroneously created by make from ./install.sh.
3258 # Reject install programs that cannot install multiple files.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3261 if test -z "$INSTALL"; then
3262 if ${ac_cv_path_install+:} false
; then :
3263 $as_echo_n "(cached) " >&6
3265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3269 test -z "$as_dir" && as_dir
=.
3270 # Account for people who put trailing slashes in PATH elements.
3271 case $as_dir/ in #((
3272 .
/ | .
// | /[cC
]/* | \
3273 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3274 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3277 # OSF1 and SCO ODT 3.0 have their own names for install.
3278 # Don't use installbsd from OSF since it installs stuff as root
3280 for ac_prog
in ginstall scoinst
install; do
3281 for ac_exec_ext
in '' $ac_executable_extensions; do
3282 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3283 if test $ac_prog = install &&
3284 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3285 # AIX install. It has an incompatible calling convention.
3287 elif test $ac_prog = install &&
3288 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3289 # program-specific install script used by HP pwplus--don't use.
3292 rm -rf conftest.one conftest.two conftest.dir
3293 echo one
> conftest.one
3294 echo two
> conftest.two
3296 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3297 test -s conftest.one
&& test -s conftest.two
&&
3298 test -s conftest.dir
/conftest.one
&&
3299 test -s conftest.dir
/conftest.two
3301 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3314 rm -rf conftest.one conftest.two conftest.dir
3317 if test "${ac_cv_path_install+set}" = set; then
3318 INSTALL
=$ac_cv_path_install
3320 # As a last resort, use the slow shell script. Don't cache a
3321 # value for INSTALL within a source directory, because that will
3322 # break other packages using the cache if that directory is
3323 # removed, or if the value is a relative name.
3324 INSTALL
=$ac_install_sh
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3328 $as_echo "$INSTALL" >&6; }
3330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3331 # It thinks the first close brace ends the variable substitution.
3332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3336 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3339 $as_echo_n "checking whether ln -s works... " >&6; }
3341 if test "$LN_S" = "ln -s"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3346 $as_echo "no, using $LN_S" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3351 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3352 if ${ac_cv_prog_cc_c99+:} false
; then :
3353 $as_echo_n "(cached) " >&6
3355 ac_cv_prog_cc_c99
=no
3357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3360 #include <stdbool.h>
3365 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3366 #define debug(...) fprintf (stderr, __VA_ARGS__)
3367 #define showlist(...) puts (#__VA_ARGS__)
3368 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3370 test_varargs_macros (void)
3375 debug ("X = %d\n", x);
3376 showlist (The first, second, and third items.);
3377 report (x>y, "x is %d but y is %d", x, y);
3380 // Check long long types.
3381 #define BIG64 18446744073709551615ull
3382 #define BIG32 4294967295ul
3383 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3385 your preprocessor is broken;
3389 your preprocessor is broken;
3391 static long long int bignum = -9223372036854775807LL;
3392 static unsigned long long int ubignum = BIG64;
3394 struct incomplete_array
3402 const wchar_t *name;
3406 typedef const char *ccp;
3409 test_restrict (ccp restrict text)
3411 // See if C++-style comments work.
3412 // Iterate through items via the restricted pointer.
3413 // Also check for declarations in for loops.
3414 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3419 // Check varargs and va_copy.
3421 test_varargs (const char *format, ...)
3424 va_start (args, format);
3426 va_copy (args_copy, args);
3437 str = va_arg (args_copy, const char *);
3440 number = va_arg (args_copy, int);
3443 fnumber = va_arg (args_copy, double);
3458 _Bool success = false;
3461 if (test_restrict ("String literal") == 0)
3463 char *restrict newvar = "Another string";
3466 test_varargs ("s, d' f .", "string", 65, 34.234);
3467 test_varargs_macros ();
3469 // Check flexible array members.
3470 struct incomplete_array *ia =
3471 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3473 for (int i = 0; i < ia->datasize; ++i)
3474 ia->data[i] = i * 1.234;
3476 // Check named initializers.
3477 struct named_init ni = {
3479 .name = L"Test wide string",
3480 .average = 543.34343,
3485 int dynamic_array[ni.number];
3486 dynamic_array[ni.number - 1] = 543;
3488 // work around unused variable warnings
3489 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3490 || dynamic_array[ni.number - 1] != 543);
3496 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3498 CC
="$ac_save_CC $ac_arg"
3499 if ac_fn_c_try_compile
"$LINENO"; then :
3500 ac_cv_prog_cc_c99
=$ac_arg
3502 rm -f core conftest.err conftest.
$ac_objext
3503 test "x$ac_cv_prog_cc_c99" != "xno" && break
3505 rm -f conftest.
$ac_ext
3510 case "x$ac_cv_prog_cc_c99" in
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3513 $as_echo "none needed" >&6; } ;;
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3516 $as_echo "unsupported" >&6; } ;;
3518 CC
="$CC $ac_cv_prog_cc_c99"
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3520 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3522 if test "x$ac_cv_prog_cc_c99" != xno
; then :
3527 if test "x$ac_cv_prog_cc_c99" = "xno"; then :
3529 as_fn_error
1 "C compiler does not support C99" "$LINENO" 5
3533 MORECFLAGS
="-pipe -Wall -Wextra -Wno-unused-value -Wno-unused-parameter -Wno-missing-field-initializers"
3534 if test "x$GCC" = "xyes"; then :
3536 CFLAGS
="$CFLAGS $MORECFLAGS"
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3543 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3544 if ${ac_cv_path_GREP+:} false
; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -z "$GREP"; then
3548 ac_path_GREP_found
=false
3549 # Loop through the user's path and test for each of PROGNAME-LIST
3550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3551 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3554 test -z "$as_dir" && as_dir
=.
3555 for ac_prog
in grep ggrep
; do
3556 for ac_exec_ext
in '' $ac_executable_extensions; do
3557 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3558 as_fn_executable_p
"$ac_path_GREP" || continue
3559 # Check for GNU ac_path_GREP and select it if it is found.
3560 # Check for GNU $ac_path_GREP
3561 case `"$ac_path_GREP" --version 2>&1` in
3563 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3566 $as_echo_n 0123456789 >"conftest.in"
3569 cat "conftest.in" "conftest.in" >"conftest.tmp"
3570 mv "conftest.tmp" "conftest.in"
3571 cp "conftest.in" "conftest.nl"
3572 $as_echo 'GREP' >> "conftest.nl"
3573 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3574 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3575 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3576 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3577 # Best one so far, save it but keep looking for a better one
3578 ac_cv_path_GREP
="$ac_path_GREP"
3579 ac_path_GREP_max
=$ac_count
3581 # 10*(2^10) chars as input seems more than enough
3582 test $ac_count -gt 10 && break
3584 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3587 $ac_path_GREP_found && break 3
3592 if test -z "$ac_cv_path_GREP"; then
3593 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3596 ac_cv_path_GREP
=$GREP
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3601 $as_echo "$ac_cv_path_GREP" >&6; }
3602 GREP
="$ac_cv_path_GREP"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3606 $as_echo_n "checking for egrep... " >&6; }
3607 if ${ac_cv_path_EGREP+:} false
; then :
3608 $as_echo_n "(cached) " >&6
3610 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3611 then ac_cv_path_EGREP
="$GREP -E"
3613 if test -z "$EGREP"; then
3614 ac_path_EGREP_found
=false
3615 # Loop through the user's path and test for each of PROGNAME-LIST
3616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3617 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3620 test -z "$as_dir" && as_dir
=.
3621 for ac_prog
in egrep; do
3622 for ac_exec_ext
in '' $ac_executable_extensions; do
3623 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3624 as_fn_executable_p
"$ac_path_EGREP" || continue
3625 # Check for GNU ac_path_EGREP and select it if it is found.
3626 # Check for GNU $ac_path_EGREP
3627 case `"$ac_path_EGREP" --version 2>&1` in
3629 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3632 $as_echo_n 0123456789 >"conftest.in"
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
3638 $as_echo 'EGREP' >> "conftest.nl"
3639 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3640 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3641 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3642 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_EGREP
="$ac_path_EGREP"
3645 ac_path_EGREP_max
=$ac_count
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3650 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3653 $ac_path_EGREP_found && break 3
3658 if test -z "$ac_cv_path_EGREP"; then
3659 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3662 ac_cv_path_EGREP
=$EGREP
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3668 $as_echo "$ac_cv_path_EGREP" >&6; }
3669 EGREP
="$ac_cv_path_EGREP"
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3673 $as_echo_n "checking for ANSI C header files... " >&6; }
3674 if ${ac_cv_header_stdc+:} false
; then :
3675 $as_echo_n "(cached) " >&6
3677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3692 if ac_fn_c_try_compile
"$LINENO"; then :
3693 ac_cv_header_stdc
=yes
3695 ac_cv_header_stdc
=no
3697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3699 if test $ac_cv_header_stdc = yes; then
3700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 $EGREP "memchr" >/dev
/null
2>&1; then :
3710 ac_cv_header_stdc
=no
3716 if test $ac_cv_header_stdc = yes; then
3717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3724 $EGREP "free" >/dev
/null
2>&1; then :
3727 ac_cv_header_stdc
=no
3733 if test $ac_cv_header_stdc = yes; then
3734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3735 if test "$cross_compiling" = yes; then :
3738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3742 #if ((' ' & 0x0FF) == 0x020)
3743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3746 # define ISLOWER(c) \
3747 (('a' <= (c) && (c) <= 'i') \
3748 || ('j' <= (c) && (c) <= 'r') \
3749 || ('s' <= (c) && (c) <= 'z'))
3750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3758 for (i = 0; i < 256; i++)
3759 if (XOR (islower (i), ISLOWER (i))
3760 || toupper (i) != TOUPPER (i))
3765 if ac_fn_c_try_run
"$LINENO"; then :
3768 ac_cv_header_stdc
=no
3770 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3771 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3777 $as_echo "$ac_cv_header_stdc" >&6; }
3778 if test $ac_cv_header_stdc = yes; then
3780 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3785 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3786 inttypes.h stdint.h unistd.h
3788 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3789 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3791 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3792 cat >>confdefs.h
<<_ACEOF
3793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3801 for ac_header
in poll.h winsock2.h sys
/epoll.h sys
/select.h sys
/pstat.h sys
/prctl.h
3803 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3804 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3805 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3806 cat >>confdefs.h
<<_ACEOF
3807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3814 for ac_func
in fcntl kqueue mmap
select dispatch_block port_create setproctitle pstat
3816 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3817 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
3818 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
3819 cat >>confdefs.h
<<_ACEOF
3820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
3828 $as_echo_n "checking for PS_STRINGS... " >&6; }
3829 if ${pgac_cv_var_PS_STRINGS+:} false
; then :
3830 $as_echo_n "(cached) " >&6
3832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #include <machine/vmparam.h>
3835 #include <sys/exec.h>
3840 PS_STRINGS->ps_nargvstr = 1;
3841 PS_STRINGS->ps_argvstr = "foo";
3846 if ac_fn_c_try_link
"$LINENO"; then :
3847 pgac_cv_var_PS_STRINGS
=yes
3849 pgac_cv_var_PS_STRINGS
=no
3851 rm -f core conftest.err conftest.
$ac_objext \
3852 conftest
$ac_exeext conftest.
$ac_ext
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
3855 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
3856 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
3858 $as_echo "#define HAVE_PS_STRINGS /**/" >>confdefs.h
3862 # Extract the first word of "ar", so it can be a program name with args.
3863 set dummy
ar; ac_word
=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if ${ac_cv_path_AR+:} false
; then :
3867 $as_echo_n "(cached) " >&6
3871 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
3874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3878 test -z "$as_dir" && as_dir
=.
3879 for ac_exec_ext
in '' $ac_executable_extensions; do
3880 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 if test -n "$AR"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3895 $as_echo "$AR" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3902 # Extract the first word of "ranlib", so it can be a program name with args.
3903 set dummy ranlib
; ac_word
=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if ${ac_cv_path_RANLIB+:} false
; then :
3907 $as_echo_n "(cached) " >&6
3911 ac_cv_path_RANLIB
="$RANLIB" # Let the user override the test with a path.
3914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir
=.
3919 for ac_exec_ext
in '' $ac_executable_extensions; do
3920 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_path_RANLIB
="$as_dir/$ac_word$ac_exec_ext"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 RANLIB
=$ac_cv_path_RANLIB
3933 if test -n "$RANLIB"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3935 $as_echo "$RANLIB" >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3943 LIBMOWGLI_MODULES
="core base container dns eventloop ext linebuf module object platform thread vio"
3946 LIBMOWGLI_MODULE_BUILD
="$(echo && echo x)"
3947 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
3949 LIBMOWGLI_SHARED_MODULES
=""
3950 # Check whether --enable-shared was given.
3951 if test "${enable_shared+set}" = set; then :
3952 enableval
=$enable_shared;
3955 if test x
"$enable_shared" != x
"no"; then :
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library system" >&5
3960 $as_echo_n "checking for shared library system... " >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
3964 $as_echo "Darwin" >&6; }
3965 LIB_CFLAGS
='-fPIC -DPIC'
3966 LIB_LDFLAGS
='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -install_name ${libdir}/$$(i=${SHARED_LIB}; echo $${i%.dylib}).${LIB_MAJOR}.dylib'
3969 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
3970 PLUGIN_CFLAGS
='-fPIC -DPIC'
3971 PLUGIN_LDFLAGS
='-bundle -undefined dynamic_lookup'
3972 PLUGIN_SUFFIX
='.bundle'
3973 INSTALL_LIB
='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'
3974 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
3979 $as_echo "Solaris" >&6; }
3980 LIB_CFLAGS
='-fPIC -DPIC'
3981 LIB_LDFLAGS
='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}.${LIB_MINOR}'
3984 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
3985 PLUGIN_CFLAGS
='-fPIC -DPIC'
3986 PLUGIN_LDFLAGS
='-shared'
3988 INSTALL_LIB
='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i'
3989 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
3994 $as_echo "OpenBSD" >&6; }
3995 LIB_CFLAGS
='-fPIC -DPIC'
3996 LIB_LDFLAGS
='-shared'
3998 LIB_SUFFIX
='.so.${LIB_MAJOR}.${LIB_MINOR}'
3999 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
4000 PLUGIN_CFLAGS
='-fPIC -DPIC'
4001 PLUGIN_LDFLAGS
='-shared'
4003 INSTALL_LIB
='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
4004 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${libdir}/$$i'
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
4009 $as_echo "Win32" >&6; }
4011 LIB_LDFLAGS
='-shared -Wl,--out-implib,${SHARED_LIB}.a'
4014 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
4016 PLUGIN_LDFLAGS
='-shared'
4017 PLUGIN_SUFFIX
='.dll'
4018 INSTALL_LIB
='&& ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a'
4019 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a'
4020 CLEAN_LIB
='${SHARED_LIB}.a'
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
4024 $as_echo "GNU" >&6; }
4025 LIB_CFLAGS
='-fPIC -DPIC'
4026 LIB_LDFLAGS
='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}'
4029 LDFLAGS_RPATH
='-Wl,-rpath,${libdir}'
4030 PLUGIN_CFLAGS
='-fPIC -DPIC'
4031 PLUGIN_LDFLAGS
='-shared'
4033 INSTALL_LIB
='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i'
4034 UNINSTALL_LIB
='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0'
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need an implib" >&5
4054 $as_echo_n "checking whether we need an implib... " >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058 $as_echo "yes" >&6; }
4059 PROG_IMPLIB_NEEDED
='yes'
4060 PROG_IMPLIB_LDFLAGS
='-Wl,-export-all-symbols,--out-implib,lib${PROG}.a'
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4065 PROG_IMPLIB_NEEDED
='no'
4066 PROG_IMPLIB_LDFLAGS
=''
4073 LIBMOWGLI_SHARED_LIB
=${LIB_PREFIX}mowgli
-2${LIB_SUFFIX}
4076 for i
in $LIBMOWGLI_MODULES
4078 UPPER
="$(echo $i | tr '[:lower:]' '[:upper:]')"
4079 LIBMOWGLI_SHARED_MODULES
="$LIBMOWGLI_SHARED_MODULES $i/mowgli.$i.lib.a"
4080 LIBMOWGLI_MODULE_BUILD
="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_SHARED_$UPPER = mowgli.$i.lib.a && echo x)"
4081 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
4086 LIBMOWGLI_STATIC_MODULES
=""
4087 # Check whether --enable-static was given.
4088 if test "${enable_static+set}" = set; then :
4089 enableval
=$enable_static;
4092 if test x
"$enable_static" = x
"yes" -o x
"$enable_shared" = x
"no"; then :
4094 LIBMOWGLI_STATIC_LIB
=libmowgli
-2.a
4097 for i
in $LIBMOWGLI_MODULES
4099 UPPER
="$(echo $i | tr '[:lower:]' '[:upper:]')"
4100 LIBMOWGLI_STATIC_MODULES
="$LIBMOWGLI_STATIC_MODULES $i/mowgli.$i.a"
4101 LIBMOWGLI_MODULE_BUILD
="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_STATIC_$UPPER = mowgli.$i.a && echo x)"
4102 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS type" >&5
4108 $as_echo_n "checking OS type... " >&6; }
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: win32" >&5
4112 $as_echo "win32" >&6; }
4113 LIBMOWGLI_OS
="win32"
4115 LIBS
="$LIBS -lwsock32 -lws2_32"
4117 if test x
"$LIBMOWGLI_SHARED_MODULES" != x
""; then :
4119 LIBMOWGLI_SHARED_MODULES
="$LIBMOWGLI_SHARED_MODULES platform/win32/mowgli.platform.win32.lib.a"
4120 LIBMOWGLI_MODULE_BUILD
="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_SHARED_PLATFORM_WIN32 = mowgli.platform.win32.lib.a && echo x)"
4121 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
4125 if test x
"$LIBMOWGLI_STATIC_MODULES" != x
""; then :
4127 LIBMOWGLI_STATIC_MODULES
="$LIBMOWGLI_STATIC_MODULES platform/win32/mowgli.platform.win32.a"
4128 LIBMOWGLI_MODULE_BUILD
="$LIBMOWGLI_MODULE_BUILD$(echo LIBMOWGLI_STATIC_PLATFORM_WIN32 = mowgli.platform.win32.a && echo x)"
4129 LIBMOWGLI_MODULE_BUILD
="${LIBMOWGLI_MODULE_BUILD%x}"
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: posix" >&5
4135 $as_echo "posix" >&6; }
4136 LIBMOWGLI_OS
="posix"
4142 # We used to check for pthread.h first, but this fails if pthread.h
4143 # requires special compiler flags (e.g. on True64 or Sequent).
4144 # It gets checked for in the link test anyway.
4146 # First of all, check if the user has set any of the PTHREAD_LIBS,
4147 # etcetera environment variables, and if threads linking works using
4149 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
4150 save_CFLAGS
="$CFLAGS"
4151 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4153 LIBS
="$PTHREAD_LIBS $LIBS"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4155 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
4156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4159 /* Override any GCC internal prototype to avoid an error.
4160 Use char because int might match the return type of a GCC
4161 builtin and then its argument prototype would still apply. */
4165 char pthread_join ();
4169 return pthread_join ();
4174 if ac_fn_c_try_link
"$LINENO"; then :
4177 rm -f core conftest.err conftest.
$ac_objext \
4178 conftest
$ac_exeext conftest.
$ac_ext
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4180 $as_echo "$acx_pthread_ok" >&6; }
4181 if test x
"$acx_pthread_ok" = xno
; then
4186 CFLAGS
="$save_CFLAGS"
4189 # We must check for the threads library under a number of different
4190 # names; the ordering is very important because some systems
4191 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4192 # libraries is broken (non-POSIX).
4194 # Create a list of thread flags to try. Items starting with a "-" are
4195 # C compiler flags, and other items are library names, except for "none"
4196 # which indicates that we try without any flags at all, and "pthread-config"
4197 # which is a program returning the flags for the Pth emulation library.
4199 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4201 # The ordering *is* (sometimes) important. Some notes on the
4202 # individual items follow:
4204 # pthreads: AIX (must check this before -lpthread)
4205 # none: in case threads are in libc; should be tried before -Kthread and
4206 # other compiler flags to prevent continual compiler warnings
4207 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4208 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4209 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4210 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4211 # -pthreads: Solaris/gcc
4212 # -mthreads: Mingw32/gcc, Lynx/gcc
4213 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4214 # doesn't hurt to check since this sometimes defines pthreads too;
4215 # also defines -D_REENTRANT)
4216 # ... -mt is also the pthreads flag for HP/aCC
4217 # pthread: Linux, etcetera
4218 # --thread-safe: KAI C++
4219 # pthread-config: use pthread-config program (for GNU Pth library)
4221 case "${host_cpu}-${host_os}" in
4224 # On Solaris (at least, for some versions), libc contains stubbed
4225 # (non-functional) versions of the pthreads routines, so link-based
4226 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
4227 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4228 # a function called by this macro, so we could check for that, but
4229 # who knows whether they'll stub that too in a future libc.) So,
4230 # we'll just look for -pthreads and -lpthread first:
4232 acx_pthread_flags
="-pthreads pthread -mt -pthread $acx_pthread_flags"
4236 if test x
"$acx_pthread_ok" = xno
; then
4237 for flag
in $acx_pthread_flags; do
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
4242 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
4247 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
4248 PTHREAD_CFLAGS
="$flag"
4249 PTHREAD_LIBS
="$flag"
4253 # Extract the first word of "pthread-config", so it can be a program name with args.
4254 set dummy pthread
-config; ac_word
=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_prog_acx_pthread_config+:} false
; then :
4258 $as_echo_n "(cached) " >&6
4260 if test -n "$acx_pthread_config"; then
4261 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
4263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir
=.
4268 for ac_exec_ext
in '' $ac_executable_extensions; do
4269 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_prog_acx_pthread_config
="yes"
4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
4281 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
4282 if test -n "$acx_pthread_config"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
4284 $as_echo "$acx_pthread_config" >&6; }
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4291 if test x
"$acx_pthread_config" = xno
; then continue; fi
4292 PTHREAD_CFLAGS
="`pthread-config --cflags`"
4293 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
4298 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
4299 PTHREAD_LIBS
="-l$flag"
4304 save_CFLAGS
="$CFLAGS"
4305 LIBS
="$PTHREAD_LIBS $LIBS"
4306 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4308 # Check for various functions. We must include pthread.h,
4309 # since some functions may be macros. (On the Sequent, we
4310 # need a special flag -Kthread to make this header compile.)
4311 # We check for pthread_join because it is in -lpthread on IRIX
4312 # while pthread_create is in libc. We check for pthread_attr_init
4313 # due to DEC craziness with -lpthreads. We check for
4314 # pthread_cleanup_push because it is one of the few pthread
4315 # functions on Solaris that doesn't have a non-functional libc stub.
4316 # We try pthread_create on general principles.
4317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 #include <pthread.h>
4323 pthread_t th; pthread_join(th, 0);
4324 pthread_attr_init(0); pthread_cleanup_push(0, 0);
4325 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4330 if ac_fn_c_try_link
"$LINENO"; then :
4333 rm -f core conftest.err conftest.
$ac_objext \
4334 conftest
$ac_exeext conftest.
$ac_ext
4337 CFLAGS
="$save_CFLAGS"
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4340 $as_echo "$acx_pthread_ok" >&6; }
4341 if test "x$acx_pthread_ok" = xyes
; then
4350 # Various other checks:
4351 if test "x$acx_pthread_ok" = xyes
; then
4353 LIBS
="$PTHREAD_LIBS $LIBS"
4354 save_CFLAGS
="$CFLAGS"
4355 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4357 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4359 $as_echo_n "checking for joinable pthread attribute... " >&6; }
4361 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
4362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <pthread.h>
4368 int attr=$attr; return attr;
4373 if ac_fn_c_try_link
"$LINENO"; then :
4374 attr_name
=$attr; break
4376 rm -f core conftest.err conftest.
$ac_objext \
4377 conftest
$ac_exeext conftest.
$ac_ext
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
4380 $as_echo "$attr_name" >&6; }
4381 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
4383 cat >>confdefs.h
<<_ACEOF
4384 #define PTHREAD_CREATE_JOINABLE $attr_name
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
4390 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
4392 case "${host_cpu}-${host_os}" in
4393 *-aix* | *-freebsd* | *-darwin*) flag
="-D_THREAD_SAFE";;
4394 *solaris
* | *-osf* | *-hpux*) flag
="-D_REENTRANT";;
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
4397 $as_echo "${flag}" >&6; }
4398 if test "x$flag" != xno
; then
4399 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
4403 CFLAGS
="$save_CFLAGS"
4409 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4410 if test x
"$acx_pthread_ok" = xyes
; then
4412 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
4420 CPPFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4421 LIBS
="$PTHREAD_LIBS $LIBS"
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4423 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4424 if ${ac_cv_lib_dl_dlopen+:} false
; then :
4425 $as_echo_n "(cached) " >&6
4427 ac_check_lib_save_LIBS
=$LIBS
4429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4432 /* Override any GCC internal prototype to avoid an error.
4433 Use char because int might match the return type of a GCC
4434 builtin and then its argument prototype would still apply. */
4447 if ac_fn_c_try_link
"$LINENO"; then :
4448 ac_cv_lib_dl_dlopen
=yes
4450 ac_cv_lib_dl_dlopen
=no
4452 rm -f core conftest.err conftest.
$ac_objext \
4453 conftest
$ac_exeext conftest.
$ac_ext
4454 LIBS
=$ac_check_lib_save_LIBS
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4457 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4458 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
4463 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
4464 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
4465 $as_echo_n "(cached) " >&6
4467 ac_check_lib_save_LIBS
=$LIBS
4469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4472 /* Override any GCC internal prototype to avoid an error.
4473 Use char because int might match the return type of a GCC
4474 builtin and then its argument prototype would still apply. */
4478 char clock_gettime ();
4482 return clock_gettime ();
4487 if ac_fn_c_try_link
"$LINENO"; then :
4488 ac_cv_lib_rt_clock_gettime
=yes
4490 ac_cv_lib_rt_clock_gettime
=no
4492 rm -f core conftest.err conftest.
$ac_objext \
4493 conftest
$ac_exeext conftest.
$ac_ext
4494 LIBS
=$ac_check_lib_save_LIBS
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
4497 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
4498 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
4515 # Check whether --with-openssl was given.
4516 if test "${with_openssl+set}" = set; then :
4517 withval
=$with_openssl;
4520 as_fn_error $?
"Empty --with-openssl value" "$LINENO" 5
4525 y
| ye
| yes | Y
| YE
| YES
)
4527 *) ssldirs
="$withval"
4533 # if pkg-config is installed and openssl has installed a .pc file,
4534 # then use that information and don't search ssldirs
4535 # Extract the first word of "pkg-config", so it can be a program name with args.
4536 set dummy pkg
-config; ac_word
=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
4540 $as_echo_n "(cached) " >&6
4544 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir
=.
4552 for ac_exec_ext
in '' $ac_executable_extensions; do
4553 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4566 if test -n "$PKG_CONFIG"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4568 $as_echo "$PKG_CONFIG" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 if test x
"$PKG_CONFIG" != x
""; then
4576 OPENSSL_LDFLAGS
=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
4577 if test $?
= 0; then
4578 OPENSSL_LIBS
=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
4579 OPENSSL_INCLUDES
=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
4580 founddir
=`$PKG_CONFIG openssl --variable=includedir 2>/dev/null`
4585 # no such luck; use some default ssldirs
4587 ssldirs
="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
4595 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
4596 # an 'openssl' subdirectory
4598 if ! $found && ! $skip; then
4600 for ssldir
in $ssldirs; do
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
4602 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
4603 if test -f "$ssldir/include/openssl/ssl.h"; then
4604 OPENSSL_INCLUDES
="-I$ssldir/include"
4605 OPENSSL_LDFLAGS
="-L$ssldir/lib"
4606 OPENSSL_LIBS
="-lssl -lcrypto"
4607 founddir
="$ssldir/include"
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4610 $as_echo "yes" >&6; }
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4619 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
4620 # it will just work!
4622 # try the preprocessor and linker with our new flags,
4623 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
4627 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
4628 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
4629 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
4632 save_LDFLAGS
="$LDFLAGS"
4633 save_CPPFLAGS
="$CPPFLAGS"
4634 LDFLAGS
="$LDFLAGS $OPENSSL_LDFLAGS"
4635 LIBS
="$OPENSSL_LIBS $LIBS"
4636 CPPFLAGS
="$OPENSSL_INCLUDES $CPPFLAGS"
4637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <openssl/ssl.h>
4648 if ac_fn_c_try_link
"$LINENO"; then :
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4651 $as_echo "yes" >&6; }
4655 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4666 rm -f core conftest.err conftest.
$ac_objext \
4667 conftest
$ac_exeext conftest.
$ac_ext
4668 CPPFLAGS
="$save_CPPFLAGS"
4669 LDFLAGS
="$save_LDFLAGS"
4672 if test -f "$founddir/openssl/ec.h"; then
4674 $as_echo "#define OPENSSL_EC_AVAILABLE 1" >>confdefs.h
4683 if test x
"$OPENSSL" = x
"yes"; then :
4685 LIBS
="$LIBS $OPENSSL_LIBS"
4686 LDFLAGS
="$LDFLAGS $OPENSSL_LDFLAGS"
4687 CPPFLAGS
="$CPPFLAGS $OPENSSL_INCLUDES"
4693 # Check whether --enable-examples was given.
4694 if test "${enable_examples+set}" = set; then :
4695 enableval
=$enable_examples;
4698 if test x
"$enable_examples" = x
"yes"; then :
4700 EXAMPLES_BUILD
="examples"
4708 # Extract the first word of "tput", so it can be a program name with args.
4709 set dummy
tput; ac_word
=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if ${ac_cv_path_TPUT+:} false
; then :
4713 $as_echo_n "(cached) " >&6
4717 ac_cv_path_TPUT
="$TPUT" # Let the user override the test with a path.
4720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4724 test -z "$as_dir" && as_dir
=.
4725 for ac_exec_ext
in '' $ac_executable_extensions; do
4726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_path_TPUT
="$as_dir/$ac_word$ac_exec_ext"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 TPUT
=$ac_cv_path_TPUT
4739 if test -n "$TPUT"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPUT" >&5
4741 $as_echo "$TPUT" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4749 if test x
"$TPUT" != x
""; then :
4751 if x
=$($TPUT el 2>/dev/null); then
4755 TERM_EL
="$($TPUT ce 2>/dev/null)"
4759 if x
=$($TPUT sgr0 2>/dev/null); then
4763 TERM_SGR0
="$($TPUT me 2>/dev/null)"
4767 if x
=$($TPUT bold 2>/dev/null); then
4771 TERM_BOLD
="$($TPUT md 2>/dev/null)"
4775 if x
=$($TPUT setaf 1 2>/dev/null); then
4778 TERM_SETAF2
="$($TPUT setaf 2 2>/dev/null)"
4780 TERM_SETAF3
="$($TPUT setaf 3 2>/dev/null)"
4782 TERM_SETAF4
="$($TPUT setaf 4 2>/dev/null)"
4784 TERM_SETAF6
="$($TPUT setaf 6 2>/dev/null)"
4787 TERM_SETAF1
="$($TPUT AF 1 2>/dev/null)"
4789 TERM_SETAF2
="$($TPUT AF 2 2>/dev/null)"
4791 TERM_SETAF3
="$($TPUT AF 3 2>/dev/null)"
4793 TERM_SETAF4
="$($TPUT AF 4 2>/dev/null)"
4795 TERM_SETAF6
="$($TPUT AF 6 2>/dev/null)"
4803 TERM_SGR0
='\033\133m'
4805 TERM_BOLD
='\033\1331m'
4807 TERM_SETAF1
='\033\13331m'
4809 TERM_SETAF2
='\033\13332m'
4811 TERM_SETAF3
='\033\13333m'
4813 TERM_SETAF4
='\033\13334m'
4815 TERM_SETAF6
='\033\13336m'
4821 ${as_echo:="echo"} ${as_me:="configure"}": touching .deps files"
4822 for i
in $(find . -name Makefile); do
4823 DEPSFILE
="$(dirname $i)/.deps"
4824 test -f "$DEPSFILE" && rm "$DEPSFILE"
4825 touch -t 0001010000 "$DEPSFILE"
4829 ac_config_files
="$ac_config_files buildsys.mk extra.mk libmowgli-2.pc"
4831 cat >confcache
<<\_ACEOF
4832 # This file is a shell script that caches the results of configure
4833 # tests run on this system so they can be shared between configure
4834 # scripts and configure runs, see configure's option --config-cache.
4835 # It is not useful on other systems. If it contains results you don't
4836 # want to keep, you may remove or edit it.
4838 # config.status only pays attention to the cache file if you give it
4839 # the --recheck option to rerun configure.
4841 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4842 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4847 # The following way of writing the cache mishandles newlines in values,
4848 # but we know of no workaround that is simple, portable, and efficient.
4849 # So, we kill variables containing newlines.
4850 # Ultrix sh set writes to stderr and can't be redirected directly,
4851 # and sets the high bit in the cache file unless we assign to the vars.
4853 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4854 eval ac_val
=\$
$ac_var
4858 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4859 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4862 _
| IFS
| as_nl
) ;; #(
4863 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
4864 *) { eval $ac_var=; unset $ac_var;} ;;
4870 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4871 *${as_nl}ac_space
=\
*)
4872 # `set' does not quote correctly, so add quotes: double-quote
4873 # substitution turns \\\\ into \\, and sed turns \\ into \.
4876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4879 # `set' quotes correctly as required by POSIX, so do not add quotes.
4880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4891 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4893 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4894 if test -w "$cache_file"; then
4895 if test "x$cache_file" != "x/dev/null"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4897 $as_echo "$as_me: updating cache $cache_file" >&6;}
4898 if test ! -f "$cache_file" || test -h "$cache_file"; then
4899 cat confcache
>"$cache_file"
4901 case $cache_file in #(
4903 mv -f confcache
"$cache_file"$$
&&
4904 mv -f "$cache_file"$$
"$cache_file" ;; #(
4906 mv -f confcache
"$cache_file" ;;
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4912 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4917 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4918 # Let make expand exec_prefix.
4919 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4921 DEFS
=-DHAVE_CONFIG_H
4926 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4927 # 1. Remove the extension, and $U if already installed.
4928 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4929 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4930 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4931 # will be set to the directory where LIBOBJS objects are built.
4932 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4933 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4937 LTLIBOBJS
=$ac_ltlibobjs
4941 : "${CONFIG_STATUS=./config.status}"
4943 ac_clean_files_save
=$ac_clean_files
4944 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4946 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4948 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4950 # Generated by $as_me.
4951 # Run this file to recreate the current configuration.
4952 # Compiler output produced by configure, useful for debugging
4953 # configure, is in config.log if it exists.
4959 SHELL=\${CONFIG_SHELL-$SHELL}
4962 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
4963 ## -------------------- ##
4964 ## M4sh Initialization. ##
4965 ## -------------------- ##
4967 # Be more Bourne compatible
4968 DUALCASE
=1; export DUALCASE
# for MKS sh
4969 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4972 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4973 # is contrary to our usage. Disable this feature.
4974 alias -g '${1+"$@"}'='"$@"'
4975 setopt NO_GLOB_SUBST
4977 case `(set -o) 2>/dev/null` in #(
4989 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4990 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4991 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4993 # Prefer a ksh shell builtin over an external printf program on Solaris,
4994 # but without wasting forks for bash or zsh.
4995 if test -z "$BASH_VERSION$ZSH_VERSION" \
4996 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4997 as_echo='print
-r --'
4998 as_echo_n='print
-rn --'
4999 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5000 as_echo='printf %s
\n'
5001 as_echo_n='printf %s
'
5003 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5004 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5005 as_echo_n='/usr
/ucb
/echo -n'
5007 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5008 as_echo_n_body='eval
5012 expr "X$arg" : "X\\(.*\\)$as_nl";
5013 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5015 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5017 export as_echo_n_body
5018 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5021 as_echo='sh
-c $as_echo_body as_echo
'
5024 # The user is always right.
5025 if test "${PATH_SEPARATOR+set}" != set; then
5027 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5028 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5035 # We need space, tab and new line, in precisely that order. Quoting is
5036 # there to prevent editors from complaining about space-tab.
5037 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5038 # splitting by setting IFS to empty value.)
5041 # Find who we are. Look in the path if we contain no directory separator.
5044 *[\\/]* ) as_myself=$0 ;;
5045 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir=.
5050 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5056 # We did not find ourselves, most probably we were run as `sh COMMAND'
5057 # in which case we are not to be found in the path.
5058 if test "x$as_myself" = x
; then
5061 if test ! -f "$as_myself"; then
5062 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5066 # Unset variables that we do not need and which cause bugs (e.g. in
5067 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5068 # suppresses any "Segmentation fault" message there. '((' could
5069 # trigger a bug in pdksh 5.2.14.
5070 for as_var
in BASH_ENV ENV MAIL MAILPATH
5071 do eval test x\
${$as_var+set} = xset \
5072 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
5085 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5088 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5089 # ----------------------------------------
5090 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5091 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5092 # script with STATUS, using 1 if that was 0.
5095 as_status
=$1; test $as_status -eq 0 && as_status
=1
5097 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5098 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5100 $as_echo "$as_me: error: $2" >&2
5101 as_fn_exit
$as_status
5105 # as_fn_set_status STATUS
5106 # -----------------------
5107 # Set $? to STATUS, without forking.
5111 } # as_fn_set_status
5115 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5125 # Portably unset VAR.
5128 { eval $1=; unset $1;}
5130 as_unset
=as_fn_unset
5131 # as_fn_append VAR VALUE
5132 # ----------------------
5133 # Append the text in VALUE to the end of the definition contained in VAR. Take
5134 # advantage of any shell optimizations that allow amortized linear growth over
5135 # repeated appends, instead of the typical quadratic growth present in naive
5137 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5138 eval 'as_fn_append ()
5149 # as_fn_arith ARG...
5150 # ------------------
5151 # Perform arithmetic evaluation on the ARGs, and store the result in the
5152 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5153 # must be portable across $(()) and expr.
5154 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5155 eval 'as_fn_arith ()
5162 as_val
=`expr "$@" || test $? -eq 1`
5167 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5168 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5174 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5175 as_basename
=basename
5180 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5186 as_me
=`$as_basename -- "$0" ||
5187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5188 X"$0" : 'X\(//\)$' \| \
5189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5191 sed '/^.*\/\([^/][^/]*\)\/*$/{
5205 # Avoid depending upon Character Ranges.
5206 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5207 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5208 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5209 as_cr_digits
='0123456789'
5210 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5212 ECHO_C
= ECHO_N
= ECHO_T
=
5213 case `echo -n x` in #(((((
5215 case `echo 'xy\c'` in
5216 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5218 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5225 rm -f conf$$ conf$$.exe conf$$.
file
5226 if test -d conf$$.dir
; then
5227 rm -f conf$$.dir
/conf$$.
file
5230 mkdir conf$$.dir
2>/dev
/null
5232 if (echo >conf$$.
file) 2>/dev
/null
; then
5233 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5235 # ... but there are two gotchas:
5236 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5237 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5238 # In both cases, we have to default to `cp -pR'.
5239 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
5241 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5249 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5250 rmdir conf$$.dir
2>/dev
/null
5255 # Create "$as_dir" as a directory, including parents if necessary.
5260 -*) as_dir
=.
/$as_dir;;
5262 test -d "$as_dir" || eval $as_mkdir_p || {
5266 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5267 *) as_qdir
=$as_dir;;
5269 as_dirs
="'$as_qdir' $as_dirs"
5270 as_dir
=`$as_dirname -- "$as_dir" ||
5271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5272 X"$as_dir" : 'X\(//\)[^/]' \| \
5273 X"$as_dir" : 'X\(//\)$' \| \
5274 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5275 $as_echo X"$as_dir" |
5276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5293 test -d "$as_dir" && break
5295 test -z "$as_dirs" || eval "mkdir $as_dirs"
5296 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5300 if mkdir -p .
2>/dev
/null
; then
5301 as_mkdir_p
='mkdir -p "$as_dir"'
5303 test -d .
/-p && rmdir .
/-p
5308 # as_fn_executable_p FILE
5309 # -----------------------
5310 # Test if FILE is an executable regular file.
5311 as_fn_executable_p
()
5313 test -f "$1" && test -x "$1"
5314 } # as_fn_executable_p
5316 as_executable_p
=as_fn_executable_p
5318 # Sed expression to map a string onto a valid CPP name.
5319 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5321 # Sed expression to map a string onto a valid variable name.
5322 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5326 ## ----------------------------------- ##
5327 ## Main body of $CONFIG_STATUS script. ##
5328 ## ----------------------------------- ##
5330 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5332 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5333 # Save the log message, to keep $0 and so on meaningful, and to
5334 # report actual input values of CONFIG_FILES etc. instead of their
5335 # values after options handling.
5337 This file was extended by libmowgli-2 $as_me 2.1.2, which was
5338 generated by GNU Autoconf 2.69. Invocation command line was
5340 CONFIG_FILES = $CONFIG_FILES
5341 CONFIG_HEADERS = $CONFIG_HEADERS
5342 CONFIG_LINKS = $CONFIG_LINKS
5343 CONFIG_COMMANDS = $CONFIG_COMMANDS
5346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5351 case $ac_config_files in *"
5352 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5355 case $ac_config_headers in *"
5356 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5361 # Files that config.status was made for.
5362 config_files="$ac_config_files"
5363 config_headers="$ac_config_headers"
5367 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5369 \`$as_me' instantiates files and other configuration actions
5370 from templates according to the current configuration. Unless the files
5371 and actions are specified as TAGs, all are instantiated by default.
5373 Usage: $0 [OPTION]... [TAG]...
5375 -h, --help print this help, then exit
5376 -V, --version print version number and configuration settings, then exit
5377 --config print configuration, then exit
5378 -q, --quiet, --silent
5379 do not print progress messages
5380 -d, --debug don't remove temporary files
5381 --recheck update $as_me by reconfiguring in the same conditions
5382 --file=FILE[:TEMPLATE]
5383 instantiate the configuration file FILE
5384 --header=FILE[:TEMPLATE]
5385 instantiate the configuration header FILE
5387 Configuration files:
5390 Configuration headers:
5393 Report bugs to <https://github.com/atheme/libmowgli-2>."
5396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5397 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5399 libmowgli-2 config.status 2.1.2
5400 configured by $0, generated by GNU Autoconf 2.69,
5401 with options \\"\$ac_cs_config\\"
5403 Copyright (C) 2012 Free Software Foundation, Inc.
5404 This config.status script is free software; the Free Software Foundation
5405 gives unlimited permission to copy, distribute and modify it."
5410 test -n "\$AWK" || AWK=awk
5413 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5414 # The default lists apply if the user does not specify any file.
5420 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5421 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5425 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5437 # Handling of the options.
5438 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5440 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5441 $as_echo "$ac_cs_version"; exit ;;
5442 --config | --confi | --conf | --con | --co | --c )
5443 $as_echo "$ac_cs_config"; exit ;;
5444 --debug | --debu | --deb | --de | --d | -d )
5446 --file | --fil | --fi | --f )
5449 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5450 '') as_fn_error $?
"missing file argument" ;;
5452 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5453 ac_need_defaults
=false
;;
5454 --header | --heade | --head | --hea )
5457 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5459 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5460 ac_need_defaults
=false
;;
5462 # Conflict between --help and --header
5463 as_fn_error $?
"ambiguous option: \`$1'
5464 Try \`$0 --help' for more information.";;
5465 --help | --hel | -h )
5466 $as_echo "$ac_cs_usage"; exit ;;
5467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5468 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5472 -*) as_fn_error $?
"unrecognized option: \`$1'
5473 Try \`$0 --help' for more information." ;;
5475 *) as_fn_append ac_config_targets
" $1"
5476 ac_need_defaults
=false
;;
5482 ac_configure_extra_args
=
5484 if $ac_cs_silent; then
5486 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5491 if \$ac_cs_recheck; then
5492 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5494 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5495 CONFIG_SHELL='$SHELL'
5501 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5505 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5506 ## Running $as_me. ##
5512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5515 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5517 # Handling of arguments.
5518 for ac_config_target
in $ac_config_targets
5520 case $ac_config_target in
5521 "src/libmowgli/platform/autoconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/libmowgli/platform/autoconf.h" ;;
5522 "buildsys.mk") CONFIG_FILES
="$CONFIG_FILES buildsys.mk" ;;
5523 "extra.mk") CONFIG_FILES
="$CONFIG_FILES extra.mk" ;;
5524 "libmowgli-2.pc") CONFIG_FILES
="$CONFIG_FILES libmowgli-2.pc" ;;
5526 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5531 # If the user did not use the arguments to specify the items to instantiate,
5532 # then the envvar interface is used. Set only those that are not.
5533 # We use the long form for the default assignment because of an extremely
5534 # bizarre bug on SunOS 4.1.3.
5535 if $ac_need_defaults; then
5536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5540 # Have a temporary directory for convenience. Make it in the build tree
5541 # simply because there is no reason against having it here, and in addition,
5542 # creating and moving files from /tmp can sometimes cause problems.
5543 # Hook for its removal unless debugging.
5544 # Note that there is a small window in which the directory will not be cleaned:
5545 # after its creation but before its name has been assigned to `$tmp'.
5549 trap 'exit_status=$?
5551 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5553 trap 'as_fn_exit 1' 1 2 13 15
5555 # Create a (secure) tmp directory for tmp files.
5558 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5562 tmp
=.
/conf$$
-$RANDOM
5563 (umask 077 && mkdir "$tmp")
5564 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5567 # Set up the scripts for CONFIG_FILES section.
5568 # No need to generate them if there are no CONFIG_FILES.
5569 # This happens for instance with `./config.status config.h'.
5570 if test -n "$CONFIG_FILES"; then
5573 ac_cr
=`echo X | tr X '\015'`
5574 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5575 # But we know of no other shell where ac_cr would be empty at this
5576 # point, so we can use a bashism as a fallback.
5577 if test "x$ac_cr" = x
; then
5578 eval ac_cr
=\$
\'\\r
\'
5580 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5581 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5587 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5592 echo "cat >conf$$subs.awk <<_ACEOF" &&
5593 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5596 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5597 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5599 for ac_last_try in false false false false false :; do
5600 . ./conf$$subs.sh ||
5601 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5603 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5604 if test $ac_delim_n = $ac_delim_num; then
5606 elif $ac_last_try; then
5607 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5609 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5615 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5619 s/^/S["/; s
/!.
*/"]=/
5629 s/\(.\{148\}\)..*/\1/
5631 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5636 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5643 s/\(.\{148\}\)..*/\1/
5645 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5649 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5654 ' <conf$$subs.awk | sed '
5659 ' >>$CONFIG_STATUS || ac_write_fail=1
5660 rm -f conf$$subs.awk
5661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5663 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5664 for (key in S) S_is_set[key] = 1
5670 nfields = split(line, field, "@
")
5672 len = length(field[1])
5673 for (i = 2; i < nfields; i++) {
5675 keylen = length(key)
5676 if (S_is_set[key]) {
5678 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5679 len += length(value) + length(field[++i])
5690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5691 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5692 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5695 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5696 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5699 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5700 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5701 # trailing colons and then remove the whole line if VPATH becomes empty
5702 # (actually we leave an empty line to preserve line numbers).
5703 if test "x
$srcdir" = x.; then
5704 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5723 fi # test -n "$CONFIG_FILES"
5725 # Set up the scripts for CONFIG_HEADERS section.
5726 # No need to generate them if there are no CONFIG_HEADERS.
5727 # This happens for instance with `./config.status Makefile'.
5728 if test -n "$CONFIG_HEADERS"; then
5729 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5733 # Transform confdefs.h into an awk script `defines.awk', embedded as
5734 # here-document in config.status, that substitutes the proper values into
5735 # config.h.in to produce config.h.
5737 # Create a delimiter string that does not exist in confdefs.h, to ease
5738 # handling of long lines.
5740 for ac_last_try in false false :; do
5741 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5742 if test -z "$ac_tt"; then
5744 elif $ac_last_try; then
5745 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5747 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5751 # For the awk script, D is an array of macro values keyed by name,
5752 # likewise P contains macro parameters if any. Preserve backslash
5753 # newline sequences.
5755 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5757 s/.\{148\}/&'"$ac_delim"'/g
5760 s/^[ ]*#[ ]*define[ ][ ]*/ /
5767 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5769 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5774 D["\
1"]=" \
3\\\\\\n
"\\/p
5776 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5781 s/.\{148\}/&'"$ac_delim"'/g
5786 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5789 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5791 ' <confdefs.h | sed '
5792 s/'"$ac_delim"'/"\\\
5793 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5796 for (key in D) D_is_set[key] = 1
5799 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5801 split(line, arg, " ")
5802 if (arg[1] == "#") {
5806 defundef
= substr
(arg
[1], 2)
5809 split(mac1
, mac2
, "(") #)
5811 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5812 if (D_is_set
[macro
]) {
5813 # Preserve the white space surrounding the "#".
5814 print prefix
"define", macro P
[macro
] D
[macro
]
5817 # Replace #undef with comments. This is necessary, for example,
5818 # in the case of _POSIX_SOURCE, which is predefined and required
5819 # on some systems where configure will not decide to define it.
5820 if (defundef
== "undef") {
5821 print
"/*", prefix defundef
, macro
, "*/"
5829 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5830 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5831 fi # test -n "$CONFIG_HEADERS"
5834 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5839 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5841 case $ac_mode$ac_tag in
5843 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5844 :[FH
]-) ac_tag
=-:-;;
5845 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5862 -) ac_f
="$ac_tmp/stdin";;
5863 *) # Look for the file first in the build tree, then in the source tree
5864 # (if the path is not absolute). The absolute path cannot be DOS-style,
5865 # because $ac_f cannot contain `:'.
5869 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5871 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5873 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5874 as_fn_append ac_file_inputs
" '$ac_f'"
5877 # Let's still pretend it is `configure' which instantiates (i.e., don't
5878 # use $as_me), people would be surprised to read:
5879 # /* config.h. Generated by config.status. */
5880 configure_input
='Generated from '`
5881 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5883 if test x
"$ac_file" != x
-; then
5884 configure_input
="$ac_file. $configure_input"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5886 $as_echo "$as_me: creating $ac_file" >&6;}
5888 # Neutralize special characters interpreted by sed in replacement strings.
5889 case $configure_input in #(
5890 *\
&* | *\
|* | *\\* )
5891 ac_sed_conf_input
=`$as_echo "$configure_input" |
5892 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5893 *) ac_sed_conf_input
=$configure_input;;
5897 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5898 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5903 ac_dir
=`$as_dirname -- "$ac_file" ||
5904 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5905 X"$ac_file" : 'X\(//\)[^/]' \| \
5906 X"$ac_file" : 'X\(//\)$' \| \
5907 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5908 $as_echo X"$ac_file" |
5909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5926 as_dir
="$ac_dir"; as_fn_mkdir_p
5930 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5932 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5933 # A ".." for each directory in $ac_dir_suffix.
5934 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5935 case $ac_top_builddir_sub in
5936 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5937 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5940 ac_abs_top_builddir
=$ac_pwd
5941 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5942 # for backward compatibility:
5943 ac_top_builddir
=$ac_top_build_prefix
5946 .
) # We are building in place.
5948 ac_top_srcdir
=$ac_top_builddir_sub
5949 ac_abs_top_srcdir
=$ac_pwd ;;
5950 [\\/]* | ?
:[\\/]* ) # Absolute name.
5951 ac_srcdir
=$srcdir$ac_dir_suffix;
5952 ac_top_srcdir
=$srcdir
5953 ac_abs_top_srcdir
=$srcdir ;;
5955 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5956 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5957 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5959 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5969 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5970 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5974 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5975 # If the template does not know about datarootdir, expand it.
5976 # FIXME: This hack should be removed a few years after 2.60.
5977 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5988 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5989 *datarootdir
*) ac_datarootdir_seen
=yes;;
5990 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5992 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5995 ac_datarootdir_hack='
5996 s&@datadir@&$datadir&g
5997 s&@docdir@&$docdir&g
5998 s&@infodir@&$infodir&g
5999 s&@localedir@&$localedir&g
6000 s&@mandir@&$mandir&g
6001 s&\\\${datarootdir}&$datarootdir&g' ;;
6005 # Neutralize VPATH when `$srcdir' = `.'.
6006 # Shell code in configure.ac might set extrasub.
6007 # FIXME: do we really want to maintain this feature?
6008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6009 ac_sed_extra="$ac_vpsub
6012 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
6014 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
6015 s
|@configure_input@
|$ac_sed_conf_input|;t t
6016 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6017 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6018 s
&@srcdir@
&$ac_srcdir&;t t
6019 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6020 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6021 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6022 s
&@builddir@
&$ac_builddir&;t t
6023 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6024 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6025 s
&@INSTALL@
&$ac_INSTALL&;t t
6026 $ac_datarootdir_hack
6028 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6029 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6032 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6034 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6036 which seems to be undefined. Please make sure it is defined" >&5
6037 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6038 which seems to be undefined. Please make sure it is defined" >&2;}
6040 rm -f "$ac_tmp/stdin"
6042 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6043 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6051 if test x"$ac_file" != x-; then
6053 $as_echo "/* $configure_input */" \
6054 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6055 } >"$ac_tmp/config.h" \
6056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6057 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6059 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6062 mv "$ac_tmp/config.h" "$ac_file" \
6063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6066 $as_echo "/* $configure_input */" \
6067 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6068 || as_fn_error $? "could not create -" "$LINENO" 5
6080 ac_clean_files=$ac_clean_files_save
6082 test $ac_write_fail = 0 ||
6083 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6086 # configure is writing to config.log, and then calls config.status.
6087 # config.status does its own redirection, appending to config.log.
6088 # Unfortunately, on DOS this fails, as config.log is still kept open
6089 # by configure, so config.status won't be able to
write to it
; its
6090 # output is simply discarded. So we exec the FD to /dev/null,
6091 # effectively closing config.log, so it can be properly (re)opened and
6092 # appended to by config.status. When coming back to configure, we
6093 # need to make the FD available again.
6094 if test "$no_create" != yes; then
6096 ac_config_status_args
=
6097 test "$silent" = yes &&
6098 ac_config_status_args
="$ac_config_status_args --quiet"
6100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6103 # would make configure fail if this is the last instruction.
6104 $ac_cs_success || as_fn_exit
1
6106 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6108 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6115 OpenSSL support: ${OPENSSL}
6116 Examples: ${EXAMPLES}
6118 Now type "make" to build, and "make install" to install.
6119 Thank you for using libmowgli.