2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for alsa-utils 1.0.28.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
578 PACKAGE_NAME='alsa-utils'
579 PACKAGE_TARNAME='alsa-utils'
580 PACKAGE_VERSION='1.0.28'
581 PACKAGE_STRING='alsa-utils 1.0.28'
585 ac_unique_file="aplay/aplay.c"
586 ac_default_prefix=/usr
588 # Factoring default headers for most tests.
589 ac_includes_default="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
624 ac_subst_vars='am__EXEEXT_FALSE
661 HAVE_SAMPLERATE_FALSE
713 XGETTEXT_EXTRA_OPTIONS
721 GETTEXT_MACRO_VERSION
724 MAINTAINER_MODE_FALSE
734 INSTALL_STRIP_PROGRAM
776 program_transform_name
789 enable_option_checking
790 enable_maintainer_mode
792 enable_dependency_tracking
809 with_systemdsystemunitdir
810 with_asound_state_dir
811 with_alsactl_lock_dir
812 with_alsactl_pidfile_dir
813 with_alsactl_daemonswitch
815 ac_precious_vars='build_alias
833 # Initialize some variables set by options.
835 ac_init_version=false
836 ac_unrecognized_opts=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
847 program_transform_name=s,x,x,
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
950 eval enable_$ac_useropt=no ;;
952 -docdir | --docdir | --docdi | --doc | --do)
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
976 eval enable_$ac_useropt=\$ac_optarg ;;
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
991 -help | --help | --hel | --he | -h)
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 htmldir=$ac_optarg ;;
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1021 -libdir | --libdir | --libdi | --libd)
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1112 -psdir | --psdir | --psdi | --psd | --ps)
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 sbindir=$ac_optarg ;;
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 sharedstatedir=$ac_optarg ;;
1138 -site | --site | --sit)
1140 -site=* | --site=* | --sit=*)
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1180 eval with_$ac_useropt=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1196 eval with_$ac_useropt=no ;;
1199 # Obsolete; use --with-x.
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1267 # Be sure to have absolute directory names.
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1280 target=$target_alias
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294 test "$silent" = yes && exec 6>/dev/null
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1337 ac_srcdir_defaulted=no
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1371 \`configure' configures alsa-utils 1.0.28 to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/alsa-utils]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of alsa-utils 1.0.28:";;
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --disable-maintainer-mode
1450 disable make rules and dependencies not useful (and
1451 sometimes confusing) to the casual installer
1452 --disable-nls do not use Native Language Support
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --disable-rpath do not hardcode runtime library paths
1458 --disable-alsatest Do not try to compile and run a test Alsa program
1459 --disable-alsamixer Disable alsamixer compilation
1460 --disable-alsaconf Disable alsaconf packaging
1461 --disable-alsaloop Disable alsaloop packaging
1462 --disable-xmlto Disable man page creation via xmlto
1463 --disable-largefile omit support for large files
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-gnu-ld assume the C compiler uses GNU ld default=no
1469 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1470 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1471 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1472 --without-libintl-prefix don't search for libintl in includedir and libdir
1473 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1474 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1475 --with-librt Use librt for monotonic clock (default = yes)
1476 --with-udev-rules-dir=DIR
1477 Directory where to install udev rules to
1479 --with-curses=libname Specify the curses library to use (default=auto)
1480 --with-testsound=file give the path of test sound file for alsaconf
1481 --with-systemdsystemunitdir=DIR
1482 Directory for systemd service files
1483 --with-asound-state-dir=DIR
1484 Directory to place asound.state file in
1485 --with-alsactl-lock-dir=DIR
1486 Directory to place lock files in
1487 --with-alsactl-pidfile-dir=DIR
1488 Directory to place alsactl.pid file in
1489 --with-alsactl-daemonswitch=FILE
1490 File to test for the daemon mode
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1501 PKG_CONFIG path to pkg-config utility
1503 directories to add to pkg-config's search path
1505 path overriding pkg-config's built-in search path
1507 C compiler flags for NCURSESW, overriding pkg-config
1509 linker flags for NCURSESW, overriding pkg-config
1511 C compiler flags for NCURSES, overriding pkg-config
1513 linker flags for NCURSES, overriding pkg-config
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1518 Report bugs to the package provider.
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1548 .) # We are building in place.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1581 alsa-utils configure 1.0.28
1582 generated by GNU Autoconf 2.69
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1631 } # ac_fn_c_try_compile
1633 # ac_fn_c_try_cpp LINENO
1634 # ----------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } > conftest.i && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 ac_retval=$ac_status
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1773 #define $2 innocuous_$2
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char $2 (); below.
1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778 <limits.h> exists even on freestanding compilers. */
1781 # include <limits.h>
1783 # include <assert.h>
1788 /* Override any GCC internal prototype to avoid an error.
1789 Use char because int might match the return type of a GCC
1790 builtin and then its argument prototype would still apply. */
1795 /* The GNU C library defines this for functions which it implements
1796 to always fail with ENOSYS. Some functions are actually named
1797 something starting with __ and the normal name is an alias. */
1798 #if defined __stub_$2 || defined __stub___$2
1810 if ac_fn_c_try_link "$LINENO"; then :
1815 rm -f core conftest.err conftest.$ac_objext \
1816 conftest$ac_exeext conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 } # ac_fn_c_check_func
1825 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1826 # -------------------------------------------------------
1827 # Tests whether HEADER exists and can be compiled using the include files in
1828 # INCLUDES, setting the cache variable VAR accordingly.
1829 ac_fn_c_check_header_compile ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1842 if ac_fn_c_try_compile "$LINENO"; then :
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_header_compile
1856 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1859 # the include files in INCLUDES and setting the cache variable VAR
1861 ac_fn_c_check_header_mongrel ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if eval \${$3+:} false; then :
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1874 # Is the header compilable?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1876 $as_echo_n "checking $2 usability... " >&6; }
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 ac_header_compiler=yes
1885 ac_header_compiler=no
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1889 $as_echo "$ac_header_compiler" >&6; }
1891 # Is the header present?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1893 $as_echo_n "checking $2 presence... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1898 if ac_fn_c_try_cpp "$LINENO"; then :
1899 ac_header_preproc=yes
1901 ac_header_preproc=no
1903 rm -f conftest.err conftest.i conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1905 $as_echo "$ac_header_preproc" >&6; }
1907 # So? What about this header?
1908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1911 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1917 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1919 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1921 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1923 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1933 eval "$3=\$ac_header_compiler"
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 } # ac_fn_c_check_header_mongrel
1942 cat >config.log <<_ACEOF
1943 This file contains any messages produced by compilers while
1944 running configure, to aid debugging if configure makes a mistake.
1946 It was created by alsa-utils $as_me 1.0.28, which was
1947 generated by GNU Autoconf 2.69. Invocation command line was
1959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1971 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 $as_echo "PATH: $as_dir"
1999 # Keep a trace of the command line.
2000 # Strip out --no-create and --no-recursion so they do not pile up.
2001 # Strip out --silent because we don't want to record it for future runs.
2002 # Also quote any args containing shell meta-characters.
2003 # Make two passes to allow for proper duplicate-argument suppression.
2007 ac_must_keep_next=false
2013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2015 | -silent | --silent | --silen | --sile | --sil)
2018 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023 as_fn_append ac_configure_args1 " '$ac_arg'"
2024 if test $ac_must_keep_next = true; then
2025 ac_must_keep_next=false # Got value, back to normal.
2028 *=* | --config-cache | -C | -disable-* | --disable-* \
2029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2031 | -with-* | --with-* | -without-* | --without-* | --x)
2032 case "$ac_configure_args0 " in
2033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036 -* ) ac_must_keep_next=true ;;
2039 as_fn_append ac_configure_args " '$ac_arg'"
2044 { ac_configure_args0=; unset ac_configure_args0;}
2045 { ac_configure_args1=; unset ac_configure_args1;}
2047 # When interrupted or exit'd, cleanup temporary files, and complete
2048 # config.log. We remove comments because anyway the quotes in there
2049 # would cause problems or look ugly.
2050 # WARNING: Use '\'' to represent an apostrophe within the trap.
2051 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2052 trap 'exit_status=$?
2053 # Save into config.log some information that might help in debugging.
2057 $as_echo "## ---------------- ##
2058 ## Cache variables. ##
2059 ## ---------------- ##"
2061 # The following way of writing the cache mishandles newlines in values,
2063 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2064 eval ac_val=\$$ac_var
2068 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2069 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 _ | IFS | as_nl) ;; #(
2073 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2074 *) { eval $ac_var=; unset $ac_var;} ;;
2079 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2080 *${as_nl}ac_space=\ *)
2082 "s/'\''/'\''\\\\'\'''\''/g;
2083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2093 $as_echo "## ----------------- ##
2094 ## Output variables. ##
2095 ## ----------------- ##"
2097 for ac_var in $ac_subst_vars
2099 eval ac_val=\$$ac_var
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103 $as_echo "$ac_var='\''$ac_val'\''"
2107 if test -n "$ac_subst_files"; then
2108 $as_echo "## ------------------- ##
2109 ## File substitutions. ##
2110 ## ------------------- ##"
2112 for ac_var in $ac_subst_files
2114 eval ac_val=\$$ac_var
2116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 $as_echo "$ac_var='\''$ac_val'\''"
2123 if test -s confdefs.h; then
2124 $as_echo "## ----------- ##
2131 test "$ac_signal" != 0 &&
2132 $as_echo "$as_me: caught signal $ac_signal"
2133 $as_echo "$as_me: exit $exit_status"
2135 rm -f core *.core core.conftest.* &&
2136 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139 for ac_signal in 1 2 13 15; do
2140 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2145 rm -f -r conftest* confdefs.h
2147 $as_echo "/* confdefs.h */" > confdefs.h
2149 # Predefined preprocessor variables.
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_NAME "$PACKAGE_NAME"
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_STRING "$PACKAGE_STRING"
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_URL "$PACKAGE_URL"
2176 # Let the site file select an alternate cache file if it wants to.
2177 # Prefer an explicitly selected file to automatically selected ones.
2180 if test -n "$CONFIG_SITE"; then
2181 # We do not want a PATH search for config.site.
2182 case $CONFIG_SITE in #((
2183 -*) ac_site_file1=./$CONFIG_SITE;;
2184 */*) ac_site_file1=$CONFIG_SITE;;
2185 *) ac_site_file1=./$CONFIG_SITE;;
2187 elif test "x$prefix" != xNONE; then
2188 ac_site_file1=$prefix/share/config.site
2189 ac_site_file2=$prefix/etc/config.site
2191 ac_site_file1=$ac_default_prefix/share/config.site
2192 ac_site_file2=$ac_default_prefix/etc/config.site
2194 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2196 test "x$ac_site_file" = xNONE && continue
2197 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2199 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2200 sed 's/^/| /' "$ac_site_file" >&5
2202 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204 as_fn_error $? "failed to load site script $ac_site_file
2205 See \`config.log' for more details" "$LINENO" 5; }
2209 if test -r "$cache_file"; then
2210 # Some versions of bash will fail to source /dev/null (special files
2211 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2212 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2214 $as_echo "$as_me: loading cache $cache_file" >&6;}
2216 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2217 *) . "./$cache_file";;
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2222 $as_echo "$as_me: creating cache $cache_file" >&6;}
2226 gt_needs="$gt_needs "
2227 # Check that the precious variables saved in the cache have kept the same
2229 ac_cache_corrupted=false
2230 for ac_var in $ac_precious_vars; do
2231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2232 eval ac_new_set=\$ac_env_${ac_var}_set
2233 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2234 eval ac_new_val=\$ac_env_${ac_var}_value
2235 case $ac_old_set,$ac_new_set in
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2238 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2239 ac_cache_corrupted=: ;;
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2242 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2243 ac_cache_corrupted=: ;;
2246 if test "x$ac_old_val" != "x$ac_new_val"; then
2247 # differences in whitespace do not lead to failure.
2248 ac_old_val_w=`echo x $ac_old_val`
2249 ac_new_val_w=`echo x $ac_new_val`
2250 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2252 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2253 ac_cache_corrupted=:
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2256 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2257 eval $ac_var=\$ac_old_val
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2260 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2262 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2265 # Pass precious variables to config.status.
2266 if test "$ac_new_set" = set; then
2268 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 *) ac_arg=$ac_var=$ac_new_val ;;
2271 case " $ac_configure_args " in
2272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2273 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277 if $ac_cache_corrupted; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2281 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2282 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2284 ## -------------------- ##
2285 ## Main body of script. ##
2286 ## -------------------- ##
2289 ac_cpp='$CPP $CPPFLAGS'
2290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297 am__api_version='1.12'
2300 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301 if test -f "$ac_dir/install-sh"; then
2303 ac_install_sh="$ac_aux_dir/install-sh -c"
2305 elif test -f "$ac_dir/install.sh"; then
2307 ac_install_sh="$ac_aux_dir/install.sh -c"
2309 elif test -f "$ac_dir/shtool"; then
2311 ac_install_sh="$ac_aux_dir/shtool install -c"
2315 if test -z "$ac_aux_dir"; then
2316 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2319 # These three variables are undocumented and unsupported,
2320 # and are intended to be withdrawn in a future Autoconf release.
2321 # They can cause serious problems if a builder's source tree is in a directory
2322 # whose full name contains unusual characters.
2323 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2324 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2325 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2328 # Find a good install program. We prefer a C program (faster),
2329 # so one script is as good as another. But avoid the broken or
2330 # incompatible versions:
2331 # SysV /etc/install, /usr/sbin/install
2332 # SunOS /usr/etc/install
2333 # IRIX /sbin/install
2335 # AmigaOS /C/install, which installs bootblocks on floppy discs
2336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339 # OS/2's system install, which has a completely different semantic
2340 # ./install, which can be erroneously created by make from ./install.sh.
2341 # Reject install programs that cannot install multiple files.
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2343 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2344 if test -z "$INSTALL"; then
2345 if ${ac_cv_path_install+:} false; then :
2346 $as_echo_n "(cached) " >&6
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 # Account for people who put trailing slashes in PATH elements.
2354 case $as_dir/ in #((
2355 ./ | .// | /[cC]/* | \
2356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2357 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2360 # OSF1 and SCO ODT 3.0 have their own names for install.
2361 # Don't use installbsd from OSF since it installs stuff as root
2363 for ac_prog in ginstall scoinst install; do
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2366 if test $ac_prog = install &&
2367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # AIX install. It has an incompatible calling convention.
2370 elif test $ac_prog = install &&
2371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372 # program-specific install script used by HP pwplus--don't use.
2375 rm -rf conftest.one conftest.two conftest.dir
2376 echo one > conftest.one
2377 echo two > conftest.two
2379 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2380 test -s conftest.one && test -s conftest.two &&
2381 test -s conftest.dir/conftest.one &&
2382 test -s conftest.dir/conftest.two
2384 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2397 rm -rf conftest.one conftest.two conftest.dir
2400 if test "${ac_cv_path_install+set}" = set; then
2401 INSTALL=$ac_cv_path_install
2403 # As a last resort, use the slow shell script. Don't cache a
2404 # value for INSTALL within a source directory, because that will
2405 # break other packages using the cache if that directory is
2406 # removed, or if the value is a relative name.
2407 INSTALL=$ac_install_sh
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2411 $as_echo "$INSTALL" >&6; }
2413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414 # It thinks the first close brace ends the variable substitution.
2415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2422 $as_echo_n "checking whether build environment is sane... " >&6; }
2423 # Reject unsafe characters in $srcdir or the absolute working directory
2424 # name. Accept space and tab only in the latter.
2428 *[\\\"\#\$\&\'\`$am_lf]*)
2429 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2432 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2433 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2436 # Do 'set' in a subshell so we don't clobber the current shell's
2437 # arguments. Must try -L first in case configure is actually a
2438 # symlink; some systems play weird games with the mod time of symlinks
2439 # (eg FreeBSD returns the mod time of the symlink's containing
2443 for am_try in 1 2; do
2444 echo "timestamp, slept: $am_has_slept" > conftest.file
2445 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446 if test "$*" = "X"; then
2448 set X `ls -t "$srcdir/configure" conftest.file`
2450 if test "$*" != "X $srcdir/configure conftest.file" \
2451 && test "$*" != "X conftest.file $srcdir/configure"; then
2453 # If neither matched, then we have a broken ls. This can happen
2454 # if, for instance, CONFIG_SHELL is bash and it inherits a
2455 # broken ls alias from the environment. This has actually
2456 # happened. Such a system could not be considered "sane".
2457 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2458 alias in your environment" "$LINENO" 5
2460 if test "$2" = conftest.file || test $am_try -eq 2; then
2467 test "$2" = conftest.file
2473 as_fn_error $? "newly created file is older than distributed files!
2474 Check your system clock" "$LINENO" 5
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2477 $as_echo "yes" >&6; }
2478 # If we didn't sleep, we still need to ensure time stamps of config.status and
2479 # generated files are strictly newer.
2481 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2488 test "$program_prefix" != NONE &&
2489 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2490 # Use a double $ so make ignores it.
2491 test "$program_suffix" != NONE &&
2492 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2493 # Double any \ or $.
2494 # By default was `s,x,x', remove it if useless.
2495 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2496 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2498 # expand $ac_aux_dir to an absolute path
2499 am_aux_dir=`cd $ac_aux_dir && pwd`
2501 if test x"${MISSING+set}" != xset; then
2504 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2506 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2509 # Use eval to expand $SHELL
2510 if eval "$MISSING --run true"; then
2511 am_missing_run="$MISSING --run "
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2515 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2518 if test x"${install_sh}" != xset; then
2521 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2523 install_sh="\${SHELL} $am_aux_dir/install-sh"
2527 # Installed binaries are usually stripped using 'strip' when the user
2528 # run "make install-strip". However 'strip' might not be the right
2529 # tool to use in cross-compilation environments, therefore Automake
2530 # will honor the 'STRIP' environment variable to overrule this program.
2531 if test "$cross_compiling" != no; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}strip; ac_word=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_STRIP+:} false; then :
2538 $as_echo_n "(cached) " >&6
2540 if test -n "$STRIP"; then
2541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 STRIP=$ac_cv_prog_STRIP
2561 if test -n "$STRIP"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2563 $as_echo "$STRIP" >&6; }
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2571 if test -z "$ac_cv_prog_STRIP"; then
2573 # Extract the first word of "strip", so it can be a program name with args.
2574 set dummy strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2578 $as_echo_n "(cached) " >&6
2580 if test -n "$ac_ct_STRIP"; then
2581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_ac_ct_STRIP="strip"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2601 if test -n "$ac_ct_STRIP"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2603 $as_echo "$ac_ct_STRIP" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2609 if test "x$ac_ct_STRIP" = x; then
2612 case $cross_compiling:$ac_tool_warned in
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2621 STRIP="$ac_cv_prog_STRIP"
2625 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2628 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2629 if test -z "$MKDIR_P"; then
2630 if ${ac_cv_path_mkdir+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2637 test -z "$as_dir" && as_dir=.
2638 for ac_prog in mkdir gmkdir; do
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2641 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2642 'mkdir (GNU coreutils) '* | \
2643 'mkdir (coreutils) '* | \
2644 'mkdir (fileutils) '4.1*)
2645 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2655 test -d ./--version && rmdir ./--version
2656 if test "${ac_cv_path_mkdir+set}" = set; then
2657 MKDIR_P="$ac_cv_path_mkdir -p"
2659 # As a last resort, use the slow shell script. Don't cache a
2660 # value for MKDIR_P within a source directory, because that will
2661 # break other packages using the cache if that directory is
2662 # removed, or if the value is a relative name.
2663 MKDIR_P="$ac_install_sh -d"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2667 $as_echo "$MKDIR_P" >&6; }
2669 for ac_prog in gawk mawk nawk awk
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_AWK+:} false; then :
2676 $as_echo_n "(cached) " >&6
2678 if test -n "$AWK"; then
2679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_AWK="$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 if test -n "$AWK"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701 $as_echo "$AWK" >&6; }
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2708 test -n "$AWK" && break
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2714 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2716 $as_echo_n "(cached) " >&6
2718 cat >conftest.make <<\_ACEOF
2721 @echo '@@@%%%=$(MAKE)=@@@%%%'
2723 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2724 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2726 eval ac_cv_prog_make_${ac_make}_set=yes;;
2728 eval ac_cv_prog_make_${ac_make}_set=no;;
2732 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734 $as_echo "yes" >&6; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 SET_MAKE="MAKE=${MAKE-make}"
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2749 rmdir .tst 2>/dev/null
2751 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2752 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2753 # is not polluted with repeated "-I."
2754 am__isrc=' -I$(srcdir)'
2755 # test to see if srcdir already configured
2756 if test -f $srcdir/config.status; then
2757 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2761 # test whether we have cygpath
2762 if test -z "$CYGPATH_W"; then
2763 if (cygpath --version) >/dev/null 2>/dev/null; then
2764 CYGPATH_W='cygpath -w'
2771 # Define the identity of the package.
2772 PACKAGE='alsa-utils'
2776 cat >>confdefs.h <<_ACEOF
2777 #define PACKAGE "$PACKAGE"
2781 cat >>confdefs.h <<_ACEOF
2782 #define VERSION "$VERSION"
2785 # Some tools Automake needs.
2787 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2790 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2793 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2796 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2799 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2801 # For better backward compatibility. To be removed once Automake 1.9.x
2802 # dies out for good. For more background, see:
2803 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2804 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2805 mkdir_p='$(MKDIR_P)'
2807 # We need awk for the "check" target. The system "awk" is bad on
2809 # Always define AMTAR for backward compatibility. Yes, it's still used
2810 # in the wild :-( We should find a proper way to deprecate it ...
2813 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2822 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2823 # Check whether --enable-maintainer-mode was given.
2824 if test "${enable_maintainer_mode+set}" = set; then :
2825 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2827 USE_MAINTAINER_MODE=yes
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2831 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2832 if test $USE_MAINTAINER_MODE = yes; then
2833 MAINTAINER_MODE_TRUE=
2834 MAINTAINER_MODE_FALSE='#'
2836 MAINTAINER_MODE_TRUE='#'
2837 MAINTAINER_MODE_FALSE=
2840 MAINT=$MAINTAINER_MODE_TRUE
2847 [\\/$]* | ?:[\\/]*) ;;
2848 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2853 $as_echo_n "checking whether NLS is requested... " >&6; }
2854 # Check whether --enable-nls was given.
2855 if test "${enable_nls+set}" = set; then :
2856 enableval=$enable_nls; USE_NLS=$enableval
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2862 $as_echo "$USE_NLS" >&6; }
2867 GETTEXT_MACRO_VERSION=0.18
2872 # Prepare PATH_SEPARATOR.
2873 # The user is always right.
2874 if test "${PATH_SEPARATOR+set}" != set; then
2875 echo "#! /bin/sh" >conf$$.sh
2876 echo "exit 0" >>conf$$.sh
2878 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2886 # Find out how to test for executable files. Don't use a zero-byte file,
2887 # as systems may use methods other than mode bits to determine executability.
2888 cat >conf$$.file <<_ASEOF
2892 chmod +x conf$$.file
2893 if test -x conf$$.file >/dev/null 2>&1; then
2894 ac_executable_p="test -x"
2896 ac_executable_p="test -f"
2900 # Extract the first word of "msgfmt", so it can be a program name with args.
2901 set dummy msgfmt; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_path_MSGFMT+:} false; then :
2905 $as_echo_n "(cached) " >&6
2909 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2912 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2913 for ac_dir in $PATH; do
2915 test -z "$ac_dir" && ac_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2918 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2919 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2920 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2921 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2928 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2932 MSGFMT="$ac_cv_path_MSGFMT"
2933 if test "$MSGFMT" != ":"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2935 $as_echo "$MSGFMT" >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2941 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2942 set dummy gmsgfmt; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_path_GMSGFMT+:} false; then :
2946 $as_echo_n "(cached) " >&6
2950 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2972 GMSGFMT=$ac_cv_path_GMSGFMT
2973 if test -n "$GMSGFMT"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2975 $as_echo "$GMSGFMT" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2983 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2984 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2985 *) MSGFMT_015=$MSGFMT ;;
2988 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2989 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2990 *) GMSGFMT_015=$GMSGFMT ;;
2995 # Prepare PATH_SEPARATOR.
2996 # The user is always right.
2997 if test "${PATH_SEPARATOR+set}" != set; then
2998 echo "#! /bin/sh" >conf$$.sh
2999 echo "exit 0" >>conf$$.sh
3001 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3009 # Find out how to test for executable files. Don't use a zero-byte file,
3010 # as systems may use methods other than mode bits to determine executability.
3011 cat >conf$$.file <<_ASEOF
3015 chmod +x conf$$.file
3016 if test -x conf$$.file >/dev/null 2>&1; then
3017 ac_executable_p="test -x"
3019 ac_executable_p="test -f"
3023 # Extract the first word of "xgettext", so it can be a program name with args.
3024 set dummy xgettext; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_path_XGETTEXT+:} false; then :
3028 $as_echo_n "(cached) " >&6
3032 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3035 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3036 for ac_dir in $PATH; do
3038 test -z "$ac_dir" && ac_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3041 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3042 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3043 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3044 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3051 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3055 XGETTEXT="$ac_cv_path_XGETTEXT"
3056 if test "$XGETTEXT" != ":"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3058 $as_echo "$XGETTEXT" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3066 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3067 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3068 *) XGETTEXT_015=$XGETTEXT ;;
3073 # Prepare PATH_SEPARATOR.
3074 # The user is always right.
3075 if test "${PATH_SEPARATOR+set}" != set; then
3076 echo "#! /bin/sh" >conf$$.sh
3077 echo "exit 0" >>conf$$.sh
3079 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3087 # Find out how to test for executable files. Don't use a zero-byte file,
3088 # as systems may use methods other than mode bits to determine executability.
3089 cat >conf$$.file <<_ASEOF
3093 chmod +x conf$$.file
3094 if test -x conf$$.file >/dev/null 2>&1; then
3095 ac_executable_p="test -x"
3097 ac_executable_p="test -f"
3101 # Extract the first word of "msgmerge", so it can be a program name with args.
3102 set dummy msgmerge; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_path_MSGMERGE+:} false; then :
3106 $as_echo_n "(cached) " >&6
3110 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3113 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3114 for ac_dir in $PATH; do
3116 test -z "$ac_dir" && ac_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3119 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3120 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3121 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3128 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3132 MSGMERGE="$ac_cv_path_MSGMERGE"
3133 if test "$MSGMERGE" != ":"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3135 $as_echo "$MSGMERGE" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3142 test -n "$localedir" || localedir='${datadir}/locale'
3145 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3148 ac_config_commands="$ac_config_commands po-directories"
3152 if test "X$prefix" = "XNONE"; then
3153 acl_final_prefix="$ac_default_prefix"
3155 acl_final_prefix="$prefix"
3157 if test "X$exec_prefix" = "XNONE"; then
3158 acl_final_exec_prefix='${prefix}'
3160 acl_final_exec_prefix="$exec_prefix"
3162 acl_save_prefix="$prefix"
3163 prefix="$acl_final_prefix"
3164 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3165 prefix="$acl_save_prefix"
3167 DEPDIR="${am__leading_dot}deps"
3169 ac_config_commands="$ac_config_commands depfiles"
3172 am_make=${MAKE-make}
3173 cat > confinc << 'END'
3175 @echo this is the am__doit target
3178 # If we don't find an include directive, just comment out the code.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3180 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3184 # First try GNU make style include.
3185 echo "include confinc" > confmf
3186 # Ignore all kinds of additional output from 'make'.
3187 case `$am_make -s -f confmf 2> /dev/null` in #(
3188 *the\ am__doit\ target*)
3194 # Now try BSD make style include.
3195 if test "$am__include" = "#"; then
3196 echo '.include "confinc"' > confmf
3197 case `$am_make -s -f confmf 2> /dev/null` in #(
3198 *the\ am__doit\ target*)
3199 am__include=.include
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3208 $as_echo "$_am_result" >&6; }
3209 rm -f confinc confmf
3211 # Check whether --enable-dependency-tracking was given.
3212 if test "${enable_dependency_tracking+set}" = set; then :
3213 enableval=$enable_dependency_tracking;
3216 if test "x$enable_dependency_tracking" != xno; then
3217 am_depcomp="$ac_aux_dir/depcomp"
3221 if test "x$enable_dependency_tracking" != xno; then
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3274 if test -z "$ac_cv_prog_CC"; then
3276 # Extract the first word of "gcc", so it can be a program name with args.
3277 set dummy gcc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_CC="gcc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3312 if test "x$ac_ct_CC" = x; then
3315 case $cross_compiling:$ac_tool_warned in
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319 ac_tool_warned=yes ;;
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}cc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC="${ac_tool_prefix}cc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3368 if test -z "$CC"; then
3369 # Extract the first word of "cc", so it can be a program name with args.
3370 set dummy cc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC="$CC" # Let the user override the test.
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3388 ac_prog_rejected=yes
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 if test $ac_prog_rejected = yes; then
3400 # We found a bogon in the path, so make sure we never use it.
3401 set dummy $ac_cv_prog_CC
3403 if test $# != 0; then
3404 # We chose a different compiler from the bogus one.
3405 # However, it has the same basename, so the bogon will be chosen
3406 # first if we set CC to just the basename; use the full file name.
3408 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3414 if test -n "$CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3424 if test -z "$CC"; then
3425 if test -n "$ac_tool_prefix"; then
3426 for ac_prog in cl.exe
3428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3465 test -n "$CC" && break
3468 if test -z "$CC"; then
3470 for ac_prog in cl.exe
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy $ac_prog; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$ac_ct_CC"; then
3480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_ac_ct_CC="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500 if test -n "$ac_ct_CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502 $as_echo "$ac_ct_CC" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 test -n "$ac_ct_CC" && break
3512 if test "x$ac_ct_CC" = x; then
3515 case $cross_compiling:$ac_tool_warned in
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3519 ac_tool_warned=yes ;;
3528 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $? "no acceptable C compiler found in \$PATH
3531 See \`config.log' for more details" "$LINENO" 5; }
3533 # Provide some information about the compiler.
3534 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3537 for ac_option in --version -v -V -qversion; do
3538 { { ac_try="$ac_compiler $ac_option >&5"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3547 if test -s conftest.err; then
3549 ... rest of stderr output deleted ...
3550 10q' conftest.err >conftest.er1
3551 cat conftest.er1 >&5
3553 rm -f conftest.er1 conftest.err
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 ac_clean_files_save=$ac_clean_files
3570 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3571 # Try to create an executable without -o first, disregard a.out.
3572 # It will help us diagnose broken compilers, and finding out an intuition
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3575 $as_echo_n "checking whether the C compiler works... " >&6; }
3576 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3578 # The possible output files:
3579 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3582 for ac_file in $ac_files
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3586 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3591 if { { ac_try="$ac_link_default"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_link_default") 2>&5
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
3602 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3603 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3604 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3605 # so that the user can short-circuit this test for compilers unknown to
3607 for ac_file in $ac_files ''
3609 test -f "$ac_file" || continue
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3614 # We found the default executable, but exeext='' is most
3618 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3620 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622 # We set ac_cv_exeext here because the later test for it is not
3623 # safe: cross compilers may not add the suffix if given an `-o'
3624 # argument, so we may need to know it at that point already.
3625 # Even if this section looks crufty: it has the advantage of
3632 test "$ac_cv_exeext" = no && ac_cv_exeext=
3637 if test -z "$ac_file"; then :
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error 77 "C compiler cannot create executables
3646 See \`config.log' for more details" "$LINENO" 5; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3652 $as_echo_n "checking for C compiler default output file name... " >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3654 $as_echo "$ac_file" >&6; }
3655 ac_exeext=$ac_cv_exeext
3657 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3660 $as_echo_n "checking for suffix of executables... " >&6; }
3661 if { { ac_try="$ac_link"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link") 2>&5
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3673 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3674 # work properly (i.e., refer to `conftest.exe'), while it won't with
3676 for ac_file in conftest.exe conftest conftest.*; do
3677 test -f "$ac_file" || continue
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3680 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3689 See \`config.log' for more details" "$LINENO" 5; }
3691 rm -f conftest conftest$ac_cv_exeext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3693 $as_echo "$ac_cv_exeext" >&6; }
3695 rm -f conftest.$ac_ext
3696 EXEEXT=$ac_cv_exeext
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3704 FILE *f = fopen ("conftest.out", "w");
3705 return ferror (f) || fclose (f) != 0;
3711 ac_clean_files="$ac_clean_files conftest.out"
3712 # Check that the compiler produces executables we can run. If not, either
3713 # the compiler is broken, or we cross compile.
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3715 $as_echo_n "checking whether we are cross compiling... " >&6; }
3716 if test "$cross_compiling" != yes; then
3717 { { ac_try="$ac_link"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link") 2>&5
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3728 if { ac_try='./conftest$ac_cv_exeext'
3729 { { case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_try") 2>&5
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; }; then
3741 if test "$cross_compiling" = maybe; then
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $? "cannot run C compiled programs.
3747 If you meant to cross compile, use \`--host'.
3748 See \`config.log' for more details" "$LINENO" 5; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3753 $as_echo "$cross_compiling" >&6; }
3755 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3756 ac_clean_files=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3758 $as_echo_n "checking for suffix of object files... " >&6; }
3759 if ${ac_cv_objext+:} false; then :
3760 $as_echo_n "(cached) " >&6
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3773 rm -f conftest.o conftest.obj
3774 if { { ac_try="$ac_compile"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_compile") 2>&5
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 for ac_file in conftest.o conftest.obj conftest.*; do
3786 test -f "$ac_file" || continue;
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error $? "cannot compute suffix of object files: cannot compile
3800 See \`config.log' for more details" "$LINENO" 5; }
3802 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3805 $as_echo "$ac_cv_objext" >&6; }
3806 OBJEXT=$ac_cv_objext
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3810 if ${ac_cv_c_compiler_gnu+:} false; then :
3811 $as_echo_n "(cached) " >&6
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3827 if ac_fn_c_try_compile "$LINENO"; then :
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3838 if test $ac_compiler_gnu = yes; then
3843 ac_test_CFLAGS=${CFLAGS+set}
3844 ac_save_CFLAGS=$CFLAGS
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3847 if ${ac_cv_prog_cc_g+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 ac_save_c_werror_flag=$ac_c_werror_flag
3851 ac_c_werror_flag=yes
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3865 if ac_fn_c_try_compile "$LINENO"; then :
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3880 if ac_fn_c_try_compile "$LINENO"; then :
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3896 if ac_fn_c_try_compile "$LINENO"; then :
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3907 $as_echo "$ac_cv_prog_cc_g" >&6; }
3908 if test "$ac_test_CFLAGS" = set; then
3909 CFLAGS=$ac_save_CFLAGS
3910 elif test $ac_cv_prog_cc_g = yes; then
3911 if test "$GCC" = yes; then
3917 if test "$GCC" = yes; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3925 if ${ac_cv_prog_cc_c89+:} false; then :
3926 $as_echo_n "(cached) " >&6
3928 ac_cv_prog_cc_c89=no
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3949 s = g (p, va_arg (v,int));
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_c89=$ac_arg
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c89" != "xno" && break
3992 rm -f conftest.$ac_ext
3997 case "x$ac_cv_prog_cc_c89" in
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 depcc="$CC" am_compiler_list=
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4022 $as_echo_n "checking dependency style of $depcc... " >&6; }
4023 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4024 $as_echo_n "(cached) " >&6
4026 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4027 # We make a subdir and do the tests there. Otherwise we can end up
4028 # making bogus files that we don't know about and never remove. For
4029 # instance it was reported that on HP-UX the gcc test will end up
4030 # making a dummy file named 'D' -- because '-MD' means "put the output
4034 # Copy depcomp to subdir because otherwise we won't find it if we're
4035 # using a relative directory.
4036 cp "$am_depcomp" conftest.dir
4038 # We will build objects and dependencies in a subdirectory because
4039 # it helps to detect inapplicable dependency modes. For instance
4040 # both Tru64's cc and ICC support -MD to output dependencies as a
4041 # side effect of compilation, but ICC will put the dependencies in
4042 # the current directory while Tru64 will put them in the object
4046 am_cv_CC_dependencies_compiler_type=none
4047 if test "$am_compiler_list" = ""; then
4048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4051 case " $depcc " in #(
4052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4055 for depmode in $am_compiler_list; do
4056 # Setup a source with many dependencies, because some compilers
4057 # like to wrap large dependency lists on column 80 (with \), and
4058 # we should not choose a depcomp mode which is confused by this.
4060 # We need to recreate these files for each test, as the compiler may
4061 # overwrite some of them when testing with obscure command lines.
4062 # This happens at least with the AIX C compiler.
4064 for i in 1 2 3 4 5 6; do
4065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4066 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4067 # Solaris 10 /bin/sh.
4068 echo '/* dummy */' > sub/conftst$i.h
4070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4072 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4073 # mode. It turns out that the SunPro C++ compiler does not properly
4074 # handle '-M -o', and we need to detect this. Also, some Intel
4075 # versions had trouble with output in subdirs.
4076 am__obj=sub/conftest.${OBJEXT-o}
4077 am__minus_obj="-o $am__obj"
4080 # This depmode causes a compiler race in universal mode.
4081 test "$am__universal" = false || continue
4084 # After this tag, mechanisms are not by side-effect, so they'll
4085 # only be used when explicitly requested.
4086 if test "x$enable_dependency_tracking" = xyes; then
4092 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4093 # This compiler won't grok '-c -o', but also, the minuso test has
4094 # not run yet. These depmodes are late enough in the game, and
4095 # so weak that their functioning should not be impacted.
4096 am__obj=conftest.${OBJEXT-o}
4101 if depmode=$depmode \
4102 source=sub/conftest.c object=$am__obj \
4103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4105 >/dev/null 2>conftest.err &&
4106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110 # icc doesn't choke on unknown options, it will just issue warnings
4111 # or remarks (even with -Werror). So we grep stderr for any message
4112 # that says an option was ignored or not supported.
4113 # When given -MP, icc 7.0 and 7.1 complain thusly:
4114 # icc: Command line warning: ignoring option '-M'; no argument required
4115 # The diagnosis changed in icc 8.0:
4116 # icc: Command line remark: option '-MP' not supported
4117 if (grep 'ignoring option' conftest.err ||
4118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119 am_cv_CC_dependencies_compiler_type=$depmode
4128 am_cv_CC_dependencies_compiler_type=none
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4134 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4137 test "x$enable_dependency_tracking" != xno \
4138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4140 am__fastdepCC_FALSE='#'
4142 am__fastdepCC_TRUE='#'
4143 am__fastdepCC_FALSE=
4147 # Make sure we can run config.sub.
4148 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4149 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4152 $as_echo_n "checking build system type... " >&6; }
4153 if ${ac_cv_build+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 ac_build_alias=$build_alias
4157 test "x$ac_build_alias" = x &&
4158 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4159 test "x$ac_build_alias" = x &&
4160 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4162 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4166 $as_echo "$ac_cv_build" >&6; }
4167 case $ac_cv_build in
4169 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4172 ac_save_IFS=$IFS; IFS='-'
4178 # Remember, the first character of IFS is used to create $*,
4179 # except with old shells:
4182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4186 $as_echo_n "checking host system type... " >&6; }
4187 if ${ac_cv_host+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 if test "x$host_alias" = x; then
4191 ac_cv_host=$ac_cv_build
4193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4194 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4199 $as_echo "$ac_cv_host" >&6; }
4202 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4205 ac_save_IFS=$IFS; IFS='-'
4211 # Remember, the first character of IFS is used to create $*,
4212 # except with old shells:
4215 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4219 # Check whether --with-gnu-ld was given.
4220 if test "${with_gnu_ld+set}" = set; then :
4221 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4226 # Prepare PATH_SEPARATOR.
4227 # The user is always right.
4228 if test "${PATH_SEPARATOR+set}" != set; then
4229 echo "#! /bin/sh" >conf$$.sh
4230 echo "exit 0" >>conf$$.sh
4232 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4240 if test "$GCC" = yes; then
4241 # Check if gcc -print-prog-name=ld gives a path.
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4243 $as_echo_n "checking for ld used by GCC... " >&6; }
4246 # gcc leaves a trailing carriage return which upsets mingw
4247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4252 # Accept absolute paths.
4253 [\\/]* | [A-Za-z]:[\\/]*)
4254 re_direlt='/[^/][^/]*/\.\./'
4255 # Canonicalize the path of ld
4256 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4257 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4258 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4260 test -z "$LD" && LD="$ac_prog"
4263 # If it fails, then pretend we aren't using GCC.
4267 # If it is relative, then search for the first ld in PATH.
4271 elif test "$with_gnu_ld" = yes; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4273 $as_echo_n "checking for GNU ld... " >&6; }
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4276 $as_echo_n "checking for non-GNU ld... " >&6; }
4278 if ${acl_cv_path_LD+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 if test -z "$LD"; then
4282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4283 for ac_dir in $PATH; do
4284 test -z "$ac_dir" && ac_dir=.
4285 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4286 acl_cv_path_LD="$ac_dir/$ac_prog"
4287 # Check to see if the program is GNU ld. I'd rather use --version,
4288 # but apparently some GNU ld's only accept -v.
4289 # Break only if it was the GNU/non-GNU ld that we prefer.
4290 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4291 *GNU* | *'with BFD'*)
4292 test "$with_gnu_ld" != no && break ;;
4294 test "$with_gnu_ld" != yes && break ;;
4300 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4304 LD="$acl_cv_path_LD"
4305 if test -n "$LD"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4307 $as_echo "$LD" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4312 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4315 if ${acl_cv_prog_gnu_ld+:} false; then :
4316 $as_echo_n "(cached) " >&6
4318 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4319 case `$LD -v 2>&1 </dev/null` in
4320 *GNU* | *'with BFD'*)
4321 acl_cv_prog_gnu_ld=yes ;;
4323 acl_cv_prog_gnu_ld=no ;;
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4327 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4328 with_gnu_ld=$acl_cv_prog_gnu_ld
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4334 $as_echo_n "checking for shared library run path origin... " >&6; }
4335 if ${acl_cv_rpath+:} false; then :
4336 $as_echo_n "(cached) " >&6
4339 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4340 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4347 $as_echo "$acl_cv_rpath" >&6; }
4349 acl_libext="$acl_cv_libext"
4350 acl_shlibext="$acl_cv_shlibext"
4351 acl_libname_spec="$acl_cv_libname_spec"
4352 acl_library_names_spec="$acl_cv_library_names_spec"
4353 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4354 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4355 acl_hardcode_direct="$acl_cv_hardcode_direct"
4356 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4357 # Check whether --enable-rpath was given.
4358 if test "${enable_rpath+set}" = set; then :
4359 enableval=$enable_rpath; :
4367 ac_cpp='$CPP $CPPFLAGS'
4368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4372 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4373 # On Suns, sometimes $CPP names a directory.
4374 if test -n "$CPP" && test -d "$CPP"; then
4377 if test -z "$CPP"; then
4378 if ${ac_cv_prog_CPP+:} false; then :
4379 $as_echo_n "(cached) " >&6
4381 # Double quotes because CPP needs to be expanded
4382 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4385 for ac_c_preproc_warn_flag in '' yes
4387 # Use a header file that comes with gcc, so configuring glibc
4388 # with a fresh cross-compiler works.
4389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4390 # <limits.h> exists even on freestanding compilers.
4391 # On the NeXT, cc -E runs the code through the compiler's parser,
4392 # not just through cpp. "Syntax error" is here to catch this case.
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4396 # include <limits.h>
4398 # include <assert.h>
4402 if ac_fn_c_try_cpp "$LINENO"; then :
4405 # Broken: fails on valid input.
4408 rm -f conftest.err conftest.i conftest.$ac_ext
4410 # OK, works on sane cases. Now check whether nonexistent headers
4411 # can be detected and how.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <ac_nonexistent.h>
4416 if ac_fn_c_try_cpp "$LINENO"; then :
4417 # Broken: success on invalid input.
4420 # Passes both tests.
4424 rm -f conftest.err conftest.i conftest.$ac_ext
4427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4428 rm -f conftest.i conftest.err conftest.$ac_ext
4429 if $ac_preproc_ok; then :
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4442 $as_echo "$CPP" >&6; }
4444 for ac_c_preproc_warn_flag in '' yes
4446 # Use a header file that comes with gcc, so configuring glibc
4447 # with a fresh cross-compiler works.
4448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4449 # <limits.h> exists even on freestanding compilers.
4450 # On the NeXT, cc -E runs the code through the compiler's parser,
4451 # not just through cpp. "Syntax error" is here to catch this case.
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4455 # include <limits.h>
4457 # include <assert.h>
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4464 # Broken: fails on valid input.
4467 rm -f conftest.err conftest.i conftest.$ac_ext
4469 # OK, works on sane cases. Now check whether nonexistent headers
4470 # can be detected and how.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #include <ac_nonexistent.h>
4475 if ac_fn_c_try_cpp "$LINENO"; then :
4476 # Broken: success on invalid input.
4479 # Passes both tests.
4483 rm -f conftest.err conftest.i conftest.$ac_ext
4486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487 rm -f conftest.i conftest.err conftest.$ac_ext
4488 if $ac_preproc_ok; then :
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4494 See \`config.log' for more details" "$LINENO" 5; }
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4505 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4506 if ${ac_cv_path_GREP+:} false; then :
4507 $as_echo_n "(cached) " >&6
4509 if test -z "$GREP"; then
4510 ac_path_GREP_found=false
4511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4516 test -z "$as_dir" && as_dir=.
4517 for ac_prog in grep ggrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4520 as_fn_executable_p "$ac_path_GREP" || continue
4521 # Check for GNU ac_path_GREP and select it if it is found.
4522 # Check for GNU $ac_path_GREP
4523 case `"$ac_path_GREP" --version 2>&1` in
4525 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4528 $as_echo_n 0123456789 >"conftest.in"
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
4534 $as_echo 'GREP' >> "conftest.nl"
4535 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537 as_fn_arith $ac_count + 1 && ac_count=$as_val
4538 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_GREP="$ac_path_GREP"
4541 ac_path_GREP_max=$ac_count
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549 $ac_path_GREP_found && break 3
4554 if test -z "$ac_cv_path_GREP"; then
4555 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4558 ac_cv_path_GREP=$GREP
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4563 $as_echo "$ac_cv_path_GREP" >&6; }
4564 GREP="$ac_cv_path_GREP"
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4568 $as_echo_n "checking for egrep... " >&6; }
4569 if ${ac_cv_path_EGREP+:} false; then :
4570 $as_echo_n "(cached) " >&6
4572 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4573 then ac_cv_path_EGREP="$GREP -E"
4575 if test -z "$EGREP"; then
4576 ac_path_EGREP_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in egrep; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4586 as_fn_executable_p "$ac_path_EGREP" || continue
4587 # Check for GNU ac_path_EGREP and select it if it is found.
4588 # Check for GNU $ac_path_EGREP
4589 case `"$ac_path_EGREP" --version 2>&1` in
4591 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4594 $as_echo_n 0123456789 >"conftest.in"
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 $as_echo 'EGREP' >> "conftest.nl"
4601 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 as_fn_arith $ac_count + 1 && ac_count=$as_val
4604 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_EGREP="$ac_path_EGREP"
4607 ac_path_EGREP_max=$ac_count
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615 $ac_path_EGREP_found && break 3
4620 if test -z "$ac_cv_path_EGREP"; then
4621 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624 ac_cv_path_EGREP=$EGREP
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4630 $as_echo "$ac_cv_path_EGREP" >&6; }
4631 EGREP="$ac_cv_path_EGREP"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4641 $as_echo_n "checking for 64-bit host... " >&6; }
4642 if ${gl_cv_solaris_64bit+:} false; then :
4643 $as_echo_n "(cached) " >&6
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4655 gl_cv_solaris_64bit=yes
4657 gl_cv_solaris_64bit=no
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4664 $as_echo "$gl_cv_solaris_64bit" >&6; }
4665 if test $gl_cv_solaris_64bit = yes; then
4666 acl_libdirstem=lib/64
4668 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4669 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4674 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4675 if test -n "$searchpath"; then
4676 acl_save_IFS="${IFS= }"; IFS=":"
4677 for searchdir in $searchpath; do
4678 if test -d "$searchdir"; then
4679 case "$searchdir" in
4680 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4682 # Better ignore directories of this form. They are misleading.
4684 *) searchdir=`cd "$searchdir" && pwd`
4685 case "$searchdir" in
4686 */lib64 ) acl_libdirstem=lib64 ;;
4695 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4710 acl_save_prefix="$prefix"
4711 prefix="$acl_final_prefix"
4712 acl_save_exec_prefix="$exec_prefix"
4713 exec_prefix="$acl_final_exec_prefix"
4715 eval additional_includedir=\"$includedir\"
4716 eval additional_libdir=\"$libdir\"
4718 exec_prefix="$acl_save_exec_prefix"
4719 prefix="$acl_save_prefix"
4722 # Check whether --with-libiconv-prefix was given.
4723 if test "${with_libiconv_prefix+set}" = set; then :
4724 withval=$with_libiconv_prefix;
4725 if test "X$withval" = "Xno"; then
4728 if test "X$withval" = "X"; then
4730 acl_save_prefix="$prefix"
4731 prefix="$acl_final_prefix"
4732 acl_save_exec_prefix="$exec_prefix"
4733 exec_prefix="$acl_final_exec_prefix"
4735 eval additional_includedir=\"$includedir\"
4736 eval additional_libdir=\"$libdir\"
4738 exec_prefix="$acl_save_exec_prefix"
4739 prefix="$acl_save_prefix"
4742 additional_includedir="$withval/include"
4743 additional_libdir="$withval/$acl_libdirstem"
4744 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4745 && ! test -d "$withval/$acl_libdirstem"; then
4746 additional_libdir="$withval/$acl_libdirstem2"
4760 names_already_handled=
4761 names_next_round='iconv '
4762 while test -n "$names_next_round"; do
4763 names_this_round="$names_next_round"
4765 for name in $names_this_round; do
4767 for n in $names_already_handled; do
4768 if test "$n" = "$name"; then
4773 if test -z "$already_handled"; then
4774 names_already_handled="$names_already_handled $name"
4775 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4776 eval value=\"\$HAVE_LIB$uppername\"
4777 if test -n "$value"; then
4778 if test "$value" = yes; then
4779 eval value=\"\$LIB$uppername\"
4780 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4781 eval value=\"\$LTLIB$uppername\"
4782 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4791 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4792 if test -n "$acl_shlibext"; then
4793 shrext=".$acl_shlibext" # typically: shrext=.so
4797 if test $use_additional = yes; then
4798 dir="$additional_libdir"
4799 if test -n "$acl_shlibext"; then
4800 if test -f "$dir/$libname$shrext"; then
4802 found_so="$dir/$libname$shrext"
4804 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4805 ver=`(cd "$dir" && \
4806 for f in "$libname$shrext".*; do echo "$f"; done \
4807 | sed -e "s,^$libname$shrext\\\\.,," \
4808 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4809 | sed 1q ) 2>/dev/null`
4810 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4812 found_so="$dir/$libname$shrext.$ver"
4815 eval library_names=\"$acl_library_names_spec\"
4816 for f in $library_names; do
4817 if test -f "$dir/$f"; then
4826 if test "X$found_dir" = "X"; then
4827 if test -f "$dir/$libname.$acl_libext"; then
4829 found_a="$dir/$libname.$acl_libext"
4832 if test "X$found_dir" != "X"; then
4833 if test -f "$dir/$libname.la"; then
4834 found_la="$dir/$libname.la"
4838 if test "X$found_dir" = "X"; then
4839 for x in $LDFLAGS $LTLIBICONV; do
4841 acl_save_prefix="$prefix"
4842 prefix="$acl_final_prefix"
4843 acl_save_exec_prefix="$exec_prefix"
4844 exec_prefix="$acl_final_exec_prefix"
4846 exec_prefix="$acl_save_exec_prefix"
4847 prefix="$acl_save_prefix"
4851 dir=`echo "X$x" | sed -e 's/^X-L//'`
4852 if test -n "$acl_shlibext"; then
4853 if test -f "$dir/$libname$shrext"; then
4855 found_so="$dir/$libname$shrext"
4857 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4858 ver=`(cd "$dir" && \
4859 for f in "$libname$shrext".*; do echo "$f"; done \
4860 | sed -e "s,^$libname$shrext\\\\.,," \
4861 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4862 | sed 1q ) 2>/dev/null`
4863 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4865 found_so="$dir/$libname$shrext.$ver"
4868 eval library_names=\"$acl_library_names_spec\"
4869 for f in $library_names; do
4870 if test -f "$dir/$f"; then
4879 if test "X$found_dir" = "X"; then
4880 if test -f "$dir/$libname.$acl_libext"; then
4882 found_a="$dir/$libname.$acl_libext"
4885 if test "X$found_dir" != "X"; then
4886 if test -f "$dir/$libname.la"; then
4887 found_la="$dir/$libname.la"
4892 if test "X$found_dir" != "X"; then
4897 if test "X$found_dir" != "X"; then
4898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4899 if test "X$found_so" != "X"; then
4900 if test "$enable_rpath" = no \
4901 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4902 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4903 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4906 for x in $ltrpathdirs; do
4907 if test "X$x" = "X$found_dir"; then
4912 if test -z "$haveit"; then
4913 ltrpathdirs="$ltrpathdirs $found_dir"
4915 if test "$acl_hardcode_direct" = yes; then
4916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4918 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4921 for x in $rpathdirs; do
4922 if test "X$x" = "X$found_dir"; then
4927 if test -z "$haveit"; then
4928 rpathdirs="$rpathdirs $found_dir"
4932 for x in $LDFLAGS $LIBICONV; do
4934 acl_save_prefix="$prefix"
4935 prefix="$acl_final_prefix"
4936 acl_save_exec_prefix="$exec_prefix"
4937 exec_prefix="$acl_final_exec_prefix"
4939 exec_prefix="$acl_save_exec_prefix"
4940 prefix="$acl_save_prefix"
4942 if test "X$x" = "X-L$found_dir"; then
4947 if test -z "$haveit"; then
4948 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4950 if test "$acl_hardcode_minus_L" != no; then
4951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4953 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4959 if test "X$found_a" != "X"; then
4960 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4962 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4965 additional_includedir=
4966 case "$found_dir" in
4967 */$acl_libdirstem | */$acl_libdirstem/)
4968 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4969 if test "$name" = 'iconv'; then
4970 LIBICONV_PREFIX="$basedir"
4972 additional_includedir="$basedir/include"
4974 */$acl_libdirstem2 | */$acl_libdirstem2/)
4975 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
4976 if test "$name" = 'iconv'; then
4977 LIBICONV_PREFIX="$basedir"
4979 additional_includedir="$basedir/include"
4982 if test "X$additional_includedir" != "X"; then
4983 if test "X$additional_includedir" != "X/usr/include"; then
4985 if test "X$additional_includedir" = "X/usr/local/include"; then
4986 if test -n "$GCC"; then
4988 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4992 if test -z "$haveit"; then
4993 for x in $CPPFLAGS $INCICONV; do
4995 acl_save_prefix="$prefix"
4996 prefix="$acl_final_prefix"
4997 acl_save_exec_prefix="$exec_prefix"
4998 exec_prefix="$acl_final_exec_prefix"
5000 exec_prefix="$acl_save_exec_prefix"
5001 prefix="$acl_save_prefix"
5003 if test "X$x" = "X-I$additional_includedir"; then
5008 if test -z "$haveit"; then
5009 if test -d "$additional_includedir"; then
5010 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5016 if test -n "$found_la"; then
5017 save_libdir="$libdir"
5019 */* | *\\*) . "$found_la" ;;
5020 *) . "./$found_la" ;;
5022 libdir="$save_libdir"
5023 for dep in $dependency_libs; do
5026 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5027 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5028 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5030 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5031 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5032 if test -n "$GCC"; then
5034 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5038 if test -z "$haveit"; then
5040 for x in $LDFLAGS $LIBICONV; do
5042 acl_save_prefix="$prefix"
5043 prefix="$acl_final_prefix"
5044 acl_save_exec_prefix="$exec_prefix"
5045 exec_prefix="$acl_final_exec_prefix"
5047 exec_prefix="$acl_save_exec_prefix"
5048 prefix="$acl_save_prefix"
5050 if test "X$x" = "X-L$additional_libdir"; then
5055 if test -z "$haveit"; then
5056 if test -d "$additional_libdir"; then
5057 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5061 for x in $LDFLAGS $LTLIBICONV; do
5063 acl_save_prefix="$prefix"
5064 prefix="$acl_final_prefix"
5065 acl_save_exec_prefix="$exec_prefix"
5066 exec_prefix="$acl_final_exec_prefix"
5068 exec_prefix="$acl_save_exec_prefix"
5069 prefix="$acl_save_prefix"
5071 if test "X$x" = "X-L$additional_libdir"; then
5076 if test -z "$haveit"; then
5077 if test -d "$additional_libdir"; then
5078 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5085 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5086 if test "$enable_rpath" != no; then
5088 for x in $rpathdirs; do
5089 if test "X$x" = "X$dir"; then
5094 if test -z "$haveit"; then
5095 rpathdirs="$rpathdirs $dir"
5098 for x in $ltrpathdirs; do
5099 if test "X$x" = "X$dir"; then
5104 if test -z "$haveit"; then
5105 ltrpathdirs="$ltrpathdirs $dir"
5110 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5113 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5116 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5117 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5123 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5124 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5130 if test "X$rpathdirs" != "X"; then
5131 if test -n "$acl_hardcode_libdir_separator"; then
5133 for found_dir in $rpathdirs; do
5134 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5136 acl_save_libdir="$libdir"
5138 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5139 libdir="$acl_save_libdir"
5140 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5142 for found_dir in $rpathdirs; do
5143 acl_save_libdir="$libdir"
5145 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5146 libdir="$acl_save_libdir"
5147 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5151 if test "X$ltrpathdirs" != "X"; then
5152 for found_dir in $ltrpathdirs; do
5153 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5188 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5189 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 gt_save_LIBS="$LIBS"
5193 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <CoreFoundation/CFPreferences.h>
5200 CFPreferencesCopyAppValue(NULL, NULL)
5205 if ac_fn_c_try_link "$LINENO"; then :
5206 gt_cv_func_CFPreferencesCopyAppValue=yes
5208 gt_cv_func_CFPreferencesCopyAppValue=no
5210 rm -f core conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212 LIBS="$gt_save_LIBS"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5215 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5216 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5218 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5222 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5223 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5224 $as_echo_n "(cached) " >&6
5226 gt_save_LIBS="$LIBS"
5227 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 #include <CoreFoundation/CFLocale.h>
5234 CFLocaleCopyCurrent();
5239 if ac_fn_c_try_link "$LINENO"; then :
5240 gt_cv_func_CFLocaleCopyCurrent=yes
5242 gt_cv_func_CFLocaleCopyCurrent=no
5244 rm -f core conftest.err conftest.$ac_objext \
5245 conftest$ac_exeext conftest.$ac_ext
5246 LIBS="$gt_save_LIBS"
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5249 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5250 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5252 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5256 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5257 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5269 case " $gt_needs " in
5270 *" need-formatstring-macros "*) gt_api_version=3 ;;
5271 *" need-ngettext "*) gt_api_version=2 ;;
5272 *) gt_api_version=1 ;;
5274 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5275 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5277 if test "$USE_NLS" = "yes"; then
5278 gt_use_preinstalled_gnugettext=no
5281 if test $gt_api_version -ge 3; then
5282 gt_revision_test_code='
5283 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5284 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5286 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5289 gt_revision_test_code=
5291 if test $gt_api_version -ge 2; then
5292 gt_expression_test_code=' + * ngettext ("", "", 0)'
5294 gt_expression_test_code=
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5298 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5299 if eval \${$gt_func_gnugettext_libc+:} false; then :
5300 $as_echo_n "(cached) " >&6
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <libintl.h>
5305 $gt_revision_test_code
5306 extern int _nl_msg_cat_cntr;
5307 extern int *_nl_domain_bindings;
5311 bindtextdomain ("", "");
5312 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5317 if ac_fn_c_try_link "$LINENO"; then :
5318 eval "$gt_func_gnugettext_libc=yes"
5320 eval "$gt_func_gnugettext_libc=no"
5322 rm -f core conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5325 eval ac_res=\$$gt_func_gnugettext_libc
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5327 $as_echo "$ac_res" >&6; }
5329 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5335 am_save_CPPFLAGS="$CPPFLAGS"
5337 for element in $INCICONV; do
5339 for x in $CPPFLAGS; do
5341 acl_save_prefix="$prefix"
5342 prefix="$acl_final_prefix"
5343 acl_save_exec_prefix="$exec_prefix"
5344 exec_prefix="$acl_final_exec_prefix"
5346 exec_prefix="$acl_save_exec_prefix"
5347 prefix="$acl_save_prefix"
5349 if test "X$x" = "X$element"; then
5354 if test -z "$haveit"; then
5355 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5361 $as_echo_n "checking for iconv... " >&6; }
5362 if ${am_cv_func_iconv+:} false; then :
5363 $as_echo_n "(cached) " >&6
5366 am_cv_func_iconv="no, consider installing GNU libiconv"
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5375 iconv_t cd = iconv_open("","");
5376 iconv(cd,NULL,NULL,NULL,NULL);
5382 if ac_fn_c_try_link "$LINENO"; then :
5383 am_cv_func_iconv=yes
5385 rm -f core conftest.err conftest.$ac_objext \
5386 conftest$ac_exeext conftest.$ac_ext
5387 if test "$am_cv_func_iconv" != yes; then
5388 am_save_LIBS="$LIBS"
5389 LIBS="$LIBS $LIBICONV"
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5397 iconv_t cd = iconv_open("","");
5398 iconv(cd,NULL,NULL,NULL,NULL);
5404 if ac_fn_c_try_link "$LINENO"; then :
5406 am_cv_func_iconv=yes
5408 rm -f core conftest.err conftest.$ac_objext \
5409 conftest$ac_exeext conftest.$ac_ext
5410 LIBS="$am_save_LIBS"
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5415 $as_echo "$am_cv_func_iconv" >&6; }
5416 if test "$am_cv_func_iconv" = yes; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5418 $as_echo_n "checking for working iconv... " >&6; }
5419 if ${am_cv_func_iconv_works+:} false; then :
5420 $as_echo_n "(cached) " >&6
5423 am_save_LIBS="$LIBS"
5424 if test $am_cv_lib_iconv = yes; then
5425 LIBS="$LIBS $LIBICONV"
5427 if test "$cross_compiling" = yes; then :
5429 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5430 *) am_cv_func_iconv_works="guessing yes" ;;
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5440 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5443 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5444 if (cd_utf8_to_88591 != (iconv_t)(-1))
5446 static const char input[] = "\342\202\254"; /* EURO SIGN */
5448 const char *inptr = input;
5449 size_t inbytesleft = strlen (input);
5451 size_t outbytesleft = sizeof (buf);
5452 size_t res = iconv (cd_utf8_to_88591,
5453 (char **) &inptr, &inbytesleft,
5454 &outptr, &outbytesleft);
5459 /* Test against Solaris 10 bug: Failures are not distinguishable from
5460 successful returns. */
5462 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5463 if (cd_ascii_to_88591 != (iconv_t)(-1))
5465 static const char input[] = "\263";
5467 const char *inptr = input;
5468 size_t inbytesleft = strlen (input);
5470 size_t outbytesleft = sizeof (buf);
5471 size_t res = iconv (cd_ascii_to_88591,
5472 (char **) &inptr, &inbytesleft,
5473 &outptr, &outbytesleft);
5478 #if 0 /* This bug could be worked around by the caller. */
5479 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5481 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5482 if (cd_88591_to_utf8 != (iconv_t)(-1))
5484 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5486 const char *inptr = input;
5487 size_t inbytesleft = strlen (input);
5489 size_t outbytesleft = sizeof (buf);
5490 size_t res = iconv (cd_88591_to_utf8,
5491 (char **) &inptr, &inbytesleft,
5492 &outptr, &outbytesleft);
5498 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5500 if (/* Try standardized names. */
5501 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5502 /* Try IRIX, OSF/1 names. */
5503 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5504 /* Try AIX names. */
5505 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5506 /* Try HP-UX names. */
5507 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5512 if ac_fn_c_try_run "$LINENO"; then :
5513 am_cv_func_iconv_works=yes
5515 am_cv_func_iconv_works=no
5517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5518 conftest.$ac_objext conftest.beam conftest.$ac_ext
5521 LIBS="$am_save_LIBS"
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5525 $as_echo "$am_cv_func_iconv_works" >&6; }
5526 case "$am_cv_func_iconv_works" in
5527 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5528 *) am_func_iconv=yes ;;
5531 am_func_iconv=no am_cv_lib_iconv=no
5533 if test "$am_func_iconv" = yes; then
5535 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5538 if test "$am_cv_lib_iconv" = yes; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5540 $as_echo_n "checking how to link with libiconv... " >&6; }
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5542 $as_echo "$LIBICONV" >&6; }
5544 CPPFLAGS="$am_save_CPPFLAGS"
5561 acl_save_prefix="$prefix"
5562 prefix="$acl_final_prefix"
5563 acl_save_exec_prefix="$exec_prefix"
5564 exec_prefix="$acl_final_exec_prefix"
5566 eval additional_includedir=\"$includedir\"
5567 eval additional_libdir=\"$libdir\"
5569 exec_prefix="$acl_save_exec_prefix"
5570 prefix="$acl_save_prefix"
5573 # Check whether --with-libintl-prefix was given.
5574 if test "${with_libintl_prefix+set}" = set; then :
5575 withval=$with_libintl_prefix;
5576 if test "X$withval" = "Xno"; then
5579 if test "X$withval" = "X"; then
5581 acl_save_prefix="$prefix"
5582 prefix="$acl_final_prefix"
5583 acl_save_exec_prefix="$exec_prefix"
5584 exec_prefix="$acl_final_exec_prefix"
5586 eval additional_includedir=\"$includedir\"
5587 eval additional_libdir=\"$libdir\"
5589 exec_prefix="$acl_save_exec_prefix"
5590 prefix="$acl_save_prefix"
5593 additional_includedir="$withval/include"
5594 additional_libdir="$withval/$acl_libdirstem"
5595 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5596 && ! test -d "$withval/$acl_libdirstem"; then
5597 additional_libdir="$withval/$acl_libdirstem2"
5611 names_already_handled=
5612 names_next_round='intl '
5613 while test -n "$names_next_round"; do
5614 names_this_round="$names_next_round"
5616 for name in $names_this_round; do
5618 for n in $names_already_handled; do
5619 if test "$n" = "$name"; then
5624 if test -z "$already_handled"; then
5625 names_already_handled="$names_already_handled $name"
5626 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5627 eval value=\"\$HAVE_LIB$uppername\"
5628 if test -n "$value"; then
5629 if test "$value" = yes; then
5630 eval value=\"\$LIB$uppername\"
5631 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5632 eval value=\"\$LTLIB$uppername\"
5633 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5642 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5643 if test -n "$acl_shlibext"; then
5644 shrext=".$acl_shlibext" # typically: shrext=.so
5648 if test $use_additional = yes; then
5649 dir="$additional_libdir"
5650 if test -n "$acl_shlibext"; then
5651 if test -f "$dir/$libname$shrext"; then
5653 found_so="$dir/$libname$shrext"
5655 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5656 ver=`(cd "$dir" && \
5657 for f in "$libname$shrext".*; do echo "$f"; done \
5658 | sed -e "s,^$libname$shrext\\\\.,," \
5659 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5660 | sed 1q ) 2>/dev/null`
5661 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5663 found_so="$dir/$libname$shrext.$ver"
5666 eval library_names=\"$acl_library_names_spec\"
5667 for f in $library_names; do
5668 if test -f "$dir/$f"; then
5677 if test "X$found_dir" = "X"; then
5678 if test -f "$dir/$libname.$acl_libext"; then
5680 found_a="$dir/$libname.$acl_libext"
5683 if test "X$found_dir" != "X"; then
5684 if test -f "$dir/$libname.la"; then
5685 found_la="$dir/$libname.la"
5689 if test "X$found_dir" = "X"; then
5690 for x in $LDFLAGS $LTLIBINTL; do
5692 acl_save_prefix="$prefix"
5693 prefix="$acl_final_prefix"
5694 acl_save_exec_prefix="$exec_prefix"
5695 exec_prefix="$acl_final_exec_prefix"
5697 exec_prefix="$acl_save_exec_prefix"
5698 prefix="$acl_save_prefix"
5702 dir=`echo "X$x" | sed -e 's/^X-L//'`
5703 if test -n "$acl_shlibext"; then
5704 if test -f "$dir/$libname$shrext"; then
5706 found_so="$dir/$libname$shrext"
5708 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5709 ver=`(cd "$dir" && \
5710 for f in "$libname$shrext".*; do echo "$f"; done \
5711 | sed -e "s,^$libname$shrext\\\\.,," \
5712 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5713 | sed 1q ) 2>/dev/null`
5714 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5716 found_so="$dir/$libname$shrext.$ver"
5719 eval library_names=\"$acl_library_names_spec\"
5720 for f in $library_names; do
5721 if test -f "$dir/$f"; then
5730 if test "X$found_dir" = "X"; then
5731 if test -f "$dir/$libname.$acl_libext"; then
5733 found_a="$dir/$libname.$acl_libext"
5736 if test "X$found_dir" != "X"; then
5737 if test -f "$dir/$libname.la"; then
5738 found_la="$dir/$libname.la"
5743 if test "X$found_dir" != "X"; then
5748 if test "X$found_dir" != "X"; then
5749 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5750 if test "X$found_so" != "X"; then
5751 if test "$enable_rpath" = no \
5752 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5753 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5754 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5757 for x in $ltrpathdirs; do
5758 if test "X$x" = "X$found_dir"; then
5763 if test -z "$haveit"; then
5764 ltrpathdirs="$ltrpathdirs $found_dir"
5766 if test "$acl_hardcode_direct" = yes; then
5767 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5769 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5770 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5772 for x in $rpathdirs; do
5773 if test "X$x" = "X$found_dir"; then
5778 if test -z "$haveit"; then
5779 rpathdirs="$rpathdirs $found_dir"
5783 for x in $LDFLAGS $LIBINTL; do
5785 acl_save_prefix="$prefix"
5786 prefix="$acl_final_prefix"
5787 acl_save_exec_prefix="$exec_prefix"
5788 exec_prefix="$acl_final_exec_prefix"
5790 exec_prefix="$acl_save_exec_prefix"
5791 prefix="$acl_save_prefix"
5793 if test "X$x" = "X-L$found_dir"; then
5798 if test -z "$haveit"; then
5799 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5801 if test "$acl_hardcode_minus_L" != no; then
5802 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5804 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5810 if test "X$found_a" != "X"; then
5811 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5813 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5816 additional_includedir=
5817 case "$found_dir" in
5818 */$acl_libdirstem | */$acl_libdirstem/)
5819 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5820 if test "$name" = 'intl'; then
5821 LIBINTL_PREFIX="$basedir"
5823 additional_includedir="$basedir/include"
5825 */$acl_libdirstem2 | */$acl_libdirstem2/)
5826 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5827 if test "$name" = 'intl'; then
5828 LIBINTL_PREFIX="$basedir"
5830 additional_includedir="$basedir/include"
5833 if test "X$additional_includedir" != "X"; then
5834 if test "X$additional_includedir" != "X/usr/include"; then
5836 if test "X$additional_includedir" = "X/usr/local/include"; then
5837 if test -n "$GCC"; then
5839 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5843 if test -z "$haveit"; then
5844 for x in $CPPFLAGS $INCINTL; do
5846 acl_save_prefix="$prefix"
5847 prefix="$acl_final_prefix"
5848 acl_save_exec_prefix="$exec_prefix"
5849 exec_prefix="$acl_final_exec_prefix"
5851 exec_prefix="$acl_save_exec_prefix"
5852 prefix="$acl_save_prefix"
5854 if test "X$x" = "X-I$additional_includedir"; then
5859 if test -z "$haveit"; then
5860 if test -d "$additional_includedir"; then
5861 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5867 if test -n "$found_la"; then
5868 save_libdir="$libdir"
5870 */* | *\\*) . "$found_la" ;;
5871 *) . "./$found_la" ;;
5873 libdir="$save_libdir"
5874 for dep in $dependency_libs; do
5877 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5878 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5879 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5881 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5882 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5883 if test -n "$GCC"; then
5885 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5889 if test -z "$haveit"; then
5891 for x in $LDFLAGS $LIBINTL; do
5893 acl_save_prefix="$prefix"
5894 prefix="$acl_final_prefix"
5895 acl_save_exec_prefix="$exec_prefix"
5896 exec_prefix="$acl_final_exec_prefix"
5898 exec_prefix="$acl_save_exec_prefix"
5899 prefix="$acl_save_prefix"
5901 if test "X$x" = "X-L$additional_libdir"; then
5906 if test -z "$haveit"; then
5907 if test -d "$additional_libdir"; then
5908 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5912 for x in $LDFLAGS $LTLIBINTL; do
5914 acl_save_prefix="$prefix"
5915 prefix="$acl_final_prefix"
5916 acl_save_exec_prefix="$exec_prefix"
5917 exec_prefix="$acl_final_exec_prefix"
5919 exec_prefix="$acl_save_exec_prefix"
5920 prefix="$acl_save_prefix"
5922 if test "X$x" = "X-L$additional_libdir"; then
5927 if test -z "$haveit"; then
5928 if test -d "$additional_libdir"; then
5929 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5936 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5937 if test "$enable_rpath" != no; then
5939 for x in $rpathdirs; do
5940 if test "X$x" = "X$dir"; then
5945 if test -z "$haveit"; then
5946 rpathdirs="$rpathdirs $dir"
5949 for x in $ltrpathdirs; do
5950 if test "X$x" = "X$dir"; then
5955 if test -z "$haveit"; then
5956 ltrpathdirs="$ltrpathdirs $dir"
5961 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5964 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5967 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5968 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5974 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5975 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5981 if test "X$rpathdirs" != "X"; then
5982 if test -n "$acl_hardcode_libdir_separator"; then
5984 for found_dir in $rpathdirs; do
5985 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5987 acl_save_libdir="$libdir"
5989 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5990 libdir="$acl_save_libdir"
5991 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5993 for found_dir in $rpathdirs; do
5994 acl_save_libdir="$libdir"
5996 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5997 libdir="$acl_save_libdir"
5998 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6002 if test "X$ltrpathdirs" != "X"; then
6003 for found_dir in $ltrpathdirs; do
6004 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6014 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6015 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6016 $as_echo_n "(cached) " >&6
6018 gt_save_CPPFLAGS="$CPPFLAGS"
6019 CPPFLAGS="$CPPFLAGS $INCINTL"
6020 gt_save_LIBS="$LIBS"
6021 LIBS="$LIBS $LIBINTL"
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <libintl.h>
6025 $gt_revision_test_code
6026 extern int _nl_msg_cat_cntr;
6031 const char *_nl_expand_alias (const char *);
6035 bindtextdomain ("", "");
6036 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6041 if ac_fn_c_try_link "$LINENO"; then :
6042 eval "$gt_func_gnugettext_libintl=yes"
6044 eval "$gt_func_gnugettext_libintl=no"
6046 rm -f core conftest.err conftest.$ac_objext \
6047 conftest$ac_exeext conftest.$ac_ext
6048 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6049 LIBS="$LIBS $LIBICONV"
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #include <libintl.h>
6053 $gt_revision_test_code
6054 extern int _nl_msg_cat_cntr;
6059 const char *_nl_expand_alias (const char *);
6063 bindtextdomain ("", "");
6064 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6069 if ac_fn_c_try_link "$LINENO"; then :
6070 LIBINTL="$LIBINTL $LIBICONV"
6071 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6072 eval "$gt_func_gnugettext_libintl=yes"
6075 rm -f core conftest.err conftest.$ac_objext \
6076 conftest$ac_exeext conftest.$ac_ext
6078 CPPFLAGS="$gt_save_CPPFLAGS"
6079 LIBS="$gt_save_LIBS"
6081 eval ac_res=\$$gt_func_gnugettext_libintl
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6083 $as_echo "$ac_res" >&6; }
6086 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6087 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6088 && test "$PACKAGE" != gettext-runtime \
6089 && test "$PACKAGE" != gettext-tools; }; then
6090 gt_use_preinstalled_gnugettext=yes
6099 if test -n "$INTL_MACOSX_LIBS"; then
6100 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6101 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6102 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6103 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6107 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6108 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6110 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6118 $as_echo_n "checking whether to use NLS... " >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6120 $as_echo "$USE_NLS" >&6; }
6121 if test "$USE_NLS" = "yes"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6123 $as_echo_n "checking where the gettext function comes from... " >&6; }
6124 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6125 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6126 gt_source="external libintl"
6131 gt_source="included intl directory"
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6134 $as_echo "$gt_source" >&6; }
6137 if test "$USE_NLS" = "yes"; then
6139 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6140 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6142 $as_echo_n "checking how to link with libintl... " >&6; }
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6144 $as_echo "$LIBINTL" >&6; }
6146 for element in $INCINTL; do
6148 for x in $CPPFLAGS; do
6150 acl_save_prefix="$prefix"
6151 prefix="$acl_final_prefix"
6152 acl_save_exec_prefix="$exec_prefix"
6153 exec_prefix="$acl_final_exec_prefix"
6155 exec_prefix="$acl_save_exec_prefix"
6156 prefix="$acl_save_prefix"
6158 if test "X$x" = "X$element"; then
6163 if test -z "$haveit"; then
6164 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6171 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6174 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6193 if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
6196 $as_echo_n "checking for cross-compiler... " >&6; }
6198 which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
6199 which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
6200 && CC=${target_cpu}-${target-os}-gcc
6201 which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
6202 && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6205 $as_echo "$CC" >&6; }
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213 if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if ${ac_cv_prog_CC+:} false; then :
6219 $as_echo_n "(cached) " >&6
6221 if test -n "$CC"; then
6222 ac_cv_prog_CC="$CC" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 if test -n "$CC"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6244 $as_echo "$CC" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6252 if test -z "$ac_cv_prog_CC"; then
6254 # Extract the first word of "gcc", so it can be a program name with args.
6255 set dummy gcc; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -n "$ac_ct_CC"; then
6262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_ac_ct_CC="gcc"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6282 if test -n "$ac_ct_CC"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6284 $as_echo "$ac_ct_CC" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6290 if test "x$ac_ct_CC" = x; then
6293 case $cross_compiling:$ac_tool_warned in
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297 ac_tool_warned=yes ;;
6305 if test -z "$CC"; then
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}cc; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_prog_CC+:} false; then :
6312 $as_echo_n "(cached) " >&6
6314 if test -n "$CC"; then
6315 ac_cv_prog_CC="$CC" # Let the user override the test.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_CC="${ac_tool_prefix}cc"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 if test -n "$CC"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6337 $as_echo "$CC" >&6; }
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6346 if test -z "$CC"; then
6347 # Extract the first word of "cc", so it can be a program name with args.
6348 set dummy cc; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_CC+:} false; then :
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$CC"; then
6355 ac_cv_prog_CC="$CC" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6366 ac_prog_rejected=yes
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 if test $ac_prog_rejected = yes; then
6378 # We found a bogon in the path, so make sure we never use it.
6379 set dummy $ac_cv_prog_CC
6381 if test $# != 0; then
6382 # We chose a different compiler from the bogus one.
6383 # However, it has the same basename, so the bogon will be chosen
6384 # first if we set CC to just the basename; use the full file name.
6386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6392 if test -n "$CC"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6394 $as_echo "$CC" >&6; }
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6402 if test -z "$CC"; then
6403 if test -n "$ac_tool_prefix"; then
6404 for ac_prog in cl.exe
6406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_CC+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$CC"; then
6414 ac_cv_prog_CC="$CC" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 if test -n "$CC"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6436 $as_echo "$CC" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6443 test -n "$CC" && break
6446 if test -z "$CC"; then
6448 for ac_prog in cl.exe
6450 # Extract the first word of "$ac_prog", so it can be a program name with args.
6451 set dummy $ac_prog; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6455 $as_echo_n "(cached) " >&6
6457 if test -n "$ac_ct_CC"; then
6458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467 ac_cv_prog_ac_ct_CC="$ac_prog"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6478 if test -n "$ac_ct_CC"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6480 $as_echo "$ac_ct_CC" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6487 test -n "$ac_ct_CC" && break
6490 if test "x$ac_ct_CC" = x; then
6493 case $cross_compiling:$ac_tool_warned in
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned=yes ;;
6506 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6508 as_fn_error $? "no acceptable C compiler found in \$PATH
6509 See \`config.log' for more details" "$LINENO" 5; }
6511 # Provide some information about the compiler.
6512 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6515 for ac_option in --version -v -V -qversion; do
6516 { { ac_try="$ac_compiler $ac_option >&5"
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6522 $as_echo "$ac_try_echo"; } >&5
6523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6525 if test -s conftest.err; then
6527 ... rest of stderr output deleted ...
6528 10q' conftest.err >conftest.er1
6529 cat conftest.er1 >&5
6531 rm -f conftest.er1 conftest.err
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6538 if ${ac_cv_c_compiler_gnu+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6555 if ac_fn_c_try_compile "$LINENO"; then :
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6566 if test $ac_compiler_gnu = yes; then
6571 ac_test_CFLAGS=${CFLAGS+set}
6572 ac_save_CFLAGS=$CFLAGS
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6575 if ${ac_cv_prog_cc_g+:} false; then :
6576 $as_echo_n "(cached) " >&6
6578 ac_save_c_werror_flag=$ac_c_werror_flag
6579 ac_c_werror_flag=yes
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6593 if ac_fn_c_try_compile "$LINENO"; then :
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6608 if ac_fn_c_try_compile "$LINENO"; then :
6611 ac_c_werror_flag=$ac_save_c_werror_flag
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6624 if ac_fn_c_try_compile "$LINENO"; then :
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 ac_c_werror_flag=$ac_save_c_werror_flag
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6635 $as_echo "$ac_cv_prog_cc_g" >&6; }
6636 if test "$ac_test_CFLAGS" = set; then
6637 CFLAGS=$ac_save_CFLAGS
6638 elif test $ac_cv_prog_cc_g = yes; then
6639 if test "$GCC" = yes; then
6645 if test "$GCC" = yes; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6653 if ${ac_cv_prog_cc_c89+:} false; then :
6654 $as_echo_n "(cached) " >&6
6656 ac_cv_prog_cc_c89=no
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6664 struct buf { int x; };
6665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6666 static char *e (p, i)
6672 static char *f (char * (*g) (char **, int), char **p, ...)
6677 s = g (p, va_arg (v,int));
6682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6683 function prototypes and stuff, but not '\xHH' hex character constants.
6684 These don't provoke an error unfortunately, instead are silently treated
6685 as 'x'. The following induces an error, until -std is added to get
6686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6687 array size at least. It's necessary to write '\x00'==0 to get something
6688 that's true only with -std. */
6689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6692 inside strings and character constants. */
6694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6696 int test (int i, double x);
6697 struct s1 {int (*f) (int a);};
6698 struct s2 {int (*f) (double a);};
6699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6711 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6713 CC="$ac_save_CC $ac_arg"
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 ac_cv_prog_cc_c89=$ac_arg
6717 rm -f core conftest.err conftest.$ac_objext
6718 test "x$ac_cv_prog_cc_c89" != "xno" && break
6720 rm -f conftest.$ac_ext
6725 case "x$ac_cv_prog_cc_c89" in
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6728 $as_echo "none needed" >&6; } ;;
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6731 $as_echo "unsupported" >&6; } ;;
6733 CC="$CC $ac_cv_prog_cc_c89"
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6737 if test "x$ac_cv_prog_cc_c89" != xno; then :
6742 ac_cpp='$CPP $CPPFLAGS'
6743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6747 depcc="$CC" am_compiler_list=
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6750 $as_echo_n "checking dependency style of $depcc... " >&6; }
6751 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6755 # We make a subdir and do the tests there. Otherwise we can end up
6756 # making bogus files that we don't know about and never remove. For
6757 # instance it was reported that on HP-UX the gcc test will end up
6758 # making a dummy file named 'D' -- because '-MD' means "put the output
6762 # Copy depcomp to subdir because otherwise we won't find it if we're
6763 # using a relative directory.
6764 cp "$am_depcomp" conftest.dir
6766 # We will build objects and dependencies in a subdirectory because
6767 # it helps to detect inapplicable dependency modes. For instance
6768 # both Tru64's cc and ICC support -MD to output dependencies as a
6769 # side effect of compilation, but ICC will put the dependencies in
6770 # the current directory while Tru64 will put them in the object
6774 am_cv_CC_dependencies_compiler_type=none
6775 if test "$am_compiler_list" = ""; then
6776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6779 case " $depcc " in #(
6780 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6783 for depmode in $am_compiler_list; do
6784 # Setup a source with many dependencies, because some compilers
6785 # like to wrap large dependency lists on column 80 (with \), and
6786 # we should not choose a depcomp mode which is confused by this.
6788 # We need to recreate these files for each test, as the compiler may
6789 # overwrite some of them when testing with obscure command lines.
6790 # This happens at least with the AIX C compiler.
6792 for i in 1 2 3 4 5 6; do
6793 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6794 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6795 # Solaris 10 /bin/sh.
6796 echo '/* dummy */' > sub/conftst$i.h
6798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6800 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6801 # mode. It turns out that the SunPro C++ compiler does not properly
6802 # handle '-M -o', and we need to detect this. Also, some Intel
6803 # versions had trouble with output in subdirs.
6804 am__obj=sub/conftest.${OBJEXT-o}
6805 am__minus_obj="-o $am__obj"
6808 # This depmode causes a compiler race in universal mode.
6809 test "$am__universal" = false || continue
6812 # After this tag, mechanisms are not by side-effect, so they'll
6813 # only be used when explicitly requested.
6814 if test "x$enable_dependency_tracking" = xyes; then
6820 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6821 # This compiler won't grok '-c -o', but also, the minuso test has
6822 # not run yet. These depmodes are late enough in the game, and
6823 # so weak that their functioning should not be impacted.
6824 am__obj=conftest.${OBJEXT-o}
6829 if depmode=$depmode \
6830 source=sub/conftest.c object=$am__obj \
6831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6833 >/dev/null 2>conftest.err &&
6834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6838 # icc doesn't choke on unknown options, it will just issue warnings
6839 # or remarks (even with -Werror). So we grep stderr for any message
6840 # that says an option was ignored or not supported.
6841 # When given -MP, icc 7.0 and 7.1 complain thusly:
6842 # icc: Command line warning: ignoring option '-M'; no argument required
6843 # The diagnosis changed in icc 8.0:
6844 # icc: Command line remark: option '-MP' not supported
6845 if (grep 'ignoring option' conftest.err ||
6846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6847 am_cv_CC_dependencies_compiler_type=$depmode
6856 am_cv_CC_dependencies_compiler_type=none
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6865 test "x$enable_dependency_tracking" != xno \
6866 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6868 am__fastdepCC_FALSE='#'
6870 am__fastdepCC_TRUE='#'
6871 am__fastdepCC_FALSE=
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6878 $as_echo_n "checking whether ln -s works... " >&6; }
6880 if test "$LN_S" = "ln -s"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6882 $as_echo "yes" >&6; }
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6885 $as_echo "no, using $LN_S" >&6; }
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6889 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6890 if ${ac_cv_path_SED+:} false; then :
6891 $as_echo_n "(cached) " >&6
6893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6894 for ac_i in 1 2 3 4 5 6 7; do
6895 ac_script="$ac_script$as_nl$ac_script"
6897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6898 { ac_script=; unset ac_script;}
6899 if test -z "$SED"; then
6900 ac_path_SED_found=false
6901 # Loop through the user's path and test for each of PROGNAME-LIST
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_prog in sed gsed; do
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6910 as_fn_executable_p "$ac_path_SED" || continue
6911 # Check for GNU ac_path_SED and select it if it is found.
6912 # Check for GNU $ac_path_SED
6913 case `"$ac_path_SED" --version 2>&1` in
6915 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6918 $as_echo_n 0123456789 >"conftest.in"
6921 cat "conftest.in" "conftest.in" >"conftest.tmp"
6922 mv "conftest.tmp" "conftest.in"
6923 cp "conftest.in" "conftest.nl"
6924 $as_echo '' >> "conftest.nl"
6925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6927 as_fn_arith $ac_count + 1 && ac_count=$as_val
6928 if test $ac_count -gt ${ac_path_SED_max-0}; then
6929 # Best one so far, save it but keep looking for a better one
6930 ac_cv_path_SED="$ac_path_SED"
6931 ac_path_SED_max=$ac_count
6933 # 10*(2^10) chars as input seems more than enough
6934 test $ac_count -gt 10 && break
6936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6939 $ac_path_SED_found && break 3
6944 if test -z "$ac_cv_path_SED"; then
6945 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6953 $as_echo "$ac_cv_path_SED" >&6; }
6954 SED="$ac_cv_path_SED"
6963 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6970 $as_echo_n "(cached) " >&6
6974 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6996 if test -n "$PKG_CONFIG"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6998 $as_echo "$PKG_CONFIG" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7006 if test -z "$ac_cv_path_PKG_CONFIG"; then
7007 ac_pt_PKG_CONFIG=$PKG_CONFIG
7008 # Extract the first word of "pkg-config", so it can be a program name with args.
7009 set dummy pkg-config; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7013 $as_echo_n "(cached) " >&6
7015 case $ac_pt_PKG_CONFIG in
7017 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7039 if test -n "$ac_pt_PKG_CONFIG"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7041 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7047 if test "x$ac_pt_PKG_CONFIG" = x; then
7050 case $cross_compiling:$ac_tool_warned in
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054 ac_tool_warned=yes ;;
7056 PKG_CONFIG=$ac_pt_PKG_CONFIG
7059 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7063 if test -n "$PKG_CONFIG"; then
7064 _pkg_min_version=0.9.0
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7066 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7067 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7069 $as_echo "yes" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7076 alsa_save_CFLAGS="$CFLAGS"
7077 alsa_save_LDFLAGS="$LDFLAGS"
7078 alsa_save_LIBS="$LIBS"
7082 # Check whether --with-alsa-prefix was given.
7083 if test "${with_alsa_prefix+set}" = set; then :
7084 withval=$with_alsa_prefix; alsa_prefix="$withval"
7091 # Check whether --with-alsa-inc-prefix was given.
7092 if test "${with_alsa_inc_prefix+set}" = set; then :
7093 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
7099 # Check whether --enable-alsatest was given.
7100 if test "${enable_alsatest+set}" = set; then :
7101 enableval=$enable_alsatest; enable_alsatest="$enableval"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
7108 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
7109 if test "$alsa_inc_prefix" != "" ; then
7110 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
7111 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7114 $as_echo "$ALSA_CFLAGS" >&6; }
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
7117 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
7118 if test "$alsa_prefix" != "" ; then
7119 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
7120 LDFLAGS="$LDFLAGS $ALSA_LIBS"
7123 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
7124 LIBS="$ALSA_LIBS $LIBS"
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7126 $as_echo "$ALSA_LIBS" >&6; }
7128 if test "x$enable_alsatest" = "xyes"; then
7129 min_alsa_version=1.0.27
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
7131 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
7133 alsa_min_major_version=`echo $min_alsa_version | \
7134 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7135 alsa_min_minor_version=`echo $min_alsa_version | \
7136 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7137 alsa_min_micro_version=`echo $min_alsa_version | \
7138 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7150 #include <alsa/asoundlib.h>
7156 /* ensure backward compatibility */
7157 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
7158 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
7160 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
7161 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
7163 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
7164 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
7167 # if(SND_LIB_MAJOR > $alsa_min_major_version)
7170 # if(SND_LIB_MAJOR < $alsa_min_major_version)
7174 # if(SND_LIB_MINOR > $alsa_min_minor_version)
7177 # if(SND_LIB_MINOR < $alsa_min_minor_version)
7181 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
7192 if ac_fn_c_try_compile "$LINENO"; then :
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
7194 $as_echo "found." >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
7197 $as_echo "not present." >&6; }
7198 as_fn_error $? "Sufficiently new version of libasound not found." "$LINENO" 5
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 ac_cpp='$CPP $CPPFLAGS'
7205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7211 if test "x$enable_alsatest" = "xyes"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
7213 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
7214 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
7215 $as_echo_n "(cached) " >&6
7217 ac_check_lib_save_LIBS=$LIBS
7218 LIBS="-lasound $LIBS"
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7222 /* Override any GCC internal prototype to avoid an error.
7223 Use char because int might match the return type of a GCC
7224 builtin and then its argument prototype would still apply. */
7228 char snd_ctl_open ();
7232 return snd_ctl_open ();
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 ac_cv_lib_asound_snd_ctl_open=yes
7240 ac_cv_lib_asound_snd_ctl_open=no
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 LIBS=$ac_check_lib_save_LIBS
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
7247 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
7248 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
7249 cat >>confdefs.h <<_ACEOF
7250 #define HAVE_LIBASOUND 1
7253 LIBS="-lasound $LIBS"
7256 as_fn_error $? "No linkable libasound was found." "$LINENO" 5
7263 if test "x$alsa_found" = "xyes" ; then
7265 LIBS=`echo $LIBS | sed 's/-lasound//g'`
7266 LIBS=`echo $LIBS | sed 's/ //'`
7267 LIBS="-lasound $LIBS"
7269 if test "x$alsa_found" = "xno" ; then
7271 CFLAGS="$alsa_save_CFLAGS"
7272 LDFLAGS="$alsa_save_LDFLAGS"
7273 LIBS="$alsa_save_LIBS"
7281 if test "x$enable_alsatest" = "xyes"; then
7282 ac_fn_c_check_func "$LINENO" "snd_ctl_elem_add_enumerated" "ac_cv_func_snd_ctl_elem_add_enumerated"
7283 if test "x$ac_cv_func_snd_ctl_elem_add_enumerated" = xyes; then :
7286 as_fn_error $? "No user enum control support in alsa-lib" "$LINENO" 5
7291 for ac_header in alsa/pcm.h
7293 ac_fn_c_check_header_compile "$LINENO" "alsa/pcm.h" "ac_cv_header_alsa_pcm_h" "#include <alsa/asoundlib.h>
7295 if test "x$ac_cv_header_alsa_pcm_h" = xyes; then :
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_ALSA_PCM_H 1
7306 for ac_header in alsa/mixer.h
7308 ac_fn_c_check_header_compile "$LINENO" "alsa/mixer.h" "ac_cv_header_alsa_mixer_h" "#include <alsa/asoundlib.h>
7310 if test "x$ac_cv_header_alsa_mixer_h" = xyes; then :
7311 cat >>confdefs.h <<_ACEOF
7312 #define HAVE_ALSA_MIXER_H 1
7321 for ac_header in alsa/rawmidi.h
7323 ac_fn_c_check_header_compile "$LINENO" "alsa/rawmidi.h" "ac_cv_header_alsa_rawmidi_h" "#include <alsa/asoundlib.h>
7325 if test "x$ac_cv_header_alsa_rawmidi_h" = xyes; then :
7326 cat >>confdefs.h <<_ACEOF
7327 #define HAVE_ALSA_RAWMIDI_H 1
7336 for ac_header in alsa/seq.h
7338 ac_fn_c_check_header_compile "$LINENO" "alsa/seq.h" "ac_cv_header_alsa_seq_h" "#include <alsa/asoundlib.h>
7340 if test "x$ac_cv_header_alsa_seq_h" = xyes; then :
7341 cat >>confdefs.h <<_ACEOF
7342 #define HAVE_ALSA_SEQ_H 1
7351 for ac_header in samplerate.h
7353 ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "#include <samplerate.h>
7355 if test "x$ac_cv_header_samplerate_h" = xyes; then :
7356 cat >>confdefs.h <<_ACEOF
7357 #define HAVE_SAMPLERATE_H 1
7359 have_samplerate="yes"
7361 have_samplerate="no"
7367 if test "$have_pcm" = "yes"; then
7375 if test "$have_mixer" = "yes"; then
7377 HAVE_MIXER_FALSE='#'
7383 if test "$have_rawmidi" = "yes"; then
7385 HAVE_RAWMIDI_FALSE='#'
7387 HAVE_RAWMIDI_TRUE='#'
7391 if test "$have_seq" = "yes"; then
7399 if test "$have_samplerate" = "yes"; then
7400 HAVE_SAMPLERATE_TRUE=
7401 HAVE_SAMPLERATE_FALSE='#'
7403 HAVE_SAMPLERATE_TRUE='#'
7404 HAVE_SAMPLERATE_FALSE=
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
7410 $as_echo_n "checking for librt... " >&6; }
7412 # Check whether --with-librt was given.
7413 if test "${with_librt+set}" = set; then :
7414 withval=$with_librt; have_librt="$withval"
7419 if test "$have_librt" = "yes"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
7421 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
7422 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
7423 $as_echo_n "(cached) " >&6
7425 ac_check_lib_save_LIBS=$LIBS
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7430 /* Override any GCC internal prototype to avoid an error.
7431 Use char because int might match the return type of a GCC
7432 builtin and then its argument prototype would still apply. */
7436 char clock_gettime ();
7440 return clock_gettime ();
7445 if ac_fn_c_try_link "$LINENO"; then :
7446 ac_cv_lib_rt_clock_gettime=yes
7448 ac_cv_lib_rt_clock_gettime=no
7450 rm -f core conftest.err conftest.$ac_objext \
7451 conftest$ac_exeext conftest.$ac_ext
7452 LIBS=$ac_check_lib_save_LIBS
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
7455 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
7456 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
7460 if test "$HAVE_LIBRT" = "yes" ; then
7463 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
7466 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7478 if test "$have_mixer" = "yes"; then
7479 # Check whether --enable-alsamixer was given.
7480 if test "${enable_alsamixer+set}" = set; then :
7481 enableval=$enable_alsamixer; case "${enableval}" in
7482 yes) alsamixer=true ;;
7483 no) alsamixer=false ;;
7484 *) as_fn_error $? "bad value ${enableval} for --enable-alsamixer" "$LINENO" 5 ;;
7491 if test x$alsamixer = xtrue; then
7500 # Check whether --enable-alsaconf was given.
7501 if test "${enable_alsaconf+set}" = set; then :
7502 enableval=$enable_alsaconf; case "${enableval}" in
7503 yes) alsaconf=true ;;
7504 no) alsaconf=false ;;
7505 *) as_fn_error $? "bad value ${enableval} for --enable-alsaconf" "$LINENO" 5 ;;
7511 if test x$alsaconf = xtrue; then
7520 # Check whether --enable-alsaloop was given.
7521 if test "${enable_alsaloop+set}" = set; then :
7522 enableval=$enable_alsaloop; case "${enableval}" in
7523 yes) alsaloop=true ;;
7524 no) alsaloop=false ;;
7525 *) as_fn_error $? "bad value ${enableval} for --enable-alsaloop" "$LINENO" 5 ;;
7531 if test x$alsaloop = xtrue; then
7541 # Check whether --enable-xmlto was given.
7542 if test "${enable_xmlto+set}" = set; then :
7543 enableval=$enable_xmlto; xmlto="$enableval"
7548 if test "$xmlto" = "yes"; then
7549 # Extract the first word of "xmlto", so it can be a program name with args.
7550 set dummy xmlto; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_xmlto+:} false; then :
7554 $as_echo_n "(cached) " >&6
7556 if test -n "$xmlto"; then
7557 ac_cv_prog_xmlto="$xmlto" # Let the user override the test.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_xmlto="yes"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 xmlto=$ac_cv_prog_xmlto
7577 if test -n "$xmlto"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto" >&5
7579 $as_echo "$xmlto" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7587 if test x"$xmlto" = xyes; then
7597 # Check whether --with-udev-rules-dir was given.
7598 if test "${with_udev_rules_dir+set}" = set; then :
7599 withval=$with_udev_rules_dir; udevrulesdir="$withval"
7601 udevdir=$($PKG_CONFIG udev --variable=udevdir)
7602 if test "x$udevdir" = "x"; then
7603 udevrulesdir="/lib/udev/rules.d"
7605 udevrulesdir="$udevdir/rules.d"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7612 $as_echo_n "checking for ANSI C header files... " >&6; }
7613 if ${ac_cv_header_stdc+:} false; then :
7614 $as_echo_n "(cached) " >&6
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7631 if ac_fn_c_try_compile "$LINENO"; then :
7632 ac_cv_header_stdc=yes
7634 ac_cv_header_stdc=no
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 if test $ac_cv_header_stdc = yes; then
7639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7646 $EGREP "memchr" >/dev/null 2>&1; then :
7649 ac_cv_header_stdc=no
7655 if test $ac_cv_header_stdc = yes; then
7656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7663 $EGREP "free" >/dev/null 2>&1; then :
7666 ac_cv_header_stdc=no
7672 if test $ac_cv_header_stdc = yes; then
7673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7674 if test "$cross_compiling" = yes; then :
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7681 #if ((' ' & 0x0FF) == 0x020)
7682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7685 # define ISLOWER(c) \
7686 (('a' <= (c) && (c) <= 'i') \
7687 || ('j' <= (c) && (c) <= 'r') \
7688 || ('s' <= (c) && (c) <= 'z'))
7689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7697 for (i = 0; i < 256; i++)
7698 if (XOR (islower (i), ISLOWER (i))
7699 || toupper (i) != TOUPPER (i))
7704 if ac_fn_c_try_run "$LINENO"; then :
7707 ac_cv_header_stdc=no
7709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7710 conftest.$ac_objext conftest.beam conftest.$ac_ext
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7716 $as_echo "$ac_cv_header_stdc" >&6; }
7717 if test $ac_cv_header_stdc = yes; then
7719 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7723 if test x$alsamixer = xtrue; then
7725 # Check whether --with-curses was given.
7726 if test "${with_curses+set}" = set; then :
7727 withval=$with_curses; curseslib="$withval"
7735 if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCURSESW" >&5
7739 $as_echo_n "checking for NCURSESW... " >&6; }
7741 if test -n "$NCURSESW_CFLAGS"; then
7742 pkg_cv_NCURSESW_CFLAGS="$NCURSESW_CFLAGS"
7743 elif test -n "$PKG_CONFIG"; then
7744 if test -n "$PKG_CONFIG" && \
7745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
7746 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
7748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7749 test $ac_status = 0; }; then
7750 pkg_cv_NCURSESW_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
7757 if test -n "$NCURSESW_LIBS"; then
7758 pkg_cv_NCURSESW_LIBS="$NCURSESW_LIBS"
7759 elif test -n "$PKG_CONFIG"; then
7760 if test -n "$PKG_CONFIG" && \
7761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
7762 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
7764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765 test $ac_status = 0; }; then
7766 pkg_cv_NCURSESW_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
7776 if test $pkg_failed = yes; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7780 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7781 _pkg_short_errors_supported=yes
7783 _pkg_short_errors_supported=no
7785 if test $_pkg_short_errors_supported = yes; then
7786 NCURSESW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ncursesw" 2>&1`
7788 NCURSESW_PKG_ERRORS=`$PKG_CONFIG --print-errors "ncursesw" 2>&1`
7790 # Put the nasty error message in config.log where it belongs
7791 echo "$NCURSESW_PKG_ERRORS" >&5
7794 # Extract the first word of "ncursesw5-config", so it can be a program name with args.
7795 set dummy ncursesw5-config; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_prog_ncursesw5_config+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 if test -n "$ncursesw5_config"; then
7802 ac_cv_prog_ncursesw5_config="$ncursesw5_config" # Let the user override the test.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_ncursesw5_config="yes"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 ncursesw5_config=$ac_cv_prog_ncursesw5_config
7822 if test -n "$ncursesw5_config"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncursesw5_config" >&5
7824 $as_echo "$ncursesw5_config" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7831 if test "$ncursesw5_config" = "yes"; then
7832 CURSESINC="<ncurses.h>"
7833 CURSESLIB=`ncursesw5-config --libs`
7834 CURSESLIBDIR=`ncursesw5-config --libdir`
7835 CURSES_CFLAGS=`ncursesw5-config --cflags`
7836 curseslib="ncursesw"
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7839 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7840 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7841 $as_echo_n "(cached) " >&6
7843 ac_check_lib_save_LIBS=$LIBS
7844 LIBS="-lncursesw $LIBS"
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7848 /* Override any GCC internal prototype to avoid an error.
7849 Use char because int might match the return type of a GCC
7850 builtin and then its argument prototype would still apply. */
7863 if ac_fn_c_try_link "$LINENO"; then :
7864 ac_cv_lib_ncursesw_initscr=yes
7866 ac_cv_lib_ncursesw_initscr=no
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 LIBS=$ac_check_lib_save_LIBS
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7873 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7874 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7875 CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"
7880 elif test $pkg_failed = untried; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7884 # Extract the first word of "ncursesw5-config", so it can be a program name with args.
7885 set dummy ncursesw5-config; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_prog_ncursesw5_config+:} false; then :
7889 $as_echo_n "(cached) " >&6
7891 if test -n "$ncursesw5_config"; then
7892 ac_cv_prog_ncursesw5_config="$ncursesw5_config" # Let the user override the test.
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901 ac_cv_prog_ncursesw5_config="yes"
7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 ncursesw5_config=$ac_cv_prog_ncursesw5_config
7912 if test -n "$ncursesw5_config"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncursesw5_config" >&5
7914 $as_echo "$ncursesw5_config" >&6; }
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7921 if test "$ncursesw5_config" = "yes"; then
7922 CURSESINC="<ncurses.h>"
7923 CURSESLIB=`ncursesw5-config --libs`
7924 CURSESLIBDIR=`ncursesw5-config --libdir`
7925 CURSES_CFLAGS=`ncursesw5-config --cflags`
7926 curseslib="ncursesw"
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7929 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7930 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 ac_check_lib_save_LIBS=$LIBS
7934 LIBS="-lncursesw $LIBS"
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7938 /* Override any GCC internal prototype to avoid an error.
7939 Use char because int might match the return type of a GCC
7940 builtin and then its argument prototype would still apply. */
7953 if ac_fn_c_try_link "$LINENO"; then :
7954 ac_cv_lib_ncursesw_initscr=yes
7956 ac_cv_lib_ncursesw_initscr=no
7958 rm -f core conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 LIBS=$ac_check_lib_save_LIBS
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7963 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7964 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7965 CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"
7971 NCURSESW_CFLAGS=$pkg_cv_NCURSESW_CFLAGS
7972 NCURSESW_LIBS=$pkg_cv_NCURSESW_LIBS
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7974 $as_echo "yes" >&6; }
7976 CURSESINC="<ncurses.h>"
7977 CURSESLIB="${NCURSESW_LIBS}"
7979 CURSES_CFLAGS="${NCURSESW_CFLAGS}"
7980 curseslib="ncursesw"
7983 if test -n "$CURSESINC"; then
7984 NCURSESLIBSUFFIX="w"
7988 if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCURSES" >&5
7992 $as_echo_n "checking for NCURSES... " >&6; }
7994 if test -n "$NCURSES_CFLAGS"; then
7995 pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
7996 elif test -n "$PKG_CONFIG"; then
7997 if test -n "$PKG_CONFIG" && \
7998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
7999 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
8001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8002 test $ac_status = 0; }; then
8003 pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
8010 if test -n "$NCURSES_LIBS"; then
8011 pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
8012 elif test -n "$PKG_CONFIG"; then
8013 if test -n "$PKG_CONFIG" && \
8014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
8015 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
8017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8018 test $ac_status = 0; }; then
8019 pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
8029 if test $pkg_failed = yes; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8034 _pkg_short_errors_supported=yes
8036 _pkg_short_errors_supported=no
8038 if test $_pkg_short_errors_supported = yes; then
8039 NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ncurses" 2>&1`
8041 NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors "ncurses" 2>&1`
8043 # Put the nasty error message in config.log where it belongs
8044 echo "$NCURSES_PKG_ERRORS" >&5
8047 # Extract the first word of "ncurses5-config", so it can be a program name with args.
8048 set dummy ncurses5-config; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_prog_ncurses5_config+:} false; then :
8052 $as_echo_n "(cached) " >&6
8054 if test -n "$ncurses5_config"; then
8055 ac_cv_prog_ncurses5_config="$ncurses5_config" # Let the user override the test.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_ncurses5_config="yes"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 ncurses5_config=$ac_cv_prog_ncurses5_config
8075 if test -n "$ncurses5_config"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncurses5_config" >&5
8077 $as_echo "$ncurses5_config" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8084 if test "$ncurses5_config" = "yes"; then
8085 CURSESINC="<ncurses.h>"
8086 CURSESLIB=`ncurses5-config --libs`
8087 CURSESLIBDIR=`ncurses5-config --libdir`
8088 CURSES_CFLAGS=`ncurses5-config --cflags`
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
8092 $as_echo_n "checking for initscr in -lncurses... " >&6; }
8093 if ${ac_cv_lib_ncurses_initscr+:} false; then :
8094 $as_echo_n "(cached) " >&6
8096 ac_check_lib_save_LIBS=$LIBS
8097 LIBS="-lncurses $LIBS"
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8101 /* Override any GCC internal prototype to avoid an error.
8102 Use char because int might match the return type of a GCC
8103 builtin and then its argument prototype would still apply. */
8116 if ac_fn_c_try_link "$LINENO"; then :
8117 ac_cv_lib_ncurses_initscr=yes
8119 ac_cv_lib_ncurses_initscr=no
8121 rm -f core conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
8123 LIBS=$ac_check_lib_save_LIBS
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
8126 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
8127 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
8128 CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"
8133 elif test $pkg_failed = untried; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8137 # Extract the first word of "ncurses5-config", so it can be a program name with args.
8138 set dummy ncurses5-config; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if ${ac_cv_prog_ncurses5_config+:} false; then :
8142 $as_echo_n "(cached) " >&6
8144 if test -n "$ncurses5_config"; then
8145 ac_cv_prog_ncurses5_config="$ncurses5_config" # Let the user override the test.
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154 ac_cv_prog_ncurses5_config="yes"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 ncurses5_config=$ac_cv_prog_ncurses5_config
8165 if test -n "$ncurses5_config"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncurses5_config" >&5
8167 $as_echo "$ncurses5_config" >&6; }
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8174 if test "$ncurses5_config" = "yes"; then
8175 CURSESINC="<ncurses.h>"
8176 CURSESLIB=`ncurses5-config --libs`
8177 CURSESLIBDIR=`ncurses5-config --libdir`
8178 CURSES_CFLAGS=`ncurses5-config --cflags`
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
8182 $as_echo_n "checking for initscr in -lncurses... " >&6; }
8183 if ${ac_cv_lib_ncurses_initscr+:} false; then :
8184 $as_echo_n "(cached) " >&6
8186 ac_check_lib_save_LIBS=$LIBS
8187 LIBS="-lncurses $LIBS"
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8191 /* Override any GCC internal prototype to avoid an error.
8192 Use char because int might match the return type of a GCC
8193 builtin and then its argument prototype would still apply. */
8206 if ac_fn_c_try_link "$LINENO"; then :
8207 ac_cv_lib_ncurses_initscr=yes
8209 ac_cv_lib_ncurses_initscr=no
8211 rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 LIBS=$ac_check_lib_save_LIBS
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
8216 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
8217 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
8218 CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"
8224 NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
8225 NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8227 $as_echo "yes" >&6; }
8229 CURSESINC="<ncurses.h>"
8230 CURSESLIB="${NCURSES_LIBS}"
8232 CURSES_CFLAGS="${NCURSES_CFLAGS}"
8237 if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
8239 $as_echo_n "checking for initscr in -lcurses... " >&6; }
8240 if ${ac_cv_lib_curses_initscr+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 ac_check_lib_save_LIBS=$LIBS
8244 LIBS="-lcurses $LIBS"
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8248 /* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 ac_cv_lib_curses_initscr=yes
8266 ac_cv_lib_curses_initscr=no
8268 rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 LIBS=$ac_check_lib_save_LIBS
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
8273 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
8274 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
8275 CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"
8279 if test -z "$CURSESINC"; then
8280 as_fn_error $? "this packages requires a curses library" "$LINENO" 5
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses library" >&5
8284 $as_echo_n "checking for curses library... " >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curseslib" >&5
8286 $as_echo "$curseslib" >&6; }
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses header name" >&5
8288 $as_echo_n "checking for curses header name... " >&6; }
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESINC" >&5
8290 $as_echo "$CURSESINC" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses compiler flags" >&5
8292 $as_echo_n "checking for curses compiler flags... " >&6; }
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_CFLAGS" >&5
8294 $as_echo "$CURSES_CFLAGS" >&6; }
8296 if test -n "$CURSESLIBDIR"; then
8297 if test "-L$CURSESLIBDIR " = "$(echo $CURSESLIB | cut -c-$((${#CURSESLIBDIR}+3)) )"; then
8298 CURSESLIB="$(echo $CURSESLIB | cut -c$((${#CURSESLIBDIR}+4))-)"
8302 saved_CFLAGS="$CFLAGS"
8303 saved_LDFLAGS="$LDFLAGS"
8305 CFLAGS="$CFLAGS $CURSES_CFLAGS"
8306 if test -n "$CURSESLIBDIR"; then
8307 LDFLAGS="$LDFLAGS -L$CURSESLIBDIR"
8309 LIBS="$CURSESLIB $LIBS"
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8322 if ac_fn_c_try_link "$LINENO"; then :
8323 HAVE_CURSES_ESCDELAY="yes"
8325 rm -f core conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext conftest.$ac_ext
8327 if test "$HAVE_CURSES_ESCDELAY" = "yes"; then
8329 $as_echo "#define HAVE_CURSES_ESCDELAY 1" >>confdefs.h
8333 if test "$USE_NLS" = "yes"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses NLS support" >&5
8335 $as_echo_n "checking for curses NLS support... " >&6; }
8336 if test "$curseslib" = "curses"; then
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8340 #define _XOPEN_SOURCE 1
8341 #define _XOPEN_SOURCE_EXTENDED 1
8349 setcchar(&wc, L"x", A_NORMAL, 0, 0);
8355 if ac_fn_c_try_link "$LINENO"; then :
8358 rm -f core conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_NLS" >&5
8362 $as_echo "$CURSES_NLS" >&6; }
8363 if test "$CURSES_NLS" = "yes"; then
8365 $as_echo "#define ENABLE_NLS_IN_CURSES 1" >>confdefs.h
8370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8372 inttypes.h stdint.h unistd.h
8374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8375 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8378 cat >>confdefs.h <<_ACEOF
8379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387 for ac_header in panel.h menu.h form.h
8389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8390 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8392 cat >>confdefs.h <<_ACEOF
8393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8397 as_fn_error $? "required curses helper header not found" "$LINENO" 5
8402 as_ac_Lib=`$as_echo "ac_cv_lib_panel$NCURSESLIBSUFFIX''_new_panel" | $as_tr_sh`
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_panel in -lpanel$NCURSESLIBSUFFIX" >&5
8404 $as_echo_n "checking for new_panel in -lpanel$NCURSESLIBSUFFIX... " >&6; }
8405 if eval \${$as_ac_Lib+:} false; then :
8406 $as_echo_n "(cached) " >&6
8408 ac_check_lib_save_LIBS=$LIBS
8409 LIBS="-lpanel$NCURSESLIBSUFFIX $LIBS"
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8413 /* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8423 return new_panel ();
8428 if ac_fn_c_try_link "$LINENO"; then :
8429 eval "$as_ac_Lib=yes"
8431 eval "$as_ac_Lib=no"
8433 rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435 LIBS=$ac_check_lib_save_LIBS
8437 eval ac_res=\$$as_ac_Lib
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8439 $as_echo "$ac_res" >&6; }
8440 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8441 CURSESLIB="-lpanel$NCURSESLIBSUFFIX $CURSESLIB"
8443 as_fn_error $? "panel$NCURSESLIBSUFFIX library not found" "$LINENO" 5
8446 as_ac_Lib=`$as_echo "ac_cv_lib_menu$NCURSESLIBSUFFIX''_new_menu" | $as_tr_sh`
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_menu in -lmenu$NCURSESLIBSUFFIX" >&5
8448 $as_echo_n "checking for new_menu in -lmenu$NCURSESLIBSUFFIX... " >&6; }
8449 if eval \${$as_ac_Lib+:} false; then :
8450 $as_echo_n "(cached) " >&6
8452 ac_check_lib_save_LIBS=$LIBS
8453 LIBS="-lmenu$NCURSESLIBSUFFIX $LIBS"
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8457 /* Override any GCC internal prototype to avoid an error.
8458 Use char because int might match the return type of a GCC
8459 builtin and then its argument prototype would still apply. */
8472 if ac_fn_c_try_link "$LINENO"; then :
8473 eval "$as_ac_Lib=yes"
8475 eval "$as_ac_Lib=no"
8477 rm -f core conftest.err conftest.$ac_objext \
8478 conftest$ac_exeext conftest.$ac_ext
8479 LIBS=$ac_check_lib_save_LIBS
8481 eval ac_res=\$$as_ac_Lib
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8483 $as_echo "$ac_res" >&6; }
8484 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8485 CURSESLIB="-lmenu$NCURSESLIBSUFFIX $CURSESLIB"
8487 as_fn_error $? "menu$NCURSESLIBSUFFIX library not found" "$LINENO" 5
8490 as_ac_Lib=`$as_echo "ac_cv_lib_form$NCURSESLIBSUFFIX''_new_form" | $as_tr_sh`
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_form in -lform$NCURSESLIBSUFFIX" >&5
8492 $as_echo_n "checking for new_form in -lform$NCURSESLIBSUFFIX... " >&6; }
8493 if eval \${$as_ac_Lib+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-lform$NCURSESLIBSUFFIX $LIBS"
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8501 /* Override any GCC internal prototype to avoid an error.
8502 Use char because int might match the return type of a GCC
8503 builtin and then its argument prototype would still apply. */
8516 if ac_fn_c_try_link "$LINENO"; then :
8517 eval "$as_ac_Lib=yes"
8519 eval "$as_ac_Lib=no"
8521 rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 LIBS=$ac_check_lib_save_LIBS
8525 eval ac_res=\$$as_ac_Lib
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8527 $as_echo "$ac_res" >&6; }
8528 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8529 CURSESLIB="-lform$NCURSESLIBSUFFIX $CURSESLIB"
8531 as_fn_error $? "form$NCURSESLIBSUFFIX library not found" "$LINENO" 5
8535 CFLAGS="$saved_CFLAGS"
8536 LDFLAGS="$saved_LDFLAGS"
8539 if test -n "$CURSESLIBDIR"; then
8540 CURSESLIB="-L$CURSESLIBDIR $CURSESLIB"
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses linker flags" >&5
8544 $as_echo_n "checking for curses linker flags... " >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESLIB" >&5
8546 $as_echo "$CURSESLIB" >&6; }
8553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8558 *) dir="$prefix/share"
8561 soundsdir="$dir/sounds/alsa"
8563 cat >>confdefs.h <<_ACEOF
8564 #define SOUNDSDIR "$soundsdir"
8568 mydatadir="$dir/alsa"
8570 cat >>confdefs.h <<_ACEOF
8571 #define DATADIR "$mydatadir"
8577 # Check whether --with-testsound was given.
8578 if test "${with_testsound+set}" = set; then :
8579 withval=$with_testsound; TESTSOUND="$withval"
8581 TESTSOUND="$dir/test.wav"
8586 ac_config_headers="$ac_config_headers include/aconfig.h"
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8590 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8591 if ${ac_cv_c_const+:} false; then :
8592 $as_echo_n "(cached) " >&6
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8602 /* Ultrix mips cc rejects this sort of thing. */
8603 typedef int charset[2];
8604 const charset cs = { 0, 0 };
8605 /* SunOS 4.1.1 cc rejects this. */
8606 char const *const *pcpcc;
8608 /* NEC SVR4.0.2 mips cc rejects this. */
8609 struct point {int x, y;};
8610 static struct point const zero = {0,0};
8611 /* AIX XL C 1.02.0.0 rejects this.
8612 It does not let you subtract one const X* pointer from another in
8613 an arm of an if-expression whose if-part is not a constant
8615 const char *g = "string";
8616 pcpcc = &g + (g ? g-g : 0);
8617 /* HPUX 7.0 cc rejects these. */
8619 ppc = (char**) pcpcc;
8620 pcpcc = (char const *const *) ppc;
8621 { /* SCO 3.2v4 cc rejects this sort of thing. */
8624 char const *s = 0 ? (char *) 0 : (char const *) 0;
8629 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8631 const int *foo = &x[0];
8634 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8635 typedef const int *iptr;
8639 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8640 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8641 struct s { int j; const int *ap[3]; } bx;
8642 struct s *b = &bx; b->j = 5;
8644 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8648 return !cs[0] && !zero.x;
8655 if ac_fn_c_try_compile "$LINENO"; then :
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8663 $as_echo "$ac_cv_c_const" >&6; }
8664 if test $ac_cv_c_const = no; then
8666 $as_echo "#define const /**/" >>confdefs.h
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8671 $as_echo_n "checking for inline... " >&6; }
8672 if ${ac_cv_c_inline+:} false; then :
8673 $as_echo_n "(cached) " >&6
8676 for ac_kw in inline __inline__ __inline; do
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8681 static $ac_kw foo_t static_foo () {return 0; }
8682 $ac_kw foo_t foo () {return 0; }
8686 if ac_fn_c_try_compile "$LINENO"; then :
8687 ac_cv_c_inline=$ac_kw
8689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 test "$ac_cv_c_inline" != no && break
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8695 $as_echo "$ac_cv_c_inline" >&6; }
8697 case $ac_cv_c_inline in
8700 case $ac_cv_c_inline in
8702 *) ac_val=$ac_cv_c_inline;;
8704 cat >>confdefs.h <<_ACEOF
8706 #define inline $ac_val
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8713 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8714 if ${ac_cv_header_time+:} false; then :
8715 $as_echo_n "(cached) " >&6
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 #include <sys/types.h>
8720 #include <sys/time.h>
8726 if ((struct tm *) 0)
8732 if ac_fn_c_try_compile "$LINENO"; then :
8733 ac_cv_header_time=yes
8735 ac_cv_header_time=no
8737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8740 $as_echo "$ac_cv_header_time" >&6; }
8741 if test $ac_cv_header_time = yes; then
8743 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8748 if test $ac_cv_c_compiler_gnu = yes; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
8750 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8751 if ${ac_cv_prog_gcc_traditional+:} false; then :
8752 $as_echo_n "(cached) " >&6
8754 ac_pattern="Autoconf.*'x'"
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8761 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
8762 ac_cv_prog_gcc_traditional=yes
8764 ac_cv_prog_gcc_traditional=no
8769 if test $ac_cv_prog_gcc_traditional = no; then
8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8776 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
8777 ac_cv_prog_gcc_traditional=yes
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
8784 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8785 if test $ac_cv_prog_gcc_traditional = yes; then
8786 CC="$CC -traditional"
8791 # Check whether --enable-largefile was given.
8792 if test "${enable_largefile+set}" = set; then :
8793 enableval=$enable_largefile;
8796 if test "$enable_largefile" != no; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8799 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8800 if ${ac_cv_sys_largefile_CC+:} false; then :
8801 $as_echo_n "(cached) " >&6
8803 ac_cv_sys_largefile_CC=no
8804 if test "$GCC" != yes; then
8807 # IRIX 6.2 and later do not support large files by default,
8808 # so use the C compiler's -n32 option if that helps.
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 #include <sys/types.h>
8812 /* Check that off_t can represent 2**63 - 1 correctly.
8813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8814 since some C++ compilers masquerading as C compilers
8815 incorrectly reject 9223372036854775807. */
8816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8818 && LARGE_OFF_T % 2147483647 == 1)
8828 if ac_fn_c_try_compile "$LINENO"; then :
8831 rm -f core conftest.err conftest.$ac_objext
8833 if ac_fn_c_try_compile "$LINENO"; then :
8834 ac_cv_sys_largefile_CC=' -n32'; break
8836 rm -f core conftest.err conftest.$ac_objext
8840 rm -f conftest.$ac_ext
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8844 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8845 if test "$ac_cv_sys_largefile_CC" != no; then
8846 CC=$CC$ac_cv_sys_largefile_CC
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8850 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8851 if ${ac_cv_sys_file_offset_bits+:} false; then :
8852 $as_echo_n "(cached) " >&6
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 #include <sys/types.h>
8858 /* Check that off_t can represent 2**63 - 1 correctly.
8859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8860 since some C++ compilers masquerading as C compilers
8861 incorrectly reject 9223372036854775807. */
8862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8864 && LARGE_OFF_T % 2147483647 == 1)
8874 if ac_fn_c_try_compile "$LINENO"; then :
8875 ac_cv_sys_file_offset_bits=no; break
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880 #define _FILE_OFFSET_BITS 64
8881 #include <sys/types.h>
8882 /* Check that off_t can represent 2**63 - 1 correctly.
8883 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8884 since some C++ compilers masquerading as C compilers
8885 incorrectly reject 9223372036854775807. */
8886 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8888 && LARGE_OFF_T % 2147483647 == 1)
8898 if ac_fn_c_try_compile "$LINENO"; then :
8899 ac_cv_sys_file_offset_bits=64; break
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 ac_cv_sys_file_offset_bits=unknown
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8907 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8908 case $ac_cv_sys_file_offset_bits in #(
8911 cat >>confdefs.h <<_ACEOF
8912 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8917 if test $ac_cv_sys_file_offset_bits = unknown; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8919 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8920 if ${ac_cv_sys_large_files+:} false; then :
8921 $as_echo_n "(cached) " >&6
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #include <sys/types.h>
8927 /* Check that off_t can represent 2**63 - 1 correctly.
8928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8929 since some C++ compilers masquerading as C compilers
8930 incorrectly reject 9223372036854775807. */
8931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8933 && LARGE_OFF_T % 2147483647 == 1)
8943 if ac_fn_c_try_compile "$LINENO"; then :
8944 ac_cv_sys_large_files=no; break
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 #define _LARGE_FILES 1
8950 #include <sys/types.h>
8951 /* Check that off_t can represent 2**63 - 1 correctly.
8952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8953 since some C++ compilers masquerading as C compilers
8954 incorrectly reject 9223372036854775807. */
8955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8957 && LARGE_OFF_T % 2147483647 == 1)
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968 ac_cv_sys_large_files=1; break
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 ac_cv_sys_large_files=unknown
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8976 $as_echo "$ac_cv_sys_large_files" >&6; }
8977 case $ac_cv_sys_large_files in #(
8980 cat >>confdefs.h <<_ACEOF
8981 #define _LARGE_FILES $ac_cv_sys_large_files
8993 SND_UTIL_VERSION=$VERSION
8994 echo $VERSION > $srcdir/version
8996 cat >>confdefs.h <<_ACEOF
8997 #define VERSION "$SND_UTIL_VERSION"
9001 SND_UTIL_MAJOR=`echo $VERSION | cut -d . -f 1`
9003 SND_UTIL_MINOR=`echo $VERSION | cut -d . -f 2`
9005 SND_UTIL_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/pre[0-9]*//g'`
9012 # Check whether --with-systemdsystemunitdir was given.
9013 if test "${with_systemdsystemunitdir+set}" = set; then :
9014 withval=$with_systemdsystemunitdir;
9016 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
9019 if test "x$with_systemdsystemunitdir" != xno; then
9020 systemdsystemunitdir=$with_systemdsystemunitdir
9023 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
9025 HAVE_SYSTEMD_FALSE='#'
9027 HAVE_SYSTEMD_TRUE='#'
9033 # Check whether --with-asound-state-dir was given.
9034 if test "${with_asound_state_dir+set}" = set; then :
9035 withval=$with_asound_state_dir; ASOUND_STATE_DIR="$withval"
9037 ASOUND_STATE_DIR="/var/lib/alsa"
9043 # Check whether --with-alsactl-lock-dir was given.
9044 if test "${with_alsactl_lock_dir+set}" = set; then :
9045 withval=$with_alsactl_lock_dir; ASOUND_LOCK_DIR="$withval"
9047 ASOUND_LOCK_DIR="/var/lock"
9053 # Check whether --with-alsactl-pidfile-dir was given.
9054 if test "${with_alsactl_pidfile_dir+set}" = set; then :
9055 withval=$with_alsactl_pidfile_dir; ALSACTL_PIDFILE_DIR="$withval"
9057 ALSACTL_PIDFILE_DIR="/var/run"
9063 # Check whether --with-alsactl-daemonswitch was given.
9064 if test "${with_alsactl_daemonswitch+set}" = set; then :
9065 withval=$with_alsactl_daemonswitch; ALSACTL_DAEMONSWITCH="$withval"
9067 ALSACTL_DAEMONSWITCH="/etc/alsa/state-daemon.conf"
9072 ac_config_files="$ac_config_files Makefile alsactl/Makefile alsactl/init/Makefile alsamixer/Makefile amidi/Makefile amixer/Makefile m4/Makefile po/Makefile.in alsaconf/alsaconf alsaconf/Makefile alsaconf/po/Makefile alsaucm/Makefile aplay/Makefile include/Makefile iecset/Makefile utils/Makefile utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile speaker-test/Makefile speaker-test/samples/Makefile alsaloop/Makefile"
9074 cat >confcache <<\_ACEOF
9075 # This file is a shell script that caches the results of configure
9076 # tests run on this system so they can be shared between configure
9077 # scripts and configure runs, see configure's option --config-cache.
9078 # It is not useful on other systems. If it contains results you don't
9079 # want to keep, you may remove or edit it.
9081 # config.status only pays attention to the cache file if you give it
9082 # the --recheck option to rerun configure.
9084 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9085 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9090 # The following way of writing the cache mishandles newlines in values,
9091 # but we know of no workaround that is simple, portable, and efficient.
9092 # So, we kill variables containing newlines.
9093 # Ultrix sh set writes to stderr and can't be redirected directly,
9094 # and sets the high bit in the cache file unless we assign to the vars.
9096 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9097 eval ac_val=\$$ac_var
9101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9105 _ | IFS | as_nl) ;; #(
9106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9107 *) { eval $ac_var=; unset $ac_var;} ;;
9113 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9114 *${as_nl}ac_space=\ *)
9115 # `set' does not quote correctly, so add quotes: double-quote
9116 # substitution turns \\\\ into \\, and sed turns \\ into \.
9119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9122 # `set' quotes correctly as required by POSIX, so do not add quotes.
9123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9132 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9134 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9136 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9137 if test -w "$cache_file"; then
9138 if test "x$cache_file" != "x/dev/null"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9140 $as_echo "$as_me: updating cache $cache_file" >&6;}
9141 if test ! -f "$cache_file" || test -h "$cache_file"; then
9142 cat confcache >"$cache_file"
9144 case $cache_file in #(
9146 mv -f confcache "$cache_file"$$ &&
9147 mv -f "$cache_file"$$ "$cache_file" ;; #(
9149 mv -f confcache "$cache_file" ;;
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9155 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9161 # Let make expand exec_prefix.
9162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9164 DEFS=-DHAVE_CONFIG_H
9169 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9170 # 1. Remove the extension, and $U if already installed.
9171 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9172 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9173 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9174 # will be set to the directory where LIBOBJS objects are built.
9175 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9176 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9180 LTLIBOBJS=$ac_ltlibobjs
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9184 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9185 if test -n "$am_sleep_pid"; then
9186 # Hide warnings about reused PIDs.
9187 wait $am_sleep_pid 2>/dev/null
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9190 $as_echo "done" >&6; }
9191 if test -n "$EXEEXT"; then
9193 am__EXEEXT_FALSE='#'
9199 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9200 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9203 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9204 as_fn_error $? "conditional \"AMDEP\" was never defined.
9205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9207 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9208 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9211 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9212 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9215 if test -z "${HAVE_PCM_TRUE}" && test -z "${HAVE_PCM_FALSE}"; then
9216 as_fn_error $? "conditional \"HAVE_PCM\" was never defined.
9217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9219 if test -z "${HAVE_MIXER_TRUE}" && test -z "${HAVE_MIXER_FALSE}"; then
9220 as_fn_error $? "conditional \"HAVE_MIXER\" was never defined.
9221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9223 if test -z "${HAVE_RAWMIDI_TRUE}" && test -z "${HAVE_RAWMIDI_FALSE}"; then
9224 as_fn_error $? "conditional \"HAVE_RAWMIDI\" was never defined.
9225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9227 if test -z "${HAVE_SEQ_TRUE}" && test -z "${HAVE_SEQ_FALSE}"; then
9228 as_fn_error $? "conditional \"HAVE_SEQ\" was never defined.
9229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9231 if test -z "${HAVE_SAMPLERATE_TRUE}" && test -z "${HAVE_SAMPLERATE_FALSE}"; then
9232 as_fn_error $? "conditional \"HAVE_SAMPLERATE\" was never defined.
9233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9235 if test -z "${ALSAMIXER_TRUE}" && test -z "${ALSAMIXER_FALSE}"; then
9236 as_fn_error $? "conditional \"ALSAMIXER\" was never defined.
9237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9239 if test -z "${ALSACONF_TRUE}" && test -z "${ALSACONF_FALSE}"; then
9240 as_fn_error $? "conditional \"ALSACONF\" was never defined.
9241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9243 if test -z "${ALSALOOP_TRUE}" && test -z "${ALSALOOP_FALSE}"; then
9244 as_fn_error $? "conditional \"ALSALOOP\" was never defined.
9245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9247 if test -z "${USE_XMLTO_TRUE}" && test -z "${USE_XMLTO_FALSE}"; then
9248 as_fn_error $? "conditional \"USE_XMLTO\" was never defined.
9249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9251 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
9252 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
9253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9256 : "${CONFIG_STATUS=./config.status}"
9258 ac_clean_files_save=$ac_clean_files
9259 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9261 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9263 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9265 # Generated by $as_me.
9266 # Run this file to recreate the current configuration.
9267 # Compiler output produced by configure, useful for debugging
9268 # configure, is in config.log if it exists.
9274 SHELL=\${CONFIG_SHELL-$SHELL}
9277 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9278 ## -------------------- ##
9279 ## M4sh Initialization. ##
9280 ## -------------------- ##
9282 # Be more Bourne compatible
9283 DUALCASE=1; export DUALCASE # for MKS sh
9284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9288 # is contrary to our usage. Disable this feature.
9289 alias -g '${1+"$@"}'='"$@"'
9290 setopt NO_GLOB_SUBST
9292 case `(set -o) 2>/dev/null` in #(
9304 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9305 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9308 # Prefer a ksh shell builtin over an external printf program on Solaris,
9309 # but without wasting forks for bash or zsh.
9310 if test -z "$BASH_VERSION$ZSH_VERSION" \
9311 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9312 as_echo='print -r --'
9313 as_echo_n='print -rn --'
9314 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9315 as_echo='printf %s\n'
9316 as_echo_n='printf %s'
9318 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9319 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9320 as_echo_n='/usr/ucb/echo -n'
9322 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9323 as_echo_n_body='eval
9327 expr "X$arg" : "X\\(.*\\)$as_nl";
9328 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9330 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9332 export as_echo_n_body
9333 as_echo_n='sh -c $as_echo_n_body as_echo'
9336 as_echo='sh -c $as_echo_body as_echo'
9339 # The user is always right.
9340 if test "${PATH_SEPARATOR+set}" != set; then
9342 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9343 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9350 # We need space, tab and new line, in precisely that order. Quoting is
9351 # there to prevent editors from complaining about space-tab.
9352 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9353 # splitting by setting IFS to empty value.)
9356 # Find who we are. Look in the path if we contain no directory separator.
9359 *[\\/]* ) as_myself=$0 ;;
9360 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364 test -z "$as_dir" && as_dir=.
9365 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9371 # We did not find ourselves, most probably we were run as `sh COMMAND'
9372 # in which case we are not to be found in the path.
9373 if test "x$as_myself" = x; then
9376 if test ! -f "$as_myself"; then
9377 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9381 # Unset variables that we do not need and which cause bugs (e.g. in
9382 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9383 # suppresses any "Segmentation fault" message there. '((' could
9384 # trigger a bug in pdksh 5.2.14.
9385 for as_var in BASH_ENV ENV MAIL MAILPATH
9386 do eval test x\${$as_var+set} = xset \
9387 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9400 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9404 # ----------------------------------------
9405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9407 # script with STATUS, using 1 if that was 0.
9410 as_status=$1; test $as_status -eq 0 && as_status=1
9412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9415 $as_echo "$as_me: error: $2" >&2
9416 as_fn_exit $as_status
9420 # as_fn_set_status STATUS
9421 # -----------------------
9422 # Set $? to STATUS, without forking.
9426 } # as_fn_set_status
9430 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9440 # Portably unset VAR.
9443 { eval $1=; unset $1;}
9445 as_unset=as_fn_unset
9446 # as_fn_append VAR VALUE
9447 # ----------------------
9448 # Append the text in VALUE to the end of the definition contained in VAR. Take
9449 # advantage of any shell optimizations that allow amortized linear growth over
9450 # repeated appends, instead of the typical quadratic growth present in naive
9452 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9453 eval 'as_fn_append ()
9464 # as_fn_arith ARG...
9465 # ------------------
9466 # Perform arithmetic evaluation on the ARGs, and store the result in the
9467 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9468 # must be portable across $(()) and expr.
9469 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9470 eval 'as_fn_arith ()
9477 as_val=`expr "$@" || test $? -eq 1`
9482 if expr a : '\(a\)' >/dev/null 2>&1 &&
9483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9489 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9490 as_basename=basename
9495 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9501 as_me=`$as_basename -- "$0" ||
9502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9503 X"$0" : 'X\(//\)$' \| \
9504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9506 sed '/^.*\/\([^/][^/]*\)\/*$/{
9520 # Avoid depending upon Character Ranges.
9521 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9522 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9523 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9524 as_cr_digits='0123456789'
9525 as_cr_alnum=$as_cr_Letters$as_cr_digits
9527 ECHO_C= ECHO_N= ECHO_T=
9528 case `echo -n x` in #(((((
9530 case `echo 'xy\c'` in
9531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9540 rm -f conf$$ conf$$.exe conf$$.file
9541 if test -d conf$$.dir; then
9542 rm -f conf$$.dir/conf$$.file
9545 mkdir conf$$.dir 2>/dev/null
9547 if (echo >conf$$.file) 2>/dev/null; then
9548 if ln -s conf$$.file conf$$ 2>/dev/null; then
9550 # ... but there are two gotchas:
9551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9553 # In both cases, we have to default to `cp -pR'.
9554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9556 elif ln conf$$.file conf$$ 2>/dev/null; then
9564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9565 rmdir conf$$.dir 2>/dev/null
9570 # Create "$as_dir" as a directory, including parents if necessary.
9575 -*) as_dir=./$as_dir;;
9577 test -d "$as_dir" || eval $as_mkdir_p || {
9581 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9582 *) as_qdir=$as_dir;;
9584 as_dirs="'$as_qdir' $as_dirs"
9585 as_dir=`$as_dirname -- "$as_dir" ||
9586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9587 X"$as_dir" : 'X\(//\)[^/]' \| \
9588 X"$as_dir" : 'X\(//\)$' \| \
9589 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9590 $as_echo X"$as_dir" |
9591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9608 test -d "$as_dir" && break
9610 test -z "$as_dirs" || eval "mkdir $as_dirs"
9611 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9615 if mkdir -p . 2>/dev/null; then
9616 as_mkdir_p='mkdir -p "$as_dir"'
9618 test -d ./-p && rmdir ./-p
9623 # as_fn_executable_p FILE
9624 # -----------------------
9625 # Test if FILE is an executable regular file.
9626 as_fn_executable_p ()
9628 test -f "$1" && test -x "$1"
9629 } # as_fn_executable_p
9631 as_executable_p=as_fn_executable_p
9633 # Sed expression to map a string onto a valid CPP name.
9634 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9636 # Sed expression to map a string onto a valid variable name.
9637 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9641 ## ----------------------------------- ##
9642 ## Main body of $CONFIG_STATUS script. ##
9643 ## ----------------------------------- ##
9645 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9648 # Save the log message, to keep $0 and so on meaningful, and to
9649 # report actual input values of CONFIG_FILES etc. instead of their
9650 # values after options handling.
9652 This file was extended by alsa-utils $as_me 1.0.28, which was
9653 generated by GNU Autoconf 2.69. Invocation command line was
9655 CONFIG_FILES = $CONFIG_FILES
9656 CONFIG_HEADERS = $CONFIG_HEADERS
9657 CONFIG_LINKS = $CONFIG_LINKS
9658 CONFIG_COMMANDS = $CONFIG_COMMANDS
9661 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9666 case $ac_config_files in *"
9667 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9670 case $ac_config_headers in *"
9671 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9676 # Files that config.status was made for.
9677 config_files="$ac_config_files"
9678 config_headers="$ac_config_headers"
9679 config_commands="$ac_config_commands"
9683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9685 \`$as_me' instantiates files and other configuration actions
9686 from templates according to the current configuration. Unless the files
9687 and actions are specified as TAGs, all are instantiated by default.
9689 Usage: $0 [OPTION]... [TAG]...
9691 -h, --help print this help, then exit
9692 -V, --version print version number and configuration settings, then exit
9693 --config print configuration, then exit
9694 -q, --quiet, --silent
9695 do not print progress messages
9696 -d, --debug don't remove temporary files
9697 --recheck update $as_me by reconfiguring in the same conditions
9698 --file=FILE[:TEMPLATE]
9699 instantiate the configuration file FILE
9700 --header=FILE[:TEMPLATE]
9701 instantiate the configuration header FILE
9703 Configuration files:
9706 Configuration headers:
9709 Configuration commands:
9712 Report bugs to the package provider."
9715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9716 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9718 alsa-utils config.status 1.0.28
9719 configured by $0, generated by GNU Autoconf 2.69,
9720 with options \\"\$ac_cs_config\\"
9722 Copyright (C) 2012 Free Software Foundation, Inc.
9723 This config.status script is free software; the Free Software Foundation
9724 gives unlimited permission to copy, distribute and modify it."
9731 test -n "\$AWK" || AWK=awk
9734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9735 # The default lists apply if the user does not specify any file.
9741 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9742 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9746 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9758 # Handling of the options.
9759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9761 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9762 $as_echo "$ac_cs_version"; exit ;;
9763 --config | --confi | --conf | --con | --co | --c )
9764 $as_echo "$ac_cs_config"; exit ;;
9765 --debug | --debu | --deb | --de | --d | -d )
9767 --file | --fil | --fi | --f )
9770 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9771 '') as_fn_error $? "missing file argument" ;;
9773 as_fn_append CONFIG_FILES " '$ac_optarg'"
9774 ac_need_defaults=false;;
9775 --header | --heade | --head | --hea )
9778 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9780 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9781 ac_need_defaults=false;;
9783 # Conflict between --help and --header
9784 as_fn_error $? "ambiguous option: \`$1'
9785 Try \`$0 --help' for more information.";;
9786 --help | --hel | -h )
9787 $as_echo "$ac_cs_usage"; exit ;;
9788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9789 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9793 -*) as_fn_error $? "unrecognized option: \`$1'
9794 Try \`$0 --help' for more information." ;;
9796 *) as_fn_append ac_config_targets " $1"
9797 ac_need_defaults=false ;;
9803 ac_configure_extra_args=
9805 if $ac_cs_silent; then
9807 ac_configure_extra_args="$ac_configure_extra_args --silent"
9811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9812 if \$ac_cs_recheck; then
9813 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9815 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9816 CONFIG_SHELL='$SHELL'
9822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9826 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9827 ## Running $as_me. ##
9833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9837 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9838 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9839 # from automake < 1.5.
9840 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9841 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9842 LINGUAS="${LINGUAS-%UNSET%}"
9844 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9850 # Handling of arguments.
9851 for ac_config_target in $ac_config_targets
9853 case $ac_config_target in
9854 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9856 "include/aconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/aconfig.h" ;;
9857 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9858 "alsactl/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/Makefile" ;;
9859 "alsactl/init/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/init/Makefile" ;;
9860 "alsamixer/Makefile") CONFIG_FILES="$CONFIG_FILES alsamixer/Makefile" ;;
9861 "amidi/Makefile") CONFIG_FILES="$CONFIG_FILES amidi/Makefile" ;;
9862 "amixer/Makefile") CONFIG_FILES="$CONFIG_FILES amixer/Makefile" ;;
9863 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9864 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9865 "alsaconf/alsaconf") CONFIG_FILES="$CONFIG_FILES alsaconf/alsaconf" ;;
9866 "alsaconf/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/Makefile" ;;
9867 "alsaconf/po/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/po/Makefile" ;;
9868 "alsaucm/Makefile") CONFIG_FILES="$CONFIG_FILES alsaucm/Makefile" ;;
9869 "aplay/Makefile") CONFIG_FILES="$CONFIG_FILES aplay/Makefile" ;;
9870 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9871 "iecset/Makefile") CONFIG_FILES="$CONFIG_FILES iecset/Makefile" ;;
9872 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
9873 "utils/alsa-utils.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-utils.spec" ;;
9874 "seq/Makefile") CONFIG_FILES="$CONFIG_FILES seq/Makefile" ;;
9875 "seq/aconnect/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aconnect/Makefile" ;;
9876 "seq/aplaymidi/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aplaymidi/Makefile" ;;
9877 "seq/aseqdump/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqdump/Makefile" ;;
9878 "seq/aseqnet/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqnet/Makefile" ;;
9879 "speaker-test/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/Makefile" ;;
9880 "speaker-test/samples/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/samples/Makefile" ;;
9881 "alsaloop/Makefile") CONFIG_FILES="$CONFIG_FILES alsaloop/Makefile" ;;
9883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9888 # If the user did not use the arguments to specify the items to instantiate,
9889 # then the envvar interface is used. Set only those that are not.
9890 # We use the long form for the default assignment because of an extremely
9891 # bizarre bug on SunOS 4.1.3.
9892 if $ac_need_defaults; then
9893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9898 # Have a temporary directory for convenience. Make it in the build tree
9899 # simply because there is no reason against having it here, and in addition,
9900 # creating and moving files from /tmp can sometimes cause problems.
9901 # Hook for its removal unless debugging.
9902 # Note that there is a small window in which the directory will not be cleaned:
9903 # after its creation but before its name has been assigned to `$tmp'.
9907 trap 'exit_status=$?
9909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9911 trap 'as_fn_exit 1' 1 2 13 15
9913 # Create a (secure) tmp directory for tmp files.
9916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9920 tmp=./conf$$-$RANDOM
9921 (umask 077 && mkdir "$tmp")
9922 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9925 # Set up the scripts for CONFIG_FILES section.
9926 # No need to generate them if there are no CONFIG_FILES.
9927 # This happens for instance with `./config.status config.h'.
9928 if test -n "$CONFIG_FILES"; then
9931 ac_cr=`echo X | tr X '\015'`
9932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9933 # But we know of no other shell where ac_cr would be empty at this
9934 # point, so we can use a bashism as a fallback.
9935 if test "x$ac_cr" = x; then
9936 eval ac_cr=\$\'\\r\'
9938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9945 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9950 echo "cat >conf$$subs.awk <<_ACEOF" &&
9951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9957 for ac_last_try in false false false false false :; do
9958 . ./conf$$subs.sh ||
9959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9962 if test $ac_delim_n = $ac_delim_num; then
9964 elif $ac_last_try; then
9965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9973 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9977 s/^/S["/; s/!.*/"]=/
9987 s/\(.\{148\}\)..*/\1/
9989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10001 s/\(.\{148\}\)..*/\1/
10003 s/["\\]/\\&/g; s/^/"/; s/$/"/
10007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10012 ' <conf$$subs.awk | sed '
10017 ' >>$CONFIG_STATUS || ac_write_fail=1
10018 rm -f conf$$subs.awk
10019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10021 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10022 for (key in S) S_is_set[key] = 1
10028 nfields = split(line, field, "@")
10030 len = length(field[1])
10031 for (i = 2; i < nfields; i++) {
10033 keylen = length(key)
10034 if (S_is_set[key]) {
10036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10037 len += length(value) + length(field[++i])
10048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10053 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10054 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10057 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10058 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10059 # trailing colons and then remove the whole line if VPATH becomes empty
10060 # (actually we leave an empty line to preserve line numbers).
10061 if test "x$srcdir" = x.; then
10062 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10081 fi # test -n "$CONFIG_FILES"
10083 # Set up the scripts for CONFIG_HEADERS section.
10084 # No need to generate them if there are no CONFIG_HEADERS.
10085 # This happens for instance with `./config.status Makefile'.
10086 if test -n "$CONFIG_HEADERS"; then
10087 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10091 # Transform confdefs.h into an awk script `defines.awk', embedded as
10092 # here-document in config.status, that substitutes the proper values into
10093 # config.h.in to produce config.h.
10095 # Create a delimiter string that does not exist in confdefs.h, to ease
10096 # handling of long lines.
10098 for ac_last_try in false false :; do
10099 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10100 if test -z "$ac_tt"; then
10102 elif $ac_last_try; then
10103 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10109 # For the awk script, D is an array of macro values keyed by name,
10110 # likewise P contains macro parameters if any. Preserve backslash
10111 # newline sequences.
10113 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10115 s/.\{148\}/&'"$ac_delim"'/g
10118 s/^[ ]*#[ ]*define[ ][ ]*/ /
10125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10127 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10132 D["\1"]=" \3\\\\\\n"\\/p
10134 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10139 s/.\{148\}/&'"$ac_delim"'/g
10144 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10147 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10149 ' <confdefs.h | sed '
10150 s/'"$ac_delim"'/"\\\
10151 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10154 for (key in D) D_is_set[key] = 1
10157 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10159 split(line, arg, " ")
10160 if (arg[1] == "#") {
10164 defundef = substr(arg[1], 2)
10167 split(mac1, mac2, "(") #)
10169 prefix = substr(line, 1, index(line, defundef) - 1)
10170 if (D_is_set[macro]) {
10171 # Preserve the white space surrounding the "#".
10172 print prefix "define", macro P[macro] D[macro]
10175 # Replace #undef with comments. This is necessary, for example,
10176 # in the case of _POSIX_SOURCE, which is predefined and required
10177 # on some systems where configure will not decide to define it.
10178 if (defundef == "undef") {
10179 print "/*", prefix defundef, macro, "*/"
10187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10188 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10189 fi # test -n "$CONFIG_HEADERS"
10192 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10197 :[FHLC]) ac_mode=$ac_tag; continue;;
10199 case $ac_mode$ac_tag in
10201 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10202 :[FH]-) ac_tag=-:-;;
10203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10220 -) ac_f="$ac_tmp/stdin";;
10221 *) # Look for the file first in the build tree, then in the source tree
10222 # (if the path is not absolute). The absolute path cannot be DOS-style,
10223 # because $ac_f cannot contain `:'.
10227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10229 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10231 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10232 as_fn_append ac_file_inputs " '$ac_f'"
10235 # Let's still pretend it is `configure' which instantiates (i.e., don't
10236 # use $as_me), people would be surprised to read:
10237 # /* config.h. Generated by config.status. */
10238 configure_input='Generated from '`
10239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10241 if test x"$ac_file" != x-; then
10242 configure_input="$ac_file. $configure_input"
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10244 $as_echo "$as_me: creating $ac_file" >&6;}
10246 # Neutralize special characters interpreted by sed in replacement strings.
10247 case $configure_input in #(
10248 *\&* | *\|* | *\\* )
10249 ac_sed_conf_input=`$as_echo "$configure_input" |
10250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10251 *) ac_sed_conf_input=$configure_input;;
10255 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10261 ac_dir=`$as_dirname -- "$ac_file" ||
10262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10263 X"$ac_file" : 'X\(//\)[^/]' \| \
10264 X"$ac_file" : 'X\(//\)$' \| \
10265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10266 $as_echo X"$ac_file" |
10267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10271 /^X\(\/\/\)[^/].*/{
10284 as_dir="$ac_dir"; as_fn_mkdir_p
10288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10290 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10291 # A ".." for each directory in $ac_dir_suffix.
10292 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10293 case $ac_top_builddir_sub in
10294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10298 ac_abs_top_builddir=$ac_pwd
10299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10300 # for backward compatibility:
10301 ac_top_builddir=$ac_top_build_prefix
10304 .) # We are building in place.
10306 ac_top_srcdir=$ac_top_builddir_sub
10307 ac_abs_top_srcdir=$ac_pwd ;;
10308 [\\/]* | ?:[\\/]* ) # Absolute name.
10309 ac_srcdir=$srcdir$ac_dir_suffix;
10310 ac_top_srcdir=$srcdir
10311 ac_abs_top_srcdir=$srcdir ;;
10312 *) # Relative name.
10313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10314 ac_top_srcdir=$ac_top_build_prefix$srcdir
10315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10328 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10330 ac_MKDIR_P=$MKDIR_P
10332 [\\/$]* | ?:[\\/]* ) ;;
10333 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10338 # If the template does not know about datarootdir, expand it.
10339 # FIXME: This hack should be removed a few years after 2.60.
10340 ac_datarootdir_hack=; ac_datarootdir_seen=
10351 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10352 *datarootdir*) ac_datarootdir_seen=yes;;
10353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10355 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10358 ac_datarootdir_hack='
10359 s&@datadir@&$datadir&g
10360 s&@docdir@&$docdir&g
10361 s&@infodir@&$infodir&g
10362 s&@localedir@&$localedir&g
10363 s&@mandir@&$mandir&g
10364 s&\\\${datarootdir}&$datarootdir&g' ;;
10368 # Neutralize VPATH when `$srcdir' = `.'.
10369 # Shell code in configure.ac might set extrasub.
10370 # FIXME: do we really want to maintain this feature?
10371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10372 ac_sed_extra="$ac_vpsub
10375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10378 s|@configure_input@|$ac_sed_conf_input|;t t
10379 s&@top_builddir@&$ac_top_builddir_sub&;t t
10380 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10381 s&@srcdir@&$ac_srcdir&;t t
10382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10383 s&@top_srcdir@&$ac_top_srcdir&;t t
10384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10385 s&@builddir@&$ac_builddir&;t t
10386 s&@abs_builddir@&$ac_abs_builddir&;t t
10387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10388 s&@INSTALL@&$ac_INSTALL&;t t
10389 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10390 $ac_datarootdir_hack
10392 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10393 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10396 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10398 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10400 which seems to be undefined. Please make sure it is defined" >&5
10401 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10402 which seems to be undefined. Please make sure it is defined" >&2;}
10404 rm -f "$ac_tmp/stdin"
10406 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10407 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10415 if test x"$ac_file" != x-; then
10417 $as_echo "/* $configure_input */" \
10418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10419 } >"$ac_tmp/config.h" \
10420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10421 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10423 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10426 mv "$ac_tmp/config.h" "$ac_file" \
10427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10430 $as_echo "/* $configure_input */" \
10431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10432 || as_fn_error $? "could not create -" "$LINENO" 5
10434 # Compute "$ac_file"'s index in $config_headers.
10437 for _am_header in $config_headers :; do
10438 case $_am_header in
10439 $_am_arg | $_am_arg:* )
10442 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10445 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10446 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10447 X"$_am_arg" : 'X\(//\)[^/]' \| \
10448 X"$_am_arg" : 'X\(//\)$' \| \
10449 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10450 $as_echo X"$_am_arg" |
10451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10455 /^X\(\/\/\)[^/].*/{
10467 s/.*/./; q'`/stamp-h$_am_stamp_count
10470 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10471 $as_echo "$as_me: executing $ac_file commands" >&6;}
10476 case $ac_file$ac_mode in
10477 "po-directories":C)
10478 for ac_file in $CONFIG_FILES; do
10479 # Support "outfile[:infile[:infile...]]"
10481 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10483 # PO directories have a Makefile.in generated from Makefile.in.in.
10484 case "$ac_file" in */Makefile.in)
10485 # Adjust a relative srcdir.
10486 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10487 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10488 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10489 # In autoconf-2.13 it is called $ac_given_srcdir.
10490 # In autoconf-2.50 it is called $srcdir.
10491 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10492 case "$ac_given_srcdir" in
10493 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10494 /*) top_srcdir="$ac_given_srcdir" ;;
10495 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10497 # Treat a directory as a PO directory if and only if it has a
10498 # POTFILES.in file. This allows packages to have multiple PO
10499 # directories under different names or in different locations.
10500 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10501 rm -f "$ac_dir/POTFILES"
10502 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10503 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10504 POMAKEFILEDEPS="POTFILES.in"
10505 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10506 # on $ac_dir but don't depend on user-specified configuration
10508 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10509 # The LINGUAS file contains the set of available languages.
10510 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10511 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10513 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10514 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10515 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10516 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10518 # The set of available languages was given in configure.in.
10519 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10520 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10523 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10524 # Compute UPDATEPOFILES
10525 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10526 # Compute DUMMYPOFILES
10527 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10529 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10530 case "$ac_given_srcdir" in
10532 *) srcdirpre='$(srcdir)/' ;;
10538 for lang in $ALL_LINGUAS; do
10539 POFILES="$POFILES $srcdirpre$lang.po"
10540 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10541 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10542 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10544 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10545 # environment variable.
10547 if test -n "$ALL_LINGUAS"; then
10548 for presentlang in $ALL_LINGUAS; do
10550 if test "%UNSET%" != "$LINGUAS"; then
10551 desiredlanguages="$LINGUAS"
10553 desiredlanguages="$ALL_LINGUAS"
10555 for desiredlang in $desiredlanguages; do
10556 # Use the presentlang catalog if desiredlang is
10557 # a. equal to presentlang, or
10558 # b. a variant of presentlang (because in this case,
10559 # presentlang can be used as a fallback for messages
10560 # which are not translated in the desiredlang catalog).
10561 case "$desiredlang" in
10562 "$presentlang"*) useit=yes;;
10565 if test $useit = yes; then
10566 INST_LINGUAS="$INST_LINGUAS $presentlang"
10571 if test -n "$INST_LINGUAS"; then
10572 for lang in $INST_LINGUAS; do
10573 CATALOGS="$CATALOGS $lang.gmo"
10576 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10577 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10578 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10579 if test -f "$f"; then
10581 *.orig | *.bak | *~) ;;
10582 *) cat "$f" >> "$ac_dir/Makefile" ;;
10590 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10591 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10592 # are listed without --file. Let's play safe and only enable the eval
10593 # if we detect the quoting.
10594 case $CONFIG_FILES in
10595 *\'*) eval set x "$CONFIG_FILES" ;;
10596 *) set x $CONFIG_FILES ;;
10601 # Strip MF so we end up with the name of the file.
10602 mf=`echo "$mf" | sed -e 's/:.*$//'`
10603 # Check whether this is an Automake generated Makefile or not.
10604 # We used to match only the files named 'Makefile.in', but
10605 # some people rename them; so instead we look at the file content.
10606 # Grep'ing the first line is not enough: some people post-process
10607 # each Makefile.in and add a new line on top of each file to say so.
10608 # Grep'ing the whole file is not good either: AIX grep has a line
10609 # limit of 2048, but all sed's we know have understand at least 4000.
10610 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10611 dirpart=`$as_dirname -- "$mf" ||
10612 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10613 X"$mf" : 'X\(//\)[^/]' \| \
10614 X"$mf" : 'X\(//\)$' \| \
10615 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10621 /^X\(\/\/\)[^/].*/{
10637 # Extract the definition of DEPDIR, am__include, and am__quote
10638 # from the Makefile without running 'make'.
10639 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10640 test -z "$DEPDIR" && continue
10641 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10642 test -z "am__include" && continue
10643 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10644 # Find all dependency output files, they are included files with
10645 # $(DEPDIR) in their names. We invoke sed twice because it is the
10646 # simplest approach to changing $(DEPDIR) to its actual value in the
10648 for file in `sed -n "
10649 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10650 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10651 # Make sure the directory exists.
10652 test -f "$dirpart/$file" && continue
10653 fdir=`$as_dirname -- "$file" ||
10654 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10655 X"$file" : 'X\(//\)[^/]' \| \
10656 X"$file" : 'X\(//\)$' \| \
10657 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10658 $as_echo X"$file" |
10659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10663 /^X\(\/\/\)[^/].*/{
10676 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10677 # echo "creating $dirpart/$file"
10678 echo '# dummy' > "$dirpart/$file"
10690 ac_clean_files=$ac_clean_files_save
10692 test $ac_write_fail = 0 ||
10693 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10696 # configure is writing to config.log, and then calls config.status.
10697 # config.status does its own redirection, appending to config.log.
10698 # Unfortunately, on DOS this fails, as config.log is still kept open
10699 # by configure, so config.status won't be able to write to it; its
10700 # output is simply discarded. So we exec the FD to /dev/null,
10701 # effectively closing config.log, so it can be properly (re)opened and
10702 # appended to by config.status. When coming back to configure, we
10703 # need to make the FD available again.
10704 if test "$no_create" != yes; then
10706 ac_config_status_args=
10707 test "$silent" = yes &&
10708 ac_config_status_args="$ac_config_status_args --quiet"
10710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10713 # would make configure fail if this is the last instruction.
10714 $ac_cs_success || as_fn_exit 1
10716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}