2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ 2.13.2.
5 # Report bugs to <root@mput.dip.jp>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='2.13.2'
273 PACKAGE_STRING='TiMidity++ 2.13.2'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EMACS lispdir CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE PKG_CONFIG GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE W32G_GUI_TRUE W32G_GUI_FALSE WINDRV_TRUE WINDRV_FALSE MSYS_TRUE MSYS_FALSE VCPP_TRUE VCPP_FALSE BORLANDC_TRUE BORLANDC_FALSE WATCOM_C_TRUE WATCOM_C_FALSE DMC_TRUE DMC_FALSE MINGWGCC_TRUE MINGWGCC_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS WATCOM_LDFLAGS DMC_LDFLAGS VCPP_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CC_set=${CC+set}
773 ac_cv_env_CC_set=${CC+set}
774 ac_cv_env_CC_value=$CC
775 ac_env_CFLAGS_set=${CFLAGS+set}
776 ac_env_CFLAGS_value=$CFLAGS
777 ac_cv_env_CFLAGS_set=${CFLAGS+set}
778 ac_cv_env_CFLAGS_value=$CFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
791 \`configure' configures TiMidity++ 2.13.2 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
845 --program-prefix=PREFIX prepend PREFIX to installed program names
846 --program-suffix=SUFFIX append SUFFIX to installed program names
847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
860 if test -n "$ac_init_help"; then
861 case $ac_init_help in
862 short | recursive ) echo "Configuration of TiMidity++ 2.13.2:";;
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-maintainer-mode enable make rules and dependencies not useful
870 (and sometimes confusing) to the casual installer
871 --disable-dependency-tracking Speeds up one-time builds
872 --enable-dependency-tracking Do not reject slow dependency extractors
873 --enable-debug Build a debugging version.
874 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
875 default: Automatically select audio device.
877 sun: SunOS /dev/audio
878 hpux: HPUX /dev/audio
879 irix: IRIX audio library
881 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
883 darwin: Darwin CoreAudio
884 alsa: ALSA pcm device
885 alib: HPUX network audio (Alib)
886 nas: NAS - Network Audio System
888 esd: EsounD - Enlightened Sound Daemon
895 gogo: MP3 GOGO (Only Windows is supported)
896 --disable-alsatest Do not try to compile and run a test Alsa program
897 --disable-artstest Do not try to compile and run a test ARTS program
898 --disable-esdtest Do not try to compile and run a test ESD program
899 --disable-aotest Do not try to compile and run a test ao program
900 --disable-oggtest Do not try to compile and run a test Ogg program
901 --disable-vorbistest Do not try to compile and run a test Vorbis program
902 --disable-libFLACtest Do not try to compile and run a test libFLAC program
903 --disable-libOggFLACtest Do not try to compile and run a test libOggFLAC program
904 --enable-interface=interface_list
905 Comma separated interface list
906 --enable-dynamic Enable dynamic link interface (default is no)
907 --enable-dynamic=dynamic_list
908 Comma separated dynamic interface list
909 --enable-ncurses Enable ncurses interface (default is no)
910 --enable-slang Enable slang interface (default is no)
911 --enable-motif Enable motif interface (default is no)
912 --enable-tcltk Enable tcltk interface (default is no)
913 --enable-emacs Enable emacs interface (default is no)
914 --enable-vt100 Enable VT100 interface (default is no)
915 --enable-xaw Enable athena interface (default is no)
916 --enable-xskin Enable X skin interface (default is no)
917 --enable-gtk Enable GTK+ interface (default is no)
918 --disable-gtktest do not try to compile and run a test GTK+ program
919 --disable-gtktest Do not try to compile and run a test GTK program
920 --enable-server Enable server interface (default is no)
921 --enable-alsaseq Enable ALSA sequencer server interface
923 --enable-winsyn Enable Windows Synthesizer interface
925 --enable-portmidisyn Enable PortMIDI Synthesizer interface
927 --enable-winsyng Enable Windows GUI Synthesizer interface
929 --enable-w32gui Enable Windows GUI interface (default is no)
930 --enable-ump UMP configuration (default is no)
931 --enable-windrv Windows Driver interface(requires winsyn)
932 --enable-offix Enable offix support (default is no)
933 --enable-network Enable network support (default is no)
934 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
935 --enable-spline=method Specify spline method.
936 one of no,linear,cubic,lagrange,newton,gauss
938 --enable-wrd Enable WRD interface for X (default is no)
941 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
942 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
943 --with-includes=DIR Specify include directories (colon separated)
944 --with-libraries=DIR Specify library directories (colon separated)
945 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
946 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
947 --with-lispdir Override the default lisp directory
948 --with-elf create ELF shared object instead of AOUT
949 --with-x use the X Window System
950 --with-tcl-includes=DIR Tcl include file path
951 --with-tcl-libs=DIR Tcl library file path
952 --with-tk-includes=DIR Tk include file path
953 --with-tk-libs=DIR Tk library file path
954 --with-offix-includes=DIR Offix include file path
955 --with-offix-libs=DIR Offix include file path
956 --with-nas-library=library NAS absolute library path(Don't use -laudio)
957 --with-nas-includes=DIR NAS include files are in dir
958 --with-default-output=<mode> Specify default output mode (optional):
959 (default|alsa|alib|arts|nas|
960 esd|wav|au|aiff|list|vorbis|flac|speex|
961 gogo|portaudio|jack|ao)
962 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
963 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
964 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
965 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
966 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
967 --with-ao=PFX Prefix where libao is installed (optional)
968 --with-ao-libraries=DIR Directory where libao library is installed (optional)
969 --with-ao-includes=DIR Directory where libao header files are installed (optional)
970 --with-ogg=PFX Prefix where libogg is installed (optional)
971 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
972 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
973 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
974 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
975 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
976 --with-libFLAC=PFX Prefix where libFLAC is installed (optional)
977 --with-libFLAC-libraries=DIR Directory where libFLAC library is installed (optional)
978 --with-libFLAC-includes=DIR Directory where libFLAC header files are installed (optional)
979 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional)
980 --with-libOggFLAC-libraries=DIR Directory where libOggFLAC library is installed (optional)
981 --with-libOggFLAC-includes=DIR Directory where libOggFLAC header files are installed (optional)
982 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
983 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
985 Some influential environment variables:
986 CXX C++ compiler command
987 CXXFLAGS C++ compiler flags
988 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
989 nonstandard directory <lib dir>
990 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
991 headers in a nonstandard directory <include dir>
992 CC C compiler command
993 CFLAGS C compiler flags
996 Use these variables to override the choices made by `configure' or to help
997 it to find libraries and programs with nonstandard names/locations.
999 Report bugs to <root@mput.dip.jp>.
1003 if test "$ac_init_help" = "recursive"; then
1004 # If there are subdirs, report their specific --help.
1006 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1007 test -d $ac_dir || continue
1010 if test "$ac_dir" != .; then
1011 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1012 # A "../" for each directory in $ac_dir_suffix.
1013 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1015 ac_dir_suffix= ac_top_builddir=
1019 .) # No --srcdir option. We are building in place.
1021 if test -z "$ac_top_builddir"; then
1024 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1026 [\\/]* | ?:[\\/]* ) # Absolute path.
1027 ac_srcdir=$srcdir$ac_dir_suffix;
1028 ac_top_srcdir=$srcdir ;;
1030 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1031 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1034 # Do not use `cd foo && pwd` to compute absolute paths, because
1035 # the directories may not exist.
1037 .) ac_abs_builddir="$ac_dir";;
1040 .) ac_abs_builddir=`pwd`;;
1041 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1042 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1045 case $ac_abs_builddir in
1046 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1048 case ${ac_top_builddir}. in
1049 .) ac_abs_top_builddir=$ac_abs_builddir;;
1050 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1051 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1054 case $ac_abs_builddir in
1055 .) ac_abs_srcdir=$ac_srcdir;;
1058 .) ac_abs_srcdir=$ac_abs_builddir;;
1059 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1060 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1063 case $ac_abs_builddir in
1064 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1066 case $ac_top_srcdir in
1067 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1068 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1069 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1074 # Check for guested configure; otherwise get Cygnus style configure.
1075 if test -f $ac_srcdir/configure.gnu; then
1077 $SHELL $ac_srcdir/configure.gnu --help=recursive
1078 elif test -f $ac_srcdir/configure; then
1080 $SHELL $ac_srcdir/configure --help=recursive
1081 elif test -f $ac_srcdir/configure.ac ||
1082 test -f $ac_srcdir/configure.in; then
1084 $ac_configure --help
1086 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1092 test -n "$ac_init_help" && exit 0
1093 if $ac_init_version; then
1095 TiMidity++ configure 2.13.2
1096 generated by GNU Autoconf 2.59
1098 Copyright (C) 2003 Free Software Foundation, Inc.
1099 This configure script is free software; the Free Software Foundation
1100 gives unlimited permission to copy, distribute and modify it.
1106 This file contains any messages produced by compilers while
1107 running configure, to aid debugging if configure makes a mistake.
1109 It was created by TiMidity++ $as_me 2.13.2, which was
1110 generated by GNU Autoconf 2.59. Invocation command line was
1121 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1122 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1123 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1124 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1125 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1127 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1128 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1130 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1131 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1132 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1133 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1134 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1135 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1136 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1144 test -z "$as_dir" && as_dir=.
1145 echo "PATH: $as_dir"
1160 # Keep a trace of the command line.
1161 # Strip out --no-create and --no-recursion so they do not pile up.
1162 # Strip out --silent because we don't want to record it for future runs.
1163 # Also quote any args containing shell meta-characters.
1164 # Make two passes to allow for proper duplicate-argument suppression.
1169 ac_must_keep_next=false
1175 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1179 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1180 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1183 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1185 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1186 if test $ac_must_keep_next = true; then
1187 ac_must_keep_next=false # Got value, back to normal.
1190 *=* | --config-cache | -C | -disable-* | --disable-* \
1191 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1192 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1193 | -with-* | --with-* | -without-* | --without-* | --x)
1194 case "$ac_configure_args0 " in
1195 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1198 -* ) ac_must_keep_next=true ;;
1201 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1202 # Get rid of the leading space.
1208 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1209 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1211 # When interrupted or exit'd, cleanup temporary files, and complete
1212 # config.log. We remove comments because anyway the quotes in there
1213 # would cause problems or look ugly.
1214 # WARNING: Be sure not to use single quotes in there, as some shells,
1215 # such as our DU 5.0 friend, will then `close' the trap.
1216 trap 'exit_status=$?
1217 # Save into config.log some information that might help in debugging.
1222 ## ---------------- ##
1223 ## Cache variables. ##
1224 ## ---------------- ##
1227 # The following way of writing the cache mishandles newlines in values,
1230 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1233 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1238 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1245 ## ----------------- ##
1246 ## Output variables. ##
1247 ## ----------------- ##
1250 for ac_var in $ac_subst_vars
1252 eval ac_val=$`echo $ac_var`
1253 echo "$ac_var='"'"'$ac_val'"'"'"
1257 if test -n "$ac_subst_files"; then
1264 for ac_var in $ac_subst_files
1266 eval ac_val=$`echo $ac_var`
1267 echo "$ac_var='"'"'$ac_val'"'"'"
1272 if test -s confdefs.h; then
1279 sed "/^$/d" confdefs.h | sort
1282 test "$ac_signal" != 0 &&
1283 echo "$as_me: caught signal $ac_signal"
1284 echo "$as_me: exit $exit_status"
1286 rm -f core *.core &&
1287 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1290 for ac_signal in 1 2 13 15; do
1291 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1296 rm -rf conftest* confdefs.h
1297 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1300 # Predefined preprocessor variables.
1302 cat >>confdefs.h <<_ACEOF
1303 #define PACKAGE_NAME "$PACKAGE_NAME"
1307 cat >>confdefs.h <<_ACEOF
1308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1312 cat >>confdefs.h <<_ACEOF
1313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1317 cat >>confdefs.h <<_ACEOF
1318 #define PACKAGE_STRING "$PACKAGE_STRING"
1322 cat >>confdefs.h <<_ACEOF
1323 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1327 # Let the site file select an alternate cache file if it wants to.
1328 # Prefer explicitly selected file to automatically selected ones.
1329 if test -z "$CONFIG_SITE"; then
1330 if test "x$prefix" != xNONE; then
1331 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1333 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1336 for ac_site_file in $CONFIG_SITE; do
1337 if test -r "$ac_site_file"; then
1338 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1339 echo "$as_me: loading site script $ac_site_file" >&6;}
1340 sed 's/^/| /' "$ac_site_file" >&5
1345 if test -r "$cache_file"; then
1346 # Some versions of bash will fail to source /dev/null (special
1347 # files actually), so we avoid doing that.
1348 if test -f "$cache_file"; then
1349 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1350 echo "$as_me: loading cache $cache_file" >&6;}
1352 [\\/]* | ?:[\\/]* ) . $cache_file;;
1353 *) . ./$cache_file;;
1357 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1358 echo "$as_me: creating cache $cache_file" >&6;}
1362 # Check that the precious variables saved in the cache have kept the same
1364 ac_cache_corrupted=false
1365 for ac_var in `(set) 2>&1 |
1366 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1367 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1368 eval ac_new_set=\$ac_env_${ac_var}_set
1369 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1370 eval ac_new_val="\$ac_env_${ac_var}_value"
1371 case $ac_old_set,$ac_new_set in
1373 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1374 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1375 ac_cache_corrupted=: ;;
1377 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1378 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1379 ac_cache_corrupted=: ;;
1382 if test "x$ac_old_val" != "x$ac_new_val"; then
1383 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1384 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1385 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1386 echo "$as_me: former value: $ac_old_val" >&2;}
1387 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1388 echo "$as_me: current value: $ac_new_val" >&2;}
1389 ac_cache_corrupted=:
1392 # Pass precious variables to config.status.
1393 if test "$ac_new_set" = set; then
1395 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1396 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1397 *) ac_arg=$ac_var=$ac_new_val ;;
1399 case " $ac_configure_args " in
1400 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1401 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1405 if $ac_cache_corrupted; then
1406 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1407 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1408 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1409 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1410 { (exit 1); exit 1; }; }
1414 ac_cpp='$CPP $CPPFLAGS'
1415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1446 for ac_dir in autoconf $srcdir/autoconf; do
1447 if test -f $ac_dir/install-sh; then
1449 ac_install_sh="$ac_aux_dir/install-sh -c"
1451 elif test -f $ac_dir/install.sh; then
1453 ac_install_sh="$ac_aux_dir/install.sh -c"
1455 elif test -f $ac_dir/shtool; then
1457 ac_install_sh="$ac_aux_dir/shtool install -c"
1461 if test -z "$ac_aux_dir"; then
1462 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1463 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1464 { (exit 1); exit 1; }; }
1466 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1467 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1468 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1470 # Make sure we can run config.sub.
1471 $ac_config_sub sun4 >/dev/null 2>&1 ||
1472 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1473 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1474 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: checking build system type" >&5
1477 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1478 if test "${ac_cv_build+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 ac_cv_build_alias=$build_alias
1482 test -z "$ac_cv_build_alias" &&
1483 ac_cv_build_alias=`$ac_config_guess`
1484 test -z "$ac_cv_build_alias" &&
1485 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1486 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1487 { (exit 1); exit 1; }; }
1488 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1490 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1491 { (exit 1); exit 1; }; }
1494 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1495 echo "${ECHO_T}$ac_cv_build" >&6
1497 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1498 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1499 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502 echo "$as_me:$LINENO: checking host system type" >&5
1503 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1504 if test "${ac_cv_host+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 ac_cv_host_alias=$host_alias
1508 test -z "$ac_cv_host_alias" &&
1509 ac_cv_host_alias=$ac_cv_build_alias
1510 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1511 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1513 { (exit 1); exit 1; }; }
1516 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1517 echo "${ECHO_T}$ac_cv_host" >&6
1519 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1524 echo "$as_me:$LINENO: checking target system type" >&5
1525 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1526 if test "${ac_cv_target+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 ac_cv_target_alias=$target_alias
1530 test "x$ac_cv_target_alias" = "x" &&
1531 ac_cv_target_alias=$ac_cv_host_alias
1532 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1539 echo "${ECHO_T}$ac_cv_target" >&6
1540 target=$ac_cv_target
1541 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 # The aliases save the names the user supplied, while $host etc.
1547 # will get canonicalized.
1548 test -n "$target_alias" &&
1549 test "$program_prefix$program_suffix$program_transform_name" = \
1551 program_prefix=${target_alias}-
1552 am__api_version="1.7"
1553 # Find a good install program. We prefer a C program (faster),
1554 # so one script is as good as another. But avoid the broken or
1555 # incompatible versions:
1556 # SysV /etc/install, /usr/sbin/install
1557 # SunOS /usr/etc/install
1558 # IRIX /sbin/install
1560 # AmigaOS /C/install, which installs bootblocks on floppy discs
1561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1564 # OS/2's system install, which has a completely different semantic
1565 # ./install, which can be erroneously created by make from ./install.sh.
1566 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1567 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1568 if test -z "$INSTALL"; then
1569 if test "${ac_cv_path_install+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 # Account for people who put trailing slashes in PATH elements.
1579 ./ | .// | /cC/* | \
1580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1581 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1584 # OSF1 and SCO ODT 3.0 have their own names for install.
1585 # Don't use installbsd from OSF since it installs stuff as root
1587 for ac_prog in ginstall scoinst install; do
1588 for ac_exec_ext in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1590 if test $ac_prog = install &&
1591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1592 # AIX install. It has an incompatible calling convention.
1594 elif test $ac_prog = install &&
1595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1596 # program-specific install script used by HP pwplus--don't use.
1599 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1611 if test "${ac_cv_path_install+set}" = set; then
1612 INSTALL=$ac_cv_path_install
1614 # As a last resort, use the slow shell script. We don't cache a
1615 # path for INSTALL within a source directory, because that will
1616 # break other packages using the cache if that directory is
1617 # removed, or if the path is relative.
1618 INSTALL=$ac_install_sh
1621 echo "$as_me:$LINENO: result: $INSTALL" >&5
1622 echo "${ECHO_T}$INSTALL" >&6
1624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1625 # It thinks the first close brace ends the variable substitution.
1626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1632 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1633 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1636 echo timestamp > conftest.file
1637 # Do `set' in a subshell so we don't clobber the current shell's
1638 # arguments. Must try -L first in case configure is actually a
1639 # symlink; some systems play weird games with the mod time of symlinks
1640 # (eg FreeBSD returns the mod time of the symlink's containing
1643 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1644 if test "$*" = "X"; then
1646 set X `ls -t $srcdir/configure conftest.file`
1649 if test "$*" != "X $srcdir/configure conftest.file" \
1650 && test "$*" != "X conftest.file $srcdir/configure"; then
1652 # If neither matched, then we have a broken ls. This can happen
1653 # if, for instance, CONFIG_SHELL is bash and it inherits a
1654 # broken ls alias from the environment. This has actually
1655 # happened. Such a system could not be considered "sane".
1656 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1657 alias in your environment" >&5
1658 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1659 alias in your environment" >&2;}
1660 { (exit 1); exit 1; }; }
1663 test "$2" = conftest.file
1669 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1670 Check your system clock" >&5
1671 echo "$as_me: error: newly created file is older than distributed files!
1672 Check your system clock" >&2;}
1673 { (exit 1); exit 1; }; }
1675 echo "$as_me:$LINENO: result: yes" >&5
1676 echo "${ECHO_T}yes" >&6
1677 test "$program_prefix" != NONE &&
1678 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1679 # Use a double $ so make ignores it.
1680 test "$program_suffix" != NONE &&
1681 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1682 # Double any \ or $. echo might interpret backslashes.
1683 # By default was `s,x,x', remove it if useless.
1684 cat <<\_ACEOF >conftest.sed
1685 s/[\\$]/&&/g;s/;s,x,x,$//
1687 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1691 # expand $ac_aux_dir to an absolute path
1692 am_aux_dir=`cd $ac_aux_dir && pwd`
1694 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1695 # Use eval to expand $SHELL
1696 if eval "$MISSING --run true"; then
1697 am_missing_run="$MISSING --run "
1700 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1701 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704 for ac_prog in gawk mawk nawk awk
1706 # Extract the first word of "$ac_prog", so it can be a program name with args.
1707 set dummy $ac_prog; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_AWK+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 if test -n "$AWK"; then
1714 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_AWK="$ac_prog"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 if test -n "$AWK"; then
1734 echo "$as_me:$LINENO: result: $AWK" >&5
1735 echo "${ECHO_T}$AWK" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1741 test -n "$AWK" && break
1744 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1745 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1746 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1747 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 cat >conftest.make <<\_ACEOF
1752 @echo 'ac_maketemp="$(MAKE)"'
1754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1755 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1756 if test -n "$ac_maketemp"; then
1757 eval ac_cv_prog_make_${ac_make}_set=yes
1759 eval ac_cv_prog_make_${ac_make}_set=no
1763 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1764 echo "$as_me:$LINENO: result: yes" >&5
1765 echo "${ECHO_T}yes" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 SET_MAKE="MAKE=${MAKE-make}"
1773 rm -rf .tst 2>/dev/null
1774 mkdir .tst 2>/dev/null
1775 if test -d .tst; then
1780 rmdir .tst 2>/dev/null
1782 # test to see if srcdir already configured
1783 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1784 test -f $srcdir/config.status; then
1785 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1786 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1787 { (exit 1); exit 1; }; }
1790 # test whether we have cygpath
1791 if test -z "$CYGPATH_W"; then
1792 if (cygpath --version) >/dev/null 2>/dev/null; then
1793 CYGPATH_W='cygpath -w'
1800 # Define the identity of the package.
1801 PACKAGE='TiMidity++'
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE "$PACKAGE"
1810 cat >>confdefs.h <<_ACEOF
1811 #define VERSION "$VERSION"
1814 # Some tools Automake needs.
1816 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1819 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1822 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1825 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1828 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1831 AMTAR=${AMTAR-"${am_missing_run}tar"}
1833 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1835 # Installed binaries are usually stripped using `strip' when the user
1836 # run `make install-strip'. However `strip' might not be the right
1837 # tool to use in cross-compilation environments, therefore Automake
1838 # will honor the `STRIP' environment variable to overrule this program.
1839 if test "$cross_compiling" != no; then
1840 if test -n "$ac_tool_prefix"; then
1841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}strip; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_STRIP+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 if test -n "$STRIP"; then
1849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 STRIP=$ac_cv_prog_STRIP
1868 if test -n "$STRIP"; then
1869 echo "$as_me:$LINENO: result: $STRIP" >&5
1870 echo "${ECHO_T}$STRIP" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1877 if test -z "$ac_cv_prog_STRIP"; then
1879 # Extract the first word of "strip", so it can be a program name with args.
1880 set dummy strip; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$ac_ct_STRIP"; then
1887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_ac_ct_STRIP="strip"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1907 if test -n "$ac_ct_STRIP"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1909 echo "${ECHO_T}$ac_ct_STRIP" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1917 STRIP="$ac_cv_prog_STRIP"
1921 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1923 # We need awk for the "check" target. The system "awk" is bad on
1929 ac_config_headers="$ac_config_headers config.h interface.h"
1931 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1932 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1933 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1934 if test "${enable_maintainer_mode+set}" = set; then
1935 enableval="$enable_maintainer_mode"
1936 USE_MAINTAINER_MODE=$enableval
1938 USE_MAINTAINER_MODE=no
1940 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1941 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1944 if test $USE_MAINTAINER_MODE = yes; then
1945 MAINTAINER_MODE_TRUE=
1946 MAINTAINER_MODE_FALSE='#'
1948 MAINTAINER_MODE_TRUE='#'
1949 MAINTAINER_MODE_FALSE=
1952 MAINT=$MAINTAINER_MODE_TRUE
1956 ac_cpp='$CXXCPP $CPPFLAGS'
1957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1960 if test -n "$ac_tool_prefix"; then
1961 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CXX+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CXX"; then
1971 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CXX"; then
1991 echo "$as_me:$LINENO: result: $CXX" >&5
1992 echo "${ECHO_T}$CXX" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1998 test -n "$CXX" && break
2001 if test -z "$CXX"; then
2003 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2005 # Extract the first word of "$ac_prog", so it can be a program name with args.
2006 set dummy $ac_prog; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$ac_ct_CXX"; then
2013 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_ac_ct_CXX="$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2032 if test -n "$ac_ct_CXX"; then
2033 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2034 echo "${ECHO_T}$ac_ct_CXX" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2040 test -n "$ac_ct_CXX" && break
2042 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2048 # Provide some information about the compiler.
2049 echo "$as_me:$LINENO:" \
2050 "checking for C++ compiler version" >&5
2051 ac_compiler=`set X $ac_compile; echo $2`
2052 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2053 (eval $ac_compiler --version </dev/null >&5) 2>&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }
2057 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2058 (eval $ac_compiler -v </dev/null >&5) 2>&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }
2062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2063 (eval $ac_compiler -V </dev/null >&5) 2>&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }
2068 cat >conftest.$ac_ext <<_ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h. */
2083 ac_clean_files_save=$ac_clean_files
2084 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2085 # Try to create an executable without -o first, disregard a.out.
2086 # It will help us diagnose broken compilers, and finding out an intuition
2088 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2089 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2090 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2091 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2092 (eval $ac_link_default) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; then
2096 # Find the output, starting from the most likely. This scheme is
2097 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 # Be careful to initialize this variable, since it used to be cached.
2101 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2103 # b.out is created by i960 compilers.
2104 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2106 test -f "$ac_file" || continue
2108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111 # This is the source file.
2114 # We found the default executable, but exeext='' is most
2118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2119 # FIXME: I believe we export ac_cv_exeext for Libtool,
2120 # but it would be cool to find out if it's true. Does anybody
2121 # maintain Libtool? --akim.
2129 echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2132 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: C++ compiler cannot create executables
2135 See \`config.log' for more details." >&2;}
2136 { (exit 77); exit 77; }; }
2139 ac_exeext=$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_file" >&5
2141 echo "${ECHO_T}$ac_file" >&6
2143 # Check the compiler produces executables we can run. If not, either
2144 # the compiler is broken, or we cross compile.
2145 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2146 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2147 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2148 # If not cross compiling, check that we can run a simple program.
2149 if test "$cross_compiling" != yes; then
2150 if { ac_try='./$ac_file'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2158 if test "$cross_compiling" = maybe; then
2161 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2162 If you meant to cross compile, use \`--host'.
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot run C++ compiled programs.
2165 If you meant to cross compile, use \`--host'.
2166 See \`config.log' for more details." >&2;}
2167 { (exit 1); exit 1; }; }
2171 echo "$as_me:$LINENO: result: yes" >&5
2172 echo "${ECHO_T}yes" >&6
2174 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2175 ac_clean_files=$ac_clean_files_save
2176 # Check the compiler produces executables we can run. If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2179 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2180 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2181 echo "${ECHO_T}$cross_compiling" >&6
2183 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2184 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2186 (eval $ac_link) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; then
2190 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2191 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2192 # work properly (i.e., refer to `conftest.exe'), while it won't with
2194 for ac_file in conftest.exe conftest conftest.*; do
2195 test -f "$ac_file" || continue
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&2;}
2209 { (exit 1); exit 1; }; }
2212 rm -f conftest$ac_cv_exeext
2213 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2214 echo "${ECHO_T}$ac_cv_exeext" >&6
2216 rm -f conftest.$ac_ext
2217 EXEEXT=$ac_cv_exeext
2219 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2220 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2221 if test "${ac_cv_objext+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 cat >conftest.$ac_ext <<_ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2239 rm -f conftest.o conftest.obj
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; then
2245 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2256 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2265 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2266 echo "${ECHO_T}$ac_cv_objext" >&6
2267 OBJEXT=$ac_cv_objext
2269 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2270 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2271 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 cat >conftest.$ac_ext <<_ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>conftest.er1
2296 grep -v '^ *+' conftest.er1 >conftest.err
2298 cat conftest.err >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); } &&
2301 { ac_try='test -z "$ac_cxx_werror_flag"
2302 || test ! -s conftest.err'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; } &&
2308 { ac_try='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2322 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2325 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2326 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2327 GXX=`test $ac_compiler_gnu = yes && echo yes`
2328 ac_test_CXXFLAGS=${CXXFLAGS+set}
2329 ac_save_CXXFLAGS=$CXXFLAGS
2331 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2332 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2333 if test "${ac_cv_prog_cxx_g+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 cat >conftest.$ac_ext <<_ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>conftest.er1
2355 grep -v '^ *+' conftest.er1 >conftest.err
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -z "$ac_cxx_werror_flag"
2361 || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 ac_cv_prog_cxx_g=yes
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2383 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2384 if test "$ac_test_CXXFLAGS" = set; then
2385 CXXFLAGS=$ac_save_CXXFLAGS
2386 elif test $ac_cv_prog_cxx_g = yes; then
2387 if test "$GXX" = yes; then
2393 if test "$GXX" = yes; then
2399 for ac_declaration in \
2401 'extern "C" void std::exit (int) throw (); using std::exit;' \
2402 'extern "C" void std::exit (int); using std::exit;' \
2403 'extern "C" void exit (int) throw ();' \
2404 'extern "C" void exit (int);' \
2407 cat >conftest.$ac_ext <<_ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425 (eval $ac_compile) 2>conftest.er1
2427 grep -v '^ *+' conftest.er1 >conftest.err
2429 cat conftest.err >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } &&
2432 { ac_try='test -z "$ac_cxx_werror_flag"
2433 || test ! -s conftest.err'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>conftest.er1
2472 grep -v '^ *+' conftest.er1 >conftest.err
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_cxx_werror_flag"
2478 || test ! -s conftest.err'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2499 if test -n "$ac_declaration"; then
2500 echo '#ifdef __cplusplus' >>confdefs.h
2501 echo $ac_declaration >>confdefs.h
2502 echo '#endif' >>confdefs.h
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 DEPDIR="${am__leading_dot}deps"
2512 ac_config_commands="$ac_config_commands depfiles"
2515 am_make=${MAKE-make}
2516 cat > confinc << 'END'
2521 # If we don't find an include directive, just comment out the code.
2522 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2523 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2527 # First try GNU make style include.
2528 echo "include confinc" > confmf
2529 # We grep out `Entering directory' and `Leaving directory'
2530 # messages which can occur if `w' ends up in MAKEFLAGS.
2531 # In particular we don't look at `^make:' because GNU make might
2532 # be invoked under some other name (usually "gmake"), in which
2533 # case it prints its new name instead of `make'.
2534 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2539 # Now try BSD make style include.
2540 if test "$am__include" = "#"; then
2541 echo '.include "confinc"' > confmf
2542 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2543 am__include=.include
2550 echo "$as_me:$LINENO: result: $_am_result" >&5
2551 echo "${ECHO_T}$_am_result" >&6
2552 rm -f confinc confmf
2554 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2555 if test "${enable_dependency_tracking+set}" = set; then
2556 enableval="$enable_dependency_tracking"
2559 if test "x$enable_dependency_tracking" != xno; then
2560 am_depcomp="$ac_aux_dir/depcomp"
2565 if test "x$enable_dependency_tracking" != xno; then
2576 depcc="$CXX" am_compiler_list=
2578 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2579 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2580 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2584 # We make a subdir and do the tests there. Otherwise we can end up
2585 # making bogus files that we don't know about and never remove. For
2586 # instance it was reported that on HP-UX the gcc test will end up
2587 # making a dummy file named `D' -- because `-MD' means `put the output
2590 # Copy depcomp to subdir because otherwise we won't find it if we're
2591 # using a relative directory.
2592 cp "$am_depcomp" conftest.dir
2594 # We will build objects and dependencies in a subdirectory because
2595 # it helps to detect inapplicable dependency modes. For instance
2596 # both Tru64's cc and ICC support -MD to output dependencies as a
2597 # side effect of compilation, but ICC will put the dependencies in
2598 # the current directory while Tru64 will put them in the object
2602 am_cv_CXX_dependencies_compiler_type=none
2603 if test "$am_compiler_list" = ""; then
2604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2606 for depmode in $am_compiler_list; do
2607 # Setup a source with many dependencies, because some compilers
2608 # like to wrap large dependency lists on column 80 (with \), and
2609 # we should not choose a depcomp mode which is confused by this.
2611 # We need to recreate these files for each test, as the compiler may
2612 # overwrite some of them when testing with obscure command lines.
2613 # This happens at least with the AIX C compiler.
2615 for i in 1 2 3 4 5 6; do
2616 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2619 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2623 # after this tag, mechanisms are not by side-effect, so they'll
2624 # only be used when explicitly requested
2625 if test "x$enable_dependency_tracking" = xyes; then
2633 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2634 # mode. It turns out that the SunPro C++ compiler does not properly
2635 # handle `-M -o', and we need to detect this.
2636 if depmode=$depmode \
2637 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2639 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2640 >/dev/null 2>conftest.err &&
2641 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2642 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2643 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2644 # icc doesn't choke on unknown options, it will just issue warnings
2645 # (even with -Werror). So we grep stderr for any message
2646 # that says an option was ignored.
2647 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2648 am_cv_CXX_dependencies_compiler_type=$depmode
2657 am_cv_CXX_dependencies_compiler_type=none
2661 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2662 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2663 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2668 test "x$enable_dependency_tracking" != xno \
2669 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2670 am__fastdepCXX_TRUE=
2671 am__fastdepCXX_FALSE='#'
2673 am__fastdepCXX_TRUE='#'
2674 am__fastdepCXX_FALSE=
2679 SHELL=${CONFIG_SHELL-"/bin/sh"}
2682 echo "$as_me:$LINENO: checking whether grep returns status" >&5
2683 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
2684 echo "grimblepritz" >grimble
2685 if grep blurfldyick grimble >/dev/null 2>&1 ; then
2686 contains="./contains"
2687 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
2690 contains="./contains"
2694 grep) echo "$as_me:$LINENO: result: yes" >&5
2695 echo "${ECHO_T}yes" >&6
2698 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
2699 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
2700 cat >./contains <<'EOSS'
2701 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2703 chmod +x "./contains"
2708 # Check for compiler options -- such as debug flags.
2710 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2711 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
2712 # Check whether --enable-debug or --disable-debug was given.
2713 if test "${enable_debug+set}" = set; then
2714 enableval="$enable_debug"
2715 timidity_cv_debug="yes"
2717 timidity_cv_debug="no"
2719 if test "x$timidity_cv_debug" = "xyes"; then
2721 cat >>confdefs.h <<\_ACEOF
2725 CFLAGS=${CFLAGS-"-g"}
2727 if test "x$timidity_cv_debug" = "xno"; then
2729 cat >>confdefs.h <<\_ACEOF
2734 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2735 echo "${ECHO_T}$timidity_cv_debug" >&6
2737 if test "x$CFLAGS" = "x"; then
2741 if test "x$with_x" = x; then
2747 # Checking gcc environment
2748 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2749 LDFLAGS="$LDFLAGS -L${i}"
2751 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2752 CPPFLAGS="$CPPFLAGS -I${i}"
2755 # add $prefix if specified.
2756 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2757 LDFLAGS="-L$prefix/lib $LDFLAGS"
2758 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2759 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2763 # Check whether --with-includes or --without-includes was given.
2764 if test "${with_includes+set}" = set; then
2765 withval="$with_includes"
2767 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2770 CPPFLAGS="$j$CPPFLAGS"
2775 # Check whether --with-libraries or --without-libraries was given.
2776 if test "${with_libraries+set}" = set; then
2777 withval="$with_libraries"
2779 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2782 LDFLAGS="$j$LDFLAGS"
2788 # Check whether --with-default-path or --without-default-path was given.
2789 if test "${with_default_path+set}" = set; then
2790 withval="$with_default_path"
2794 if test "x$prefix" != "xNONE"; then
2795 pkgdatadir='${prefix}/share/timidity'
2797 pkgdatadir='/usr/local/share/timidity'
2801 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2803 cat >>confdefs.h <<_ACEOF
2804 #define DEFAULT_PATH "$tmpdefpath"
2808 cat >>confdefs.h <<\_ACEOF
2809 #define PKGDATADIR DEFAULT_PATH
2814 # Check whether --with-module-dir or --without-module-dir was given.
2815 if test "${with_module_dir+set}" = set; then
2816 withval="$with_module_dir"
2820 if test "x$prefix" != "xNONE"; then
2821 pkglibdir='${prefix}/lib/timidity'
2823 pkglibdir='/usr/local/lib/timidity'
2827 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2829 cat >>confdefs.h <<_ACEOF
2830 #define PKGLIBDIR "$tmplibdir"
2835 # Checks for programs.
2837 # Check whether --with-lispdir or --without-lispdir was given.
2838 if test "${with_lispdir+set}" = set; then
2839 withval="$with_lispdir"
2841 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2842 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2843 echo "$as_me:$LINENO: result: $lispdir" >&5
2844 echo "${ECHO_T}$lispdir" >&6
2847 # If set to t, that means we are running in a shell under Emacs.
2848 # If you have an Emacs named "t", then use the full path.
2849 test x"$EMACS" = xt && EMACS=
2850 for ac_prog in emacs xemacs
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856 if test "${ac_cv_prog_EMACS+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 if test -n "$EMACS"; then
2860 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_EMACS="$ac_prog"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 EMACS=$ac_cv_prog_EMACS
2879 if test -n "$EMACS"; then
2880 echo "$as_me:$LINENO: result: $EMACS" >&5
2881 echo "${ECHO_T}$EMACS" >&6
2883 echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2887 test -n "$EMACS" && break
2889 test -n "$EMACS" || EMACS="no"
2891 if test $EMACS != "no"; then
2892 if test x${lispdir+set} != xset; then
2893 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2894 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2895 if test "${am_cv_lispdir+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2899 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2900 # which is non-obvious for non-emacs users.
2901 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2902 # emacsen earlier and avoid running this altogether.
2903 { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
2904 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908 am_cv_lispdir=`sed -n \
2910 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2911 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2914 if test -z "$am_cv_lispdir"; then
2915 am_cv_lispdir='${datadir}/emacs/site-lisp'
2919 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2920 echo "${ECHO_T}$am_cv_lispdir" >&6
2921 lispdir="$am_cv_lispdir"
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2936 echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 if test -n "$CC"; then
2962 echo "$as_me:$LINENO: result: $CC" >&5
2963 echo "${ECHO_T}$CC" >&6
2965 echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2970 if test -z "$ac_cv_prog_CC"; then
2972 # Extract the first word of "gcc", so it can be a program name with args.
2973 set dummy gcc; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_ac_ct_CC="gcc"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3001 echo "${ECHO_T}$ac_ct_CC" >&6
3003 echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3012 if test -z "$CC"; then
3013 if test -n "$ac_tool_prefix"; then
3014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}cc; ac_word=$2
3016 echo "$as_me:$LINENO: checking for $ac_word" >&5
3017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3018 if test "${ac_cv_prog_CC+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031 ac_cv_prog_CC="${ac_tool_prefix}cc"
3032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 if test -n "$CC"; then
3042 echo "$as_me:$LINENO: result: $CC" >&5
3043 echo "${ECHO_T}$CC" >&6
3045 echo "$as_me:$LINENO: result: no" >&5
3046 echo "${ECHO_T}no" >&6
3050 if test -z "$ac_cv_prog_CC"; then
3052 # Extract the first word of "cc", so it can be a program name with args.
3053 set dummy cc; ac_word=$2
3054 echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 if test -n "$ac_ct_CC"; then
3060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_ac_ct_CC="cc"
3070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3079 if test -n "$ac_ct_CC"; then
3080 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3081 echo "${ECHO_T}$ac_ct_CC" >&6
3083 echo "$as_me:$LINENO: result: no" >&5
3084 echo "${ECHO_T}no" >&6
3093 if test -z "$CC"; then
3094 # Extract the first word of "cc", so it can be a program name with args.
3095 set dummy cc; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_CC+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113 ac_prog_rejected=yes
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 if test $ac_prog_rejected = yes; then
3124 # We found a bogon in the path, so make sure we never use it.
3125 set dummy $ac_cv_prog_CC
3127 if test $# != 0; then
3128 # We chose a different compiler from the bogus one.
3129 # However, it has the same basename, so the bogon will be chosen
3130 # first if we set CC to just the basename; use the full file name.
3132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3138 if test -n "$CC"; then
3139 echo "$as_me:$LINENO: result: $CC" >&5
3140 echo "${ECHO_T}$CC" >&6
3142 echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3147 if test -z "$CC"; then
3148 if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153 echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_prog_CC+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 if test -n "$CC"; then
3159 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$CC"; then
3179 echo "$as_me:$LINENO: result: $CC" >&5
3180 echo "${ECHO_T}$CC" >&6
3182 echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3186 test -n "$CC" && break
3189 if test -z "$CC"; then
3193 # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy $ac_prog; ac_word=$2
3195 echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 if test -n "$ac_ct_CC"; then
3201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_ac_ct_CC="$ac_prog"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3222 echo "${ECHO_T}$ac_ct_CC" >&6
3224 echo "$as_me:$LINENO: result: no" >&5
3225 echo "${ECHO_T}no" >&6
3228 test -n "$ac_ct_CC" && break
3237 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3243 # Provide some information about the compiler.
3244 echo "$as_me:$LINENO:" \
3245 "checking for C compiler version" >&5
3246 ac_compiler=`set X $ac_compile; echo $2`
3247 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3248 (eval $ac_compiler --version </dev/null >&5) 2>&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }
3252 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3253 (eval $ac_compiler -v </dev/null >&5) 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }
3257 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3258 (eval $ac_compiler -V </dev/null >&5) 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3263 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3264 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3265 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3286 rm -f conftest.$ac_objext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288 (eval $ac_compile) 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -z "$ac_c_werror_flag"
3296 || test ! -s conftest.err'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; } &&
3302 { ac_try='test -s conftest.$ac_objext'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3319 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3320 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3321 GCC=`test $ac_compiler_gnu = yes && echo yes`
3322 ac_test_CFLAGS=${CFLAGS+set}
3323 ac_save_CFLAGS=$CFLAGS
3325 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3326 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3327 if test "${ac_cv_prog_cc_g+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 cat >conftest.$ac_ext <<_ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>conftest.er1
3349 grep -v '^ *+' conftest.er1 >conftest.err
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -z "$ac_c_werror_flag"
3355 || test ! -s conftest.err'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3378 if test "$ac_test_CFLAGS" = set; then
3379 CFLAGS=$ac_save_CFLAGS
3380 elif test $ac_cv_prog_cc_g = yes; then
3381 if test "$GCC" = yes; then
3387 if test "$GCC" = yes; then
3393 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3394 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3395 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 ac_cv_prog_cc_stdc=no
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3408 #include <sys/types.h>
3409 #include <sys/stat.h>
3410 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3411 struct buf { int x; };
3412 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3413 static char *e (p, i)
3419 static char *f (char * (*g) (char **, int), char **p, ...)
3424 s = g (p, va_arg (v,int));
3429 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3430 function prototypes and stuff, but not '\xHH' hex character constants.
3431 These don't provoke an error unfortunately, instead are silently treated
3432 as 'x'. The following induces an error, until -std1 is added to get
3433 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3434 array size at least. It's necessary to write '\x00'==0 to get something
3435 that's true only with -std1. */
3436 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3438 int test (int i, double x);
3439 struct s1 {int (*f) (int a);};
3440 struct s2 {int (*f) (double a);};
3441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3447 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3452 # Don't try gcc -ansi; that turns off useful extensions and
3453 # breaks some systems' header files.
3454 # AIX -qlanglvl=ansi
3455 # Ultrix and OSF/1 -std1
3456 # HP-UX 10.20 and later -Ae
3457 # HP-UX older versions -Aa -D_HPUX_SOURCE
3458 # SVR4 -Xc -D__EXTENSIONS__
3459 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3461 CC="$ac_save_CC $ac_arg"
3462 rm -f conftest.$ac_objext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>conftest.er1
3466 grep -v '^ *+' conftest.er1 >conftest.err
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -z "$ac_c_werror_flag"
3472 || test ! -s conftest.err'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 ac_cv_prog_cc_stdc=$ac_arg
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3491 rm -f conftest.err conftest.$ac_objext
3493 rm -f conftest.$ac_ext conftest.$ac_objext
3498 case "x$ac_cv_prog_cc_stdc" in
3500 echo "$as_me:$LINENO: result: none needed" >&5
3501 echo "${ECHO_T}none needed" >&6 ;;
3503 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3504 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3505 CC="$CC $ac_cv_prog_cc_stdc" ;;
3508 # Some people use a C++ compiler to compile C. Since we use `exit',
3509 # in C++ we need to declare it. In case someone uses the same compiler
3510 # for both compiling C and C++ we need to have the C++ compiler decide
3511 # the declaration of exit, since it's the most demanding environment.
3512 cat >conftest.$ac_ext <<_ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_c_werror_flag"
3527 || test ! -s conftest.err'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; } &&
3533 { ac_try='test -s conftest.$ac_objext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 for ac_declaration in \
3541 'extern "C" void std::exit (int) throw (); using std::exit;' \
3542 'extern "C" void std::exit (int); using std::exit;' \
3543 'extern "C" void exit (int) throw ();' \
3544 'extern "C" void exit (int);' \
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3563 rm -f conftest.$ac_objext
3564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565 (eval $ac_compile) 2>conftest.er1
3567 grep -v '^ *+' conftest.er1 >conftest.err
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 { ac_try='test -z "$ac_c_werror_flag"
3573 || test ! -s conftest.err'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; } &&
3579 { ac_try='test -s conftest.$ac_objext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3612 grep -v '^ *+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639 if test -n "$ac_declaration"; then
3640 echo '#ifdef __cplusplus' >>confdefs.h
3641 echo $ac_declaration >>confdefs.h
3642 echo '#endif' >>confdefs.h
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 depcc="$CC" am_compiler_list=
3659 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3660 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3661 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3665 # We make a subdir and do the tests there. Otherwise we can end up
3666 # making bogus files that we don't know about and never remove. For
3667 # instance it was reported that on HP-UX the gcc test will end up
3668 # making a dummy file named `D' -- because `-MD' means `put the output
3671 # Copy depcomp to subdir because otherwise we won't find it if we're
3672 # using a relative directory.
3673 cp "$am_depcomp" conftest.dir
3675 # We will build objects and dependencies in a subdirectory because
3676 # it helps to detect inapplicable dependency modes. For instance
3677 # both Tru64's cc and ICC support -MD to output dependencies as a
3678 # side effect of compilation, but ICC will put the dependencies in
3679 # the current directory while Tru64 will put them in the object
3683 am_cv_CC_dependencies_compiler_type=none
3684 if test "$am_compiler_list" = ""; then
3685 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3687 for depmode in $am_compiler_list; do
3688 # Setup a source with many dependencies, because some compilers
3689 # like to wrap large dependency lists on column 80 (with \), and
3690 # we should not choose a depcomp mode which is confused by this.
3692 # We need to recreate these files for each test, as the compiler may
3693 # overwrite some of them when testing with obscure command lines.
3694 # This happens at least with the AIX C compiler.
3696 for i in 1 2 3 4 5 6; do
3697 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3700 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3704 # after this tag, mechanisms are not by side-effect, so they'll
3705 # only be used when explicitly requested
3706 if test "x$enable_dependency_tracking" = xyes; then
3714 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3715 # mode. It turns out that the SunPro C++ compiler does not properly
3716 # handle `-M -o', and we need to detect this.
3717 if depmode=$depmode \
3718 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3720 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3721 >/dev/null 2>conftest.err &&
3722 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3723 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3725 # icc doesn't choke on unknown options, it will just issue warnings
3726 # (even with -Werror). So we grep stderr for any message
3727 # that says an option was ignored.
3728 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3729 am_cv_CC_dependencies_compiler_type=$depmode
3738 am_cv_CC_dependencies_compiler_type=none
3742 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3743 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3744 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3749 test "x$enable_dependency_tracking" != xno \
3750 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3752 am__fastdepCC_FALSE='#'
3754 am__fastdepCC_TRUE='#'
3755 am__fastdepCC_FALSE=
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3766 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3767 # On Suns, sometimes $CPP names a directory.
3768 if test -n "$CPP" && test -d "$CPP"; then
3771 if test -z "$CPP"; then
3772 if test "${ac_cv_prog_CPP+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 # Double quotes because CPP needs to be expanded
3776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3779 for ac_c_preproc_warn_flag in '' yes
3781 # Use a header file that comes with gcc, so configuring glibc
3782 # with a fresh cross-compiler works.
3783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3784 # <limits.h> exists even on freestanding compilers.
3785 # On the NeXT, cc -E runs the code through the compiler's parser,
3786 # not just through cpp. "Syntax error" is here to catch this case.
3787 cat >conftest.$ac_ext <<_ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3794 # include <limits.h>
3796 # include <assert.h>
3800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3803 grep -v '^ *+' conftest.er1 >conftest.err
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } >/dev/null; then
3808 if test -s conftest.err; then
3809 ac_cpp_err=$ac_c_preproc_warn_flag
3810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3817 if test -z "$ac_cpp_err"; then
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 # Broken: fails on valid input.
3826 rm -f conftest.err conftest.$ac_ext
3828 # OK, works on sane cases. Now check whether non-existent headers
3829 # can be detected and how.
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 #include <ac_nonexistent.h>
3838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } >/dev/null; then
3846 if test -s conftest.err; then
3847 ac_cpp_err=$ac_c_preproc_warn_flag
3848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3855 if test -z "$ac_cpp_err"; then
3856 # Broken: success on invalid input.
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 # Passes both tests.
3866 rm -f conftest.err conftest.$ac_ext
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.err conftest.$ac_ext
3871 if $ac_preproc_ok; then
3883 echo "$as_me:$LINENO: result: $CPP" >&5
3884 echo "${ECHO_T}$CPP" >&6
3886 for ac_c_preproc_warn_flag in '' yes
3888 # Use a header file that comes with gcc, so configuring glibc
3889 # with a fresh cross-compiler works.
3890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891 # <limits.h> exists even on freestanding compilers.
3892 # On the NeXT, cc -E runs the code through the compiler's parser,
3893 # not just through cpp. "Syntax error" is here to catch this case.
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3901 # include <limits.h>
3903 # include <assert.h>
3907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3910 grep -v '^ *+' conftest.er1 >conftest.err
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } >/dev/null; then
3915 if test -s conftest.err; then
3916 ac_cpp_err=$ac_c_preproc_warn_flag
3917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3924 if test -z "$ac_cpp_err"; then
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 # Broken: fails on valid input.
3933 rm -f conftest.err conftest.$ac_ext
3935 # OK, works on sane cases. Now check whether non-existent headers
3936 # can be detected and how.
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #include <ac_nonexistent.h>
3945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3948 grep -v '^ *+' conftest.er1 >conftest.err
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } >/dev/null; then
3953 if test -s conftest.err; then
3954 ac_cpp_err=$ac_c_preproc_warn_flag
3955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3962 if test -z "$ac_cpp_err"; then
3963 # Broken: success on invalid input.
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 # Passes both tests.
3973 rm -f conftest.err conftest.$ac_ext
3976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977 rm -f conftest.err conftest.$ac_ext
3978 if $ac_preproc_ok; then
3981 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3982 See \`config.log' for more details." >&5
3983 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3984 See \`config.log' for more details." >&2;}
3985 { (exit 1); exit 1; }; }
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 echo "$as_me:$LINENO: checking for egrep" >&5
3996 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3997 if test "${ac_cv_prog_egrep+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4001 then ac_cv_prog_egrep='grep -E'
4002 else ac_cv_prog_egrep='egrep'
4005 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4006 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4007 EGREP=$ac_cv_prog_egrep
4010 if test $ac_cv_c_compiler_gnu = yes; then
4011 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4012 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4013 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 ac_pattern="Autoconf.*'x'"
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4028 ac_cv_prog_gcc_traditional=yes
4030 ac_cv_prog_gcc_traditional=no
4035 if test $ac_cv_prog_gcc_traditional = no; then
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4046 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4047 ac_cv_prog_gcc_traditional=yes
4053 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4054 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4055 if test $ac_cv_prog_gcc_traditional = yes; then
4056 CC="$CC -traditional"
4060 # Find a good install program. We prefer a C program (faster),
4061 # so one script is as good as another. But avoid the broken or
4062 # incompatible versions:
4063 # SysV /etc/install, /usr/sbin/install
4064 # SunOS /usr/etc/install
4065 # IRIX /sbin/install
4067 # AmigaOS /C/install, which installs bootblocks on floppy discs
4068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4071 # OS/2's system install, which has a completely different semantic
4072 # ./install, which can be erroneously created by make from ./install.sh.
4073 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4075 if test -z "$INSTALL"; then
4076 if test "${ac_cv_path_install+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir=.
4084 # Account for people who put trailing slashes in PATH elements.
4086 ./ | .// | /cC/* | \
4087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4088 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4091 # OSF1 and SCO ODT 3.0 have their own names for install.
4092 # Don't use installbsd from OSF since it installs stuff as root
4094 for ac_prog in ginstall scoinst install; do
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4097 if test $ac_prog = install &&
4098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4099 # AIX install. It has an incompatible calling convention.
4101 elif test $ac_prog = install &&
4102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4103 # program-specific install script used by HP pwplus--don't use.
4106 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4118 if test "${ac_cv_path_install+set}" = set; then
4119 INSTALL=$ac_cv_path_install
4121 # As a last resort, use the slow shell script. We don't cache a
4122 # path for INSTALL within a source directory, because that will
4123 # break other packages using the cache if that directory is
4124 # removed, or if the path is relative.
4125 INSTALL=$ac_install_sh
4128 echo "$as_me:$LINENO: result: $INSTALL" >&5
4129 echo "${ECHO_T}$INSTALL" >&6
4131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4132 # It thinks the first close brace ends the variable substitution.
4133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4139 for ac_prog in gawk mawk nawk awk
4141 # Extract the first word of "$ac_prog", so it can be a program name with args.
4142 set dummy $ac_prog; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_AWK+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 if test -n "$AWK"; then
4149 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_AWK="$ac_prog"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 if test -n "$AWK"; then
4169 echo "$as_me:$LINENO: result: $AWK" >&5
4170 echo "${ECHO_T}$AWK" >&6
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4176 test -n "$AWK" && break
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4182 echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4184 if test "${ac_cv_prog_RANLIB+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 if test -n "$RANLIB"; then
4188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 RANLIB=$ac_cv_prog_RANLIB
4207 if test -n "$RANLIB"; then
4208 echo "$as_me:$LINENO: result: $RANLIB" >&5
4209 echo "${ECHO_T}$RANLIB" >&6
4211 echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4216 if test -z "$ac_cv_prog_RANLIB"; then
4217 ac_ct_RANLIB=$RANLIB
4218 # Extract the first word of "ranlib", so it can be a program name with args.
4219 set dummy ranlib; ac_word=$2
4220 echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 if test -n "$ac_ct_RANLIB"; then
4226 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_ac_ct_RANLIB="ranlib"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4245 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4246 if test -n "$ac_ct_RANLIB"; then
4247 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4248 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4250 echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4254 RANLIB=$ac_ct_RANLIB
4256 RANLIB="$ac_cv_prog_RANLIB"
4259 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4260 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4262 if test "$LN_S" = "ln -s"; then
4263 echo "$as_me:$LINENO: result: yes" >&5
4264 echo "${ECHO_T}yes" >&6
4266 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4267 echo "${ECHO_T}no, using $LN_S" >&6
4270 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
4271 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
4272 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
4273 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 cat > conftest.$ac_ext <<EOF
4277 int main() {return 0;}
4279 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
4280 if test -s conftest.out; then
4281 eval "timidity_cv_ccoption_$ac_ccoption=no"
4283 eval "timidity_cv_ccoption_$ac_ccoption=yes"
4286 eval "timidity_cv_ccoption_$ac_ccoption=no"
4291 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
4292 echo "$as_me:$LINENO: result: yes" >&5
4293 echo "${ECHO_T}yes" >&6
4296 echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4302 if test "x$NOCFLAGS" = "xyes"; then
4303 if test "x$GCC" = "xyes"; then
4310 # Checks for target dependencies
4313 # Check whether --with-elf or --without-elf was given.
4314 if test "${with_elf+set}" = set; then
4322 # [ --with-simd create SIMD friendly binary (default is no) ],
4323 # [ SIMD=$withval ], [ SIMD="no" ])
4328 test -n "$SHLD" || SHLD="ld -b"
4332 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
4333 test -n "$SHLD" || SHLD="cc -shared -all"
4337 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
4342 test -n "$SHLD" || SHLD="ld -Bshareable"
4346 if test "$ELFFORMAT" = yes; then
4347 test -n "$SHLD" || SHLD="ld -Bshareable"
4350 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
4351 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
4357 # EXTRALIBS="$EXTRALIBS -lxpg4"
4358 # test -n "$SHLD" || SHLD="ld -Bshareable"
4362 *-*-cygwin*|*-*-mingw*)
4363 EXTRADEFS="-D__W32__"
4367 # test -n "$SHLD" || SHLD="tlink32 -Tpd"
4368 test -n "$SHLD" || SHLD="BCC32 -WD"
4370 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
4371 BORLANDC_START='C0X32.OBJ'
4372 CFLAGS="$CFLAGS -tWM -VM"
4373 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4376 test -n "$SHLD" || SHLD="dmc -WD"
4378 DMC_LDFLAGS="winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib"
4379 CFLAGS="$CFLAGS -mn -j0"
4381 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4385 CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
4388 EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4391 test -n "$SHLD" || SHLD="link -dll"
4394 *" -MT "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4395 *" -MD "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4396 *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4397 *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4398 *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4400 VCPP_LDFLAGS="-nologo -incremental:no $NODEF kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4401 CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX -Ob2"
4402 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c"
4404 "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
4405 *) test -n "$SHLD" || SHLD="unknown" ;;
4409 lib_user32_test=-luser32
4413 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
4417 EXTRADEFS="-DSOLARIS"
4418 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4422 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4426 if test "x$SIMD" = "xyes"; then
4428 cat >>confdefs.h <<\_ACEOF
4429 #define USE_ALTIVEC 1
4432 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4433 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4436 cat >>confdefs.h <<\_ACEOF
4437 #define USE_ALTIVEC 0
4441 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4442 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4443 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4447 test -n "$SHLD" || \
4448 if test "x$GCC" = xyes; then
4451 SHLD="ld -Bdynamic -G"
4458 # Checks for libraries.
4460 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4461 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4462 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 ac_check_lib_save_LIBS=$LIBS
4467 cat >conftest.$ac_ext <<_ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4474 /* Override any gcc2 internal prototype to avoid an error. */
4478 /* We use char because int might match the return type of a gcc2
4479 builtin and then its argument prototype would still apply. */
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491 (eval $ac_link) 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -z "$ac_c_werror_flag"
4499 || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest$ac_exeext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_lib_m_sqrt=yes
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4518 rm -f conftest.err conftest.$ac_objext \
4519 conftest$ac_exeext conftest.$ac_ext
4520 LIBS=$ac_check_lib_save_LIBS
4522 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4523 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4524 if test $ac_cv_lib_m_sqrt = yes; then
4525 cat >>confdefs.h <<_ACEOF
4534 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4535 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4536 if test "${ac_cv_lib_socket_socket+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 ac_check_lib_save_LIBS=$LIBS
4540 LIBS="-lsocket $LIBS"
4541 cat >conftest.$ac_ext <<_ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4548 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>conftest.er1
4567 grep -v '^ *+' conftest.er1 >conftest.err
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_lib_socket_socket=yes
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 ac_cv_lib_socket_socket=no
4592 rm -f conftest.err conftest.$ac_objext \
4593 conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4596 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4597 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4598 if test $ac_cv_lib_socket_socket = yes; then
4599 cat >>confdefs.h <<_ACEOF
4600 #define HAVE_LIBSOCKET 1
4603 LIBS="-lsocket $LIBS"
4607 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4608 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4609 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 ac_check_lib_save_LIBS=$LIBS
4614 cat >conftest.$ac_ext <<_ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4621 /* Override any gcc2 internal prototype to avoid an error. */
4625 /* We use char because int might match the return type of a gcc2
4626 builtin and then its argument prototype would still apply. */
4636 rm -f conftest.$ac_objext conftest$ac_exeext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638 (eval $ac_link) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag"
4646 || test ! -s conftest.err'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest$ac_exeext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_cv_lib_dl_dlopen=yes
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_cv_lib_dl_dlopen=no
4665 rm -f conftest.err conftest.$ac_objext \
4666 conftest$ac_exeext conftest.$ac_ext
4667 LIBS=$ac_check_lib_save_LIBS
4669 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4670 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4671 if test $ac_cv_lib_dl_dlopen = yes; then
4675 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4676 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4677 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 ac_check_lib_save_LIBS=$LIBS
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4689 /* Override any gcc2 internal prototype to avoid an error. */
4693 /* We use char because int might match the return type of a gcc2
4694 builtin and then its argument prototype would still apply. */
4695 char NSLinkModule ();
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706 (eval $ac_link) 2>conftest.er1
4708 grep -v '^ *+' conftest.er1 >conftest.err
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -z "$ac_c_werror_flag"
4714 || test ! -s conftest.err'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; } &&
4720 { ac_try='test -s conftest$ac_exeext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_cv_lib_objc_NSLinkModule=yes
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 ac_cv_lib_objc_NSLinkModule=no
4733 rm -f conftest.err conftest.$ac_objext \
4734 conftest$ac_exeext conftest.$ac_ext
4735 LIBS=$ac_check_lib_save_LIBS
4737 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4738 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4739 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4742 # Mac OS X need this.
4743 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; then
4745 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4746 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4747 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 ac_check_lib_save_LIBS=$LIBS
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4759 /* Override any gcc2 internal prototype to avoid an error. */
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4774 rm -f conftest.$ac_objext conftest$ac_exeext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4776 (eval $ac_link) 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -z "$ac_c_werror_flag"
4784 || test ! -s conftest.err'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try='test -s conftest$ac_exeext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_lib_xpg4_setlocale=yes
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4801 ac_cv_lib_xpg4_setlocale=no
4803 rm -f conftest.err conftest.$ac_objext \
4804 conftest$ac_exeext conftest.$ac_ext
4805 LIBS=$ac_check_lib_save_LIBS
4807 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4808 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4809 if test $ac_cv_lib_xpg4_setlocale = yes; then
4810 cat >>confdefs.h <<_ACEOF
4811 #define HAVE_LIBXPG4 1
4817 # Mac OS X (and maybe NetBSD) need this.
4820 for ac_func in gethostbyname
4822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4823 echo "$as_me:$LINENO: checking for $ac_func" >&5
4824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4825 if eval "test \"\${$as_ac_var+set}\" = set"; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4836 #define $ac_func innocuous_$ac_func
4838 /* System header to define __stub macros and hopefully few prototypes,
4839 which can conflict with char $ac_func (); below.
4840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841 <limits.h> exists even on freestanding compilers. */
4844 # include <limits.h>
4846 # include <assert.h>
4851 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4859 /* The GNU C library defines this for functions which it implements
4860 to always fail with ENOSYS. Some functions are actually named
4861 something starting with __ and the normal name is an alias. */
4862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4865 char (*f) () = $ac_func;
4874 return f != $ac_func;
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881 (eval $ac_link) 2>conftest.er1
4883 grep -v '^ *+' conftest.er1 >conftest.err
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 eval "$as_ac_var=yes"
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 eval "$as_ac_var=no"
4908 rm -f conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4913 if test `eval echo '${'$as_ac_var'}'` = yes; then
4914 cat >>confdefs.h <<_ACEOF
4915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4920 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4921 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4922 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 ac_check_lib_save_LIBS=$LIBS
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4940 char gethostbyname ();
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951 (eval $ac_link) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_nsl_gethostbyname=yes
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_cv_lib_nsl_gethostbyname=no
4978 rm -f conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4983 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4984 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4985 cat >>confdefs.h <<_ACEOF
4986 #define HAVE_LIBNSL 1
4996 echo "$as_me:$LINENO: checking for X" >&5
4997 echo $ECHO_N "checking for X... $ECHO_C" >&6
5000 # Check whether --with-x or --without-x was given.
5001 if test "${with_x+set}" = set; then
5005 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5006 if test "x$with_x" = xno; then
5007 # The user explicitly disabled X.
5010 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5011 # Both variables are already set.
5014 if test "${ac_cv_have_x+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 # One or both of the vars are not set, and there is no cached value.
5018 ac_x_includes=no ac_x_libraries=no
5020 if mkdir conftest.dir; then
5022 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5023 cat >Imakefile <<'_ACEOF'
5025 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5027 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5028 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5029 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5030 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5031 for ac_extension in a so sl; do
5032 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5033 test -f $ac_im_libdir/libX11.$ac_extension; then
5034 ac_im_usrlibdir=$ac_im_libdir; break
5037 # Screen out bogus values from the imake configuration. They are
5038 # bogus both because they are the default anyway, and because
5039 # using them would break gcc on systems where it needs fixed includes.
5040 case $ac_im_incroot in
5042 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5044 case $ac_im_usrlibdir in
5046 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5053 # Standard set of common directories for X headers.
5054 # Check X11 before X11Rn because it is often a symlink to the current release.
5066 /usr/local/X11/include
5067 /usr/local/X11R6/include
5068 /usr/local/X11R5/include
5069 /usr/local/X11R4/include
5071 /usr/local/include/X11
5072 /usr/local/include/X11R6
5073 /usr/local/include/X11R5
5074 /usr/local/include/X11R4
5078 /usr/XFree86/include/X11
5082 /usr/unsupported/include
5084 /usr/local/x11r5/include
5085 /usr/lpp/Xamples/include
5087 /usr/openwin/include
5088 /usr/openwin/share/include'
5090 if test "$ac_x_includes" = no; then
5091 # Guess where to find include files, by looking for Intrinsic.h.
5092 # First, try using that file with no special directory specified.
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 #include <X11/Intrinsic.h>
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5104 grep -v '^ *+' conftest.er1 >conftest.err
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null; then
5109 if test -s conftest.err; then
5110 ac_cpp_err=$ac_c_preproc_warn_flag
5111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5118 if test -z "$ac_cpp_err"; then
5119 # We can compile using X headers with no special include directory.
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5125 for ac_dir in $ac_x_header_dirs; do
5126 if test -r "$ac_dir/X11/Intrinsic.h"; then
5127 ac_x_includes=$ac_dir
5132 rm -f conftest.err conftest.$ac_ext
5133 fi # $ac_x_includes = no
5135 if test "$ac_x_libraries" = no; then
5136 # Check for the libraries.
5137 # See if we find them without any special options.
5138 # Don't add to $LIBS permanently.
5141 cat >conftest.$ac_ext <<_ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #include <X11/Intrinsic.h>
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158 (eval $ac_link) 2>conftest.er1
5160 grep -v '^ *+' conftest.er1 >conftest.err
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -z "$ac_c_werror_flag"
5166 || test ! -s conftest.err'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; } &&
5172 { ac_try='test -s conftest$ac_exeext'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5179 # We can link X programs with no special library path.
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5186 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5188 # Don't even attempt the hair of trying to link an X program!
5189 for ac_extension in a so sl; do
5190 if test -r $ac_dir/libXt.$ac_extension; then
5191 ac_x_libraries=$ac_dir
5197 rm -f conftest.err conftest.$ac_objext \
5198 conftest$ac_exeext conftest.$ac_ext
5199 fi # $ac_x_libraries = no
5201 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5202 # Didn't find X anywhere. Cache the known absence of X.
5203 ac_cv_have_x="have_x=no"
5205 # Record where we found X for the cache.
5206 ac_cv_have_x="have_x=yes \
5207 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5212 eval "$ac_cv_have_x"
5215 if test "$have_x" != yes; then
5216 echo "$as_me:$LINENO: result: $have_x" >&5
5217 echo "${ECHO_T}$have_x" >&6
5220 # If each of the values was on the command line, it overrides each guess.
5221 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5222 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5223 # Update the cache value to reflect the command line values.
5224 ac_cv_have_x="have_x=yes \
5225 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5226 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5227 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5230 if test "$no_x" = yes; then
5231 # Not all programs may use this symbol, but it does not hurt to define it.
5233 cat >>confdefs.h <<\_ACEOF
5234 #define X_DISPLAY_MISSING 1
5237 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5239 if test -n "$x_includes"; then
5240 X_CFLAGS="$X_CFLAGS -I$x_includes"
5243 # It would also be nice to do this for all -L options, not just this one.
5244 if test -n "$x_libraries"; then
5245 X_LIBS="$X_LIBS -L$x_libraries"
5246 # For Solaris; some versions of Sun CC require a space after -R and
5247 # others require no space. Words are not sufficient . . . .
5248 case `(uname -sr) 2>/dev/null` in
5250 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5251 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5252 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5268 rm -f conftest.$ac_objext conftest$ac_exeext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5270 (eval $ac_link) 2>conftest.er1
5272 grep -v '^ *+' conftest.er1 >conftest.err
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -z "$ac_c_werror_flag"
5278 || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest$ac_exeext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5297 rm -f conftest.err conftest.$ac_objext \
5298 conftest$ac_exeext conftest.$ac_ext
5299 if test $ac_R_nospace = yes; then
5300 echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5302 X_LIBS="$X_LIBS -R$x_libraries"
5304 LIBS="$ac_xsave_LIBS -R $x_libraries"
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5320 rm -f conftest.$ac_objext conftest$ac_exeext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322 (eval $ac_link) 2>conftest.er1
5324 grep -v '^ *+' conftest.er1 >conftest.err
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_c_werror_flag"
5330 || test ! -s conftest.err'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; } &&
5336 { ac_try='test -s conftest$ac_exeext'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; }; then
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5349 rm -f conftest.err conftest.$ac_objext \
5350 conftest$ac_exeext conftest.$ac_ext
5351 if test $ac_R_space = yes; then
5352 echo "$as_me:$LINENO: result: yes" >&5
5353 echo "${ECHO_T}yes" >&6
5354 X_LIBS="$X_LIBS -R $x_libraries"
5356 echo "$as_me:$LINENO: result: neither works" >&5
5357 echo "${ECHO_T}neither works" >&6
5364 # Check for system-dependent libraries X programs must link with.
5365 # Do this before checking for the system-independent R6 libraries
5366 # (-lICE), since we may need -lsocket or whatever for X linking.
5368 if test "$ISC" = yes; then
5369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5371 # Martyn Johnson says this is needed for Ultrix, if the X
5372 # libraries were built with DECnet support. And Karl Berry says
5373 # the Alpha needs dnet_stub (dnet does not exist).
5374 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5375 cat >conftest.$ac_ext <<_ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5382 /* Override any gcc2 internal prototype to avoid an error. */
5386 /* We use char because int might match the return type of a gcc2
5387 builtin and then its argument prototype would still apply. */
5388 char XOpenDisplay ();
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399 (eval $ac_link) 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag"
5407 || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest$ac_exeext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5425 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5426 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 ac_check_lib_save_LIBS=$LIBS
5431 cat >conftest.$ac_ext <<_ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5438 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5453 rm -f conftest.$ac_objext conftest$ac_exeext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>conftest.er1
5457 grep -v '^ *+' conftest.er1 >conftest.err
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_lib_dnet_dnet_ntoa=yes
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 ac_cv_lib_dnet_dnet_ntoa=no
5482 rm -f conftest.err conftest.$ac_objext \
5483 conftest$ac_exeext conftest.$ac_ext
5484 LIBS=$ac_check_lib_save_LIBS
5486 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5487 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5488 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5489 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5492 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5493 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5494 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5495 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 ac_check_lib_save_LIBS=$LIBS
5499 LIBS="-ldnet_stub $LIBS"
5500 cat >conftest.$ac_ext <<_ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5507 /* Override any gcc2 internal prototype to avoid an error. */
5511 /* We use char because int might match the return type of a gcc2
5512 builtin and then its argument prototype would still apply. */
5522 rm -f conftest.$ac_objext conftest$ac_exeext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_c_werror_flag"
5532 || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest$ac_exeext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_cv_lib_dnet_stub_dnet_ntoa=no
5551 rm -f conftest.err conftest.$ac_objext \
5552 conftest$ac_exeext conftest.$ac_ext
5553 LIBS=$ac_check_lib_save_LIBS
5555 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5556 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5557 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5558 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5563 rm -f conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext conftest.$ac_ext
5565 LIBS="$ac_xsave_LIBS"
5567 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5568 # to get the SysV transport functions.
5569 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5571 # The nsl library prevents programs from opening the X display
5572 # on Irix 5.2, according to T.E. Dickey.
5573 # The functions gethostbyname, getservbyname, and inet_addr are
5574 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5575 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5576 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5577 if test "${ac_cv_func_gethostbyname+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 cat >conftest.$ac_ext <<_ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5588 #define gethostbyname innocuous_gethostbyname
5590 /* System header to define __stub macros and hopefully few prototypes,
5591 which can conflict with char gethostbyname (); below.
5592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5593 <limits.h> exists even on freestanding compilers. */
5596 # include <limits.h>
5598 # include <assert.h>
5601 #undef gethostbyname
5603 /* Override any gcc2 internal prototype to avoid an error. */
5608 /* We use char because int might match the return type of a gcc2
5609 builtin and then its argument prototype would still apply. */
5610 char gethostbyname ();
5611 /* The GNU C library defines this for functions which it implements
5612 to always fail with ENOSYS. Some functions are actually named
5613 something starting with __ and the normal name is an alias. */
5614 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5617 char (*f) () = gethostbyname;
5626 return f != gethostbyname;
5631 rm -f conftest.$ac_objext conftest$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1 >conftest.err
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_func_gethostbyname=yes
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_cv_func_gethostbyname=no
5660 rm -f conftest.err conftest.$ac_objext \
5661 conftest$ac_exeext conftest.$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5664 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5666 if test $ac_cv_func_gethostbyname = no; then
5667 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5668 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5669 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 ac_check_lib_save_LIBS=$LIBS
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 /* Override any gcc2 internal prototype to avoid an error. */
5685 /* We use char because int might match the return type of a gcc2
5686 builtin and then its argument prototype would still apply. */
5687 char gethostbyname ();
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>conftest.er1
5700 grep -v '^ *+' conftest.er1 >conftest.err
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } &&
5705 { ac_try='test -z "$ac_c_werror_flag"
5706 || test ! -s conftest.err'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; } &&
5712 { ac_try='test -s conftest$ac_exeext'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 ac_cv_lib_nsl_gethostbyname=yes
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 ac_cv_lib_nsl_gethostbyname=no
5725 rm -f conftest.err conftest.$ac_objext \
5726 conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_check_lib_save_LIBS
5729 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5730 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5731 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5732 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5735 if test $ac_cv_lib_nsl_gethostbyname = no; then
5736 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5737 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5738 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 ac_check_lib_save_LIBS=$LIBS
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5750 /* Override any gcc2 internal prototype to avoid an error. */
5754 /* We use char because int might match the return type of a gcc2
5755 builtin and then its argument prototype would still apply. */
5756 char gethostbyname ();
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5767 (eval $ac_link) 2>conftest.er1
5769 grep -v '^ *+' conftest.er1 >conftest.err
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest$ac_exeext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 ac_cv_lib_bsd_gethostbyname=yes
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 ac_cv_lib_bsd_gethostbyname=no
5794 rm -f conftest.err conftest.$ac_objext \
5795 conftest$ac_exeext conftest.$ac_ext
5796 LIBS=$ac_check_lib_save_LIBS
5798 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5799 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5800 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5807 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5808 # socket/setsockopt and other routines are undefined under SCO ODT
5809 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5810 # on later versions), says Simon Leinen: it contains gethostby*
5811 # variants that don't use the name server (or something). -lsocket
5812 # must be given before -lnsl if both are needed. We assume that
5813 # if connect needs -lnsl, so does gethostbyname.
5814 echo "$as_me:$LINENO: checking for connect" >&5
5815 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5816 if test "${ac_cv_func_connect+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 cat >conftest.$ac_ext <<_ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5827 #define connect innocuous_connect
5829 /* System header to define __stub macros and hopefully few prototypes,
5830 which can conflict with char connect (); below.
5831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 <limits.h> exists even on freestanding compilers. */
5835 # include <limits.h>
5837 # include <assert.h>
5842 /* Override any gcc2 internal prototype to avoid an error. */
5847 /* We use char because int might match the return type of a gcc2
5848 builtin and then its argument prototype would still apply. */
5850 /* The GNU C library defines this for functions which it implements
5851 to always fail with ENOSYS. Some functions are actually named
5852 something starting with __ and the normal name is an alias. */
5853 #if defined (__stub_connect) || defined (__stub___connect)
5856 char (*f) () = connect;
5865 return f != connect;
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872 (eval $ac_link) 2>conftest.er1
5874 grep -v '^ *+' conftest.er1 >conftest.err
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -z "$ac_c_werror_flag"
5880 || test ! -s conftest.err'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try='test -s conftest$ac_exeext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_cv_func_connect=yes
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5897 ac_cv_func_connect=no
5899 rm -f conftest.err conftest.$ac_objext \
5900 conftest$ac_exeext conftest.$ac_ext
5902 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5903 echo "${ECHO_T}$ac_cv_func_connect" >&6
5905 if test $ac_cv_func_connect = no; then
5906 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5907 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5908 if test "${ac_cv_lib_socket_connect+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_check_lib_save_LIBS=$LIBS
5912 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5913 cat >conftest.$ac_ext <<_ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5920 /* Override any gcc2 internal prototype to avoid an error. */
5924 /* We use char because int might match the return type of a gcc2
5925 builtin and then its argument prototype would still apply. */
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 (eval $ac_link) 2>conftest.er1
5939 grep -v '^ *+' conftest.er1 >conftest.err
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -z "$ac_c_werror_flag"
5945 || test ! -s conftest.err'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; } &&
5951 { ac_try='test -s conftest$ac_exeext'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; }; then
5957 ac_cv_lib_socket_connect=yes
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 ac_cv_lib_socket_connect=no
5964 rm -f conftest.err conftest.$ac_objext \
5965 conftest$ac_exeext conftest.$ac_ext
5966 LIBS=$ac_check_lib_save_LIBS
5968 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5969 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5970 if test $ac_cv_lib_socket_connect = yes; then
5971 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5976 # Guillermo Gomez says -lposix is necessary on A/UX.
5977 echo "$as_me:$LINENO: checking for remove" >&5
5978 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5979 if test "${ac_cv_func_remove+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5990 #define remove innocuous_remove
5992 /* System header to define __stub macros and hopefully few prototypes,
5993 which can conflict with char remove (); below.
5994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995 <limits.h> exists even on freestanding compilers. */
5998 # include <limits.h>
6000 # include <assert.h>
6005 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6013 /* The GNU C library defines this for functions which it implements
6014 to always fail with ENOSYS. Some functions are actually named
6015 something starting with __ and the normal name is an alias. */
6016 #if defined (__stub_remove) || defined (__stub___remove)
6019 char (*f) () = remove;
6033 rm -f conftest.$ac_objext conftest$ac_exeext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035 (eval $ac_link) 2>conftest.er1
6037 grep -v '^ *+' conftest.er1 >conftest.err
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try='test -z "$ac_c_werror_flag"
6043 || test ! -s conftest.err'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest$ac_exeext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_cv_func_remove=yes
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 ac_cv_func_remove=no
6062 rm -f conftest.err conftest.$ac_objext \
6063 conftest$ac_exeext conftest.$ac_ext
6065 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6066 echo "${ECHO_T}$ac_cv_func_remove" >&6
6068 if test $ac_cv_func_remove = no; then
6069 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6070 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6071 if test "${ac_cv_lib_posix_remove+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 ac_check_lib_save_LIBS=$LIBS
6075 LIBS="-lposix $LIBS"
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6083 /* Override any gcc2 internal prototype to avoid an error. */
6087 /* We use char because int might match the return type of a gcc2
6088 builtin and then its argument prototype would still apply. */
6098 rm -f conftest.$ac_objext conftest$ac_exeext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100 (eval $ac_link) 2>conftest.er1
6102 grep -v '^ *+' conftest.er1 >conftest.err
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag"
6108 || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_lib_posix_remove=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_lib_posix_remove=no
6127 rm -f conftest.err conftest.$ac_objext \
6128 conftest$ac_exeext conftest.$ac_ext
6129 LIBS=$ac_check_lib_save_LIBS
6131 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6132 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6133 if test $ac_cv_lib_posix_remove = yes; then
6134 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6139 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6140 echo "$as_me:$LINENO: checking for shmat" >&5
6141 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6142 if test "${ac_cv_func_shmat+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6153 #define shmat innocuous_shmat
6155 /* System header to define __stub macros and hopefully few prototypes,
6156 which can conflict with char shmat (); below.
6157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6158 <limits.h> exists even on freestanding compilers. */
6161 # include <limits.h>
6163 # include <assert.h>
6168 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6176 /* The GNU C library defines this for functions which it implements
6177 to always fail with ENOSYS. Some functions are actually named
6178 something starting with __ and the normal name is an alias. */
6179 #if defined (__stub_shmat) || defined (__stub___shmat)
6182 char (*f) () = shmat;
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>conftest.er1
6200 grep -v '^ *+' conftest.er1 >conftest.err
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -z "$ac_c_werror_flag"
6206 || test ! -s conftest.err'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try='test -s conftest$ac_exeext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_func_shmat=yes
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6225 rm -f conftest.err conftest.$ac_objext \
6226 conftest$ac_exeext conftest.$ac_ext
6228 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6229 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6231 if test $ac_cv_func_shmat = no; then
6232 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6233 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6234 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_check_lib_save_LIBS=$LIBS
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6246 /* Override any gcc2 internal prototype to avoid an error. */
6250 /* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263 (eval $ac_link) 2>conftest.er1
6265 grep -v '^ *+' conftest.er1 >conftest.err
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -z "$ac_c_werror_flag"
6271 || test ! -s conftest.err'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; } &&
6277 { ac_try='test -s conftest$ac_exeext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_lib_ipc_shmat=yes
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_cv_lib_ipc_shmat=no
6290 rm -f conftest.err conftest.$ac_objext \
6291 conftest$ac_exeext conftest.$ac_ext
6292 LIBS=$ac_check_lib_save_LIBS
6294 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6295 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6296 if test $ac_cv_lib_ipc_shmat = yes; then
6297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6303 # Check for libraries that X11R6 Xt/Xaw programs need.
6304 ac_save_LDFLAGS=$LDFLAGS
6305 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6306 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6307 # check for ICE first), but we must link in the order -lSM -lICE or
6308 # we get undefined symbols. So assume we have SM if we have ICE.
6309 # These have to be linked with before -lX11, unlike the other
6310 # libraries we check for below, so use a different variable.
6311 # John Interrante, Karl Berry
6312 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6313 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6314 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 ac_check_lib_save_LIBS=$LIBS
6318 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6326 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6332 char IceConnectionNumber ();
6336 IceConnectionNumber ();
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_lib_ICE_IceConnectionNumber=yes
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_cv_lib_ICE_IceConnectionNumber=no
6370 rm -f conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
6372 LIBS=$ac_check_lib_save_LIBS
6374 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6375 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6376 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6377 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6380 LDFLAGS=$ac_save_LDFLAGS
6386 if test "x$with_x" = xyes; then
6387 if test "x$have_x" = xno; then
6388 if test "x$x_config_flag" = xyes; then
6389 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
6390 echo "$as_me: error: Could not configure X" >&2;}
6391 { (exit 1); exit 1; }; }
6393 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
6394 echo "$as_me: WARNING: Could not configure X" >&2;}
6398 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
6399 if test "x$x_libraries" != x; then
6400 ldflags_x_opt="-L$x_libraries"
6401 LDFLAGS="$LDFLAGS $ldflags_x_opt"
6402 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
6406 if test "x$x_includes" != x; then
6407 CPPFLAGS="$CPPFLAGS -I$x_includes"
6411 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6412 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
6413 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 ac_check_lib_save_LIBS=$LIBS
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6425 /* Override any gcc2 internal prototype to avoid an error. */
6429 /* We use char because int might match the return type of a gcc2
6430 builtin and then its argument prototype would still apply. */
6431 char XOpenDisplay ();
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest$ac_exeext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_lib_X11_XOpenDisplay=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 ac_cv_lib_X11_XOpenDisplay=no
6469 rm -f conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6471 LIBS=$ac_check_lib_save_LIBS
6473 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6474 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6475 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6476 cat >>confdefs.h <<_ACEOF
6477 #define HAVE_LIBX11 1
6484 echo "$as_me:$LINENO: checking X11 version 6" >&5
6485 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6486 if test "${timidity_cv_x11_version_6+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 #include <X11/Xlib.h>
6500 #if XlibSpecificationRelease < 6
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510 (eval $ac_link) 2>conftest.er1
6512 grep -v '^ *+' conftest.er1 >conftest.err
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest$ac_exeext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 timidity_cv_x11_version_6=yes
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 timidity_cv_x11_version_6=no
6537 rm -f conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6541 if test "$timidity_cv_x11_version_6" = "yes"; then
6542 echo "$as_me:$LINENO: result: 6 or newer" >&5
6543 echo "${ECHO_T}6 or newer" >&6
6545 echo "$as_me:$LINENO: result: before 6" >&5
6546 echo "${ECHO_T}before 6" >&6
6550 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6551 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6552 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 ac_check_lib_save_LIBS=$LIBS
6557 cat >conftest.$ac_ext <<_ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6564 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6570 char XShapeCombineMask ();
6574 XShapeCombineMask ();
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>conftest.er1
6583 grep -v '^ *+' conftest.er1 >conftest.err
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest$ac_exeext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_cv_lib_Xext_XShapeCombineMask=yes
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_cv_lib_Xext_XShapeCombineMask=no
6608 rm -f conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610 LIBS=$ac_check_lib_save_LIBS
6612 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6613 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6614 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6615 have_xext=yes; LIBS="-lXext $LIBS"
6621 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6622 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6623 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 ac_check_lib_save_LIBS=$LIBS
6628 cat >conftest.$ac_ext <<_ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6635 /* Override any gcc2 internal prototype to avoid an error. */
6639 /* We use char because int might match the return type of a gcc2
6640 builtin and then its argument prototype would still apply. */
6641 char IceConnectionNumber ();
6645 IceConnectionNumber ();
6650 rm -f conftest.$ac_objext conftest$ac_exeext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652 (eval $ac_link) 2>conftest.er1
6654 grep -v '^ *+' conftest.er1 >conftest.err
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest$ac_exeext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_cv_lib_ICE_IceConnectionNumber=yes
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6677 ac_cv_lib_ICE_IceConnectionNumber=no
6679 rm -f conftest.err conftest.$ac_objext \
6680 conftest$ac_exeext conftest.$ac_ext
6681 LIBS=$ac_check_lib_save_LIBS
6683 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6684 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6685 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6686 cat >>confdefs.h <<_ACEOF
6687 #define HAVE_LIBICE 1
6694 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6695 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6696 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_check_lib_save_LIBS=$LIBS
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6708 /* Override any gcc2 internal prototype to avoid an error. */
6712 /* We use char because int might match the return type of a gcc2
6713 builtin and then its argument prototype would still apply. */
6714 char SmcOpenConnection ();
6718 SmcOpenConnection ();
6723 rm -f conftest.$ac_objext conftest$ac_exeext
6724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6725 (eval $ac_link) 2>conftest.er1
6727 grep -v '^ *+' conftest.er1 >conftest.err
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try='test -z "$ac_c_werror_flag"
6733 || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest$ac_exeext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_cv_lib_SM_SmcOpenConnection=yes
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6750 ac_cv_lib_SM_SmcOpenConnection=no
6752 rm -f conftest.err conftest.$ac_objext \
6753 conftest$ac_exeext conftest.$ac_ext
6754 LIBS=$ac_check_lib_save_LIBS
6756 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6757 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6758 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6759 have_xprelibs=yes; LIBS="-lSM $LIBS"
6764 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6765 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6766 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_check_lib_save_LIBS=$LIBS
6771 cat >conftest.$ac_ext <<_ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6778 /* Override any gcc2 internal prototype to avoid an error. */
6782 /* We use char because int might match the return type of a gcc2
6783 builtin and then its argument prototype would still apply. */
6784 char XtVaAppInitialize ();
6788 XtVaAppInitialize ();
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>conftest.er1
6797 grep -v '^ *+' conftest.er1 >conftest.err
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest$ac_exeext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_cv_lib_Xt_XtVaAppInitialize=yes
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 ac_cv_lib_Xt_XtVaAppInitialize=no
6822 rm -f conftest.err conftest.$ac_objext \
6823 conftest$ac_exeext conftest.$ac_ext
6824 LIBS=$ac_check_lib_save_LIBS
6826 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6827 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6828 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6829 have_xt=yes; LIBS="-lXt $LIBS"
6834 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6835 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6836 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 ac_check_lib_save_LIBS=$LIBS
6841 cat >conftest.$ac_ext <<_ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6848 /* Override any gcc2 internal prototype to avoid an error. */
6852 /* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6854 char XmuInternAtom ();
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>conftest.er1
6867 grep -v '^ *+' conftest.er1 >conftest.err
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
6872 { ac_try='test -z "$ac_c_werror_flag"
6873 || test ! -s conftest.err'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; } &&
6879 { ac_try='test -s conftest$ac_exeext'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 ac_cv_lib_Xmu_XmuInternAtom=yes
6887 echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6890 ac_cv_lib_Xmu_XmuInternAtom=no
6892 rm -f conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 LIBS=$ac_check_lib_save_LIBS
6896 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6897 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6898 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6903 for ac_func in XmuRegisterExternalAgent
6905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6906 echo "$as_me:$LINENO: checking for $ac_func" >&5
6907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6908 if eval "test \"\${$as_ac_var+set}\" = set"; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6919 #define $ac_func innocuous_$ac_func
6921 /* System header to define __stub macros and hopefully few prototypes,
6922 which can conflict with char $ac_func (); below.
6923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6924 <limits.h> exists even on freestanding compilers. */
6927 # include <limits.h>
6929 # include <assert.h>
6934 /* Override any gcc2 internal prototype to avoid an error. */
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6942 /* The GNU C library defines this for functions which it implements
6943 to always fail with ENOSYS. Some functions are actually named
6944 something starting with __ and the normal name is an alias. */
6945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6948 char (*f) () = $ac_func;
6957 return f != $ac_func;
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>conftest.er1
6966 grep -v '^ *+' conftest.er1 >conftest.err
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try='test -z "$ac_c_werror_flag"
6972 || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 eval "$as_ac_var=yes"
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 eval "$as_ac_var=no"
6991 rm -f conftest.err conftest.$ac_objext \
6992 conftest$ac_exeext conftest.$ac_ext
6994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6996 if test `eval echo '${'$as_ac_var'}'` = yes; then
6997 cat >>confdefs.h <<_ACEOF
6998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7004 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
7005 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
7006 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 ac_check_lib_save_LIBS=$LIBS
7010 LIBS="-lXaw3d $LIBS"
7011 cat >conftest.$ac_ext <<_ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7018 /* Override any gcc2 internal prototype to avoid an error. */
7022 /* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7024 char XawInitializeWidgetSet ();
7028 XawInitializeWidgetSet ();
7033 rm -f conftest.$ac_objext conftest$ac_exeext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035 (eval $ac_link) 2>conftest.er1
7037 grep -v '^ *+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest$ac_exeext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
7062 rm -f conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
7064 LIBS=$ac_check_lib_save_LIBS
7066 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
7067 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
7068 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
7071 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
7072 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
7073 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 ac_check_lib_save_LIBS=$LIBS
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7085 /* Override any gcc2 internal prototype to avoid an error. */
7089 /* We use char because int might match the return type of a gcc2
7090 builtin and then its argument prototype would still apply. */
7091 char XawInitializeWidgetSet ();
7095 XawInitializeWidgetSet ();
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102 (eval $ac_link) 2>conftest.er1
7104 grep -v '^ *+' conftest.er1 >conftest.err
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } &&
7109 { ac_try='test -z "$ac_c_werror_flag"
7110 || test ! -s conftest.err'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; } &&
7116 { ac_try='test -s conftest$ac_exeext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
7129 rm -f conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7131 LIBS=$ac_check_lib_save_LIBS
7133 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
7134 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
7135 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
7143 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
7144 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
7145 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 ac_check_lib_save_LIBS=$LIBS
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7157 /* Override any gcc2 internal prototype to avoid an error. */
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7163 char XmCreateForm ();
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 ac_cv_lib_Xm_XmCreateForm=yes
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 ac_cv_lib_Xm_XmCreateForm=no
7201 rm -f conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203 LIBS=$ac_check_lib_save_LIBS
7205 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
7206 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
7207 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
7214 for ac_func in XShmCreatePixmap
7216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7217 echo "$as_me:$LINENO: checking for $ac_func" >&5
7218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7219 if eval "test \"\${$as_ac_var+set}\" = set"; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 cat >conftest.$ac_ext <<_ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7230 #define $ac_func innocuous_$ac_func
7232 /* System header to define __stub macros and hopefully few prototypes,
7233 which can conflict with char $ac_func (); below.
7234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235 <limits.h> exists even on freestanding compilers. */
7238 # include <limits.h>
7240 # include <assert.h>
7245 /* Override any gcc2 internal prototype to avoid an error. */
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7259 char (*f) () = $ac_func;
7268 return f != $ac_func;
7273 rm -f conftest.$ac_objext conftest$ac_exeext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7275 (eval $ac_link) 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest$ac_exeext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 eval "$as_ac_var=yes"
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 eval "$as_ac_var=no"
7302 rm -f conftest.err conftest.$ac_objext \
7303 conftest$ac_exeext conftest.$ac_ext
7305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7307 if test `eval echo '${'$as_ac_var'}'` = yes; then
7308 cat >>confdefs.h <<_ACEOF
7309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7318 # Checks for header files.
7319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7321 if test "${ac_cv_header_stdc+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7347 grep -v '^ *+' conftest.er1 >conftest.err
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_cv_header_stdc=yes
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_cv_header_stdc=no
7372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 if test $ac_cv_header_stdc = yes; then
7375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7376 cat >conftest.$ac_ext <<_ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7386 $EGREP "memchr" >/dev/null 2>&1; then
7389 ac_cv_header_stdc=no
7395 if test $ac_cv_header_stdc = yes; then
7396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7397 cat >conftest.$ac_ext <<_ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7407 $EGREP "free" >/dev/null 2>&1; then
7410 ac_cv_header_stdc=no
7416 if test $ac_cv_header_stdc = yes; then
7417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7418 if test "$cross_compiling" = yes; then
7421 cat >conftest.$ac_ext <<_ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7428 #if ((' ' & 0x0FF) == 0x020)
7429 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7430 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7432 # define ISLOWER(c) \
7433 (('a' <= (c) && (c) <= 'i') \
7434 || ('j' <= (c) && (c) <= 'r') \
7435 || ('s' <= (c) && (c) <= 'z'))
7436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7439 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7444 for (i = 0; i < 256; i++)
7445 if (XOR (islower (i), ISLOWER (i))
7446 || toupper (i) != TOUPPER (i))
7451 rm -f conftest$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453 (eval $ac_link) 2>&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7464 echo "$as_me: program exited with status $ac_status" >&5
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7469 ac_cv_header_stdc=no
7471 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7476 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7477 if test $ac_cv_header_stdc = yes; then
7479 cat >>confdefs.h <<\_ACEOF
7480 #define STDC_HEADERS 1
7486 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7487 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7488 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 #include <sys/types.h>
7498 #include <sys/wait.h>
7500 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7503 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7511 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7516 rm -f conftest.$ac_objext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7518 (eval $ac_compile) 2>conftest.er1
7520 grep -v '^ *+' conftest.er1 >conftest.err
7522 cat conftest.err >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try='test -z "$ac_c_werror_flag"
7526 || test ! -s conftest.err'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; } &&
7532 { ac_try='test -s conftest.$ac_objext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 ac_cv_header_sys_wait_h=yes
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 ac_cv_header_sys_wait_h=no
7545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7547 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7548 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7549 if test $ac_cv_header_sys_wait_h = yes; then
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_SYS_WAIT_H 1
7557 if test "x$WATCOM_C" != xyes ; then
7558 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7559 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7560 if test "${ac_cv_header_time+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <sys/types.h>
7570 #include <sys/time.h>
7576 if ((struct tm *) 0)
7582 rm -f conftest.$ac_objext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7584 (eval $ac_compile) 2>conftest.er1
7586 grep -v '^ *+' conftest.er1 >conftest.err
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -z "$ac_c_werror_flag"
7592 || test ! -s conftest.err'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; } &&
7598 { ac_try='test -s conftest.$ac_objext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_header_time=yes
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7609 ac_cv_header_time=no
7611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7613 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7614 echo "${ECHO_T}$ac_cv_header_time" >&6
7615 if test $ac_cv_header_time = yes; then
7617 cat >>confdefs.h <<\_ACEOF
7618 #define TIME_WITH_SYS_TIME 1
7630 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7631 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7632 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7633 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <sys/types.h>
7655 rm -f conftest.$ac_objext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657 (eval $ac_compile) 2>conftest.er1
7659 grep -v '^ *+' conftest.er1 >conftest.err
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -z "$ac_c_werror_flag"
7665 || test ! -s conftest.err'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 eval "$as_ac_Header=yes"
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 eval "$as_ac_Header=no"
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689 cat >>confdefs.h <<_ACEOF
7690 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7693 ac_header_dirent=$ac_hdr; break
7697 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7698 if test $ac_header_dirent = dirent.h; then
7699 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7700 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7701 if test "${ac_cv_search_opendir+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 ac_func_search_save_LIBS=$LIBS
7705 ac_cv_search_opendir=no
7706 cat >conftest.$ac_ext <<_ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7713 /* Override any gcc2 internal prototype to avoid an error. */
7717 /* We use char because int might match the return type of a gcc2
7718 builtin and then its argument prototype would still apply. */
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7730 (eval $ac_link) 2>conftest.er1
7732 grep -v '^ *+' conftest.er1 >conftest.err
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try='test -z "$ac_c_werror_flag"
7738 || test ! -s conftest.err'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; } &&
7744 { ac_try='test -s conftest$ac_exeext'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 ac_cv_search_opendir="none required"
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7756 rm -f conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
7758 if test "$ac_cv_search_opendir" = no; then
7759 for ac_lib in dir; do
7760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7768 /* Override any gcc2 internal prototype to avoid an error. */
7772 /* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>conftest.er1
7787 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_cv_search_opendir="-l$ac_lib"
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7812 rm -f conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7816 LIBS=$ac_func_search_save_LIBS
7818 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7819 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7820 if test "$ac_cv_search_opendir" != no; then
7821 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7826 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7827 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7828 if test "${ac_cv_search_opendir+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 ac_func_search_save_LIBS=$LIBS
7832 ac_cv_search_opendir=no
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7840 /* Override any gcc2 internal prototype to avoid an error. */
7844 /* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857 (eval $ac_link) 2>conftest.er1
7859 grep -v '^ *+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try='test -z "$ac_c_werror_flag"
7865 || test ! -s conftest.err'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; } &&
7871 { ac_try='test -s conftest$ac_exeext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 ac_cv_search_opendir="none required"
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7883 rm -f conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 if test "$ac_cv_search_opendir" = no; then
7887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7888 cat >conftest.$ac_ext <<_ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7895 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912 (eval $ac_link) 2>conftest.er1
7914 grep -v '^ *+' conftest.er1 >conftest.err
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try='test -z "$ac_c_werror_flag"
7920 || test ! -s conftest.err'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; } &&
7926 { ac_try='test -s conftest$ac_exeext'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
7932 ac_cv_search_opendir="-l$ac_lib"
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7939 rm -f conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext conftest.$ac_ext
7943 LIBS=$ac_func_search_save_LIBS
7945 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7946 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7947 if test "$ac_cv_search_opendir" != no; then
7948 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7954 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7964 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7965 inttypes.h stdint.h unistd.h
7967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7968 echo "$as_me:$LINENO: checking for $ac_header" >&5
7969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 cat >conftest.$ac_ext <<_ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979 $ac_includes_default
7981 #include <$ac_header>
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>conftest.er1
7987 grep -v '^ *+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -z "$ac_c_werror_flag"
7993 || test ! -s conftest.err'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; } &&
7999 { ac_try='test -s conftest.$ac_objext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 eval "$as_ac_Header=yes"
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 eval "$as_ac_Header=no"
8012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8017 cat >>confdefs.h <<_ACEOF
8018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106 echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8114 # Is the header compilable?
8115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8117 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 $ac_includes_default
8124 #include <$ac_header>
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag"
8136 || test ! -s conftest.err'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_header_compiler=yes
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_header_compiler=no
8155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8157 echo "${ECHO_T}$ac_header_compiler" >&6
8159 # Is the header present?
8160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <$ac_header>
8170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } >/dev/null; then
8178 if test -s conftest.err; then
8179 ac_cpp_err=$ac_c_preproc_warn_flag
8180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8187 if test -z "$ac_cpp_err"; then
8188 ac_header_preproc=yes
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 ac_header_preproc=no
8195 rm -f conftest.err conftest.$ac_ext
8196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8197 echo "${ECHO_T}$ac_header_preproc" >&6
8199 # So? What about this header?
8200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8206 ac_header_preproc=yes
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8223 ## ------------------------------- ##
8224 ## Report this to root@mput.dip.jp ##
8225 ## ------------------------------- ##
8228 sed "s/^/$as_me: WARNING: /" >&2
8231 echo "$as_me:$LINENO: checking for $ac_header" >&5
8232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 eval "$as_ac_Header=\$ac_header_preproc"
8238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8243 cat >>confdefs.h <<_ACEOF
8244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8254 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
8256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257 echo "$as_me:$LINENO: checking for $ac_header" >&5
8258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8269 #ifdef HAVE_X11_XLIB_H
8270 #include <X11/Xlib.h>
8274 #include <$ac_header>
8276 rm -f conftest.$ac_objext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8278 (eval $ac_compile) 2>conftest.er1
8280 grep -v '^ *+' conftest.er1 >conftest.err
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try='test -z "$ac_c_werror_flag"
8286 || test ! -s conftest.err'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest.$ac_objext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 eval "$as_ac_Header=yes"
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8303 eval "$as_ac_Header=no"
8305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8310 cat >>confdefs.h <<_ACEOF
8311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8318 if test "${ac_cv_header_string_h+set}" = set; then
8319 echo "$as_me:$LINENO: checking for string.h" >&5
8320 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8321 if test "${ac_cv_header_string_h+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8325 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8327 # Is the header compilable?
8328 echo "$as_me:$LINENO: checking string.h usability" >&5
8329 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 $ac_includes_default
8339 rm -f conftest.$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341 (eval $ac_compile) 2>conftest.er1
8343 grep -v '^ *+' conftest.er1 >conftest.err
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag"
8349 || test ! -s conftest.err'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; } &&
8355 { ac_try='test -s conftest.$ac_objext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_header_compiler=yes
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 ac_header_compiler=no
8368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370 echo "${ECHO_T}$ac_header_compiler" >&6
8372 # Is the header present?
8373 echo "$as_me:$LINENO: checking string.h presence" >&5
8374 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev/null; then
8391 if test -s conftest.err; then
8392 ac_cpp_err=$ac_c_preproc_warn_flag
8393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8400 if test -z "$ac_cpp_err"; then
8401 ac_header_preproc=yes
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_header_preproc=no
8408 rm -f conftest.err conftest.$ac_ext
8409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8410 echo "${ECHO_T}$ac_header_preproc" >&6
8412 # So? What about this header?
8413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8415 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8416 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8418 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8419 ac_header_preproc=yes
8422 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8423 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8425 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8427 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8429 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8431 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8433 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8436 ## ------------------------------- ##
8437 ## Report this to root@mput.dip.jp ##
8438 ## ------------------------------- ##
8441 sed "s/^/$as_me: WARNING: /" >&2
8444 echo "$as_me:$LINENO: checking for string.h" >&5
8445 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8446 if test "${ac_cv_header_string_h+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 ac_cv_header_string_h=$ac_header_preproc
8451 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8452 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8455 if test $ac_cv_header_string_h = yes; then
8459 cat >>confdefs.h <<\_ACEOF
8460 #define NO_STRING_H 1
8467 # Checks for typedefs, structures, and compiler characteristics.
8468 if test "x$WATCOM_C" != xyes ; then
8469 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8470 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8471 if test "${ac_cv_c_bigendian+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 # See if sys/param.h defines the BYTE_ORDER macro.
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 #include <sys/types.h>
8482 #include <sys/param.h>
8487 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>conftest.er1
8499 grep -v '^ *+' conftest.er1 >conftest.err
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -z "$ac_c_werror_flag"
8505 || test ! -s conftest.err'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; } &&
8511 { ac_try='test -s conftest.$ac_objext'
8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 # It does; now see whether it defined to BIG_ENDIAN or not.
8518 cat >conftest.$ac_ext <<_ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <sys/types.h>
8525 #include <sys/param.h>
8530 #if BYTE_ORDER != BIG_ENDIAN
8538 rm -f conftest.$ac_objext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540 (eval $ac_compile) 2>conftest.er1
8542 grep -v '^ *+' conftest.er1 >conftest.err
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_c_bigendian=yes
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_cv_c_bigendian=no
8567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 # It does not; compile a test program.
8573 if test "$cross_compiling" = yes; then
8574 # try to guess the endianness by grepping values into an object file
8575 ac_cv_c_bigendian=unknown
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8583 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8584 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8585 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8586 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8587 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8591 _ascii (); _ebcdic ();
8596 rm -f conftest.$ac_objext
8597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8598 (eval $ac_compile) 2>conftest.er1
8600 grep -v '^ *+' conftest.er1 >conftest.err
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -z "$ac_c_werror_flag"
8606 || test ! -s conftest.err'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest.$ac_objext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8619 ac_cv_c_bigendian=yes
8621 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8622 if test "$ac_cv_c_bigendian" = unknown; then
8623 ac_cv_c_bigendian=no
8625 # finding both strings is unlikely to happen, but who knows?
8626 ac_cv_c_bigendian=unknown
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8645 /* Are we little or big endian? From Harbison&Steele. */
8649 char c[sizeof (long)];
8652 exit (u.c[sizeof (long) - 1] == 1);
8655 rm -f conftest$ac_exeext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8657 (eval $ac_link) 2>&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_c_bigendian=no
8668 echo "$as_me: program exited with status $ac_status" >&5
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8673 ac_cv_c_bigendian=yes
8675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8680 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8681 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8682 case $ac_cv_c_bigendian in
8685 cat >>confdefs.h <<\_ACEOF
8686 #define WORDS_BIGENDIAN 1
8692 { { echo "$as_me:$LINENO: error: unknown endianness
8693 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8694 echo "$as_me: error: unknown endianness
8695 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8696 { (exit 1); exit 1; }; } ;;
8701 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8702 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8703 if test "${ac_cv_c_char_unsigned+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 $ac_includes_default
8716 static int test_array [1 - 2 * !(((char) -1) < 0)];
8723 rm -f conftest.$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725 (eval $ac_compile) 2>conftest.er1
8727 grep -v '^ *+' conftest.er1 >conftest.err
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -z "$ac_c_werror_flag"
8733 || test ! -s conftest.err'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest.$ac_objext'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_cv_c_char_unsigned=no
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8750 ac_cv_c_char_unsigned=yes
8752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8754 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8755 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8756 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8757 cat >>confdefs.h <<\_ACEOF
8758 #define __CHAR_UNSIGNED__ 1
8763 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8764 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8765 if test "${ac_cv_c_const+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8778 /* FIXME: Include the comments suggested by Paul. */
8780 /* Ultrix mips cc rejects this. */
8781 typedef int charset[2];
8783 /* SunOS 4.1.1 cc rejects this. */
8784 char const *const *ccp;
8786 /* NEC SVR4.0.2 mips cc rejects this. */
8787 struct point {int x, y;};
8788 static struct point const zero = {0,0};
8789 /* AIX XL C 1.02.0.0 rejects this.
8790 It does not let you subtract one const X* pointer from another in
8791 an arm of an if-expression whose if-part is not a constant
8793 const char *g = "string";
8794 ccp = &g + (g ? g-g : 0);
8795 /* HPUX 7.0 cc rejects these. */
8798 ccp = (char const *const *) p;
8799 { /* SCO 3.2v4 cc rejects this. */
8801 char const *s = 0 ? (char *) 0 : (char const *) 0;
8805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8807 const int *foo = &x[0];
8810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8811 typedef const int *iptr;
8815 { /* AIX XL C 1.02.0.0 rejects this saying
8816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8817 struct s { int j; const int *ap[3]; };
8818 struct s *b; b->j = 5;
8820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8829 rm -f conftest.$ac_objext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831 (eval $ac_compile) 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag"
8839 || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest.$ac_objext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8861 echo "${ECHO_T}$ac_cv_c_const" >&6
8862 if test $ac_cv_c_const = no; then
8864 cat >>confdefs.h <<\_ACEOF
8870 echo "$as_me:$LINENO: checking for inline" >&5
8871 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8872 if test "${ac_cv_c_inline+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 for ac_kw in inline __inline__ __inline; do
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8885 static $ac_kw foo_t static_foo () {return 0; }
8886 $ac_kw foo_t foo () {return 0; }
8890 rm -f conftest.$ac_objext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892 (eval $ac_compile) 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_c_werror_flag"
8900 || test ! -s conftest.err'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; } &&
8906 { ac_try='test -s conftest.$ac_objext'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_c_inline=$ac_kw; break
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8923 echo "${ECHO_T}$ac_cv_c_inline" >&6
8926 case $ac_cv_c_inline in
8929 case $ac_cv_c_inline in
8931 *) ac_val=$ac_cv_c_inline;;
8933 cat >>confdefs.h <<_ACEOF
8935 #define inline $ac_val
8941 echo "$as_me:$LINENO: checking for working volatile" >&5
8942 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8943 if test "${ac_cv_c_volatile+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8963 rm -f conftest.$ac_objext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8965 (eval $ac_compile) 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag"
8973 || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest.$ac_objext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_c_volatile=yes
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8995 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8996 if test $ac_cv_c_volatile = no; then
8998 cat >>confdefs.h <<\_ACEOF
9004 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9005 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9006 if test "${ac_cv_c_stringize+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 cat >conftest.$ac_ext <<_ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9017 char *s = x(teststring);
9019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9020 $EGREP "#teststring" >/dev/null 2>&1; then
9021 ac_cv_c_stringize=no
9023 ac_cv_c_stringize=yes
9028 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9029 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9030 if test $ac_cv_c_stringize = yes; then
9032 cat >>confdefs.h <<\_ACEOF
9033 #define HAVE_STRINGIZE 1
9038 echo "$as_me:$LINENO: checking for function prototypes" >&5
9039 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9040 if test "$ac_cv_prog_cc_stdc" != no; then
9041 echo "$as_me:$LINENO: result: yes" >&5
9042 echo "${ECHO_T}yes" >&6
9044 cat >>confdefs.h <<\_ACEOF
9045 #define PROTOTYPES 1
9049 cat >>confdefs.h <<\_ACEOF
9050 #define __PROTOTYPES 1
9054 echo "$as_me:$LINENO: result: no" >&5
9055 echo "${ECHO_T}no" >&6
9058 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9059 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9060 if test "${ac_cv_struct_tm+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 cat >conftest.$ac_ext <<_ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9069 #include <sys/types.h>
9075 struct tm *tp; tp->tm_sec;
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082 (eval $ac_compile) 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest.$ac_objext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_struct_tm=time.h
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_cv_struct_tm=sys/time.h
9109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9111 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9112 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9113 if test $ac_cv_struct_tm = sys/time.h; then
9115 cat >>confdefs.h <<\_ACEOF
9116 #define TM_IN_SYS_TIME 1
9121 echo "$as_me:$LINENO: checking for size_t" >&5
9122 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9123 if test "${ac_cv_type_size_t+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 $ac_includes_default
9138 if (sizeof (size_t))
9144 rm -f conftest.$ac_objext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9146 (eval $ac_compile) 2>conftest.er1
9148 grep -v '^ *+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag"
9154 || test ! -s conftest.err'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest.$ac_objext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_type_size_t=yes
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_cv_type_size_t=no
9173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9176 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9177 if test $ac_cv_type_size_t = yes; then
9181 cat >>confdefs.h <<_ACEOF
9182 #define size_t unsigned
9187 echo "$as_me:$LINENO: checking for off_t" >&5
9188 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9189 if test "${ac_cv_type_off_t+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 $ac_includes_default
9210 rm -f conftest.$ac_objext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212 (eval $ac_compile) 2>conftest.er1
9214 grep -v '^ *+' conftest.er1 >conftest.err
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -z "$ac_c_werror_flag"
9220 || test ! -s conftest.err'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_cv_type_off_t=yes
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9242 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9243 if test $ac_cv_type_off_t = yes; then
9247 cat >>confdefs.h <<_ACEOF
9253 echo "$as_me:$LINENO: checking for pid_t" >&5
9254 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9255 if test "${ac_cv_type_pid_t+set}" = set; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 cat >conftest.$ac_ext <<_ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 $ac_includes_default
9276 rm -f conftest.$ac_objext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278 (eval $ac_compile) 2>conftest.er1
9280 grep -v '^ *+' conftest.er1 >conftest.err
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try='test -z "$ac_c_werror_flag"
9286 || test ! -s conftest.err'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; } &&
9292 { ac_try='test -s conftest.$ac_objext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 ac_cv_type_pid_t=yes
9300 echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9307 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9308 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9309 if test $ac_cv_type_pid_t = yes; then
9313 cat >>confdefs.h <<_ACEOF
9320 echo "$as_me:$LINENO: checking volatile declaration" >&5
9321 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
9322 if test "${timidity_cv_type_volatile+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342 (eval $ac_compile) 2>conftest.er1
9344 grep -v '^ *+' conftest.er1 >conftest.err
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -z "$ac_c_werror_flag"
9350 || test ! -s conftest.err'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; } &&
9356 { ac_try='test -s conftest.$ac_objext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 timidity_cv_type_volatile=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 timidity_cv_type_volatile=no
9369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9372 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9373 if test $timidity_cv_type_volatile = no; then
9375 cat >>confdefs.h <<\_ACEOF
9376 #define NO_VOLATILE 1
9381 echo "$as_me:$LINENO: checking union semun declaration" >&5
9382 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9383 if test "${timidity_cv_type_union_semun+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9393 #include <sys/types.h>
9394 #include <sys/ipc.h>
9395 #include <sys/sem.h>
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407 (eval $ac_compile) 2>conftest.er1
9409 grep -v '^ *+' conftest.er1 >conftest.err
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest.$ac_objext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 timidity_cv_type_union_semun=yes
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 timidity_cv_type_union_semun=no
9434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9436 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9437 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9438 if test $timidity_cv_type_union_semun = yes; then
9440 cat >>confdefs.h <<\_ACEOF
9441 #define HAVE_UNION_SEMUN 1
9446 if test "x$MSYS" = xyes ; then
9450 echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9451 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9452 if test -z "$ac_cv_prog_CC"; then
9455 our_gcc="$ac_cv_prog_CC"
9457 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9459 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9460 msnative_struct='-fnative-struct'
9464 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9465 msnative_struct='-mms-bitfields'
9469 if test x"$msnative_struct" = x ; then
9470 echo "$as_me:$LINENO: result: no way" >&5
9471 echo "${ECHO_T}no way" >&6
9472 { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9473 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9475 CFLAGS="$CFLAGS $msnative_struct"
9476 CPPFLAGS="$CPPFLAGS $msnative_struct"
9477 echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9478 echo "${ECHO_T}${msnative_struct}" >&6
9485 if test "x$MSYS" = xyes ; then
9486 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9487 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9488 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 cat >conftest.$ac_ext <<_ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9498 #include <windows.h>
9499 #include <mmsystem.h>
9504 return WOM_OPEN != 0x3BB
9509 rm -f conftest.$ac_objext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511 (eval $ac_compile) 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag"
9519 || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest.$ac_objext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 timidity_cv_header_new_mmsystem=yes
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 timidity_cv_header_new_mmsystem=no
9538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9540 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9541 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9542 if test $timidity_cv_header_new_mmsystem = yes; then
9544 cat >>confdefs.h <<\_ACEOF
9545 #define HAVE_NEW_MMSYSTEM 1
9551 # Checks for library functions.
9552 echo "$as_me:$LINENO: checking for error_at_line" >&5
9553 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9554 if test "${ac_cv_lib_error_at_line+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 cat >conftest.$ac_ext <<_ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 $ac_includes_default
9567 error_at_line (0, 0, "", 0, "");
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574 (eval $ac_link) 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try='test -z "$ac_c_werror_flag"
9582 || test ! -s conftest.err'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest$ac_exeext'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; }; then
9594 ac_cv_lib_error_at_line=yes
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_cv_lib_error_at_line=no
9601 rm -f conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9604 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9605 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9606 if test $ac_cv_lib_error_at_line = no; then
9608 "error.$ac_objext" | \
9609 *" error.$ac_objext" | \
9610 "error.$ac_objext "* | \
9611 *" error.$ac_objext "* ) ;;
9612 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9619 for ac_header in unistd.h vfork.h
9621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9623 echo "$as_me:$LINENO: checking for $ac_header" >&5
9624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9631 # Is the header compilable?
9632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9634 cat >conftest.$ac_ext <<_ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 $ac_includes_default
9641 #include <$ac_header>
9643 rm -f conftest.$ac_objext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9645 (eval $ac_compile) 2>conftest.er1
9647 grep -v '^ *+' conftest.er1 >conftest.err
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } &&
9652 { ac_try='test -z "$ac_c_werror_flag"
9653 || test ! -s conftest.err'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; } &&
9659 { ac_try='test -s conftest.$ac_objext'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_header_compiler=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_header_compiler=no
9672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9674 echo "${ECHO_T}$ac_header_compiler" >&6
9676 # Is the header present?
9677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685 #include <$ac_header>
9687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } >/dev/null; then
9695 if test -s conftest.err; then
9696 ac_cpp_err=$ac_c_preproc_warn_flag
9697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9704 if test -z "$ac_cpp_err"; then
9705 ac_header_preproc=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_header_preproc=no
9712 rm -f conftest.err conftest.$ac_ext
9713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9714 echo "${ECHO_T}$ac_header_preproc" >&6
9716 # So? What about this header?
9717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9723 ac_header_preproc=yes
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9740 ## ------------------------------- ##
9741 ## Report this to root@mput.dip.jp ##
9742 ## ------------------------------- ##
9745 sed "s/^/$as_me: WARNING: /" >&2
9748 echo "$as_me:$LINENO: checking for $ac_header" >&5
9749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 eval "$as_ac_Header=\$ac_header_preproc"
9755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9760 cat >>confdefs.h <<_ACEOF
9761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9770 for ac_func in fork vfork
9772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 echo "$as_me:$LINENO: checking for $ac_func" >&5
9774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9775 if eval "test \"\${$as_ac_var+set}\" = set"; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 cat >conftest.$ac_ext <<_ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9786 #define $ac_func innocuous_$ac_func
9788 /* System header to define __stub macros and hopefully few prototypes,
9789 which can conflict with char $ac_func (); below.
9790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791 <limits.h> exists even on freestanding compilers. */
9794 # include <limits.h>
9796 # include <assert.h>
9801 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9809 /* The GNU C library defines this for functions which it implements
9810 to always fail with ENOSYS. Some functions are actually named
9811 something starting with __ and the normal name is an alias. */
9812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9815 char (*f) () = $ac_func;
9824 return f != $ac_func;
9829 rm -f conftest.$ac_objext conftest$ac_exeext
9830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9831 (eval $ac_link) 2>conftest.er1
9833 grep -v '^ *+' conftest.er1 >conftest.err
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } &&
9838 { ac_try='test -z "$ac_c_werror_flag"
9839 || test ! -s conftest.err'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 eval "$as_ac_var=yes"
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 eval "$as_ac_var=no"
9858 rm -f conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9863 if test `eval echo '${'$as_ac_var'}'` = yes; then
9864 cat >>confdefs.h <<_ACEOF
9865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9871 if test "x$ac_cv_func_fork" = xyes; then
9872 echo "$as_me:$LINENO: checking for working fork" >&5
9873 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9874 if test "${ac_cv_func_fork_works+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 if test "$cross_compiling" = yes; then
9878 ac_cv_func_fork_works=cross
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* By Ruediger Kuhlmann. */
9882 #include <sys/types.h>
9884 # include <unistd.h>
9886 /* Some systems only have a dummy stub for fork() */
9894 rm -f conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 ac_cv_func_fork_works=yes
9907 echo "$as_me: program exited with status $ac_status" >&5
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_cv_func_fork_works=no
9914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9917 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9918 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9921 ac_cv_func_fork_works=$ac_cv_func_fork
9923 if test "x$ac_cv_func_fork_works" = xcross; then
9925 *-*-amigaos* | *-*-msdosdjgpp*)
9926 # Override, as these systems have only a dummy fork() stub
9927 ac_cv_func_fork_works=no
9930 ac_cv_func_fork_works=yes
9933 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9934 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9936 ac_cv_func_vfork_works=$ac_cv_func_vfork
9937 if test "x$ac_cv_func_vfork" = xyes; then
9938 echo "$as_me:$LINENO: checking for working vfork" >&5
9939 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9940 if test "${ac_cv_func_vfork_works+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 if test "$cross_compiling" = yes; then
9944 ac_cv_func_vfork_works=cross
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 /* Thanks to Paul Eggert for this test. */
9955 #include <sys/types.h>
9956 #include <sys/stat.h>
9957 #include <sys/wait.h>
9959 # include <unistd.h>
9964 /* On some sparc systems, changes by the child to local and incoming
9965 argument registers are propagated back to the parent. The compiler
9966 is told about this with #include <vfork.h>, but some compilers
9967 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9968 static variable whose address is put into a register that is
9969 clobbered by the vfork. */
9972 sparc_address_test (int arg)
9974 sparc_address_test (arg) int arg;
9995 pid_t parent = getpid ();
9998 sparc_address_test (0);
10003 /* Here is another test for sparc vfork register problems. This
10004 test uses lots of local variables, at least as many local
10005 variables as main has allocated so far including compiler
10006 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10007 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10008 reuse the register of parent for one of the local variables,
10009 since it will think that parent can't possibly be used any more
10010 in this routine. Assigning to the local variable will thus
10011 munge parent in the parent process. */
10013 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10014 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10015 /* Convince the compiler that p..p7 are live; otherwise, it might
10016 use the same hardware register for all 8 local variables. */
10017 if (p != p1 || p != p2 || p != p3 || p != p4
10018 || p != p5 || p != p6 || p != p7)
10021 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10022 from child file descriptors. If the child closes a descriptor
10023 before it execs or exits, this munges the parent's descriptor
10024 as well. Test for this by closing stdout in the child. */
10025 _exit(close(fileno(stdout)) != 0);
10030 while (wait(&status) != child)
10033 /* Was there some problem with vforking? */
10036 /* Did the child fail? (This shouldn't happen.) */
10039 /* Did the vfork/compiler bug occur? */
10040 || parent != getpid()
10042 /* Did the file descriptor bug occur? */
10043 || fstat(fileno(stdout), &st) != 0
10048 rm -f conftest$ac_exeext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10050 (eval $ac_link) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 ac_cv_func_vfork_works=yes
10061 echo "$as_me: program exited with status $ac_status" >&5
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ( exit $ac_status )
10066 ac_cv_func_vfork_works=no
10068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10072 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10075 if test "x$ac_cv_func_fork_works" = xcross; then
10076 ac_cv_func_vfork_works=$ac_cv_func_vfork
10077 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10078 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10081 if test "x$ac_cv_func_vfork_works" = xyes; then
10083 cat >>confdefs.h <<\_ACEOF
10084 #define HAVE_WORKING_VFORK 1
10089 cat >>confdefs.h <<\_ACEOF
10094 if test "x$ac_cv_func_fork_works" = xyes; then
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_WORKING_FORK 1
10102 echo "$as_me:$LINENO: checking for working memcmp" >&5
10103 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10104 if test "${ac_cv_func_memcmp_working+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 if test "$cross_compiling" = yes; then
10108 ac_cv_func_memcmp_working=no
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10121 /* Some versions of memcmp are not 8-bit clean. */
10122 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10123 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10126 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10127 or more and with at least one buffer not starting on a 4-byte boundary.
10128 William Lewis provided this test program. */
10133 for (i = 0; i < 4; i++)
10137 strcpy (a, "--------01111111");
10138 strcpy (b, "--------10000000");
10139 if (memcmp (a, b, 16) >= 0)
10149 rm -f conftest$ac_exeext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151 (eval $ac_link) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_func_memcmp_working=yes
10162 echo "$as_me: program exited with status $ac_status" >&5
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ( exit $ac_status )
10167 ac_cv_func_memcmp_working=no
10169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10173 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10174 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
10175 "memcmp.$ac_objext" | \
10176 *" memcmp.$ac_objext" | \
10177 "memcmp.$ac_objext "* | \
10178 *" memcmp.$ac_objext "* ) ;;
10179 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
10185 for ac_header in stdlib.h unistd.h
10187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189 echo "$as_me:$LINENO: checking for $ac_header" >&5
10190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10197 # Is the header compilable?
10198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 $ac_includes_default
10207 #include <$ac_header>
10209 rm -f conftest.$ac_objext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest.$ac_objext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_header_compiler=yes
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10236 ac_header_compiler=no
10238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10240 echo "${ECHO_T}$ac_header_compiler" >&6
10242 # Is the header present?
10243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10245 cat >conftest.$ac_ext <<_ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 #include <$ac_header>
10253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } >/dev/null; then
10261 if test -s conftest.err; then
10262 ac_cpp_err=$ac_c_preproc_warn_flag
10263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10270 if test -z "$ac_cpp_err"; then
10271 ac_header_preproc=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ac_header_preproc=no
10278 rm -f conftest.err conftest.$ac_ext
10279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10280 echo "${ECHO_T}$ac_header_preproc" >&6
10282 # So? What about this header?
10283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10289 ac_header_preproc=yes
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10306 ## ------------------------------- ##
10307 ## Report this to root@mput.dip.jp ##
10308 ## ------------------------------- ##
10311 sed "s/^/$as_me: WARNING: /" >&2
10314 echo "$as_me:$LINENO: checking for $ac_header" >&5
10315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 eval "$as_ac_Header=\$ac_header_preproc"
10321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10326 cat >>confdefs.h <<_ACEOF
10327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10335 for ac_func in getpagesize
10337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10338 echo "$as_me:$LINENO: checking for $ac_func" >&5
10339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10340 if eval "test \"\${$as_ac_var+set}\" = set"; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 cat >conftest.$ac_ext <<_ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10351 #define $ac_func innocuous_$ac_func
10353 /* System header to define __stub macros and hopefully few prototypes,
10354 which can conflict with char $ac_func (); below.
10355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10356 <limits.h> exists even on freestanding compilers. */
10359 # include <limits.h>
10361 # include <assert.h>
10366 /* Override any gcc2 internal prototype to avoid an error. */
10371 /* We use char because int might match the return type of a gcc2
10372 builtin and then its argument prototype would still apply. */
10374 /* The GNU C library defines this for functions which it implements
10375 to always fail with ENOSYS. Some functions are actually named
10376 something starting with __ and the normal name is an alias. */
10377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10380 char (*f) () = $ac_func;
10389 return f != $ac_func;
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10396 (eval $ac_link) 2>conftest.er1
10398 grep -v '^ *+' conftest.er1 >conftest.err
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -z "$ac_c_werror_flag"
10404 || test ! -s conftest.err'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; } &&
10410 { ac_try='test -s conftest$ac_exeext'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; }; then
10416 eval "$as_ac_var=yes"
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10421 eval "$as_ac_var=no"
10423 rm -f conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10428 if test `eval echo '${'$as_ac_var'}'` = yes; then
10429 cat >>confdefs.h <<_ACEOF
10430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10436 echo "$as_me:$LINENO: checking for working mmap" >&5
10437 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10438 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 if test "$cross_compiling" = yes; then
10442 ac_cv_func_mmap_fixed_mapped=no
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 $ac_includes_default
10451 /* malloc might have been renamed as rpl_malloc. */
10454 /* Thanks to Mike Haertel and Jim Avera for this test.
10455 Here is a matrix of mmap possibilities:
10456 mmap private not fixed
10457 mmap private fixed at somewhere currently unmapped
10458 mmap private fixed at somewhere already mapped
10459 mmap shared not fixed
10460 mmap shared fixed at somewhere currently unmapped
10461 mmap shared fixed at somewhere already mapped
10462 For private mappings, we should verify that changes cannot be read()
10463 back from the file, nor mmap's back from the file at a different
10464 address. (There have been systems where private was not correctly
10465 implemented like the infamous i386 svr4.0, and systems where the
10466 VM page cache was not coherent with the file system buffer cache
10467 like early versions of FreeBSD and possibly contemporary NetBSD.)
10468 For shared mappings, we should conversely verify that changes get
10469 propagated back to all the places they're supposed to be.
10471 Grep wants private fixed already mapped.
10472 The main things grep needs to know about mmap are:
10473 * does it exist and is it safe to write into the mmap'd area
10474 * how to use it (BSD variants) */
10477 #include <sys/mman.h>
10479 #if !STDC_HEADERS && !HAVE_STDLIB_H
10483 /* This mess was copied from the GNU getpagesize.h. */
10484 #if !HAVE_GETPAGESIZE
10485 /* Assume that all systems that can run configure have sys/param.h. */
10486 # if !HAVE_SYS_PARAM_H
10487 # define HAVE_SYS_PARAM_H 1
10490 # ifdef _SC_PAGESIZE
10491 # define getpagesize() sysconf(_SC_PAGESIZE)
10492 # else /* no _SC_PAGESIZE */
10493 # if HAVE_SYS_PARAM_H
10494 # include <sys/param.h>
10495 # ifdef EXEC_PAGESIZE
10496 # define getpagesize() EXEC_PAGESIZE
10497 # else /* no EXEC_PAGESIZE */
10499 # define getpagesize() NBPG * CLSIZE
10502 # endif /* no CLSIZE */
10503 # else /* no NBPG */
10505 # define getpagesize() NBPC
10506 # else /* no NBPC */
10508 # define getpagesize() PAGESIZE
10509 # endif /* PAGESIZE */
10510 # endif /* no NBPC */
10511 # endif /* no NBPG */
10512 # endif /* no EXEC_PAGESIZE */
10513 # else /* no HAVE_SYS_PARAM_H */
10514 # define getpagesize() 8192 /* punt totally */
10515 # endif /* no HAVE_SYS_PARAM_H */
10516 # endif /* no _SC_PAGESIZE */
10518 #endif /* no HAVE_GETPAGESIZE */
10523 char *data, *data2, *data3;
10527 pagesize = getpagesize ();
10529 /* First, make a file with some known garbage in it. */
10530 data = (char *) malloc (pagesize);
10533 for (i = 0; i < pagesize; ++i)
10534 *(data + i) = rand ();
10536 fd = creat ("conftest.mmap", 0600);
10539 if (write (fd, data, pagesize) != pagesize)
10543 /* Next, try to mmap the file at a fixed address which already has
10544 something else allocated at it. If we can, also make sure that
10545 we see the same garbage. */
10546 fd = open ("conftest.mmap", O_RDWR);
10549 data2 = (char *) malloc (2 * pagesize);
10552 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10553 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10554 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10556 for (i = 0; i < pagesize; ++i)
10557 if (*(data + i) != *(data2 + i))
10560 /* Finally, make sure that changes to the mapped area do not
10561 percolate back to the file as seen by read(). (This is a bug on
10562 some variants of i386 svr4.0.) */
10563 for (i = 0; i < pagesize; ++i)
10564 *(data2 + i) = *(data2 + i) + 1;
10565 data3 = (char *) malloc (pagesize);
10568 if (read (fd, data3, pagesize) != pagesize)
10570 for (i = 0; i < pagesize; ++i)
10571 if (*(data + i) != *(data3 + i))
10577 rm -f conftest$ac_exeext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10579 (eval $ac_link) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_func_mmap_fixed_mapped=yes
10590 echo "$as_me: program exited with status $ac_status" >&5
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ( exit $ac_status )
10595 ac_cv_func_mmap_fixed_mapped=no
10597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10600 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10601 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10602 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10604 cat >>confdefs.h <<\_ACEOF
10605 #define HAVE_MMAP 1
10609 rm -f conftest.mmap
10611 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10612 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10613 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 ac_cv_func_setvbuf_reversed=no
10617 cat >conftest.$ac_ext <<_ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10625 int (setvbuf) (FILE *, int, char *, size_t);
10630 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -z "$ac_c_werror_flag"
10645 || test ! -s conftest.err'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10657 cat >conftest.$ac_ext <<_ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10665 int (setvbuf) (FILE *, int, char *, size_t);
10670 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677 (eval $ac_link) 2>conftest.er1
10679 grep -v '^ *+' conftest.er1 >conftest.err
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } &&
10684 { ac_try='test -z "$ac_c_werror_flag"
10685 || test ! -s conftest.err'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; } &&
10691 { ac_try='test -s conftest$ac_exeext'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 # It compiles and links either way, so it must not be declared
10698 # with a prototype and most likely this is a K&R C compiler.
10700 if test "$cross_compiling" = yes; then
10701 : # Assume setvbuf is not reversed when cross-compiling.
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10713 /* This call has the arguments reversed.
10714 A reversed system may check and see that the address of buf
10715 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10717 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10720 exit (0); /* Non-reversed systems SEGV here. */
10725 rm -f conftest$ac_exeext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_func_setvbuf_reversed=yes
10738 echo "$as_me: program exited with status $ac_status" >&5
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10742 ( exit $ac_status )
10745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10747 ac_cv_func_setvbuf_reversed=yes
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10753 rm -f conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10760 rm -f conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
10763 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10764 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10765 if test $ac_cv_func_setvbuf_reversed = yes; then
10767 cat >>confdefs.h <<\_ACEOF
10768 #define SETVBUF_REVERSED 1
10773 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10774 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10775 if test "${ac_cv_type_signal+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 #include <sys/types.h>
10785 #include <signal.h>
10790 extern "C" void (*signal (int, void (*)(int)))(int);
10792 void (*signal ()) ();
10803 rm -f conftest.$ac_objext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10805 (eval $ac_compile) 2>conftest.er1
10807 grep -v '^ *+' conftest.er1 >conftest.err
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag"
10813 || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest.$ac_objext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ac_cv_type_signal=void
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_cv_type_signal=int
10832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10834 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10835 echo "${ECHO_T}$ac_cv_type_signal" >&6
10837 cat >>confdefs.h <<_ACEOF
10838 #define RETSIGTYPE $ac_cv_type_signal
10842 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes"; then
10844 for ac_func in vprintf
10846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10847 echo "$as_me:$LINENO: checking for $ac_func" >&5
10848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10849 if eval "test \"\${$as_ac_var+set}\" = set"; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10860 #define $ac_func innocuous_$ac_func
10862 /* System header to define __stub macros and hopefully few prototypes,
10863 which can conflict with char $ac_func (); below.
10864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10865 <limits.h> exists even on freestanding compilers. */
10868 # include <limits.h>
10870 # include <assert.h>
10875 /* Override any gcc2 internal prototype to avoid an error. */
10880 /* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10883 /* The GNU C library defines this for functions which it implements
10884 to always fail with ENOSYS. Some functions are actually named
10885 something starting with __ and the normal name is an alias. */
10886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10889 char (*f) () = $ac_func;
10898 return f != $ac_func;
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10905 (eval $ac_link) 2>conftest.er1
10907 grep -v '^ *+' conftest.er1 >conftest.err
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -z "$ac_c_werror_flag"
10913 || test ! -s conftest.err'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; } &&
10919 { ac_try='test -s conftest$ac_exeext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 eval "$as_ac_var=yes"
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 eval "$as_ac_var=no"
10932 rm -f conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10937 if test `eval echo '${'$as_ac_var'}'` = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10942 echo "$as_me:$LINENO: checking for _doprnt" >&5
10943 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10944 if test "${ac_cv_func__doprnt+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 cat >conftest.$ac_ext <<_ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10955 #define _doprnt innocuous__doprnt
10957 /* System header to define __stub macros and hopefully few prototypes,
10958 which can conflict with char _doprnt (); below.
10959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10960 <limits.h> exists even on freestanding compilers. */
10963 # include <limits.h>
10965 # include <assert.h>
10970 /* Override any gcc2 internal prototype to avoid an error. */
10975 /* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10978 /* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10984 char (*f) () = _doprnt;
10993 return f != _doprnt;
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest$ac_exeext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_func__doprnt=yes
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_cv_func__doprnt=no
11027 rm -f conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11030 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11031 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11032 if test $ac_cv_func__doprnt = yes; then
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_DOPRNT 1
11119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 echo "$as_me:$LINENO: checking for $ac_func" >&5
11121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11122 if eval "test \"\${$as_ac_var+set}\" = set"; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11133 #define $ac_func innocuous_$ac_func
11135 /* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char $ac_func (); below.
11137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138 <limits.h> exists even on freestanding compilers. */
11141 # include <limits.h>
11143 # include <assert.h>
11148 /* Override any gcc2 internal prototype to avoid an error. */
11153 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11156 /* The GNU C library defines this for functions which it implements
11157 to always fail with ENOSYS. Some functions are actually named
11158 something starting with __ and the normal name is an alias. */
11159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11162 char (*f) () = $ac_func;
11171 return f != $ac_func;
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178 (eval $ac_link) 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag"
11186 || test ! -s conftest.err'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; } &&
11192 { ac_try='test -s conftest$ac_exeext'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 eval "$as_ac_var=yes"
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 eval "$as_ac_var=no"
11205 rm -f conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11218 if test "x$VCPP" = xyes; then
11219 cat >>confdefs.h <<\_ACEOF
11220 #define RETSIGTYPE int
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_GETCWD int
11228 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11229 cat >>confdefs.h <<\_ACEOF
11230 #define HAVE_GETHOSTBYNAME 1
11233 cat >>confdefs.h <<\_ACEOF
11234 #define HAVE_POPEN 1
11238 cat >>confdefs.h <<\_ACEOF
11239 #define popen _popen
11243 cat >>confdefs.h <<\_ACEOF
11244 #define pclose _pclose
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_SELECT 1
11251 cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_SNPRINTF 1
11255 cat >>confdefs.h <<\_ACEOF
11256 #define HAVE_STRDUP 1
11259 cat >>confdefs.h <<\_ACEOF
11260 #define HAVE_STRERROR 1
11263 cat >>confdefs.h <<\_ACEOF
11264 #define HAVE_STRNCASECMP 1
11267 cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_STRSTR 1
11272 cat >>confdefs.h <<\_ACEOF
11273 #define snprintf _snprintf
11276 cat >>confdefs.h <<\_ACEOF
11277 #define HAVE_SOCKET 1
11280 cat >>confdefs.h <<\_ACEOF
11281 #define HAVE_VSNPRINTF 1
11285 cat >>confdefs.h <<\_ACEOF
11286 #define vsnprintf _vsnprintf
11290 cat >>confdefs.h <<\_ACEOF
11291 #define TIMID_VERSION $(PACKAGE_VERSION)
11296 echo "$as_me:$LINENO: checking for getopt_long" >&5
11297 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
11298 if test "${ac_cv_func_getopt_long+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11309 #define getopt_long innocuous_getopt_long
11311 /* System header to define __stub macros and hopefully few prototypes,
11312 which can conflict with char getopt_long (); below.
11313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11314 <limits.h> exists even on freestanding compilers. */
11317 # include <limits.h>
11319 # include <assert.h>
11324 /* Override any gcc2 internal prototype to avoid an error. */
11329 /* We use char because int might match the return type of a gcc2
11330 builtin and then its argument prototype would still apply. */
11331 char getopt_long ();
11332 /* The GNU C library defines this for functions which it implements
11333 to always fail with ENOSYS. Some functions are actually named
11334 something starting with __ and the normal name is an alias. */
11335 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11338 char (*f) () = getopt_long;
11347 return f != getopt_long;
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354 (eval $ac_link) 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -z "$ac_c_werror_flag"
11362 || test ! -s conftest.err'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; } &&
11368 { ac_try='test -s conftest$ac_exeext'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_cv_func_getopt_long=yes
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11379 ac_cv_func_getopt_long=no
11381 rm -f conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11384 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11385 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11386 if test $ac_cv_func_getopt_long = yes; then
11388 cat >>confdefs.h <<\_ACEOF
11389 #define HAVE_GETOPT_LONG 1
11392 tm_cv_needgetopt="no"
11394 tm_cv_needgetopt="yes"
11399 if test "x$tm_cv_needgetopt" = "xyes"; then
11401 NEEDGETOPT_FALSE='#'
11403 NEEDGETOPT_TRUE='#'
11408 # Checks on cygnus and MYSYS
11409 if test "x$MSYS" = xyes ; then
11410 case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
11412 echo "$as_me:$LINENO: checking for opendir" >&5
11413 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11414 if test "${ac_cv_func_opendir+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11425 #define opendir innocuous_opendir
11427 /* System header to define __stub macros and hopefully few prototypes,
11428 which can conflict with char opendir (); below.
11429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11430 <limits.h> exists even on freestanding compilers. */
11433 # include <limits.h>
11435 # include <assert.h>
11440 /* Override any gcc2 internal prototype to avoid an error. */
11445 /* We use char because int might match the return type of a gcc2
11446 builtin and then its argument prototype would still apply. */
11448 /* The GNU C library defines this for functions which it implements
11449 to always fail with ENOSYS. Some functions are actually named
11450 something starting with __ and the normal name is an alias. */
11451 #if defined (__stub_opendir) || defined (__stub___opendir)
11454 char (*f) () = opendir;
11463 return f != opendir;
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11470 (eval $ac_link) 2>conftest.er1
11472 grep -v '^ *+' conftest.er1 >conftest.err
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
11477 { ac_try='test -z "$ac_c_werror_flag"
11478 || test ! -s conftest.err'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest$ac_exeext'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_func_opendir=yes
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 ac_cv_func_opendir=no
11497 rm -f conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11500 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11501 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11502 if test $ac_cv_func_opendir = yes; then
11505 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11510 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11514 if test "x$enable_network" = "xyes"; then
11515 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
11516 EXTRALIBS="$EXTRALIBS wsock32.lib"
11517 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11519 echo "$as_me:$LINENO: checking for socket" >&5
11520 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11521 if test "${ac_cv_func_socket+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 cat >conftest.$ac_ext <<_ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11530 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11532 #define socket innocuous_socket
11534 /* System header to define __stub macros and hopefully few prototypes,
11535 which can conflict with char socket (); below.
11536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537 <limits.h> exists even on freestanding compilers. */
11540 # include <limits.h>
11542 # include <assert.h>
11547 /* Override any gcc2 internal prototype to avoid an error. */
11552 /* We use char because int might match the return type of a gcc2
11553 builtin and then its argument prototype would still apply. */
11555 /* The GNU C library defines this for functions which it implements
11556 to always fail with ENOSYS. Some functions are actually named
11557 something starting with __ and the normal name is an alias. */
11558 #if defined (__stub_socket) || defined (__stub___socket)
11561 char (*f) () = socket;
11570 return f != socket;
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11577 (eval $ac_link) 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag"
11585 || test ! -s conftest.err'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; } &&
11591 { ac_try='test -s conftest$ac_exeext'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 ac_cv_func_socket=yes
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ac_cv_func_socket=no
11604 rm -f conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11607 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11608 echo "${ECHO_T}$ac_cv_func_socket" >&6
11609 if test $ac_cv_func_socket = yes; then
11612 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11613 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11614 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11615 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 ac_save_LIBS="$LIBS"
11619 LIBS="-lwsock32 $LIBS"
11620 cat >conftest.$ac_ext <<_ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 #include <windows.h>
11627 #include <winsock.h>
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>conftest.er1
11641 grep -v '^ *+' conftest.er1 >conftest.err
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 eval "wapi_cv_lib_$ac_lib_var=yes"
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 eval "wapi_cv_lib_$ac_lib_var=no"
11666 rm -f conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668 LIBS="$ac_save_LIBS"
11671 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11672 echo "$as_me:$LINENO: result: yes" >&5
11673 echo "${ECHO_T}yes" >&6
11674 EXTRALIBS="$EXTRALIBS -lwsock32"
11675 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11678 echo "$as_me:$LINENO: result: no" >&5
11679 echo "${ECHO_T}no" >&6
11689 # Checks on extra paths
11692 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11693 if test "${with_tcl_includes+set}" = set; then
11694 withval="$with_tcl_includes"
11695 if test ! -d $withval; then
11696 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11697 echo "$as_me: WARNING: $withval is not found." >&2;}
11699 tcl_include_dir="-I$withval"
11703 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11704 if test "${with_tcl_libs+set}" = set; then
11705 withval="$with_tcl_libs"
11706 if test ! -d $withval; then
11707 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11708 echo "$as_me: WARNING: $withval is not found." >&2;}
11710 tcl_libdir="-L$withval"
11713 # Check whether --with-tk-includes or --without-tk-includes was given.
11714 if test "${with_tk_includes+set}" = set; then
11715 withval="$with_tk_includes"
11716 if test ! -d $withval; then
11717 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11718 echo "$as_me: WARNING: $withval is not found." >&2;}
11720 tk_includes="-I$withval"
11723 # Check whether --with-tk-libs or --without-tk-libs was given.
11724 if test "${with_tk_libs+set}" = set; then
11725 withval="$with_tk_libs"
11726 if test ! -d $withval; then
11727 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11728 echo "$as_me: WARNING: $withval is not found." >&2;}
11730 tk_libdir="-L$withval"
11734 # Check whether --with-offix-includes or --without-offix-includes was given.
11735 if test "${with_offix_includes+set}" = set; then
11736 withval="$with_offix_includes"
11737 if test ! -d $withval; then
11738 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11739 echo "$as_me: WARNING: $withval is not found." >&2;}
11741 offix_include_dir="-I$withval"
11744 # Check whether --with-offix-libs or --without-offix-libs was given.
11745 if test "${with_offix_libs+set}" = set; then
11746 withval="$with_offix_libs"
11747 if test ! -d $withval; then
11748 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11749 echo "$as_me: WARNING: $withval is not found." >&2;}
11751 offix_lib_dir="-L$withval"
11759 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11762 # Check whether --with-nas-library or --without-nas-library was given.
11763 if test "${with_nas_library+set}" = set; then
11764 withval="$with_nas_library"
11768 # Check whether --with-nas-includes or --without-nas-includes was given.
11769 if test "${with_nas_includes+set}" = set; then
11770 withval="$with_nas_includes"
11775 # Check whether --enable-audio or --disable-audio was given.
11776 if test "${enable_audio+set}" = set; then
11777 enableval="$enable_audio"
11778 enable_audio=$enableval
11785 test "x$enable_audio" = xyes && enable_audio=default
11787 if test "x$enable_audio" != xno; then
11788 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11789 eval "au_enable_$i=yes"
11795 # Check whether --with-default-output or --without-default-output was given.
11796 if test "${with_default_output+set}" = set; then
11797 withval="$with_default_output"
11798 if test "$enable_audio" != no; then
11799 DEFAULT_PLAYMODE=$withval
11800 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11802 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11803 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11808 if test "x$au_enable_default" = xyes; then
11810 *-*-linux*|*-*-freebsd*)
11814 au_enable_sb_dsp=yes
11816 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11844 au_enable_darwin=yes
11847 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11848 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11854 # Each audio mode's configurations
11855 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11856 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11857 if test "x$au_enable_oss" = xyes; then
11858 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11859 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11860 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11861 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11862 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11866 echo "$as_me:$LINENO: result: yes" >&5
11867 echo "${ECHO_T}yes" >&6
11870 if test "x$ac_cv_header_soundcard_h" = xyes; then
11871 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11872 echo "${ECHO_T}yes - <soundcard.h>" >&6
11874 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11875 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11881 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11882 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11883 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-lossaudio $LIBS"
11888 cat >conftest.$ac_ext <<_ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11895 /* Override any gcc2 internal prototype to avoid an error. */
11899 /* We use char because int might match the return type of a gcc2
11900 builtin and then its argument prototype would still apply. */
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>conftest.er1
11914 grep -v '^ *+' conftest.er1 >conftest.err
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag"
11920 || test ! -s conftest.err'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 ac_cv_lib_ossaudio_open=yes
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_cv_lib_ossaudio_open=no
11939 rm -f conftest.err conftest.$ac_objext \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11943 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11944 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11945 if test $ac_cv_lib_ossaudio_open = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define HAVE_LIBOSSAUDIO 1
11950 LIBS="-lossaudio $LIBS"
11957 if test ! -e "/dev/dsp"; then
11958 oss_device=/dev/audio
11963 echo "$as_me:$LINENO: result: no" >&5
11964 echo "${ECHO_T}no" >&6
11967 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11968 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11969 if test "x$au_enable_sun" = xyes; then
11972 if test -f /usr/demo/SOUND/libaudio.a; then
11973 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11974 echo "$as_me:$LINENO: result: yes" >&5
11975 echo "${ECHO_T}yes" >&6
11977 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11978 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11982 if test -f /usr/demo/SOUND/lib/libaudio.a; then
11983 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11984 echo "$as_me:$LINENO: result: yes" >&5
11985 echo "${ECHO_T}yes" >&6
11987 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11988 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11991 *) echo "$as_me:$LINENO: result: yes" >&5
11992 echo "${ECHO_T}yes" >&6
11995 EXTRADEFS="$EXTRADEFS -DAU_SUN"
11996 SYSEXTRAS="$SYSEXTRAS sun_a.c"
11998 echo "$as_me:$LINENO: result: no" >&5
11999 echo "${ECHO_T}no" >&6
12002 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
12003 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
12004 if test "x$au_enable_hpux" = xyes; then
12006 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12007 echo "${ECHO_T}yes" >&6 ;;
12008 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12009 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12011 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
12012 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
12014 echo "$as_me:$LINENO: result: no" >&5
12015 echo "${ECHO_T}no" >&6
12018 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
12019 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
12020 if test "x$au_enable_irix" = xyes; then
12022 *-sgi-irix5*|*-sgi-irix6.2)
12023 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
12024 echo "$as_me:$LINENO: result: yes" >&5
12025 echo "${ECHO_T}yes" >&6
12028 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
12029 echo "$as_me:$LINENO: result: yes" >&5
12030 echo "${ECHO_T}yes" >&6
12032 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12033 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12035 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
12036 EXTRALIBS="$EXTRASLIBS -laudio"
12038 echo "$as_me:$LINENO: result: no" >&5
12039 echo "${ECHO_T}no" >&6
12042 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
12043 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
12044 if test "x$au_enable_mme" = xyes; then
12046 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
12047 echo "${ECHO_T}yes" >&6 ;;
12048 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12049 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12051 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
12052 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
12053 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
12054 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
12056 echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6
12060 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
12061 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
12062 if test "x$au_enable_sb_dsp" = xyes; then
12064 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
12065 echo "${ECHO_T}yes" >&6 ;;
12066 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12067 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12069 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
12070 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
12072 echo "$as_me:$LINENO: result: no" >&5
12073 echo "${ECHO_T}no" >&6
12076 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
12077 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
12078 if test "x$au_enable_w32" = xyes; then
12081 echo "$as_me:$LINENO: result: yes" >&5
12082 echo "${ECHO_T}yes" >&6
12085 echo "$as_me:$LINENO: result: yes" >&5
12086 echo "${ECHO_T}yes" >&6
12089 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12090 echo "$as_me: WARNING: may not work on $target" >&2;}
12093 SYSEXTRAS="$SYSEXTRAS w32_a.c"
12094 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
12095 EXTRALIBS="$EXTRALIBS winmm.lib"
12097 EXTRALIBS="$EXTRALIBS -lwinmm"
12099 EXTRADEFS="$EXTRADEFS -DAU_W32"
12101 echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6
12105 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
12106 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
12107 if test "x$au_enable_darwin" = xyes; then
12108 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
12109 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
12110 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
12113 echo "$as_me:$LINENO: result: yes" >&5
12114 echo "${ECHO_T}yes" >&6;;
12116 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12117 echo "$as_me: WARNING: may not work on $target" >&2;}
12121 echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12126 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
12127 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
12128 if test "x$au_enable_alsa" = xyes; then
12129 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
12130 echo "${ECHO_T}yes, configuring alsa" >&6
12133 KEEPLDFLAGS=$LDFLAGS
12134 alsa_save_CFLAGS="$CFLAGS"
12135 alsa_save_LDFLAGS="$LDFLAGS"
12136 alsa_save_LIBS="$LIBS"
12140 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
12141 if test "${with_alsa_prefix+set}" = set; then
12142 withval="$with_alsa_prefix"
12143 alsa_prefix="$withval"
12149 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
12150 if test "${with_alsa_inc_prefix+set}" = set; then
12151 withval="$with_alsa_inc_prefix"
12152 alsa_inc_prefix="$withval"
12157 # Check whether --enable-alsatest or --disable-alsatest was given.
12158 if test "${enable_alsatest+set}" = set; then
12159 enableval="$enable_alsatest"
12162 enable_alsatest=yes
12165 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12166 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12167 if test "$alsa_inc_prefix" != "" ; then
12168 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12169 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12171 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12172 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12174 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12175 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12176 if test "$alsa_prefix" != "" ; then
12177 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12178 LDFLAGS="$LDFLAGS $ALSA_LIBS"
12181 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12182 LIBS=`echo $LIBS | sed 's/-lm//'`
12183 LIBS=`echo $LIBS | sed 's/-ldl//'`
12184 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12185 LIBS=`echo $LIBS | sed 's/ //'`
12186 LIBS="$ALSA_LIBS $LIBS"
12187 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12188 echo "${ECHO_T}$ALSA_LIBS" >&6
12190 min_alsa_version=0.1.1
12191 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12192 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12194 alsa_min_major_version=`echo $min_alsa_version | \
12195 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12196 alsa_min_minor_version=`echo $min_alsa_version | \
12197 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12198 alsa_min_micro_version=`echo $min_alsa_version | \
12199 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12205 ac_cpp='$CPP $CPPFLAGS'
12206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12210 cat >conftest.$ac_ext <<_ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12217 #include <alsa/asoundlib.h>
12223 /* ensure backward compatibility */
12224 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12225 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12227 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12228 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12230 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12231 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12234 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12237 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12238 # error not present
12241 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12244 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12245 # error not present
12248 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12249 # error not present
12259 rm -f conftest.$ac_objext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag"
12269 || test ! -s conftest.err'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest.$ac_objext'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 echo "$as_me:$LINENO: result: found." >&5
12282 echo "${ECHO_T}found." >&6
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12294 #include <sys/asoundlib.h>
12300 /* ensure backward compatibility */
12301 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12302 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12304 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12305 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12307 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12308 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12311 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12314 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12315 # error not present
12318 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12321 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12322 # error not present
12325 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12326 # error not present
12336 rm -f conftest.$ac_objext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338 (eval $ac_compile) 2>conftest.er1
12340 grep -v '^ *+' conftest.er1 >conftest.err
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_c_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest.$ac_objext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 echo "$as_me:$LINENO: result: found." >&5
12359 echo "${ECHO_T}found." >&6
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 echo "$as_me:$LINENO: result: not present." >&5
12365 echo "${ECHO_T}not present." >&6
12366 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12367 echo "${ECHO_T}libasound was not found anywhere." >&6
12370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12372 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12377 ac_cpp='$CPP $CPPFLAGS'
12378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12384 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12385 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12386 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 ac_check_lib_save_LIBS=$LIBS
12390 LIBS="-lasound $LIBS"
12391 cat >conftest.$ac_ext <<_ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 /* Override any gcc2 internal prototype to avoid an error. */
12402 /* We use char because int might match the return type of a gcc2
12403 builtin and then its argument prototype would still apply. */
12404 char snd_ctl_open ();
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415 (eval $ac_link) 2>conftest.er1
12417 grep -v '^ *+' conftest.er1 >conftest.err
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag"
12423 || test ! -s conftest.err'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest$ac_exeext'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_lib_asound_snd_ctl_open=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 ac_cv_lib_asound_snd_ctl_open=no
12442 rm -f conftest.err conftest.$ac_objext \
12443 conftest$ac_exeext conftest.$ac_ext
12444 LIBS=$ac_check_lib_save_LIBS
12446 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12447 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12448 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12449 cat >>confdefs.h <<_ACEOF
12450 #define HAVE_LIBASOUND 1
12453 LIBS="-lasound $LIBS"
12456 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12457 echo "${ECHO_T}No linkable libasound was found." >&6
12463 if test "x$alsa_found" = "xyes" ; then
12465 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12466 LIBS=`echo $LIBS | sed 's/ //'`
12467 LIBS="-lasound $LIBS"
12470 CFLAGS="$alsa_save_CFLAGS"
12471 LDFLAGS="$alsa_save_LDFLAGS"
12472 LIBS="$alsa_save_LIBS"
12480 if test "x$alsa_found" = "xyes" ; then
12481 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12482 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12483 for f in $ALSA_CFLAGS; do
12485 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12486 *) CFLAGS="$CPPFLAGS $f" ;;
12490 LIBS="$LIBS $ALSA_LIBS"
12492 for ac_func in snd_seq_port_info_set_timestamping
12494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495 echo "$as_me:$LINENO: checking for $ac_func" >&5
12496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12497 if eval "test \"\${$as_ac_var+set}\" = set"; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508 #define $ac_func innocuous_$ac_func
12510 /* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12516 # include <limits.h>
12518 # include <assert.h>
12523 /* Override any gcc2 internal prototype to avoid an error. */
12528 /* We use char because int might match the return type of a gcc2
12529 builtin and then its argument prototype would still apply. */
12531 /* The GNU C library defines this for functions which it implements
12532 to always fail with ENOSYS. Some functions are actually named
12533 something starting with __ and the normal name is an alias. */
12534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12537 char (*f) () = $ac_func;
12546 return f != $ac_func;
12551 rm -f conftest.$ac_objext conftest$ac_exeext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12553 (eval $ac_link) 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -z "$ac_c_werror_flag"
12561 || test ! -s conftest.err'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest$ac_exeext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 eval "$as_ac_var=yes"
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12578 eval "$as_ac_var=no"
12580 rm -f conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12585 if test `eval echo '${'$as_ac_var'}'` = yes; then
12586 cat >>confdefs.h <<_ACEOF
12587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12594 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12595 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12598 LDFLAGS=$KEEPLDFLAGS
12601 echo "$as_me:$LINENO: result: no" >&5
12602 echo "${ECHO_T}no" >&6
12605 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12606 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12607 if test "x$au_enable_alib" = xyes; then
12609 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12610 echo "${ECHO_T}yes" >&6 ;;
12611 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12612 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12614 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12615 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12616 if test -d /opt/audio/include; then
12617 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12619 if test -d /opt/audio/lib; then
12620 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12622 EXTRALIBS="$EXTRALIBS -lAlib"
12624 echo "$as_me:$LINENO: result: no" >&5
12625 echo "${ECHO_T}no" >&6
12628 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12629 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12630 if test "x$au_enable_nas" = xyes; then
12631 if test "x$with_x" != xyes; then
12632 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12633 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12634 { (exit 1); exit 1; }; }
12636 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12637 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12640 if test "x$with_nas_library" != x; then
12641 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12642 echo "${ECHO_T}$with_nas_library" >&6;
12643 EXTRALIBS="$EXTRALIBS $with_nas_library"
12645 echo "$as_me:$LINENO: result: " >&5
12646 echo "${ECHO_T}" >&6
12647 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12648 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12649 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 ac_func_search_save_LIBS="$LIBS"
12653 timidity_cv_search_AuOpenServer="no"
12654 for i in $x_libraries/libaudio.a \
12655 /usr/lib/libaudio.so \
12656 /usr/lib/libaudio.a ; do
12657 LIBS="$i $ac_func_search_save_LIBS"
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12665 /* Override any gcc2 internal prototype to avoid an error. */
12669 /* We use char because int might match the return type of a gcc2
12670 builtin and then its argument prototype would still apply. */
12671 char AuOpenServer ();
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12682 (eval $ac_link) 2>conftest.er1
12684 grep -v '^ *+' conftest.er1 >conftest.err
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_c_werror_flag"
12690 || test ! -s conftest.err'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; } &&
12696 { ac_try='test -s conftest$ac_exeext'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 timidity_cv_search_AuOpenServer="$i"; break
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12708 rm -f conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12711 LIBS="$ac_func_search_save_LIBS"
12713 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12714 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12715 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12716 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12717 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12718 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12720 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12721 echo "$as_me: WARNING: NAS library is not found." >&2;}
12724 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12726 if test "x$have_xext" = xyes; then
12727 lib_xext_opt=-lXext
12729 if test "x$have_xprelibs" = xyes; then
12730 lib_xprelibs_opt='-lSM -lICE'
12733 echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6
12737 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12738 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12739 if test "x$au_enable_arts" = xyes; then
12740 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12741 echo "${ECHO_T}yes, configuring aRts" >&6
12744 KEEPLDFLAGS=$LDFLAGS
12746 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12747 if test "${with_arts_prefix+set}" = set; then
12748 withval="$with_arts_prefix"
12749 arts_prefix="$withval"
12753 # Check whether --enable-artstest or --disable-artstest was given.
12754 if test "${enable_artstest+set}" = set; then
12755 enableval="$enable_artstest"
12758 enable_artstest=yes
12761 if test x$arts_prefix != x ; then
12762 arts_args="$arts_args --prefix=$arts_prefix"
12763 if test x${ARTS_CONFIG+set} != xset ; then
12764 ARTS_CONFIG=$arts_prefix/bin/artsc-config
12768 # Extract the first word of "artsc-config", so it can be a program name with args.
12769 set dummy artsc-config; ac_word=$2
12770 echo "$as_me:$LINENO: checking for $ac_word" >&5
12771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12772 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 case $ARTS_CONFIG in
12777 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781 for as_dir in $PATH
12784 test -z "$as_dir" && as_dir=.
12785 for ac_exec_ext in '' $ac_executable_extensions; do
12786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12787 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12798 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12800 if test -n "$ARTS_CONFIG"; then
12801 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12802 echo "${ECHO_T}$ARTS_CONFIG" >&6
12804 echo "$as_me:$LINENO: result: no" >&5
12805 echo "${ECHO_T}no" >&6
12808 min_arts_version=0.9.5
12809 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12810 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12812 if test "$ARTS_CONFIG" = "no" ; then
12815 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12816 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12818 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12819 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12820 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12821 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12822 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12823 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12824 if test "x$enable_artstest" = "xyes" ; then
12825 ac_save_CFLAGS="$CFLAGS"
12826 ac_save_LIBS="$LIBS"
12827 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12828 LIBS="$LIBS $ARTS_LIBS"
12829 rm -f conf.artstest
12830 if test "$cross_compiling" = yes; then
12831 echo $ac_n "cross compiling; assumed OK... $ac_c"
12833 cat >conftest.$ac_ext <<_ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12841 #include <stdlib.h>
12842 #include <string.h>
12846 my_strdup (char *str)
12852 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12853 strcpy (new_str, str);
12863 int major, minor, micro;
12866 system ("touch conf.artstest");
12868 /* HP/UX 9 (%@#!) writes to sscanf strings */
12869 tmp_version = my_strdup("$min_arts_version");
12870 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12871 printf("%s, bad version string\n", "$min_arts_version");
12875 if (($arts_major_version > major) ||
12876 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12877 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12883 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12884 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12885 printf("*** best to upgrade to the required version.\n");
12886 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12887 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12888 printf("*** config.cache before re-running configure\n");
12895 rm -f conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12908 echo "$as_me: program exited with status $ac_status" >&5
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ( exit $ac_status )
12915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12917 CFLAGS="$ac_save_CFLAGS"
12918 LIBS="$ac_save_LIBS"
12921 if test "x$no_arts" = x ; then
12922 echo "$as_me:$LINENO: result: yes" >&5
12923 echo "${ECHO_T}yes" >&6
12926 echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6
12928 if test "$ARTS_CONFIG" = "no" ; then
12929 echo "*** The artsc-config script installed by ARTS could not be found"
12930 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12931 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12932 echo "*** full path to artsc-config."
12934 if test -f conf.artstest ; then
12937 echo "*** Could not run ARTS test program, checking why..."
12938 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12939 LIBS="$LIBS $ARTS_LIBS"
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12958 rm -f conftest.$ac_objext conftest$ac_exeext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12960 (eval $ac_link) 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag"
12968 || test ! -s conftest.err'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; } &&
12974 { ac_try='test -s conftest$ac_exeext'
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; }; then
12980 echo "*** The test program compiled, but did not run. This usually means"
12981 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12982 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12983 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12984 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12985 echo "*** is required on your system"
12987 echo "*** If you have an old version installed, it is best to remove it, although"
12988 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12993 echo "*** The test program failed to compile or link. See the file config.log for the"
12994 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12995 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12996 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12998 rm -f conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext conftest.$ac_ext
13000 CFLAGS="$ac_save_CFLAGS"
13001 LIBS="$ac_save_LIBS"
13010 rm -f conf.artstest
13014 LDFLAGS=$KEEPLDFLAGS
13015 if test "x$no_arts" = x; then
13016 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
13017 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
13018 for f in $ARTS_CFLAGS; do
13020 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13021 *) CFLAGS="$CPPFLAGS $f" ;;
13025 LIBS="$LIBS $ARTS_LIBS"
13027 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
13028 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
13031 echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6
13035 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
13036 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
13037 if test "x$au_enable_esd" = xyes; then
13038 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
13039 echo "${ECHO_T}yes, configuring esd" >&6
13042 KEEPLDFLAGS=$LDFLAGS
13044 # Check whether --with-esd-prefix or --without-esd-prefix was given.
13045 if test "${with_esd_prefix+set}" = set; then
13046 withval="$with_esd_prefix"
13047 esd_prefix="$withval"
13052 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
13053 if test "${with_esd_exec_prefix+set}" = set; then
13054 withval="$with_esd_exec_prefix"
13055 esd_exec_prefix="$withval"
13059 # Check whether --enable-esdtest or --disable-esdtest was given.
13060 if test "${enable_esdtest+set}" = set; then
13061 enableval="$enable_esdtest"
13067 if test x$esd_exec_prefix != x ; then
13068 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
13069 if test x${ESD_CONFIG+set} != xset ; then
13070 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
13073 if test x$esd_prefix != x ; then
13074 esd_args="$esd_args --prefix=$esd_prefix"
13075 if test x${ESD_CONFIG+set} != xset ; then
13076 ESD_CONFIG=$esd_prefix/bin/esd-config
13080 # Extract the first word of "esd-config", so it can be a program name with args.
13081 set dummy esd-config; ac_word=$2
13082 echo "$as_me:$LINENO: checking for $ac_word" >&5
13083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13084 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 case $ESD_CONFIG in
13089 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
13092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH
13096 test -z "$as_dir" && as_dir=.
13097 for ac_exec_ext in '' $ac_executable_extensions; do
13098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13099 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
13110 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
13112 if test -n "$ESD_CONFIG"; then
13113 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
13114 echo "${ECHO_T}$ESD_CONFIG" >&6
13116 echo "$as_me:$LINENO: result: no" >&5
13117 echo "${ECHO_T}no" >&6
13120 min_esd_version=0.2.7
13121 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
13122 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
13124 if test "$ESD_CONFIG" = "no" ; then
13130 ac_cpp='$CPP $CPPFLAGS'
13131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13135 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
13136 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
13138 esd_major_version=`$ESD_CONFIG $esd_args --version | \
13139 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13140 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
13141 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13142 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
13143 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13144 if test "x$enable_esdtest" = "xyes" ; then
13145 ac_save_CFLAGS="$CFLAGS"
13146 ac_save_LIBS="$LIBS"
13147 CFLAGS="$CFLAGS $ESD_CFLAGS"
13148 LIBS="$LIBS $ESD_LIBS"
13150 if test "$cross_compiling" = yes; then
13151 echo $ac_n "cross compiling; assumed OK... $ac_c"
13153 cat >conftest.$ac_ext <<_ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13161 #include <stdlib.h>
13162 #include <string.h>
13166 my_strdup (char *str)
13172 new_str = malloc ((strlen (str) + 1) * sizeof(char));
13173 strcpy (new_str, str);
13183 int major, minor, micro;
13186 system ("touch conf.esdtest");
13188 /* HP/UX 9 (%@#!) writes to sscanf strings */
13189 tmp_version = my_strdup("$min_esd_version");
13190 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13191 printf("%s, bad version string\n", "$min_esd_version");
13195 if (($esd_major_version > major) ||
13196 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13197 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13203 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13204 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13205 printf("*** best to upgrade to the required version.\n");
13206 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13207 printf("*** to point to the correct copy of esd-config, and remove the file\n");
13208 printf("*** config.cache before re-running configure\n");
13215 rm -f conftest$ac_exeext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13228 echo "$as_me: program exited with status $ac_status" >&5
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ( exit $ac_status )
13235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13237 CFLAGS="$ac_save_CFLAGS"
13238 LIBS="$ac_save_LIBS"
13240 ac_cpp='$CPP $CPPFLAGS'
13241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13247 if test "x$no_esd" = x ; then
13248 echo "$as_me:$LINENO: result: yes" >&5
13249 echo "${ECHO_T}yes" >&6
13252 echo "$as_me:$LINENO: result: no" >&5
13253 echo "${ECHO_T}no" >&6
13254 if test "$ESD_CONFIG" = "no" ; then
13255 echo "*** The esd-config script installed by ESD could not be found"
13256 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13257 echo "*** your path, or set the ESD_CONFIG environment variable to the"
13258 echo "*** full path to esd-config."
13260 if test -f conf.esdtest ; then
13263 echo "*** Could not run ESD test program, checking why..."
13264 CFLAGS="$CFLAGS $ESD_CFLAGS"
13265 LIBS="$LIBS $ESD_LIBS"
13269 ac_cpp='$CPP $CPPFLAGS'
13270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13274 cat >conftest.$ac_ext <<_ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294 (eval $ac_link) 2>conftest.er1
13296 grep -v '^ *+' conftest.er1 >conftest.err
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -z "$ac_c_werror_flag"
13302 || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 echo "*** The test program compiled, but did not run. This usually means"
13315 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13316 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13317 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13318 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13319 echo "*** is required on your system"
13321 echo "*** If you have an old version installed, it is best to remove it, although"
13322 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 echo "*** The test program failed to compile or link. See the file config.log for the"
13328 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13329 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13330 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13332 rm -f conftest.err conftest.$ac_objext \
13333 conftest$ac_exeext conftest.$ac_ext
13334 CFLAGS="$ac_save_CFLAGS"
13335 LIBS="$ac_save_LIBS"
13337 ac_cpp='$CPP $CPPFLAGS'
13338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354 LDFLAGS=$KEEPLDFLAGS
13355 if test "x$no_esd" = x; then
13356 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13357 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13358 for f in $ESD_CFLAGS; do
13360 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13361 *) CFLAGS="$CPPFLAGS $f" ;;
13365 LIBS="$LIBS $ESD_LIBS"
13367 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13368 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13371 echo "$as_me:$LINENO: result: no" >&5
13372 echo "${ECHO_T}no" >&6
13375 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13376 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13377 if test "x$au_enable_portaudio" = xyes; then
13378 echo "$as_me:$LINENO: result: yes" >&5
13379 echo "${ECHO_T}yes" >&6
13380 if test "x$MSYS" = xyes ; then
13381 SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13382 EXTRALIBS="$EXTRALIBS -lportaudio"
13383 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13385 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13386 EXTRALIBS="$EXTRALIBS -lportaudio"
13387 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13390 echo "$as_me:$LINENO: result: no" >&5
13391 echo "${ECHO_T}no" >&6
13394 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13395 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13396 if test "x$au_enable_jack" = xyes; then
13397 echo "$as_me:$LINENO: result: yes" >&5
13398 echo "${ECHO_T}yes" >&6
13399 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13400 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13401 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13403 echo "$as_me:$LINENO: result: no" >&5
13404 echo "${ECHO_T}no" >&6
13407 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13408 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13409 if test "x$au_enable_ao" = xyes; then
13410 echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13411 echo "${ECHO_T}yes, configuring ao" >&6
13413 # Check whether --with-ao or --without-ao was given.
13414 if test "${with_ao+set}" = set; then
13416 ao_prefix="$withval"
13421 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13422 if test "${with_ao_libraries+set}" = set; then
13423 withval="$with_ao_libraries"
13424 ao_libraries="$withval"
13429 # Check whether --with-ao-includes or --without-ao-includes was given.
13430 if test "${with_ao_includes+set}" = set; then
13431 withval="$with_ao_includes"
13432 ao_includes="$withval"
13436 # Check whether --enable-aotest or --disable-aotest was given.
13437 if test "${enable_aotest+set}" = set; then
13438 enableval="$enable_aotest"
13445 if test "x$ao_libraries" != "x" ; then
13446 AO_LIBS="-L$ao_libraries"
13447 elif test "x$ao_prefix" != "x"; then
13448 AO_LIBS="-L$ao_prefix/lib"
13449 elif test "x$prefix" != "xNONE"; then
13450 AO_LIBS="-L$prefix/lib"
13453 if test "x$ao_includes" != "x" ; then
13454 AO_CFLAGS="-I$ao_includes"
13455 elif test "x$ao_prefix" != "x"; then
13456 AO_CFLAGS="-I$ao_prefix/include"
13457 elif test "x$prefix" != "xNONE"; then
13458 AO_CFLAGS="-I$prefix/include"
13461 # see where dl* and friends live
13463 for ac_func in dlopen
13465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13466 echo "$as_me:$LINENO: checking for $ac_func" >&5
13467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13468 if eval "test \"\${$as_ac_var+set}\" = set"; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 cat >conftest.$ac_ext <<_ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13479 #define $ac_func innocuous_$ac_func
13481 /* System header to define __stub macros and hopefully few prototypes,
13482 which can conflict with char $ac_func (); below.
13483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13484 <limits.h> exists even on freestanding compilers. */
13487 # include <limits.h>
13489 # include <assert.h>
13494 /* Override any gcc2 internal prototype to avoid an error. */
13499 /* We use char because int might match the return type of a gcc2
13500 builtin and then its argument prototype would still apply. */
13502 /* The GNU C library defines this for functions which it implements
13503 to always fail with ENOSYS. Some functions are actually named
13504 something starting with __ and the normal name is an alias. */
13505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13508 char (*f) () = $ac_func;
13517 return f != $ac_func;
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13524 (eval $ac_link) 2>conftest.er1
13526 grep -v '^ *+' conftest.er1 >conftest.err
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
13531 { ac_try='test -z "$ac_c_werror_flag"
13532 || test ! -s conftest.err'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest$ac_exeext'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 eval "$as_ac_var=yes"
13546 echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13549 eval "$as_ac_var=no"
13551 rm -f conftest.err conftest.$ac_objext \
13552 conftest$ac_exeext conftest.$ac_ext
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13556 if test `eval echo '${'$as_ac_var'}'` = yes; then
13557 cat >>confdefs.h <<_ACEOF
13558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13563 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13564 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13565 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 ac_check_lib_save_LIBS=$LIBS
13570 cat >conftest.$ac_ext <<_ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13577 /* Override any gcc2 internal prototype to avoid an error. */
13581 /* We use char because int might match the return type of a gcc2
13582 builtin and then its argument prototype would still apply. */
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594 (eval $ac_link) 2>conftest.er1
13596 grep -v '^ *+' conftest.er1 >conftest.err
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag"
13602 || test ! -s conftest.err'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest$ac_exeext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 ac_cv_lib_dl_dlopen=yes
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13619 ac_cv_lib_dl_dlopen=no
13621 rm -f conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
13623 LIBS=$ac_check_lib_save_LIBS
13625 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13627 if test $ac_cv_lib_dl_dlopen = yes; then
13631 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13632 your system may not be supported." >&5
13633 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13634 your system may not be supported." >&2;}
13643 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13645 echo "$as_me:$LINENO: checking for ao" >&5
13646 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13650 if test "x$enable_aotest" = "xyes" ; then
13651 ac_save_CFLAGS="$CFLAGS"
13652 ac_save_LIBS="$LIBS"
13653 CFLAGS="$CFLAGS $AO_CFLAGS"
13654 LIBS="$LIBS $AO_LIBS"
13656 if test "$cross_compiling" = yes; then
13657 echo $ac_n "cross compiling; assumed OK... $ac_c"
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13667 #include <stdlib.h>
13668 #include <string.h>
13673 system("touch conf.aotest");
13679 rm -f conftest$ac_exeext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681 (eval $ac_link) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13692 echo "$as_me: program exited with status $ac_status" >&5
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ( exit $ac_status )
13699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13701 CFLAGS="$ac_save_CFLAGS"
13702 LIBS="$ac_save_LIBS"
13705 if test "x$no_ao" = "x" ; then
13706 echo "$as_me:$LINENO: result: yes" >&5
13707 echo "${ECHO_T}yes" >&6
13710 echo "$as_me:$LINENO: result: no" >&5
13711 echo "${ECHO_T}no" >&6
13712 if test -f conf.aotest ; then
13715 echo "*** Could not run ao test program, checking why..."
13716 CFLAGS="$CFLAGS $AO_CFLAGS"
13717 LIBS="$LIBS $AO_LIBS"
13718 cat >conftest.$ac_ext <<_ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13736 rm -f conftest.$ac_objext conftest$ac_exeext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13738 (eval $ac_link) 2>conftest.er1
13740 grep -v '^ *+' conftest.er1 >conftest.err
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try='test -z "$ac_c_werror_flag"
13746 || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest$ac_exeext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 echo "*** The test program compiled, but did not run. This usually means"
13759 echo "*** that the run-time linker is not finding ao or finding the wrong"
13760 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13761 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13762 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13763 echo "*** is required on your system"
13765 echo "*** If you have an old version installed, it is best to remove it, although"
13766 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 echo "*** The test program failed to compile or link. See the file config.log for the"
13772 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13773 echo "*** or that you have moved ao since it was installed."
13775 rm -f conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13777 CFLAGS="$ac_save_CFLAGS"
13778 LIBS="$ac_save_LIBS"
13788 if test "x$no_ao" = "x" ; then
13789 # AC_MSG_RESULT(yes)
13790 EXTRADEFS="$EXTRADEFS -DAU_AO"
13791 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13792 for f in $AO_CFLAGS; do
13794 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13795 *) CFLAGS="$CPPFLAGS $f" ;;
13799 LIBS="$LIBS $AO_LIBS"
13801 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13802 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13805 echo "$as_me:$LINENO: result: no" >&5
13806 echo "${ECHO_T}no" >&6
13809 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13810 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13811 if test "x$au_enable_vorbis" = xyes; then
13812 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13813 echo "${ECHO_T}yes, configuring vorbis" >&6
13815 # Check whether --with-ogg or --without-ogg was given.
13816 if test "${with_ogg+set}" = set; then
13817 withval="$with_ogg"
13818 ogg_prefix="$withval"
13823 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13824 if test "${with_ogg_libraries+set}" = set; then
13825 withval="$with_ogg_libraries"
13826 ogg_libraries="$withval"
13831 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13832 if test "${with_ogg_includes+set}" = set; then
13833 withval="$with_ogg_includes"
13834 ogg_includes="$withval"
13838 # Check whether --enable-oggtest or --disable-oggtest was given.
13839 if test "${enable_oggtest+set}" = set; then
13840 enableval="$enable_oggtest"
13846 if test "x$ogg_libraries" != "x" ; then
13847 OGG_LIBS="-L$ogg_libraries"
13848 elif test "x$ogg_prefix" != "x" ; then
13849 OGG_LIBS="-L$ogg_prefix/lib"
13850 elif test "x$prefix" != "xNONE" ; then
13851 OGG_LIBS="-L$prefix/lib"
13854 OGG_LIBS="$OGG_LIBS -logg"
13856 if test "x$ogg_includes" != "x" ; then
13857 OGG_CFLAGS="-I$ogg_includes"
13858 elif test "x$ogg_prefix" != "x" ; then
13859 OGG_CFLAGS="-I$ogg_prefix/include"
13860 elif test "x$prefix" != "xNONE"; then
13861 OGG_CFLAGS="-I$prefix/include"
13864 echo "$as_me:$LINENO: checking for Ogg" >&5
13865 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13869 if test "x$enable_oggtest" = "xyes" ; then
13870 ac_save_CFLAGS="$CFLAGS"
13871 ac_save_LIBS="$LIBS"
13872 CFLAGS="$CFLAGS $OGG_CFLAGS"
13873 LIBS="$LIBS $OGG_LIBS"
13875 if test "$cross_compiling" = yes; then
13876 echo $ac_n "cross compiling; assumed OK... $ac_c"
13878 cat >conftest.$ac_ext <<_ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13886 #include <stdlib.h>
13887 #include <string.h>
13888 #include <ogg/ogg.h>
13892 system("touch conf.oggtest");
13898 rm -f conftest$ac_exeext
13899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13900 (eval $ac_link) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13911 echo "$as_me: program exited with status $ac_status" >&5
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 ( exit $ac_status )
13918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13920 CFLAGS="$ac_save_CFLAGS"
13921 LIBS="$ac_save_LIBS"
13924 if test "x$no_ogg" = "x" ; then
13925 echo "$as_me:$LINENO: result: yes" >&5
13926 echo "${ECHO_T}yes" >&6
13929 # Check whether --with-vorbis or --without-vorbis was given.
13930 if test "${with_vorbis+set}" = set; then
13931 withval="$with_vorbis"
13932 vorbis_prefix="$withval"
13937 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13938 if test "${with_vorbis_libraries+set}" = set; then
13939 withval="$with_vorbis_libraries"
13940 vorbis_libraries="$withval"
13942 vorbis_libraries=""
13945 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13946 if test "${with_vorbis_includes+set}" = set; then
13947 withval="$with_vorbis_includes"
13948 vorbis_includes="$withval"
13952 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13953 if test "${enable_vorbistest+set}" = set; then
13954 enableval="$enable_vorbistest"
13957 enable_vorbistest=yes
13960 if test "x$vorbis_libraries" != "x" ; then
13961 VORBIS_LIBS="-L$vorbis_libraries"
13962 elif test "x$vorbis_prefix" != "x" ; then
13963 VORBIS_LIBS="-L$vorbis_prefix/lib"
13964 elif test "x$prefix" != "xNONE"; then
13965 VORBIS_LIBS="-L$prefix/lib"
13968 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13969 VORBISFILE_LIBS="-lvorbisfile"
13970 VORBISENC_LIBS="-lvorbisenc"
13972 if test "x$vorbis_includes" != "x" ; then
13973 VORBIS_CFLAGS="-I$vorbis_includes"
13974 elif test "x$vorbis_prefix" != "x" ; then
13975 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13976 elif test "x$prefix" != "xNONE"; then
13977 VORBIS_CFLAGS="-I$prefix/include"
13981 echo "$as_me:$LINENO: checking for Vorbis" >&5
13982 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13986 if test "x$enable_vorbistest" = "xyes" ; then
13987 ac_save_CFLAGS="$CFLAGS"
13988 ac_save_LIBS="$LIBS"
13989 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13990 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13991 rm -f conf.vorbistest
13992 if test "$cross_compiling" = yes; then
13993 echo $ac_n "cross compiling; assumed OK... $ac_c"
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14003 #include <stdlib.h>
14004 #include <string.h>
14005 #include <vorbis/codec.h>
14009 system("touch conf.vorbistest");
14015 rm -f conftest$ac_exeext
14016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017 (eval $ac_link) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14028 echo "$as_me: program exited with status $ac_status" >&5
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 ( exit $ac_status )
14035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14037 CFLAGS="$ac_save_CFLAGS"
14038 LIBS="$ac_save_LIBS"
14041 if test "x$no_vorbis" = "x" ; then
14042 echo "$as_me:$LINENO: result: yes" >&5
14043 echo "${ECHO_T}yes" >&6
14046 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
14047 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
14048 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
14049 if test "x$MSYS" = "xyes"; then
14050 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
14051 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14055 echo "$as_me:$LINENO: result: no" >&5
14056 echo "${ECHO_T}no" >&6
14057 if test -f conf.vorbistest ; then
14060 echo "*** Could not run Vorbis test program, checking why..."
14061 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14062 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14063 cat >conftest.$ac_ext <<_ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14071 #include <vorbis/codec.h>
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083 (eval $ac_link) 2>conftest.er1
14085 grep -v '^ *+' conftest.er1 >conftest.err
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -z "$ac_c_werror_flag"
14091 || test ! -s conftest.err'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest$ac_exeext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 echo "*** The test program compiled, but did not run. This usually means"
14104 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14105 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14106 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14107 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14108 echo "*** is required on your system"
14110 echo "*** If you have an old version installed, it is best to remove it, although"
14111 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 echo "*** The test program failed to compile or link. See the file config.log for the"
14117 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14118 echo "*** or that you have moved Vorbis since it was installed."
14120 rm -f conftest.err conftest.$ac_objext \
14121 conftest$ac_exeext conftest.$ac_ext
14122 CFLAGS="$ac_save_CFLAGS"
14123 LIBS="$ac_save_LIBS"
14130 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14131 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14138 rm -f conf.vorbistest
14142 echo "$as_me:$LINENO: result: no" >&5
14143 echo "${ECHO_T}no" >&6
14144 if test -f conf.oggtest ; then
14147 echo "*** Could not run Ogg test program, checking why..."
14148 CFLAGS="$CFLAGS $OGG_CFLAGS"
14149 LIBS="$LIBS $OGG_LIBS"
14150 cat >conftest.$ac_ext <<_ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14158 #include <ogg/ogg.h>
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170 (eval $ac_link) 2>conftest.er1
14172 grep -v '^ *+' conftest.er1 >conftest.err
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest$ac_exeext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 echo "*** The test program compiled, but did not run. This usually means"
14191 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14192 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14193 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14194 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14195 echo "*** is required on your system"
14197 echo "*** If you have an old version installed, it is best to remove it, although"
14198 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14203 echo "*** The test program failed to compile or link. See the file config.log for the"
14204 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14205 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14206 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14208 rm -f conftest.err conftest.$ac_objext \
14209 conftest$ac_exeext conftest.$ac_ext
14210 CFLAGS="$ac_save_CFLAGS"
14211 LIBS="$ac_save_LIBS"
14216 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14217 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14226 echo "$as_me:$LINENO: result: no" >&5
14227 echo "${ECHO_T}no" >&6
14230 if test "x$MSYS" = xyes ; then
14231 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14232 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14233 if test "x$au_enable_flac" = xyes; then
14234 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14235 echo "${ECHO_T}yes, configuring flac" >&6
14236 SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
14238 # Check whether --with-libFLAC or --without-libFLAC was given.
14239 if test "${with_libFLAC+set}" = set; then
14240 withval="$with_libFLAC"
14241 libFLAC_prefix="$withval"
14246 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14247 if test "${with_libFLAC_libraries+set}" = set; then
14248 withval="$with_libFLAC_libraries"
14249 libFLAC_libraries="$withval"
14251 libFLAC_libraries=""
14254 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14255 if test "${with_libFLAC_includes+set}" = set; then
14256 withval="$with_libFLAC_includes"
14257 libFLAC_includes="$withval"
14259 libFLAC_includes=""
14261 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14262 if test "${enable_libFLACtest+set}" = set; then
14263 enableval="$enable_libFLACtest"
14266 enable_libFLACtest=yes
14269 if test "x$libFLAC_libraries" != "x" ; then
14270 LIBFLAC_LIBS="-L$libFLAC_libraries"
14271 elif test "x$libFLAC_prefix" != "x" ; then
14272 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14273 elif test "x$prefix" != "xNONE" ; then
14274 LIBFLAC_LIBS="-L$prefix/lib"
14277 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14279 if test "x$libFLAC_includes" != "x" ; then
14280 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14281 elif test "x$libFLAC_prefix" != "x" ; then
14282 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14283 elif test "$prefix" != "xNONE"; then
14284 LIBFLAC_CFLAGS="-I$prefix/include"
14287 echo "$as_me:$LINENO: checking for libFLAC" >&5
14288 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14292 if test "x$enable_libFLACtest" = "xyes" ; then
14293 ac_save_CFLAGS="$CFLAGS"
14294 ac_save_CXXFLAGS="$CXXFLAGS"
14295 ac_save_LIBS="$LIBS"
14296 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14297 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14298 LIBS="$LIBS $LIBFLAC_LIBS"
14299 rm -f conf.libFLACtest
14300 if test "$cross_compiling" = yes; then
14301 echo $ac_n "cross compiling; assumed OK... $ac_c"
14303 cat >conftest.$ac_ext <<_ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14311 #include <stdlib.h>
14312 #include <string.h>
14313 #include <FLAC/format.h>
14317 system("touch conf.libFLACtest");
14323 rm -f conftest$ac_exeext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325 (eval $ac_link) 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14336 echo "$as_me: program exited with status $ac_status" >&5
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ( exit $ac_status )
14343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14345 CFLAGS="$ac_save_CFLAGS"
14346 LIBS="$ac_save_LIBS"
14349 if test "x$no_libFLAC" = "x" ; then
14350 echo "$as_me:$LINENO: result: yes" >&5
14351 echo "${ECHO_T}yes" >&6
14353 EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14354 for f in $LIBFLAC_CFLAGS; do
14356 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14357 *) CFLAGS="$CPPFLAGS $f" ;;
14361 LIBS="$LIBS $LIBFLAC_LIBS"
14364 echo "$as_me:$LINENO: result: no" >&5
14365 echo "${ECHO_T}no" >&6
14366 if test -f conf.libFLACtest ; then
14369 echo "*** Could not run libFLAC test program, checking why..."
14370 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14371 LIBS="$LIBS $LIBFLAC_LIBS"
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14380 #include <FLAC/format.h>
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14392 (eval $ac_link) 2>conftest.er1
14394 grep -v '^ *+' conftest.er1 >conftest.err
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -z "$ac_c_werror_flag"
14400 || test ! -s conftest.err'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; } &&
14406 { ac_try='test -s conftest$ac_exeext'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 echo "*** The test program compiled, but did not run. This usually means"
14413 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14414 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14415 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14416 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14417 echo "*** is required on your system"
14419 echo "*** If you have an old version installed, it is best to remove it, although"
14420 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 echo "*** The test program failed to compile or link. See the file config.log for the"
14426 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14427 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14428 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14430 rm -f conftest.err conftest.$ac_objext \
14431 conftest$ac_exeext conftest.$ac_ext
14432 CFLAGS="$ac_save_CFLAGS"
14433 LIBS="$ac_save_LIBS"
14441 rm -f conf.libFLACtest
14444 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14445 if test "${with_libOggFLAC+set}" = set; then
14446 withval="$with_libOggFLAC"
14447 libOggFLAC_prefix="$withval"
14449 libOggFLAC_prefix=""
14452 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14453 if test "${with_libOggFLAC_libraries+set}" = set; then
14454 withval="$with_libOggFLAC_libraries"
14455 libOggFLAC_libraries="$withval"
14457 libOggFLAC_libraries=""
14460 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14461 if test "${with_libOggFLAC_includes+set}" = set; then
14462 withval="$with_libOggFLAC_includes"
14463 libOggFLAC_includes="$withval"
14465 libOggFLAC_includes=""
14467 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14468 if test "${enable_libOggFLACtest+set}" = set; then
14469 enableval="$enable_libOggFLACtest"
14472 enable_libOggFLACtest=yes
14475 if test "x$libOggFLAC_libraries" != "x" ; then
14476 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14477 elif test "x$libOggFLAC_prefix" != "x" ; then
14478 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14479 elif test "x$prefix" != "xNONE" ; then
14480 LIBOGGFLAC_LIBS="-L$prefix/lib"
14483 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14485 if test "x$libOggFLAC_includes" != "x" ; then
14486 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14487 elif test "x$libOggFLAC_prefix" != "x" ; then
14488 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14489 elif test "$prefix" != "xNONE"; then
14490 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14493 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14494 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14498 if test "x$enable_libOggFLACtest" = "xyes" ; then
14499 ac_save_CFLAGS="$CFLAGS"
14500 ac_save_CXXFLAGS="$CXXFLAGS"
14501 ac_save_LIBS="$LIBS"
14502 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14503 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14504 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14505 rm -f conf.libOggFLACtest
14506 if test "$cross_compiling" = yes; then
14507 echo $ac_n "cross compiling; assumed OK... $ac_c"
14509 cat >conftest.$ac_ext <<_ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14517 #include <stdlib.h>
14518 #include <string.h>
14519 #include <OggFLAC/stream_decoder.h>
14523 system("touch conf.libOggFLACtest");
14529 rm -f conftest$ac_exeext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14531 (eval $ac_link) 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14542 echo "$as_me: program exited with status $ac_status" >&5
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 ( exit $ac_status )
14549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14551 CFLAGS="$ac_save_CFLAGS"
14552 LIBS="$ac_save_LIBS"
14555 if test "x$no_libOggFLAC" = "x" ; then
14556 echo "$as_me:$LINENO: result: yes" >&5
14557 echo "${ECHO_T}yes" >&6
14559 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14560 for f in $LIBOGGFLAC_CFLAGS; do
14562 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14563 *) CFLAGS="$CPPFLAGS $f" ;;
14567 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14570 echo "$as_me:$LINENO: result: no" >&5
14571 echo "${ECHO_T}no" >&6
14572 if test -f conf.libOggFLACtest ; then
14575 echo "*** Could not run libOggFLAC test program, checking why..."
14576 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14577 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14578 cat >conftest.$ac_ext <<_ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14586 #include <OggFLAC/stream_decoder.h>
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598 (eval $ac_link) 2>conftest.er1
14600 grep -v '^ *+' conftest.er1 >conftest.err
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_c_werror_flag"
14606 || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest$ac_exeext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 echo "*** The test program compiled, but did not run. This usually means"
14619 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14620 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14621 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14622 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14623 echo "*** is required on your system"
14625 echo "*** If you have an old version installed, it is best to remove it, although"
14626 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 echo "*** The test program failed to compile or link. See the file config.log for the"
14632 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14633 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14634 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14636 rm -f conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext conftest.$ac_ext
14638 CFLAGS="$ac_save_CFLAGS"
14639 LIBS="$ac_save_LIBS"
14641 LIBOGGFLAC_CFLAGS=""
14647 rm -f conf.libOggFLACtest
14650 echo "$as_me:$LINENO: result: no" >&5
14651 echo "${ECHO_T}no" >&6
14654 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14655 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14656 if test "x$au_enable_flac" = xyes; then
14657 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14658 echo "${ECHO_T}yes, configuring flac" >&6
14659 SYSEXTRAS="$SYSEXTRAS flac_a.c"
14661 # Check whether --with-libFLAC or --without-libFLAC was given.
14662 if test "${with_libFLAC+set}" = set; then
14663 withval="$with_libFLAC"
14664 libFLAC_prefix="$withval"
14669 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14670 if test "${with_libFLAC_libraries+set}" = set; then
14671 withval="$with_libFLAC_libraries"
14672 libFLAC_libraries="$withval"
14674 libFLAC_libraries=""
14677 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14678 if test "${with_libFLAC_includes+set}" = set; then
14679 withval="$with_libFLAC_includes"
14680 libFLAC_includes="$withval"
14682 libFLAC_includes=""
14684 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14685 if test "${enable_libFLACtest+set}" = set; then
14686 enableval="$enable_libFLACtest"
14689 enable_libFLACtest=yes
14692 if test "x$libFLAC_libraries" != "x" ; then
14693 LIBFLAC_LIBS="-L$libFLAC_libraries"
14694 elif test "x$libFLAC_prefix" != "x" ; then
14695 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14696 elif test "x$prefix" != "xNONE" ; then
14697 LIBFLAC_LIBS="-L$prefix/lib"
14700 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14702 if test "x$libFLAC_includes" != "x" ; then
14703 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14704 elif test "x$libFLAC_prefix" != "x" ; then
14705 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14706 elif test "$prefix" != "xNONE"; then
14707 LIBFLAC_CFLAGS="-I$prefix/include"
14710 echo "$as_me:$LINENO: checking for libFLAC" >&5
14711 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14715 if test "x$enable_libFLACtest" = "xyes" ; then
14716 ac_save_CFLAGS="$CFLAGS"
14717 ac_save_CXXFLAGS="$CXXFLAGS"
14718 ac_save_LIBS="$LIBS"
14719 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14720 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14721 LIBS="$LIBS $LIBFLAC_LIBS"
14722 rm -f conf.libFLACtest
14723 if test "$cross_compiling" = yes; then
14724 echo $ac_n "cross compiling; assumed OK... $ac_c"
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14734 #include <stdlib.h>
14735 #include <string.h>
14736 #include <FLAC/format.h>
14740 system("touch conf.libFLACtest");
14746 rm -f conftest$ac_exeext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14748 (eval $ac_link) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14759 echo "$as_me: program exited with status $ac_status" >&5
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14763 ( exit $ac_status )
14766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14768 CFLAGS="$ac_save_CFLAGS"
14769 LIBS="$ac_save_LIBS"
14772 if test "x$no_libFLAC" = "x" ; then
14773 echo "$as_me:$LINENO: result: yes" >&5
14774 echo "${ECHO_T}yes" >&6
14776 EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14777 for f in $LIBFLAC_CFLAGS; do
14779 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14780 *) CFLAGS="$CPPFLAGS $f" ;;
14784 LIBS="$LIBS $LIBFLAC_LIBS"
14787 echo "$as_me:$LINENO: result: no" >&5
14788 echo "${ECHO_T}no" >&6
14789 if test -f conf.libFLACtest ; then
14792 echo "*** Could not run libFLAC test program, checking why..."
14793 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14794 LIBS="$LIBS $LIBFLAC_LIBS"
14795 cat >conftest.$ac_ext <<_ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14803 #include <FLAC/format.h>
14813 rm -f conftest.$ac_objext conftest$ac_exeext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14815 (eval $ac_link) 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag"
14823 || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 echo "*** The test program compiled, but did not run. This usually means"
14836 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14837 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14838 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14839 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14840 echo "*** is required on your system"
14842 echo "*** If you have an old version installed, it is best to remove it, although"
14843 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 echo "*** The test program failed to compile or link. See the file config.log for the"
14849 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14850 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14851 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14853 rm -f conftest.err conftest.$ac_objext \
14854 conftest$ac_exeext conftest.$ac_ext
14855 CFLAGS="$ac_save_CFLAGS"
14856 LIBS="$ac_save_LIBS"
14864 rm -f conf.libFLACtest
14867 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14868 if test "${with_libOggFLAC+set}" = set; then
14869 withval="$with_libOggFLAC"
14870 libOggFLAC_prefix="$withval"
14872 libOggFLAC_prefix=""
14875 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14876 if test "${with_libOggFLAC_libraries+set}" = set; then
14877 withval="$with_libOggFLAC_libraries"
14878 libOggFLAC_libraries="$withval"
14880 libOggFLAC_libraries=""
14883 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14884 if test "${with_libOggFLAC_includes+set}" = set; then
14885 withval="$with_libOggFLAC_includes"
14886 libOggFLAC_includes="$withval"
14888 libOggFLAC_includes=""
14890 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14891 if test "${enable_libOggFLACtest+set}" = set; then
14892 enableval="$enable_libOggFLACtest"
14895 enable_libOggFLACtest=yes
14898 if test "x$libOggFLAC_libraries" != "x" ; then
14899 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14900 elif test "x$libOggFLAC_prefix" != "x" ; then
14901 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14902 elif test "x$prefix" != "xNONE" ; then
14903 LIBOGGFLAC_LIBS="-L$prefix/lib"
14906 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14908 if test "x$libOggFLAC_includes" != "x" ; then
14909 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14910 elif test "x$libOggFLAC_prefix" != "x" ; then
14911 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14912 elif test "$prefix" != "xNONE"; then
14913 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14916 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14917 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14921 if test "x$enable_libOggFLACtest" = "xyes" ; then
14922 ac_save_CFLAGS="$CFLAGS"
14923 ac_save_CXXFLAGS="$CXXFLAGS"
14924 ac_save_LIBS="$LIBS"
14925 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14926 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14927 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14928 rm -f conf.libOggFLACtest
14929 if test "$cross_compiling" = yes; then
14930 echo $ac_n "cross compiling; assumed OK... $ac_c"
14932 cat >conftest.$ac_ext <<_ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14940 #include <stdlib.h>
14941 #include <string.h>
14942 #include <OggFLAC/stream_decoder.h>
14946 system("touch conf.libOggFLACtest");
14952 rm -f conftest$ac_exeext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14954 (eval $ac_link) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14965 echo "$as_me: program exited with status $ac_status" >&5
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14969 ( exit $ac_status )
14972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14974 CFLAGS="$ac_save_CFLAGS"
14975 LIBS="$ac_save_LIBS"
14978 if test "x$no_libOggFLAC" = "x" ; then
14979 echo "$as_me:$LINENO: result: yes" >&5
14980 echo "${ECHO_T}yes" >&6
14982 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14983 for f in $LIBOGGFLAC_CFLAGS; do
14985 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14986 *) CFLAGS="$CPPFLAGS $f" ;;
14990 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14993 echo "$as_me:$LINENO: result: no" >&5
14994 echo "${ECHO_T}no" >&6
14995 if test -f conf.libOggFLACtest ; then
14998 echo "*** Could not run libOggFLAC test program, checking why..."
14999 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15000 LIBS="$LIBS $LIBOGGFLAC_LIBS"
15001 cat >conftest.$ac_ext <<_ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h. */
15009 #include <OggFLAC/stream_decoder.h>
15019 rm -f conftest.$ac_objext conftest$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -z "$ac_c_werror_flag"
15029 || test ! -s conftest.err'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest$ac_exeext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 echo "*** The test program compiled, but did not run. This usually means"
15042 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
15043 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
15044 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15045 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15046 echo "*** is required on your system"
15048 echo "*** If you have an old version installed, it is best to remove it, although"
15049 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 echo "*** The test program failed to compile or link. See the file config.log for the"
15055 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
15056 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
15057 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
15059 rm -f conftest.err conftest.$ac_objext \
15060 conftest$ac_exeext conftest.$ac_ext
15061 CFLAGS="$ac_save_CFLAGS"
15062 LIBS="$ac_save_LIBS"
15064 LIBOGGFLAC_CFLAGS=""
15070 rm -f conf.libOggFLACtest
15073 echo "$as_me:$LINENO: result: no" >&5
15074 echo "${ECHO_T}no" >&6
15077 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
15078 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
15079 if test "x$au_enable_speex" = xyes; then
15080 if test "${have_speex+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15091 #include <ogg/ogg.h>
15103 rm -f conftest.$ac_objext conftest$ac_exeext
15104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15105 (eval $ac_link) 2>conftest.er1
15107 grep -v '^ *+' conftest.er1 >conftest.err
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -z "$ac_c_werror_flag"
15113 || test ! -s conftest.err'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } &&
15119 { ac_try='test -s conftest$ac_exeext'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15132 rm -f conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15136 echo "$as_me:$LINENO: result: $have_speex" >&5
15137 echo "${ECHO_T}$have_speex" >&6
15138 if test "x$have_speex" = xyes; then
15139 SYSEXTRAS="$SYSEXTRAS speex_a.c"
15140 EXTRALIBS="$EXTRALIBS -lspeex -logg"
15141 EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
15144 echo "$as_me:$LINENO: result: no" >&5
15145 echo "${ECHO_T}no" >&6
15148 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
15149 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
15150 if test "x$au_enable_gogo" = xyes; then
15151 if test "x$MSYS" = "xyes"; then
15152 echo "$as_me:$LINENO: result: yes" >&5
15153 echo "${ECHO_T}yes" >&6
15155 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
15156 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
15159 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
15160 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
15161 EXTRALIBS="$EXTRALIBS -lgogo"
15163 echo "$as_me:$LINENO: result: no" >&5
15164 echo "${ECHO_T}no" >&6
15167 if test "x$au_enable_none" = xyes; then
15168 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
15169 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
15171 echo "$as_me:$LINENO: checking default output mode" >&5
15172 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
15173 if test "x$DEFAULT_PLAYMODE" = x; then
15174 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
15176 case ".$DEFAULT_PLAYMODE" in
15177 .default) TIMIDITY_OUTPUT_ID=d ;;
15178 .oss) TIMIDITY_OUTPUT_ID=d ;;
15179 .alsa) TIMIDITY_OUTPUT_ID=s ;;
15180 .sun) TIMIDITY_OUTPUT_ID=d ;;
15181 .hpux) TIMIDITY_OUTPUT_ID=d ;;
15182 .irix) TIMIDITY_OUTPUT_ID=d ;;
15183 .mme) TIMIDITY_OUTPUT_ID=d ;;
15184 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
15185 .darwin) TIMIDITY_OUTPUT_ID=d ;;
15186 .w32) TIMIDITY_OUTPUT_ID=d ;;
15187 .alib) TIMIDITY_OUTPUT_ID=A ;;
15188 .nas) TIMIDITY_OUTPUT_ID=n ;;
15189 .arts) TIMIDITY_OUTPUT_ID=R ;;
15190 .esd) TIMIDITY_OUTPUT_ID=e ;;
15191 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
15192 .wav) TIMIDITY_OUTPUT_ID=w ;;
15193 .au) TIMIDITY_OUTPUT_ID=u ;;
15194 .aiff) TIMIDITY_OUTPUT_ID=a ;;
15195 .list) TIMIDITY_OUTPUT_ID=l ;;
15196 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
15197 .flac) TIMIDITY_OUTPUT_ID=F ;;
15198 .speex) TIMIDITY_OUTPUT_ID=S ;;
15199 .gogo) TIMIDITY_OUTPUT_ID=g ;;
15200 .jack) TIMIDITY_OUTPUT_ID=j ;;
15201 *) TIMIDITY_OUTPUT_ID= ;;
15203 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
15204 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
15208 # Interface Section
15211 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
15213 # Check whether --enable-interface or --disable-interface was given.
15214 if test "${enable_interface+set}" = set; then
15215 enableval="$enable_interface"
15216 for i in `echo $enableval | sed 's/,/ /g'`; do
15217 eval "enable_$i=yes"
15221 # Dynamic link configuration
15222 # Check whether --enable-dynamic or --disable-dynamic was given.
15223 if test "${enable_dynamic+set}" = set; then
15224 enableval="$enable_dynamic"
15225 if test "x$enable_dynamic" = xyes; then
15226 enable_dynamic=dynamic
15227 elif test "x$enable_dynamic" != xno; then
15228 for i in `echo $enableval | sed 's/,/ /g'`; do
15229 eval "enable_$i=dynamic"
15235 for i in $interface_targets; do
15236 eval "join_targets=$join_targets\$enable_$i"
15239 case ".$join_targets" in
15240 .*dynamic*) NEEDDLOPEN=yes;;
15244 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
15245 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
15247 if test "$NEEDDLOPEN" = "yes"; then
15250 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
15251 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
15252 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 #include <windows.h>
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274 (eval $ac_link) 2>conftest.er1
15276 grep -v '^ *+' conftest.er1 >conftest.err
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } &&
15281 { ac_try='test -z "$ac_c_werror_flag"
15282 || test ! -s conftest.err'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; } &&
15288 { ac_try='test -s conftest$ac_exeext'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 wapi_cv_func_LoadLibrary=yes
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15299 wapi_cv_func_LoadLibrary=no
15301 rm -f conftest.err conftest.$ac_objext \
15302 conftest$ac_exeext conftest.$ac_ext
15305 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15306 echo "$as_me:$LINENO: result: yes" >&5
15307 echo "${ECHO_T}yes" >&6
15310 echo "$as_me:$LINENO: result: no" >&5
15311 echo "${ECHO_T}no" >&6
15314 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15316 if test "$have_dl" = "no"; then
15317 echo "$as_me:$LINENO: checking for shl_load" >&5
15318 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15319 if test "${ac_cv_func_shl_load+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15330 #define shl_load innocuous_shl_load
15332 /* System header to define __stub macros and hopefully few prototypes,
15333 which can conflict with char shl_load (); below.
15334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15335 <limits.h> exists even on freestanding compilers. */
15338 # include <limits.h>
15340 # include <assert.h>
15345 /* Override any gcc2 internal prototype to avoid an error. */
15350 /* We use char because int might match the return type of a gcc2
15351 builtin and then its argument prototype would still apply. */
15353 /* The GNU C library defines this for functions which it implements
15354 to always fail with ENOSYS. Some functions are actually named
15355 something starting with __ and the normal name is an alias. */
15356 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15359 char (*f) () = shl_load;
15368 return f != shl_load;
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>conftest.er1
15377 grep -v '^ *+' conftest.er1 >conftest.err
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -z "$ac_c_werror_flag"
15383 || test ! -s conftest.err'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; } &&
15389 { ac_try='test -s conftest$ac_exeext'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15395 ac_cv_func_shl_load=yes
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15400 ac_cv_func_shl_load=no
15402 rm -f conftest.err conftest.$ac_objext \
15403 conftest$ac_exeext conftest.$ac_ext
15405 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15406 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15407 if test $ac_cv_func_shl_load = yes; then
15412 if test "$have_dl" = "no"; then
15413 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15414 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
15415 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15426 #define NSLinkModule innocuous_NSLinkModule
15428 /* System header to define __stub macros and hopefully few prototypes,
15429 which can conflict with char NSLinkModule (); below.
15430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15431 <limits.h> exists even on freestanding compilers. */
15434 # include <limits.h>
15436 # include <assert.h>
15439 #undef NSLinkModule
15441 /* Override any gcc2 internal prototype to avoid an error. */
15446 /* We use char because int might match the return type of a gcc2
15447 builtin and then its argument prototype would still apply. */
15448 char NSLinkModule ();
15449 /* The GNU C library defines this for functions which it implements
15450 to always fail with ENOSYS. Some functions are actually named
15451 something starting with __ and the normal name is an alias. */
15452 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
15455 char (*f) () = NSLinkModule;
15464 return f != NSLinkModule;
15469 rm -f conftest.$ac_objext conftest$ac_exeext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15471 (eval $ac_link) 2>conftest.er1
15473 grep -v '^ *+' conftest.er1 >conftest.err
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try='test -s conftest$ac_exeext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_cv_func_NSLinkModule=yes
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_cv_func_NSLinkModule=no
15498 rm -f conftest.err conftest.$ac_objext \
15499 conftest$ac_exeext conftest.$ac_ext
15501 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15502 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15503 if test $ac_cv_func_NSLinkModule = yes; then
15508 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15511 if test "$have_dl" = "no"; then
15512 echo "$as_me:$LINENO: checking for dlopen" >&5
15513 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15514 if test "${ac_cv_func_dlopen+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 cat >conftest.$ac_ext <<_ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15525 #define dlopen innocuous_dlopen
15527 /* System header to define __stub macros and hopefully few prototypes,
15528 which can conflict with char dlopen (); below.
15529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15530 <limits.h> exists even on freestanding compilers. */
15533 # include <limits.h>
15535 # include <assert.h>
15540 /* Override any gcc2 internal prototype to avoid an error. */
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15548 /* The GNU C library defines this for functions which it implements
15549 to always fail with ENOSYS. Some functions are actually named
15550 something starting with __ and the normal name is an alias. */
15551 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15554 char (*f) () = dlopen;
15563 return f != dlopen;
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570 (eval $ac_link) 2>conftest.er1
15572 grep -v '^ *+' conftest.er1 >conftest.err
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try='test -z "$ac_c_werror_flag"
15578 || test ! -s conftest.err'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest$ac_exeext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_func_dlopen=yes
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_cv_func_dlopen=no
15597 rm -f conftest.err conftest.$ac_objext \
15598 conftest$ac_exeext conftest.$ac_ext
15600 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15601 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15602 if test $ac_cv_func_dlopen = yes; then
15607 if test "$have_dl" = "no"; then
15608 echo "$as_me:$LINENO: checking for dld_init" >&5
15609 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15610 if test "${ac_cv_func_dld_init+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 cat >conftest.$ac_ext <<_ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15621 #define dld_init innocuous_dld_init
15623 /* System header to define __stub macros and hopefully few prototypes,
15624 which can conflict with char dld_init (); below.
15625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15626 <limits.h> exists even on freestanding compilers. */
15629 # include <limits.h>
15631 # include <assert.h>
15636 /* Override any gcc2 internal prototype to avoid an error. */
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15644 /* The GNU C library defines this for functions which it implements
15645 to always fail with ENOSYS. Some functions are actually named
15646 something starting with __ and the normal name is an alias. */
15647 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15650 char (*f) () = dld_init;
15659 return f != dld_init;
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666 (eval $ac_link) 2>conftest.er1
15668 grep -v '^ *+' conftest.er1 >conftest.err
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
15673 { ac_try='test -z "$ac_c_werror_flag"
15674 || test ! -s conftest.err'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest$ac_exeext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_cv_func_dld_init=yes
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_cv_func_dld_init=no
15693 rm -f conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15696 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15697 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15698 if test $ac_cv_func_dld_init = yes; then
15703 if test "$have_dl" = "no"; then
15704 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15705 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15706 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 ac_check_lib_save_LIBS=$LIBS
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15718 /* Override any gcc2 internal prototype to avoid an error. */
15722 /* We use char because int might match the return type of a gcc2
15723 builtin and then its argument prototype would still apply. */
15733 rm -f conftest.$ac_objext conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735 (eval $ac_link) 2>conftest.er1
15737 grep -v '^ *+' conftest.er1 >conftest.err
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
15742 { ac_try='test -z "$ac_c_werror_flag"
15743 || test ! -s conftest.err'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest$ac_exeext'
15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755 ac_cv_lib_dld_dld_init=yes
15757 echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.$ac_ext >&5
15760 ac_cv_lib_dld_dld_init=no
15762 rm -f conftest.err conftest.$ac_objext \
15763 conftest$ac_exeext conftest.$ac_ext
15764 LIBS=$ac_check_lib_save_LIBS
15766 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15767 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15768 if test $ac_cv_lib_dld_dld_init = yes; then
15769 have_dl=dld;lib_dl_opt=-ldld
15774 echo "$as_me:$LINENO: checking dynamic link method" >&5
15775 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15778 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15779 echo "${ECHO_T}use dl_dlopen.c" >&6
15780 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15781 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15782 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15783 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 case "$ac_cv_header_dlfcn_h" in
15787 yes) i_dlfcn=define;;
15798 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
15800 #include <sys/types.h>
15805 extern int fred() ;
15814 int mode = RTLD_LAZY ;
15816 handle = dlopen("./dyna.$so", mode) ;
15817 if (handle == NULL) {
15822 symbol = dlsym(handle, "fred") ;
15823 if (symbol == NULL) {
15824 /* try putting a leading underscore */
15825 symbol = dlsym(handle, "_fred") ;
15826 if (symbol == NULL) {
15839 : Call the object file tmp-dyna.o in case dlext=o.
15840 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15841 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15842 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15843 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15846 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
15847 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
15849 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
15850 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
15852 3) timidity_cv_func_dlsym_underscore=yes
15854 4) timidity_cv_func_dlsym_underscore=no
15858 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15859 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15861 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15865 case "x$timidity_cv_func_dlsym_underscore" in
15867 cat >>confdefs.h <<\_ACEOF
15868 #define DLSYM_NEEDS_UNDERSCORE 1
15871 echo "$as_me:$LINENO: result: yes" >&5
15872 echo "${ECHO_T}yes" >&6
15875 echo "$as_me:$LINENO: result: no" >&5
15876 echo "${ECHO_T}no" >&6
15882 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15883 echo "${ECHO_T}use dl_dld.c" >&6
15884 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15887 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15888 echo "${ECHO_T}use dl_hpux.c" >&6
15889 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15890 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15893 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15894 echo "${ECHO_T}use dl_w32.c" >&6
15895 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15898 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15899 echo "${ECHO_T}use dl_dyld.c" >&6
15900 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15904 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15905 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15910 if test "$NEEDDLOPEN" = "yes"; then
15911 cat >> confdefs.h <<EOF
15912 #define IA_DYNAMIC 1
15916 cat >>confdefs.h <<_ACEOF
15917 #define SHARED_LIB_EXT ".$so"
15920 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
15925 if test "$NEEDDLOPEN" = "yes"; then
15927 NEEDDLOPEN_FALSE='#'
15929 NEEDDLOPEN_TRUE='#'
15938 ENABLE_NCURSES_TRUE=
15939 ENABLE_NCURSES_FALSE='#'
15941 ENABLE_NCURSES_TRUE='#'
15942 ENABLE_NCURSES_FALSE=
15945 # Check whether --enable-ncurses or --disable-ncurses was given.
15946 if test "${enable_ncurses+set}" = set; then
15947 enableval="$enable_ncurses"
15948 case "x$enable_ncurses" in xyes|xdynamic)
15951 for ac_header in ncurses.h ncurses/curses.h curses.h
15953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15955 echo "$as_me:$LINENO: checking for $ac_header" >&5
15956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15963 # Is the header compilable?
15964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15966 cat >conftest.$ac_ext <<_ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 $ac_includes_default
15973 #include <$ac_header>
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
15979 grep -v '^ *+' conftest.er1 >conftest.err
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_header_compiler=yes
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_header_compiler=no
16004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16006 echo "${ECHO_T}$ac_header_compiler" >&6
16008 # Is the header present?
16009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #include <$ac_header>
16019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16022 grep -v '^ *+' conftest.er1 >conftest.err
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } >/dev/null; then
16027 if test -s conftest.err; then
16028 ac_cpp_err=$ac_c_preproc_warn_flag
16029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16036 if test -z "$ac_cpp_err"; then
16037 ac_header_preproc=yes
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 ac_header_preproc=no
16044 rm -f conftest.err conftest.$ac_ext
16045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16046 echo "${ECHO_T}$ac_header_preproc" >&6
16048 # So? What about this header?
16049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16055 ac_header_preproc=yes
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16072 ## ------------------------------- ##
16073 ## Report this to root@mput.dip.jp ##
16074 ## ------------------------------- ##
16077 sed "s/^/$as_me: WARNING: /" >&2
16080 echo "$as_me:$LINENO: checking for $ac_header" >&5
16081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 eval "$as_ac_Header=\$ac_header_preproc"
16087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16092 cat >>confdefs.h <<_ACEOF
16093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16102 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
16104 *) for i in /usr/include /usr/local/include; do
16105 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
16106 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
16107 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
16108 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
16115 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
16116 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
16117 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 ac_check_lib_save_LIBS=$LIBS
16121 LIBS="-lncurses $LIBS"
16122 cat >conftest.$ac_ext <<_ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16129 /* Override any gcc2 internal prototype to avoid an error. */
16133 /* We use char because int might match the return type of a gcc2
16134 builtin and then its argument prototype would still apply. */
16144 rm -f conftest.$ac_objext conftest$ac_exeext
16145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16146 (eval $ac_link) 2>conftest.er1
16148 grep -v '^ *+' conftest.er1 >conftest.err
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } &&
16153 { ac_try='test -z "$ac_c_werror_flag"
16154 || test ! -s conftest.err'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; } &&
16160 { ac_try='test -s conftest$ac_exeext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_cv_lib_ncurses_initscr=yes
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_cv_lib_ncurses_initscr=no
16173 rm -f conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16175 LIBS=$ac_check_lib_save_LIBS
16177 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
16178 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
16179 if test $ac_cv_lib_ncurses_initscr = yes; then
16180 lib_curses_opt=-lncurses
16182 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
16183 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
16184 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 ac_check_lib_save_LIBS=$LIBS
16188 LIBS="-lcurses $lib_user32_test $LIBS"
16189 cat >conftest.$ac_ext <<_ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16196 /* Override any gcc2 internal prototype to avoid an error. */
16200 /* We use char because int might match the return type of a gcc2
16201 builtin and then its argument prototype would still apply. */
16202 char PDC_set_ctrl_break ();
16206 PDC_set_ctrl_break ();
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16213 (eval $ac_link) 2>conftest.er1
16215 grep -v '^ *+' conftest.er1 >conftest.err
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
16220 { ac_try='test -z "$ac_c_werror_flag"
16221 || test ! -s conftest.err'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest$ac_exeext'
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
16233 ac_cv_lib_curses_PDC_set_ctrl_break=yes
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16238 ac_cv_lib_curses_PDC_set_ctrl_break=no
16240 rm -f conftest.err conftest.$ac_objext \
16241 conftest$ac_exeext conftest.$ac_ext
16242 LIBS=$ac_check_lib_save_LIBS
16244 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
16245 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
16246 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
16247 lib_curses_opt=-lcurses
16249 cat >>confdefs.h <<\_ACEOF
16250 #define USE_PDCURSES 1
16253 lib_user32_opt="$lib_user32_test"
16256 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
16257 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
16258 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 ac_check_lib_save_LIBS=$LIBS
16262 LIBS="-lpdcurses $LIBS"
16263 cat >conftest.$ac_ext <<_ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16270 /* Override any gcc2 internal prototype to avoid an error. */
16274 /* We use char because int might match the return type of a gcc2
16275 builtin and then its argument prototype would still apply. */
16276 char PDC_set_ctrl_break ();
16280 PDC_set_ctrl_break ();
16285 rm -f conftest.$ac_objext conftest$ac_exeext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>conftest.er1
16289 grep -v '^ *+' conftest.er1 >conftest.err
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try='test -s conftest$ac_exeext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16312 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16314 rm -f conftest.err conftest.$ac_objext \
16315 conftest$ac_exeext conftest.$ac_ext
16316 LIBS=$ac_check_lib_save_LIBS
16318 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16319 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
16320 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16321 lib_curses_opt=-lpdcurses
16323 cat >>confdefs.h <<\_ACEOF
16324 #define USE_PDCURSES 1
16327 lib_user32_opt="$lib_user32_test"
16332 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16333 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
16334 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16337 ac_check_lib_save_LIBS=$LIBS
16338 LIBS="-lcurses $LIBS"
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16346 /* Override any gcc2 internal prototype to avoid an error. */
16350 /* We use char because int might match the return type of a gcc2
16351 builtin and then its argument prototype would still apply. */
16361 rm -f conftest.$ac_objext conftest$ac_exeext
16362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16363 (eval $ac_link) 2>conftest.er1
16365 grep -v '^ *+' conftest.er1 >conftest.err
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag"
16371 || test ! -s conftest.err'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try='test -s conftest$ac_exeext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 ac_cv_lib_curses_initscr=yes
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 ac_cv_lib_curses_initscr=no
16390 rm -f conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
16392 LIBS=$ac_check_lib_save_LIBS
16394 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16395 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
16396 if test $ac_cv_lib_curses_initscr = yes; then
16397 lib_curses_opt=-lcurses
16399 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16400 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16406 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
16407 lib_curses_opt=libpdcurses.lib
16409 cat >>confdefs.h <<\_ACEOF
16410 #define USE_PDCURSES 1
16414 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16415 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16431 case "x$enable_ncurses" in
16433 cat >> confdefs.h <<EOF
16434 #define IA_NCURSES 1
16440 ENABLE_NCURSES_TRUE=
16441 ENABLE_NCURSES_FALSE='#'
16443 ENABLE_NCURSES_TRUE='#'
16444 ENABLE_NCURSES_FALSE=
16447 LIBS="$LIBS $lib_curses_opt"
16450 EXTRALIBS="$EXTRALIBS -lmytinfo"
16453 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16457 dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
16458 n_so_libs="$lib_curses_opt"
16461 EXTRALIBS="$EXTRALIBS -lmytinfo"
16476 ENABLE_SLANG_FALSE='#'
16478 ENABLE_SLANG_TRUE='#'
16479 ENABLE_SLANG_FALSE=
16482 # Check whether --enable-slang or --disable-slang was given.
16483 if test "${enable_slang+set}" = set; then
16484 enableval="$enable_slang"
16485 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16486 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
16487 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-lslang $LIBS"
16492 cat >conftest.$ac_ext <<_ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16499 /* Override any gcc2 internal prototype to avoid an error. */
16503 /* We use char because int might match the return type of a gcc2
16504 builtin and then its argument prototype would still apply. */
16505 char SLang_init_tty ();
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16516 (eval $ac_link) 2>conftest.er1
16518 grep -v '^ *+' conftest.er1 >conftest.err
16520 cat conftest.err >&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } &&
16523 { ac_try='test -z "$ac_c_werror_flag"
16524 || test ! -s conftest.err'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; } &&
16530 { ac_try='test -s conftest$ac_exeext'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ac_cv_lib_slang_SLang_init_tty=yes
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_cv_lib_slang_SLang_init_tty=no
16543 rm -f conftest.err conftest.$ac_objext \
16544 conftest$ac_exeext conftest.$ac_ext
16545 LIBS=$ac_check_lib_save_LIBS
16547 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16548 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16549 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16553 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16554 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16560 for ac_header in slang/slang.h slang.h
16562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16564 echo "$as_me:$LINENO: checking for $ac_header" >&5
16565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16572 # Is the header compilable?
16573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 $ac_includes_default
16582 #include <$ac_header>
16584 rm -f conftest.$ac_objext
16585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16586 (eval $ac_compile) 2>conftest.er1
16588 grep -v '^ *+' conftest.er1 >conftest.err
16590 cat conftest.err >&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } &&
16593 { ac_try='test -z "$ac_c_werror_flag"
16594 || test ! -s conftest.err'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest.$ac_objext'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; }; then
16606 ac_header_compiler=yes
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16611 ac_header_compiler=no
16613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16615 echo "${ECHO_T}$ac_header_compiler" >&6
16617 # Is the header present?
16618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16620 cat >conftest.$ac_ext <<_ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626 #include <$ac_header>
16628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } >/dev/null; then
16636 if test -s conftest.err; then
16637 ac_cpp_err=$ac_c_preproc_warn_flag
16638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16645 if test -z "$ac_cpp_err"; then
16646 ac_header_preproc=yes
16648 echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16651 ac_header_preproc=no
16653 rm -f conftest.err conftest.$ac_ext
16654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16655 echo "${ECHO_T}$ac_header_preproc" >&6
16657 # So? What about this header?
16658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16664 ac_header_preproc=yes
16667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16681 ## ------------------------------- ##
16682 ## Report this to root@mput.dip.jp ##
16683 ## ------------------------------- ##
16686 sed "s/^/$as_me: WARNING: /" >&2
16689 echo "$as_me:$LINENO: checking for $ac_header" >&5
16690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 eval "$as_ac_Header=\$ac_header_preproc"
16696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16701 cat >>confdefs.h <<_ACEOF
16702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16711 case "x$enable_slang" in
16713 cat >> confdefs.h <<EOF
16721 ENABLE_SLANG_FALSE='#'
16723 ENABLE_SLANG_TRUE='#'
16724 ENABLE_SLANG_FALSE=
16727 LIBS="$LIBS -lslang"
16728 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16732 dynamic_targets="$dynamic_targets if_slang.\$(so)"
16733 s_so_libs="-lslang"
16734 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16735 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16736 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16739 ac_check_lib_save_LIBS=$LIBS
16740 LIBS="-ltermcap $LIBS"
16741 cat >conftest.$ac_ext <<_ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16748 /* Override any gcc2 internal prototype to avoid an error. */
16752 /* We use char because int might match the return type of a gcc2
16753 builtin and then its argument prototype would still apply. */
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765 (eval $ac_link) 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest$ac_exeext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_lib_termcap_initscr=yes
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16790 ac_cv_lib_termcap_initscr=no
16792 rm -f conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794 LIBS=$ac_check_lib_save_LIBS
16796 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16797 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16798 if test $ac_cv_lib_termcap_initscr = yes; then
16799 s_so_libs="$s_so_libs -ltermcap"
16815 ENABLE_MOTIF_FALSE='#'
16817 ENABLE_MOTIF_TRUE='#'
16818 ENABLE_MOTIF_FALSE=
16821 # Check whether --enable-motif or --disable-motif was given.
16822 if test "${enable_motif+set}" = set; then
16823 enableval="$enable_motif"
16824 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
16825 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16826 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16827 { (exit 1); exit 1; }; }
16829 if test "x$have_xm" != xyes; then
16830 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16831 echo "$as_me: WARNING: Motif library is not found." >&2;}
16836 case "x$enable_motif" in
16838 cat >> confdefs.h <<EOF
16846 ENABLE_MOTIF_FALSE='#'
16848 ENABLE_MOTIF_TRUE='#'
16849 ENABLE_MOTIF_FALSE=
16854 lib_xext_opt=-lXext
16855 if test "x$have_xprelibs" = xyes; then
16856 lib_xprelibs_opt='-lSM -lICE'
16858 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16862 dynamic_targets="$dynamic_targets if_motif.\$(so)"
16863 if test x$have_xprelibs = xyes; then
16864 m_so_libs="-lXext -lSM -lICE"
16866 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16880 ENABLE_TCLTK_FALSE='#'
16882 ENABLE_TCLTK_TRUE='#'
16883 ENABLE_TCLTK_FALSE=
16886 # Check whether --enable-tcltk or --disable-tcltk was given.
16887 if test "${enable_tcltk+set}" = set; then
16888 enableval="$enable_tcltk"
16889 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
16890 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16891 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16892 { (exit 1); exit 1; }; }
16895 KEEPCPPFLAGS=$CPPFLAGS
16896 KEEPLDFLAGS=$LDFLAGS
16899 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16900 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16901 LIBS="$LIBS $lib_dl_opt"
16905 for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16906 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16907 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16908 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16909 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 ac_check_lib_save_LIBS=$LIBS
16914 cat >conftest.$ac_ext <<_ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16921 /* Override any gcc2 internal prototype to avoid an error. */
16925 /* We use char because int might match the return type of a gcc2
16926 builtin and then its argument prototype would still apply. */
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag"
16946 || test ! -s conftest.err'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest$ac_exeext'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 eval "$as_ac_Lib=yes"
16960 echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16963 eval "$as_ac_Lib=no"
16965 rm -f conftest.err conftest.$ac_objext \
16966 conftest$ac_exeext conftest.$ac_ext
16967 LIBS=$ac_check_lib_save_LIBS
16969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16970 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16971 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16976 LIBS="$LIBS $tcl_lib"
16977 for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16978 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16979 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16980 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16981 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 ac_check_lib_save_LIBS=$LIBS
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16993 /* Override any gcc2 internal prototype to avoid an error. */
16997 /* We use char because int might match the return type of a gcc2
16998 builtin and then its argument prototype would still apply. */
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17010 (eval $ac_link) 2>conftest.er1
17012 grep -v '^ *+' conftest.er1 >conftest.err
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try='test -z "$ac_c_werror_flag"
17018 || test ! -s conftest.err'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest$ac_exeext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 eval "$as_ac_Lib=yes"
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 eval "$as_ac_Lib=no"
17037 rm -f conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
17039 LIBS=$ac_check_lib_save_LIBS
17041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17042 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17043 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17050 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
17051 CPPFLAGS=$KEEPCPPFLAGS
17052 LDFLAGS=$KEEPLDFLAGS
17054 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
17055 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
17057 tcltk_dep='tclIndex'
17061 case "x$enable_tcltk" in
17063 cat >> confdefs.h <<EOF
17071 ENABLE_TCLTK_FALSE='#'
17073 ENABLE_TCLTK_TRUE='#'
17074 ENABLE_TCLTK_FALSE=
17077 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
17080 EXTRALIBS="$EXTRALIBS -lipc"
17083 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
17087 dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
17088 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
17091 k_so_libs="$k_so_libs -lipc"
17094 k_so_libs="$k_so_libs -lX11 -lm"
17105 if test "x$enable_tcltk" = "xdynamic"; then
17106 ENABLE_DYNAMIC_TCLTK_TRUE=
17107 ENABLE_DYNAMIC_TCLTK_FALSE='#'
17109 ENABLE_DYNAMIC_TCLTK_TRUE='#'
17110 ENABLE_DYNAMIC_TCLTK_FALSE=
17118 ENABLE_EMACS_FALSE='#'
17120 ENABLE_EMACS_TRUE='#'
17121 ENABLE_EMACS_FALSE=
17124 # Check whether --enable-emacs or --disable-emacs was given.
17125 if test "${enable_emacs+set}" = set; then
17126 enableval="$enable_emacs"
17127 case "x$enable_emacs" in xyes|xdynamic) ;; esac
17129 case "x$enable_emacs" in
17131 cat >> confdefs.h <<EOF
17139 ENABLE_EMACS_FALSE='#'
17141 ENABLE_EMACS_TRUE='#'
17142 ENABLE_EMACS_FALSE=
17145 ELFILES="$ELFILES timidity.el"
17146 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
17150 dynamic_targets="$dynamic_targets if_emacs.\$(so)"
17151 ELFILES="$ELFILES timidity.el"
17164 ENABLE_VT100_FALSE='#'
17166 ENABLE_VT100_TRUE='#'
17167 ENABLE_VT100_FALSE=
17170 # Check whether --enable-vt100 or --disable-vt100 was given.
17171 if test "${enable_vt100+set}" = set; then
17172 enableval="$enable_vt100"
17173 case "x$enable_vt100" in xyes|xdynamic) ;; esac
17175 case "x$enable_vt100" in
17177 cat >> confdefs.h <<EOF
17185 ENABLE_VT100_FALSE='#'
17187 ENABLE_VT100_TRUE='#'
17188 ENABLE_VT100_FALSE=
17191 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
17194 dynamic_targets="$dynamic_targets if_vt100.\$(so)"
17208 ENABLE_XAW_FALSE='#'
17210 ENABLE_XAW_TRUE='#'
17214 # Check whether --enable-xaw or --disable-xaw was given.
17215 if test "${enable_xaw+set}" = set; then
17216 enableval="$enable_xaw"
17217 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
17218 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
17219 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
17220 { (exit 1); exit 1; }; }
17222 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
17223 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
17224 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
17228 case "x$enable_xaw" in
17230 cat >> confdefs.h <<EOF
17238 ENABLE_XAW_FALSE='#'
17240 ENABLE_XAW_TRUE='#'
17244 if test "x$have_xext" = xyes; then
17245 lib_xext_opt=-lXext
17247 if test "x$have_xprelibs" = xyes; then
17248 lib_xprelibs_opt='-lSM -lICE'
17252 if test "x$have_xaw" = x3d; then
17254 cat >>confdefs.h <<\_ACEOF
17258 lib_xaw_opt=-lXaw3d
17262 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
17266 dynamic_targets="$dynamic_targets if_xaw.\$(so)"
17267 if test "x$have_xext" = xyes; then
17268 a_so_libs="-lXext -lX11"
17274 a_so_libs="$a_so_libs -lcc_dynamic"
17277 if test "x$have_xprelibs" = xyes; then
17278 a_so_libs="-lSM -lICE $a_so_libs"
17280 if test "x$have_xaw" = xyes; then
17281 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
17282 elif test "x$have_xaw" = x3d; then
17284 cat >>confdefs.h <<\_ACEOF
17288 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
17290 a_so_libs="$ldflags_x_opt $a_so_libs"
17301 if test "x$enable_xaw" = "xdynamic"; then
17302 ENABLE_DYNAMIC_XAW_TRUE=
17303 ENABLE_DYNAMIC_XAW_FALSE='#'
17305 ENABLE_DYNAMIC_XAW_TRUE='#'
17306 ENABLE_DYNAMIC_XAW_FALSE=
17314 ENABLE_XSKIN_FALSE='#'
17316 ENABLE_XSKIN_TRUE='#'
17317 ENABLE_XSKIN_FALSE=
17320 # Check whether --enable-xskin or --disable-xskin was given.
17321 if test "${enable_xskin+set}" = set; then
17322 enableval="$enable_xskin"
17323 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
17324 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17325 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17326 { (exit 1); exit 1; }; }
17330 case "x$enable_xskin" in
17332 cat >> confdefs.h <<EOF
17340 ENABLE_XSKIN_FALSE='#'
17342 ENABLE_XSKIN_TRUE='#'
17343 ENABLE_XSKIN_FALSE=
17346 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17349 dynamic_targets="$dynamic_targets if_xskin.\$(so)"
17350 i_so_libs="$ldflags_x_opt -lX11"
17363 ENABLE_GTK_FALSE='#'
17365 ENABLE_GTK_TRUE='#'
17369 # Check whether --enable-gtk or --disable-gtk was given.
17370 if test "${enable_gtk+set}" = set; then
17371 enableval="$enable_gtk"
17372 case "x$enable_gtk" in xyes|xdynamic) # Check whether --enable-gtktest or --disable-gtktest was given.
17373 if test "${enable_gtktest+set}" = set; then
17374 enableval="$enable_gtktest"
17380 pkg_config_args=gtk+-2.0
17385 pkg_config_args="$pkg_config_args gthread-2.0"
17392 # Extract the first word of "pkg-config", so it can be a program name with args.
17393 set dummy pkg-config; ac_word=$2
17394 echo "$as_me:$LINENO: checking for $ac_word" >&5
17395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17396 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 case $PKG_CONFIG in
17401 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17405 for as_dir in $PATH
17408 test -z "$as_dir" && as_dir=.
17409 for ac_exec_ext in '' $ac_executable_extensions; do
17410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17411 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17418 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17422 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17424 if test -n "$PKG_CONFIG"; then
17425 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17426 echo "${ECHO_T}$PKG_CONFIG" >&6
17428 echo "$as_me:$LINENO: result: no" >&5
17429 echo "${ECHO_T}no" >&6
17433 if test x$PKG_CONFIG != xno ; then
17434 if pkg-config --atleast-pkgconfig-version 0.7 ; then
17437 echo *** pkg-config too old; version 0.7 or better required.
17445 min_gtk_version=2.0.0
17446 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17447 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
17449 if test x$PKG_CONFIG != xno ; then
17450 ## don't try to run the test against uninstalled libtool libs
17451 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17452 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17456 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17463 if test x"$no_gtk" = x ; then
17464 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17465 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17466 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17467 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17468 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17469 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17470 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17471 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17472 if test "x$enable_gtktest" = "xyes" ; then
17473 ac_save_CFLAGS="$CFLAGS"
17474 ac_save_LIBS="$LIBS"
17475 CFLAGS="$CFLAGS $GTK_CFLAGS"
17476 LIBS="$GTK_LIBS $LIBS"
17478 if test "$cross_compiling" = yes; then
17479 echo $ac_n "cross compiling; assumed OK... $ac_c"
17481 cat >conftest.$ac_ext <<_ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17488 #include <gtk/gtk.h>
17490 #include <stdlib.h>
17495 int major, minor, micro;
17498 system ("touch conf.gtktest");
17500 /* HP/UX 9 (%@#!) writes to sscanf strings */
17501 tmp_version = g_strdup("$min_gtk_version");
17502 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17503 printf("%s, bad version string\n", "$min_gtk_version");
17507 if ((gtk_major_version != $gtk_config_major_version) ||
17508 (gtk_minor_version != $gtk_config_minor_version) ||
17509 (gtk_micro_version != $gtk_config_micro_version))
17511 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17512 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17513 gtk_major_version, gtk_minor_version, gtk_micro_version);
17514 printf ("*** was found! If pkg-config was correct, then it is best\n");
17515 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17516 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17517 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17518 printf("*** required on your system.\n");
17519 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17520 printf("*** to point to the correct configuration files\n");
17522 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17523 (gtk_minor_version != GTK_MINOR_VERSION) ||
17524 (gtk_micro_version != GTK_MICRO_VERSION))
17526 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17527 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17528 printf("*** library (version %d.%d.%d)\n",
17529 gtk_major_version, gtk_minor_version, gtk_micro_version);
17533 if ((gtk_major_version > major) ||
17534 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17535 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17541 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17542 gtk_major_version, gtk_minor_version, gtk_micro_version);
17543 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17544 major, minor, micro);
17545 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17547 printf("*** If you have already installed a sufficiently new version, this error\n");
17548 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17549 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17550 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17551 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17552 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17553 printf("*** so that the correct libraries are found at run-time))\n");
17560 rm -f conftest$ac_exeext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17573 echo "$as_me: program exited with status $ac_status" >&5
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 ( exit $ac_status )
17580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17582 CFLAGS="$ac_save_CFLAGS"
17583 LIBS="$ac_save_LIBS"
17586 if test "x$no_gtk" = x ; then
17587 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17588 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
17590 cat >>confdefs.h <<\_ACEOF
17591 #define HAVE_GTK_2 1
17595 echo "$as_me:$LINENO: result: no" >&5
17596 echo "${ECHO_T}no" >&6
17597 if test "$PKG_CONFIG" = "no" ; then
17598 echo "*** A new enough version of pkg-config was not found."
17599 echo "*** See http://pkgconfig.sourceforge.net"
17601 if test -f conf.gtktest ; then
17604 echo "*** Could not run GTK+ test program, checking why..."
17605 ac_save_CFLAGS="$CFLAGS"
17606 ac_save_LIBS="$LIBS"
17607 CFLAGS="$CFLAGS $GTK_CFLAGS"
17608 LIBS="$LIBS $GTK_LIBS"
17609 cat >conftest.$ac_ext <<_ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17616 #include <gtk/gtk.h>
17622 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>conftest.er1
17631 grep -v '^ *+' conftest.er1 >conftest.err
17633 cat conftest.err >&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } &&
17636 { ac_try='test -z "$ac_c_werror_flag"
17637 || test ! -s conftest.err'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest$ac_exeext'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 echo "*** The test program compiled, but did not run. This usually means"
17650 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17651 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17652 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17653 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17654 echo "*** is required on your system"
17656 echo "*** If you have an old version installed, it is best to remove it, although"
17657 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 echo "*** The test program failed to compile or link. See the file config.log for the"
17663 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17665 rm -f conftest.err conftest.$ac_objext \
17666 conftest$ac_exeext conftest.$ac_ext
17667 CFLAGS="$ac_save_CFLAGS"
17668 LIBS="$ac_save_LIBS"
17674 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17675 if test "${with_gtk_prefix+set}" = set; then
17676 withval="$with_gtk_prefix"
17677 gtk_config_prefix="$withval"
17679 gtk_config_prefix=""
17682 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17683 if test "${with_gtk_exec_prefix+set}" = set; then
17684 withval="$with_gtk_exec_prefix"
17685 gtk_config_exec_prefix="$withval"
17687 gtk_config_exec_prefix=""
17689 # Check whether --enable-gtktest or --disable-gtktest was given.
17690 if test "${enable_gtktest+set}" = set; then
17691 enableval="$enable_gtktest"
17701 gtk_config_args="$gtk_config_args gthread"
17706 if test x$gtk_config_exec_prefix != x ; then
17707 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17708 if test x${GTK_CONFIG+set} != xset ; then
17709 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17712 if test x$gtk_config_prefix != x ; then
17713 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17714 if test x${GTK_CONFIG+set} != xset ; then
17715 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17719 # Extract the first word of "gtk-config", so it can be a program name with args.
17720 set dummy gtk-config; ac_word=$2
17721 echo "$as_me:$LINENO: checking for $ac_word" >&5
17722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17723 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 case $GTK_CONFIG in
17728 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17732 for as_dir in $PATH
17735 test -z "$as_dir" && as_dir=.
17736 for ac_exec_ext in '' $ac_executable_extensions; do
17737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17738 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17745 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17749 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17751 if test -n "$GTK_CONFIG"; then
17752 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17753 echo "${ECHO_T}$GTK_CONFIG" >&6
17755 echo "$as_me:$LINENO: result: no" >&5
17756 echo "${ECHO_T}no" >&6
17759 min_gtk_version=1.1.3
17760 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17761 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17763 if test "$GTK_CONFIG" = "no" ; then
17766 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17767 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17768 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17770 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17771 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17772 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17773 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17774 if test "x$enable_gtktest" = "xyes" ; then
17775 ac_save_CFLAGS="$CFLAGS"
17776 ac_save_LIBS="$LIBS"
17777 CFLAGS="$CFLAGS $GTK_CFLAGS"
17778 LIBS="$GTK_LIBS $LIBS"
17780 if test "$cross_compiling" = yes; then
17781 echo $ac_n "cross compiling; assumed OK... $ac_c"
17783 cat >conftest.$ac_ext <<_ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17790 #include <gtk/gtk.h>
17792 #include <stdlib.h>
17797 int major, minor, micro;
17800 system ("touch conf.gtktest");
17802 /* HP/UX 9 (%@#!) writes to sscanf strings */
17803 tmp_version = g_strdup("$min_gtk_version");
17804 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17805 printf("%s, bad version string\n", "$min_gtk_version");
17809 if ((gtk_major_version != $gtk_config_major_version) ||
17810 (gtk_minor_version != $gtk_config_minor_version) ||
17811 (gtk_micro_version != $gtk_config_micro_version))
17813 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17814 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17815 gtk_major_version, gtk_minor_version, gtk_micro_version);
17816 printf ("*** was found! If gtk-config was correct, then it is best\n");
17817 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17818 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17819 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17820 printf("*** required on your system.\n");
17821 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17822 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17823 printf("*** before re-running configure\n");
17825 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17826 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17827 (gtk_minor_version != GTK_MINOR_VERSION) ||
17828 (gtk_micro_version != GTK_MICRO_VERSION))
17830 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17831 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17832 printf("*** library (version %d.%d.%d)\n",
17833 gtk_major_version, gtk_minor_version, gtk_micro_version);
17835 #endif /* defined (GTK_MAJOR_VERSION) ... */
17838 if ((gtk_major_version > major) ||
17839 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17840 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17846 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17847 gtk_major_version, gtk_minor_version, gtk_micro_version);
17848 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17849 major, minor, micro);
17850 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17852 printf("*** If you have already installed a sufficiently new version, this error\n");
17853 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17854 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17855 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17856 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17857 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17858 printf("*** so that the correct libraries are found at run-time))\n");
17865 rm -f conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17878 echo "$as_me: program exited with status $ac_status" >&5
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17882 ( exit $ac_status )
17885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17887 CFLAGS="$ac_save_CFLAGS"
17888 LIBS="$ac_save_LIBS"
17891 if test "x$no_gtk" = x ; then
17892 echo "$as_me:$LINENO: result: yes" >&5
17893 echo "${ECHO_T}yes" >&6
17896 echo "$as_me:$LINENO: result: no" >&5
17897 echo "${ECHO_T}no" >&6
17898 if test "$GTK_CONFIG" = "no" ; then
17899 echo "*** The gtk-config script installed by GTK could not be found"
17900 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17901 echo "*** your path, or set the GTK_CONFIG environment variable to the"
17902 echo "*** full path to gtk-config."
17904 if test -f conf.gtktest ; then
17907 echo "*** Could not run GTK test program, checking why..."
17908 CFLAGS="$CFLAGS $GTK_CFLAGS"
17909 LIBS="$LIBS $GTK_LIBS"
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17917 #include <gtk/gtk.h>
17923 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17930 (eval $ac_link) 2>conftest.er1
17932 grep -v '^ *+' conftest.er1 >conftest.err
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_c_werror_flag"
17938 || test ! -s conftest.err'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest$ac_exeext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 echo "*** The test program compiled, but did not run. This usually means"
17951 echo "*** that the run-time linker is not finding GTK or finding the wrong"
17952 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17953 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17954 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17955 echo "*** is required on your system"
17957 echo "*** If you have an old version installed, it is best to remove it, although"
17958 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17960 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17961 echo "*** came with the system with the command"
17963 echo "*** rpm --erase --nodeps gtk gtk-devel"
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 echo "*** The test program failed to compile or link. See the file config.log for the"
17969 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17970 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17971 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17973 rm -f conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
17975 CFLAGS="$ac_save_CFLAGS"
17976 LIBS="$ac_save_LIBS"
17993 case "x$enable_gtk" in
17995 cat >> confdefs.h <<EOF
18003 ENABLE_GTK_FALSE='#'
18005 ENABLE_GTK_TRUE='#'
18009 LIBS="$LIBS $GTK_LIBS"
18010 for f in $GTK_CFLAGS; do
18012 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
18013 *) CFLAGS="$CPPFLAGS $f" ;;
18017 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
18021 dynamic_targets="$dynamic_targets if_gtk.\$(so)"
18022 if test "x$GCC" = xyes; then
18023 for i in $GTK_LIBS; do
18026 *) g_so_libs="$g_so_libs $i" ;;
18030 g_so_libs="$GTK_LIBS"
18032 for f in $GTK_CFLAGS; do
18034 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
18035 *) CFLAGS="$CPPFLAGS $f" ;;
18050 ENABLE_SERVER_TRUE=
18051 ENABLE_SERVER_FALSE='#'
18053 ENABLE_SERVER_TRUE='#'
18054 ENABLE_SERVER_FALSE=
18057 # Check whether --enable-server or --disable-server was given.
18058 if test "${enable_server+set}" = set; then
18059 enableval="$enable_server"
18060 case "x$enable_server" in xyes|xdynamic) ;; esac
18062 case "x$enable_server" in
18064 cat >> confdefs.h <<EOF
18065 #define IA_SERVER 1
18071 ENABLE_SERVER_TRUE=
18072 ENABLE_SERVER_FALSE='#'
18074 ENABLE_SERVER_TRUE='#'
18075 ENABLE_SERVER_FALSE=
18078 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
18080 for ac_header in sys/soundcard.h
18082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18084 echo "$as_me:$LINENO: checking for $ac_header" >&5
18085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18092 # Is the header compilable?
18093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18095 cat >conftest.$ac_ext <<_ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 $ac_includes_default
18102 #include <$ac_header>
18104 rm -f conftest.$ac_objext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18106 (eval $ac_compile) 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag"
18114 || test ! -s conftest.err'
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest.$ac_objext'
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 ac_header_compiler=yes
18128 echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18131 ac_header_compiler=no
18133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18135 echo "${ECHO_T}$ac_header_compiler" >&6
18137 # Is the header present?
18138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18140 cat >conftest.$ac_ext <<_ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18146 #include <$ac_header>
18148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18151 grep -v '^ *+' conftest.er1 >conftest.err
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } >/dev/null; then
18156 if test -s conftest.err; then
18157 ac_cpp_err=$ac_c_preproc_warn_flag
18158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18165 if test -z "$ac_cpp_err"; then
18166 ac_header_preproc=yes
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_header_preproc=no
18173 rm -f conftest.err conftest.$ac_ext
18174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18175 echo "${ECHO_T}$ac_header_preproc" >&6
18177 # So? What about this header?
18178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18184 ac_header_preproc=yes
18187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18201 ## ------------------------------- ##
18202 ## Report this to root@mput.dip.jp ##
18203 ## ------------------------------- ##
18206 sed "s/^/$as_me: WARNING: /" >&2
18209 echo "$as_me:$LINENO: checking for $ac_header" >&5
18210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 eval "$as_ac_Header=\$ac_header_preproc"
18216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18221 cat >>confdefs.h <<_ACEOF
18222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18232 dynamic_targets="$dynamic_targets if_server.\$(so)"
18245 ENABLE_ALSASEQ_TRUE=
18246 ENABLE_ALSASEQ_FALSE='#'
18248 ENABLE_ALSASEQ_TRUE='#'
18249 ENABLE_ALSASEQ_FALSE=
18252 # Check whether --enable-alsaseq or --disable-alsaseq was given.
18253 if test "${enable_alsaseq+set}" = set; then
18254 enableval="$enable_alsaseq"
18255 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
18257 case "x$enable_alsaseq" in
18259 cat >> confdefs.h <<EOF
18260 #define IA_ALSASEQ 1
18266 ENABLE_ALSASEQ_TRUE=
18267 ENABLE_ALSASEQ_FALSE='#'
18269 ENABLE_ALSASEQ_TRUE='#'
18270 ENABLE_ALSASEQ_FALSE=
18273 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
18274 alsa_save_CFLAGS="$CFLAGS"
18275 alsa_save_LDFLAGS="$LDFLAGS"
18276 alsa_save_LIBS="$LIBS"
18280 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
18281 if test "${with_alsa_prefix+set}" = set; then
18282 withval="$with_alsa_prefix"
18283 alsa_prefix="$withval"
18289 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
18290 if test "${with_alsa_inc_prefix+set}" = set; then
18291 withval="$with_alsa_inc_prefix"
18292 alsa_inc_prefix="$withval"
18297 # Check whether --enable-alsatest or --disable-alsatest was given.
18298 if test "${enable_alsatest+set}" = set; then
18299 enableval="$enable_alsatest"
18302 enable_alsatest=yes
18305 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
18306 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
18307 if test "$alsa_inc_prefix" != "" ; then
18308 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18309 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18311 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
18312 echo "${ECHO_T}$ALSA_CFLAGS" >&6
18314 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
18315 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
18316 if test "$alsa_prefix" != "" ; then
18317 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18318 LDFLAGS="$LDFLAGS $ALSA_LIBS"
18321 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18322 LIBS=`echo $LIBS | sed 's/-lm//'`
18323 LIBS=`echo $LIBS | sed 's/-ldl//'`
18324 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18325 LIBS=`echo $LIBS | sed 's/ //'`
18326 LIBS="$ALSA_LIBS $LIBS"
18327 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
18328 echo "${ECHO_T}$ALSA_LIBS" >&6
18330 min_alsa_version=0.1.1
18331 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
18332 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
18334 alsa_min_major_version=`echo $min_alsa_version | \
18335 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18336 alsa_min_minor_version=`echo $min_alsa_version | \
18337 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18338 alsa_min_micro_version=`echo $min_alsa_version | \
18339 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18345 ac_cpp='$CPP $CPPFLAGS'
18346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18357 #include <alsa/asoundlib.h>
18363 /* ensure backward compatibility */
18364 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18365 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18367 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18368 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18370 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18371 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18374 # if(SND_LIB_MAJOR > $alsa_min_major_version)
18377 # if(SND_LIB_MAJOR < $alsa_min_major_version)
18378 # error not present
18381 # if(SND_LIB_MINOR > $alsa_min_minor_version)
18384 # if(SND_LIB_MINOR < $alsa_min_minor_version)
18385 # error not present
18388 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18389 # error not present
18399 rm -f conftest.$ac_objext
18400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18401 (eval $ac_compile) 2>conftest.er1
18403 grep -v '^ *+' conftest.er1 >conftest.err
18405 cat conftest.err >&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } &&
18408 { ac_try='test -z "$ac_c_werror_flag"
18409 || test ! -s conftest.err'
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest.$ac_objext'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 echo "$as_me:$LINENO: result: found." >&5
18422 echo "${ECHO_T}found." >&6
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18427 cat >conftest.$ac_ext <<_ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18434 #include <sys/asoundlib.h>
18440 /* ensure backward compatibility */
18441 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18442 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18444 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18445 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18447 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18448 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18451 # if(SND_LIB_MAJOR > $alsa_min_major_version)
18454 # if(SND_LIB_MAJOR < $alsa_min_major_version)
18455 # error not present
18458 # if(SND_LIB_MINOR > $alsa_min_minor_version)
18461 # if(SND_LIB_MINOR < $alsa_min_minor_version)
18462 # error not present
18465 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18466 # error not present
18476 rm -f conftest.$ac_objext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18478 (eval $ac_compile) 2>conftest.er1
18480 grep -v '^ *+' conftest.er1 >conftest.err
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try='test -z "$ac_c_werror_flag"
18486 || test ! -s conftest.err'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; } &&
18492 { ac_try='test -s conftest.$ac_objext'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; }; then
18498 echo "$as_me:$LINENO: result: found." >&5
18499 echo "${ECHO_T}found." >&6
18501 echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18504 echo "$as_me:$LINENO: result: not present." >&5
18505 echo "${ECHO_T}not present." >&6
18506 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18507 echo "${ECHO_T}libasound was not found anywhere." >&6
18510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18511 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18512 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18517 ac_cpp='$CPP $CPPFLAGS'
18518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18524 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18525 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18526 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 ac_check_lib_save_LIBS=$LIBS
18530 LIBS="-lasound $LIBS"
18531 cat >conftest.$ac_ext <<_ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18538 /* Override any gcc2 internal prototype to avoid an error. */
18542 /* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
18544 char snd_ctl_open ();
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18555 (eval $ac_link) 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_c_werror_flag"
18563 || test ! -s conftest.err'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; } &&
18569 { ac_try='test -s conftest$ac_exeext'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; }; then
18575 ac_cv_lib_asound_snd_ctl_open=yes
18577 echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18580 ac_cv_lib_asound_snd_ctl_open=no
18582 rm -f conftest.err conftest.$ac_objext \
18583 conftest$ac_exeext conftest.$ac_ext
18584 LIBS=$ac_check_lib_save_LIBS
18586 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18587 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18588 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18589 cat >>confdefs.h <<_ACEOF
18590 #define HAVE_LIBASOUND 1
18593 LIBS="-lasound $LIBS"
18596 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18597 echo "${ECHO_T}No linkable libasound was found." >&6
18603 if test "x$alsa_found" = "xyes" ; then
18605 LIBS=`echo $LIBS | sed 's/-lasound//g'`
18606 LIBS=`echo $LIBS | sed 's/ //'`
18607 LIBS="-lasound $LIBS"
18610 CFLAGS="$alsa_save_CFLAGS"
18611 LDFLAGS="$alsa_save_LDFLAGS"
18612 LIBS="$alsa_save_LIBS"
18623 dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
18636 ENABLE_WINSYN_TRUE=
18637 ENABLE_WINSYN_FALSE='#'
18639 ENABLE_WINSYN_TRUE='#'
18640 ENABLE_WINSYN_FALSE=
18643 # Check whether --enable-winsyn or --disable-winsyn was given.
18644 if test "${enable_winsyn+set}" = set; then
18645 enableval="$enable_winsyn"
18646 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
18648 case "x$enable_winsyn" in
18650 cat >> confdefs.h <<EOF
18651 #define IA_WINSYN 1
18657 ENABLE_WINSYN_TRUE=
18658 ENABLE_WINSYN_FALSE='#'
18660 ENABLE_WINSYN_TRUE='#'
18661 ENABLE_WINSYN_FALSE=
18664 WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18667 dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
18680 ENABLE_PORTMIDISYN_TRUE=
18681 ENABLE_PORTMIDISYN_FALSE='#'
18683 ENABLE_PORTMIDISYN_TRUE='#'
18684 ENABLE_PORTMIDISYN_FALSE=
18687 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18688 if test "${enable_portmidisyn+set}" = set; then
18689 enableval="$enable_portmidisyn"
18690 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
18692 case "x$enable_portmidisyn" in
18694 cat >> confdefs.h <<EOF
18695 #define IA_PORTMIDISYN 1
18701 ENABLE_PORTMIDISYN_TRUE=
18702 ENABLE_PORTMIDISYN_FALSE='#'
18704 ENABLE_PORTMIDISYN_TRUE='#'
18705 ENABLE_PORTMIDISYN_FALSE=
18708 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18711 dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
18724 ENABLE_W32G_SYN_TRUE=
18725 ENABLE_W32G_SYN_FALSE='#'
18727 ENABLE_W32G_SYN_TRUE='#'
18728 ENABLE_W32G_SYN_FALSE=
18731 # Check whether --enable-winsyng or --disable-winsyng was given.
18732 if test "${enable_winsyng+set}" = set; then
18733 enableval="$enable_winsyng"
18734 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
18736 case "x$enable_winsyng" in
18738 cat >> confdefs.h <<EOF
18739 #define IA_W32G_SYN 1
18745 ENABLE_W32G_SYN_TRUE=
18746 ENABLE_W32G_SYN_FALSE='#'
18748 ENABLE_W32G_SYN_TRUE='#'
18749 ENABLE_W32G_SYN_FALSE=
18754 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
18755 INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18756 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18757 lib_user32_opt='user32.lib'
18758 if test "x$VCPP" = xyes; then
18759 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18761 if test "x$BORLANDC" = xyes; then
18762 BORLANDC_START='C0W32.OBJ'
18763 CFLAGS="$CFLAGS -tW"
18764 lib_w32gui_opt="-aa $lib_w32gui_opt"
18766 if test "x$WATCOM_C" = xyes; then
18767 CFLAGS="$CFLAGS -bw"
18768 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18770 if test "x$DMC" = xyes; then
18772 lib_w32gui_opt="$lib_w32gui_opt -L/exet:nt/su:windows:4.0"
18775 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18776 lib_user32_opt='-luser32'
18777 LDFLAGS="-mwindows $LDFLAGS"
18778 INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn_escaped.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18783 dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
18797 ENABLE_W32GUI_TRUE=
18798 ENABLE_W32GUI_FALSE='#'
18800 ENABLE_W32GUI_TRUE='#'
18801 ENABLE_W32GUI_FALSE=
18804 # Check whether --enable-w32gui or --disable-w32gui was given.
18805 if test "${enable_w32gui+set}" = set; then
18806 enableval="$enable_w32gui"
18807 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
18809 case "x$enable_w32gui" in
18811 cat >> confdefs.h <<EOF
18812 #define IA_W32GUI 1
18818 ENABLE_W32GUI_TRUE=
18819 ENABLE_W32GUI_FALSE='#'
18821 ENABLE_W32GUI_TRUE='#'
18822 ENABLE_W32GUI_FALSE=
18827 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
18828 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c wrdt_w32g.c w32g_mag.c"
18829 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18830 lib_user32_opt='user32.lib'
18831 if test "x$VCPP" = xyes; then
18832 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18834 if test "x$BORLANDC" = xyes; then
18835 BORLANDC_START='C0W32.OBJ'
18836 CFLAGS="$CFLAGS -tW"
18837 lib_w32gui_opt="-aa $lib_w32gui_opt"
18839 if test "x$WATCOM_C" = xyes; then
18840 CFLAGS="$CFLAGS -bw"
18841 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18843 if test "x$DMC" = xyes; then
18844 lib_w32gui_opt="$lib_w32gui_opt -L/SU:window"
18848 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18849 lib_user32_opt='-luser32'
18850 LDFLAGS="-mwindows $LDFLAGS"
18851 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin_escaped.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c wrdt_w32g.c w32g_mag.c"
18856 dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
18869 ENABLE_PLUGIN_TRUE=
18870 ENABLE_PLUGIN_FALSE='#'
18872 ENABLE_PLUGIN_TRUE='#'
18873 ENABLE_PLUGIN_FALSE=
18876 # Check whether --enable-ump or --disable-ump was given.
18877 if test "${enable_ump+set}" = set; then
18878 enableval="$enable_ump"
18879 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
18880 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
18881 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
18882 { (exit 1); exit 1; }; }
18884 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18885 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18886 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18887 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18891 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18893 # Is the header compilable?
18894 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18895 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 $ac_includes_default
18903 #include <X11/xpm.h>
18905 rm -f conftest.$ac_objext
18906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18907 (eval $ac_compile) 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -z "$ac_c_werror_flag"
18915 || test ! -s conftest.err'
18916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917 (eval $ac_try) 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest.$ac_objext'
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; }; then
18927 ac_header_compiler=yes
18929 echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18932 ac_header_compiler=no
18934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18936 echo "${ECHO_T}$ac_header_compiler" >&6
18938 # Is the header present?
18939 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18940 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18941 cat >conftest.$ac_ext <<_ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 #include <X11/xpm.h>
18949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } >/dev/null; then
18957 if test -s conftest.err; then
18958 ac_cpp_err=$ac_c_preproc_warn_flag
18959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18966 if test -z "$ac_cpp_err"; then
18967 ac_header_preproc=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_header_preproc=no
18974 rm -f conftest.err conftest.$ac_ext
18975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18976 echo "${ECHO_T}$ac_header_preproc" >&6
18978 # So? What about this header?
18979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18981 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18982 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18983 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18984 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18985 ac_header_preproc=yes
18988 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18989 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18990 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
18991 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
18992 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18993 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18994 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
18995 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18996 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18997 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18998 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18999 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
19002 ## ------------------------------- ##
19003 ## Report this to root@mput.dip.jp ##
19004 ## ------------------------------- ##
19007 sed "s/^/$as_me: WARNING: /" >&2
19010 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
19011 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
19012 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 ac_cv_header_X11_xpm_h=$ac_header_preproc
19017 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
19018 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
19021 if test $ac_cv_header_X11_xpm_h = yes; then
19024 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
19025 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
19026 { (exit 1); exit 1; }; }
19030 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
19031 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
19032 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 ac_check_lib_save_LIBS=$LIBS
19037 cat >conftest.$ac_ext <<_ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19044 /* Override any gcc2 internal prototype to avoid an error. */
19048 /* We use char because int might match the return type of a gcc2
19049 builtin and then its argument prototype would still apply. */
19050 char XpmCreatePixmapFromData ();
19054 XpmCreatePixmapFromData ();
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061 (eval $ac_link) 2>conftest.er1
19063 grep -v '^ *+' conftest.er1 >conftest.err
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_c_werror_flag"
19069 || test ! -s conftest.err'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; } &&
19075 { ac_try='test -s conftest$ac_exeext'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
19088 rm -f conftest.err conftest.$ac_objext \
19089 conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_check_lib_save_LIBS
19092 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
19093 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
19094 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
19097 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
19098 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
19099 { (exit 1); exit 1; }; }
19102 if test "x$have_xext" = xyes; then
19103 lib_xext_opt=-lXext
19105 if test "x$have_xprelibs" = xyes; then
19106 lib_xprelibs_opt='-lSM -lICE'
19112 case "x$enable_ump" in
19114 cat >> confdefs.h <<EOF
19115 #define IA_PLUGIN 1
19121 ENABLE_PLUGIN_TRUE=
19122 ENABLE_PLUGIN_FALSE='#'
19124 ENABLE_PLUGIN_TRUE='#'
19125 ENABLE_PLUGIN_FALSE=
19131 dynamic_targets="$dynamic_targets if_ump.\$(so)"
19141 # Check whether --enable-windrv or --disable-windrv was given.
19142 if test "${enable_windrv+set}" = set; then
19143 enableval="$enable_windrv"
19144 if test "$enableval" = "yes"; then
19145 if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$DMC" != "xyes"; then
19146 { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom and Digital Mars" >&5
19147 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom and Digital Mars" >&2;}
19148 { (exit 1); exit 1; }; }
19149 elif test "x$WINSYN" != "xyes"; then
19150 { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
19151 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
19152 { (exit 1); exit 1; }; }
19155 cat >>confdefs.h <<\_ACEOF
19160 if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
19161 if test "x$DMC" = "xyes"; then DLLFLAG="-WD" ;fi
19162 CFLAGS="$CFLAGS -DANOTHER_MAIN "
19166 CFLAGS="$CFLAGS $DLLFLAG "
19168 # Check whether --enable-offix or --disable-offix was given.
19169 if test "${enable_offix+set}" = set; then
19170 enableval="$enable_offix"
19171 if test "$enableval" = "yes"; then
19172 KEEPCPPFLAGS=$CPPFLAGS
19174 KEEPLDFLAGS=$LDFLAGS
19175 CPPFLAGS="$CPPFLAGS $offix_include_dir"
19176 LDFLAGS="$LDFLAGS $offix_lib_dir"
19177 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
19178 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
19179 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
19180 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 ac_check_lib_save_LIBS=$LIBS
19185 cat >conftest.$ac_ext <<_ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19192 /* Override any gcc2 internal prototype to avoid an error. */
19196 /* We use char because int might match the return type of a gcc2
19197 builtin and then its argument prototype would still apply. */
19198 char DndInitialize ();
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209 (eval $ac_link) 2>conftest.er1
19211 grep -v '^ *+' conftest.er1 >conftest.err
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } &&
19216 { ac_try='test -z "$ac_c_werror_flag"
19217 || test ! -s conftest.err'
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; } &&
19223 { ac_try='test -s conftest$ac_exeext'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; }; then
19229 ac_cv_lib_Dnd_DndInitialize=yes
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_cv_lib_Dnd_DndInitialize=no
19236 rm -f conftest.err conftest.$ac_objext \
19237 conftest$ac_exeext conftest.$ac_ext
19238 LIBS=$ac_check_lib_save_LIBS
19240 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
19241 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
19242 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
19245 lib_offix_opt="-lDnd"
19247 cat >>confdefs.h <<\_ACEOF
19253 LDFLAGS=$KEEPLDFLAGS
19254 CPPFLAGS=$KEEPCPPFLAGS
19263 # Check whether --enable-network or --disable-network was given.
19264 if test "${enable_network+set}" = set; then
19265 enableval="$enable_network"
19266 if test "$enableval" = "yes"; then
19268 cat >>confdefs.h <<\_ACEOF
19269 #define SUPPORT_SOCKET 1
19276 if test "x$enable_network" = "xyes"; then
19277 ENABLE_NETWORK_TRUE=
19278 ENABLE_NETWORK_FALSE='#'
19280 ENABLE_NETWORK_TRUE='#'
19281 ENABLE_NETWORK_FALSE=
19285 # Check whether --enable-spectrogram or --disable-spectrogram was given.
19286 if test "${enable_spectrogram+set}" = set; then
19287 enableval="$enable_spectrogram"
19288 if test "$enableval" = "yes"; then
19289 if test "x$with_x" != xyes; then
19290 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
19291 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
19292 { (exit 1); exit 1; }; }
19295 cat >>confdefs.h <<\_ACEOF
19296 #define SUPPORT_SOUNDSPEC 1
19303 if test "x$enable_spectrogram" = "xyes"; then
19304 ENABLE_SOUND_SPEC_TRUE=
19305 ENABLE_SOUND_SPEC_FALSE='#'
19307 ENABLE_SOUND_SPEC_TRUE='#'
19308 ENABLE_SOUND_SPEC_FALSE=
19312 # Check whether --enable-spline or --disable-spline was given.
19313 if test "${enable_spline+set}" = set; then
19314 enableval="$enable_spline"
19315 case "x$enableval" in
19318 cat >>confdefs.h <<\_ACEOF
19319 #define DEFAULT_RESAMPLATION resample_linear
19325 cat >>confdefs.h <<\_ACEOF
19326 #define DEFAULT_RESAMPLATION resample_cspline
19332 cat >>confdefs.h <<\_ACEOF
19333 #define DEFAULT_RESAMPLATION resample_lagrange
19339 cat >>confdefs.h <<\_ACEOF
19340 #define DEFAULT_RESAMPLATION resample_newton
19346 cat >>confdefs.h <<\_ACEOF
19347 #define DEFAULT_RESAMPLATION resample_gauss
19353 cat >>confdefs.h <<\_ACEOF
19354 #define DEFAULT_RESAMPLATION resample_none
19359 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
19360 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
19361 { (exit 1); exit 1; }; }
19366 # Check whether --enable-wrd or --disable-wrd was given.
19367 if test "${enable_wrd+set}" = set; then
19368 enableval="$enable_wrd"
19369 if test "$enableval" = "yes"; then
19370 if test "x$with_x" != xyes; then
19371 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
19372 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
19373 { (exit 1); exit 1; }; }
19376 cat >>confdefs.h <<\_ACEOF
19380 enable_sherry_wrd=yes
19381 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
19382 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
19383 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 ac_check_lib_save_LIBS=$LIBS
19388 cat >conftest.$ac_ext <<_ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19395 /* Override any gcc2 internal prototype to avoid an error. */
19399 /* We use char because int might match the return type of a gcc2
19400 builtin and then its argument prototype would still apply. */
19401 char zlibVersion ();
19410 rm -f conftest.$ac_objext conftest$ac_exeext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19412 (eval $ac_link) 2>conftest.er1
19414 grep -v '^ *+' conftest.er1 >conftest.err
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
19419 { ac_try='test -z "$ac_c_werror_flag"
19420 || test ! -s conftest.err'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest$ac_exeext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_lib_z_zlibVersion=yes
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_lib_z_zlibVersion=no
19439 rm -f conftest.err conftest.$ac_objext \
19440 conftest$ac_exeext conftest.$ac_ext
19441 LIBS=$ac_check_lib_save_LIBS
19443 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
19444 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
19445 if test $ac_cv_lib_z_zlibVersion = yes; then
19448 enable_sherry_wrd=no
19451 if test "${ac_cv_header_png_h+set}" = set; then
19452 echo "$as_me:$LINENO: checking for png.h" >&5
19453 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19454 if test "${ac_cv_header_png_h+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19458 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19460 # Is the header compilable?
19461 echo "$as_me:$LINENO: checking png.h usability" >&5
19462 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 $ac_includes_default
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474 (eval $ac_compile) 2>conftest.er1
19476 grep -v '^ *+' conftest.er1 >conftest.err
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag"
19482 || test ! -s conftest.err'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_header_compiler=yes
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 ac_header_compiler=no
19501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19503 echo "${ECHO_T}$ac_header_compiler" >&6
19505 # Is the header present?
19506 echo "$as_me:$LINENO: checking png.h presence" >&5
19507 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19519 grep -v '^ *+' conftest.er1 >conftest.err
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } >/dev/null; then
19524 if test -s conftest.err; then
19525 ac_cpp_err=$ac_c_preproc_warn_flag
19526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19533 if test -z "$ac_cpp_err"; then
19534 ac_header_preproc=yes
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 ac_header_preproc=no
19541 rm -f conftest.err conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19543 echo "${ECHO_T}$ac_header_preproc" >&6
19545 # So? What about this header?
19546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19548 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19549 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19550 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19551 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19552 ac_header_preproc=yes
19555 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19556 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19558 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19559 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19560 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19561 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19562 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
19563 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19564 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19565 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19566 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19569 ## ------------------------------- ##
19570 ## Report this to root@mput.dip.jp ##
19571 ## ------------------------------- ##
19574 sed "s/^/$as_me: WARNING: /" >&2
19577 echo "$as_me:$LINENO: checking for png.h" >&5
19578 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19579 if test "${ac_cv_header_png_h+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 ac_cv_header_png_h=$ac_header_preproc
19584 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19585 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19588 if test $ac_cv_header_png_h = yes; then
19591 enable_sherry_wrd=no
19595 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19596 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19597 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 ac_check_lib_save_LIBS=$LIBS
19601 LIBS="-lpng -lz $LIBS"
19602 cat >conftest.$ac_ext <<_ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19609 /* Override any gcc2 internal prototype to avoid an error. */
19613 /* We use char because int might match the return type of a gcc2
19614 builtin and then its argument prototype would still apply. */
19615 char png_init_io ();
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19626 (eval $ac_link) 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest$ac_exeext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 ac_cv_lib_png_png_init_io=yes
19648 echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19651 ac_cv_lib_png_png_init_io=no
19653 rm -f conftest.err conftest.$ac_objext \
19654 conftest$ac_exeext conftest.$ac_ext
19655 LIBS=$ac_check_lib_save_LIBS
19657 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19658 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19659 if test $ac_cv_lib_png_png_init_io = yes; then
19662 enable_sherry_wrd=no
19665 if test "$enable_sherry_wrd" = yes; then
19667 cat >>confdefs.h <<\_ACEOF
19668 #define ENABLE_SHERRY 1
19674 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19675 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19677 if test "x$have_xext" = xyes; then
19678 lib_xext_opt=-lXext
19692 if test "x$enable_wrd" = "xyes"; then
19694 ENABLE_WRD_FALSE='#'
19696 ENABLE_WRD_TRUE='#'
19702 if test "x$W32G_GUI" = xyes; then
19712 if test "x$WINDRV" = xyes; then
19722 if test "x$MSYS" = xyes; then
19732 if test "x$VCPP" = xyes; then
19742 if test "x$BORLANDC" = xyes; then
19752 if test "x$WATCOM_C" = xyes; then
19762 if test "x$DMC" = xyes; then
19772 if test "x$MINGWGCC" = xyes; then
19783 if test "x$W32READDIR" = "xyes"; then
19785 W32READDIR_FALSE='#'
19787 W32READDIR_TRUE='#'
19792 rm -f wordtmp >/dev/null 2>&1
19794 for f in $LDFLAGS; do
19795 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19798 echo $f >>wordtmp; val="$val $f"
19803 rm -f wordtmp >/dev/null 2>&1
19805 rm -f wordtmp >/dev/null 2>&1
19807 for f in $SHLDFLAGS; do
19808 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19811 echo $f >>wordtmp; val="$val $f"
19816 rm -f wordtmp >/dev/null 2>&1
19818 rm -f wordtmp >/dev/null 2>&1
19820 for f in $EXTRACFLAGS $CFLAGS; do
19821 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19824 echo $f >>wordtmp; val="$val $f"
19829 rm -f wordtmp >/dev/null 2>&1
19831 rm -f wordtmp >/dev/null 2>&1
19833 for f in $CPPFLAGS $EXTRADEFS; do
19834 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19837 echo $f >>wordtmp; val="$val $f"
19842 rm -f wordtmp >/dev/null 2>&1
19845 if test "x$oss_device" != x; then
19847 cat >>confdefs.h <<_ACEOF
19848 #define OSS_DEVICE "$oss_device"
19853 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19861 if test "x$with_x" = xyes; then
19862 LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`
19864 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19865 SHLD="$SHLD $SHLDFLAGS"
19890 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile windrv/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
19892 cat >confcache <<\_ACEOF
19893 # This file is a shell script that caches the results of configure
19894 # tests run on this system so they can be shared between configure
19895 # scripts and configure runs, see configure's option --config-cache.
19896 # It is not useful on other systems. If it contains results you don't
19897 # want to keep, you may remove or edit it.
19899 # config.status only pays attention to the cache file if you give it
19900 # the --recheck option to rerun configure.
19902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19904 # following values.
19908 # The following way of writing the cache mishandles newlines in values,
19909 # but we know of no workaround that is simple, portable, and efficient.
19910 # So, don't put newlines in cache variables' values.
19911 # Ultrix sh set writes to stderr and can't be redirected directly,
19912 # and sets the high bit in the cache file unless we assign to the vars.
19915 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19917 # `set' does not quote correctly, so add quotes (double-quote
19918 # substitution turns \\\\ into \\, and sed turns \\ into \).
19921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19924 # `set' quotes correctly as required by POSIX, so do not add quotes.
19926 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19933 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19935 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19937 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19938 if test -w $cache_file; then
19939 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19940 cat confcache >$cache_file
19942 echo "not updating unwritable cache $cache_file"
19947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19948 # Let make expand exec_prefix.
19949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19953 # trailing colons and then remove the whole line if VPATH becomes empty
19954 # (actually we leave an empty line to preserve line numbers).
19955 if test "x$srcdir" = x.; then
19956 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19957 s/:*\$(srcdir):*/:/;
19958 s/:*\${srcdir}:*/:/;
19960 s/^\([^=]*=[ ]*\):*/\1/;
19966 DEFS=-DHAVE_CONFIG_H
19970 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19971 # 1. Remove the extension, and $U if already installed.
19972 ac_i=`echo "$ac_i" |
19973 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19975 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19976 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19978 LIBOBJS=$ac_libobjs
19980 LTLIBOBJS=$ac_ltlibobjs
19983 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19984 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19985 Usually this means the macro was only invoked conditionally." >&5
19986 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19987 Usually this means the macro was only invoked conditionally." >&2;}
19988 { (exit 1); exit 1; }; }
19990 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19991 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19992 Usually this means the macro was only invoked conditionally." >&5
19993 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19994 Usually this means the macro was only invoked conditionally." >&2;}
19995 { (exit 1); exit 1; }; }
19997 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19998 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19999 Usually this means the macro was only invoked conditionally." >&5
20000 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20001 Usually this means the macro was only invoked conditionally." >&2;}
20002 { (exit 1); exit 1; }; }
20004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20005 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20006 Usually this means the macro was only invoked conditionally." >&5
20007 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20008 Usually this means the macro was only invoked conditionally." >&2;}
20009 { (exit 1); exit 1; }; }
20011 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
20012 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
20013 Usually this means the macro was only invoked conditionally." >&5
20014 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
20015 Usually this means the macro was only invoked conditionally." >&2;}
20016 { (exit 1); exit 1; }; }
20018 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
20019 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
20020 Usually this means the macro was only invoked conditionally." >&5
20021 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
20022 Usually this means the macro was only invoked conditionally." >&2;}
20023 { (exit 1); exit 1; }; }
20025 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20026 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20027 Usually this means the macro was only invoked conditionally." >&5
20028 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20029 Usually this means the macro was only invoked conditionally." >&2;}
20030 { (exit 1); exit 1; }; }
20032 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20033 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20034 Usually this means the macro was only invoked conditionally." >&5
20035 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20036 Usually this means the macro was only invoked conditionally." >&2;}
20037 { (exit 1); exit 1; }; }
20039 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20040 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20041 Usually this means the macro was only invoked conditionally." >&5
20042 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20043 Usually this means the macro was only invoked conditionally." >&2;}
20044 { (exit 1); exit 1; }; }
20046 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20047 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20048 Usually this means the macro was only invoked conditionally." >&5
20049 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20050 Usually this means the macro was only invoked conditionally." >&2;}
20051 { (exit 1); exit 1; }; }
20053 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20054 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20055 Usually this means the macro was only invoked conditionally." >&5
20056 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20057 Usually this means the macro was only invoked conditionally." >&2;}
20058 { (exit 1); exit 1; }; }
20060 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20061 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20062 Usually this means the macro was only invoked conditionally." >&5
20063 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20064 Usually this means the macro was only invoked conditionally." >&2;}
20065 { (exit 1); exit 1; }; }
20067 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20068 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20069 Usually this means the macro was only invoked conditionally." >&5
20070 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20071 Usually this means the macro was only invoked conditionally." >&2;}
20072 { (exit 1); exit 1; }; }
20074 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20075 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20076 Usually this means the macro was only invoked conditionally." >&5
20077 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20078 Usually this means the macro was only invoked conditionally." >&2;}
20079 { (exit 1); exit 1; }; }
20081 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
20082 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20083 Usually this means the macro was only invoked conditionally." >&5
20084 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20085 Usually this means the macro was only invoked conditionally." >&2;}
20086 { (exit 1); exit 1; }; }
20088 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20089 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20090 Usually this means the macro was only invoked conditionally." >&5
20091 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20092 Usually this means the macro was only invoked conditionally." >&2;}
20093 { (exit 1); exit 1; }; }
20095 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20096 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20097 Usually this means the macro was only invoked conditionally." >&5
20098 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20099 Usually this means the macro was only invoked conditionally." >&2;}
20100 { (exit 1); exit 1; }; }
20102 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20103 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20104 Usually this means the macro was only invoked conditionally." >&5
20105 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20106 Usually this means the macro was only invoked conditionally." >&2;}
20107 { (exit 1); exit 1; }; }
20109 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20110 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20111 Usually this means the macro was only invoked conditionally." >&5
20112 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20113 Usually this means the macro was only invoked conditionally." >&2;}
20114 { (exit 1); exit 1; }; }
20116 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20117 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20118 Usually this means the macro was only invoked conditionally." >&5
20119 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20120 Usually this means the macro was only invoked conditionally." >&2;}
20121 { (exit 1); exit 1; }; }
20123 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20124 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20125 Usually this means the macro was only invoked conditionally." >&5
20126 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20127 Usually this means the macro was only invoked conditionally." >&2;}
20128 { (exit 1); exit 1; }; }
20130 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
20131 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20132 Usually this means the macro was only invoked conditionally." >&5
20133 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20134 Usually this means the macro was only invoked conditionally." >&2;}
20135 { (exit 1); exit 1; }; }
20137 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20138 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20139 Usually this means the macro was only invoked conditionally." >&5
20140 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20141 Usually this means the macro was only invoked conditionally." >&2;}
20142 { (exit 1); exit 1; }; }
20144 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20145 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20146 Usually this means the macro was only invoked conditionally." >&5
20147 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20148 Usually this means the macro was only invoked conditionally." >&2;}
20149 { (exit 1); exit 1; }; }
20151 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20152 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20153 Usually this means the macro was only invoked conditionally." >&5
20154 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20155 Usually this means the macro was only invoked conditionally." >&2;}
20156 { (exit 1); exit 1; }; }
20158 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20159 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20160 Usually this means the macro was only invoked conditionally." >&5
20161 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20162 Usually this means the macro was only invoked conditionally." >&2;}
20163 { (exit 1); exit 1; }; }
20165 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20166 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20167 Usually this means the macro was only invoked conditionally." >&5
20168 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20169 Usually this means the macro was only invoked conditionally." >&2;}
20170 { (exit 1); exit 1; }; }
20172 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20173 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20174 Usually this means the macro was only invoked conditionally." >&5
20175 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20176 Usually this means the macro was only invoked conditionally." >&2;}
20177 { (exit 1); exit 1; }; }
20179 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20180 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20181 Usually this means the macro was only invoked conditionally." >&5
20182 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20183 Usually this means the macro was only invoked conditionally." >&2;}
20184 { (exit 1); exit 1; }; }
20186 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20187 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20188 Usually this means the macro was only invoked conditionally." >&5
20189 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20190 Usually this means the macro was only invoked conditionally." >&2;}
20191 { (exit 1); exit 1; }; }
20193 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20194 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20195 Usually this means the macro was only invoked conditionally." >&5
20196 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20197 Usually this means the macro was only invoked conditionally." >&2;}
20198 { (exit 1); exit 1; }; }
20200 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20201 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20202 Usually this means the macro was only invoked conditionally." >&5
20203 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20204 Usually this means the macro was only invoked conditionally." >&2;}
20205 { (exit 1); exit 1; }; }
20207 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20208 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20209 Usually this means the macro was only invoked conditionally." >&5
20210 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20211 Usually this means the macro was only invoked conditionally." >&2;}
20212 { (exit 1); exit 1; }; }
20214 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20215 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20216 Usually this means the macro was only invoked conditionally." >&5
20217 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20218 Usually this means the macro was only invoked conditionally." >&2;}
20219 { (exit 1); exit 1; }; }
20221 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20222 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20223 Usually this means the macro was only invoked conditionally." >&5
20224 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20225 Usually this means the macro was only invoked conditionally." >&2;}
20226 { (exit 1); exit 1; }; }
20228 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20229 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20230 Usually this means the macro was only invoked conditionally." >&5
20231 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20232 Usually this means the macro was only invoked conditionally." >&2;}
20233 { (exit 1); exit 1; }; }
20235 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20236 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20237 Usually this means the macro was only invoked conditionally." >&5
20238 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20239 Usually this means the macro was only invoked conditionally." >&2;}
20240 { (exit 1); exit 1; }; }
20242 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20243 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20244 Usually this means the macro was only invoked conditionally." >&5
20245 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20246 Usually this means the macro was only invoked conditionally." >&2;}
20247 { (exit 1); exit 1; }; }
20249 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20250 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20251 Usually this means the macro was only invoked conditionally." >&5
20252 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20253 Usually this means the macro was only invoked conditionally." >&2;}
20254 { (exit 1); exit 1; }; }
20256 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20257 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20258 Usually this means the macro was only invoked conditionally." >&5
20259 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20260 Usually this means the macro was only invoked conditionally." >&2;}
20261 { (exit 1); exit 1; }; }
20263 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
20264 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
20265 Usually this means the macro was only invoked conditionally." >&5
20266 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
20267 Usually this means the macro was only invoked conditionally." >&2;}
20268 { (exit 1); exit 1; }; }
20270 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
20271 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20272 Usually this means the macro was only invoked conditionally." >&5
20273 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20274 Usually this means the macro was only invoked conditionally." >&2;}
20275 { (exit 1); exit 1; }; }
20277 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
20278 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
20279 Usually this means the macro was only invoked conditionally." >&5
20280 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
20281 Usually this means the macro was only invoked conditionally." >&2;}
20282 { (exit 1); exit 1; }; }
20284 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
20285 { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
20286 Usually this means the macro was only invoked conditionally." >&5
20287 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
20288 Usually this means the macro was only invoked conditionally." >&2;}
20289 { (exit 1); exit 1; }; }
20291 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
20292 { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
20293 Usually this means the macro was only invoked conditionally." >&5
20294 echo "$as_me: error: conditional \"WINDRV\" was never defined.
20295 Usually this means the macro was only invoked conditionally." >&2;}
20296 { (exit 1); exit 1; }; }
20298 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
20299 { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
20300 Usually this means the macro was only invoked conditionally." >&5
20301 echo "$as_me: error: conditional \"MSYS\" was never defined.
20302 Usually this means the macro was only invoked conditionally." >&2;}
20303 { (exit 1); exit 1; }; }
20305 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
20306 { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
20307 Usually this means the macro was only invoked conditionally." >&5
20308 echo "$as_me: error: conditional \"VCPP\" was never defined.
20309 Usually this means the macro was only invoked conditionally." >&2;}
20310 { (exit 1); exit 1; }; }
20312 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
20313 { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
20314 Usually this means the macro was only invoked conditionally." >&5
20315 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
20316 Usually this means the macro was only invoked conditionally." >&2;}
20317 { (exit 1); exit 1; }; }
20319 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
20320 { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
20321 Usually this means the macro was only invoked conditionally." >&5
20322 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
20323 Usually this means the macro was only invoked conditionally." >&2;}
20324 { (exit 1); exit 1; }; }
20326 if test -z "${DMC_TRUE}" && test -z "${DMC_FALSE}"; then
20327 { { echo "$as_me:$LINENO: error: conditional \"DMC\" was never defined.
20328 Usually this means the macro was only invoked conditionally." >&5
20329 echo "$as_me: error: conditional \"DMC\" was never defined.
20330 Usually this means the macro was only invoked conditionally." >&2;}
20331 { (exit 1); exit 1; }; }
20333 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
20334 { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
20335 Usually this means the macro was only invoked conditionally." >&5
20336 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
20337 Usually this means the macro was only invoked conditionally." >&2;}
20338 { (exit 1); exit 1; }; }
20340 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
20341 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
20342 Usually this means the macro was only invoked conditionally." >&5
20343 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
20344 Usually this means the macro was only invoked conditionally." >&2;}
20345 { (exit 1); exit 1; }; }
20348 : ${CONFIG_STATUS=./config.status}
20349 ac_clean_files_save=$ac_clean_files
20350 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20351 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20352 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20353 cat >$CONFIG_STATUS <<_ACEOF
20355 # Generated by $as_me.
20356 # Run this file to recreate the current configuration.
20357 # Compiler output produced by configure, useful for debugging
20358 # configure, is in config.log if it exists.
20361 ac_cs_recheck=false
20363 SHELL=\${CONFIG_SHELL-$SHELL}
20366 cat >>$CONFIG_STATUS <<\_ACEOF
20367 ## --------------------- ##
20368 ## M4sh Initialization. ##
20369 ## --------------------- ##
20371 # Be Bourne compatible
20372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20375 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20376 # is contrary to our usage. Disable this feature.
20377 alias -g '${1+"$@"}'='"$@"'
20378 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20381 DUALCASE=1; export DUALCASE # for MKS sh
20383 # Support unset when possible.
20384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20391 # Work around bugs in pre-3.0 UWIN ksh.
20392 $as_unset ENV MAIL MAILPATH
20399 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20400 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20401 LC_TELEPHONE LC_TIME
20403 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20404 eval $as_var=C; export $as_var
20410 # Required to use basename.
20411 if expr a : '\(a\)' >/dev/null 2>&1; then
20417 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20418 as_basename=basename
20424 # Name of the executable.
20425 as_me=`$as_basename "$0" ||
20426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20427 X"$0" : 'X\(//\)$' \| \
20428 X"$0" : 'X\(/\)$' \| \
20429 . : '\(.\)' 2>/dev/null ||
20431 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20432 /^X\/\(\/\/\)$/{ s//\1/; q; }
20433 /^X\/\(\/\).*/{ s//\1/; q; }
20437 # PATH needs CR, and LINENO needs CR and PATH.
20438 # Avoid depending upon Character Ranges.
20439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20442 as_cr_digits='0123456789'
20443 as_cr_alnum=$as_cr_Letters$as_cr_digits
20445 # The user is always right.
20446 if test "${PATH_SEPARATOR+set}" != set; then
20447 echo "#! /bin/sh" >conf$$.sh
20448 echo "exit 0" >>conf$$.sh
20450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20459 as_lineno_1=$LINENO
20460 as_lineno_2=$LINENO
20461 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20462 test "x$as_lineno_1" != "x$as_lineno_2" &&
20463 test "x$as_lineno_3" = "x$as_lineno_2" || {
20464 # Find who we are. Look in the path if we contain no path at all
20467 *[\\/]* ) as_myself=$0 ;;
20468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20469 for as_dir in $PATH
20472 test -z "$as_dir" && as_dir=.
20473 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20478 # We did not find ourselves, most probably we were run as `sh COMMAND'
20479 # in which case we are not to be found in the path.
20480 if test "x$as_myself" = x; then
20483 if test ! -f "$as_myself"; then
20484 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20485 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20486 { (exit 1); exit 1; }; }
20488 case $CONFIG_SHELL in
20490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20491 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20494 test -z "$as_dir" && as_dir=.
20495 for as_base in sh bash ksh sh5; do
20498 if ("$as_dir/$as_base" -c '
20499 as_lineno_1=$LINENO
20500 as_lineno_2=$LINENO
20501 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20502 test "x$as_lineno_1" != "x$as_lineno_2" &&
20503 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20504 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20505 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20506 CONFIG_SHELL=$as_dir/$as_base
20507 export CONFIG_SHELL
20508 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20516 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20517 # uniformly replaced by the line number. The first 'sed' inserts a
20518 # line-number line before each line; the second 'sed' does the real
20519 # work. The second script uses 'N' to pair each line-number line
20520 # with the numbered line, and appends trailing '-' during
20521 # substitution so that $LINENO is not a special case at line end.
20522 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20523 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20524 sed '=' <$as_myself |
20529 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20532 s,^['$as_cr_digits']*\n,,
20533 ' >$as_me.lineno &&
20534 chmod +x $as_me.lineno ||
20535 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20536 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20537 { (exit 1); exit 1; }; }
20539 # Don't try to exec as it changes $[0], causing all sort of problems
20540 # (the dirname of $[0] is not the place where we might find the
20541 # original and so on. Autoconf is especially sensible to this).
20543 # Exit status is that of the last command.
20548 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20549 *c*,-n*) ECHO_N= ECHO_C='
20551 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20552 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20555 if expr a : '\(a\)' >/dev/null 2>&1; then
20561 rm -f conf$$ conf$$.exe conf$$.file
20563 if ln -s conf$$.file conf$$ 2>/dev/null; then
20564 # We could just check for DJGPP; but this test a) works b) is more generic
20565 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20566 if test -f conf$$.exe; then
20567 # Don't use ln at all; we don't have any links
20572 elif ln conf$$.file conf$$ 2>/dev/null; then
20577 rm -f conf$$ conf$$.exe conf$$.file
20579 if mkdir -p . 2>/dev/null; then
20582 test -d ./-p && rmdir ./-p
20586 as_executable_p="test -f"
20588 # Sed expression to map a string onto a valid CPP name.
20589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20591 # Sed expression to map a string onto a valid variable name.
20592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20596 # We need space, tab and new line, in precisely that order.
20606 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20607 # report actual input values of CONFIG_FILES etc. instead of their
20608 # values after options handling. Logging --version etc. is OK.
20612 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20613 ## Running $as_me. ##
20618 This file was extended by TiMidity++ $as_me 2.13.2, which was
20619 generated by GNU Autoconf 2.59. Invocation command line was
20621 CONFIG_FILES = $CONFIG_FILES
20622 CONFIG_HEADERS = $CONFIG_HEADERS
20623 CONFIG_LINKS = $CONFIG_LINKS
20624 CONFIG_COMMANDS = $CONFIG_COMMANDS
20628 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20632 # Files that config.status was made for.
20633 if test -n "$ac_config_files"; then
20634 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20637 if test -n "$ac_config_headers"; then
20638 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20641 if test -n "$ac_config_links"; then
20642 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20645 if test -n "$ac_config_commands"; then
20646 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20649 cat >>$CONFIG_STATUS <<\_ACEOF
20652 \`$as_me' instantiates files from templates according to the
20653 current configuration.
20655 Usage: $0 [OPTIONS] [FILE]...
20657 -h, --help print this help, then exit
20658 -V, --version print version number, then exit
20659 -q, --quiet do not print progress messages
20660 -d, --debug don't remove temporary files
20661 --recheck update $as_me by reconfiguring in the same conditions
20662 --file=FILE[:TEMPLATE]
20663 instantiate the configuration file FILE
20664 --header=FILE[:TEMPLATE]
20665 instantiate the configuration header FILE
20667 Configuration files:
20670 Configuration headers:
20673 Configuration commands:
20676 Report bugs to <bug-autoconf@gnu.org>."
20679 cat >>$CONFIG_STATUS <<_ACEOF
20681 TiMidity++ config.status 2.13.2
20682 configured by $0, generated by GNU Autoconf 2.59,
20683 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20685 Copyright (C) 2003 Free Software Foundation, Inc.
20686 This config.status script is free software; the Free Software Foundation
20687 gives unlimited permission to copy, distribute and modify it."
20692 cat >>$CONFIG_STATUS <<\_ACEOF
20693 # If no file are specified by the user, then we need to provide default
20694 # value. By we need to know if files were specified by the user.
20700 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20701 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20709 *) # This is not an option, so the user has probably given explicit
20712 ac_need_defaults=false;;
20716 # Handling of the options.
20718 cat >>$CONFIG_STATUS <<\_ACEOF
20719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20721 --version | --vers* | -V )
20722 echo "$ac_cs_version"; exit 0 ;;
20724 # Conflict between --help and --header
20725 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20726 Try \`$0 --help' for more information." >&5
20727 echo "$as_me: error: ambiguous option: $1
20728 Try \`$0 --help' for more information." >&2;}
20729 { (exit 1); exit 1; }; };;
20730 --help | --hel | -h )
20731 echo "$ac_cs_usage"; exit 0 ;;
20732 --debug | --d* | -d )
20734 --file | --fil | --fi | --f )
20736 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20737 ac_need_defaults=false;;
20738 --header | --heade | --head | --hea )
20740 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20741 ac_need_defaults=false;;
20742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20743 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20746 # This is an error.
20747 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20748 Try \`$0 --help' for more information." >&5
20749 echo "$as_me: error: unrecognized option: $1
20750 Try \`$0 --help' for more information." >&2;}
20751 { (exit 1); exit 1; }; } ;;
20753 *) ac_config_targets="$ac_config_targets $1" ;;
20759 ac_configure_extra_args=
20761 if $ac_cs_silent; then
20763 ac_configure_extra_args="$ac_configure_extra_args --silent"
20767 cat >>$CONFIG_STATUS <<_ACEOF
20768 if \$ac_cs_recheck; then
20769 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20770 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20775 cat >>$CONFIG_STATUS <<_ACEOF
20777 # INIT-COMMANDS section.
20780 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20786 cat >>$CONFIG_STATUS <<\_ACEOF
20787 for ac_config_target in $ac_config_targets
20789 case "$ac_config_target" in
20790 # Handling of arguments.
20791 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20792 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20793 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20794 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20795 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20796 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20797 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20798 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20799 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20800 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20801 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20802 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20803 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20804 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20805 "windrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
20806 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20807 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20808 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20809 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20810 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20811 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20812 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20813 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20815 { (exit 1); exit 1; }; };;
20819 # If the user did not use the arguments to specify the items to instantiate,
20820 # then the envvar interface is used. Set only those that are not.
20821 # We use the long form for the default assignment because of an extremely
20822 # bizarre bug on SunOS 4.1.3.
20823 if $ac_need_defaults; then
20824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20829 # Have a temporary directory for convenience. Make it in the build tree
20830 # simply because there is no reason to put it here, and in addition,
20831 # creating and moving files from /tmp can sometimes cause problems.
20832 # Create a temporary directory, and hook for its removal unless debugging.
20835 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20836 trap '{ (exit 1); exit 1; }' 1 2 13 15
20839 # Create a (secure) tmp directory for tmp files.
20842 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20843 test -n "$tmp" && test -d "$tmp"
20846 tmp=./confstat$$-$RANDOM
20847 (umask 077 && mkdir $tmp)
20850 echo "$me: cannot create a temporary directory in ." >&2
20851 { (exit 1); exit 1; }
20856 cat >>$CONFIG_STATUS <<_ACEOF
20859 # CONFIG_FILES section.
20862 # No need to generate the scripts if there are no CONFIG_FILES.
20863 # This happens for instance when ./config.status config.h
20864 if test -n "\$CONFIG_FILES"; then
20865 # Protect against being on the right side of a sed subst in config.status.
20866 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20867 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20868 s,@SHELL@,$SHELL,;t t
20869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20875 s,@exec_prefix@,$exec_prefix,;t t
20876 s,@prefix@,$prefix,;t t
20877 s,@program_transform_name@,$program_transform_name,;t t
20878 s,@bindir@,$bindir,;t t
20879 s,@sbindir@,$sbindir,;t t
20880 s,@libexecdir@,$libexecdir,;t t
20881 s,@datadir@,$datadir,;t t
20882 s,@sysconfdir@,$sysconfdir,;t t
20883 s,@sharedstatedir@,$sharedstatedir,;t t
20884 s,@localstatedir@,$localstatedir,;t t
20885 s,@libdir@,$libdir,;t t
20886 s,@includedir@,$includedir,;t t
20887 s,@oldincludedir@,$oldincludedir,;t t
20888 s,@infodir@,$infodir,;t t
20889 s,@mandir@,$mandir,;t t
20890 s,@build_alias@,$build_alias,;t t
20891 s,@host_alias@,$host_alias,;t t
20892 s,@target_alias@,$target_alias,;t t
20893 s,@DEFS@,$DEFS,;t t
20894 s,@ECHO_C@,$ECHO_C,;t t
20895 s,@ECHO_N@,$ECHO_N,;t t
20896 s,@ECHO_T@,$ECHO_T,;t t
20897 s,@LIBS@,$LIBS,;t t
20898 s,@build@,$build,;t t
20899 s,@build_cpu@,$build_cpu,;t t
20900 s,@build_vendor@,$build_vendor,;t t
20901 s,@build_os@,$build_os,;t t
20902 s,@host@,$host,;t t
20903 s,@host_cpu@,$host_cpu,;t t
20904 s,@host_vendor@,$host_vendor,;t t
20905 s,@host_os@,$host_os,;t t
20906 s,@target@,$target,;t t
20907 s,@target_cpu@,$target_cpu,;t t
20908 s,@target_vendor@,$target_vendor,;t t
20909 s,@target_os@,$target_os,;t t
20910 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20911 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20912 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20913 s,@CYGPATH_W@,$CYGPATH_W,;t t
20914 s,@PACKAGE@,$PACKAGE,;t t
20915 s,@VERSION@,$VERSION,;t t
20916 s,@ACLOCAL@,$ACLOCAL,;t t
20917 s,@AUTOCONF@,$AUTOCONF,;t t
20918 s,@AUTOMAKE@,$AUTOMAKE,;t t
20919 s,@AUTOHEADER@,$AUTOHEADER,;t t
20920 s,@MAKEINFO@,$MAKEINFO,;t t
20921 s,@AMTAR@,$AMTAR,;t t
20922 s,@install_sh@,$install_sh,;t t
20923 s,@STRIP@,$STRIP,;t t
20924 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20925 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20927 s,@SET_MAKE@,$SET_MAKE,;t t
20928 s,@am__leading_dot@,$am__leading_dot,;t t
20929 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20930 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20931 s,@MAINT@,$MAINT,;t t
20933 s,@CXXFLAGS@,$CXXFLAGS,;t t
20934 s,@LDFLAGS@,$LDFLAGS,;t t
20935 s,@CPPFLAGS@,$CPPFLAGS,;t t
20936 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20937 s,@EXEEXT@,$EXEEXT,;t t
20938 s,@OBJEXT@,$OBJEXT,;t t
20939 s,@DEPDIR@,$DEPDIR,;t t
20940 s,@am__include@,$am__include,;t t
20941 s,@am__quote@,$am__quote,;t t
20942 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20943 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20944 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20945 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20946 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20947 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20948 s,@EMACS@,$EMACS,;t t
20949 s,@lispdir@,$lispdir,;t t
20951 s,@CFLAGS@,$CFLAGS,;t t
20952 s,@ac_ct_CC@,$ac_ct_CC,;t t
20953 s,@CCDEPMODE@,$CCDEPMODE,;t t
20954 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20955 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20957 s,@EGREP@,$EGREP,;t t
20958 s,@RANLIB@,$RANLIB,;t t
20959 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20960 s,@LN_S@,$LN_S,;t t
20961 s,@X_CFLAGS@,$X_CFLAGS,;t t
20962 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20963 s,@X_LIBS@,$X_LIBS,;t t
20964 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20965 s,@LIBOBJS@,$LIBOBJS,;t t
20966 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20967 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20968 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20969 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20970 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
20971 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
20972 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
20973 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20974 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20975 s,@ESD_LIBS@,$ESD_LIBS,;t t
20976 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20977 s,@AO_LIBS@,$AO_LIBS,;t t
20978 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20979 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20980 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20981 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20982 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20983 s,@OGG_LIBS@,$OGG_LIBS,;t t
20984 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20985 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20986 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20987 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20988 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20989 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20990 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20991 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20992 s,@n_so_libs@,$n_so_libs,;t t
20993 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20994 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20995 s,@s_so_libs@,$s_so_libs,;t t
20996 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20997 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20998 s,@m_so_libs@,$m_so_libs,;t t
20999 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
21000 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
21001 s,@k_so_libs@,$k_so_libs,;t t
21002 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
21003 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
21004 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
21005 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
21006 s,@e_so_libs@,$e_so_libs,;t t
21007 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
21008 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
21009 s,@T_so_libs@,$T_so_libs,;t t
21010 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
21011 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
21012 s,@a_so_libs@,$a_so_libs,;t t
21013 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
21014 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
21015 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
21016 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
21017 s,@i_so_libs@,$i_so_libs,;t t
21018 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
21019 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
21020 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21021 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
21022 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21023 s,@GTK_LIBS@,$GTK_LIBS,;t t
21024 s,@g_so_libs@,$g_so_libs,;t t
21025 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
21026 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
21027 s,@r_so_libs@,$r_so_libs,;t t
21028 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
21029 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
21030 s,@A_so_libs@,$A_so_libs,;t t
21031 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
21032 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
21033 s,@W_so_libs@,$W_so_libs,;t t
21034 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
21035 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
21036 s,@P_so_libs@,$P_so_libs,;t t
21037 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
21038 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
21039 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
21040 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
21041 s,@w_so_libs@,$w_so_libs,;t t
21042 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
21043 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
21044 s,@p_so_libs@,$p_so_libs,;t t
21045 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
21046 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
21047 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
21048 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
21049 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
21050 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
21051 s,@W32G_GUI_TRUE@,$W32G_GUI_TRUE,;t t
21052 s,@W32G_GUI_FALSE@,$W32G_GUI_FALSE,;t t
21053 s,@WINDRV_TRUE@,$WINDRV_TRUE,;t t
21054 s,@WINDRV_FALSE@,$WINDRV_FALSE,;t t
21055 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
21056 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
21057 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
21058 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
21059 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
21060 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
21061 s,@WATCOM_C_TRUE@,$WATCOM_C_TRUE,;t t
21062 s,@WATCOM_C_FALSE@,$WATCOM_C_FALSE,;t t
21063 s,@DMC_TRUE@,$DMC_TRUE,;t t
21064 s,@DMC_FALSE@,$DMC_FALSE,;t t
21065 s,@MINGWGCC_TRUE@,$MINGWGCC_TRUE,;t t
21066 s,@MINGWGCC_FALSE@,$MINGWGCC_FALSE,;t t
21067 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
21068 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
21069 s,@BORLANDC_START@,$BORLANDC_START,;t t
21070 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
21071 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
21072 s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t
21073 s,@DMC_LDFLAGS@,$DMC_LDFLAGS,;t t
21074 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
21075 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
21076 s,@EXTRALIBS@,$EXTRALIBS,;t t
21077 s,@NETSRCS@,$NETSRCS,;t t
21078 s,@ELFILES@,$ELFILES,;t t
21079 s,@SHLD@,$SHLD,;t t
21080 s,@SHCFLAGS@,$SHCFLAGS,;t t
21081 s,@dynamic_targets@,$dynamic_targets,;t t
21083 s,@WISH@,$WISH,;t t
21084 s,@tcltk_dep@,$tcltk_dep,;t t
21085 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
21086 s,@pkgdatadir@,$pkgdatadir,;t t
21087 s,@pkglibdir@,$pkglibdir,;t t
21088 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21093 cat >>$CONFIG_STATUS <<\_ACEOF
21094 # Split the substitutions into bite-sized pieces for seds with
21095 # small command number limits, like on Digital OSF/1 and HP-UX.
21096 ac_max_sed_lines=48
21097 ac_sed_frag=1 # Number of current file.
21098 ac_beg=1 # First line for current file.
21099 ac_end=$ac_max_sed_lines # Line after last line for current file.
21102 while $ac_more_lines; do
21103 if test $ac_beg -gt 1; then
21104 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21106 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21108 if test ! -s $tmp/subs.frag; then
21109 ac_more_lines=false
21111 # The purpose of the label and of the branching condition is to
21112 # speed up the sed processing (if there are no `@' at all, there
21113 # is no need to browse any of the substitutions).
21114 # These are the two extra sed commands mentioned above.
21116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21117 if test -z "$ac_sed_cmds"; then
21118 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21120 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21122 ac_sed_frag=`expr $ac_sed_frag + 1`
21124 ac_end=`expr $ac_end + $ac_max_sed_lines`
21127 if test -z "$ac_sed_cmds"; then
21130 fi # test -n "$CONFIG_FILES"
21133 cat >>$CONFIG_STATUS <<\_ACEOF
21134 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21135 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21137 - | *:- | *:-:* ) # input from stdin
21139 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21140 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21141 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21142 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21143 * ) ac_file_in=$ac_file.in ;;
21146 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21147 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21149 X"$ac_file" : 'X\(//\)[^/]' \| \
21150 X"$ac_file" : 'X\(//\)$' \| \
21151 X"$ac_file" : 'X\(/\)' \| \
21152 . : '\(.\)' 2>/dev/null ||
21154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21156 /^X\(\/\/\)$/{ s//\1/; q; }
21157 /^X\(\/\).*/{ s//\1/; q; }
21159 { if $as_mkdir_p; then
21164 while test ! -d "$as_dir"; do
21165 as_dirs="$as_dir $as_dirs"
21166 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21167 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21168 X"$as_dir" : 'X\(//\)[^/]' \| \
21169 X"$as_dir" : 'X\(//\)$' \| \
21170 X"$as_dir" : 'X\(/\)' \| \
21171 . : '\(.\)' 2>/dev/null ||
21173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21175 /^X\(\/\/\)$/{ s//\1/; q; }
21176 /^X\(\/\).*/{ s//\1/; q; }
21179 test ! -n "$as_dirs" || mkdir $as_dirs
21180 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21181 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21182 { (exit 1); exit 1; }; }; }
21186 if test "$ac_dir" != .; then
21187 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21188 # A "../" for each directory in $ac_dir_suffix.
21189 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21191 ac_dir_suffix= ac_top_builddir=
21195 .) # No --srcdir option. We are building in place.
21197 if test -z "$ac_top_builddir"; then
21200 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21202 [\\/]* | ?:[\\/]* ) # Absolute path.
21203 ac_srcdir=$srcdir$ac_dir_suffix;
21204 ac_top_srcdir=$srcdir ;;
21205 *) # Relative path.
21206 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21207 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21210 # Do not use `cd foo && pwd` to compute absolute paths, because
21211 # the directories may not exist.
21213 .) ac_abs_builddir="$ac_dir";;
21216 .) ac_abs_builddir=`pwd`;;
21217 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21218 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21221 case $ac_abs_builddir in
21222 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21224 case ${ac_top_builddir}. in
21225 .) ac_abs_top_builddir=$ac_abs_builddir;;
21226 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21227 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21230 case $ac_abs_builddir in
21231 .) ac_abs_srcdir=$ac_srcdir;;
21234 .) ac_abs_srcdir=$ac_abs_builddir;;
21235 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21236 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21239 case $ac_abs_builddir in
21240 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21242 case $ac_top_srcdir in
21243 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21244 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21245 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21252 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21255 if test x"$ac_file" != x-; then
21256 { echo "$as_me:$LINENO: creating $ac_file" >&5
21257 echo "$as_me: creating $ac_file" >&6;}
21260 # Let's still pretend it is `configure' which instantiates (i.e., don't
21261 # use $as_me), people would be surprised to read:
21262 # /* config.h. Generated by config.status. */
21263 if test x"$ac_file" = x-; then
21266 configure_input="$ac_file. "
21268 configure_input=$configure_input"Generated from `echo $ac_file_in |
21269 sed 's,.*/,,'` by configure."
21271 # First look for the input files in the build tree, otherwise in the
21273 ac_file_inputs=`IFS=:
21274 for f in $ac_file_in; do
21276 -) echo $tmp/stdin ;;
21278 # Absolute (can't be DOS-style, as IFS=:)
21279 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21280 echo "$as_me: error: cannot find input file: $f" >&2;}
21281 { (exit 1); exit 1; }; }
21284 if test -f "$f"; then
21287 elif test -f "$srcdir/$f"; then
21292 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21293 echo "$as_me: error: cannot find input file: $f" >&2;}
21294 { (exit 1); exit 1; }; }
21297 done` || { (exit 1); exit 1; }
21299 cat >>$CONFIG_STATUS <<_ACEOF
21303 cat >>$CONFIG_STATUS <<\_ACEOF
21305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21306 s,@configure_input@,$configure_input,;t t
21307 s,@srcdir@,$ac_srcdir,;t t
21308 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21309 s,@top_srcdir@,$ac_top_srcdir,;t t
21310 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21311 s,@builddir@,$ac_builddir,;t t
21312 s,@abs_builddir@,$ac_abs_builddir,;t t
21313 s,@top_builddir@,$ac_top_builddir,;t t
21314 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21315 s,@INSTALL@,$ac_INSTALL,;t t
21316 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21318 if test x"$ac_file" != x-; then
21319 mv $tmp/out $ac_file
21327 cat >>$CONFIG_STATUS <<\_ACEOF
21330 # CONFIG_HEADER section.
21333 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21334 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21336 # ac_d sets the value in "#define NAME VALUE" lines.
21337 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21338 ac_dB='[ ].*$,\1#\2'
21341 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21342 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21343 ac_uB='$,\1#\2define\3'
21347 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21348 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21350 - | *:- | *:-:* ) # input from stdin
21352 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21354 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21356 * ) ac_file_in=$ac_file.in ;;
21359 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21360 echo "$as_me: creating $ac_file" >&6;}
21362 # First look for the input files in the build tree, otherwise in the
21364 ac_file_inputs=`IFS=:
21365 for f in $ac_file_in; do
21367 -) echo $tmp/stdin ;;
21369 # Absolute (can't be DOS-style, as IFS=:)
21370 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21371 echo "$as_me: error: cannot find input file: $f" >&2;}
21372 { (exit 1); exit 1; }; }
21373 # Do quote $f, to prevent DOS paths from being IFS'd.
21376 if test -f "$f"; then
21379 elif test -f "$srcdir/$f"; then
21384 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21385 echo "$as_me: error: cannot find input file: $f" >&2;}
21386 { (exit 1); exit 1; }; }
21389 done` || { (exit 1); exit 1; }
21390 # Remove the trailing spaces.
21391 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21395 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21396 # `conftest.undefs', that substitutes the proper values into
21397 # config.h.in to produce config.h. The first handles `#define'
21398 # templates, and the second `#undef' templates.
21399 # And first: Protect against being on the right side of a sed subst in
21400 # config.status. Protect against being in an unquoted here document
21401 # in config.status.
21402 rm -f conftest.defines conftest.undefs
21403 # Using a here document instead of a string reduces the quoting nightmare.
21404 # Putting comments in sed scripts is not portable.
21406 # `end' is used to avoid that the second main sed command (meant for
21407 # 0-ary CPP macros) applies to n-ary macro definitions.
21408 # See the Autoconf documentation for `clear'.
21409 cat >confdef2sed.sed <<\_ACEOF
21414 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21416 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21419 # If some macros were called several times there might be several times
21420 # the same #defines, which is useless. Nevertheless, we may not want to
21421 # sort them, since we want the *last* AC-DEFINE to be honored.
21422 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21423 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21424 rm -f confdef2sed.sed
21426 # This sed command replaces #undef with comments. This is necessary, for
21427 # example, in the case of _POSIX_SOURCE, which is predefined and required
21428 # on some systems where configure will not decide to define it.
21429 cat >>conftest.undefs <<\_ACEOF
21430 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21433 # Break up conftest.defines because some shells have a limit on the size
21434 # of here documents, and old seds have small limits too (100 cmds).
21435 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21436 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21437 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21438 echo ' :' >>$CONFIG_STATUS
21439 rm -f conftest.tail
21440 while grep . conftest.defines >/dev/null
21442 # Write a limited-size here document to $tmp/defines.sed.
21443 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21444 # Speed up: don't consider the non `#define' lines.
21445 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21446 # Work around the forget-to-reset-the-flag bug.
21447 echo 't clr' >>$CONFIG_STATUS
21448 echo ': clr' >>$CONFIG_STATUS
21449 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21451 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21453 mv $tmp/out $tmp/in
21455 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21456 rm -f conftest.defines
21457 mv conftest.tail conftest.defines
21459 rm -f conftest.defines
21460 echo ' fi # grep' >>$CONFIG_STATUS
21461 echo >>$CONFIG_STATUS
21463 # Break up conftest.undefs because some shells have a limit on the size
21464 # of here documents, and old seds have small limits too (100 cmds).
21465 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21466 rm -f conftest.tail
21467 while grep . conftest.undefs >/dev/null
21469 # Write a limited-size here document to $tmp/undefs.sed.
21470 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21471 # Speed up: don't consider the non `#undef'
21472 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21473 # Work around the forget-to-reset-the-flag bug.
21474 echo 't clr' >>$CONFIG_STATUS
21475 echo ': clr' >>$CONFIG_STATUS
21476 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21478 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21480 mv $tmp/out $tmp/in
21482 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21483 rm -f conftest.undefs
21484 mv conftest.tail conftest.undefs
21486 rm -f conftest.undefs
21488 cat >>$CONFIG_STATUS <<\_ACEOF
21489 # Let's still pretend it is `configure' which instantiates (i.e., don't
21490 # use $as_me), people would be surprised to read:
21491 # /* config.h. Generated by config.status. */
21492 if test x"$ac_file" = x-; then
21493 echo "/* Generated by configure. */" >$tmp/config.h
21495 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21497 cat $tmp/in >>$tmp/config.h
21499 if test x"$ac_file" != x-; then
21500 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21501 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21502 echo "$as_me: $ac_file is unchanged" >&6;}
21504 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21506 X"$ac_file" : 'X\(//\)[^/]' \| \
21507 X"$ac_file" : 'X\(//\)$' \| \
21508 X"$ac_file" : 'X\(/\)' \| \
21509 . : '\(.\)' 2>/dev/null ||
21511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21513 /^X\(\/\/\)$/{ s//\1/; q; }
21514 /^X\(\/\).*/{ s//\1/; q; }
21516 { if $as_mkdir_p; then
21521 while test ! -d "$as_dir"; do
21522 as_dirs="$as_dir $as_dirs"
21523 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21525 X"$as_dir" : 'X\(//\)[^/]' \| \
21526 X"$as_dir" : 'X\(//\)$' \| \
21527 X"$as_dir" : 'X\(/\)' \| \
21528 . : '\(.\)' 2>/dev/null ||
21530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21532 /^X\(\/\/\)$/{ s//\1/; q; }
21533 /^X\(\/\).*/{ s//\1/; q; }
21536 test ! -n "$as_dirs" || mkdir $as_dirs
21537 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21538 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21539 { (exit 1); exit 1; }; }; }
21542 mv $tmp/config.h $ac_file
21546 rm -f $tmp/config.h
21548 # Compute $ac_file's index in $config_headers.
21550 for _am_header in $config_headers :; do
21551 case $_am_header in
21552 $ac_file | $ac_file:* )
21555 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21558 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21559 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21560 X$ac_file : 'X\(//\)[^/]' \| \
21561 X$ac_file : 'X\(//\)$' \| \
21562 X$ac_file : 'X\(/\)' \| \
21563 . : '\(.\)' 2>/dev/null ||
21565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21567 /^X\(\/\/\)$/{ s//\1/; q; }
21568 /^X\(\/\).*/{ s//\1/; q; }
21569 s/.*/./; q'`/stamp-h$_am_stamp_count
21572 cat >>$CONFIG_STATUS <<\_ACEOF
21575 # CONFIG_COMMANDS section.
21577 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21578 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21579 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21580 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21581 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21582 X"$ac_dest" : 'X\(//\)[^/]' \| \
21583 X"$ac_dest" : 'X\(//\)$' \| \
21584 X"$ac_dest" : 'X\(/\)' \| \
21585 . : '\(.\)' 2>/dev/null ||
21587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21589 /^X\(\/\/\)$/{ s//\1/; q; }
21590 /^X\(\/\).*/{ s//\1/; q; }
21592 { if $as_mkdir_p; then
21597 while test ! -d "$as_dir"; do
21598 as_dirs="$as_dir $as_dirs"
21599 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21601 X"$as_dir" : 'X\(//\)[^/]' \| \
21602 X"$as_dir" : 'X\(//\)$' \| \
21603 X"$as_dir" : 'X\(/\)' \| \
21604 . : '\(.\)' 2>/dev/null ||
21606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21608 /^X\(\/\/\)$/{ s//\1/; q; }
21609 /^X\(\/\).*/{ s//\1/; q; }
21612 test ! -n "$as_dirs" || mkdir $as_dirs
21613 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21615 { (exit 1); exit 1; }; }; }
21619 if test "$ac_dir" != .; then
21620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21621 # A "../" for each directory in $ac_dir_suffix.
21622 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21624 ac_dir_suffix= ac_top_builddir=
21628 .) # No --srcdir option. We are building in place.
21630 if test -z "$ac_top_builddir"; then
21633 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21635 [\\/]* | ?:[\\/]* ) # Absolute path.
21636 ac_srcdir=$srcdir$ac_dir_suffix;
21637 ac_top_srcdir=$srcdir ;;
21638 *) # Relative path.
21639 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21640 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21643 # Do not use `cd foo && pwd` to compute absolute paths, because
21644 # the directories may not exist.
21646 .) ac_abs_builddir="$ac_dir";;
21649 .) ac_abs_builddir=`pwd`;;
21650 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21651 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21654 case $ac_abs_builddir in
21655 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21657 case ${ac_top_builddir}. in
21658 .) ac_abs_top_builddir=$ac_abs_builddir;;
21659 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21660 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21663 case $ac_abs_builddir in
21664 .) ac_abs_srcdir=$ac_srcdir;;
21667 .) ac_abs_srcdir=$ac_abs_builddir;;
21668 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21669 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21672 case $ac_abs_builddir in
21673 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21675 case $ac_top_srcdir in
21676 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21677 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21678 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21683 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21684 echo "$as_me: executing $ac_dest commands" >&6;}
21686 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21687 # Strip MF so we end up with the name of the file.
21688 mf=`echo "$mf" | sed -e 's/:.*$//'`
21689 # Check whether this is an Automake generated Makefile or not.
21690 # We used to match only the files named `Makefile.in', but
21691 # some people rename them; so instead we look at the file content.
21692 # Grep'ing the first line is not enough: some people post-process
21693 # each Makefile.in and add a new line on top of each file to say so.
21694 # So let's grep whole file.
21695 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21696 dirpart=`(dirname "$mf") 2>/dev/null ||
21697 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21698 X"$mf" : 'X\(//\)[^/]' \| \
21699 X"$mf" : 'X\(//\)$' \| \
21700 X"$mf" : 'X\(/\)' \| \
21701 . : '\(.\)' 2>/dev/null ||
21703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21705 /^X\(\/\/\)$/{ s//\1/; q; }
21706 /^X\(\/\).*/{ s//\1/; q; }
21711 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21712 # Extract the definition of DEP_FILES from the Makefile without
21714 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21715 test -z "$DEPDIR" && continue
21716 # When using ansi2knr, U may be empty or an underscore; expand it
21717 U=`sed -n -e '/^U = / s///p' < "$mf"`
21718 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21719 # We invoke sed twice because it is the simplest approach to
21720 # changing $(DEPDIR) to its actual value in the expansion.
21721 for file in `sed -n -e '
21722 /^DEP_FILES = .*\\\\$/ {
21731 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21732 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21733 # Make sure the directory exists.
21734 test -f "$dirpart/$file" && continue
21735 fdir=`(dirname "$file") 2>/dev/null ||
21736 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737 X"$file" : 'X\(//\)[^/]' \| \
21738 X"$file" : 'X\(//\)$' \| \
21739 X"$file" : 'X\(/\)' \| \
21740 . : '\(.\)' 2>/dev/null ||
21742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21744 /^X\(\/\/\)$/{ s//\1/; q; }
21745 /^X\(\/\).*/{ s//\1/; q; }
21747 { if $as_mkdir_p; then
21748 mkdir -p $dirpart/$fdir
21750 as_dir=$dirpart/$fdir
21752 while test ! -d "$as_dir"; do
21753 as_dirs="$as_dir $as_dirs"
21754 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21756 X"$as_dir" : 'X\(//\)[^/]' \| \
21757 X"$as_dir" : 'X\(//\)$' \| \
21758 X"$as_dir" : 'X\(/\)' \| \
21759 . : '\(.\)' 2>/dev/null ||
21761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21763 /^X\(\/\/\)$/{ s//\1/; q; }
21764 /^X\(\/\).*/{ s//\1/; q; }
21767 test ! -n "$as_dirs" || mkdir $as_dirs
21768 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21769 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21770 { (exit 1); exit 1; }; }; }
21772 # echo "creating $dirpart/$file"
21773 echo '# dummy' > "$dirpart/$file"
21781 cat >>$CONFIG_STATUS <<\_ACEOF
21783 { (exit 0); exit 0; }
21785 chmod +x $CONFIG_STATUS
21786 ac_clean_files=$ac_clean_files_save
21789 # configure is writing to config.log, and then calls config.status.
21790 # config.status does its own redirection, appending to config.log.
21791 # Unfortunately, on DOS this fails, as config.log is still kept open
21792 # by configure, so config.status won't be able to write to it; its
21793 # output is simply discarded. So we exec the FD to /dev/null,
21794 # effectively closing config.log, so it can be properly (re)opened and
21795 # appended to by config.status. When coming back to configure, we
21796 # need to make the FD available again.
21797 if test "$no_create" != yes; then
21799 ac_config_status_args=
21800 test "$silent" = yes &&
21801 ac_config_status_args="$ac_config_status_args --quiet"
21803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21806 # would make configure fail if this is the last instruction.
21807 $ac_cs_success || { (exit 1); exit 1; }