2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for alsa-utils 1.0.29.
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.29'
581 PACKAGE_STRING='alsa-utils 1.0.29'
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
715 XGETTEXT_EXTRA_OPTIONS
723 GETTEXT_MACRO_VERSION
726 MAINTAINER_MODE_FALSE
736 INSTALL_STRIP_PROGRAM
778 program_transform_name
791 enable_option_checking
792 enable_maintainer_mode
794 enable_dependency_tracking
811 with_systemdsystemunitdir
812 with_asound_state_dir
813 with_alsactl_lock_dir
814 with_alsactl_pidfile_dir
815 with_alsactl_daemonswitch
817 ac_precious_vars='build_alias
835 # Initialize some variables set by options.
837 ac_init_version=false
838 ac_unrecognized_opts=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
849 program_transform_name=s,x,x,
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
952 eval enable_$ac_useropt=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
978 eval enable_$ac_useropt=\$ac_optarg ;;
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
993 -help | --help | --hel | --he | -h)
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 htmldir=$ac_optarg ;;
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1114 -psdir | --psdir | --psdi | --psd | --ps)
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 sbindir=$ac_optarg ;;
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 sharedstatedir=$ac_optarg ;;
1140 -site | --site | --sit)
1142 -site=* | --site=* | --sit=*)
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1198 eval with_$ac_useropt=no ;;
1201 # Obsolete; use --with-x.
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1269 # Be sure to have absolute directory names.
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296 test "$silent" = yes && exec 6>/dev/null
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1339 ac_srcdir_defaulted=no
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1373 \`configure' configures alsa-utils 1.0.29 to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/alsa-utils]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of alsa-utils 1.0.29:";;
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --disable-maintainer-mode
1452 disable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --disable-nls do not use Native Language Support
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --disable-rpath do not hardcode runtime library paths
1460 --disable-alsatest Do not try to compile and run a test Alsa program
1461 --disable-alsamixer Disable alsamixer compilation
1462 --disable-alsaconf Disable alsaconf packaging
1463 --disable-alsaloop Disable alsaloop packaging
1464 --disable-xmlto Disable man page creation via xmlto
1465 --disable-largefile omit support for large files
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-gnu-ld assume the C compiler uses GNU ld default=no
1471 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1472 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1473 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1474 --without-libintl-prefix don't search for libintl in includedir and libdir
1475 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1476 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1477 --with-librt Use librt for monotonic clock (default = yes)
1478 --with-udev-rules-dir=DIR
1479 Directory where to install udev rules to
1481 --with-curses=libname Specify the curses library to use (default=auto)
1482 --with-testsound=file give the path of test sound file for alsaconf
1483 --with-systemdsystemunitdir=DIR
1484 Directory for systemd service files
1485 --with-asound-state-dir=DIR
1486 Directory to place asound.state file in
1487 --with-alsactl-lock-dir=DIR
1488 Directory to place lock files in
1489 --with-alsactl-pidfile-dir=DIR
1490 Directory to place alsactl.pid file in
1491 --with-alsactl-daemonswitch=FILE
1492 File to test for the daemon mode
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1503 PKG_CONFIG path to pkg-config utility
1505 directories to add to pkg-config's search path
1507 path overriding pkg-config's built-in search path
1509 C compiler flags for NCURSESW, overriding pkg-config
1511 linker flags for NCURSESW, overriding pkg-config
1513 C compiler flags for NCURSES, overriding pkg-config
1515 linker flags for NCURSES, overriding pkg-config
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1520 Report bugs to the package provider.
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1583 alsa-utils configure 1.0.29
1584 generated by GNU Autoconf 2.69
1586 Copyright (C) 2012 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext
1604 if { { ac_try="$ac_compile"
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext; then :
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1633 } # ac_fn_c_try_compile
1635 # ac_fn_c_try_cpp LINENO
1636 # ----------------------
1637 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } > conftest.i && {
1657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1672 # ac_fn_c_try_link LINENO
1673 # -----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext conftest$ac_exeext
1679 if { { ac_try="$ac_link"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest$ac_exeext && {
1698 test "$cross_compiling" = yes ||
1699 test -x conftest$ac_exeext
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710 # interfere with the next link command; also delete a directory that is
1711 # left behind by Apple's compiler. We do this before executing the actions.
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1716 } # ac_fn_c_try_link
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=$ac_status
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1760 # ac_fn_c_check_func LINENO FUNC VAR
1761 # ----------------------------------
1762 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1763 ac_fn_c_check_func ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1775 #define $2 innocuous_$2
1777 /* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $2 (); below.
1779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1780 <limits.h> exists even on freestanding compilers. */
1783 # include <limits.h>
1785 # include <assert.h>
1790 /* Override any GCC internal prototype to avoid an error.
1791 Use char because int might match the return type of a GCC
1792 builtin and then its argument prototype would still apply. */
1797 /* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800 #if defined __stub_$2 || defined __stub___$2
1812 if ac_fn_c_try_link "$LINENO"; then :
1817 rm -f core conftest.err conftest.$ac_objext \
1818 conftest$ac_exeext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_func
1827 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1828 # -------------------------------------------------------
1829 # Tests whether HEADER exists and can be compiled using the include files in
1830 # INCLUDES, setting the cache variable VAR accordingly.
1831 ac_fn_c_check_header_compile ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1844 if ac_fn_c_try_compile "$LINENO"; then :
1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 } # ac_fn_c_check_header_compile
1858 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1859 # -------------------------------------------------------
1860 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1861 # the include files in INCLUDES and setting the cache variable VAR
1863 ac_fn_c_check_header_mongrel ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if eval \${$3+:} false; then :
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1876 # Is the header compilable?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1878 $as_echo_n "checking $2 usability... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 ac_header_compiler=yes
1887 ac_header_compiler=no
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1891 $as_echo "$ac_header_compiler" >&6; }
1893 # Is the header present?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1895 $as_echo_n "checking $2 presence... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1900 if ac_fn_c_try_cpp "$LINENO"; then :
1901 ac_header_preproc=yes
1903 ac_header_preproc=no
1905 rm -f conftest.err conftest.i conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1907 $as_echo "$ac_header_preproc" >&6; }
1909 # So? What about this header?
1910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1913 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1919 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1921 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1923 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1925 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1935 eval "$3=\$ac_header_compiler"
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_header_mongrel
1944 cat >config.log <<_ACEOF
1945 This file contains any messages produced by compilers while
1946 running configure, to aid debugging if configure makes a mistake.
1948 It was created by alsa-utils $as_me 1.0.29, which was
1949 generated by GNU Autoconf 2.69. Invocation command line was
1961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 $as_echo "PATH: $as_dir"
2001 # Keep a trace of the command line.
2002 # Strip out --no-create and --no-recursion so they do not pile up.
2003 # Strip out --silent because we don't want to record it for future runs.
2004 # Also quote any args containing shell meta-characters.
2005 # Make two passes to allow for proper duplicate-argument suppression.
2009 ac_must_keep_next=false
2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017 | -silent | --silent | --silen | --sile | --sil)
2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2025 as_fn_append ac_configure_args1 " '$ac_arg'"
2026 if test $ac_must_keep_next = true; then
2027 ac_must_keep_next=false # Got value, back to normal.
2030 *=* | --config-cache | -C | -disable-* | --disable-* \
2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033 | -with-* | --with-* | -without-* | --without-* | --x)
2034 case "$ac_configure_args0 " in
2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2038 -* ) ac_must_keep_next=true ;;
2041 as_fn_append ac_configure_args " '$ac_arg'"
2046 { ac_configure_args0=; unset ac_configure_args0;}
2047 { ac_configure_args1=; unset ac_configure_args1;}
2049 # When interrupted or exit'd, cleanup temporary files, and complete
2050 # config.log. We remove comments because anyway the quotes in there
2051 # would cause problems or look ugly.
2052 # WARNING: Use '\'' to represent an apostrophe within the trap.
2053 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054 trap 'exit_status=$?
2055 # Save into config.log some information that might help in debugging.
2059 $as_echo "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2063 # The following way of writing the cache mishandles newlines in values,
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2095 $as_echo "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2099 for ac_var in $ac_subst_vars
2101 eval ac_val=\$$ac_var
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 $as_echo "$ac_var='\''$ac_val'\''"
2109 if test -n "$ac_subst_files"; then
2110 $as_echo "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2114 for ac_var in $ac_subst_files
2116 eval ac_val=\$$ac_var
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120 $as_echo "$ac_var='\''$ac_val'\''"
2125 if test -s confdefs.h; then
2126 $as_echo "## ----------- ##
2133 test "$ac_signal" != 0 &&
2134 $as_echo "$as_me: caught signal $ac_signal"
2135 $as_echo "$as_me: exit $exit_status"
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2141 for ac_signal in 1 2 13 15; do
2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest* confdefs.h
2149 $as_echo "/* confdefs.h */" > confdefs.h
2151 # Predefined preprocessor variables.
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_STRING "$PACKAGE_STRING"
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_URL "$PACKAGE_URL"
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2182 if test -n "$CONFIG_SITE"; then
2183 # We do not want a PATH search for config.site.
2184 case $CONFIG_SITE in #((
2185 -*) ac_site_file1=./$CONFIG_SITE;;
2186 */*) ac_site_file1=$CONFIG_SITE;;
2187 *) ac_site_file1=./$CONFIG_SITE;;
2189 elif test "x$prefix" != xNONE; then
2190 ac_site_file1=$prefix/share/config.site
2191 ac_site_file2=$prefix/etc/config.site
2193 ac_site_file1=$ac_default_prefix/share/config.site
2194 ac_site_file2=$ac_default_prefix/etc/config.site
2196 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2198 test "x$ac_site_file" = xNONE && continue
2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202 sed 's/^/| /' "$ac_site_file" >&5
2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 as_fn_error $? "failed to load site script $ac_site_file
2207 See \`config.log' for more details" "$LINENO" 5; }
2211 if test -r "$cache_file"; then
2212 # Some versions of bash will fail to source /dev/null (special files
2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216 $as_echo "$as_me: loading cache $cache_file" >&6;}
2218 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219 *) . "./$cache_file";;
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224 $as_echo "$as_me: creating cache $cache_file" >&6;}
2228 gt_needs="$gt_needs "
2229 # Check that the precious variables saved in the cache have kept the same
2231 ac_cache_corrupted=false
2232 for ac_var in $ac_precious_vars; do
2233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2234 eval ac_new_set=\$ac_env_${ac_var}_set
2235 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2236 eval ac_new_val=\$ac_env_${ac_var}_value
2237 case $ac_old_set,$ac_new_set in
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2248 if test "x$ac_old_val" != "x$ac_new_val"; then
2249 # differences in whitespace do not lead to failure.
2250 ac_old_val_w=`echo x $ac_old_val`
2251 ac_new_val_w=`echo x $ac_new_val`
2252 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2254 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2255 ac_cache_corrupted=:
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2258 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2259 eval $ac_var=\$ac_old_val
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2262 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2264 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2267 # Pass precious variables to config.status.
2268 if test "$ac_new_set" = set; then
2270 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2271 *) ac_arg=$ac_var=$ac_new_val ;;
2273 case " $ac_configure_args " in
2274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2275 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279 if $ac_cache_corrupted; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2283 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2284 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286 ## -------------------- ##
2287 ## Main body of script. ##
2288 ## -------------------- ##
2291 ac_cpp='$CPP $CPPFLAGS'
2292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299 am__api_version='1.12'
2302 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2303 if test -f "$ac_dir/install-sh"; then
2305 ac_install_sh="$ac_aux_dir/install-sh -c"
2307 elif test -f "$ac_dir/install.sh"; then
2309 ac_install_sh="$ac_aux_dir/install.sh -c"
2311 elif test -f "$ac_dir/shtool"; then
2313 ac_install_sh="$ac_aux_dir/shtool install -c"
2317 if test -z "$ac_aux_dir"; then
2318 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2321 # These three variables are undocumented and unsupported,
2322 # and are intended to be withdrawn in a future Autoconf release.
2323 # They can cause serious problems if a builder's source tree is in a directory
2324 # whose full name contains unusual characters.
2325 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2326 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2327 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2330 # Find a good install program. We prefer a C program (faster),
2331 # so one script is as good as another. But avoid the broken or
2332 # incompatible versions:
2333 # SysV /etc/install, /usr/sbin/install
2334 # SunOS /usr/etc/install
2335 # IRIX /sbin/install
2337 # AmigaOS /C/install, which installs bootblocks on floppy discs
2338 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2339 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2340 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2341 # OS/2's system install, which has a completely different semantic
2342 # ./install, which can be erroneously created by make from ./install.sh.
2343 # Reject install programs that cannot install multiple files.
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2345 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2346 if test -z "$INSTALL"; then
2347 if ${ac_cv_path_install+:} false; then :
2348 $as_echo_n "(cached) " >&6
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir=.
2355 # Account for people who put trailing slashes in PATH elements.
2356 case $as_dir/ in #((
2357 ./ | .// | /[cC]/* | \
2358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2359 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2362 # OSF1 and SCO ODT 3.0 have their own names for install.
2363 # Don't use installbsd from OSF since it installs stuff as root
2365 for ac_prog in ginstall scoinst install; do
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2368 if test $ac_prog = install &&
2369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # AIX install. It has an incompatible calling convention.
2372 elif test $ac_prog = install &&
2373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2374 # program-specific install script used by HP pwplus--don't use.
2377 rm -rf conftest.one conftest.two conftest.dir
2378 echo one > conftest.one
2379 echo two > conftest.two
2381 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2382 test -s conftest.one && test -s conftest.two &&
2383 test -s conftest.dir/conftest.one &&
2384 test -s conftest.dir/conftest.two
2386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2399 rm -rf conftest.one conftest.two conftest.dir
2402 if test "${ac_cv_path_install+set}" = set; then
2403 INSTALL=$ac_cv_path_install
2405 # As a last resort, use the slow shell script. Don't cache a
2406 # value for INSTALL within a source directory, because that will
2407 # break other packages using the cache if that directory is
2408 # removed, or if the value is a relative name.
2409 INSTALL=$ac_install_sh
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2413 $as_echo "$INSTALL" >&6; }
2415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2416 # It thinks the first close brace ends the variable substitution.
2417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2424 $as_echo_n "checking whether build environment is sane... " >&6; }
2425 # Reject unsafe characters in $srcdir or the absolute working directory
2426 # name. Accept space and tab only in the latter.
2430 *[\\\"\#\$\&\'\`$am_lf]*)
2431 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2434 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2435 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2438 # Do 'set' in a subshell so we don't clobber the current shell's
2439 # arguments. Must try -L first in case configure is actually a
2440 # symlink; some systems play weird games with the mod time of symlinks
2441 # (eg FreeBSD returns the mod time of the symlink's containing
2445 for am_try in 1 2; do
2446 echo "timestamp, slept: $am_has_slept" > conftest.file
2447 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2448 if test "$*" = "X"; then
2450 set X `ls -t "$srcdir/configure" conftest.file`
2452 if test "$*" != "X $srcdir/configure conftest.file" \
2453 && test "$*" != "X conftest.file $srcdir/configure"; then
2455 # If neither matched, then we have a broken ls. This can happen
2456 # if, for instance, CONFIG_SHELL is bash and it inherits a
2457 # broken ls alias from the environment. This has actually
2458 # happened. Such a system could not be considered "sane".
2459 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2460 alias in your environment" "$LINENO" 5
2462 if test "$2" = conftest.file || test $am_try -eq 2; then
2469 test "$2" = conftest.file
2475 as_fn_error $? "newly created file is older than distributed files!
2476 Check your system clock" "$LINENO" 5
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2479 $as_echo "yes" >&6; }
2480 # If we didn't sleep, we still need to ensure time stamps of config.status and
2481 # generated files are strictly newer.
2483 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2490 test "$program_prefix" != NONE &&
2491 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2492 # Use a double $ so make ignores it.
2493 test "$program_suffix" != NONE &&
2494 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495 # Double any \ or $.
2496 # By default was `s,x,x', remove it if useless.
2497 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2500 # expand $ac_aux_dir to an absolute path
2501 am_aux_dir=`cd $ac_aux_dir && pwd`
2503 if test x"${MISSING+set}" != xset; then
2506 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2508 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2511 # Use eval to expand $SHELL
2512 if eval "$MISSING --run true"; then
2513 am_missing_run="$MISSING --run "
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2517 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2520 if test x"${install_sh}" != xset; then
2523 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2525 install_sh="\${SHELL} $am_aux_dir/install-sh"
2529 # Installed binaries are usually stripped using 'strip' when the user
2530 # run "make install-strip". However 'strip' might not be the right
2531 # tool to use in cross-compilation environments, therefore Automake
2532 # will honor the 'STRIP' environment variable to overrule this program.
2533 if test "$cross_compiling" != no; then
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}strip; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if ${ac_cv_prog_STRIP+:} false; then :
2540 $as_echo_n "(cached) " >&6
2542 if test -n "$STRIP"; then
2543 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2552 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 STRIP=$ac_cv_prog_STRIP
2563 if test -n "$STRIP"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2565 $as_echo "$STRIP" >&6; }
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2573 if test -z "$ac_cv_prog_STRIP"; then
2575 # Extract the first word of "strip", so it can be a program name with args.
2576 set dummy strip; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 if test -n "$ac_ct_STRIP"; then
2583 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 ac_cv_prog_ac_ct_STRIP="strip"
2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2603 if test -n "$ac_ct_STRIP"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2605 $as_echo "$ac_ct_STRIP" >&6; }
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2611 if test "x$ac_ct_STRIP" = x; then
2614 case $cross_compiling:$ac_tool_warned in
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618 ac_tool_warned=yes ;;
2623 STRIP="$ac_cv_prog_STRIP"
2627 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2630 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2631 if test -z "$MKDIR_P"; then
2632 if ${ac_cv_path_mkdir+:} false; then :
2633 $as_echo_n "(cached) " >&6
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2639 test -z "$as_dir" && as_dir=.
2640 for ac_prog in mkdir gmkdir; do
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2643 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2644 'mkdir (GNU coreutils) '* | \
2645 'mkdir (coreutils) '* | \
2646 'mkdir (fileutils) '4.1*)
2647 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2657 test -d ./--version && rmdir ./--version
2658 if test "${ac_cv_path_mkdir+set}" = set; then
2659 MKDIR_P="$ac_cv_path_mkdir -p"
2661 # As a last resort, use the slow shell script. Don't cache a
2662 # value for MKDIR_P within a source directory, because that will
2663 # break other packages using the cache if that directory is
2664 # removed, or if the value is a relative name.
2665 MKDIR_P="$ac_install_sh -d"
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2669 $as_echo "$MKDIR_P" >&6; }
2671 for ac_prog in gawk mawk nawk awk
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if ${ac_cv_prog_AWK+:} false; then :
2678 $as_echo_n "(cached) " >&6
2680 if test -n "$AWK"; then
2681 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_AWK="$ac_prog"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 if test -n "$AWK"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2703 $as_echo "$AWK" >&6; }
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2710 test -n "$AWK" && break
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2716 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2717 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2718 $as_echo_n "(cached) " >&6
2720 cat >conftest.make <<\_ACEOF
2723 @echo '@@@%%%=$(MAKE)=@@@%%%'
2725 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2726 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2728 eval ac_cv_prog_make_${ac_make}_set=yes;;
2730 eval ac_cv_prog_make_${ac_make}_set=no;;
2734 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2736 $as_echo "yes" >&6; }
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 SET_MAKE="MAKE=${MAKE-make}"
2744 rm -rf .tst 2>/dev/null
2745 mkdir .tst 2>/dev/null
2746 if test -d .tst; then
2751 rmdir .tst 2>/dev/null
2753 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2754 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2755 # is not polluted with repeated "-I."
2756 am__isrc=' -I$(srcdir)'
2757 # test to see if srcdir already configured
2758 if test -f $srcdir/config.status; then
2759 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2763 # test whether we have cygpath
2764 if test -z "$CYGPATH_W"; then
2765 if (cygpath --version) >/dev/null 2>/dev/null; then
2766 CYGPATH_W='cygpath -w'
2773 # Define the identity of the package.
2774 PACKAGE='alsa-utils'
2778 cat >>confdefs.h <<_ACEOF
2779 #define PACKAGE "$PACKAGE"
2783 cat >>confdefs.h <<_ACEOF
2784 #define VERSION "$VERSION"
2787 # Some tools Automake needs.
2789 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2792 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2795 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2798 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2801 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2803 # For better backward compatibility. To be removed once Automake 1.9.x
2804 # dies out for good. For more background, see:
2805 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2806 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2807 mkdir_p='$(MKDIR_P)'
2809 # We need awk for the "check" target. The system "awk" is bad on
2811 # Always define AMTAR for backward compatibility. Yes, it's still used
2812 # in the wild :-( We should find a proper way to deprecate it ...
2815 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2824 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2825 # Check whether --enable-maintainer-mode was given.
2826 if test "${enable_maintainer_mode+set}" = set; then :
2827 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2829 USE_MAINTAINER_MODE=yes
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2833 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2834 if test $USE_MAINTAINER_MODE = yes; then
2835 MAINTAINER_MODE_TRUE=
2836 MAINTAINER_MODE_FALSE='#'
2838 MAINTAINER_MODE_TRUE='#'
2839 MAINTAINER_MODE_FALSE=
2842 MAINT=$MAINTAINER_MODE_TRUE
2849 [\\/$]* | ?:[\\/]*) ;;
2850 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2855 $as_echo_n "checking whether NLS is requested... " >&6; }
2856 # Check whether --enable-nls was given.
2857 if test "${enable_nls+set}" = set; then :
2858 enableval=$enable_nls; USE_NLS=$enableval
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2864 $as_echo "$USE_NLS" >&6; }
2869 GETTEXT_MACRO_VERSION=0.18
2874 # Prepare PATH_SEPARATOR.
2875 # The user is always right.
2876 if test "${PATH_SEPARATOR+set}" != set; then
2877 echo "#! /bin/sh" >conf$$.sh
2878 echo "exit 0" >>conf$$.sh
2880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2888 # Find out how to test for executable files. Don't use a zero-byte file,
2889 # as systems may use methods other than mode bits to determine executability.
2890 cat >conf$$.file <<_ASEOF
2894 chmod +x conf$$.file
2895 if test -x conf$$.file >/dev/null 2>&1; then
2896 ac_executable_p="test -x"
2898 ac_executable_p="test -f"
2902 # Extract the first word of "msgfmt", so it can be a program name with args.
2903 set dummy msgfmt; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_path_MSGFMT+:} false; then :
2907 $as_echo_n "(cached) " >&6
2911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2914 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2915 for ac_dir in $PATH; do
2917 test -z "$ac_dir" && ac_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2920 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2921 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2922 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2923 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2930 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2934 MSGFMT="$ac_cv_path_MSGFMT"
2935 if test "$MSGFMT" != ":"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2937 $as_echo "$MSGFMT" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2943 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2944 set dummy gmsgfmt; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_path_GMSGFMT+:} false; then :
2948 $as_echo_n "(cached) " >&6
2952 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2974 GMSGFMT=$ac_cv_path_GMSGFMT
2975 if test -n "$GMSGFMT"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2977 $as_echo "$GMSGFMT" >&6; }
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2985 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2986 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2987 *) MSGFMT_015=$MSGFMT ;;
2990 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2991 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2992 *) GMSGFMT_015=$GMSGFMT ;;
2997 # Prepare PATH_SEPARATOR.
2998 # The user is always right.
2999 if test "${PATH_SEPARATOR+set}" != set; then
3000 echo "#! /bin/sh" >conf$$.sh
3001 echo "exit 0" >>conf$$.sh
3003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3011 # Find out how to test for executable files. Don't use a zero-byte file,
3012 # as systems may use methods other than mode bits to determine executability.
3013 cat >conf$$.file <<_ASEOF
3017 chmod +x conf$$.file
3018 if test -x conf$$.file >/dev/null 2>&1; then
3019 ac_executable_p="test -x"
3021 ac_executable_p="test -f"
3025 # Extract the first word of "xgettext", so it can be a program name with args.
3026 set dummy xgettext; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_path_XGETTEXT+:} false; then :
3030 $as_echo_n "(cached) " >&6
3034 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3037 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3038 for ac_dir in $PATH; do
3040 test -z "$ac_dir" && ac_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3043 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3044 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3045 (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
3046 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3053 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3057 XGETTEXT="$ac_cv_path_XGETTEXT"
3058 if test "$XGETTEXT" != ":"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3060 $as_echo "$XGETTEXT" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3068 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3069 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3070 *) XGETTEXT_015=$XGETTEXT ;;
3075 # Prepare PATH_SEPARATOR.
3076 # The user is always right.
3077 if test "${PATH_SEPARATOR+set}" != set; then
3078 echo "#! /bin/sh" >conf$$.sh
3079 echo "exit 0" >>conf$$.sh
3081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3089 # Find out how to test for executable files. Don't use a zero-byte file,
3090 # as systems may use methods other than mode bits to determine executability.
3091 cat >conf$$.file <<_ASEOF
3095 chmod +x conf$$.file
3096 if test -x conf$$.file >/dev/null 2>&1; then
3097 ac_executable_p="test -x"
3099 ac_executable_p="test -f"
3103 # Extract the first word of "msgmerge", so it can be a program name with args.
3104 set dummy msgmerge; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_path_MSGMERGE+:} false; then :
3108 $as_echo_n "(cached) " >&6
3112 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3115 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3116 for ac_dir in $PATH; do
3118 test -z "$ac_dir" && ac_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3121 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3122 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3123 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3130 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3134 MSGMERGE="$ac_cv_path_MSGMERGE"
3135 if test "$MSGMERGE" != ":"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3137 $as_echo "$MSGMERGE" >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3144 test -n "$localedir" || localedir='${datadir}/locale'
3147 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3150 ac_config_commands="$ac_config_commands po-directories"
3154 if test "X$prefix" = "XNONE"; then
3155 acl_final_prefix="$ac_default_prefix"
3157 acl_final_prefix="$prefix"
3159 if test "X$exec_prefix" = "XNONE"; then
3160 acl_final_exec_prefix='${prefix}'
3162 acl_final_exec_prefix="$exec_prefix"
3164 acl_save_prefix="$prefix"
3165 prefix="$acl_final_prefix"
3166 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3167 prefix="$acl_save_prefix"
3169 DEPDIR="${am__leading_dot}deps"
3171 ac_config_commands="$ac_config_commands depfiles"
3174 am_make=${MAKE-make}
3175 cat > confinc << 'END'
3177 @echo this is the am__doit target
3180 # If we don't find an include directive, just comment out the code.
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3182 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3186 # First try GNU make style include.
3187 echo "include confinc" > confmf
3188 # Ignore all kinds of additional output from 'make'.
3189 case `$am_make -s -f confmf 2> /dev/null` in #(
3190 *the\ am__doit\ target*)
3196 # Now try BSD make style include.
3197 if test "$am__include" = "#"; then
3198 echo '.include "confinc"' > confmf
3199 case `$am_make -s -f confmf 2> /dev/null` in #(
3200 *the\ am__doit\ target*)
3201 am__include=.include
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3210 $as_echo "$_am_result" >&6; }
3211 rm -f confinc confmf
3213 # Check whether --enable-dependency-tracking was given.
3214 if test "${enable_dependency_tracking+set}" = set; then :
3215 enableval=$enable_dependency_tracking;
3218 if test "x$enable_dependency_tracking" != xno; then
3219 am_depcomp="$ac_aux_dir/depcomp"
3223 if test "x$enable_dependency_tracking" != xno; then
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237 if test -n "$ac_tool_prefix"; then
3238 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3239 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_CC+:} false; then :
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3276 if test -z "$ac_cv_prog_CC"; then
3278 # Extract the first word of "gcc", so it can be a program name with args.
3279 set dummy gcc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$ac_ct_CC"; then
3286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_ac_ct_CC="gcc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3306 if test -n "$ac_ct_CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3308 $as_echo "$ac_ct_CC" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3314 if test "x$ac_ct_CC" = x; then
3317 case $cross_compiling:$ac_tool_warned in
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3321 ac_tool_warned=yes ;;
3329 if test -z "$CC"; then
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}cc; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_CC+:} false; then :
3336 $as_echo_n "(cached) " >&6
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="${ac_tool_prefix}cc"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3370 if test -z "$CC"; then
3371 # Extract the first word of "cc", so it can be a program name with args.
3372 set dummy cc; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_CC+:} false; then :
3376 $as_echo_n "(cached) " >&6
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3390 ac_prog_rejected=yes
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 if test $ac_prog_rejected = yes; then
3402 # We found a bogon in the path, so make sure we never use it.
3403 set dummy $ac_cv_prog_CC
3405 if test $# != 0; then
3406 # We chose a different compiler from the bogus one.
3407 # However, it has the same basename, so the bogon will be chosen
3408 # first if we set CC to just the basename; use the full file name.
3410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3426 if test -z "$CC"; then
3427 if test -n "$ac_tool_prefix"; then
3428 for ac_prog in cl.exe
3430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_prog_CC+:} false; then :
3435 $as_echo_n "(cached) " >&6
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 if test -n "$CC"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460 $as_echo "$CC" >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3467 test -n "$CC" && break
3470 if test -z "$CC"; then
3472 for ac_prog in cl.exe
3474 # Extract the first word of "$ac_prog", so it can be a program name with args.
3475 set dummy $ac_prog; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3479 $as_echo_n "(cached) " >&6
3481 if test -n "$ac_ct_CC"; then
3482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_ac_ct_CC="$ac_prog"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3502 if test -n "$ac_ct_CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3504 $as_echo "$ac_ct_CC" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3511 test -n "$ac_ct_CC" && break
3514 if test "x$ac_ct_CC" = x; then
3517 case $cross_compiling:$ac_tool_warned in
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521 ac_tool_warned=yes ;;
3530 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error $? "no acceptable C compiler found in \$PATH
3533 See \`config.log' for more details" "$LINENO" 5; }
3535 # Provide some information about the compiler.
3536 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3539 for ac_option in --version -v -V -qversion; do
3540 { { ac_try="$ac_compiler $ac_option >&5"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3549 if test -s conftest.err; then
3551 ... rest of stderr output deleted ...
3552 10q' conftest.err >conftest.er1
3553 cat conftest.er1 >&5
3555 rm -f conftest.er1 conftest.err
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3571 ac_clean_files_save=$ac_clean_files
3572 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3573 # Try to create an executable without -o first, disregard a.out.
3574 # It will help us diagnose broken compilers, and finding out an intuition
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3577 $as_echo_n "checking whether the C compiler works... " >&6; }
3578 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3580 # The possible output files:
3581 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3584 for ac_file in $ac_files
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3593 if { { ac_try="$ac_link_default"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link_default") 2>&5
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; then :
3604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3605 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3606 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3607 # so that the user can short-circuit this test for compilers unknown to
3609 for ac_file in $ac_files ''
3611 test -f "$ac_file" || continue
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3616 # We found the default executable, but exeext='' is most
3620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3624 # We set ac_cv_exeext here because the later test for it is not
3625 # safe: cross compilers may not add the suffix if given an `-o'
3626 # argument, so we may need to know it at that point already.
3627 # Even if this section looks crufty: it has the advantage of
3634 test "$ac_cv_exeext" = no && ac_cv_exeext=
3639 if test -z "$ac_file"; then :
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error 77 "C compiler cannot create executables
3648 See \`config.log' for more details" "$LINENO" 5; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3651 $as_echo "yes" >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3654 $as_echo_n "checking for C compiler default output file name... " >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3656 $as_echo "$ac_file" >&6; }
3657 ac_exeext=$ac_cv_exeext
3659 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3660 ac_clean_files=$ac_clean_files_save
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3662 $as_echo_n "checking for suffix of executables... " >&6; }
3663 if { { ac_try="$ac_link"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_link") 2>&5
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }; then :
3674 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3675 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3676 # work properly (i.e., refer to `conftest.exe'), while it won't with
3678 for ac_file in conftest.exe conftest conftest.*; do
3679 test -f "$ac_file" || continue
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3682 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3691 See \`config.log' for more details" "$LINENO" 5; }
3693 rm -f conftest conftest$ac_cv_exeext
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3695 $as_echo "$ac_cv_exeext" >&6; }
3697 rm -f conftest.$ac_ext
3698 EXEEXT=$ac_cv_exeext
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3706 FILE *f = fopen ("conftest.out", "w");
3707 return ferror (f) || fclose (f) != 0;
3713 ac_clean_files="$ac_clean_files conftest.out"
3714 # Check that the compiler produces executables we can run. If not, either
3715 # the compiler is broken, or we cross compile.
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3717 $as_echo_n "checking whether we are cross compiling... " >&6; }
3718 if test "$cross_compiling" != yes; then
3719 { { ac_try="$ac_link"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_link") 2>&5
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }
3730 if { ac_try='./conftest$ac_cv_exeext'
3731 { { case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_try") 2>&5
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }; }; then
3743 if test "$cross_compiling" = maybe; then
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error $? "cannot run C compiled programs.
3749 If you meant to cross compile, use \`--host'.
3750 See \`config.log' for more details" "$LINENO" 5; }
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3755 $as_echo "$cross_compiling" >&6; }
3757 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3758 ac_clean_files=$ac_clean_files_save
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3760 $as_echo_n "checking for suffix of object files... " >&6; }
3761 if ${ac_cv_objext+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3775 rm -f conftest.o conftest.obj
3776 if { { ac_try="$ac_compile"
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783 (eval "$ac_compile") 2>&5
3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }; then :
3787 for ac_file in conftest.o conftest.obj conftest.*; do
3788 test -f "$ac_file" || continue;
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3796 $as_echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error $? "cannot compute suffix of object files: cannot compile
3802 See \`config.log' for more details" "$LINENO" 5; }
3804 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3807 $as_echo "$ac_cv_objext" >&6; }
3808 OBJEXT=$ac_cv_objext
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3811 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3812 if ${ac_cv_c_compiler_gnu+:} false; then :
3813 $as_echo_n "(cached) " >&6
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3829 if ac_fn_c_try_compile "$LINENO"; then :
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3839 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3840 if test $ac_compiler_gnu = yes; then
3845 ac_test_CFLAGS=${CFLAGS+set}
3846 ac_save_CFLAGS=$CFLAGS
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3848 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3849 if ${ac_cv_prog_cc_g+:} false; then :
3850 $as_echo_n "(cached) " >&6
3852 ac_save_c_werror_flag=$ac_c_werror_flag
3853 ac_c_werror_flag=yes
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3867 if ac_fn_c_try_compile "$LINENO"; then :
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3882 if ac_fn_c_try_compile "$LINENO"; then :
3885 ac_c_werror_flag=$ac_save_c_werror_flag
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3898 if ac_fn_c_try_compile "$LINENO"; then :
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_c_werror_flag=$ac_save_c_werror_flag
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3909 $as_echo "$ac_cv_prog_cc_g" >&6; }
3910 if test "$ac_test_CFLAGS" = set; then
3911 CFLAGS=$ac_save_CFLAGS
3912 elif test $ac_cv_prog_cc_g = yes; then
3913 if test "$GCC" = yes; then
3919 if test "$GCC" = yes; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3926 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3927 if ${ac_cv_prog_cc_c89+:} false; then :
3928 $as_echo_n "(cached) " >&6
3930 ac_cv_prog_cc_c89=no
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3937 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3938 struct buf { int x; };
3939 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3940 static char *e (p, i)
3946 static char *f (char * (*g) (char **, int), char **p, ...)
3951 s = g (p, va_arg (v,int));
3956 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3957 function prototypes and stuff, but not '\xHH' hex character constants.
3958 These don't provoke an error unfortunately, instead are silently treated
3959 as 'x'. The following induces an error, until -std is added to get
3960 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3961 array size at least. It's necessary to write '\x00'==0 to get something
3962 that's true only with -std. */
3963 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3965 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3966 inside strings and character constants. */
3968 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3970 int test (int i, double x);
3971 struct s1 {int (*f) (int a);};
3972 struct s2 {int (*f) (double a);};
3973 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3979 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3984 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3985 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3987 CC="$ac_save_CC $ac_arg"
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_prog_cc_c89=$ac_arg
3991 rm -f core conftest.err conftest.$ac_objext
3992 test "x$ac_cv_prog_cc_c89" != "xno" && break
3994 rm -f conftest.$ac_ext
3999 case "x$ac_cv_prog_cc_c89" in
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4002 $as_echo "none needed" >&6; } ;;
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4005 $as_echo "unsupported" >&6; } ;;
4007 CC="$CC $ac_cv_prog_cc_c89"
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4009 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4011 if test "x$ac_cv_prog_cc_c89" != xno; then :
4016 ac_cpp='$CPP $CPPFLAGS'
4017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 depcc="$CC" am_compiler_list=
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4024 $as_echo_n "checking dependency style of $depcc... " >&6; }
4025 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4026 $as_echo_n "(cached) " >&6
4028 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4029 # We make a subdir and do the tests there. Otherwise we can end up
4030 # making bogus files that we don't know about and never remove. For
4031 # instance it was reported that on HP-UX the gcc test will end up
4032 # making a dummy file named 'D' -- because '-MD' means "put the output
4036 # Copy depcomp to subdir because otherwise we won't find it if we're
4037 # using a relative directory.
4038 cp "$am_depcomp" conftest.dir
4040 # We will build objects and dependencies in a subdirectory because
4041 # it helps to detect inapplicable dependency modes. For instance
4042 # both Tru64's cc and ICC support -MD to output dependencies as a
4043 # side effect of compilation, but ICC will put the dependencies in
4044 # the current directory while Tru64 will put them in the object
4048 am_cv_CC_dependencies_compiler_type=none
4049 if test "$am_compiler_list" = ""; then
4050 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4053 case " $depcc " in #(
4054 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4057 for depmode in $am_compiler_list; do
4058 # Setup a source with many dependencies, because some compilers
4059 # like to wrap large dependency lists on column 80 (with \), and
4060 # we should not choose a depcomp mode which is confused by this.
4062 # We need to recreate these files for each test, as the compiler may
4063 # overwrite some of them when testing with obscure command lines.
4064 # This happens at least with the AIX C compiler.
4066 for i in 1 2 3 4 5 6; do
4067 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4068 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4069 # Solaris 10 /bin/sh.
4070 echo '/* dummy */' > sub/conftst$i.h
4072 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4075 # mode. It turns out that the SunPro C++ compiler does not properly
4076 # handle '-M -o', and we need to detect this. Also, some Intel
4077 # versions had trouble with output in subdirs.
4078 am__obj=sub/conftest.${OBJEXT-o}
4079 am__minus_obj="-o $am__obj"
4082 # This depmode causes a compiler race in universal mode.
4083 test "$am__universal" = false || continue
4086 # After this tag, mechanisms are not by side-effect, so they'll
4087 # only be used when explicitly requested.
4088 if test "x$enable_dependency_tracking" = xyes; then
4094 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4095 # This compiler won't grok '-c -o', but also, the minuso test has
4096 # not run yet. These depmodes are late enough in the game, and
4097 # so weak that their functioning should not be impacted.
4098 am__obj=conftest.${OBJEXT-o}
4103 if depmode=$depmode \
4104 source=sub/conftest.c object=$am__obj \
4105 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4106 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4107 >/dev/null 2>conftest.err &&
4108 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4109 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4110 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4111 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4112 # icc doesn't choke on unknown options, it will just issue warnings
4113 # or remarks (even with -Werror). So we grep stderr for any message
4114 # that says an option was ignored or not supported.
4115 # When given -MP, icc 7.0 and 7.1 complain thusly:
4116 # icc: Command line warning: ignoring option '-M'; no argument required
4117 # The diagnosis changed in icc 8.0:
4118 # icc: Command line remark: option '-MP' not supported
4119 if (grep 'ignoring option' conftest.err ||
4120 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4121 am_cv_CC_dependencies_compiler_type=$depmode
4130 am_cv_CC_dependencies_compiler_type=none
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4135 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4136 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4139 test "x$enable_dependency_tracking" != xno \
4140 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4142 am__fastdepCC_FALSE='#'
4144 am__fastdepCC_TRUE='#'
4145 am__fastdepCC_FALSE=
4149 # Make sure we can run config.sub.
4150 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4151 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4154 $as_echo_n "checking build system type... " >&6; }
4155 if ${ac_cv_build+:} false; then :
4156 $as_echo_n "(cached) " >&6
4158 ac_build_alias=$build_alias
4159 test "x$ac_build_alias" = x &&
4160 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4161 test "x$ac_build_alias" = x &&
4162 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4163 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4164 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4168 $as_echo "$ac_cv_build" >&6; }
4169 case $ac_cv_build in
4171 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4174 ac_save_IFS=$IFS; IFS='-'
4180 # Remember, the first character of IFS is used to create $*,
4181 # except with old shells:
4184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4188 $as_echo_n "checking host system type... " >&6; }
4189 if ${ac_cv_host+:} false; then :
4190 $as_echo_n "(cached) " >&6
4192 if test "x$host_alias" = x; then
4193 ac_cv_host=$ac_cv_build
4195 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4196 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4201 $as_echo "$ac_cv_host" >&6; }
4204 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4207 ac_save_IFS=$IFS; IFS='-'
4213 # Remember, the first character of IFS is used to create $*,
4214 # except with old shells:
4217 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4221 # Check whether --with-gnu-ld was given.
4222 if test "${with_gnu_ld+set}" = set; then :
4223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4228 # Prepare PATH_SEPARATOR.
4229 # The user is always right.
4230 if test "${PATH_SEPARATOR+set}" != set; then
4231 echo "#! /bin/sh" >conf$$.sh
4232 echo "exit 0" >>conf$$.sh
4234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4242 if test "$GCC" = yes; then
4243 # Check if gcc -print-prog-name=ld gives a path.
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4245 $as_echo_n "checking for ld used by GCC... " >&6; }
4248 # gcc leaves a trailing carriage return which upsets mingw
4249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4254 # Accept absolute paths.
4255 [\\/]* | [A-Za-z]:[\\/]*)
4256 re_direlt='/[^/][^/]*/\.\./'
4257 # Canonicalize the path of ld
4258 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4259 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4260 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4262 test -z "$LD" && LD="$ac_prog"
4265 # If it fails, then pretend we aren't using GCC.
4269 # If it is relative, then search for the first ld in PATH.
4273 elif test "$with_gnu_ld" = yes; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4275 $as_echo_n "checking for GNU ld... " >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4278 $as_echo_n "checking for non-GNU ld... " >&6; }
4280 if ${acl_cv_path_LD+:} false; then :
4281 $as_echo_n "(cached) " >&6
4283 if test -z "$LD"; then
4284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4285 for ac_dir in $PATH; do
4286 test -z "$ac_dir" && ac_dir=.
4287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4288 acl_cv_path_LD="$ac_dir/$ac_prog"
4289 # Check to see if the program is GNU ld. I'd rather use --version,
4290 # but apparently some GNU ld's only accept -v.
4291 # Break only if it was the GNU/non-GNU ld that we prefer.
4292 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4293 *GNU* | *'with BFD'*)
4294 test "$with_gnu_ld" != no && break ;;
4296 test "$with_gnu_ld" != yes && break ;;
4302 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4306 LD="$acl_cv_path_LD"
4307 if test -n "$LD"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4309 $as_echo "$LD" >&6; }
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4314 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4316 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4317 if ${acl_cv_prog_gnu_ld+:} false; then :
4318 $as_echo_n "(cached) " >&6
4320 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4321 case `$LD -v 2>&1 </dev/null` in
4322 *GNU* | *'with BFD'*)
4323 acl_cv_prog_gnu_ld=yes ;;
4325 acl_cv_prog_gnu_ld=no ;;
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4329 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4330 with_gnu_ld=$acl_cv_prog_gnu_ld
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4336 $as_echo_n "checking for shared library run path origin... " >&6; }
4337 if ${acl_cv_rpath+:} false; then :
4338 $as_echo_n "(cached) " >&6
4341 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4342 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4349 $as_echo "$acl_cv_rpath" >&6; }
4351 acl_libext="$acl_cv_libext"
4352 acl_shlibext="$acl_cv_shlibext"
4353 acl_libname_spec="$acl_cv_libname_spec"
4354 acl_library_names_spec="$acl_cv_library_names_spec"
4355 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4356 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4357 acl_hardcode_direct="$acl_cv_hardcode_direct"
4358 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4359 # Check whether --enable-rpath was given.
4360 if test "${enable_rpath+set}" = set; then :
4361 enableval=$enable_rpath; :
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4374 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4375 # On Suns, sometimes $CPP names a directory.
4376 if test -n "$CPP" && test -d "$CPP"; then
4379 if test -z "$CPP"; then
4380 if ${ac_cv_prog_CPP+:} false; then :
4381 $as_echo_n "(cached) " >&6
4383 # Double quotes because CPP needs to be expanded
4384 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4387 for ac_c_preproc_warn_flag in '' yes
4389 # Use a header file that comes with gcc, so configuring glibc
4390 # with a fresh cross-compiler works.
4391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392 # <limits.h> exists even on freestanding compilers.
4393 # On the NeXT, cc -E runs the code through the compiler's parser,
4394 # not just through cpp. "Syntax error" is here to catch this case.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4398 # include <limits.h>
4400 # include <assert.h>
4404 if ac_fn_c_try_cpp "$LINENO"; then :
4407 # Broken: fails on valid input.
4410 rm -f conftest.err conftest.i conftest.$ac_ext
4412 # OK, works on sane cases. Now check whether nonexistent headers
4413 # can be detected and how.
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #include <ac_nonexistent.h>
4418 if ac_fn_c_try_cpp "$LINENO"; then :
4419 # Broken: success on invalid input.
4422 # Passes both tests.
4426 rm -f conftest.err conftest.i conftest.$ac_ext
4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430 rm -f conftest.i conftest.err conftest.$ac_ext
4431 if $ac_preproc_ok; then :
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4444 $as_echo "$CPP" >&6; }
4446 for ac_c_preproc_warn_flag in '' yes
4448 # Use a header file that comes with gcc, so configuring glibc
4449 # with a fresh cross-compiler works.
4450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451 # <limits.h> exists even on freestanding compilers.
4452 # On the NeXT, cc -E runs the code through the compiler's parser,
4453 # not just through cpp. "Syntax error" is here to catch this case.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4457 # include <limits.h>
4459 # include <assert.h>
4463 if ac_fn_c_try_cpp "$LINENO"; then :
4466 # Broken: fails on valid input.
4469 rm -f conftest.err conftest.i conftest.$ac_ext
4471 # OK, works on sane cases. Now check whether nonexistent headers
4472 # can be detected and how.
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475 #include <ac_nonexistent.h>
4477 if ac_fn_c_try_cpp "$LINENO"; then :
4478 # Broken: success on invalid input.
4481 # Passes both tests.
4485 rm -f conftest.err conftest.i conftest.$ac_ext
4488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4489 rm -f conftest.i conftest.err conftest.$ac_ext
4490 if $ac_preproc_ok; then :
4493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4496 See \`config.log' for more details" "$LINENO" 5; }
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4507 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4508 if ${ac_cv_path_GREP+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 if test -z "$GREP"; then
4512 ac_path_GREP_found=false
4513 # Loop through the user's path and test for each of PROGNAME-LIST
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518 test -z "$as_dir" && as_dir=.
4519 for ac_prog in grep ggrep; do
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4522 as_fn_executable_p "$ac_path_GREP" || continue
4523 # Check for GNU ac_path_GREP and select it if it is found.
4524 # Check for GNU $ac_path_GREP
4525 case `"$ac_path_GREP" --version 2>&1` in
4527 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4530 $as_echo_n 0123456789 >"conftest.in"
4533 cat "conftest.in" "conftest.in" >"conftest.tmp"
4534 mv "conftest.tmp" "conftest.in"
4535 cp "conftest.in" "conftest.nl"
4536 $as_echo 'GREP' >> "conftest.nl"
4537 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539 as_fn_arith $ac_count + 1 && ac_count=$as_val
4540 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4541 # Best one so far, save it but keep looking for a better one
4542 ac_cv_path_GREP="$ac_path_GREP"
4543 ac_path_GREP_max=$ac_count
4545 # 10*(2^10) chars as input seems more than enough
4546 test $ac_count -gt 10 && break
4548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551 $ac_path_GREP_found && break 3
4556 if test -z "$ac_cv_path_GREP"; then
4557 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4560 ac_cv_path_GREP=$GREP
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4565 $as_echo "$ac_cv_path_GREP" >&6; }
4566 GREP="$ac_cv_path_GREP"
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4570 $as_echo_n "checking for egrep... " >&6; }
4571 if ${ac_cv_path_EGREP+:} false; then :
4572 $as_echo_n "(cached) " >&6
4574 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4575 then ac_cv_path_EGREP="$GREP -E"
4577 if test -z "$EGREP"; then
4578 ac_path_EGREP_found=false
4579 # Loop through the user's path and test for each of PROGNAME-LIST
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584 test -z "$as_dir" && as_dir=.
4585 for ac_prog in egrep; do
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4588 as_fn_executable_p "$ac_path_EGREP" || continue
4589 # Check for GNU ac_path_EGREP and select it if it is found.
4590 # Check for GNU $ac_path_EGREP
4591 case `"$ac_path_EGREP" --version 2>&1` in
4593 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4596 $as_echo_n 0123456789 >"conftest.in"
4599 cat "conftest.in" "conftest.in" >"conftest.tmp"
4600 mv "conftest.tmp" "conftest.in"
4601 cp "conftest.in" "conftest.nl"
4602 $as_echo 'EGREP' >> "conftest.nl"
4603 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4605 as_fn_arith $ac_count + 1 && ac_count=$as_val
4606 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4607 # Best one so far, save it but keep looking for a better one
4608 ac_cv_path_EGREP="$ac_path_EGREP"
4609 ac_path_EGREP_max=$ac_count
4611 # 10*(2^10) chars as input seems more than enough
4612 test $ac_count -gt 10 && break
4614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 $ac_path_EGREP_found && break 3
4622 if test -z "$ac_cv_path_EGREP"; then
4623 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4626 ac_cv_path_EGREP=$EGREP
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4632 $as_echo "$ac_cv_path_EGREP" >&6; }
4633 EGREP="$ac_cv_path_EGREP"
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4643 $as_echo_n "checking for 64-bit host... " >&6; }
4644 if ${gl_cv_solaris_64bit+:} false; then :
4645 $as_echo_n "(cached) " >&6
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4656 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4657 gl_cv_solaris_64bit=yes
4659 gl_cv_solaris_64bit=no
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4666 $as_echo "$gl_cv_solaris_64bit" >&6; }
4667 if test $gl_cv_solaris_64bit = yes; then
4668 acl_libdirstem=lib/64
4670 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4671 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4676 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4677 if test -n "$searchpath"; then
4678 acl_save_IFS="${IFS= }"; IFS=":"
4679 for searchdir in $searchpath; do
4680 if test -d "$searchdir"; then
4681 case "$searchdir" in
4682 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4684 # Better ignore directories of this form. They are misleading.
4686 *) searchdir=`cd "$searchdir" && pwd`
4687 case "$searchdir" in
4688 */lib64 ) acl_libdirstem=lib64 ;;
4697 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4712 acl_save_prefix="$prefix"
4713 prefix="$acl_final_prefix"
4714 acl_save_exec_prefix="$exec_prefix"
4715 exec_prefix="$acl_final_exec_prefix"
4717 eval additional_includedir=\"$includedir\"
4718 eval additional_libdir=\"$libdir\"
4720 exec_prefix="$acl_save_exec_prefix"
4721 prefix="$acl_save_prefix"
4724 # Check whether --with-libiconv-prefix was given.
4725 if test "${with_libiconv_prefix+set}" = set; then :
4726 withval=$with_libiconv_prefix;
4727 if test "X$withval" = "Xno"; then
4730 if test "X$withval" = "X"; then
4732 acl_save_prefix="$prefix"
4733 prefix="$acl_final_prefix"
4734 acl_save_exec_prefix="$exec_prefix"
4735 exec_prefix="$acl_final_exec_prefix"
4737 eval additional_includedir=\"$includedir\"
4738 eval additional_libdir=\"$libdir\"
4740 exec_prefix="$acl_save_exec_prefix"
4741 prefix="$acl_save_prefix"
4744 additional_includedir="$withval/include"
4745 additional_libdir="$withval/$acl_libdirstem"
4746 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4747 && ! test -d "$withval/$acl_libdirstem"; then
4748 additional_libdir="$withval/$acl_libdirstem2"
4762 names_already_handled=
4763 names_next_round='iconv '
4764 while test -n "$names_next_round"; do
4765 names_this_round="$names_next_round"
4767 for name in $names_this_round; do
4769 for n in $names_already_handled; do
4770 if test "$n" = "$name"; then
4775 if test -z "$already_handled"; then
4776 names_already_handled="$names_already_handled $name"
4777 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4778 eval value=\"\$HAVE_LIB$uppername\"
4779 if test -n "$value"; then
4780 if test "$value" = yes; then
4781 eval value=\"\$LIB$uppername\"
4782 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4783 eval value=\"\$LTLIB$uppername\"
4784 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4793 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4794 if test -n "$acl_shlibext"; then
4795 shrext=".$acl_shlibext" # typically: shrext=.so
4799 if test $use_additional = yes; then
4800 dir="$additional_libdir"
4801 if test -n "$acl_shlibext"; then
4802 if test -f "$dir/$libname$shrext"; then
4804 found_so="$dir/$libname$shrext"
4806 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4807 ver=`(cd "$dir" && \
4808 for f in "$libname$shrext".*; do echo "$f"; done \
4809 | sed -e "s,^$libname$shrext\\\\.,," \
4810 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4811 | sed 1q ) 2>/dev/null`
4812 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4814 found_so="$dir/$libname$shrext.$ver"
4817 eval library_names=\"$acl_library_names_spec\"
4818 for f in $library_names; do
4819 if test -f "$dir/$f"; then
4828 if test "X$found_dir" = "X"; then
4829 if test -f "$dir/$libname.$acl_libext"; then
4831 found_a="$dir/$libname.$acl_libext"
4834 if test "X$found_dir" != "X"; then
4835 if test -f "$dir/$libname.la"; then
4836 found_la="$dir/$libname.la"
4840 if test "X$found_dir" = "X"; then
4841 for x in $LDFLAGS $LTLIBICONV; do
4843 acl_save_prefix="$prefix"
4844 prefix="$acl_final_prefix"
4845 acl_save_exec_prefix="$exec_prefix"
4846 exec_prefix="$acl_final_exec_prefix"
4848 exec_prefix="$acl_save_exec_prefix"
4849 prefix="$acl_save_prefix"
4853 dir=`echo "X$x" | sed -e 's/^X-L//'`
4854 if test -n "$acl_shlibext"; then
4855 if test -f "$dir/$libname$shrext"; then
4857 found_so="$dir/$libname$shrext"
4859 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4860 ver=`(cd "$dir" && \
4861 for f in "$libname$shrext".*; do echo "$f"; done \
4862 | sed -e "s,^$libname$shrext\\\\.,," \
4863 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4864 | sed 1q ) 2>/dev/null`
4865 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4867 found_so="$dir/$libname$shrext.$ver"
4870 eval library_names=\"$acl_library_names_spec\"
4871 for f in $library_names; do
4872 if test -f "$dir/$f"; then
4881 if test "X$found_dir" = "X"; then
4882 if test -f "$dir/$libname.$acl_libext"; then
4884 found_a="$dir/$libname.$acl_libext"
4887 if test "X$found_dir" != "X"; then
4888 if test -f "$dir/$libname.la"; then
4889 found_la="$dir/$libname.la"
4894 if test "X$found_dir" != "X"; then
4899 if test "X$found_dir" != "X"; then
4900 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4901 if test "X$found_so" != "X"; then
4902 if test "$enable_rpath" = no \
4903 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4904 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4905 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4908 for x in $ltrpathdirs; do
4909 if test "X$x" = "X$found_dir"; then
4914 if test -z "$haveit"; then
4915 ltrpathdirs="$ltrpathdirs $found_dir"
4917 if test "$acl_hardcode_direct" = yes; then
4918 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4920 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4921 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4923 for x in $rpathdirs; do
4924 if test "X$x" = "X$found_dir"; then
4929 if test -z "$haveit"; then
4930 rpathdirs="$rpathdirs $found_dir"
4934 for x in $LDFLAGS $LIBICONV; do
4936 acl_save_prefix="$prefix"
4937 prefix="$acl_final_prefix"
4938 acl_save_exec_prefix="$exec_prefix"
4939 exec_prefix="$acl_final_exec_prefix"
4941 exec_prefix="$acl_save_exec_prefix"
4942 prefix="$acl_save_prefix"
4944 if test "X$x" = "X-L$found_dir"; then
4949 if test -z "$haveit"; then
4950 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4952 if test "$acl_hardcode_minus_L" != no; then
4953 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4955 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4961 if test "X$found_a" != "X"; then
4962 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4964 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4967 additional_includedir=
4968 case "$found_dir" in
4969 */$acl_libdirstem | */$acl_libdirstem/)
4970 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4971 if test "$name" = 'iconv'; then
4972 LIBICONV_PREFIX="$basedir"
4974 additional_includedir="$basedir/include"
4976 */$acl_libdirstem2 | */$acl_libdirstem2/)
4977 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
4978 if test "$name" = 'iconv'; then
4979 LIBICONV_PREFIX="$basedir"
4981 additional_includedir="$basedir/include"
4984 if test "X$additional_includedir" != "X"; then
4985 if test "X$additional_includedir" != "X/usr/include"; then
4987 if test "X$additional_includedir" = "X/usr/local/include"; then
4988 if test -n "$GCC"; then
4990 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4994 if test -z "$haveit"; then
4995 for x in $CPPFLAGS $INCICONV; do
4997 acl_save_prefix="$prefix"
4998 prefix="$acl_final_prefix"
4999 acl_save_exec_prefix="$exec_prefix"
5000 exec_prefix="$acl_final_exec_prefix"
5002 exec_prefix="$acl_save_exec_prefix"
5003 prefix="$acl_save_prefix"
5005 if test "X$x" = "X-I$additional_includedir"; then
5010 if test -z "$haveit"; then
5011 if test -d "$additional_includedir"; then
5012 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5018 if test -n "$found_la"; then
5019 save_libdir="$libdir"
5021 */* | *\\*) . "$found_la" ;;
5022 *) . "./$found_la" ;;
5024 libdir="$save_libdir"
5025 for dep in $dependency_libs; do
5028 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5029 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5030 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5032 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5033 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5034 if test -n "$GCC"; then
5036 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5040 if test -z "$haveit"; then
5042 for x in $LDFLAGS $LIBICONV; do
5044 acl_save_prefix="$prefix"
5045 prefix="$acl_final_prefix"
5046 acl_save_exec_prefix="$exec_prefix"
5047 exec_prefix="$acl_final_exec_prefix"
5049 exec_prefix="$acl_save_exec_prefix"
5050 prefix="$acl_save_prefix"
5052 if test "X$x" = "X-L$additional_libdir"; then
5057 if test -z "$haveit"; then
5058 if test -d "$additional_libdir"; then
5059 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5063 for x in $LDFLAGS $LTLIBICONV; do
5065 acl_save_prefix="$prefix"
5066 prefix="$acl_final_prefix"
5067 acl_save_exec_prefix="$exec_prefix"
5068 exec_prefix="$acl_final_exec_prefix"
5070 exec_prefix="$acl_save_exec_prefix"
5071 prefix="$acl_save_prefix"
5073 if test "X$x" = "X-L$additional_libdir"; then
5078 if test -z "$haveit"; then
5079 if test -d "$additional_libdir"; then
5080 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5087 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5088 if test "$enable_rpath" != no; then
5090 for x in $rpathdirs; do
5091 if test "X$x" = "X$dir"; then
5096 if test -z "$haveit"; then
5097 rpathdirs="$rpathdirs $dir"
5100 for x in $ltrpathdirs; do
5101 if test "X$x" = "X$dir"; then
5106 if test -z "$haveit"; then
5107 ltrpathdirs="$ltrpathdirs $dir"
5112 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5115 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5118 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5119 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5125 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5126 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5132 if test "X$rpathdirs" != "X"; then
5133 if test -n "$acl_hardcode_libdir_separator"; then
5135 for found_dir in $rpathdirs; do
5136 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5138 acl_save_libdir="$libdir"
5140 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5141 libdir="$acl_save_libdir"
5142 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5144 for found_dir in $rpathdirs; do
5145 acl_save_libdir="$libdir"
5147 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5148 libdir="$acl_save_libdir"
5149 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5153 if test "X$ltrpathdirs" != "X"; then
5154 for found_dir in $ltrpathdirs; do
5155 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5190 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5191 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5192 $as_echo_n "(cached) " >&6
5194 gt_save_LIBS="$LIBS"
5195 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 #include <CoreFoundation/CFPreferences.h>
5202 CFPreferencesCopyAppValue(NULL, NULL)
5207 if ac_fn_c_try_link "$LINENO"; then :
5208 gt_cv_func_CFPreferencesCopyAppValue=yes
5210 gt_cv_func_CFPreferencesCopyAppValue=no
5212 rm -f core conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5214 LIBS="$gt_save_LIBS"
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5217 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5218 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5220 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5224 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5225 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5226 $as_echo_n "(cached) " >&6
5228 gt_save_LIBS="$LIBS"
5229 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #include <CoreFoundation/CFLocale.h>
5236 CFLocaleCopyCurrent();
5241 if ac_fn_c_try_link "$LINENO"; then :
5242 gt_cv_func_CFLocaleCopyCurrent=yes
5244 gt_cv_func_CFLocaleCopyCurrent=no
5246 rm -f core conftest.err conftest.$ac_objext \
5247 conftest$ac_exeext conftest.$ac_ext
5248 LIBS="$gt_save_LIBS"
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5251 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5252 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5254 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5258 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5259 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5271 case " $gt_needs " in
5272 *" need-formatstring-macros "*) gt_api_version=3 ;;
5273 *" need-ngettext "*) gt_api_version=2 ;;
5274 *) gt_api_version=1 ;;
5276 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5277 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5279 if test "$USE_NLS" = "yes"; then
5280 gt_use_preinstalled_gnugettext=no
5283 if test $gt_api_version -ge 3; then
5284 gt_revision_test_code='
5285 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5286 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5288 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5291 gt_revision_test_code=
5293 if test $gt_api_version -ge 2; then
5294 gt_expression_test_code=' + * ngettext ("", "", 0)'
5296 gt_expression_test_code=
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5300 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5301 if eval \${$gt_func_gnugettext_libc+:} false; then :
5302 $as_echo_n "(cached) " >&6
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <libintl.h>
5307 $gt_revision_test_code
5308 extern int _nl_msg_cat_cntr;
5309 extern int *_nl_domain_bindings;
5313 bindtextdomain ("", "");
5314 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5319 if ac_fn_c_try_link "$LINENO"; then :
5320 eval "$gt_func_gnugettext_libc=yes"
5322 eval "$gt_func_gnugettext_libc=no"
5324 rm -f core conftest.err conftest.$ac_objext \
5325 conftest$ac_exeext conftest.$ac_ext
5327 eval ac_res=\$$gt_func_gnugettext_libc
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5329 $as_echo "$ac_res" >&6; }
5331 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5337 am_save_CPPFLAGS="$CPPFLAGS"
5339 for element in $INCICONV; do
5341 for x in $CPPFLAGS; do
5343 acl_save_prefix="$prefix"
5344 prefix="$acl_final_prefix"
5345 acl_save_exec_prefix="$exec_prefix"
5346 exec_prefix="$acl_final_exec_prefix"
5348 exec_prefix="$acl_save_exec_prefix"
5349 prefix="$acl_save_prefix"
5351 if test "X$x" = "X$element"; then
5356 if test -z "$haveit"; then
5357 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5363 $as_echo_n "checking for iconv... " >&6; }
5364 if ${am_cv_func_iconv+:} false; then :
5365 $as_echo_n "(cached) " >&6
5368 am_cv_func_iconv="no, consider installing GNU libiconv"
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5377 iconv_t cd = iconv_open("","");
5378 iconv(cd,NULL,NULL,NULL,NULL);
5384 if ac_fn_c_try_link "$LINENO"; then :
5385 am_cv_func_iconv=yes
5387 rm -f core conftest.err conftest.$ac_objext \
5388 conftest$ac_exeext conftest.$ac_ext
5389 if test "$am_cv_func_iconv" != yes; then
5390 am_save_LIBS="$LIBS"
5391 LIBS="$LIBS $LIBICONV"
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5399 iconv_t cd = iconv_open("","");
5400 iconv(cd,NULL,NULL,NULL,NULL);
5406 if ac_fn_c_try_link "$LINENO"; then :
5408 am_cv_func_iconv=yes
5410 rm -f core conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5412 LIBS="$am_save_LIBS"
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5417 $as_echo "$am_cv_func_iconv" >&6; }
5418 if test "$am_cv_func_iconv" = yes; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5420 $as_echo_n "checking for working iconv... " >&6; }
5421 if ${am_cv_func_iconv_works+:} false; then :
5422 $as_echo_n "(cached) " >&6
5425 am_save_LIBS="$LIBS"
5426 if test $am_cv_lib_iconv = yes; then
5427 LIBS="$LIBS $LIBICONV"
5429 if test "$cross_compiling" = yes; then :
5431 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5432 *) am_cv_func_iconv_works="guessing yes" ;;
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5442 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5445 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5446 if (cd_utf8_to_88591 != (iconv_t)(-1))
5448 static const char input[] = "\342\202\254"; /* EURO SIGN */
5450 const char *inptr = input;
5451 size_t inbytesleft = strlen (input);
5453 size_t outbytesleft = sizeof (buf);
5454 size_t res = iconv (cd_utf8_to_88591,
5455 (char **) &inptr, &inbytesleft,
5456 &outptr, &outbytesleft);
5461 /* Test against Solaris 10 bug: Failures are not distinguishable from
5462 successful returns. */
5464 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5465 if (cd_ascii_to_88591 != (iconv_t)(-1))
5467 static const char input[] = "\263";
5469 const char *inptr = input;
5470 size_t inbytesleft = strlen (input);
5472 size_t outbytesleft = sizeof (buf);
5473 size_t res = iconv (cd_ascii_to_88591,
5474 (char **) &inptr, &inbytesleft,
5475 &outptr, &outbytesleft);
5480 #if 0 /* This bug could be worked around by the caller. */
5481 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5483 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5484 if (cd_88591_to_utf8 != (iconv_t)(-1))
5486 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5488 const char *inptr = input;
5489 size_t inbytesleft = strlen (input);
5491 size_t outbytesleft = sizeof (buf);
5492 size_t res = iconv (cd_88591_to_utf8,
5493 (char **) &inptr, &inbytesleft,
5494 &outptr, &outbytesleft);
5500 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5502 if (/* Try standardized names. */
5503 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5504 /* Try IRIX, OSF/1 names. */
5505 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5506 /* Try AIX names. */
5507 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5508 /* Try HP-UX names. */
5509 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5514 if ac_fn_c_try_run "$LINENO"; then :
5515 am_cv_func_iconv_works=yes
5517 am_cv_func_iconv_works=no
5519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5520 conftest.$ac_objext conftest.beam conftest.$ac_ext
5523 LIBS="$am_save_LIBS"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5527 $as_echo "$am_cv_func_iconv_works" >&6; }
5528 case "$am_cv_func_iconv_works" in
5529 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5530 *) am_func_iconv=yes ;;
5533 am_func_iconv=no am_cv_lib_iconv=no
5535 if test "$am_func_iconv" = yes; then
5537 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5540 if test "$am_cv_lib_iconv" = yes; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5542 $as_echo_n "checking how to link with libiconv... " >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5544 $as_echo "$LIBICONV" >&6; }
5546 CPPFLAGS="$am_save_CPPFLAGS"
5563 acl_save_prefix="$prefix"
5564 prefix="$acl_final_prefix"
5565 acl_save_exec_prefix="$exec_prefix"
5566 exec_prefix="$acl_final_exec_prefix"
5568 eval additional_includedir=\"$includedir\"
5569 eval additional_libdir=\"$libdir\"
5571 exec_prefix="$acl_save_exec_prefix"
5572 prefix="$acl_save_prefix"
5575 # Check whether --with-libintl-prefix was given.
5576 if test "${with_libintl_prefix+set}" = set; then :
5577 withval=$with_libintl_prefix;
5578 if test "X$withval" = "Xno"; then
5581 if test "X$withval" = "X"; then
5583 acl_save_prefix="$prefix"
5584 prefix="$acl_final_prefix"
5585 acl_save_exec_prefix="$exec_prefix"
5586 exec_prefix="$acl_final_exec_prefix"
5588 eval additional_includedir=\"$includedir\"
5589 eval additional_libdir=\"$libdir\"
5591 exec_prefix="$acl_save_exec_prefix"
5592 prefix="$acl_save_prefix"
5595 additional_includedir="$withval/include"
5596 additional_libdir="$withval/$acl_libdirstem"
5597 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5598 && ! test -d "$withval/$acl_libdirstem"; then
5599 additional_libdir="$withval/$acl_libdirstem2"
5613 names_already_handled=
5614 names_next_round='intl '
5615 while test -n "$names_next_round"; do
5616 names_this_round="$names_next_round"
5618 for name in $names_this_round; do
5620 for n in $names_already_handled; do
5621 if test "$n" = "$name"; then
5626 if test -z "$already_handled"; then
5627 names_already_handled="$names_already_handled $name"
5628 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5629 eval value=\"\$HAVE_LIB$uppername\"
5630 if test -n "$value"; then
5631 if test "$value" = yes; then
5632 eval value=\"\$LIB$uppername\"
5633 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5634 eval value=\"\$LTLIB$uppername\"
5635 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5644 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5645 if test -n "$acl_shlibext"; then
5646 shrext=".$acl_shlibext" # typically: shrext=.so
5650 if test $use_additional = yes; then
5651 dir="$additional_libdir"
5652 if test -n "$acl_shlibext"; then
5653 if test -f "$dir/$libname$shrext"; then
5655 found_so="$dir/$libname$shrext"
5657 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5658 ver=`(cd "$dir" && \
5659 for f in "$libname$shrext".*; do echo "$f"; done \
5660 | sed -e "s,^$libname$shrext\\\\.,," \
5661 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5662 | sed 1q ) 2>/dev/null`
5663 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5665 found_so="$dir/$libname$shrext.$ver"
5668 eval library_names=\"$acl_library_names_spec\"
5669 for f in $library_names; do
5670 if test -f "$dir/$f"; then
5679 if test "X$found_dir" = "X"; then
5680 if test -f "$dir/$libname.$acl_libext"; then
5682 found_a="$dir/$libname.$acl_libext"
5685 if test "X$found_dir" != "X"; then
5686 if test -f "$dir/$libname.la"; then
5687 found_la="$dir/$libname.la"
5691 if test "X$found_dir" = "X"; then
5692 for x in $LDFLAGS $LTLIBINTL; do
5694 acl_save_prefix="$prefix"
5695 prefix="$acl_final_prefix"
5696 acl_save_exec_prefix="$exec_prefix"
5697 exec_prefix="$acl_final_exec_prefix"
5699 exec_prefix="$acl_save_exec_prefix"
5700 prefix="$acl_save_prefix"
5704 dir=`echo "X$x" | sed -e 's/^X-L//'`
5705 if test -n "$acl_shlibext"; then
5706 if test -f "$dir/$libname$shrext"; then
5708 found_so="$dir/$libname$shrext"
5710 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5711 ver=`(cd "$dir" && \
5712 for f in "$libname$shrext".*; do echo "$f"; done \
5713 | sed -e "s,^$libname$shrext\\\\.,," \
5714 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5715 | sed 1q ) 2>/dev/null`
5716 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5718 found_so="$dir/$libname$shrext.$ver"
5721 eval library_names=\"$acl_library_names_spec\"
5722 for f in $library_names; do
5723 if test -f "$dir/$f"; then
5732 if test "X$found_dir" = "X"; then
5733 if test -f "$dir/$libname.$acl_libext"; then
5735 found_a="$dir/$libname.$acl_libext"
5738 if test "X$found_dir" != "X"; then
5739 if test -f "$dir/$libname.la"; then
5740 found_la="$dir/$libname.la"
5745 if test "X$found_dir" != "X"; then
5750 if test "X$found_dir" != "X"; then
5751 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5752 if test "X$found_so" != "X"; then
5753 if test "$enable_rpath" = no \
5754 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5755 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5756 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5759 for x in $ltrpathdirs; do
5760 if test "X$x" = "X$found_dir"; then
5765 if test -z "$haveit"; then
5766 ltrpathdirs="$ltrpathdirs $found_dir"
5768 if test "$acl_hardcode_direct" = yes; then
5769 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5771 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5772 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5774 for x in $rpathdirs; do
5775 if test "X$x" = "X$found_dir"; then
5780 if test -z "$haveit"; then
5781 rpathdirs="$rpathdirs $found_dir"
5785 for x in $LDFLAGS $LIBINTL; do
5787 acl_save_prefix="$prefix"
5788 prefix="$acl_final_prefix"
5789 acl_save_exec_prefix="$exec_prefix"
5790 exec_prefix="$acl_final_exec_prefix"
5792 exec_prefix="$acl_save_exec_prefix"
5793 prefix="$acl_save_prefix"
5795 if test "X$x" = "X-L$found_dir"; then
5800 if test -z "$haveit"; then
5801 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5803 if test "$acl_hardcode_minus_L" != no; then
5804 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5806 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5812 if test "X$found_a" != "X"; then
5813 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5815 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5818 additional_includedir=
5819 case "$found_dir" in
5820 */$acl_libdirstem | */$acl_libdirstem/)
5821 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5822 if test "$name" = 'intl'; then
5823 LIBINTL_PREFIX="$basedir"
5825 additional_includedir="$basedir/include"
5827 */$acl_libdirstem2 | */$acl_libdirstem2/)
5828 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5829 if test "$name" = 'intl'; then
5830 LIBINTL_PREFIX="$basedir"
5832 additional_includedir="$basedir/include"
5835 if test "X$additional_includedir" != "X"; then
5836 if test "X$additional_includedir" != "X/usr/include"; then
5838 if test "X$additional_includedir" = "X/usr/local/include"; then
5839 if test -n "$GCC"; then
5841 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5845 if test -z "$haveit"; then
5846 for x in $CPPFLAGS $INCINTL; do
5848 acl_save_prefix="$prefix"
5849 prefix="$acl_final_prefix"
5850 acl_save_exec_prefix="$exec_prefix"
5851 exec_prefix="$acl_final_exec_prefix"
5853 exec_prefix="$acl_save_exec_prefix"
5854 prefix="$acl_save_prefix"
5856 if test "X$x" = "X-I$additional_includedir"; then
5861 if test -z "$haveit"; then
5862 if test -d "$additional_includedir"; then
5863 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5869 if test -n "$found_la"; then
5870 save_libdir="$libdir"
5872 */* | *\\*) . "$found_la" ;;
5873 *) . "./$found_la" ;;
5875 libdir="$save_libdir"
5876 for dep in $dependency_libs; do
5879 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5880 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5881 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5883 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5884 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5885 if test -n "$GCC"; then
5887 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5891 if test -z "$haveit"; then
5893 for x in $LDFLAGS $LIBINTL; do
5895 acl_save_prefix="$prefix"
5896 prefix="$acl_final_prefix"
5897 acl_save_exec_prefix="$exec_prefix"
5898 exec_prefix="$acl_final_exec_prefix"
5900 exec_prefix="$acl_save_exec_prefix"
5901 prefix="$acl_save_prefix"
5903 if test "X$x" = "X-L$additional_libdir"; then
5908 if test -z "$haveit"; then
5909 if test -d "$additional_libdir"; then
5910 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5914 for x in $LDFLAGS $LTLIBINTL; do
5916 acl_save_prefix="$prefix"
5917 prefix="$acl_final_prefix"
5918 acl_save_exec_prefix="$exec_prefix"
5919 exec_prefix="$acl_final_exec_prefix"
5921 exec_prefix="$acl_save_exec_prefix"
5922 prefix="$acl_save_prefix"
5924 if test "X$x" = "X-L$additional_libdir"; then
5929 if test -z "$haveit"; then
5930 if test -d "$additional_libdir"; then
5931 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5938 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5939 if test "$enable_rpath" != no; then
5941 for x in $rpathdirs; do
5942 if test "X$x" = "X$dir"; then
5947 if test -z "$haveit"; then
5948 rpathdirs="$rpathdirs $dir"
5951 for x in $ltrpathdirs; do
5952 if test "X$x" = "X$dir"; then
5957 if test -z "$haveit"; then
5958 ltrpathdirs="$ltrpathdirs $dir"
5963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5966 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5969 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5970 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5976 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5977 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5983 if test "X$rpathdirs" != "X"; then
5984 if test -n "$acl_hardcode_libdir_separator"; then
5986 for found_dir in $rpathdirs; do
5987 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5989 acl_save_libdir="$libdir"
5991 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5992 libdir="$acl_save_libdir"
5993 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5995 for found_dir in $rpathdirs; do
5996 acl_save_libdir="$libdir"
5998 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5999 libdir="$acl_save_libdir"
6000 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6004 if test "X$ltrpathdirs" != "X"; then
6005 for found_dir in $ltrpathdirs; do
6006 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6016 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6017 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6018 $as_echo_n "(cached) " >&6
6020 gt_save_CPPFLAGS="$CPPFLAGS"
6021 CPPFLAGS="$CPPFLAGS $INCINTL"
6022 gt_save_LIBS="$LIBS"
6023 LIBS="$LIBS $LIBINTL"
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 #include <libintl.h>
6027 $gt_revision_test_code
6028 extern int _nl_msg_cat_cntr;
6033 const char *_nl_expand_alias (const char *);
6037 bindtextdomain ("", "");
6038 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6043 if ac_fn_c_try_link "$LINENO"; then :
6044 eval "$gt_func_gnugettext_libintl=yes"
6046 eval "$gt_func_gnugettext_libintl=no"
6048 rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6050 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6051 LIBS="$LIBS $LIBICONV"
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <libintl.h>
6055 $gt_revision_test_code
6056 extern int _nl_msg_cat_cntr;
6061 const char *_nl_expand_alias (const char *);
6065 bindtextdomain ("", "");
6066 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6071 if ac_fn_c_try_link "$LINENO"; then :
6072 LIBINTL="$LIBINTL $LIBICONV"
6073 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6074 eval "$gt_func_gnugettext_libintl=yes"
6077 rm -f core conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6080 CPPFLAGS="$gt_save_CPPFLAGS"
6081 LIBS="$gt_save_LIBS"
6083 eval ac_res=\$$gt_func_gnugettext_libintl
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6085 $as_echo "$ac_res" >&6; }
6088 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6089 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6090 && test "$PACKAGE" != gettext-runtime \
6091 && test "$PACKAGE" != gettext-tools; }; then
6092 gt_use_preinstalled_gnugettext=yes
6101 if test -n "$INTL_MACOSX_LIBS"; then
6102 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6103 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6104 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6105 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6109 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6110 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6112 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6120 $as_echo_n "checking whether to use NLS... " >&6; }
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6122 $as_echo "$USE_NLS" >&6; }
6123 if test "$USE_NLS" = "yes"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6125 $as_echo_n "checking where the gettext function comes from... " >&6; }
6126 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6127 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6128 gt_source="external libintl"
6133 gt_source="included intl directory"
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6136 $as_echo "$gt_source" >&6; }
6139 if test "$USE_NLS" = "yes"; then
6141 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6142 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6144 $as_echo_n "checking how to link with libintl... " >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6146 $as_echo "$LIBINTL" >&6; }
6148 for element in $INCINTL; do
6150 for x in $CPPFLAGS; do
6152 acl_save_prefix="$prefix"
6153 prefix="$acl_final_prefix"
6154 acl_save_exec_prefix="$exec_prefix"
6155 exec_prefix="$acl_final_exec_prefix"
6157 exec_prefix="$acl_save_exec_prefix"
6158 prefix="$acl_save_prefix"
6160 if test "X$x" = "X$element"; then
6165 if test -z "$haveit"; then
6166 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6173 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6176 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6195 if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
6198 $as_echo_n "checking for cross-compiler... " >&6; }
6200 which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
6201 which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
6202 && CC=${target_cpu}-${target-os}-gcc
6203 which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
6204 && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6207 $as_echo "$CC" >&6; }
6211 ac_cpp='$CPP $CPPFLAGS'
6212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_CC+:} false; then :
6221 $as_echo_n "(cached) " >&6
6223 if test -n "$CC"; then
6224 ac_cv_prog_CC="$CC" # Let the user override the test.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 if test -n "$CC"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6246 $as_echo "$CC" >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6254 if test -z "$ac_cv_prog_CC"; then
6256 # Extract the first word of "gcc", so it can be a program name with args.
6257 set dummy gcc; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 if test -n "$ac_ct_CC"; then
6264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_ac_ct_CC="gcc"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6284 if test -n "$ac_ct_CC"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6286 $as_echo "$ac_ct_CC" >&6; }
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6292 if test "x$ac_ct_CC" = x; then
6295 case $cross_compiling:$ac_tool_warned in
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6307 if test -z "$CC"; then
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}cc; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_prog_CC+:} false; then :
6314 $as_echo_n "(cached) " >&6
6316 if test -n "$CC"; then
6317 ac_cv_prog_CC="$CC" # Let the user override the test.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_CC="${ac_tool_prefix}cc"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 if test -n "$CC"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6339 $as_echo "$CC" >&6; }
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6348 if test -z "$CC"; then
6349 # Extract the first word of "cc", so it can be a program name with args.
6350 set dummy cc; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_CC+:} false; then :
6354 $as_echo_n "(cached) " >&6
6356 if test -n "$CC"; then
6357 ac_cv_prog_CC="$CC" # Let the user override the test.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6368 ac_prog_rejected=yes
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 if test $ac_prog_rejected = yes; then
6380 # We found a bogon in the path, so make sure we never use it.
6381 set dummy $ac_cv_prog_CC
6383 if test $# != 0; then
6384 # We chose a different compiler from the bogus one.
6385 # However, it has the same basename, so the bogon will be chosen
6386 # first if we set CC to just the basename; use the full file name.
6388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6394 if test -n "$CC"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6396 $as_echo "$CC" >&6; }
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test -z "$CC"; then
6405 if test -n "$ac_tool_prefix"; then
6406 for ac_prog in cl.exe
6408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_CC+:} false; then :
6413 $as_echo_n "(cached) " >&6
6415 if test -n "$CC"; then
6416 ac_cv_prog_CC="$CC" # Let the user override the test.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 if test -n "$CC"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6438 $as_echo "$CC" >&6; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6445 test -n "$CC" && break
6448 if test -z "$CC"; then
6450 for ac_prog in cl.exe
6452 # Extract the first word of "$ac_prog", so it can be a program name with args.
6453 set dummy $ac_prog; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6457 $as_echo_n "(cached) " >&6
6459 if test -n "$ac_ct_CC"; then
6460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_ac_ct_CC="$ac_prog"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6480 if test -n "$ac_ct_CC"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6482 $as_echo "$ac_ct_CC" >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6489 test -n "$ac_ct_CC" && break
6492 if test "x$ac_ct_CC" = x; then
6495 case $cross_compiling:$ac_tool_warned in
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499 ac_tool_warned=yes ;;
6508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6510 as_fn_error $? "no acceptable C compiler found in \$PATH
6511 See \`config.log' for more details" "$LINENO" 5; }
6513 # Provide some information about the compiler.
6514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6517 for ac_option in --version -v -V -qversion; do
6518 { { ac_try="$ac_compiler $ac_option >&5"
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6524 $as_echo "$ac_try_echo"; } >&5
6525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6527 if test -s conftest.err; then
6529 ... rest of stderr output deleted ...
6530 10q' conftest.err >conftest.er1
6531 cat conftest.er1 >&5
6533 rm -f conftest.er1 conftest.err
6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535 test $ac_status = 0; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6540 if ${ac_cv_c_compiler_gnu+:} false; then :
6541 $as_echo_n "(cached) " >&6
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6557 if ac_fn_c_try_compile "$LINENO"; then :
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6568 if test $ac_compiler_gnu = yes; then
6573 ac_test_CFLAGS=${CFLAGS+set}
6574 ac_save_CFLAGS=$CFLAGS
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6577 if ${ac_cv_prog_cc_g+:} false; then :
6578 $as_echo_n "(cached) " >&6
6580 ac_save_c_werror_flag=$ac_c_werror_flag
6581 ac_c_werror_flag=yes
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6595 if ac_fn_c_try_compile "$LINENO"; then :
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6610 if ac_fn_c_try_compile "$LINENO"; then :
6613 ac_c_werror_flag=$ac_save_c_werror_flag
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6626 if ac_fn_c_try_compile "$LINENO"; then :
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 ac_c_werror_flag=$ac_save_c_werror_flag
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6637 $as_echo "$ac_cv_prog_cc_g" >&6; }
6638 if test "$ac_test_CFLAGS" = set; then
6639 CFLAGS=$ac_save_CFLAGS
6640 elif test $ac_cv_prog_cc_g = yes; then
6641 if test "$GCC" = yes; then
6647 if test "$GCC" = yes; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6655 if ${ac_cv_prog_cc_c89+:} false; then :
6656 $as_echo_n "(cached) " >&6
6658 ac_cv_prog_cc_c89=no
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6666 struct buf { int x; };
6667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6668 static char *e (p, i)
6674 static char *f (char * (*g) (char **, int), char **p, ...)
6679 s = g (p, va_arg (v,int));
6684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6685 function prototypes and stuff, but not '\xHH' hex character constants.
6686 These don't provoke an error unfortunately, instead are silently treated
6687 as 'x'. The following induces an error, until -std is added to get
6688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6689 array size at least. It's necessary to write '\x00'==0 to get something
6690 that's true only with -std. */
6691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6694 inside strings and character constants. */
6696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6698 int test (int i, double x);
6699 struct s1 {int (*f) (int a);};
6700 struct s2 {int (*f) (double a);};
6701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6707 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6715 CC="$ac_save_CC $ac_arg"
6716 if ac_fn_c_try_compile "$LINENO"; then :
6717 ac_cv_prog_cc_c89=$ac_arg
6719 rm -f core conftest.err conftest.$ac_objext
6720 test "x$ac_cv_prog_cc_c89" != "xno" && break
6722 rm -f conftest.$ac_ext
6727 case "x$ac_cv_prog_cc_c89" in
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6730 $as_echo "none needed" >&6; } ;;
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6733 $as_echo "unsupported" >&6; } ;;
6735 CC="$CC $ac_cv_prog_cc_c89"
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6739 if test "x$ac_cv_prog_cc_c89" != xno; then :
6744 ac_cpp='$CPP $CPPFLAGS'
6745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6749 depcc="$CC" am_compiler_list=
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6752 $as_echo_n "checking dependency style of $depcc... " >&6; }
6753 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6757 # We make a subdir and do the tests there. Otherwise we can end up
6758 # making bogus files that we don't know about and never remove. For
6759 # instance it was reported that on HP-UX the gcc test will end up
6760 # making a dummy file named 'D' -- because '-MD' means "put the output
6764 # Copy depcomp to subdir because otherwise we won't find it if we're
6765 # using a relative directory.
6766 cp "$am_depcomp" conftest.dir
6768 # We will build objects and dependencies in a subdirectory because
6769 # it helps to detect inapplicable dependency modes. For instance
6770 # both Tru64's cc and ICC support -MD to output dependencies as a
6771 # side effect of compilation, but ICC will put the dependencies in
6772 # the current directory while Tru64 will put them in the object
6776 am_cv_CC_dependencies_compiler_type=none
6777 if test "$am_compiler_list" = ""; then
6778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6781 case " $depcc " in #(
6782 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6785 for depmode in $am_compiler_list; do
6786 # Setup a source with many dependencies, because some compilers
6787 # like to wrap large dependency lists on column 80 (with \), and
6788 # we should not choose a depcomp mode which is confused by this.
6790 # We need to recreate these files for each test, as the compiler may
6791 # overwrite some of them when testing with obscure command lines.
6792 # This happens at least with the AIX C compiler.
6794 for i in 1 2 3 4 5 6; do
6795 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6796 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6797 # Solaris 10 /bin/sh.
6798 echo '/* dummy */' > sub/conftst$i.h
6800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6802 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6803 # mode. It turns out that the SunPro C++ compiler does not properly
6804 # handle '-M -o', and we need to detect this. Also, some Intel
6805 # versions had trouble with output in subdirs.
6806 am__obj=sub/conftest.${OBJEXT-o}
6807 am__minus_obj="-o $am__obj"
6810 # This depmode causes a compiler race in universal mode.
6811 test "$am__universal" = false || continue
6814 # After this tag, mechanisms are not by side-effect, so they'll
6815 # only be used when explicitly requested.
6816 if test "x$enable_dependency_tracking" = xyes; then
6822 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6823 # This compiler won't grok '-c -o', but also, the minuso test has
6824 # not run yet. These depmodes are late enough in the game, and
6825 # so weak that their functioning should not be impacted.
6826 am__obj=conftest.${OBJEXT-o}
6831 if depmode=$depmode \
6832 source=sub/conftest.c object=$am__obj \
6833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6834 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6835 >/dev/null 2>conftest.err &&
6836 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6837 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6838 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6840 # icc doesn't choke on unknown options, it will just issue warnings
6841 # or remarks (even with -Werror). So we grep stderr for any message
6842 # that says an option was ignored or not supported.
6843 # When given -MP, icc 7.0 and 7.1 complain thusly:
6844 # icc: Command line warning: ignoring option '-M'; no argument required
6845 # The diagnosis changed in icc 8.0:
6846 # icc: Command line remark: option '-MP' not supported
6847 if (grep 'ignoring option' conftest.err ||
6848 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6849 am_cv_CC_dependencies_compiler_type=$depmode
6858 am_cv_CC_dependencies_compiler_type=none
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6863 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6864 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6867 test "x$enable_dependency_tracking" != xno \
6868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6870 am__fastdepCC_FALSE='#'
6872 am__fastdepCC_TRUE='#'
6873 am__fastdepCC_FALSE=
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6880 $as_echo_n "checking whether ln -s works... " >&6; }
6882 if test "$LN_S" = "ln -s"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6887 $as_echo "no, using $LN_S" >&6; }
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6891 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6892 if ${ac_cv_path_SED+:} false; then :
6893 $as_echo_n "(cached) " >&6
6895 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6896 for ac_i in 1 2 3 4 5 6 7; do
6897 ac_script="$ac_script$as_nl$ac_script"
6899 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6900 { ac_script=; unset ac_script;}
6901 if test -z "$SED"; then
6902 ac_path_SED_found=false
6903 # Loop through the user's path and test for each of PROGNAME-LIST
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_prog in sed gsed; do
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6912 as_fn_executable_p "$ac_path_SED" || continue
6913 # Check for GNU ac_path_SED and select it if it is found.
6914 # Check for GNU $ac_path_SED
6915 case `"$ac_path_SED" --version 2>&1` in
6917 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6920 $as_echo_n 0123456789 >"conftest.in"
6923 cat "conftest.in" "conftest.in" >"conftest.tmp"
6924 mv "conftest.tmp" "conftest.in"
6925 cp "conftest.in" "conftest.nl"
6926 $as_echo '' >> "conftest.nl"
6927 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6929 as_fn_arith $ac_count + 1 && ac_count=$as_val
6930 if test $ac_count -gt ${ac_path_SED_max-0}; then
6931 # Best one so far, save it but keep looking for a better one
6932 ac_cv_path_SED="$ac_path_SED"
6933 ac_path_SED_max=$ac_count
6935 # 10*(2^10) chars as input seems more than enough
6936 test $ac_count -gt 10 && break
6938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6941 $ac_path_SED_found && break 3
6946 if test -z "$ac_cv_path_SED"; then
6947 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6955 $as_echo "$ac_cv_path_SED" >&6; }
6956 SED="$ac_cv_path_SED"
6965 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6972 $as_echo_n "(cached) " >&6
6976 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6998 if test -n "$PKG_CONFIG"; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7000 $as_echo "$PKG_CONFIG" >&6; }
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7008 if test -z "$ac_cv_path_PKG_CONFIG"; then
7009 ac_pt_PKG_CONFIG=$PKG_CONFIG
7010 # Extract the first word of "pkg-config", so it can be a program name with args.
7011 set dummy pkg-config; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 case $ac_pt_PKG_CONFIG in
7019 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7041 if test -n "$ac_pt_PKG_CONFIG"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7043 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7049 if test "x$ac_pt_PKG_CONFIG" = x; then
7052 case $cross_compiling:$ac_tool_warned in
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7058 PKG_CONFIG=$ac_pt_PKG_CONFIG
7061 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7065 if test -n "$PKG_CONFIG"; then
7066 _pkg_min_version=0.9.0
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7068 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7069 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7071 $as_echo "yes" >&6; }
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7078 alsa_save_CFLAGS="$CFLAGS"
7079 alsa_save_LDFLAGS="$LDFLAGS"
7080 alsa_save_LIBS="$LIBS"
7084 # Check whether --with-alsa-prefix was given.
7085 if test "${with_alsa_prefix+set}" = set; then :
7086 withval=$with_alsa_prefix; alsa_prefix="$withval"
7093 # Check whether --with-alsa-inc-prefix was given.
7094 if test "${with_alsa_inc_prefix+set}" = set; then :
7095 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
7101 # Check whether --enable-alsatest was given.
7102 if test "${enable_alsatest+set}" = set; then :
7103 enableval=$enable_alsatest; enable_alsatest="$enableval"
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
7110 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
7111 if test "$alsa_inc_prefix" != "" ; then
7112 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
7113 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7116 $as_echo "$ALSA_CFLAGS" >&6; }
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
7119 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
7120 if test "$alsa_prefix" != "" ; then
7121 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
7122 LDFLAGS="$LDFLAGS $ALSA_LIBS"
7125 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
7126 LIBS="$ALSA_LIBS $LIBS"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7128 $as_echo "$ALSA_LIBS" >&6; }
7130 if test "x$enable_alsatest" = "xyes"; then
7131 min_alsa_version=1.0.27
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
7133 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
7135 alsa_min_major_version=`echo $min_alsa_version | \
7136 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7137 alsa_min_minor_version=`echo $min_alsa_version | \
7138 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7139 alsa_min_micro_version=`echo $min_alsa_version | \
7140 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7144 ac_cpp='$CPP $CPPFLAGS'
7145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7152 #include <alsa/asoundlib.h>
7158 /* ensure backward compatibility */
7159 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
7160 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
7162 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
7163 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
7165 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
7166 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
7169 # if(SND_LIB_MAJOR > $alsa_min_major_version)
7172 # if(SND_LIB_MAJOR < $alsa_min_major_version)
7176 # if(SND_LIB_MINOR > $alsa_min_minor_version)
7179 # if(SND_LIB_MINOR < $alsa_min_minor_version)
7183 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
7196 $as_echo "found." >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
7199 $as_echo "not present." >&6; }
7200 as_fn_error $? "Sufficiently new version of libasound not found." "$LINENO" 5
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 ac_cpp='$CPP $CPPFLAGS'
7207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7213 if test "x$enable_alsatest" = "xyes"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
7215 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
7216 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
7217 $as_echo_n "(cached) " >&6
7219 ac_check_lib_save_LIBS=$LIBS
7220 LIBS="-lasound $LIBS"
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7224 /* Override any GCC internal prototype to avoid an error.
7225 Use char because int might match the return type of a GCC
7226 builtin and then its argument prototype would still apply. */
7230 char snd_ctl_open ();
7234 return snd_ctl_open ();
7239 if ac_fn_c_try_link "$LINENO"; then :
7240 ac_cv_lib_asound_snd_ctl_open=yes
7242 ac_cv_lib_asound_snd_ctl_open=no
7244 rm -f core conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
7246 LIBS=$ac_check_lib_save_LIBS
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
7249 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
7250 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
7251 cat >>confdefs.h <<_ACEOF
7252 #define HAVE_LIBASOUND 1
7255 LIBS="-lasound $LIBS"
7258 as_fn_error $? "No linkable libasound was found." "$LINENO" 5
7265 if test "x$alsa_found" = "xyes" ; then
7267 LIBS=`echo $LIBS | sed 's/-lasound//g'`
7268 LIBS=`echo $LIBS | sed 's/ //'`
7269 LIBS="-lasound $LIBS"
7271 if test "x$alsa_found" = "xno" ; then
7273 CFLAGS="$alsa_save_CFLAGS"
7274 LDFLAGS="$alsa_save_LDFLAGS"
7275 LIBS="$alsa_save_LIBS"
7283 if test "x$enable_alsatest" = "xyes"; then
7284 ac_fn_c_check_func "$LINENO" "snd_ctl_elem_add_enumerated" "ac_cv_func_snd_ctl_elem_add_enumerated"
7285 if test "x$ac_cv_func_snd_ctl_elem_add_enumerated" = xyes; then :
7288 as_fn_error $? "No user enum control support in alsa-lib" "$LINENO" 5
7293 for ac_header in alsa/pcm.h
7295 ac_fn_c_check_header_compile "$LINENO" "alsa/pcm.h" "ac_cv_header_alsa_pcm_h" "#include <alsa/asoundlib.h>
7297 if test "x$ac_cv_header_alsa_pcm_h" = xyes; then :
7298 cat >>confdefs.h <<_ACEOF
7299 #define HAVE_ALSA_PCM_H 1
7308 for ac_header in alsa/mixer.h
7310 ac_fn_c_check_header_compile "$LINENO" "alsa/mixer.h" "ac_cv_header_alsa_mixer_h" "#include <alsa/asoundlib.h>
7312 if test "x$ac_cv_header_alsa_mixer_h" = xyes; then :
7313 cat >>confdefs.h <<_ACEOF
7314 #define HAVE_ALSA_MIXER_H 1
7323 for ac_header in alsa/rawmidi.h
7325 ac_fn_c_check_header_compile "$LINENO" "alsa/rawmidi.h" "ac_cv_header_alsa_rawmidi_h" "#include <alsa/asoundlib.h>
7327 if test "x$ac_cv_header_alsa_rawmidi_h" = xyes; then :
7328 cat >>confdefs.h <<_ACEOF
7329 #define HAVE_ALSA_RAWMIDI_H 1
7338 for ac_header in alsa/seq.h
7340 ac_fn_c_check_header_compile "$LINENO" "alsa/seq.h" "ac_cv_header_alsa_seq_h" "#include <alsa/asoundlib.h>
7342 if test "x$ac_cv_header_alsa_seq_h" = xyes; then :
7343 cat >>confdefs.h <<_ACEOF
7344 #define HAVE_ALSA_SEQ_H 1
7353 for ac_header in alsa/use-case.h
7355 ac_fn_c_check_header_compile "$LINENO" "alsa/use-case.h" "ac_cv_header_alsa_use_case_h" "#include <alsa/asoundlib.h>
7357 if test "x$ac_cv_header_alsa_use_case_h" = xyes; then :
7358 cat >>confdefs.h <<_ACEOF
7359 #define HAVE_ALSA_USE_CASE_H 1
7368 for ac_header in samplerate.h
7370 ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "#include <samplerate.h>
7372 if test "x$ac_cv_header_samplerate_h" = xyes; then :
7373 cat >>confdefs.h <<_ACEOF
7374 #define HAVE_SAMPLERATE_H 1
7376 have_samplerate="yes"
7378 have_samplerate="no"
7384 if test "$have_pcm" = "yes"; then
7392 if test "$have_mixer" = "yes"; then
7394 HAVE_MIXER_FALSE='#'
7400 if test "$have_rawmidi" = "yes"; then
7402 HAVE_RAWMIDI_FALSE='#'
7404 HAVE_RAWMIDI_TRUE='#'
7408 if test "$have_seq" = "yes"; then
7416 if test "$have_ucm" = "yes"; then
7424 if test "$have_samplerate" = "yes"; then
7425 HAVE_SAMPLERATE_TRUE=
7426 HAVE_SAMPLERATE_FALSE='#'
7428 HAVE_SAMPLERATE_TRUE='#'
7429 HAVE_SAMPLERATE_FALSE=
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
7435 $as_echo_n "checking for librt... " >&6; }
7437 # Check whether --with-librt was given.
7438 if test "${with_librt+set}" = set; then :
7439 withval=$with_librt; have_librt="$withval"
7444 if test "$have_librt" = "yes"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
7446 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
7447 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 ac_check_lib_save_LIBS=$LIBS
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7455 /* Override any GCC internal prototype to avoid an error.
7456 Use char because int might match the return type of a GCC
7457 builtin and then its argument prototype would still apply. */
7461 char clock_gettime ();
7465 return clock_gettime ();
7470 if ac_fn_c_try_link "$LINENO"; then :
7471 ac_cv_lib_rt_clock_gettime=yes
7473 ac_cv_lib_rt_clock_gettime=no
7475 rm -f core conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
7477 LIBS=$ac_check_lib_save_LIBS
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
7480 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
7481 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
7485 if test "$HAVE_LIBRT" = "yes" ; then
7488 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
7491 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7503 if test "$have_mixer" = "yes"; then
7504 # Check whether --enable-alsamixer was given.
7505 if test "${enable_alsamixer+set}" = set; then :
7506 enableval=$enable_alsamixer; case "${enableval}" in
7507 yes) alsamixer=true ;;
7508 no) alsamixer=false ;;
7509 *) as_fn_error $? "bad value ${enableval} for --enable-alsamixer" "$LINENO" 5 ;;
7516 if test x$alsamixer = xtrue; then
7525 # Check whether --enable-alsaconf was given.
7526 if test "${enable_alsaconf+set}" = set; then :
7527 enableval=$enable_alsaconf; case "${enableval}" in
7528 yes) alsaconf=true ;;
7529 no) alsaconf=false ;;
7530 *) as_fn_error $? "bad value ${enableval} for --enable-alsaconf" "$LINENO" 5 ;;
7536 if test x$alsaconf = xtrue; then
7545 # Check whether --enable-alsaloop was given.
7546 if test "${enable_alsaloop+set}" = set; then :
7547 enableval=$enable_alsaloop; case "${enableval}" in
7548 yes) alsaloop=true ;;
7549 no) alsaloop=false ;;
7550 *) as_fn_error $? "bad value ${enableval} for --enable-alsaloop" "$LINENO" 5 ;;
7556 if test x$alsaloop = xtrue; then
7566 # Check whether --enable-xmlto was given.
7567 if test "${enable_xmlto+set}" = set; then :
7568 enableval=$enable_xmlto; xmlto="$enableval"
7573 if test "$xmlto" = "yes"; then
7574 # Extract the first word of "xmlto", so it can be a program name with args.
7575 set dummy xmlto; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_xmlto+:} false; then :
7579 $as_echo_n "(cached) " >&6
7581 if test -n "$xmlto"; then
7582 ac_cv_prog_xmlto="$xmlto" # Let the user override the test.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_xmlto="yes"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 xmlto=$ac_cv_prog_xmlto
7602 if test -n "$xmlto"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto" >&5
7604 $as_echo "$xmlto" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7612 if test x"$xmlto" = xyes; then
7622 # Check whether --with-udev-rules-dir was given.
7623 if test "${with_udev_rules_dir+set}" = set; then :
7624 withval=$with_udev_rules_dir; udevrulesdir="$withval"
7626 udevdir=$($PKG_CONFIG udev --variable=udevdir)
7627 if test "x$udevdir" = "x"; then
7628 udevrulesdir="/lib/udev/rules.d"
7630 udevrulesdir="$udevdir/rules.d"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7637 $as_echo_n "checking for ANSI C header files... " >&6; }
7638 if ${ac_cv_header_stdc+:} false; then :
7639 $as_echo_n "(cached) " >&6
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7656 if ac_fn_c_try_compile "$LINENO"; then :
7657 ac_cv_header_stdc=yes
7659 ac_cv_header_stdc=no
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 if test $ac_cv_header_stdc = yes; then
7664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7671 $EGREP "memchr" >/dev/null 2>&1; then :
7674 ac_cv_header_stdc=no
7680 if test $ac_cv_header_stdc = yes; then
7681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7688 $EGREP "free" >/dev/null 2>&1; then :
7691 ac_cv_header_stdc=no
7697 if test $ac_cv_header_stdc = yes; then
7698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7699 if test "$cross_compiling" = yes; then :
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7706 #if ((' ' & 0x0FF) == 0x020)
7707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7710 # define ISLOWER(c) \
7711 (('a' <= (c) && (c) <= 'i') \
7712 || ('j' <= (c) && (c) <= 'r') \
7713 || ('s' <= (c) && (c) <= 'z'))
7714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7722 for (i = 0; i < 256; i++)
7723 if (XOR (islower (i), ISLOWER (i))
7724 || toupper (i) != TOUPPER (i))
7729 if ac_fn_c_try_run "$LINENO"; then :
7732 ac_cv_header_stdc=no
7734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7735 conftest.$ac_objext conftest.beam conftest.$ac_ext
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7741 $as_echo "$ac_cv_header_stdc" >&6; }
7742 if test $ac_cv_header_stdc = yes; then
7744 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7748 if test x$alsamixer = xtrue; then
7750 # Check whether --with-curses was given.
7751 if test "${with_curses+set}" = set; then :
7752 withval=$with_curses; curseslib="$withval"
7760 if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCURSESW" >&5
7764 $as_echo_n "checking for NCURSESW... " >&6; }
7766 if test -n "$NCURSESW_CFLAGS"; then
7767 pkg_cv_NCURSESW_CFLAGS="$NCURSESW_CFLAGS"
7768 elif test -n "$PKG_CONFIG"; then
7769 if test -n "$PKG_CONFIG" && \
7770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
7771 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
7773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7774 test $ac_status = 0; }; then
7775 pkg_cv_NCURSESW_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
7782 if test -n "$NCURSESW_LIBS"; then
7783 pkg_cv_NCURSESW_LIBS="$NCURSESW_LIBS"
7784 elif test -n "$PKG_CONFIG"; then
7785 if test -n "$PKG_CONFIG" && \
7786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
7787 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
7789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7790 test $ac_status = 0; }; then
7791 pkg_cv_NCURSESW_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
7801 if test $pkg_failed = yes; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7805 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7806 _pkg_short_errors_supported=yes
7808 _pkg_short_errors_supported=no
7810 if test $_pkg_short_errors_supported = yes; then
7811 NCURSESW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ncursesw" 2>&1`
7813 NCURSESW_PKG_ERRORS=`$PKG_CONFIG --print-errors "ncursesw" 2>&1`
7815 # Put the nasty error message in config.log where it belongs
7816 echo "$NCURSESW_PKG_ERRORS" >&5
7819 # Extract the first word of "ncursesw5-config", so it can be a program name with args.
7820 set dummy ncursesw5-config; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if ${ac_cv_prog_ncursesw5_config+:} false; then :
7824 $as_echo_n "(cached) " >&6
7826 if test -n "$ncursesw5_config"; then
7827 ac_cv_prog_ncursesw5_config="$ncursesw5_config" # Let the user override the test.
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7836 ac_cv_prog_ncursesw5_config="yes"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 ncursesw5_config=$ac_cv_prog_ncursesw5_config
7847 if test -n "$ncursesw5_config"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncursesw5_config" >&5
7849 $as_echo "$ncursesw5_config" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7856 if test "$ncursesw5_config" = "yes"; then
7857 CURSESINC="<ncurses.h>"
7858 CURSESLIB=`ncursesw5-config --libs`
7859 CURSESLIBDIR=`ncursesw5-config --libdir`
7860 CURSES_CFLAGS=`ncursesw5-config --cflags`
7861 curseslib="ncursesw"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7864 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7865 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7866 $as_echo_n "(cached) " >&6
7868 ac_check_lib_save_LIBS=$LIBS
7869 LIBS="-lncursesw $LIBS"
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7873 /* Override any GCC internal prototype to avoid an error.
7874 Use char because int might match the return type of a GCC
7875 builtin and then its argument prototype would still apply. */
7888 if ac_fn_c_try_link "$LINENO"; then :
7889 ac_cv_lib_ncursesw_initscr=yes
7891 ac_cv_lib_ncursesw_initscr=no
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 LIBS=$ac_check_lib_save_LIBS
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7898 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7899 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7900 CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"
7905 elif test $pkg_failed = untried; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7909 # Extract the first word of "ncursesw5-config", so it can be a program name with args.
7910 set dummy ncursesw5-config; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_ncursesw5_config+:} false; then :
7914 $as_echo_n "(cached) " >&6
7916 if test -n "$ncursesw5_config"; then
7917 ac_cv_prog_ncursesw5_config="$ncursesw5_config" # Let the user override the test.
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_ncursesw5_config="yes"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 ncursesw5_config=$ac_cv_prog_ncursesw5_config
7937 if test -n "$ncursesw5_config"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncursesw5_config" >&5
7939 $as_echo "$ncursesw5_config" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7946 if test "$ncursesw5_config" = "yes"; then
7947 CURSESINC="<ncurses.h>"
7948 CURSESLIB=`ncursesw5-config --libs`
7949 CURSESLIBDIR=`ncursesw5-config --libdir`
7950 CURSES_CFLAGS=`ncursesw5-config --cflags`
7951 curseslib="ncursesw"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7954 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7955 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7956 $as_echo_n "(cached) " >&6
7958 ac_check_lib_save_LIBS=$LIBS
7959 LIBS="-lncursesw $LIBS"
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7963 /* Override any GCC internal prototype to avoid an error.
7964 Use char because int might match the return type of a GCC
7965 builtin and then its argument prototype would still apply. */
7978 if ac_fn_c_try_link "$LINENO"; then :
7979 ac_cv_lib_ncursesw_initscr=yes
7981 ac_cv_lib_ncursesw_initscr=no
7983 rm -f core conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985 LIBS=$ac_check_lib_save_LIBS
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7988 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7989 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7990 CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"
7996 NCURSESW_CFLAGS=$pkg_cv_NCURSESW_CFLAGS
7997 NCURSESW_LIBS=$pkg_cv_NCURSESW_LIBS
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7999 $as_echo "yes" >&6; }
8001 CURSESINC="<ncurses.h>"
8002 CURSESLIB="${NCURSESW_LIBS}"
8004 CURSES_CFLAGS="${NCURSESW_CFLAGS}"
8005 curseslib="ncursesw"
8008 if test -n "$CURSESINC"; then
8009 NCURSESLIBSUFFIX="w"
8013 if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCURSES" >&5
8017 $as_echo_n "checking for NCURSES... " >&6; }
8019 if test -n "$NCURSES_CFLAGS"; then
8020 pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
8021 elif test -n "$PKG_CONFIG"; then
8022 if test -n "$PKG_CONFIG" && \
8023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
8024 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
8026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8027 test $ac_status = 0; }; then
8028 pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
8035 if test -n "$NCURSES_LIBS"; then
8036 pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
8037 elif test -n "$PKG_CONFIG"; then
8038 if test -n "$PKG_CONFIG" && \
8039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
8040 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
8042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8043 test $ac_status = 0; }; then
8044 pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
8054 if test $pkg_failed = yes; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8058 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8059 _pkg_short_errors_supported=yes
8061 _pkg_short_errors_supported=no
8063 if test $_pkg_short_errors_supported = yes; then
8064 NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ncurses" 2>&1`
8066 NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors "ncurses" 2>&1`
8068 # Put the nasty error message in config.log where it belongs
8069 echo "$NCURSES_PKG_ERRORS" >&5
8072 # Extract the first word of "ncurses5-config", so it can be a program name with args.
8073 set dummy ncurses5-config; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if ${ac_cv_prog_ncurses5_config+:} false; then :
8077 $as_echo_n "(cached) " >&6
8079 if test -n "$ncurses5_config"; then
8080 ac_cv_prog_ncurses5_config="$ncurses5_config" # Let the user override the test.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 ac_cv_prog_ncurses5_config="yes"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 ncurses5_config=$ac_cv_prog_ncurses5_config
8100 if test -n "$ncurses5_config"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncurses5_config" >&5
8102 $as_echo "$ncurses5_config" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8109 if test "$ncurses5_config" = "yes"; then
8110 CURSESINC="<ncurses.h>"
8111 CURSESLIB=`ncurses5-config --libs`
8112 CURSESLIBDIR=`ncurses5-config --libdir`
8113 CURSES_CFLAGS=`ncurses5-config --cflags`
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
8117 $as_echo_n "checking for initscr in -lncurses... " >&6; }
8118 if ${ac_cv_lib_ncurses_initscr+:} false; then :
8119 $as_echo_n "(cached) " >&6
8121 ac_check_lib_save_LIBS=$LIBS
8122 LIBS="-lncurses $LIBS"
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8126 /* Override any GCC internal prototype to avoid an error.
8127 Use char because int might match the return type of a GCC
8128 builtin and then its argument prototype would still apply. */
8141 if ac_fn_c_try_link "$LINENO"; then :
8142 ac_cv_lib_ncurses_initscr=yes
8144 ac_cv_lib_ncurses_initscr=no
8146 rm -f core conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8148 LIBS=$ac_check_lib_save_LIBS
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
8151 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
8152 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
8153 CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"
8158 elif test $pkg_failed = untried; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8162 # Extract the first word of "ncurses5-config", so it can be a program name with args.
8163 set dummy ncurses5-config; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if ${ac_cv_prog_ncurses5_config+:} false; then :
8167 $as_echo_n "(cached) " >&6
8169 if test -n "$ncurses5_config"; then
8170 ac_cv_prog_ncurses5_config="$ncurses5_config" # Let the user override the test.
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_ncurses5_config="yes"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 ncurses5_config=$ac_cv_prog_ncurses5_config
8190 if test -n "$ncurses5_config"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncurses5_config" >&5
8192 $as_echo "$ncurses5_config" >&6; }
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8199 if test "$ncurses5_config" = "yes"; then
8200 CURSESINC="<ncurses.h>"
8201 CURSESLIB=`ncurses5-config --libs`
8202 CURSESLIBDIR=`ncurses5-config --libdir`
8203 CURSES_CFLAGS=`ncurses5-config --cflags`
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
8207 $as_echo_n "checking for initscr in -lncurses... " >&6; }
8208 if ${ac_cv_lib_ncurses_initscr+:} false; then :
8209 $as_echo_n "(cached) " >&6
8211 ac_check_lib_save_LIBS=$LIBS
8212 LIBS="-lncurses $LIBS"
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8216 /* Override any GCC internal prototype to avoid an error.
8217 Use char because int might match the return type of a GCC
8218 builtin and then its argument prototype would still apply. */
8231 if ac_fn_c_try_link "$LINENO"; then :
8232 ac_cv_lib_ncurses_initscr=yes
8234 ac_cv_lib_ncurses_initscr=no
8236 rm -f core conftest.err conftest.$ac_objext \
8237 conftest$ac_exeext conftest.$ac_ext
8238 LIBS=$ac_check_lib_save_LIBS
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
8241 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
8242 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
8243 CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"
8249 NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
8250 NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8252 $as_echo "yes" >&6; }
8254 CURSESINC="<ncurses.h>"
8255 CURSESLIB="${NCURSES_LIBS}"
8257 CURSES_CFLAGS="${NCURSES_CFLAGS}"
8262 if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
8264 $as_echo_n "checking for initscr in -lcurses... " >&6; }
8265 if ${ac_cv_lib_curses_initscr+:} false; then :
8266 $as_echo_n "(cached) " >&6
8268 ac_check_lib_save_LIBS=$LIBS
8269 LIBS="-lcurses $LIBS"
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8273 /* Override any GCC internal prototype to avoid an error.
8274 Use char because int might match the return type of a GCC
8275 builtin and then its argument prototype would still apply. */
8288 if ac_fn_c_try_link "$LINENO"; then :
8289 ac_cv_lib_curses_initscr=yes
8291 ac_cv_lib_curses_initscr=no
8293 rm -f core conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295 LIBS=$ac_check_lib_save_LIBS
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
8298 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
8299 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
8300 CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"
8304 if test -z "$CURSESINC"; then
8305 as_fn_error $? "this packages requires a curses library" "$LINENO" 5
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses library" >&5
8309 $as_echo_n "checking for curses library... " >&6; }
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curseslib" >&5
8311 $as_echo "$curseslib" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses header name" >&5
8313 $as_echo_n "checking for curses header name... " >&6; }
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESINC" >&5
8315 $as_echo "$CURSESINC" >&6; }
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses compiler flags" >&5
8317 $as_echo_n "checking for curses compiler flags... " >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_CFLAGS" >&5
8319 $as_echo "$CURSES_CFLAGS" >&6; }
8321 if test -n "$CURSESLIBDIR"; then
8322 if test "-L$CURSESLIBDIR " = "$(echo $CURSESLIB | cut -c-$((${#CURSESLIBDIR}+3)) )"; then
8323 CURSESLIB="$(echo $CURSESLIB | cut -c$((${#CURSESLIBDIR}+4))-)"
8327 saved_CFLAGS="$CFLAGS"
8328 saved_LDFLAGS="$LDFLAGS"
8330 CFLAGS="$CFLAGS $CURSES_CFLAGS"
8331 if test -n "$CURSESLIBDIR"; then
8332 LDFLAGS="$LDFLAGS -L$CURSESLIBDIR"
8334 LIBS="$CURSESLIB $LIBS"
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8347 if ac_fn_c_try_link "$LINENO"; then :
8348 HAVE_CURSES_ESCDELAY="yes"
8350 rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8352 if test "$HAVE_CURSES_ESCDELAY" = "yes"; then
8354 $as_echo "#define HAVE_CURSES_ESCDELAY 1" >>confdefs.h
8358 if test "$USE_NLS" = "yes"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses NLS support" >&5
8360 $as_echo_n "checking for curses NLS support... " >&6; }
8361 if test "$curseslib" = "curses"; then
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8365 #define _XOPEN_SOURCE 1
8366 #define _XOPEN_SOURCE_EXTENDED 1
8374 setcchar(&wc, L"x", A_NORMAL, 0, 0);
8380 if ac_fn_c_try_link "$LINENO"; then :
8383 rm -f core conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_NLS" >&5
8387 $as_echo "$CURSES_NLS" >&6; }
8388 if test "$CURSES_NLS" = "yes"; then
8390 $as_echo "#define ENABLE_NLS_IN_CURSES 1" >>confdefs.h
8395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8397 inttypes.h stdint.h unistd.h
8399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8402 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8403 cat >>confdefs.h <<_ACEOF
8404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8412 for ac_header in panel.h menu.h form.h
8414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8417 cat >>confdefs.h <<_ACEOF
8418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8422 as_fn_error $? "required curses helper header not found" "$LINENO" 5
8427 as_ac_Lib=`$as_echo "ac_cv_lib_panel$NCURSESLIBSUFFIX''_new_panel" | $as_tr_sh`
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_panel in -lpanel$NCURSESLIBSUFFIX" >&5
8429 $as_echo_n "checking for new_panel in -lpanel$NCURSESLIBSUFFIX... " >&6; }
8430 if eval \${$as_ac_Lib+:} false; then :
8431 $as_echo_n "(cached) " >&6
8433 ac_check_lib_save_LIBS=$LIBS
8434 LIBS="-lpanel$NCURSESLIBSUFFIX $LIBS"
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8438 /* Override any GCC internal prototype to avoid an error.
8439 Use char because int might match the return type of a GCC
8440 builtin and then its argument prototype would still apply. */
8448 return new_panel ();
8453 if ac_fn_c_try_link "$LINENO"; then :
8454 eval "$as_ac_Lib=yes"
8456 eval "$as_ac_Lib=no"
8458 rm -f core conftest.err conftest.$ac_objext \
8459 conftest$ac_exeext conftest.$ac_ext
8460 LIBS=$ac_check_lib_save_LIBS
8462 eval ac_res=\$$as_ac_Lib
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8464 $as_echo "$ac_res" >&6; }
8465 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8466 CURSESLIB="-lpanel$NCURSESLIBSUFFIX $CURSESLIB"
8468 as_fn_error $? "panel$NCURSESLIBSUFFIX library not found" "$LINENO" 5
8471 as_ac_Lib=`$as_echo "ac_cv_lib_menu$NCURSESLIBSUFFIX''_new_menu" | $as_tr_sh`
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_menu in -lmenu$NCURSESLIBSUFFIX" >&5
8473 $as_echo_n "checking for new_menu in -lmenu$NCURSESLIBSUFFIX... " >&6; }
8474 if eval \${$as_ac_Lib+:} false; then :
8475 $as_echo_n "(cached) " >&6
8477 ac_check_lib_save_LIBS=$LIBS
8478 LIBS="-lmenu$NCURSESLIBSUFFIX $LIBS"
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8482 /* Override any GCC internal prototype to avoid an error.
8483 Use char because int might match the return type of a GCC
8484 builtin and then its argument prototype would still apply. */
8497 if ac_fn_c_try_link "$LINENO"; then :
8498 eval "$as_ac_Lib=yes"
8500 eval "$as_ac_Lib=no"
8502 rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504 LIBS=$ac_check_lib_save_LIBS
8506 eval ac_res=\$$as_ac_Lib
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8508 $as_echo "$ac_res" >&6; }
8509 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8510 CURSESLIB="-lmenu$NCURSESLIBSUFFIX $CURSESLIB"
8512 as_fn_error $? "menu$NCURSESLIBSUFFIX library not found" "$LINENO" 5
8515 as_ac_Lib=`$as_echo "ac_cv_lib_form$NCURSESLIBSUFFIX''_new_form" | $as_tr_sh`
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_form in -lform$NCURSESLIBSUFFIX" >&5
8517 $as_echo_n "checking for new_form in -lform$NCURSESLIBSUFFIX... " >&6; }
8518 if eval \${$as_ac_Lib+:} false; then :
8519 $as_echo_n "(cached) " >&6
8521 ac_check_lib_save_LIBS=$LIBS
8522 LIBS="-lform$NCURSESLIBSUFFIX $LIBS"
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8526 /* Override any GCC internal prototype to avoid an error.
8527 Use char because int might match the return type of a GCC
8528 builtin and then its argument prototype would still apply. */
8541 if ac_fn_c_try_link "$LINENO"; then :
8542 eval "$as_ac_Lib=yes"
8544 eval "$as_ac_Lib=no"
8546 rm -f core conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
8548 LIBS=$ac_check_lib_save_LIBS
8550 eval ac_res=\$$as_ac_Lib
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8552 $as_echo "$ac_res" >&6; }
8553 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8554 CURSESLIB="-lform$NCURSESLIBSUFFIX $CURSESLIB"
8556 as_fn_error $? "form$NCURSESLIBSUFFIX library not found" "$LINENO" 5
8560 CFLAGS="$saved_CFLAGS"
8561 LDFLAGS="$saved_LDFLAGS"
8564 if test -n "$CURSESLIBDIR"; then
8565 CURSESLIB="-L$CURSESLIBDIR $CURSESLIB"
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses linker flags" >&5
8569 $as_echo_n "checking for curses linker flags... " >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESLIB" >&5
8571 $as_echo "$CURSESLIB" >&6; }
8578 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8583 *) dir="$prefix/share"
8586 soundsdir="$dir/sounds/alsa"
8588 cat >>confdefs.h <<_ACEOF
8589 #define SOUNDSDIR "$soundsdir"
8593 mydatadir="$dir/alsa"
8595 cat >>confdefs.h <<_ACEOF
8596 #define DATADIR "$mydatadir"
8602 # Check whether --with-testsound was given.
8603 if test "${with_testsound+set}" = set; then :
8604 withval=$with_testsound; TESTSOUND="$withval"
8606 TESTSOUND="$dir/test.wav"
8611 ac_config_headers="$ac_config_headers include/aconfig.h"
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8615 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8616 if ${ac_cv_c_const+:} false; then :
8617 $as_echo_n "(cached) " >&6
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8627 /* Ultrix mips cc rejects this sort of thing. */
8628 typedef int charset[2];
8629 const charset cs = { 0, 0 };
8630 /* SunOS 4.1.1 cc rejects this. */
8631 char const *const *pcpcc;
8633 /* NEC SVR4.0.2 mips cc rejects this. */
8634 struct point {int x, y;};
8635 static struct point const zero = {0,0};
8636 /* AIX XL C 1.02.0.0 rejects this.
8637 It does not let you subtract one const X* pointer from another in
8638 an arm of an if-expression whose if-part is not a constant
8640 const char *g = "string";
8641 pcpcc = &g + (g ? g-g : 0);
8642 /* HPUX 7.0 cc rejects these. */
8644 ppc = (char**) pcpcc;
8645 pcpcc = (char const *const *) ppc;
8646 { /* SCO 3.2v4 cc rejects this sort of thing. */
8649 char const *s = 0 ? (char *) 0 : (char const *) 0;
8654 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8656 const int *foo = &x[0];
8659 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8660 typedef const int *iptr;
8664 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8665 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8666 struct s { int j; const int *ap[3]; } bx;
8667 struct s *b = &bx; b->j = 5;
8669 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8673 return !cs[0] && !zero.x;
8680 if ac_fn_c_try_compile "$LINENO"; then :
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8688 $as_echo "$ac_cv_c_const" >&6; }
8689 if test $ac_cv_c_const = no; then
8691 $as_echo "#define const /**/" >>confdefs.h
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8696 $as_echo_n "checking for inline... " >&6; }
8697 if ${ac_cv_c_inline+:} false; then :
8698 $as_echo_n "(cached) " >&6
8701 for ac_kw in inline __inline__ __inline; do
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8706 static $ac_kw foo_t static_foo () {return 0; }
8707 $ac_kw foo_t foo () {return 0; }
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712 ac_cv_c_inline=$ac_kw
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 test "$ac_cv_c_inline" != no && break
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8720 $as_echo "$ac_cv_c_inline" >&6; }
8722 case $ac_cv_c_inline in
8725 case $ac_cv_c_inline in
8727 *) ac_val=$ac_cv_c_inline;;
8729 cat >>confdefs.h <<_ACEOF
8731 #define inline $ac_val
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8738 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8739 if ${ac_cv_header_time+:} false; then :
8740 $as_echo_n "(cached) " >&6
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <sys/types.h>
8745 #include <sys/time.h>
8751 if ((struct tm *) 0)
8757 if ac_fn_c_try_compile "$LINENO"; then :
8758 ac_cv_header_time=yes
8760 ac_cv_header_time=no
8762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8765 $as_echo "$ac_cv_header_time" >&6; }
8766 if test $ac_cv_header_time = yes; then
8768 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8773 if test $ac_cv_c_compiler_gnu = yes; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
8775 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8776 if ${ac_cv_prog_gcc_traditional+:} false; then :
8777 $as_echo_n "(cached) " >&6
8779 ac_pattern="Autoconf.*'x'"
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8786 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
8787 ac_cv_prog_gcc_traditional=yes
8789 ac_cv_prog_gcc_traditional=no
8794 if test $ac_cv_prog_gcc_traditional = no; then
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8801 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
8802 ac_cv_prog_gcc_traditional=yes
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
8809 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8810 if test $ac_cv_prog_gcc_traditional = yes; then
8811 CC="$CC -traditional"
8816 # Check whether --enable-largefile was given.
8817 if test "${enable_largefile+set}" = set; then :
8818 enableval=$enable_largefile;
8821 if test "$enable_largefile" != no; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8824 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8825 if ${ac_cv_sys_largefile_CC+:} false; then :
8826 $as_echo_n "(cached) " >&6
8828 ac_cv_sys_largefile_CC=no
8829 if test "$GCC" != yes; then
8832 # IRIX 6.2 and later do not support large files by default,
8833 # so use the C compiler's -n32 option if that helps.
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 #include <sys/types.h>
8837 /* Check that off_t can represent 2**63 - 1 correctly.
8838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8839 since some C++ compilers masquerading as C compilers
8840 incorrectly reject 9223372036854775807. */
8841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8843 && LARGE_OFF_T % 2147483647 == 1)
8853 if ac_fn_c_try_compile "$LINENO"; then :
8856 rm -f core conftest.err conftest.$ac_objext
8858 if ac_fn_c_try_compile "$LINENO"; then :
8859 ac_cv_sys_largefile_CC=' -n32'; break
8861 rm -f core conftest.err conftest.$ac_objext
8865 rm -f conftest.$ac_ext
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8869 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8870 if test "$ac_cv_sys_largefile_CC" != no; then
8871 CC=$CC$ac_cv_sys_largefile_CC
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8875 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8876 if ${ac_cv_sys_file_offset_bits+:} false; then :
8877 $as_echo_n "(cached) " >&6
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #include <sys/types.h>
8883 /* Check that off_t can represent 2**63 - 1 correctly.
8884 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8885 since some C++ compilers masquerading as C compilers
8886 incorrectly reject 9223372036854775807. */
8887 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8888 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8889 && LARGE_OFF_T % 2147483647 == 1)
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 ac_cv_sys_file_offset_bits=no; break
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #define _FILE_OFFSET_BITS 64
8906 #include <sys/types.h>
8907 /* Check that off_t can represent 2**63 - 1 correctly.
8908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8909 since some C++ compilers masquerading as C compilers
8910 incorrectly reject 9223372036854775807. */
8911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8913 && LARGE_OFF_T % 2147483647 == 1)
8923 if ac_fn_c_try_compile "$LINENO"; then :
8924 ac_cv_sys_file_offset_bits=64; break
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927 ac_cv_sys_file_offset_bits=unknown
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8932 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8933 case $ac_cv_sys_file_offset_bits in #(
8936 cat >>confdefs.h <<_ACEOF
8937 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8942 if test $ac_cv_sys_file_offset_bits = unknown; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8944 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8945 if ${ac_cv_sys_large_files+:} false; then :
8946 $as_echo_n "(cached) " >&6
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8951 #include <sys/types.h>
8952 /* Check that off_t can represent 2**63 - 1 correctly.
8953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8954 since some C++ compilers masquerading as C compilers
8955 incorrectly reject 9223372036854775807. */
8956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8958 && LARGE_OFF_T % 2147483647 == 1)
8968 if ac_fn_c_try_compile "$LINENO"; then :
8969 ac_cv_sys_large_files=no; break
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 #define _LARGE_FILES 1
8975 #include <sys/types.h>
8976 /* Check that off_t can represent 2**63 - 1 correctly.
8977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8978 since some C++ compilers masquerading as C compilers
8979 incorrectly reject 9223372036854775807. */
8980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8982 && LARGE_OFF_T % 2147483647 == 1)
8992 if ac_fn_c_try_compile "$LINENO"; then :
8993 ac_cv_sys_large_files=1; break
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 ac_cv_sys_large_files=unknown
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9001 $as_echo "$ac_cv_sys_large_files" >&6; }
9002 case $ac_cv_sys_large_files in #(
9005 cat >>confdefs.h <<_ACEOF
9006 #define _LARGE_FILES $ac_cv_sys_large_files
9018 SND_UTIL_VERSION=$VERSION
9019 echo $VERSION > $srcdir/version
9021 cat >>confdefs.h <<_ACEOF
9022 #define VERSION "$SND_UTIL_VERSION"
9026 SND_UTIL_MAJOR=`echo $VERSION | cut -d . -f 1`
9028 SND_UTIL_MINOR=`echo $VERSION | cut -d . -f 2`
9030 SND_UTIL_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/pre[0-9]*//g'`
9037 # Check whether --with-systemdsystemunitdir was given.
9038 if test "${with_systemdsystemunitdir+set}" = set; then :
9039 withval=$with_systemdsystemunitdir;
9041 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
9044 if test "x$with_systemdsystemunitdir" != xno; then
9045 systemdsystemunitdir=$with_systemdsystemunitdir
9048 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
9050 HAVE_SYSTEMD_FALSE='#'
9052 HAVE_SYSTEMD_TRUE='#'
9058 # Check whether --with-asound-state-dir was given.
9059 if test "${with_asound_state_dir+set}" = set; then :
9060 withval=$with_asound_state_dir; ASOUND_STATE_DIR="$withval"
9062 ASOUND_STATE_DIR="/var/lib/alsa"
9068 # Check whether --with-alsactl-lock-dir was given.
9069 if test "${with_alsactl_lock_dir+set}" = set; then :
9070 withval=$with_alsactl_lock_dir; ASOUND_LOCK_DIR="$withval"
9072 ASOUND_LOCK_DIR="/var/lock"
9078 # Check whether --with-alsactl-pidfile-dir was given.
9079 if test "${with_alsactl_pidfile_dir+set}" = set; then :
9080 withval=$with_alsactl_pidfile_dir; ALSACTL_PIDFILE_DIR="$withval"
9082 ALSACTL_PIDFILE_DIR="/var/run"
9088 # Check whether --with-alsactl-daemonswitch was given.
9089 if test "${with_alsactl_daemonswitch+set}" = set; then :
9090 withval=$with_alsactl_daemonswitch; ALSACTL_DAEMONSWITCH="$withval"
9092 ALSACTL_DAEMONSWITCH="/etc/alsa/state-daemon.conf"
9097 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 alsa-info/Makefile"
9099 cat >confcache <<\_ACEOF
9100 # This file is a shell script that caches the results of configure
9101 # tests run on this system so they can be shared between configure
9102 # scripts and configure runs, see configure's option --config-cache.
9103 # It is not useful on other systems. If it contains results you don't
9104 # want to keep, you may remove or edit it.
9106 # config.status only pays attention to the cache file if you give it
9107 # the --recheck option to rerun configure.
9109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9115 # The following way of writing the cache mishandles newlines in values,
9116 # but we know of no workaround that is simple, portable, and efficient.
9117 # So, we kill variables containing newlines.
9118 # Ultrix sh set writes to stderr and can't be redirected directly,
9119 # and sets the high bit in the cache file unless we assign to the vars.
9121 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9122 eval ac_val=\$$ac_var
9126 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9127 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9130 _ | IFS | as_nl) ;; #(
9131 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9132 *) { eval $ac_var=; unset $ac_var;} ;;
9138 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9139 *${as_nl}ac_space=\ *)
9140 # `set' does not quote correctly, so add quotes: double-quote
9141 # substitution turns \\\\ into \\, and sed turns \\ into \.
9144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9147 # `set' quotes correctly as required by POSIX, so do not add quotes.
9148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9159 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9161 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9162 if test -w "$cache_file"; then
9163 if test "x$cache_file" != "x/dev/null"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9165 $as_echo "$as_me: updating cache $cache_file" >&6;}
9166 if test ! -f "$cache_file" || test -h "$cache_file"; then
9167 cat confcache >"$cache_file"
9169 case $cache_file in #(
9171 mv -f confcache "$cache_file"$$ &&
9172 mv -f "$cache_file"$$ "$cache_file" ;; #(
9174 mv -f confcache "$cache_file" ;;
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9180 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9186 # Let make expand exec_prefix.
9187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9189 DEFS=-DHAVE_CONFIG_H
9194 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9195 # 1. Remove the extension, and $U if already installed.
9196 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9197 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9198 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9199 # will be set to the directory where LIBOBJS objects are built.
9200 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9201 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9205 LTLIBOBJS=$ac_ltlibobjs
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9209 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9210 if test -n "$am_sleep_pid"; then
9211 # Hide warnings about reused PIDs.
9212 wait $am_sleep_pid 2>/dev/null
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9215 $as_echo "done" >&6; }
9216 if test -n "$EXEEXT"; then
9218 am__EXEEXT_FALSE='#'
9224 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9225 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9228 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9229 as_fn_error $? "conditional \"AMDEP\" was never defined.
9230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9232 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9233 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9237 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9240 if test -z "${HAVE_PCM_TRUE}" && test -z "${HAVE_PCM_FALSE}"; then
9241 as_fn_error $? "conditional \"HAVE_PCM\" was never defined.
9242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9244 if test -z "${HAVE_MIXER_TRUE}" && test -z "${HAVE_MIXER_FALSE}"; then
9245 as_fn_error $? "conditional \"HAVE_MIXER\" was never defined.
9246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9248 if test -z "${HAVE_RAWMIDI_TRUE}" && test -z "${HAVE_RAWMIDI_FALSE}"; then
9249 as_fn_error $? "conditional \"HAVE_RAWMIDI\" was never defined.
9250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9252 if test -z "${HAVE_SEQ_TRUE}" && test -z "${HAVE_SEQ_FALSE}"; then
9253 as_fn_error $? "conditional \"HAVE_SEQ\" was never defined.
9254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9256 if test -z "${HAVE_UCM_TRUE}" && test -z "${HAVE_UCM_FALSE}"; then
9257 as_fn_error $? "conditional \"HAVE_UCM\" was never defined.
9258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9260 if test -z "${HAVE_SAMPLERATE_TRUE}" && test -z "${HAVE_SAMPLERATE_FALSE}"; then
9261 as_fn_error $? "conditional \"HAVE_SAMPLERATE\" was never defined.
9262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9264 if test -z "${ALSAMIXER_TRUE}" && test -z "${ALSAMIXER_FALSE}"; then
9265 as_fn_error $? "conditional \"ALSAMIXER\" was never defined.
9266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9268 if test -z "${ALSACONF_TRUE}" && test -z "${ALSACONF_FALSE}"; then
9269 as_fn_error $? "conditional \"ALSACONF\" was never defined.
9270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9272 if test -z "${ALSALOOP_TRUE}" && test -z "${ALSALOOP_FALSE}"; then
9273 as_fn_error $? "conditional \"ALSALOOP\" was never defined.
9274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9276 if test -z "${USE_XMLTO_TRUE}" && test -z "${USE_XMLTO_FALSE}"; then
9277 as_fn_error $? "conditional \"USE_XMLTO\" was never defined.
9278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9280 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
9281 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
9282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9285 : "${CONFIG_STATUS=./config.status}"
9287 ac_clean_files_save=$ac_clean_files
9288 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9290 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9292 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9294 # Generated by $as_me.
9295 # Run this file to recreate the current configuration.
9296 # Compiler output produced by configure, useful for debugging
9297 # configure, is in config.log if it exists.
9303 SHELL=\${CONFIG_SHELL-$SHELL}
9306 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9307 ## -------------------- ##
9308 ## M4sh Initialization. ##
9309 ## -------------------- ##
9311 # Be more Bourne compatible
9312 DUALCASE=1; export DUALCASE # for MKS sh
9313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9316 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9317 # is contrary to our usage. Disable this feature.
9318 alias -g '${1+"$@"}'='"$@"'
9319 setopt NO_GLOB_SUBST
9321 case `(set -o) 2>/dev/null` in #(
9333 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9334 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9335 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9336 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9337 # Prefer a ksh shell builtin over an external printf program on Solaris,
9338 # but without wasting forks for bash or zsh.
9339 if test -z "$BASH_VERSION$ZSH_VERSION" \
9340 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9341 as_echo='print -r --'
9342 as_echo_n='print -rn --'
9343 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9344 as_echo='printf %s\n'
9345 as_echo_n='printf %s'
9347 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9348 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9349 as_echo_n='/usr/ucb/echo -n'
9351 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9352 as_echo_n_body='eval
9356 expr "X$arg" : "X\\(.*\\)$as_nl";
9357 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9359 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9361 export as_echo_n_body
9362 as_echo_n='sh -c $as_echo_n_body as_echo'
9365 as_echo='sh -c $as_echo_body as_echo'
9368 # The user is always right.
9369 if test "${PATH_SEPARATOR+set}" != set; then
9371 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9372 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9379 # We need space, tab and new line, in precisely that order. Quoting is
9380 # there to prevent editors from complaining about space-tab.
9381 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9382 # splitting by setting IFS to empty value.)
9385 # Find who we are. Look in the path if we contain no directory separator.
9388 *[\\/]* ) as_myself=$0 ;;
9389 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 test -z "$as_dir" && as_dir=.
9394 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9400 # We did not find ourselves, most probably we were run as `sh COMMAND'
9401 # in which case we are not to be found in the path.
9402 if test "x$as_myself" = x; then
9405 if test ! -f "$as_myself"; then
9406 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9410 # Unset variables that we do not need and which cause bugs (e.g. in
9411 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9412 # suppresses any "Segmentation fault" message there. '((' could
9413 # trigger a bug in pdksh 5.2.14.
9414 for as_var in BASH_ENV ENV MAIL MAILPATH
9415 do eval test x\${$as_var+set} = xset \
9416 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9432 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9433 # ----------------------------------------
9434 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9435 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9436 # script with STATUS, using 1 if that was 0.
9439 as_status=$1; test $as_status -eq 0 && as_status=1
9441 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9442 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9444 $as_echo "$as_me: error: $2" >&2
9445 as_fn_exit $as_status
9449 # as_fn_set_status STATUS
9450 # -----------------------
9451 # Set $? to STATUS, without forking.
9455 } # as_fn_set_status
9459 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9469 # Portably unset VAR.
9472 { eval $1=; unset $1;}
9474 as_unset=as_fn_unset
9475 # as_fn_append VAR VALUE
9476 # ----------------------
9477 # Append the text in VALUE to the end of the definition contained in VAR. Take
9478 # advantage of any shell optimizations that allow amortized linear growth over
9479 # repeated appends, instead of the typical quadratic growth present in naive
9481 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9482 eval 'as_fn_append ()
9493 # as_fn_arith ARG...
9494 # ------------------
9495 # Perform arithmetic evaluation on the ARGs, and store the result in the
9496 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9497 # must be portable across $(()) and expr.
9498 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9499 eval 'as_fn_arith ()
9506 as_val=`expr "$@" || test $? -eq 1`
9511 if expr a : '\(a\)' >/dev/null 2>&1 &&
9512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9518 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9519 as_basename=basename
9524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9530 as_me=`$as_basename -- "$0" ||
9531 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9532 X"$0" : 'X\(//\)$' \| \
9533 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9535 sed '/^.*\/\([^/][^/]*\)\/*$/{
9549 # Avoid depending upon Character Ranges.
9550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9553 as_cr_digits='0123456789'
9554 as_cr_alnum=$as_cr_Letters$as_cr_digits
9556 ECHO_C= ECHO_N= ECHO_T=
9557 case `echo -n x` in #(((((
9559 case `echo 'xy\c'` in
9560 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9562 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9569 rm -f conf$$ conf$$.exe conf$$.file
9570 if test -d conf$$.dir; then
9571 rm -f conf$$.dir/conf$$.file
9574 mkdir conf$$.dir 2>/dev/null
9576 if (echo >conf$$.file) 2>/dev/null; then
9577 if ln -s conf$$.file conf$$ 2>/dev/null; then
9579 # ... but there are two gotchas:
9580 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9581 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9582 # In both cases, we have to default to `cp -pR'.
9583 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9585 elif ln conf$$.file conf$$ 2>/dev/null; then
9593 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9594 rmdir conf$$.dir 2>/dev/null
9599 # Create "$as_dir" as a directory, including parents if necessary.
9604 -*) as_dir=./$as_dir;;
9606 test -d "$as_dir" || eval $as_mkdir_p || {
9610 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9611 *) as_qdir=$as_dir;;
9613 as_dirs="'$as_qdir' $as_dirs"
9614 as_dir=`$as_dirname -- "$as_dir" ||
9615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9616 X"$as_dir" : 'X\(//\)[^/]' \| \
9617 X"$as_dir" : 'X\(//\)$' \| \
9618 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9619 $as_echo X"$as_dir" |
9620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9637 test -d "$as_dir" && break
9639 test -z "$as_dirs" || eval "mkdir $as_dirs"
9640 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9644 if mkdir -p . 2>/dev/null; then
9645 as_mkdir_p='mkdir -p "$as_dir"'
9647 test -d ./-p && rmdir ./-p
9652 # as_fn_executable_p FILE
9653 # -----------------------
9654 # Test if FILE is an executable regular file.
9655 as_fn_executable_p ()
9657 test -f "$1" && test -x "$1"
9658 } # as_fn_executable_p
9660 as_executable_p=as_fn_executable_p
9662 # Sed expression to map a string onto a valid CPP name.
9663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9665 # Sed expression to map a string onto a valid variable name.
9666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9670 ## ----------------------------------- ##
9671 ## Main body of $CONFIG_STATUS script. ##
9672 ## ----------------------------------- ##
9674 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9677 # Save the log message, to keep $0 and so on meaningful, and to
9678 # report actual input values of CONFIG_FILES etc. instead of their
9679 # values after options handling.
9681 This file was extended by alsa-utils $as_me 1.0.29, which was
9682 generated by GNU Autoconf 2.69. Invocation command line was
9684 CONFIG_FILES = $CONFIG_FILES
9685 CONFIG_HEADERS = $CONFIG_HEADERS
9686 CONFIG_LINKS = $CONFIG_LINKS
9687 CONFIG_COMMANDS = $CONFIG_COMMANDS
9690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9695 case $ac_config_files in *"
9696 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9699 case $ac_config_headers in *"
9700 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9705 # Files that config.status was made for.
9706 config_files="$ac_config_files"
9707 config_headers="$ac_config_headers"
9708 config_commands="$ac_config_commands"
9712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9714 \`$as_me' instantiates files and other configuration actions
9715 from templates according to the current configuration. Unless the files
9716 and actions are specified as TAGs, all are instantiated by default.
9718 Usage: $0 [OPTION]... [TAG]...
9720 -h, --help print this help, then exit
9721 -V, --version print version number and configuration settings, then exit
9722 --config print configuration, then exit
9723 -q, --quiet, --silent
9724 do not print progress messages
9725 -d, --debug don't remove temporary files
9726 --recheck update $as_me by reconfiguring in the same conditions
9727 --file=FILE[:TEMPLATE]
9728 instantiate the configuration file FILE
9729 --header=FILE[:TEMPLATE]
9730 instantiate the configuration header FILE
9732 Configuration files:
9735 Configuration headers:
9738 Configuration commands:
9741 Report bugs to the package provider."
9744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9745 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9747 alsa-utils config.status 1.0.29
9748 configured by $0, generated by GNU Autoconf 2.69,
9749 with options \\"\$ac_cs_config\\"
9751 Copyright (C) 2012 Free Software Foundation, Inc.
9752 This config.status script is free software; the Free Software Foundation
9753 gives unlimited permission to copy, distribute and modify it."
9760 test -n "\$AWK" || AWK=awk
9763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9764 # The default lists apply if the user does not specify any file.
9770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9771 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9775 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9787 # Handling of the options.
9788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9790 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9791 $as_echo "$ac_cs_version"; exit ;;
9792 --config | --confi | --conf | --con | --co | --c )
9793 $as_echo "$ac_cs_config"; exit ;;
9794 --debug | --debu | --deb | --de | --d | -d )
9796 --file | --fil | --fi | --f )
9799 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9800 '') as_fn_error $? "missing file argument" ;;
9802 as_fn_append CONFIG_FILES " '$ac_optarg'"
9803 ac_need_defaults=false;;
9804 --header | --heade | --head | --hea )
9807 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9809 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9810 ac_need_defaults=false;;
9812 # Conflict between --help and --header
9813 as_fn_error $? "ambiguous option: \`$1'
9814 Try \`$0 --help' for more information.";;
9815 --help | --hel | -h )
9816 $as_echo "$ac_cs_usage"; exit ;;
9817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9818 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9822 -*) as_fn_error $? "unrecognized option: \`$1'
9823 Try \`$0 --help' for more information." ;;
9825 *) as_fn_append ac_config_targets " $1"
9826 ac_need_defaults=false ;;
9832 ac_configure_extra_args=
9834 if $ac_cs_silent; then
9836 ac_configure_extra_args="$ac_configure_extra_args --silent"
9840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9841 if \$ac_cs_recheck; then
9842 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9844 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9845 CONFIG_SHELL='$SHELL'
9851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9855 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9856 ## Running $as_me. ##
9862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9866 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9867 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9868 # from automake < 1.5.
9869 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9870 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9871 LINGUAS="${LINGUAS-%UNSET%}"
9873 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9879 # Handling of arguments.
9880 for ac_config_target in $ac_config_targets
9882 case $ac_config_target in
9883 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9884 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9885 "include/aconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/aconfig.h" ;;
9886 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9887 "alsactl/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/Makefile" ;;
9888 "alsactl/init/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/init/Makefile" ;;
9889 "alsamixer/Makefile") CONFIG_FILES="$CONFIG_FILES alsamixer/Makefile" ;;
9890 "amidi/Makefile") CONFIG_FILES="$CONFIG_FILES amidi/Makefile" ;;
9891 "amixer/Makefile") CONFIG_FILES="$CONFIG_FILES amixer/Makefile" ;;
9892 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9893 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9894 "alsaconf/alsaconf") CONFIG_FILES="$CONFIG_FILES alsaconf/alsaconf" ;;
9895 "alsaconf/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/Makefile" ;;
9896 "alsaconf/po/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/po/Makefile" ;;
9897 "alsaucm/Makefile") CONFIG_FILES="$CONFIG_FILES alsaucm/Makefile" ;;
9898 "aplay/Makefile") CONFIG_FILES="$CONFIG_FILES aplay/Makefile" ;;
9899 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9900 "iecset/Makefile") CONFIG_FILES="$CONFIG_FILES iecset/Makefile" ;;
9901 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
9902 "utils/alsa-utils.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-utils.spec" ;;
9903 "seq/Makefile") CONFIG_FILES="$CONFIG_FILES seq/Makefile" ;;
9904 "seq/aconnect/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aconnect/Makefile" ;;
9905 "seq/aplaymidi/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aplaymidi/Makefile" ;;
9906 "seq/aseqdump/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqdump/Makefile" ;;
9907 "seq/aseqnet/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqnet/Makefile" ;;
9908 "speaker-test/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/Makefile" ;;
9909 "speaker-test/samples/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/samples/Makefile" ;;
9910 "alsaloop/Makefile") CONFIG_FILES="$CONFIG_FILES alsaloop/Makefile" ;;
9911 "alsa-info/Makefile") CONFIG_FILES="$CONFIG_FILES alsa-info/Makefile" ;;
9913 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9918 # If the user did not use the arguments to specify the items to instantiate,
9919 # then the envvar interface is used. Set only those that are not.
9920 # We use the long form for the default assignment because of an extremely
9921 # bizarre bug on SunOS 4.1.3.
9922 if $ac_need_defaults; then
9923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9925 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9928 # Have a temporary directory for convenience. Make it in the build tree
9929 # simply because there is no reason against having it here, and in addition,
9930 # creating and moving files from /tmp can sometimes cause problems.
9931 # Hook for its removal unless debugging.
9932 # Note that there is a small window in which the directory will not be cleaned:
9933 # after its creation but before its name has been assigned to `$tmp'.
9937 trap 'exit_status=$?
9939 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9941 trap 'as_fn_exit 1' 1 2 13 15
9943 # Create a (secure) tmp directory for tmp files.
9946 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9950 tmp=./conf$$-$RANDOM
9951 (umask 077 && mkdir "$tmp")
9952 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9955 # Set up the scripts for CONFIG_FILES section.
9956 # No need to generate them if there are no CONFIG_FILES.
9957 # This happens for instance with `./config.status config.h'.
9958 if test -n "$CONFIG_FILES"; then
9961 ac_cr=`echo X | tr X '\015'`
9962 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9963 # But we know of no other shell where ac_cr would be empty at this
9964 # point, so we can use a bashism as a fallback.
9965 if test "x$ac_cr" = x; then
9966 eval ac_cr=\$\'\\r\'
9968 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9969 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9975 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9980 echo "cat >conf$$subs.awk <<_ACEOF" &&
9981 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9984 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9985 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9987 for ac_last_try in false false false false false :; do
9988 . ./conf$$subs.sh ||
9989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9991 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9992 if test $ac_delim_n = $ac_delim_num; then
9994 elif $ac_last_try; then
9995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10000 rm -f conf$$subs.sh
10002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10003 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10007 s/^/S["/; s/!.*/"]=/
10017 s/\(.\{148\}\)..*/\1/
10019 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10024 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10031 s/\(.\{148\}\)..*/\1/
10033 s/["\\]/\\&/g; s/^/"/; s/$/"/
10037 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10042 ' <conf$$subs.awk | sed '
10047 ' >>$CONFIG_STATUS || ac_write_fail=1
10048 rm -f conf$$subs.awk
10049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10051 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10052 for (key in S) S_is_set[key] = 1
10058 nfields = split(line, field, "@")
10060 len = length(field[1])
10061 for (i = 2; i < nfields; i++) {
10063 keylen = length(key)
10064 if (S_is_set[key]) {
10066 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10067 len += length(value) + length(field[++i])
10078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10079 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10080 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10083 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10084 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10087 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10088 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10089 # trailing colons and then remove the whole line if VPATH becomes empty
10090 # (actually we leave an empty line to preserve line numbers).
10091 if test "x$srcdir" = x.; then
10092 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10111 fi # test -n "$CONFIG_FILES"
10113 # Set up the scripts for CONFIG_HEADERS section.
10114 # No need to generate them if there are no CONFIG_HEADERS.
10115 # This happens for instance with `./config.status Makefile'.
10116 if test -n "$CONFIG_HEADERS"; then
10117 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10121 # Transform confdefs.h into an awk script `defines.awk', embedded as
10122 # here-document in config.status, that substitutes the proper values into
10123 # config.h.in to produce config.h.
10125 # Create a delimiter string that does not exist in confdefs.h, to ease
10126 # handling of long lines.
10128 for ac_last_try in false false :; do
10129 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10130 if test -z "$ac_tt"; then
10132 elif $ac_last_try; then
10133 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10139 # For the awk script, D is an array of macro values keyed by name,
10140 # likewise P contains macro parameters if any. Preserve backslash
10141 # newline sequences.
10143 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10145 s/.\{148\}/&'"$ac_delim"'/g
10148 s/^[ ]*#[ ]*define[ ][ ]*/ /
10155 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10157 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10162 D["\1"]=" \3\\\\\\n"\\/p
10164 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10169 s/.\{148\}/&'"$ac_delim"'/g
10174 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10177 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10179 ' <confdefs.h | sed '
10180 s/'"$ac_delim"'/"\\\
10181 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10184 for (key in D) D_is_set[key] = 1
10187 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10189 split(line, arg, " ")
10190 if (arg[1] == "#") {
10194 defundef = substr(arg[1], 2)
10197 split(mac1, mac2, "(") #)
10199 prefix = substr(line, 1, index(line, defundef) - 1)
10200 if (D_is_set[macro]) {
10201 # Preserve the white space surrounding the "#".
10202 print prefix "define", macro P[macro] D[macro]
10205 # Replace #undef with comments. This is necessary, for example,
10206 # in the case of _POSIX_SOURCE, which is predefined and required
10207 # on some systems where configure will not decide to define it.
10208 if (defundef == "undef") {
10209 print "/*", prefix defundef, macro, "*/"
10217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10218 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10219 fi # test -n "$CONFIG_HEADERS"
10222 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10227 :[FHLC]) ac_mode=$ac_tag; continue;;
10229 case $ac_mode$ac_tag in
10231 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10232 :[FH]-) ac_tag=-:-;;
10233 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10250 -) ac_f="$ac_tmp/stdin";;
10251 *) # Look for the file first in the build tree, then in the source tree
10252 # (if the path is not absolute). The absolute path cannot be DOS-style,
10253 # because $ac_f cannot contain `:'.
10257 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10259 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10261 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10262 as_fn_append ac_file_inputs " '$ac_f'"
10265 # Let's still pretend it is `configure' which instantiates (i.e., don't
10266 # use $as_me), people would be surprised to read:
10267 # /* config.h. Generated by config.status. */
10268 configure_input='Generated from '`
10269 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10271 if test x"$ac_file" != x-; then
10272 configure_input="$ac_file. $configure_input"
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10274 $as_echo "$as_me: creating $ac_file" >&6;}
10276 # Neutralize special characters interpreted by sed in replacement strings.
10277 case $configure_input in #(
10278 *\&* | *\|* | *\\* )
10279 ac_sed_conf_input=`$as_echo "$configure_input" |
10280 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10281 *) ac_sed_conf_input=$configure_input;;
10285 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10291 ac_dir=`$as_dirname -- "$ac_file" ||
10292 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10293 X"$ac_file" : 'X\(//\)[^/]' \| \
10294 X"$ac_file" : 'X\(//\)$' \| \
10295 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10296 $as_echo X"$ac_file" |
10297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10301 /^X\(\/\/\)[^/].*/{
10314 as_dir="$ac_dir"; as_fn_mkdir_p
10318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10320 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10321 # A ".." for each directory in $ac_dir_suffix.
10322 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10323 case $ac_top_builddir_sub in
10324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10328 ac_abs_top_builddir=$ac_pwd
10329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10330 # for backward compatibility:
10331 ac_top_builddir=$ac_top_build_prefix
10334 .) # We are building in place.
10336 ac_top_srcdir=$ac_top_builddir_sub
10337 ac_abs_top_srcdir=$ac_pwd ;;
10338 [\\/]* | ?:[\\/]* ) # Absolute name.
10339 ac_srcdir=$srcdir$ac_dir_suffix;
10340 ac_top_srcdir=$srcdir
10341 ac_abs_top_srcdir=$srcdir ;;
10342 *) # Relative name.
10343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10344 ac_top_srcdir=$ac_top_build_prefix$srcdir
10345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10357 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10358 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10360 ac_MKDIR_P=$MKDIR_P
10362 [\\/$]* | ?:[\\/]* ) ;;
10363 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10368 # If the template does not know about datarootdir, expand it.
10369 # FIXME: This hack should be removed a few years after 2.60.
10370 ac_datarootdir_hack=; ac_datarootdir_seen=
10381 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10382 *datarootdir*) ac_datarootdir_seen=yes;;
10383 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10385 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10388 ac_datarootdir_hack='
10389 s&@datadir@&$datadir&g
10390 s&@docdir@&$docdir&g
10391 s&@infodir@&$infodir&g
10392 s&@localedir@&$localedir&g
10393 s&@mandir@&$mandir&g
10394 s&\\\${datarootdir}&$datarootdir&g' ;;
10398 # Neutralize VPATH when `$srcdir' = `.'.
10399 # Shell code in configure.ac might set extrasub.
10400 # FIXME: do we really want to maintain this feature?
10401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10402 ac_sed_extra="$ac_vpsub
10405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10407 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10408 s|@configure_input@|$ac_sed_conf_input|;t t
10409 s&@top_builddir@&$ac_top_builddir_sub&;t t
10410 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10411 s&@srcdir@&$ac_srcdir&;t t
10412 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10413 s&@top_srcdir@&$ac_top_srcdir&;t t
10414 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10415 s&@builddir@&$ac_builddir&;t t
10416 s&@abs_builddir@&$ac_abs_builddir&;t t
10417 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10418 s&@INSTALL@&$ac_INSTALL&;t t
10419 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10420 $ac_datarootdir_hack
10422 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10423 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10425 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10426 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10427 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10428 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10430 which seems to be undefined. Please make sure it is defined" >&5
10431 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10432 which seems to be undefined. Please make sure it is defined" >&2;}
10434 rm -f "$ac_tmp/stdin"
10436 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10437 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10445 if test x"$ac_file" != x-; then
10447 $as_echo "/* $configure_input */" \
10448 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10449 } >"$ac_tmp/config.h" \
10450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10451 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10453 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10456 mv "$ac_tmp/config.h" "$ac_file" \
10457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10460 $as_echo "/* $configure_input */" \
10461 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10462 || as_fn_error $? "could not create -" "$LINENO" 5
10464 # Compute "$ac_file"'s index in $config_headers.
10467 for _am_header in $config_headers :; do
10468 case $_am_header in
10469 $_am_arg | $_am_arg:* )
10472 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10475 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10476 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10477 X"$_am_arg" : 'X\(//\)[^/]' \| \
10478 X"$_am_arg" : 'X\(//\)$' \| \
10479 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10480 $as_echo X"$_am_arg" |
10481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10485 /^X\(\/\/\)[^/].*/{
10497 s/.*/./; q'`/stamp-h$_am_stamp_count
10500 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10501 $as_echo "$as_me: executing $ac_file commands" >&6;}
10506 case $ac_file$ac_mode in
10507 "po-directories":C)
10508 for ac_file in $CONFIG_FILES; do
10509 # Support "outfile[:infile[:infile...]]"
10511 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10513 # PO directories have a Makefile.in generated from Makefile.in.in.
10514 case "$ac_file" in */Makefile.in)
10515 # Adjust a relative srcdir.
10516 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10517 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10518 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10519 # In autoconf-2.13 it is called $ac_given_srcdir.
10520 # In autoconf-2.50 it is called $srcdir.
10521 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10522 case "$ac_given_srcdir" in
10523 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10524 /*) top_srcdir="$ac_given_srcdir" ;;
10525 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10527 # Treat a directory as a PO directory if and only if it has a
10528 # POTFILES.in file. This allows packages to have multiple PO
10529 # directories under different names or in different locations.
10530 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10531 rm -f "$ac_dir/POTFILES"
10532 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10533 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10534 POMAKEFILEDEPS="POTFILES.in"
10535 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10536 # on $ac_dir but don't depend on user-specified configuration
10538 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10539 # The LINGUAS file contains the set of available languages.
10540 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10541 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10543 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10544 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10545 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10546 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10548 # The set of available languages was given in configure.in.
10549 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10550 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10553 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10554 # Compute UPDATEPOFILES
10555 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10556 # Compute DUMMYPOFILES
10557 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10559 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10560 case "$ac_given_srcdir" in
10562 *) srcdirpre='$(srcdir)/' ;;
10568 for lang in $ALL_LINGUAS; do
10569 POFILES="$POFILES $srcdirpre$lang.po"
10570 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10571 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10572 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10574 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10575 # environment variable.
10577 if test -n "$ALL_LINGUAS"; then
10578 for presentlang in $ALL_LINGUAS; do
10580 if test "%UNSET%" != "$LINGUAS"; then
10581 desiredlanguages="$LINGUAS"
10583 desiredlanguages="$ALL_LINGUAS"
10585 for desiredlang in $desiredlanguages; do
10586 # Use the presentlang catalog if desiredlang is
10587 # a. equal to presentlang, or
10588 # b. a variant of presentlang (because in this case,
10589 # presentlang can be used as a fallback for messages
10590 # which are not translated in the desiredlang catalog).
10591 case "$desiredlang" in
10592 "$presentlang"*) useit=yes;;
10595 if test $useit = yes; then
10596 INST_LINGUAS="$INST_LINGUAS $presentlang"
10601 if test -n "$INST_LINGUAS"; then
10602 for lang in $INST_LINGUAS; do
10603 CATALOGS="$CATALOGS $lang.gmo"
10606 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10607 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"
10608 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10609 if test -f "$f"; then
10611 *.orig | *.bak | *~) ;;
10612 *) cat "$f" >> "$ac_dir/Makefile" ;;
10620 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10621 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10622 # are listed without --file. Let's play safe and only enable the eval
10623 # if we detect the quoting.
10624 case $CONFIG_FILES in
10625 *\'*) eval set x "$CONFIG_FILES" ;;
10626 *) set x $CONFIG_FILES ;;
10631 # Strip MF so we end up with the name of the file.
10632 mf=`echo "$mf" | sed -e 's/:.*$//'`
10633 # Check whether this is an Automake generated Makefile or not.
10634 # We used to match only the files named 'Makefile.in', but
10635 # some people rename them; so instead we look at the file content.
10636 # Grep'ing the first line is not enough: some people post-process
10637 # each Makefile.in and add a new line on top of each file to say so.
10638 # Grep'ing the whole file is not good either: AIX grep has a line
10639 # limit of 2048, but all sed's we know have understand at least 4000.
10640 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10641 dirpart=`$as_dirname -- "$mf" ||
10642 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10643 X"$mf" : 'X\(//\)[^/]' \| \
10644 X"$mf" : 'X\(//\)$' \| \
10645 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10651 /^X\(\/\/\)[^/].*/{
10667 # Extract the definition of DEPDIR, am__include, and am__quote
10668 # from the Makefile without running 'make'.
10669 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10670 test -z "$DEPDIR" && continue
10671 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10672 test -z "am__include" && continue
10673 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10674 # Find all dependency output files, they are included files with
10675 # $(DEPDIR) in their names. We invoke sed twice because it is the
10676 # simplest approach to changing $(DEPDIR) to its actual value in the
10678 for file in `sed -n "
10679 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10680 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10681 # Make sure the directory exists.
10682 test -f "$dirpart/$file" && continue
10683 fdir=`$as_dirname -- "$file" ||
10684 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10685 X"$file" : 'X\(//\)[^/]' \| \
10686 X"$file" : 'X\(//\)$' \| \
10687 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10688 $as_echo X"$file" |
10689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10693 /^X\(\/\/\)[^/].*/{
10706 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10707 # echo "creating $dirpart/$file"
10708 echo '# dummy' > "$dirpart/$file"
10720 ac_clean_files=$ac_clean_files_save
10722 test $ac_write_fail = 0 ||
10723 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10726 # configure is writing to config.log, and then calls config.status.
10727 # config.status does its own redirection, appending to config.log.
10728 # Unfortunately, on DOS this fails, as config.log is still kept open
10729 # by configure, so config.status won't be able to write to it; its
10730 # output is simply discarded. So we exec the FD to /dev/null,
10731 # effectively closing config.log, so it can be properly (re)opened and
10732 # appended to by config.status. When coming back to configure, we
10733 # need to make the FD available again.
10734 if test "$no_create" != yes; then
10736 ac_config_status_args=
10737 test "$silent" = yes &&
10738 ac_config_status_args="$ac_config_status_args --quiet"
10740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10743 # would make configure fail if this is the last instruction.
10744 $ac_cs_success || as_fn_exit 1
10746 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10748 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}