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 mkdir_p 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 EMACSLOADPATH 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 MINGWGCC_TRUE MINGWGCC_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS WATCOM_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_EMACS_set=${EMACS+set}
772 ac_env_EMACS_value=$EMACS
773 ac_cv_env_EMACS_set=${EMACS+set}
774 ac_cv_env_EMACS_value=$EMACS
775 ac_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
776 ac_env_EMACSLOADPATH_value=$EMACSLOADPATH
777 ac_cv_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
778 ac_cv_env_EMACSLOADPATH_value=$EMACSLOADPATH
779 ac_env_CC_set=${CC+set}
781 ac_cv_env_CC_set=${CC+set}
782 ac_cv_env_CC_value=$CC
783 ac_env_CFLAGS_set=${CFLAGS+set}
784 ac_env_CFLAGS_value=$CFLAGS
785 ac_cv_env_CFLAGS_set=${CFLAGS+set}
786 ac_cv_env_CFLAGS_value=$CFLAGS
787 ac_env_CPP_set=${CPP+set}
788 ac_env_CPP_value=$CPP
789 ac_cv_env_CPP_set=${CPP+set}
790 ac_cv_env_CPP_value=$CPP
793 # Report the --help message.
795 if test "$ac_init_help" = "long"; then
796 # Omit some internal or obsolete options to make the list less imposing.
797 # This message is too long to be a string in the A/UX 3.1 sh.
799 \`configure' configures TiMidity++ 2.13.2 to adapt to many kinds of systems.
801 Usage: $0 [OPTION]... [VAR=VALUE]...
803 To assign environment variables (e.g., CC, CFLAGS...), specify them as
804 VAR=VALUE. See below for descriptions of some of the useful variables.
806 Defaults for the options are specified in brackets.
809 -h, --help display this help and exit
810 --help=short display options specific to this package
811 --help=recursive display the short help of all the included packages
812 -V, --version display version information and exit
813 -q, --quiet, --silent do not print \`checking...' messages
814 --cache-file=FILE cache test results in FILE [disabled]
815 -C, --config-cache alias for \`--cache-file=config.cache'
816 -n, --no-create do not create output files
817 --srcdir=DIR find the sources in DIR [configure dir or \`..']
822 Installation directories:
823 --prefix=PREFIX install architecture-independent files in PREFIX
825 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
828 By default, \`make install' will install all the files in
829 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
830 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
831 for instance \`--prefix=\$HOME'.
833 For better control, use the options below.
835 Fine tuning of the installation directories:
836 --bindir=DIR user executables [EPREFIX/bin]
837 --sbindir=DIR system admin executables [EPREFIX/sbin]
838 --libexecdir=DIR program executables [EPREFIX/libexec]
839 --datadir=DIR read-only architecture-independent data [PREFIX/share]
840 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
841 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
842 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
843 --libdir=DIR object code libraries [EPREFIX/lib]
844 --includedir=DIR C header files [PREFIX/include]
845 --oldincludedir=DIR C header files for non-gcc [/usr/include]
846 --infodir=DIR info documentation [PREFIX/info]
847 --mandir=DIR man documentation [PREFIX/man]
853 --program-prefix=PREFIX prepend PREFIX to installed program names
854 --program-suffix=SUFFIX append SUFFIX to installed program names
855 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
858 --x-includes=DIR X include files are in DIR
859 --x-libraries=DIR X library files are in DIR
862 --build=BUILD configure for building on BUILD [guessed]
863 --host=HOST cross-compile to build programs to run on HOST [BUILD]
864 --target=TARGET configure for building compilers for TARGET [HOST]
868 if test -n "$ac_init_help"; then
869 case $ac_init_help in
870 short | recursive ) echo "Configuration of TiMidity++ 2.13.2:";;
875 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
876 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
877 --enable-maintainer-mode enable make rules and dependencies not useful
878 (and sometimes confusing) to the casual installer
879 --disable-dependency-tracking speeds up one-time build
880 --enable-dependency-tracking do not reject slow dependency extractors
881 --enable-debug Build a debugging version.
882 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
883 default: Automatically select audio device.
885 sun: SunOS /dev/audio
886 hpux: HPUX /dev/audio
887 irix: IRIX audio library
889 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
891 darwin: Darwin CoreAudio
892 alsa: ALSA pcm device
893 alib: HPUX network audio (Alib)
894 nas: NAS - Network Audio System
896 esd: EsounD - Enlightened Sound Daemon
903 gogo: MP3 GOGO (Only Windows is supported)
904 --disable-alsatest Do not try to compile and run a test Alsa program
905 --disable-artstest Do not try to compile and run a test ARTS program
906 --disable-esdtest Do not try to compile and run a test ESD program
907 --disable-aotest Do not try to compile and run a test ao program
908 --disable-oggtest Do not try to compile and run a test Ogg program
909 --disable-vorbistest Do not try to compile and run a test Vorbis program
910 --disable-libFLACtest Do not try to compile and run a test libFLAC program
911 --disable-libOggFLACtest Do not try to compile and run a test libOggFLAC program
912 --enable-interface=interface_list
913 Comma separated interface list
914 --enable-dynamic Enable dynamic link interface (default is no)
915 --enable-dynamic=dynamic_list
916 Comma separated dynamic interface list
917 --enable-ncurses Enable ncurses interface (default is no)
918 --enable-slang Enable slang interface (default is no)
919 --enable-motif Enable motif interface (default is no)
920 --enable-tcltk Enable tcltk interface (default is no)
921 --enable-emacs Enable emacs interface (default is no)
922 --enable-vt100 Enable VT100 interface (default is no)
923 --enable-xaw Enable athena interface (default is no)
924 --enable-xskin Enable X skin interface (default is no)
925 --enable-gtk Enable GTK+ interface (default is no)
926 --disable-gtktest do not try to compile and run a test GTK+ program
927 --disable-gtktest Do not try to compile and run a test GTK program
928 --enable-server Enable server interface (default is no)
929 --enable-alsaseq Enable ALSA sequencer server interface
931 --enable-winsyn Enable Windows Synthesizer interface
933 --enable-portmidisyn Enable PortMIDI Synthesizer interface
935 --enable-winsyng Enable Windows GUI Synthesizer interface
937 --enable-w32gui Enable Windows GUI interface (default is no)
938 --enable-ump UMP configuration (default is no)
939 --enable-windrv Windows Driver interface(requires winsyn)
940 --enable-offix Enable offix support (default is no)
941 --enable-network Enable network support (default is no)
942 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
943 --enable-spline=method Specify spline method.
944 one of no,linear,cubic,lagrange,newton,gauss
946 --enable-wrd Enable WRD interface for X (default is no)
949 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
950 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
951 --with-includes=DIR Specify include directories (colon separated)
952 --with-libraries=DIR Specify library directories (colon separated)
953 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
954 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
955 --with-lispdir override the default lisp directory
956 --with-elf create ELF shared object instead of AOUT
957 --with-x use the X Window System
958 --with-tcl-includes=DIR Tcl include file path
959 --with-tcl-libs=DIR Tcl library file path
960 --with-tk-includes=DIR Tk include file path
961 --with-tk-libs=DIR Tk library file path
962 --with-offix-includes=DIR Offix include file path
963 --with-offix-libs=DIR Offix include file path
964 --with-nas-library=library NAS absolute library path(Don't use -laudio)
965 --with-nas-includes=DIR NAS include files are in dir
966 --with-default-output=<mode> Specify default output mode (optional):
967 (default|alsa|alib|arts|nas|
968 esd|wav|au|aiff|list|vorbis|flac|speex|
969 gogo|portaudio|jack|ao)
970 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
971 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
972 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
973 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
974 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
975 --with-ao=PFX Prefix where libao is installed (optional)
976 --with-ao-libraries=DIR Directory where libao library is installed (optional)
977 --with-ao-includes=DIR Directory where libao header files are installed (optional)
978 --with-ogg=PFX Prefix where libogg is installed (optional)
979 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
980 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
981 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
982 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
983 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
984 --with-libFLAC=PFX Prefix where libFLAC is installed (optional)
985 --with-libFLAC-libraries=DIR Directory where libFLAC library is installed (optional)
986 --with-libFLAC-includes=DIR Directory where libFLAC header files are installed (optional)
987 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional)
988 --with-libOggFLAC-libraries=DIR Directory where libOggFLAC library is installed (optional)
989 --with-libOggFLAC-includes=DIR Directory where libOggFLAC header files are installed (optional)
990 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
991 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
993 Some influential environment variables:
994 CXX C++ compiler command
995 CXXFLAGS C++ compiler flags
996 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
997 nonstandard directory <lib dir>
998 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
999 headers in a nonstandard directory <include dir>
1000 EMACS the Emacs editor command
1002 the Emacs library search path
1003 CC C compiler command
1004 CFLAGS C compiler flags
1007 Use these variables to override the choices made by `configure' or to help
1008 it to find libraries and programs with nonstandard names/locations.
1010 Report bugs to <root@mput.dip.jp>.
1014 if test "$ac_init_help" = "recursive"; then
1015 # If there are subdirs, report their specific --help.
1017 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1018 test -d $ac_dir || continue
1021 if test "$ac_dir" != .; then
1022 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1023 # A "../" for each directory in $ac_dir_suffix.
1024 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1026 ac_dir_suffix= ac_top_builddir=
1030 .) # No --srcdir option. We are building in place.
1032 if test -z "$ac_top_builddir"; then
1035 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1037 [\\/]* | ?:[\\/]* ) # Absolute path.
1038 ac_srcdir=$srcdir$ac_dir_suffix;
1039 ac_top_srcdir=$srcdir ;;
1041 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1042 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1045 # Do not use `cd foo && pwd` to compute absolute paths, because
1046 # the directories may not exist.
1048 .) ac_abs_builddir="$ac_dir";;
1051 .) ac_abs_builddir=`pwd`;;
1052 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1053 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1056 case $ac_abs_builddir in
1057 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1059 case ${ac_top_builddir}. in
1060 .) ac_abs_top_builddir=$ac_abs_builddir;;
1061 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1062 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1065 case $ac_abs_builddir in
1066 .) ac_abs_srcdir=$ac_srcdir;;
1069 .) ac_abs_srcdir=$ac_abs_builddir;;
1070 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1071 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1074 case $ac_abs_builddir in
1075 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1077 case $ac_top_srcdir in
1078 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1080 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1085 # Check for guested configure; otherwise get Cygnus style configure.
1086 if test -f $ac_srcdir/configure.gnu; then
1088 $SHELL $ac_srcdir/configure.gnu --help=recursive
1089 elif test -f $ac_srcdir/configure; then
1091 $SHELL $ac_srcdir/configure --help=recursive
1092 elif test -f $ac_srcdir/configure.ac ||
1093 test -f $ac_srcdir/configure.in; then
1095 $ac_configure --help
1097 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1103 test -n "$ac_init_help" && exit 0
1104 if $ac_init_version; then
1106 TiMidity++ configure 2.13.2
1107 generated by GNU Autoconf 2.59
1109 Copyright (C) 2003 Free Software Foundation, Inc.
1110 This configure script is free software; the Free Software Foundation
1111 gives unlimited permission to copy, distribute and modify it.
1117 This file contains any messages produced by compilers while
1118 running configure, to aid debugging if configure makes a mistake.
1120 It was created by TiMidity++ $as_me 2.13.2, which was
1121 generated by GNU Autoconf 2.59. Invocation command line was
1132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1139 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1141 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1142 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1144 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1145 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1146 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1147 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1155 test -z "$as_dir" && as_dir=.
1156 echo "PATH: $as_dir"
1171 # Keep a trace of the command line.
1172 # Strip out --no-create and --no-recursion so they do not pile up.
1173 # Strip out --silent because we don't want to record it for future runs.
1174 # Also quote any args containing shell meta-characters.
1175 # Make two passes to allow for proper duplicate-argument suppression.
1180 ac_must_keep_next=false
1186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1190 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1191 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1194 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1196 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1197 if test $ac_must_keep_next = true; then
1198 ac_must_keep_next=false # Got value, back to normal.
1201 *=* | --config-cache | -C | -disable-* | --disable-* \
1202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1204 | -with-* | --with-* | -without-* | --without-* | --x)
1205 case "$ac_configure_args0 " in
1206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1209 -* ) ac_must_keep_next=true ;;
1212 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1213 # Get rid of the leading space.
1219 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1220 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1222 # When interrupted or exit'd, cleanup temporary files, and complete
1223 # config.log. We remove comments because anyway the quotes in there
1224 # would cause problems or look ugly.
1225 # WARNING: Be sure not to use single quotes in there, as some shells,
1226 # such as our DU 5.0 friend, will then `close' the trap.
1227 trap 'exit_status=$?
1228 # Save into config.log some information that might help in debugging.
1233 ## ---------------- ##
1234 ## Cache variables. ##
1235 ## ---------------- ##
1238 # The following way of writing the cache mishandles newlines in values,
1241 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1244 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1249 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1256 ## ----------------- ##
1257 ## Output variables. ##
1258 ## ----------------- ##
1261 for ac_var in $ac_subst_vars
1263 eval ac_val=$`echo $ac_var`
1264 echo "$ac_var='"'"'$ac_val'"'"'"
1268 if test -n "$ac_subst_files"; then
1275 for ac_var in $ac_subst_files
1277 eval ac_val=$`echo $ac_var`
1278 echo "$ac_var='"'"'$ac_val'"'"'"
1283 if test -s confdefs.h; then
1290 sed "/^$/d" confdefs.h | sort
1293 test "$ac_signal" != 0 &&
1294 echo "$as_me: caught signal $ac_signal"
1295 echo "$as_me: exit $exit_status"
1297 rm -f core *.core &&
1298 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1301 for ac_signal in 1 2 13 15; do
1302 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1306 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1307 rm -rf conftest* confdefs.h
1308 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1311 # Predefined preprocessor variables.
1313 cat >>confdefs.h <<_ACEOF
1314 #define PACKAGE_NAME "$PACKAGE_NAME"
1318 cat >>confdefs.h <<_ACEOF
1319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1323 cat >>confdefs.h <<_ACEOF
1324 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_STRING "$PACKAGE_STRING"
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1338 # Let the site file select an alternate cache file if it wants to.
1339 # Prefer explicitly selected file to automatically selected ones.
1340 if test -z "$CONFIG_SITE"; then
1341 if test "x$prefix" != xNONE; then
1342 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1344 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1347 for ac_site_file in $CONFIG_SITE; do
1348 if test -r "$ac_site_file"; then
1349 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1350 echo "$as_me: loading site script $ac_site_file" >&6;}
1351 sed 's/^/| /' "$ac_site_file" >&5
1356 if test -r "$cache_file"; then
1357 # Some versions of bash will fail to source /dev/null (special
1358 # files actually), so we avoid doing that.
1359 if test -f "$cache_file"; then
1360 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1361 echo "$as_me: loading cache $cache_file" >&6;}
1363 [\\/]* | ?:[\\/]* ) . $cache_file;;
1364 *) . ./$cache_file;;
1368 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1369 echo "$as_me: creating cache $cache_file" >&6;}
1373 # Check that the precious variables saved in the cache have kept the same
1375 ac_cache_corrupted=false
1376 for ac_var in `(set) 2>&1 |
1377 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1378 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1379 eval ac_new_set=\$ac_env_${ac_var}_set
1380 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1381 eval ac_new_val="\$ac_env_${ac_var}_value"
1382 case $ac_old_set,$ac_new_set in
1384 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1385 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1386 ac_cache_corrupted=: ;;
1388 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1389 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1390 ac_cache_corrupted=: ;;
1393 if test "x$ac_old_val" != "x$ac_new_val"; then
1394 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1395 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1396 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1397 echo "$as_me: former value: $ac_old_val" >&2;}
1398 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1399 echo "$as_me: current value: $ac_new_val" >&2;}
1400 ac_cache_corrupted=:
1403 # Pass precious variables to config.status.
1404 if test "$ac_new_set" = set; then
1406 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1407 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1408 *) ac_arg=$ac_var=$ac_new_val ;;
1410 case " $ac_configure_args " in
1411 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1412 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1416 if $ac_cache_corrupted; then
1417 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1418 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1419 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1420 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1421 { (exit 1); exit 1; }; }
1425 ac_cpp='$CPP $CPPFLAGS'
1426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1457 for ac_dir in autoconf $srcdir/autoconf; do
1458 if test -f $ac_dir/install-sh; then
1460 ac_install_sh="$ac_aux_dir/install-sh -c"
1462 elif test -f $ac_dir/install.sh; then
1464 ac_install_sh="$ac_aux_dir/install.sh -c"
1466 elif test -f $ac_dir/shtool; then
1468 ac_install_sh="$ac_aux_dir/shtool install -c"
1472 if test -z "$ac_aux_dir"; then
1473 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1474 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1475 { (exit 1); exit 1; }; }
1477 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1478 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1479 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1481 # Make sure we can run config.sub.
1482 $ac_config_sub sun4 >/dev/null 2>&1 ||
1483 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1484 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1485 { (exit 1); exit 1; }; }
1487 echo "$as_me:$LINENO: checking build system type" >&5
1488 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1489 if test "${ac_cv_build+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 ac_cv_build_alias=$build_alias
1493 test -z "$ac_cv_build_alias" &&
1494 ac_cv_build_alias=`$ac_config_guess`
1495 test -z "$ac_cv_build_alias" &&
1496 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1497 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1498 { (exit 1); exit 1; }; }
1499 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1500 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1501 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1502 { (exit 1); exit 1; }; }
1505 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1506 echo "${ECHO_T}$ac_cv_build" >&6
1508 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1509 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1510 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1513 echo "$as_me:$LINENO: checking host system type" >&5
1514 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1515 if test "${ac_cv_host+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 ac_cv_host_alias=$host_alias
1519 test -z "$ac_cv_host_alias" &&
1520 ac_cv_host_alias=$ac_cv_build_alias
1521 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1522 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1523 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1524 { (exit 1); exit 1; }; }
1527 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1528 echo "${ECHO_T}$ac_cv_host" >&6
1530 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1535 echo "$as_me:$LINENO: checking target system type" >&5
1536 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1537 if test "${ac_cv_target+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 ac_cv_target_alias=$target_alias
1541 test "x$ac_cv_target_alias" = "x" &&
1542 ac_cv_target_alias=$ac_cv_host_alias
1543 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1544 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1545 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1546 { (exit 1); exit 1; }; }
1549 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1550 echo "${ECHO_T}$ac_cv_target" >&6
1551 target=$ac_cv_target
1552 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1553 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1554 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557 # The aliases save the names the user supplied, while $host etc.
1558 # will get canonicalized.
1559 test -n "$target_alias" &&
1560 test "$program_prefix$program_suffix$program_transform_name" = \
1562 program_prefix=${target_alias}-
1563 am__api_version="1.8"
1564 # Find a good install program. We prefer a C program (faster),
1565 # so one script is as good as another. But avoid the broken or
1566 # incompatible versions:
1567 # SysV /etc/install, /usr/sbin/install
1568 # SunOS /usr/etc/install
1569 # IRIX /sbin/install
1571 # AmigaOS /C/install, which installs bootblocks on floppy discs
1572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1575 # OS/2's system install, which has a completely different semantic
1576 # ./install, which can be erroneously created by make from ./install.sh.
1577 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1578 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1579 if test -z "$INSTALL"; then
1580 if test "${ac_cv_path_install+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 test -z "$as_dir" && as_dir=.
1588 # Account for people who put trailing slashes in PATH elements.
1590 ./ | .// | /cC/* | \
1591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1592 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1595 # OSF1 and SCO ODT 3.0 have their own names for install.
1596 # Don't use installbsd from OSF since it installs stuff as root
1598 for ac_prog in ginstall scoinst install; do
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1601 if test $ac_prog = install &&
1602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603 # AIX install. It has an incompatible calling convention.
1605 elif test $ac_prog = install &&
1606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1607 # program-specific install script used by HP pwplus--don't use.
1610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1622 if test "${ac_cv_path_install+set}" = set; then
1623 INSTALL=$ac_cv_path_install
1625 # As a last resort, use the slow shell script. We don't cache a
1626 # path for INSTALL within a source directory, because that will
1627 # break other packages using the cache if that directory is
1628 # removed, or if the path is relative.
1629 INSTALL=$ac_install_sh
1632 echo "$as_me:$LINENO: result: $INSTALL" >&5
1633 echo "${ECHO_T}$INSTALL" >&6
1635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1636 # It thinks the first close brace ends the variable substitution.
1637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1643 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1644 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1647 echo timestamp > conftest.file
1648 # Do `set' in a subshell so we don't clobber the current shell's
1649 # arguments. Must try -L first in case configure is actually a
1650 # symlink; some systems play weird games with the mod time of symlinks
1651 # (eg FreeBSD returns the mod time of the symlink's containing
1654 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1655 if test "$*" = "X"; then
1657 set X `ls -t $srcdir/configure conftest.file`
1660 if test "$*" != "X $srcdir/configure conftest.file" \
1661 && test "$*" != "X conftest.file $srcdir/configure"; then
1663 # If neither matched, then we have a broken ls. This can happen
1664 # if, for instance, CONFIG_SHELL is bash and it inherits a
1665 # broken ls alias from the environment. This has actually
1666 # happened. Such a system could not be considered "sane".
1667 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1668 alias in your environment" >&5
1669 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1670 alias in your environment" >&2;}
1671 { (exit 1); exit 1; }; }
1674 test "$2" = conftest.file
1680 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1681 Check your system clock" >&5
1682 echo "$as_me: error: newly created file is older than distributed files!
1683 Check your system clock" >&2;}
1684 { (exit 1); exit 1; }; }
1686 echo "$as_me:$LINENO: result: yes" >&5
1687 echo "${ECHO_T}yes" >&6
1688 test "$program_prefix" != NONE &&
1689 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1690 # Use a double $ so make ignores it.
1691 test "$program_suffix" != NONE &&
1692 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1693 # Double any \ or $. echo might interpret backslashes.
1694 # By default was `s,x,x', remove it if useless.
1695 cat <<\_ACEOF >conftest.sed
1696 s/[\\$]/&&/g;s/;s,x,x,$//
1698 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1701 # expand $ac_aux_dir to an absolute path
1702 am_aux_dir=`cd $ac_aux_dir && pwd`
1704 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1705 # Use eval to expand $SHELL
1706 if eval "$MISSING --run true"; then
1707 am_missing_run="$MISSING --run "
1710 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1711 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1714 if mkdir -p -- . 2>/dev/null; then
1715 # Keeping the `.' argument allows $(mkdir_p) to be used without
1716 # argument. Indeed, we sometimes output rules like
1717 # $(mkdir_p) $(somedir)
1718 # where $(somedir) is conditionally defined.
1719 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1720 # expensive solution, as it forces Make to start a sub-shell.)
1721 mkdir_p='mkdir -p -- .'
1723 # On NextStep and OpenStep, the `mkdir' command does not
1724 # recognize any option. It will interpret all options as
1725 # directories to create, and then abort because `.' already
1729 test -d $d && rmdir $d
1731 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732 if test -f "$ac_aux_dir/mkinstalldirs"; then
1733 mkdir_p='$(mkinstalldirs)'
1735 mkdir_p='$(install_sh) -d'
1739 for ac_prog in gawk mawk nawk awk
1741 # Extract the first word of "$ac_prog", so it can be a program name with args.
1742 set dummy $ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_AWK+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$AWK"; then
1749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_AWK="$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$AWK"; then
1769 echo "$as_me:$LINENO: result: $AWK" >&5
1770 echo "${ECHO_T}$AWK" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1776 test -n "$AWK" && break
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 cat >conftest.make <<\_ACEOF
1787 @echo 'ac_maketemp="$(MAKE)"'
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791 if test -n "$ac_maketemp"; then
1792 eval ac_cv_prog_make_${ac_make}_set=yes
1794 eval ac_cv_prog_make_${ac_make}_set=no
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799 echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 SET_MAKE="MAKE=${MAKE-make}"
1808 rm -rf .tst 2>/dev/null
1809 mkdir .tst 2>/dev/null
1810 if test -d .tst; then
1815 rmdir .tst 2>/dev/null
1817 # test to see if srcdir already configured
1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819 test -f $srcdir/config.status; then
1820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822 { (exit 1); exit 1; }; }
1825 # test whether we have cygpath
1826 if test -z "$CYGPATH_W"; then
1827 if (cygpath --version) >/dev/null 2>/dev/null; then
1828 CYGPATH_W='cygpath -w'
1835 # Define the identity of the package.
1836 PACKAGE='TiMidity++'
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE "$PACKAGE"
1845 cat >>confdefs.h <<_ACEOF
1846 #define VERSION "$VERSION"
1849 # Some tools Automake needs.
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1866 AMTAR=${AMTAR-"${am_missing_run}tar"}
1868 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1870 # Installed binaries are usually stripped using `strip' when the user
1871 # run `make install-strip'. However `strip' might not be the right
1872 # tool to use in cross-compilation environments, therefore Automake
1873 # will honor the `STRIP' environment variable to overrule this program.
1874 if test "$cross_compiling" != no; then
1875 if test -n "$ac_tool_prefix"; then
1876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}strip; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_STRIP+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$STRIP"; then
1884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 STRIP=$ac_cv_prog_STRIP
1903 if test -n "$STRIP"; then
1904 echo "$as_me:$LINENO: result: $STRIP" >&5
1905 echo "${ECHO_T}$STRIP" >&6
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1912 if test -z "$ac_cv_prog_STRIP"; then
1914 # Extract the first word of "strip", so it can be a program name with args.
1915 set dummy strip; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$ac_ct_STRIP"; then
1922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_ac_ct_STRIP="strip"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1942 if test -n "$ac_ct_STRIP"; then
1943 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1944 echo "${ECHO_T}$ac_ct_STRIP" >&6
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1952 STRIP="$ac_cv_prog_STRIP"
1956 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1958 # We need awk for the "check" target. The system "awk" is bad on
1964 ac_config_headers="$ac_config_headers config.h interface.h"
1966 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1967 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1968 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1969 if test "${enable_maintainer_mode+set}" = set; then
1970 enableval="$enable_maintainer_mode"
1971 USE_MAINTAINER_MODE=$enableval
1973 USE_MAINTAINER_MODE=no
1975 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1976 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1979 if test $USE_MAINTAINER_MODE = yes; then
1980 MAINTAINER_MODE_TRUE=
1981 MAINTAINER_MODE_FALSE='#'
1983 MAINTAINER_MODE_TRUE='#'
1984 MAINTAINER_MODE_FALSE=
1987 MAINT=$MAINTAINER_MODE_TRUE
1991 ac_cpp='$CXXCPP $CPPFLAGS'
1992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_CXX+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 if test -n "$CXX"; then
2006 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 if test -n "$CXX"; then
2026 echo "$as_me:$LINENO: result: $CXX" >&5
2027 echo "${ECHO_T}$CXX" >&6
2029 echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2033 test -n "$CXX" && break
2036 if test -z "$CXX"; then
2038 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2040 # Extract the first word of "$ac_prog", so it can be a program name with args.
2041 set dummy $ac_prog; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$ac_ct_CXX"; then
2048 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_ac_ct_CXX="$ac_prog"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2067 if test -n "$ac_ct_CXX"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2069 echo "${ECHO_T}$ac_ct_CXX" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2075 test -n "$ac_ct_CXX" && break
2077 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2083 # Provide some information about the compiler.
2084 echo "$as_me:$LINENO:" \
2085 "checking for C++ compiler version" >&5
2086 ac_compiler=`set X $ac_compile; echo $2`
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2088 (eval $ac_compiler --version </dev/null >&5) 2>&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2093 (eval $ac_compiler -v </dev/null >&5) 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2098 (eval $ac_compiler -V </dev/null >&5) 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2103 cat >conftest.$ac_ext <<_ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2118 ac_clean_files_save=$ac_clean_files
2119 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2120 # Try to create an executable without -o first, disregard a.out.
2121 # It will help us diagnose broken compilers, and finding out an intuition
2123 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2124 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2125 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2126 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2127 (eval $ac_link_default) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 # Find the output, starting from the most likely. This scheme is
2132 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2135 # Be careful to initialize this variable, since it used to be cached.
2136 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2138 # b.out is created by i960 compilers.
2139 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2141 test -f "$ac_file" || continue
2143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2146 # This is the source file.
2149 # We found the default executable, but exeext='' is most
2153 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2154 # FIXME: I believe we export ac_cv_exeext for Libtool,
2155 # but it would be cool to find out if it's true. Does anybody
2156 # maintain Libtool? --akim.
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2167 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: C++ compiler cannot create executables
2170 See \`config.log' for more details." >&2;}
2171 { (exit 77); exit 77; }; }
2174 ac_exeext=$ac_cv_exeext
2175 echo "$as_me:$LINENO: result: $ac_file" >&5
2176 echo "${ECHO_T}$ac_file" >&6
2178 # Check the compiler produces executables we can run. If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2181 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2182 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2183 # If not cross compiling, check that we can run a simple program.
2184 if test "$cross_compiling" != yes; then
2185 if { ac_try='./$ac_file'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2193 if test "$cross_compiling" = maybe; then
2196 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2197 If you meant to cross compile, use \`--host'.
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: cannot run C++ compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&2;}
2202 { (exit 1); exit 1; }; }
2206 echo "$as_me:$LINENO: result: yes" >&5
2207 echo "${ECHO_T}yes" >&6
2209 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2210 ac_clean_files=$ac_clean_files_save
2211 # Check the compiler produces executables we can run. If not, either
2212 # the compiler is broken, or we cross compile.
2213 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2214 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2215 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2216 echo "${ECHO_T}$cross_compiling" >&6
2218 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2219 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2221 (eval $ac_link) 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; then
2225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2227 # work properly (i.e., refer to `conftest.exe'), while it won't with
2229 for ac_file in conftest.exe conftest conftest.*; do
2230 test -f "$ac_file" || continue
2232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2247 rm -f conftest$ac_cv_exeext
2248 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2249 echo "${ECHO_T}$ac_cv_exeext" >&6
2251 rm -f conftest.$ac_ext
2252 EXEEXT=$ac_cv_exeext
2254 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2255 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2256 if test "${ac_cv_objext+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 cat >conftest.$ac_ext <<_ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2274 rm -f conftest.o conftest.obj
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; then
2280 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2283 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2294 See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2298 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2300 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2301 echo "${ECHO_T}$ac_cv_objext" >&6
2302 OBJEXT=$ac_cv_objext
2304 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2305 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2306 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 cat >conftest.$ac_ext <<_ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>conftest.er1
2331 grep -v '^ *+' conftest.er1 >conftest.err
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try='test -z "$ac_cxx_werror_flag"
2337 || test ! -s conftest.err'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2360 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2361 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2362 GXX=`test $ac_compiler_gnu = yes && echo yes`
2363 ac_test_CXXFLAGS=${CXXFLAGS+set}
2364 ac_save_CXXFLAGS=$CXXFLAGS
2366 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2367 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2368 if test "${ac_cv_prog_cxx_g+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 cat >conftest.$ac_ext <<_ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_cxx_werror_flag"
2396 || test ! -s conftest.err'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2408 ac_cv_prog_cxx_g=yes
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2417 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2418 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2419 if test "$ac_test_CXXFLAGS" = set; then
2420 CXXFLAGS=$ac_save_CXXFLAGS
2421 elif test $ac_cv_prog_cxx_g = yes; then
2422 if test "$GXX" = yes; then
2428 if test "$GXX" = yes; then
2434 for ac_declaration in \
2436 'extern "C" void std::exit (int) throw (); using std::exit;' \
2437 'extern "C" void std::exit (int); using std::exit;' \
2438 'extern "C" void exit (int) throw ();' \
2439 'extern "C" void exit (int);' \
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2462 grep -v '^ *+' conftest.er1 >conftest.err
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_cxx_werror_flag"
2468 || test ! -s conftest.err'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2507 grep -v '^ *+' conftest.er1 >conftest.err
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -z "$ac_cxx_werror_flag"
2513 || test ! -s conftest.err'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534 if test -n "$ac_declaration"; then
2535 echo '#ifdef __cplusplus' >>confdefs.h
2536 echo $ac_declaration >>confdefs.h
2537 echo '#endif' >>confdefs.h
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 DEPDIR="${am__leading_dot}deps"
2547 ac_config_commands="$ac_config_commands depfiles"
2550 am_make=${MAKE-make}
2551 cat > confinc << 'END'
2556 # If we don't find an include directive, just comment out the code.
2557 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2558 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2562 # First try GNU make style include.
2563 echo "include confinc" > confmf
2564 # We grep out `Entering directory' and `Leaving directory'
2565 # messages which can occur if `w' ends up in MAKEFLAGS.
2566 # In particular we don't look at `^make:' because GNU make might
2567 # be invoked under some other name (usually "gmake"), in which
2568 # case it prints its new name instead of `make'.
2569 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2574 # Now try BSD make style include.
2575 if test "$am__include" = "#"; then
2576 echo '.include "confinc"' > confmf
2577 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2578 am__include=.include
2585 echo "$as_me:$LINENO: result: $_am_result" >&5
2586 echo "${ECHO_T}$_am_result" >&6
2587 rm -f confinc confmf
2589 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2590 if test "${enable_dependency_tracking+set}" = set; then
2591 enableval="$enable_dependency_tracking"
2594 if test "x$enable_dependency_tracking" != xno; then
2595 am_depcomp="$ac_aux_dir/depcomp"
2600 if test "x$enable_dependency_tracking" != xno; then
2611 depcc="$CXX" am_compiler_list=
2613 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2614 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2615 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2619 # We make a subdir and do the tests there. Otherwise we can end up
2620 # making bogus files that we don't know about and never remove. For
2621 # instance it was reported that on HP-UX the gcc test will end up
2622 # making a dummy file named `D' -- because `-MD' means `put the output
2625 # Copy depcomp to subdir because otherwise we won't find it if we're
2626 # using a relative directory.
2627 cp "$am_depcomp" conftest.dir
2629 # We will build objects and dependencies in a subdirectory because
2630 # it helps to detect inapplicable dependency modes. For instance
2631 # both Tru64's cc and ICC support -MD to output dependencies as a
2632 # side effect of compilation, but ICC will put the dependencies in
2633 # the current directory while Tru64 will put them in the object
2637 am_cv_CXX_dependencies_compiler_type=none
2638 if test "$am_compiler_list" = ""; then
2639 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2641 for depmode in $am_compiler_list; do
2642 # Setup a source with many dependencies, because some compilers
2643 # like to wrap large dependency lists on column 80 (with \), and
2644 # we should not choose a depcomp mode which is confused by this.
2646 # We need to recreate these files for each test, as the compiler may
2647 # overwrite some of them when testing with obscure command lines.
2648 # This happens at least with the AIX C compiler.
2650 for i in 1 2 3 4 5 6; do
2651 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2658 # after this tag, mechanisms are not by side-effect, so they'll
2659 # only be used when explicitly requested
2660 if test "x$enable_dependency_tracking" = xyes; then
2668 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2669 # mode. It turns out that the SunPro C++ compiler does not properly
2670 # handle `-M -o', and we need to detect this.
2671 if depmode=$depmode \
2672 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2674 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2675 >/dev/null 2>conftest.err &&
2676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2677 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2679 # icc doesn't choke on unknown options, it will just issue warnings
2680 # (even with -Werror). So we grep stderr for any message
2681 # that says an option was ignored.
2682 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2683 am_cv_CXX_dependencies_compiler_type=$depmode
2692 am_cv_CXX_dependencies_compiler_type=none
2696 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2697 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2698 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2703 test "x$enable_dependency_tracking" != xno \
2704 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2705 am__fastdepCXX_TRUE=
2706 am__fastdepCXX_FALSE='#'
2708 am__fastdepCXX_TRUE='#'
2709 am__fastdepCXX_FALSE=
2714 SHELL=${CONFIG_SHELL-"/bin/sh"}
2717 echo "$as_me:$LINENO: checking whether grep returns status" >&5
2718 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
2719 echo "grimblepritz" >grimble
2720 if grep blurfldyick grimble >/dev/null 2>&1 ; then
2721 contains="./contains"
2722 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
2725 contains="./contains"
2729 grep) echo "$as_me:$LINENO: result: yes" >&5
2730 echo "${ECHO_T}yes" >&6
2733 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
2734 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
2735 cat >./contains <<'EOSS'
2736 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2738 chmod +x "./contains"
2743 # Check for compiler options -- such as debug flags.
2745 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2746 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
2747 # Check whether --enable-debug or --disable-debug was given.
2748 if test "${enable_debug+set}" = set; then
2749 enableval="$enable_debug"
2750 timidity_cv_debug="yes"
2752 timidity_cv_debug="no"
2754 if test "x$timidity_cv_debug" = "xyes"; then
2756 cat >>confdefs.h <<\_ACEOF
2760 CFLAGS=${CFLAGS-"-g"}
2762 if test "x$timidity_cv_debug" = "xno"; then
2764 cat >>confdefs.h <<\_ACEOF
2769 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2770 echo "${ECHO_T}$timidity_cv_debug" >&6
2772 CFLAGS=${CFLAGS-"-O2"}
2774 if test "x$with_x" = x; then
2780 # Checking gcc environment
2781 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2782 LDFLAGS="$LDFLAGS -L${i}"
2784 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2785 CPPFLAGS="$CPPFLAGS -I${i}"
2788 # add $prefix if specified.
2789 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2790 LDFLAGS="-L$prefix/lib $LDFLAGS"
2791 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2792 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2796 # Check whether --with-includes or --without-includes was given.
2797 if test "${with_includes+set}" = set; then
2798 withval="$with_includes"
2800 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2803 CPPFLAGS="$j$CPPFLAGS"
2808 # Check whether --with-libraries or --without-libraries was given.
2809 if test "${with_libraries+set}" = set; then
2810 withval="$with_libraries"
2812 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2815 LDFLAGS="$j$LDFLAGS"
2821 # Check whether --with-default-path or --without-default-path was given.
2822 if test "${with_default_path+set}" = set; then
2823 withval="$with_default_path"
2827 if test "x$prefix" != "xNONE"; then
2828 pkgdatadir='${prefix}/share/timidity'
2830 pkgdatadir='/usr/local/share/timidity'
2834 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2836 cat >>confdefs.h <<_ACEOF
2837 #define DEFAULT_PATH "$tmpdefpath"
2841 cat >>confdefs.h <<\_ACEOF
2842 #define PKGDATADIR DEFAULT_PATH
2847 # Check whether --with-module-dir or --without-module-dir was given.
2848 if test "${with_module_dir+set}" = set; then
2849 withval="$with_module_dir"
2853 if test "x$prefix" != "xNONE"; then
2854 pkglibdir='${prefix}/lib/timidity'
2856 pkglibdir='/usr/local/lib/timidity'
2860 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2862 cat >>confdefs.h <<_ACEOF
2863 #define PKGLIBDIR "$tmplibdir"
2868 # Checks for programs.
2869 # If set to t, that means we are running in a shell under Emacs.
2870 # If you have an Emacs named "t", then use the full path.
2871 test x"$EMACS" = xt && EMACS=
2872 for ac_prog in emacs xemacs
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_EMACS+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 if test -n "$EMACS"; then
2882 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_EMACS="$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 EMACS=$ac_cv_prog_EMACS
2901 if test -n "$EMACS"; then
2902 echo "$as_me:$LINENO: result: $EMACS" >&5
2903 echo "${ECHO_T}$EMACS" >&6
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2909 test -n "$EMACS" && break
2911 test -n "$EMACS" || EMACS="no"
2916 # Check whether --with-lispdir or --without-lispdir was given.
2917 if test "${with_lispdir+set}" = set; then
2918 withval="$with_lispdir"
2920 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2921 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2922 echo "$as_me:$LINENO: result: $lispdir" >&5
2923 echo "${ECHO_T}$lispdir" >&6
2926 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2927 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2928 if test "${am_cv_lispdir+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 if test $EMACS != "no"; then
2933 if test x${lispdir+set} != xset; then
2934 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2935 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2936 # which is non-obvious for non-emacs users.
2937 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2938 # emacsen earlier and avoid running this altogether.
2939 { (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
2940 ($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
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }
2944 am_cv_lispdir=`sed -n \
2946 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2947 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2952 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
2955 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2956 echo "${ECHO_T}$am_cv_lispdir" >&6
2957 lispdir="$am_cv_lispdir"
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970 echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2972 if test "${ac_cv_prog_CC+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 if test -n "$CC"; then
2996 echo "$as_me:$LINENO: result: $CC" >&5
2997 echo "${ECHO_T}$CC" >&6
2999 echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6
3004 if test -z "$ac_cv_prog_CC"; then
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3035 echo "${ECHO_T}$ac_ct_CC" >&6
3037 echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3046 if test -z "$CC"; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}cc; ac_word=$2
3050 echo "$as_me:$LINENO: checking for $ac_word" >&5
3051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3052 if test "${ac_cv_prog_CC+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_CC="${ac_tool_prefix}cc"
3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 if test -n "$CC"; then
3076 echo "$as_me:$LINENO: result: $CC" >&5
3077 echo "${ECHO_T}$CC" >&6
3079 echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3084 if test -z "$ac_cv_prog_CC"; then
3086 # Extract the first word of "cc", so it can be a program name with args.
3087 set dummy cc; ac_word=$2
3088 echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 if test -n "$ac_ct_CC"; then
3094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_CC="cc"
3104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3115 echo "${ECHO_T}$ac_ct_CC" >&6
3117 echo "$as_me:$LINENO: result: no" >&5
3118 echo "${ECHO_T}no" >&6
3127 if test -z "$CC"; then
3128 # Extract the first word of "cc", so it can be a program name with args.
3129 set dummy cc; ac_word=$2
3130 echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132 if test "${ac_cv_prog_CC+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147 ac_prog_rejected=yes
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 if test $ac_prog_rejected = yes; then
3158 # We found a bogon in the path, so make sure we never use it.
3159 set dummy $ac_cv_prog_CC
3161 if test $# != 0; then
3162 # We chose a different compiler from the bogus one.
3163 # However, it has the same basename, so the bogon will be chosen
3164 # first if we set CC to just the basename; use the full file name.
3166 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3172 if test -n "$CC"; then
3173 echo "$as_me:$LINENO: result: $CC" >&5
3174 echo "${ECHO_T}$CC" >&6
3176 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3181 if test -z "$CC"; then
3182 if test -n "$ac_tool_prefix"; then
3185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3187 echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189 if test "${ac_cv_prog_CC+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 if test -n "$CC"; then
3193 ac_cv_prog_CC="$CC" # Let the user override the test.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 if test -n "$CC"; then
3213 echo "$as_me:$LINENO: result: $CC" >&5
3214 echo "${ECHO_T}$CC" >&6
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3220 test -n "$CC" && break
3223 if test -z "$CC"; then
3227 # Extract the first word of "$ac_prog", so it can be a program name with args.
3228 set dummy $ac_prog; ac_word=$2
3229 echo "$as_me:$LINENO: checking for $ac_word" >&5
3230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 if test -n "$ac_ct_CC"; then
3235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_ac_ct_CC="$ac_prog"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254 if test -n "$ac_ct_CC"; then
3255 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3256 echo "${ECHO_T}$ac_ct_CC" >&6
3258 echo "$as_me:$LINENO: result: no" >&5
3259 echo "${ECHO_T}no" >&6
3262 test -n "$ac_ct_CC" && break
3271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: no acceptable C compiler found in \$PATH
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3277 # Provide some information about the compiler.
3278 echo "$as_me:$LINENO:" \
3279 "checking for C compiler version" >&5
3280 ac_compiler=`set X $ac_compile; echo $2`
3281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3282 (eval $ac_compiler --version </dev/null >&5) 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3287 (eval $ac_compiler -v </dev/null >&5) 2>&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }
3291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3292 (eval $ac_compiler -V </dev/null >&5) 2>&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }
3297 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3298 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3299 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag"
3330 || test ! -s conftest.err'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; } &&
3336 { ac_try='test -s conftest.$ac_objext'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3355 GCC=`test $ac_compiler_gnu = yes && echo yes`
3356 ac_test_CFLAGS=${CFLAGS+set}
3357 ac_save_CFLAGS=$CFLAGS
3359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3361 if test "${ac_cv_prog_cc_g+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>conftest.er1
3383 grep -v '^ *+' conftest.er1 >conftest.err
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -z "$ac_c_werror_flag"
3389 || test ! -s conftest.err'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; } &&
3395 { ac_try='test -s conftest.$ac_objext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3411 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3412 if test "$ac_test_CFLAGS" = set; then
3413 CFLAGS=$ac_save_CFLAGS
3414 elif test $ac_cv_prog_cc_g = yes; then
3415 if test "$GCC" = yes; then
3421 if test "$GCC" = yes; then
3427 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3428 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3429 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 ac_cv_prog_cc_stdc=no
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3442 #include <sys/types.h>
3443 #include <sys/stat.h>
3444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3445 struct buf { int x; };
3446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3447 static char *e (p, i)
3453 static char *f (char * (*g) (char **, int), char **p, ...)
3458 s = g (p, va_arg (v,int));
3463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3464 function prototypes and stuff, but not '\xHH' hex character constants.
3465 These don't provoke an error unfortunately, instead are silently treated
3466 as 'x'. The following induces an error, until -std1 is added to get
3467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3468 array size at least. It's necessary to write '\x00'==0 to get something
3469 that's true only with -std1. */
3470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3472 int test (int i, double x);
3473 struct s1 {int (*f) (int a);};
3474 struct s2 {int (*f) (double a);};
3475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3486 # Don't try gcc -ansi; that turns off useful extensions and
3487 # breaks some systems' header files.
3488 # AIX -qlanglvl=ansi
3489 # Ultrix and OSF/1 -std1
3490 # HP-UX 10.20 and later -Ae
3491 # HP-UX older versions -Aa -D_HPUX_SOURCE
3492 # SVR4 -Xc -D__EXTENSIONS__
3493 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495 CC="$ac_save_CC $ac_arg"
3496 rm -f conftest.$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498 (eval $ac_compile) 2>conftest.er1
3500 grep -v '^ *+' conftest.er1 >conftest.err
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try='test -z "$ac_c_werror_flag"
3506 || test ! -s conftest.err'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; } &&
3512 { ac_try='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 ac_cv_prog_cc_stdc=$ac_arg
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3525 rm -f conftest.err conftest.$ac_objext
3527 rm -f conftest.$ac_ext conftest.$ac_objext
3532 case "x$ac_cv_prog_cc_stdc" in
3534 echo "$as_me:$LINENO: result: none needed" >&5
3535 echo "${ECHO_T}none needed" >&6 ;;
3537 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3538 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3539 CC="$CC $ac_cv_prog_cc_stdc" ;;
3542 # Some people use a C++ compiler to compile C. Since we use `exit',
3543 # in C++ we need to declare it. In case someone uses the same compiler
3544 # for both compiling C and C++ we need to have the C++ compiler decide
3545 # the declaration of exit, since it's the most demanding environment.
3546 cat >conftest.$ac_ext <<_ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553 (eval $ac_compile) 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try='test -z "$ac_c_werror_flag"
3561 || test ! -s conftest.err'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; } &&
3567 { ac_try='test -s conftest.$ac_objext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 for ac_declaration in \
3575 'extern "C" void std::exit (int) throw (); using std::exit;' \
3576 'extern "C" void std::exit (int); using std::exit;' \
3577 'extern "C" void exit (int) throw ();' \
3578 'extern "C" void exit (int);' \
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3597 rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>conftest.er1
3601 grep -v '^ *+' conftest.er1 >conftest.err
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try='test -z "$ac_c_werror_flag"
3607 || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest.$ac_objext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3642 rm -f conftest.$ac_objext
3643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644 (eval $ac_compile) 2>conftest.er1
3646 grep -v '^ *+' conftest.er1 >conftest.err
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -z "$ac_c_werror_flag"
3652 || test ! -s conftest.err'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3673 if test -n "$ac_declaration"; then
3674 echo '#ifdef __cplusplus' >>confdefs.h
3675 echo $ac_declaration >>confdefs.h
3676 echo '#endif' >>confdefs.h
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 depcc="$CC" am_compiler_list=
3693 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3694 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3695 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named `D' -- because `-MD' means `put the output
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3717 am_cv_CC_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3721 for depmode in $am_compiler_list; do
3722 # Setup a source with many dependencies, because some compilers
3723 # like to wrap large dependency lists on column 80 (with \), and
3724 # we should not choose a depcomp mode which is confused by this.
3726 # We need to recreate these files for each test, as the compiler may
3727 # overwrite some of them when testing with obscure command lines.
3728 # This happens at least with the AIX C compiler.
3730 for i in 1 2 3 4 5 6; do
3731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3734 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3738 # after this tag, mechanisms are not by side-effect, so they'll
3739 # only be used when explicitly requested
3740 if test "x$enable_dependency_tracking" = xyes; then
3748 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3749 # mode. It turns out that the SunPro C++ compiler does not properly
3750 # handle `-M -o', and we need to detect this.
3751 if depmode=$depmode \
3752 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3753 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3754 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3755 >/dev/null 2>conftest.err &&
3756 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3757 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3759 # icc doesn't choke on unknown options, it will just issue warnings
3760 # (even with -Werror). So we grep stderr for any message
3761 # that says an option was ignored.
3762 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3763 am_cv_CC_dependencies_compiler_type=$depmode
3772 am_cv_CC_dependencies_compiler_type=none
3776 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3777 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3778 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3783 test "x$enable_dependency_tracking" != xno \
3784 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3786 am__fastdepCC_FALSE='#'
3788 am__fastdepCC_TRUE='#'
3789 am__fastdepCC_FALSE=
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3800 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3801 # On Suns, sometimes $CPP names a directory.
3802 if test -n "$CPP" && test -d "$CPP"; then
3805 if test -z "$CPP"; then
3806 if test "${ac_cv_prog_CPP+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 # Double quotes because CPP needs to be expanded
3810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3813 for ac_c_preproc_warn_flag in '' yes
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat >conftest.$ac_ext <<_ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3828 # include <limits.h>
3830 # include <assert.h>
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3837 grep -v '^ *+' conftest.er1 >conftest.err
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null; then
3842 if test -s conftest.err; then
3843 ac_cpp_err=$ac_c_preproc_warn_flag
3844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3851 if test -z "$ac_cpp_err"; then
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 # Broken: fails on valid input.
3860 rm -f conftest.err conftest.$ac_ext
3862 # OK, works on sane cases. Now check whether non-existent headers
3863 # can be detected and how.
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <ac_nonexistent.h>
3872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } >/dev/null; then
3880 if test -s conftest.err; then
3881 ac_cpp_err=$ac_c_preproc_warn_flag
3882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3889 if test -z "$ac_cpp_err"; then
3890 # Broken: success on invalid input.
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 # Passes both tests.
3900 rm -f conftest.err conftest.$ac_ext
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.err conftest.$ac_ext
3905 if $ac_preproc_ok; then
3917 echo "$as_me:$LINENO: result: $CPP" >&5
3918 echo "${ECHO_T}$CPP" >&6
3920 for ac_c_preproc_warn_flag in '' yes
3922 # Use a header file that comes with gcc, so configuring glibc
3923 # with a fresh cross-compiler works.
3924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925 # <limits.h> exists even on freestanding compilers.
3926 # On the NeXT, cc -E runs the code through the compiler's parser,
3927 # not just through cpp. "Syntax error" is here to catch this case.
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3935 # include <limits.h>
3937 # include <assert.h>
3941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3944 grep -v '^ *+' conftest.er1 >conftest.err
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } >/dev/null; then
3949 if test -s conftest.err; then
3950 ac_cpp_err=$ac_c_preproc_warn_flag
3951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3958 if test -z "$ac_cpp_err"; then
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964 # Broken: fails on valid input.
3967 rm -f conftest.err conftest.$ac_ext
3969 # OK, works on sane cases. Now check whether non-existent headers
3970 # can be detected and how.
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 #include <ac_nonexistent.h>
3979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1 >conftest.err
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } >/dev/null; then
3987 if test -s conftest.err; then
3988 ac_cpp_err=$ac_c_preproc_warn_flag
3989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3996 if test -z "$ac_cpp_err"; then
3997 # Broken: success on invalid input.
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 # Passes both tests.
4007 rm -f conftest.err conftest.$ac_ext
4010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011 rm -f conftest.err conftest.$ac_ext
4012 if $ac_preproc_ok; then
4015 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4016 See \`config.log' for more details." >&5
4017 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4018 See \`config.log' for more details." >&2;}
4019 { (exit 1); exit 1; }; }
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 echo "$as_me:$LINENO: checking for egrep" >&5
4030 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4031 if test "${ac_cv_prog_egrep+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4035 then ac_cv_prog_egrep='grep -E'
4036 else ac_cv_prog_egrep='egrep'
4039 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4040 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4041 EGREP=$ac_cv_prog_egrep
4044 if test $ac_cv_c_compiler_gnu = yes; then
4045 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4046 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4047 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_pattern="Autoconf.*'x'"
4051 cat >conftest.$ac_ext <<_ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4061 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4062 ac_cv_prog_gcc_traditional=yes
4064 ac_cv_prog_gcc_traditional=no
4069 if test $ac_cv_prog_gcc_traditional = no; then
4070 cat >conftest.$ac_ext <<_ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4080 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4081 ac_cv_prog_gcc_traditional=yes
4087 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4088 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4089 if test $ac_cv_prog_gcc_traditional = yes; then
4090 CC="$CC -traditional"
4094 # Find a good install program. We prefer a C program (faster),
4095 # so one script is as good as another. But avoid the broken or
4096 # incompatible versions:
4097 # SysV /etc/install, /usr/sbin/install
4098 # SunOS /usr/etc/install
4099 # IRIX /sbin/install
4101 # AmigaOS /C/install, which installs bootblocks on floppy discs
4102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4105 # OS/2's system install, which has a completely different semantic
4106 # ./install, which can be erroneously created by make from ./install.sh.
4107 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4108 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4109 if test -z "$INSTALL"; then
4110 if test "${ac_cv_path_install+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir=.
4118 # Account for people who put trailing slashes in PATH elements.
4120 ./ | .// | /cC/* | \
4121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4125 # OSF1 and SCO ODT 3.0 have their own names for install.
4126 # Don't use installbsd from OSF since it installs stuff as root
4128 for ac_prog in ginstall scoinst install; do
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4131 if test $ac_prog = install &&
4132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # AIX install. It has an incompatible calling convention.
4135 elif test $ac_prog = install &&
4136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137 # program-specific install script used by HP pwplus--don't use.
4140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4152 if test "${ac_cv_path_install+set}" = set; then
4153 INSTALL=$ac_cv_path_install
4155 # As a last resort, use the slow shell script. We don't cache a
4156 # path for INSTALL within a source directory, because that will
4157 # break other packages using the cache if that directory is
4158 # removed, or if the path is relative.
4159 INSTALL=$ac_install_sh
4162 echo "$as_me:$LINENO: result: $INSTALL" >&5
4163 echo "${ECHO_T}$INSTALL" >&6
4165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4166 # It thinks the first close brace ends the variable substitution.
4167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4173 for ac_prog in gawk mawk nawk awk
4175 # Extract the first word of "$ac_prog", so it can be a program name with args.
4176 set dummy $ac_prog; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_AWK+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 if test -n "$AWK"; then
4183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_AWK="$ac_prog"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 if test -n "$AWK"; then
4203 echo "$as_me:$LINENO: result: $AWK" >&5
4204 echo "${ECHO_T}$AWK" >&6
4206 echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4210 test -n "$AWK" && break
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_RANLIB+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$RANLIB"; then
4222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 RANLIB=$ac_cv_prog_RANLIB
4241 if test -n "$RANLIB"; then
4242 echo "$as_me:$LINENO: result: $RANLIB" >&5
4243 echo "${ECHO_T}$RANLIB" >&6
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4250 if test -z "$ac_cv_prog_RANLIB"; then
4251 ac_ct_RANLIB=$RANLIB
4252 # Extract the first word of "ranlib", so it can be a program name with args.
4253 set dummy ranlib; ac_word=$2
4254 echo "$as_me:$LINENO: checking for $ac_word" >&5
4255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 if test -n "$ac_ct_RANLIB"; then
4260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_ac_ct_RANLIB="ranlib"
4270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4280 if test -n "$ac_ct_RANLIB"; then
4281 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4288 RANLIB=$ac_ct_RANLIB
4290 RANLIB="$ac_cv_prog_RANLIB"
4293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4296 if test "$LN_S" = "ln -s"; then
4297 echo "$as_me:$LINENO: result: yes" >&5
4298 echo "${ECHO_T}yes" >&6
4300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4301 echo "${ECHO_T}no, using $LN_S" >&6
4304 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
4305 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
4306 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
4307 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 cat > conftest.$ac_ext <<EOF
4311 int main() {return 0;}
4313 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
4314 if test -s conftest.out; then
4315 eval "timidity_cv_ccoption_$ac_ccoption=no"
4317 eval "timidity_cv_ccoption_$ac_ccoption=yes"
4320 eval "timidity_cv_ccoption_$ac_ccoption=no"
4325 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
4326 echo "$as_me:$LINENO: result: yes" >&5
4327 echo "${ECHO_T}yes" >&6
4330 echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4336 # Checks for target dependencies
4339 # Check whether --with-elf or --without-elf was given.
4340 if test "${with_elf+set}" = set; then
4348 # [ --with-simd create SIMD friendly binary (default is no) ],
4349 # [ SIMD=$withval ], [ SIMD="no" ])
4354 test -n "$SHLD" || SHLD="ld -b"
4358 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
4359 test -n "$SHLD" || SHLD="cc -shared -all"
4363 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
4368 test -n "$SHLD" || SHLD="ld -Bshareable"
4372 if test "$ELFFORMAT" = yes; then
4373 test -n "$SHLD" || SHLD="ld -Bshareable"
4376 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
4377 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
4383 # EXTRALIBS="$EXTRALIBS -lxpg4"
4384 # test -n "$SHLD" || SHLD="ld -Bshareable"
4388 *-*-cygwin*|*-*-mingw*)
4389 EXTRADEFS="-D__W32__"
4393 # test -n "$SHLD" || SHLD="tlink32 -Tpd"
4394 test -n "$SHLD" || SHLD="BCC32 -WD"
4396 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
4397 BORLANDC_START='C0X32.OBJ'
4398 CFLAGS="$CFLAGS -tWM -VM"
4399 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4403 CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
4406 EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4409 test -n "$SHLD" || SHLD="link -dll"
4412 *" -MT "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4413 *" -MD "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4414 *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4415 *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4416 *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4418 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"
4419 CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX -Ob2"
4420 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c"
4422 "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
4423 *) test -n "$SHLD" || SHLD="unknown" ;;
4427 lib_user32_test=-luser32
4431 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
4435 EXTRADEFS="-DSOLARIS"
4436 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4440 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4444 if test "x$SIMD" = "xyes"; then
4446 cat >>confdefs.h <<\_ACEOF
4447 #define USE_ALTIVEC 1
4450 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4451 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4454 cat >>confdefs.h <<\_ACEOF
4455 #define USE_ALTIVEC 0
4459 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4460 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4461 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4465 test -n "$SHLD" || \
4466 if test "x$GCC" = xyes; then
4469 SHLD="ld -Bdynamic -G"
4476 # Checks for libraries.
4478 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4479 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4480 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_check_lib_save_LIBS=$LIBS
4485 cat >conftest.$ac_ext <<_ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4492 /* Override any gcc2 internal prototype to avoid an error. */
4496 /* We use char because int might match the return type of a gcc2
4497 builtin and then its argument prototype would still apply. */
4507 rm -f conftest.$ac_objext conftest$ac_exeext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1 >conftest.err
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest$ac_exeext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_lib_m_sqrt=yes
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4536 rm -f conftest.err conftest.$ac_objext \
4537 conftest$ac_exeext conftest.$ac_ext
4538 LIBS=$ac_check_lib_save_LIBS
4540 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4541 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4542 if test $ac_cv_lib_m_sqrt = yes; then
4543 cat >>confdefs.h <<_ACEOF
4552 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4553 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4554 if test "${ac_cv_lib_socket_socket+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 ac_check_lib_save_LIBS=$LIBS
4558 LIBS="-lsocket $LIBS"
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4566 /* Override any gcc2 internal prototype to avoid an error. */
4570 /* We use char because int might match the return type of a gcc2
4571 builtin and then its argument prototype would still apply. */
4581 rm -f conftest.$ac_objext conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583 (eval $ac_link) 2>conftest.er1
4585 grep -v '^ *+' conftest.er1 >conftest.err
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest$ac_exeext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_lib_socket_socket=yes
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4608 ac_cv_lib_socket_socket=no
4610 rm -f conftest.err conftest.$ac_objext \
4611 conftest$ac_exeext conftest.$ac_ext
4612 LIBS=$ac_check_lib_save_LIBS
4614 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4615 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4616 if test $ac_cv_lib_socket_socket = yes; then
4617 cat >>confdefs.h <<_ACEOF
4618 #define HAVE_LIBSOCKET 1
4621 LIBS="-lsocket $LIBS"
4625 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4626 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4627 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 ac_check_lib_save_LIBS=$LIBS
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4639 /* Override any gcc2 internal prototype to avoid an error. */
4643 /* We use char because int might match the return type of a gcc2
4644 builtin and then its argument prototype would still apply. */
4654 rm -f conftest.$ac_objext conftest$ac_exeext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656 (eval $ac_link) 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_c_werror_flag"
4664 || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_cv_lib_dl_dlopen=yes
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 ac_cv_lib_dl_dlopen=no
4683 rm -f conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4687 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4688 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4689 if test $ac_cv_lib_dl_dlopen = yes; then
4693 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4694 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4695 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_check_lib_save_LIBS=$LIBS
4700 cat >conftest.$ac_ext <<_ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4707 /* Override any gcc2 internal prototype to avoid an error. */
4711 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4713 char NSLinkModule ();
4722 rm -f conftest.$ac_objext conftest$ac_exeext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724 (eval $ac_link) 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -z "$ac_c_werror_flag"
4732 || test ! -s conftest.err'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; } &&
4738 { ac_try='test -s conftest$ac_exeext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_cv_lib_objc_NSLinkModule=yes
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_cv_lib_objc_NSLinkModule=no
4751 rm -f conftest.err conftest.$ac_objext \
4752 conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4755 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4756 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4757 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4760 # Mac OS X need this.
4761 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; then
4763 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4764 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4765 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 ac_check_lib_save_LIBS=$LIBS
4770 cat >conftest.$ac_ext <<_ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4777 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 ac_cv_lib_xpg4_setlocale=yes
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 ac_cv_lib_xpg4_setlocale=no
4821 rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823 LIBS=$ac_check_lib_save_LIBS
4825 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4826 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4827 if test $ac_cv_lib_xpg4_setlocale = yes; then
4828 cat >>confdefs.h <<_ACEOF
4829 #define HAVE_LIBXPG4 1
4835 # Mac OS X (and maybe NetBSD) need this.
4838 for ac_func in gethostbyname
4840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4841 echo "$as_me:$LINENO: checking for $ac_func" >&5
4842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4843 if eval "test \"\${$as_ac_var+set}\" = set"; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 cat >conftest.$ac_ext <<_ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4854 #define $ac_func innocuous_$ac_func
4856 /* System header to define __stub macros and hopefully few prototypes,
4857 which can conflict with char $ac_func (); below.
4858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859 <limits.h> exists even on freestanding compilers. */
4862 # include <limits.h>
4864 # include <assert.h>
4869 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4877 /* The GNU C library defines this for functions which it implements
4878 to always fail with ENOSYS. Some functions are actually named
4879 something starting with __ and the normal name is an alias. */
4880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4883 char (*f) () = $ac_func;
4892 return f != $ac_func;
4897 rm -f conftest.$ac_objext conftest$ac_exeext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899 (eval $ac_link) 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest$ac_exeext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 eval "$as_ac_var=yes"
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 eval "$as_ac_var=no"
4926 rm -f conftest.err conftest.$ac_objext \
4927 conftest$ac_exeext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4931 if test `eval echo '${'$as_ac_var'}'` = yes; then
4932 cat >>confdefs.h <<_ACEOF
4933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4938 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4939 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4940 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 ac_check_lib_save_LIBS=$LIBS
4945 cat >conftest.$ac_ext <<_ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4952 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4958 char gethostbyname ();
4967 rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969 (eval $ac_link) 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -z "$ac_c_werror_flag"
4977 || test ! -s conftest.err'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; } &&
4983 { ac_try='test -s conftest$ac_exeext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_cv_lib_nsl_gethostbyname=yes
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 ac_cv_lib_nsl_gethostbyname=no
4996 rm -f conftest.err conftest.$ac_objext \
4997 conftest$ac_exeext conftest.$ac_ext
4998 LIBS=$ac_check_lib_save_LIBS
5000 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5001 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5002 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5003 cat >>confdefs.h <<_ACEOF
5004 #define HAVE_LIBNSL 1
5014 echo "$as_me:$LINENO: checking for X" >&5
5015 echo $ECHO_N "checking for X... $ECHO_C" >&6
5018 # Check whether --with-x or --without-x was given.
5019 if test "${with_x+set}" = set; then
5023 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5024 if test "x$with_x" = xno; then
5025 # The user explicitly disabled X.
5028 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5029 # Both variables are already set.
5032 if test "${ac_cv_have_x+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 # One or both of the vars are not set, and there is no cached value.
5036 ac_x_includes=no ac_x_libraries=no
5038 if mkdir conftest.dir; then
5040 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5041 cat >Imakefile <<'_ACEOF'
5043 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5045 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5046 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5047 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5048 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5049 for ac_extension in a so sl; do
5050 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5051 test -f $ac_im_libdir/libX11.$ac_extension; then
5052 ac_im_usrlibdir=$ac_im_libdir; break
5055 # Screen out bogus values from the imake configuration. They are
5056 # bogus both because they are the default anyway, and because
5057 # using them would break gcc on systems where it needs fixed includes.
5058 case $ac_im_incroot in
5060 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5062 case $ac_im_usrlibdir in
5064 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5071 # Standard set of common directories for X headers.
5072 # Check X11 before X11Rn because it is often a symlink to the current release.
5084 /usr/local/X11/include
5085 /usr/local/X11R6/include
5086 /usr/local/X11R5/include
5087 /usr/local/X11R4/include
5089 /usr/local/include/X11
5090 /usr/local/include/X11R6
5091 /usr/local/include/X11R5
5092 /usr/local/include/X11R4
5096 /usr/XFree86/include/X11
5100 /usr/unsupported/include
5102 /usr/local/x11r5/include
5103 /usr/lpp/Xamples/include
5105 /usr/openwin/include
5106 /usr/openwin/share/include'
5108 if test "$ac_x_includes" = no; then
5109 # Guess where to find include files, by looking for Intrinsic.h.
5110 # First, try using that file with no special directory specified.
5111 cat >conftest.$ac_ext <<_ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 #include <X11/Intrinsic.h>
5119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122 grep -v '^ *+' conftest.er1 >conftest.err
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } >/dev/null; then
5127 if test -s conftest.err; then
5128 ac_cpp_err=$ac_c_preproc_warn_flag
5129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5136 if test -z "$ac_cpp_err"; then
5137 # We can compile using X headers with no special include directory.
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 for ac_dir in $ac_x_header_dirs; do
5144 if test -r "$ac_dir/X11/Intrinsic.h"; then
5145 ac_x_includes=$ac_dir
5150 rm -f conftest.err conftest.$ac_ext
5151 fi # $ac_x_includes = no
5153 if test "$ac_x_libraries" = no; then
5154 # Check for the libraries.
5155 # See if we find them without any special options.
5156 # Don't add to $LIBS permanently.
5159 cat >conftest.$ac_ext <<_ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 #include <X11/Intrinsic.h>
5174 rm -f conftest.$ac_objext conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>conftest.er1
5178 grep -v '^ *+' conftest.er1 >conftest.err
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5197 # We can link X programs with no special library path.
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5204 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5206 # Don't even attempt the hair of trying to link an X program!
5207 for ac_extension in a so sl; do
5208 if test -r $ac_dir/libXt.$ac_extension; then
5209 ac_x_libraries=$ac_dir
5215 rm -f conftest.err conftest.$ac_objext \
5216 conftest$ac_exeext conftest.$ac_ext
5217 fi # $ac_x_libraries = no
5219 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5220 # Didn't find X anywhere. Cache the known absence of X.
5221 ac_cv_have_x="have_x=no"
5223 # Record where we found X for the cache.
5224 ac_cv_have_x="have_x=yes \
5225 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5230 eval "$ac_cv_have_x"
5233 if test "$have_x" != yes; then
5234 echo "$as_me:$LINENO: result: $have_x" >&5
5235 echo "${ECHO_T}$have_x" >&6
5238 # If each of the values was on the command line, it overrides each guess.
5239 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5240 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5241 # Update the cache value to reflect the command line values.
5242 ac_cv_have_x="have_x=yes \
5243 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5244 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5245 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5248 if test "$no_x" = yes; then
5249 # Not all programs may use this symbol, but it does not hurt to define it.
5251 cat >>confdefs.h <<\_ACEOF
5252 #define X_DISPLAY_MISSING 1
5255 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5257 if test -n "$x_includes"; then
5258 X_CFLAGS="$X_CFLAGS -I$x_includes"
5261 # It would also be nice to do this for all -L options, not just this one.
5262 if test -n "$x_libraries"; then
5263 X_LIBS="$X_LIBS -L$x_libraries"
5264 # For Solaris; some versions of Sun CC require a space after -R and
5265 # others require no space. Words are not sufficient . . . .
5266 case `(uname -sr) 2>/dev/null` in
5268 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5269 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5270 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5271 cat >conftest.$ac_ext <<_ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288 (eval $ac_link) 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag"
5296 || test ! -s conftest.err'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; } &&
5302 { ac_try='test -s conftest$ac_exeext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5315 rm -f conftest.err conftest.$ac_objext \
5316 conftest$ac_exeext conftest.$ac_ext
5317 if test $ac_R_nospace = yes; then
5318 echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5320 X_LIBS="$X_LIBS -R$x_libraries"
5322 LIBS="$ac_xsave_LIBS -R $x_libraries"
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340 (eval $ac_link) 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest$ac_exeext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5367 rm -f conftest.err conftest.$ac_objext \
5368 conftest$ac_exeext conftest.$ac_ext
5369 if test $ac_R_space = yes; then
5370 echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372 X_LIBS="$X_LIBS -R $x_libraries"
5374 echo "$as_me:$LINENO: result: neither works" >&5
5375 echo "${ECHO_T}neither works" >&6
5382 # Check for system-dependent libraries X programs must link with.
5383 # Do this before checking for the system-independent R6 libraries
5384 # (-lICE), since we may need -lsocket or whatever for X linking.
5386 if test "$ISC" = yes; then
5387 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5389 # Martyn Johnson says this is needed for Ultrix, if the X
5390 # libraries were built with DECnet support. And Karl Berry says
5391 # the Alpha needs dnet_stub (dnet does not exist).
5392 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5400 /* Override any gcc2 internal prototype to avoid an error. */
5404 /* We use char because int might match the return type of a gcc2
5405 builtin and then its argument prototype would still apply. */
5406 char XOpenDisplay ();
5415 rm -f conftest.$ac_objext conftest$ac_exeext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5417 (eval $ac_link) 2>conftest.er1
5419 grep -v '^ *+' conftest.er1 >conftest.err
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -z "$ac_c_werror_flag"
5425 || test ! -s conftest.err'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; } &&
5431 { ac_try='test -s conftest$ac_exeext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5442 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5443 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5444 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 ac_check_lib_save_LIBS=$LIBS
5449 cat >conftest.$ac_ext <<_ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5456 /* Override any gcc2 internal prototype to avoid an error. */
5460 /* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473 (eval $ac_link) 2>conftest.er1
5475 grep -v '^ *+' conftest.er1 >conftest.err
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_lib_dnet_dnet_ntoa=yes
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 ac_cv_lib_dnet_dnet_ntoa=no
5500 rm -f conftest.err conftest.$ac_objext \
5501 conftest$ac_exeext conftest.$ac_ext
5502 LIBS=$ac_check_lib_save_LIBS
5504 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5505 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5506 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5507 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5510 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5511 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5512 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5513 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 ac_check_lib_save_LIBS=$LIBS
5517 LIBS="-ldnet_stub $LIBS"
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5525 /* Override any gcc2 internal prototype to avoid an error. */
5529 /* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -z "$ac_c_werror_flag"
5550 || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 ac_cv_lib_dnet_stub_dnet_ntoa=no
5569 rm -f conftest.err conftest.$ac_objext \
5570 conftest$ac_exeext conftest.$ac_ext
5571 LIBS=$ac_check_lib_save_LIBS
5573 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5574 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5575 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5576 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5581 rm -f conftest.err conftest.$ac_objext \
5582 conftest$ac_exeext conftest.$ac_ext
5583 LIBS="$ac_xsave_LIBS"
5585 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5586 # to get the SysV transport functions.
5587 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5589 # The nsl library prevents programs from opening the X display
5590 # on Irix 5.2, according to T.E. Dickey.
5591 # The functions gethostbyname, getservbyname, and inet_addr are
5592 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5593 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5594 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5595 if test "${ac_cv_func_gethostbyname+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5606 #define gethostbyname innocuous_gethostbyname
5608 /* System header to define __stub macros and hopefully few prototypes,
5609 which can conflict with char gethostbyname (); below.
5610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611 <limits.h> exists even on freestanding compilers. */
5614 # include <limits.h>
5616 # include <assert.h>
5619 #undef gethostbyname
5621 /* Override any gcc2 internal prototype to avoid an error. */
5626 /* We use char because int might match the return type of a gcc2
5627 builtin and then its argument prototype would still apply. */
5628 char gethostbyname ();
5629 /* The GNU C library defines this for functions which it implements
5630 to always fail with ENOSYS. Some functions are actually named
5631 something starting with __ and the normal name is an alias. */
5632 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5635 char (*f) () = gethostbyname;
5644 return f != gethostbyname;
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try='test -s conftest$ac_exeext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_func_gethostbyname=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_func_gethostbyname=no
5678 rm -f conftest.err conftest.$ac_objext \
5679 conftest$ac_exeext conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5682 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5684 if test $ac_cv_func_gethostbyname = no; then
5685 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5686 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5687 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 ac_check_lib_save_LIBS=$LIBS
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5699 /* Override any gcc2 internal prototype to avoid an error. */
5703 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */
5705 char gethostbyname ();
5714 rm -f conftest.$ac_objext conftest$ac_exeext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5716 (eval $ac_link) 2>conftest.er1
5718 grep -v '^ *+' conftest.er1 >conftest.err
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -z "$ac_c_werror_flag"
5724 || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_lib_nsl_gethostbyname=yes
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_cv_lib_nsl_gethostbyname=no
5743 rm -f conftest.err conftest.$ac_objext \
5744 conftest$ac_exeext conftest.$ac_ext
5745 LIBS=$ac_check_lib_save_LIBS
5747 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5748 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5749 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5753 if test $ac_cv_lib_nsl_gethostbyname = no; then
5754 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5755 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5756 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 ac_check_lib_save_LIBS=$LIBS
5761 cat >conftest.$ac_ext <<_ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5768 /* Override any gcc2 internal prototype to avoid an error. */
5772 /* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5774 char gethostbyname ();
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785 (eval $ac_link) 2>conftest.er1
5787 grep -v '^ *+' conftest.er1 >conftest.err
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest$ac_exeext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_cv_lib_bsd_gethostbyname=yes
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 ac_cv_lib_bsd_gethostbyname=no
5812 rm -f conftest.err conftest.$ac_objext \
5813 conftest$ac_exeext conftest.$ac_ext
5814 LIBS=$ac_check_lib_save_LIBS
5816 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5817 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5818 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5825 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5826 # socket/setsockopt and other routines are undefined under SCO ODT
5827 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5828 # on later versions), says Simon Leinen: it contains gethostby*
5829 # variants that don't use the name server (or something). -lsocket
5830 # must be given before -lnsl if both are needed. We assume that
5831 # if connect needs -lnsl, so does gethostbyname.
5832 echo "$as_me:$LINENO: checking for connect" >&5
5833 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5834 if test "${ac_cv_func_connect+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 cat >conftest.$ac_ext <<_ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5845 #define connect innocuous_connect
5847 /* System header to define __stub macros and hopefully few prototypes,
5848 which can conflict with char connect (); below.
5849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850 <limits.h> exists even on freestanding compilers. */
5853 # include <limits.h>
5855 # include <assert.h>
5860 /* Override any gcc2 internal prototype to avoid an error. */
5865 /* We use char because int might match the return type of a gcc2
5866 builtin and then its argument prototype would still apply. */
5868 /* The GNU C library defines this for functions which it implements
5869 to always fail with ENOSYS. Some functions are actually named
5870 something starting with __ and the normal name is an alias. */
5871 #if defined (__stub_connect) || defined (__stub___connect)
5874 char (*f) () = connect;
5883 return f != connect;
5888 rm -f conftest.$ac_objext conftest$ac_exeext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890 (eval $ac_link) 2>conftest.er1
5892 grep -v '^ *+' conftest.er1 >conftest.err
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } &&
5897 { ac_try='test -z "$ac_c_werror_flag"
5898 || test ! -s conftest.err'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; } &&
5904 { ac_try='test -s conftest$ac_exeext'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 ac_cv_func_connect=yes
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5915 ac_cv_func_connect=no
5917 rm -f conftest.err conftest.$ac_objext \
5918 conftest$ac_exeext conftest.$ac_ext
5920 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5921 echo "${ECHO_T}$ac_cv_func_connect" >&6
5923 if test $ac_cv_func_connect = no; then
5924 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5925 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5926 if test "${ac_cv_lib_socket_connect+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 ac_check_lib_save_LIBS=$LIBS
5930 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5938 /* Override any gcc2 internal prototype to avoid an error. */
5942 /* We use char because int might match the return type of a gcc2
5943 builtin and then its argument prototype would still apply. */
5953 rm -f conftest.$ac_objext conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955 (eval $ac_link) 2>conftest.er1
5957 grep -v '^ *+' conftest.er1 >conftest.err
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_c_werror_flag"
5963 || test ! -s conftest.err'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest$ac_exeext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 ac_cv_lib_socket_connect=yes
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5980 ac_cv_lib_socket_connect=no
5982 rm -f conftest.err conftest.$ac_objext \
5983 conftest$ac_exeext conftest.$ac_ext
5984 LIBS=$ac_check_lib_save_LIBS
5986 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5987 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5988 if test $ac_cv_lib_socket_connect = yes; then
5989 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5994 # Guillermo Gomez says -lposix is necessary on A/UX.
5995 echo "$as_me:$LINENO: checking for remove" >&5
5996 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5997 if test "${ac_cv_func_remove+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 cat >conftest.$ac_ext <<_ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6008 #define remove innocuous_remove
6010 /* System header to define __stub macros and hopefully few prototypes,
6011 which can conflict with char remove (); below.
6012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6013 <limits.h> exists even on freestanding compilers. */
6016 # include <limits.h>
6018 # include <assert.h>
6023 /* Override any gcc2 internal prototype to avoid an error. */
6028 /* We use char because int might match the return type of a gcc2
6029 builtin and then its argument prototype would still apply. */
6031 /* The GNU C library defines this for functions which it implements
6032 to always fail with ENOSYS. Some functions are actually named
6033 something starting with __ and the normal name is an alias. */
6034 #if defined (__stub_remove) || defined (__stub___remove)
6037 char (*f) () = remove;
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6053 (eval $ac_link) 2>conftest.er1
6055 grep -v '^ *+' conftest.er1 >conftest.err
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -z "$ac_c_werror_flag"
6061 || test ! -s conftest.err'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; } &&
6067 { ac_try='test -s conftest$ac_exeext'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 ac_cv_func_remove=yes
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_cv_func_remove=no
6080 rm -f conftest.err conftest.$ac_objext \
6081 conftest$ac_exeext conftest.$ac_ext
6083 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6084 echo "${ECHO_T}$ac_cv_func_remove" >&6
6086 if test $ac_cv_func_remove = no; then
6087 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6088 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6089 if test "${ac_cv_lib_posix_remove+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 ac_check_lib_save_LIBS=$LIBS
6093 LIBS="-lposix $LIBS"
6094 cat >conftest.$ac_ext <<_ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6101 /* Override any gcc2 internal prototype to avoid an error. */
6105 /* We use char because int might match the return type of a gcc2
6106 builtin and then its argument prototype would still apply. */
6116 rm -f conftest.$ac_objext conftest$ac_exeext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6118 (eval $ac_link) 2>conftest.er1
6120 grep -v '^ *+' conftest.er1 >conftest.err
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -z "$ac_c_werror_flag"
6126 || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try='test -s conftest$ac_exeext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_lib_posix_remove=yes
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_cv_lib_posix_remove=no
6145 rm -f conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6147 LIBS=$ac_check_lib_save_LIBS
6149 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6150 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6151 if test $ac_cv_lib_posix_remove = yes; then
6152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6157 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6158 echo "$as_me:$LINENO: checking for shmat" >&5
6159 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6160 if test "${ac_cv_func_shmat+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6171 #define shmat innocuous_shmat
6173 /* System header to define __stub macros and hopefully few prototypes,
6174 which can conflict with char shmat (); below.
6175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6176 <limits.h> exists even on freestanding compilers. */
6179 # include <limits.h>
6181 # include <assert.h>
6186 /* Override any gcc2 internal prototype to avoid an error. */
6191 /* We use char because int might match the return type of a gcc2
6192 builtin and then its argument prototype would still apply. */
6194 /* The GNU C library defines this for functions which it implements
6195 to always fail with ENOSYS. Some functions are actually named
6196 something starting with __ and the normal name is an alias. */
6197 #if defined (__stub_shmat) || defined (__stub___shmat)
6200 char (*f) () = shmat;
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216 (eval $ac_link) 2>conftest.er1
6218 grep -v '^ *+' conftest.er1 >conftest.err
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try='test -z "$ac_c_werror_flag"
6224 || test ! -s conftest.err'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; } &&
6230 { ac_try='test -s conftest$ac_exeext'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_cv_func_shmat=yes
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6243 rm -f conftest.err conftest.$ac_objext \
6244 conftest$ac_exeext conftest.$ac_ext
6246 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6247 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6249 if test $ac_cv_func_shmat = no; then
6250 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6251 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6252 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 ac_check_lib_save_LIBS=$LIBS
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6264 /* Override any gcc2 internal prototype to avoid an error. */
6268 /* We use char because int might match the return type of a gcc2
6269 builtin and then its argument prototype would still apply. */
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest$ac_exeext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_cv_lib_ipc_shmat=yes
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 ac_cv_lib_ipc_shmat=no
6308 rm -f conftest.err conftest.$ac_objext \
6309 conftest$ac_exeext conftest.$ac_ext
6310 LIBS=$ac_check_lib_save_LIBS
6312 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6313 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6314 if test $ac_cv_lib_ipc_shmat = yes; then
6315 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6321 # Check for libraries that X11R6 Xt/Xaw programs need.
6322 ac_save_LDFLAGS=$LDFLAGS
6323 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6324 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6325 # check for ICE first), but we must link in the order -lSM -lICE or
6326 # we get undefined symbols. So assume we have SM if we have ICE.
6327 # These have to be linked with before -lX11, unlike the other
6328 # libraries we check for below, so use a different variable.
6329 # John Interrante, Karl Berry
6330 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6331 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6332 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 ac_check_lib_save_LIBS=$LIBS
6336 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6337 cat >conftest.$ac_ext <<_ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6344 /* Override any gcc2 internal prototype to avoid an error. */
6348 /* We use char because int might match the return type of a gcc2
6349 builtin and then its argument prototype would still apply. */
6350 char IceConnectionNumber ();
6354 IceConnectionNumber ();
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>conftest.er1
6363 grep -v '^ *+' conftest.er1 >conftest.err
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_c_werror_flag"
6369 || test ! -s conftest.err'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; } &&
6375 { ac_try='test -s conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_cv_lib_ICE_IceConnectionNumber=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_cv_lib_ICE_IceConnectionNumber=no
6388 rm -f conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 LIBS=$ac_check_lib_save_LIBS
6392 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6393 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6394 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6395 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6398 LDFLAGS=$ac_save_LDFLAGS
6404 if test "x$with_x" = xyes; then
6405 if test "x$have_x" = xno; then
6406 if test "x$x_config_flag" = xyes; then
6407 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
6408 echo "$as_me: error: Could not configure X" >&2;}
6409 { (exit 1); exit 1; }; }
6411 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
6412 echo "$as_me: WARNING: Could not configure X" >&2;}
6416 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
6417 if test "x$x_libraries" != x; then
6418 ldflags_x_opt="-L$x_libraries"
6419 LDFLAGS="$LDFLAGS $ldflags_x_opt"
6420 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
6424 if test "x$x_includes" != x; then
6425 CPPFLAGS="$CPPFLAGS -I$x_includes"
6429 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6430 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
6431 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 ac_check_lib_save_LIBS=$LIBS
6436 cat >conftest.$ac_ext <<_ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6443 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6449 char XOpenDisplay ();
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460 (eval $ac_link) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_c_werror_flag"
6468 || test ! -s conftest.err'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest$ac_exeext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_lib_X11_XOpenDisplay=yes
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 ac_cv_lib_X11_XOpenDisplay=no
6487 rm -f conftest.err conftest.$ac_objext \
6488 conftest$ac_exeext conftest.$ac_ext
6489 LIBS=$ac_check_lib_save_LIBS
6491 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6492 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6493 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6494 cat >>confdefs.h <<_ACEOF
6495 #define HAVE_LIBX11 1
6502 echo "$as_me:$LINENO: checking X11 version 6" >&5
6503 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6504 if test "${timidity_cv_x11_version_6+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 cat >conftest.$ac_ext <<_ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #include <X11/Xlib.h>
6518 #if XlibSpecificationRelease < 6
6526 rm -f conftest.$ac_objext conftest$ac_exeext
6527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6528 (eval $ac_link) 2>conftest.er1
6530 grep -v '^ *+' conftest.er1 >conftest.err
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } &&
6535 { ac_try='test -z "$ac_c_werror_flag"
6536 || test ! -s conftest.err'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; } &&
6542 { ac_try='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 timidity_cv_x11_version_6=yes
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 timidity_cv_x11_version_6=no
6555 rm -f conftest.err conftest.$ac_objext \
6556 conftest$ac_exeext conftest.$ac_ext
6559 if test "$timidity_cv_x11_version_6" = "yes"; then
6560 echo "$as_me:$LINENO: result: 6 or newer" >&5
6561 echo "${ECHO_T}6 or newer" >&6
6563 echo "$as_me:$LINENO: result: before 6" >&5
6564 echo "${ECHO_T}before 6" >&6
6568 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6569 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6570 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 ac_check_lib_save_LIBS=$LIBS
6575 cat >conftest.$ac_ext <<_ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6582 /* Override any gcc2 internal prototype to avoid an error. */
6586 /* We use char because int might match the return type of a gcc2
6587 builtin and then its argument prototype would still apply. */
6588 char XShapeCombineMask ();
6592 XShapeCombineMask ();
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599 (eval $ac_link) 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -z "$ac_c_werror_flag"
6607 || test ! -s conftest.err'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; } &&
6613 { ac_try='test -s conftest$ac_exeext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6619 ac_cv_lib_Xext_XShapeCombineMask=yes
6621 echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6624 ac_cv_lib_Xext_XShapeCombineMask=no
6626 rm -f conftest.err conftest.$ac_objext \
6627 conftest$ac_exeext conftest.$ac_ext
6628 LIBS=$ac_check_lib_save_LIBS
6630 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6631 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6632 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6633 have_xext=yes; LIBS="-lXext $LIBS"
6639 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6640 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6641 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 ac_check_lib_save_LIBS=$LIBS
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6653 /* Override any gcc2 internal prototype to avoid an error. */
6657 /* We use char because int might match the return type of a gcc2
6658 builtin and then its argument prototype would still apply. */
6659 char IceConnectionNumber ();
6663 IceConnectionNumber ();
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670 (eval $ac_link) 2>conftest.er1
6672 grep -v '^ *+' conftest.er1 >conftest.err
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_c_werror_flag"
6678 || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try='test -s conftest$ac_exeext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 ac_cv_lib_ICE_IceConnectionNumber=yes
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 ac_cv_lib_ICE_IceConnectionNumber=no
6697 rm -f conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6699 LIBS=$ac_check_lib_save_LIBS
6701 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6702 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6703 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6704 cat >>confdefs.h <<_ACEOF
6705 #define HAVE_LIBICE 1
6712 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6713 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6714 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_check_lib_save_LIBS=$LIBS
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6726 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6732 char SmcOpenConnection ();
6736 SmcOpenConnection ();
6741 rm -f conftest.$ac_objext conftest$ac_exeext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>conftest.er1
6745 grep -v '^ *+' conftest.er1 >conftest.err
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try='test -z "$ac_c_werror_flag"
6751 || test ! -s conftest.err'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; } &&
6757 { ac_try='test -s conftest$ac_exeext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_cv_lib_SM_SmcOpenConnection=yes
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 ac_cv_lib_SM_SmcOpenConnection=no
6770 rm -f conftest.err conftest.$ac_objext \
6771 conftest$ac_exeext conftest.$ac_ext
6772 LIBS=$ac_check_lib_save_LIBS
6774 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6775 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6776 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6777 have_xprelibs=yes; LIBS="-lSM $LIBS"
6782 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6783 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6784 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 ac_check_lib_save_LIBS=$LIBS
6789 cat >conftest.$ac_ext <<_ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6796 /* Override any gcc2 internal prototype to avoid an error. */
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6802 char XtVaAppInitialize ();
6806 XtVaAppInitialize ();
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>conftest.er1
6815 grep -v '^ *+' conftest.er1 >conftest.err
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest$ac_exeext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_lib_Xt_XtVaAppInitialize=yes
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 ac_cv_lib_Xt_XtVaAppInitialize=no
6840 rm -f conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6842 LIBS=$ac_check_lib_save_LIBS
6844 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6845 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6846 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6847 have_xt=yes; LIBS="-lXt $LIBS"
6852 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6853 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6854 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 ac_check_lib_save_LIBS=$LIBS
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6866 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char XmuInternAtom ();
6881 rm -f conftest.$ac_objext conftest$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>conftest.er1
6885 grep -v '^ *+' conftest.er1 >conftest.err
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag"
6891 || test ! -s conftest.err'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; } &&
6897 { ac_try='test -s conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 ac_cv_lib_Xmu_XmuInternAtom=yes
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6908 ac_cv_lib_Xmu_XmuInternAtom=no
6910 rm -f conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912 LIBS=$ac_check_lib_save_LIBS
6914 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6915 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6916 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6921 for ac_func in XmuRegisterExternalAgent
6923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6924 echo "$as_me:$LINENO: checking for $ac_func" >&5
6925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6926 if eval "test \"\${$as_ac_var+set}\" = set"; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 cat >conftest.$ac_ext <<_ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6937 #define $ac_func innocuous_$ac_func
6939 /* System header to define __stub macros and hopefully few prototypes,
6940 which can conflict with char $ac_func (); below.
6941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6942 <limits.h> exists even on freestanding compilers. */
6945 # include <limits.h>
6947 # include <assert.h>
6952 /* Override any gcc2 internal prototype to avoid an error. */
6957 /* We use char because int might match the return type of a gcc2
6958 builtin and then its argument prototype would still apply. */
6960 /* The GNU C library defines this for functions which it implements
6961 to always fail with ENOSYS. Some functions are actually named
6962 something starting with __ and the normal name is an alias. */
6963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6966 char (*f) () = $ac_func;
6975 return f != $ac_func;
6980 rm -f conftest.$ac_objext conftest$ac_exeext
6981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982 (eval $ac_link) 2>conftest.er1
6984 grep -v '^ *+' conftest.er1 >conftest.err
6986 cat conftest.err >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } &&
6989 { ac_try='test -z "$ac_c_werror_flag"
6990 || test ! -s conftest.err'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; } &&
6996 { ac_try='test -s conftest$ac_exeext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 eval "$as_ac_var=yes"
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 eval "$as_ac_var=no"
7009 rm -f conftest.err conftest.$ac_objext \
7010 conftest$ac_exeext conftest.$ac_ext
7012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7014 if test `eval echo '${'$as_ac_var'}'` = yes; then
7015 cat >>confdefs.h <<_ACEOF
7016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7022 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
7023 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
7024 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 ac_check_lib_save_LIBS=$LIBS
7028 LIBS="-lXaw3d $LIBS"
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7036 /* Override any gcc2 internal prototype to avoid an error. */
7040 /* We use char because int might match the return type of a gcc2
7041 builtin and then its argument prototype would still apply. */
7042 char XawInitializeWidgetSet ();
7046 XawInitializeWidgetSet ();
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053 (eval $ac_link) 2>conftest.er1
7055 grep -v '^ *+' conftest.er1 >conftest.err
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -z "$ac_c_werror_flag"
7061 || test ! -s conftest.err'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; } &&
7067 { ac_try='test -s conftest$ac_exeext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
7080 rm -f conftest.err conftest.$ac_objext \
7081 conftest$ac_exeext conftest.$ac_ext
7082 LIBS=$ac_check_lib_save_LIBS
7084 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
7085 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
7086 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
7089 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
7090 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
7091 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_check_lib_save_LIBS=$LIBS
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7103 /* Override any gcc2 internal prototype to avoid an error. */
7107 /* We use char because int might match the return type of a gcc2
7108 builtin and then its argument prototype would still apply. */
7109 char XawInitializeWidgetSet ();
7113 XawInitializeWidgetSet ();
7118 rm -f conftest.$ac_objext conftest$ac_exeext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7120 (eval $ac_link) 2>conftest.er1
7122 grep -v '^ *+' conftest.er1 >conftest.err
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try='test -z "$ac_c_werror_flag"
7128 || test ! -s conftest.err'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } &&
7134 { ac_try='test -s conftest$ac_exeext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
7147 rm -f conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7149 LIBS=$ac_check_lib_save_LIBS
7151 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
7152 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
7153 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
7161 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
7162 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
7163 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_check_lib_save_LIBS=$LIBS
7168 cat >conftest.$ac_ext <<_ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7175 /* Override any gcc2 internal prototype to avoid an error. */
7179 /* We use char because int might match the return type of a gcc2
7180 builtin and then its argument prototype would still apply. */
7181 char XmCreateForm ();
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192 (eval $ac_link) 2>conftest.er1
7194 grep -v '^ *+' conftest.er1 >conftest.err
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -z "$ac_c_werror_flag"
7200 || test ! -s conftest.err'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; } &&
7206 { ac_try='test -s conftest$ac_exeext'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7212 ac_cv_lib_Xm_XmCreateForm=yes
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7217 ac_cv_lib_Xm_XmCreateForm=no
7219 rm -f conftest.err conftest.$ac_objext \
7220 conftest$ac_exeext conftest.$ac_ext
7221 LIBS=$ac_check_lib_save_LIBS
7223 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
7224 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
7225 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
7232 for ac_func in XShmCreatePixmap
7234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7235 echo "$as_me:$LINENO: checking for $ac_func" >&5
7236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7237 if eval "test \"\${$as_ac_var+set}\" = set"; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7248 #define $ac_func innocuous_$ac_func
7250 /* System header to define __stub macros and hopefully few prototypes,
7251 which can conflict with char $ac_func (); below.
7252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253 <limits.h> exists even on freestanding compilers. */
7256 # include <limits.h>
7258 # include <assert.h>
7263 /* Override any gcc2 internal prototype to avoid an error. */
7268 /* We use char because int might match the return type of a gcc2
7269 builtin and then its argument prototype would still apply. */
7271 /* The GNU C library defines this for functions which it implements
7272 to always fail with ENOSYS. Some functions are actually named
7273 something starting with __ and the normal name is an alias. */
7274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7277 char (*f) () = $ac_func;
7286 return f != $ac_func;
7291 rm -f conftest.$ac_objext conftest$ac_exeext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7293 (eval $ac_link) 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -z "$ac_c_werror_flag"
7301 || test ! -s conftest.err'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; } &&
7307 { ac_try='test -s conftest$ac_exeext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 eval "$as_ac_var=yes"
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 eval "$as_ac_var=no"
7320 rm -f conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7325 if test `eval echo '${'$as_ac_var'}'` = yes; then
7326 cat >>confdefs.h <<_ACEOF
7327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7336 # Checks for header files.
7337 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7338 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7339 if test "${ac_cv_header_stdc+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7361 rm -f conftest.$ac_objext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363 (eval $ac_compile) 2>conftest.er1
7365 grep -v '^ *+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try='test -z "$ac_c_werror_flag"
7371 || test ! -s conftest.err'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; } &&
7377 { ac_try='test -s conftest.$ac_objext'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7383 ac_cv_header_stdc=yes
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_cv_header_stdc=no
7390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7392 if test $ac_cv_header_stdc = yes; then
7393 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 $EGREP "memchr" >/dev/null 2>&1; then
7407 ac_cv_header_stdc=no
7413 if test $ac_cv_header_stdc = yes; then
7414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7415 cat >conftest.$ac_ext <<_ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425 $EGREP "free" >/dev/null 2>&1; then
7428 ac_cv_header_stdc=no
7434 if test $ac_cv_header_stdc = yes; then
7435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7436 if test "$cross_compiling" = yes; then
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7446 #if ((' ' & 0x0FF) == 0x020)
7447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7450 # define ISLOWER(c) \
7451 (('a' <= (c) && (c) <= 'i') \
7452 || ('j' <= (c) && (c) <= 'r') \
7453 || ('s' <= (c) && (c) <= 'z'))
7454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7462 for (i = 0; i < 256; i++)
7463 if (XOR (islower (i), ISLOWER (i))
7464 || toupper (i) != TOUPPER (i))
7469 rm -f conftest$ac_exeext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471 (eval $ac_link) 2>&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7482 echo "$as_me: program exited with status $ac_status" >&5
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7487 ac_cv_header_stdc=no
7489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7494 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7495 if test $ac_cv_header_stdc = yes; then
7497 cat >>confdefs.h <<\_ACEOF
7498 #define STDC_HEADERS 1
7504 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7505 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7506 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 cat >conftest.$ac_ext <<_ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7515 #include <sys/types.h>
7516 #include <sys/wait.h>
7518 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7521 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7529 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag"
7544 || test ! -s conftest.err'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; } &&
7550 { ac_try='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 ac_cv_header_sys_wait_h=yes
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_cv_header_sys_wait_h=no
7563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7566 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7567 if test $ac_cv_header_sys_wait_h = yes; then
7569 cat >>confdefs.h <<\_ACEOF
7570 #define HAVE_SYS_WAIT_H 1
7575 if test "x$WATCOM_C" != xyes ; then
7576 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7577 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7578 if test "${ac_cv_header_time+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 cat >conftest.$ac_ext <<_ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 #include <sys/types.h>
7588 #include <sys/time.h>
7594 if ((struct tm *) 0)
7600 rm -f conftest.$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
7604 grep -v '^ *+' conftest.er1 >conftest.err
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -z "$ac_c_werror_flag"
7610 || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try='test -s conftest.$ac_objext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_cv_header_time=yes
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7627 ac_cv_header_time=no
7629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7631 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7632 echo "${ECHO_T}$ac_cv_header_time" >&6
7633 if test $ac_cv_header_time = yes; then
7635 cat >>confdefs.h <<\_ACEOF
7636 #define TIME_WITH_SYS_TIME 1
7648 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7649 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7650 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7651 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 cat >conftest.$ac_ext <<_ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 #include <sys/types.h>
7673 rm -f conftest.$ac_objext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675 (eval $ac_compile) 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -z "$ac_c_werror_flag"
7683 || test ! -s conftest.err'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest.$ac_objext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 eval "$as_ac_Header=yes"
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 eval "$as_ac_Header=no"
7702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7707 cat >>confdefs.h <<_ACEOF
7708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7711 ac_header_dirent=$ac_hdr; break
7715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7716 if test $ac_header_dirent = dirent.h; then
7717 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7719 if test "${ac_cv_search_opendir+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_func_search_save_LIBS=$LIBS
7723 ac_cv_search_opendir=no
7724 cat >conftest.$ac_ext <<_ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7731 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>conftest.er1
7750 grep -v '^ *+' conftest.er1 >conftest.err
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -z "$ac_c_werror_flag"
7756 || test ! -s conftest.err'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_search_opendir="none required"
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7774 rm -f conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776 if test "$ac_cv_search_opendir" = no; then
7777 for ac_lib in dir; do
7778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7786 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7801 rm -f conftest.$ac_objext conftest$ac_exeext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803 (eval $ac_link) 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } &&
7810 { ac_try='test -z "$ac_c_werror_flag"
7811 || test ! -s conftest.err'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; } &&
7817 { ac_try='test -s conftest$ac_exeext'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 ac_cv_search_opendir="-l$ac_lib"
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7830 rm -f conftest.err conftest.$ac_objext \
7831 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_func_search_save_LIBS
7836 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7837 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7838 if test "$ac_cv_search_opendir" != no; then
7839 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7844 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7846 if test "${ac_cv_search_opendir+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 ac_func_search_save_LIBS=$LIBS
7850 ac_cv_search_opendir=no
7851 cat >conftest.$ac_ext <<_ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7858 /* Override any gcc2 internal prototype to avoid an error. */
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag"
7883 || test ! -s conftest.err'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_search_opendir="none required"
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7901 rm -f conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903 if test "$ac_cv_search_opendir" = no; then
7905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7913 /* Override any gcc2 internal prototype to avoid an error. */
7917 /* We use char because int might match the return type of a gcc2
7918 builtin and then its argument prototype would still apply. */
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7930 (eval $ac_link) 2>conftest.er1
7932 grep -v '^ *+' conftest.er1 >conftest.err
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -z "$ac_c_werror_flag"
7938 || test ! -s conftest.err'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest$ac_exeext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 ac_cv_search_opendir="-l$ac_lib"
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7957 rm -f conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7961 LIBS=$ac_func_search_save_LIBS
7963 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7964 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7965 if test "$ac_cv_search_opendir" != no; then
7966 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7983 inttypes.h stdint.h unistd.h
7985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 echo "$as_me:$LINENO: checking for $ac_header" >&5
7987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 $ac_includes_default
7999 #include <$ac_header>
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003 (eval $ac_compile) 2>conftest.er1
8005 grep -v '^ *+' conftest.er1 >conftest.err
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -z "$ac_c_werror_flag"
8011 || test ! -s conftest.err'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; } &&
8017 { ac_try='test -s conftest.$ac_objext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 eval "$as_ac_Header=yes"
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 eval "$as_ac_Header=no"
8030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8035 cat >>confdefs.h <<_ACEOF
8036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8132 # Is the header compilable?
8133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #include <$ac_header>
8144 rm -f conftest.$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>conftest.er1
8148 grep -v '^ *+' conftest.er1 >conftest.err
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest.$ac_objext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_header_compiler=yes
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_header_compiler=no
8173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8175 echo "${ECHO_T}$ac_header_compiler" >&6
8177 # Is the header present?
8178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 #include <$ac_header>
8188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8191 grep -v '^ *+' conftest.er1 >conftest.err
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } >/dev/null; then
8196 if test -s conftest.err; then
8197 ac_cpp_err=$ac_c_preproc_warn_flag
8198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8205 if test -z "$ac_cpp_err"; then
8206 ac_header_preproc=yes
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_header_preproc=no
8213 rm -f conftest.err conftest.$ac_ext
8214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8215 echo "${ECHO_T}$ac_header_preproc" >&6
8217 # So? What about this header?
8218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8224 ac_header_preproc=yes
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8241 ## ------------------------------- ##
8242 ## Report this to root@mput.dip.jp ##
8243 ## ------------------------------- ##
8246 sed "s/^/$as_me: WARNING: /" >&2
8249 echo "$as_me:$LINENO: checking for $ac_header" >&5
8250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 eval "$as_ac_Header=\$ac_header_preproc"
8256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261 cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8272 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
8274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8275 echo "$as_me:$LINENO: checking for $ac_header" >&5
8276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8287 #ifdef HAVE_X11_XLIB_H
8288 #include <X11/Xlib.h>
8292 #include <$ac_header>
8294 rm -f conftest.$ac_objext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296 (eval $ac_compile) 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag"
8304 || test ! -s conftest.err'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest.$ac_objext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 eval "$as_ac_Header=yes"
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 eval "$as_ac_Header=no"
8323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8328 cat >>confdefs.h <<_ACEOF
8329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8336 if test "${ac_cv_header_string_h+set}" = set; then
8337 echo "$as_me:$LINENO: checking for string.h" >&5
8338 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8339 if test "${ac_cv_header_string_h+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8343 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8345 # Is the header compilable?
8346 echo "$as_me:$LINENO: checking string.h usability" >&5
8347 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
8348 cat >conftest.$ac_ext <<_ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 $ac_includes_default
8357 rm -f conftest.$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359 (eval $ac_compile) 2>conftest.er1
8361 grep -v '^ *+' conftest.er1 >conftest.err
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag"
8367 || test ! -s conftest.err'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest.$ac_objext'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8379 ac_header_compiler=yes
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8384 ac_header_compiler=no
8386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8388 echo "${ECHO_T}$ac_header_compiler" >&6
8390 # Is the header present?
8391 echo "$as_me:$LINENO: checking string.h presence" >&5
8392 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8393 cat >conftest.$ac_ext <<_ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8404 grep -v '^ *+' conftest.er1 >conftest.err
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } >/dev/null; then
8409 if test -s conftest.err; then
8410 ac_cpp_err=$ac_c_preproc_warn_flag
8411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8418 if test -z "$ac_cpp_err"; then
8419 ac_header_preproc=yes
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_header_preproc=no
8426 rm -f conftest.err conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8428 echo "${ECHO_T}$ac_header_preproc" >&6
8430 # So? What about this header?
8431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8433 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8434 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8435 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8436 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8437 ac_header_preproc=yes
8440 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8441 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8442 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8443 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8444 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8445 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8446 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8447 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8449 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8451 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8454 ## ------------------------------- ##
8455 ## Report this to root@mput.dip.jp ##
8456 ## ------------------------------- ##
8459 sed "s/^/$as_me: WARNING: /" >&2
8462 echo "$as_me:$LINENO: checking for string.h" >&5
8463 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8464 if test "${ac_cv_header_string_h+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 ac_cv_header_string_h=$ac_header_preproc
8469 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8470 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8473 if test $ac_cv_header_string_h = yes; then
8477 cat >>confdefs.h <<\_ACEOF
8478 #define NO_STRING_H 1
8485 # Checks for typedefs, structures, and compiler characteristics.
8486 if test "x$WATCOM_C" != xyes ; then
8487 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8488 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8489 if test "${ac_cv_c_bigendian+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 # See if sys/param.h defines the BYTE_ORDER macro.
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 #include <sys/types.h>
8500 #include <sys/param.h>
8505 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8513 rm -f conftest.$ac_objext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag"
8523 || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 # It does; now see whether it defined to BIG_ENDIAN or not.
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 #include <sys/types.h>
8543 #include <sys/param.h>
8548 #if BYTE_ORDER != BIG_ENDIAN
8556 rm -f conftest.$ac_objext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8558 (eval $ac_compile) 2>conftest.er1
8560 grep -v '^ *+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_c_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try='test -s conftest.$ac_objext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_c_bigendian=yes
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_cv_c_bigendian=no
8585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 # It does not; compile a test program.
8591 if test "$cross_compiling" = yes; then
8592 # try to guess the endianness by grepping values into an object file
8593 ac_cv_c_bigendian=unknown
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8601 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8602 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8603 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8604 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8605 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8609 _ascii (); _ebcdic ();
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -z "$ac_c_werror_flag"
8624 || test ! -s conftest.err'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8637 ac_cv_c_bigendian=yes
8639 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8640 if test "$ac_cv_c_bigendian" = unknown; then
8641 ac_cv_c_bigendian=no
8643 # finding both strings is unlikely to happen, but who knows?
8644 ac_cv_c_bigendian=unknown
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8663 /* Are we little or big endian? From Harbison&Steele. */
8667 char c[sizeof (long)];
8670 exit (u.c[sizeof (long) - 1] == 1);
8673 rm -f conftest$ac_exeext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675 (eval $ac_link) 2>&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 ac_cv_c_bigendian=no
8686 echo "$as_me: program exited with status $ac_status" >&5
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_cv_c_bigendian=yes
8693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8698 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8699 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8700 case $ac_cv_c_bigendian in
8703 cat >>confdefs.h <<\_ACEOF
8704 #define WORDS_BIGENDIAN 1
8710 { { echo "$as_me:$LINENO: error: unknown endianness
8711 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8712 echo "$as_me: error: unknown endianness
8713 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8714 { (exit 1); exit 1; }; } ;;
8719 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8720 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8721 if test "${ac_cv_c_char_unsigned+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 $ac_includes_default
8734 static int test_array [1 - 2 * !(((char) -1) < 0)];
8741 rm -f conftest.$ac_objext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743 (eval $ac_compile) 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -z "$ac_c_werror_flag"
8751 || test ! -s conftest.err'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_c_char_unsigned=no
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 ac_cv_c_char_unsigned=yes
8770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8773 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8774 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8775 cat >>confdefs.h <<\_ACEOF
8776 #define __CHAR_UNSIGNED__ 1
8781 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8782 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8783 if test "${ac_cv_c_const+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8796 /* FIXME: Include the comments suggested by Paul. */
8798 /* Ultrix mips cc rejects this. */
8799 typedef int charset[2];
8801 /* SunOS 4.1.1 cc rejects this. */
8802 char const *const *ccp;
8804 /* NEC SVR4.0.2 mips cc rejects this. */
8805 struct point {int x, y;};
8806 static struct point const zero = {0,0};
8807 /* AIX XL C 1.02.0.0 rejects this.
8808 It does not let you subtract one const X* pointer from another in
8809 an arm of an if-expression whose if-part is not a constant
8811 const char *g = "string";
8812 ccp = &g + (g ? g-g : 0);
8813 /* HPUX 7.0 cc rejects these. */
8816 ccp = (char const *const *) p;
8817 { /* SCO 3.2v4 cc rejects this. */
8819 char const *s = 0 ? (char *) 0 : (char const *) 0;
8823 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8825 const int *foo = &x[0];
8828 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8829 typedef const int *iptr;
8833 { /* AIX XL C 1.02.0.0 rejects this saying
8834 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8835 struct s { int j; const int *ap[3]; };
8836 struct s *b; b->j = 5;
8838 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>conftest.er1
8851 grep -v '^ *+' conftest.er1 >conftest.err
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_c_werror_flag"
8857 || test ! -s conftest.err'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try='test -s conftest.$ac_objext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8879 echo "${ECHO_T}$ac_cv_c_const" >&6
8880 if test $ac_cv_c_const = no; then
8882 cat >>confdefs.h <<\_ACEOF
8888 echo "$as_me:$LINENO: checking for inline" >&5
8889 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8890 if test "${ac_cv_c_inline+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 for ac_kw in inline __inline__ __inline; do
8895 cat >conftest.$ac_ext <<_ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8903 static $ac_kw foo_t static_foo () {return 0; }
8904 $ac_kw foo_t foo () {return 0; }
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>conftest.er1
8912 grep -v '^ *+' conftest.er1 >conftest.err
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -z "$ac_c_werror_flag"
8918 || test ! -s conftest.err'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try='test -s conftest.$ac_objext'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 ac_cv_c_inline=$ac_kw; break
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8940 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8941 echo "${ECHO_T}$ac_cv_c_inline" >&6
8944 case $ac_cv_c_inline in
8947 case $ac_cv_c_inline in
8949 *) ac_val=$ac_cv_c_inline;;
8951 cat >>confdefs.h <<_ACEOF
8953 #define inline $ac_val
8959 echo "$as_me:$LINENO: checking for working volatile" >&5
8960 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8961 if test "${ac_cv_c_volatile+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 cat >conftest.$ac_ext <<_ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8981 rm -f conftest.$ac_objext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8983 (eval $ac_compile) 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try='test -s conftest.$ac_objext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_cv_c_volatile=yes
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9013 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9014 if test $ac_cv_c_volatile = no; then
9016 cat >>confdefs.h <<\_ACEOF
9022 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9023 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9024 if test "${ac_cv_c_stringize+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9035 char *s = x(teststring);
9037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038 $EGREP "#teststring" >/dev/null 2>&1; then
9039 ac_cv_c_stringize=no
9041 ac_cv_c_stringize=yes
9046 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9047 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9048 if test $ac_cv_c_stringize = yes; then
9050 cat >>confdefs.h <<\_ACEOF
9051 #define HAVE_STRINGIZE 1
9056 echo "$as_me:$LINENO: checking for function prototypes" >&5
9057 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9058 if test "$ac_cv_prog_cc_stdc" != no; then
9059 echo "$as_me:$LINENO: result: yes" >&5
9060 echo "${ECHO_T}yes" >&6
9062 cat >>confdefs.h <<\_ACEOF
9063 #define PROTOTYPES 1
9067 cat >>confdefs.h <<\_ACEOF
9068 #define __PROTOTYPES 1
9072 echo "$as_me:$LINENO: result: no" >&5
9073 echo "${ECHO_T}no" >&6
9076 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9077 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9078 if test "${ac_cv_struct_tm+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 cat >conftest.$ac_ext <<_ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 #include <sys/types.h>
9093 struct tm *tp; tp->tm_sec;
9098 rm -f conftest.$ac_objext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100 (eval $ac_compile) 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag"
9108 || test ! -s conftest.err'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_cv_struct_tm=time.h
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9125 ac_cv_struct_tm=sys/time.h
9127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9130 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9131 if test $ac_cv_struct_tm = sys/time.h; then
9133 cat >>confdefs.h <<\_ACEOF
9134 #define TM_IN_SYS_TIME 1
9139 echo "$as_me:$LINENO: checking for size_t" >&5
9140 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9141 if test "${ac_cv_type_size_t+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 cat >conftest.$ac_ext <<_ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150 $ac_includes_default
9156 if (sizeof (size_t))
9162 rm -f conftest.$ac_objext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>conftest.er1
9166 grep -v '^ *+' conftest.er1 >conftest.err
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest.$ac_objext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 ac_cv_type_size_t=yes
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 ac_cv_type_size_t=no
9191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9193 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9194 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9195 if test $ac_cv_type_size_t = yes; then
9199 cat >>confdefs.h <<_ACEOF
9200 #define size_t unsigned
9205 echo "$as_me:$LINENO: checking for off_t" >&5
9206 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9207 if test "${ac_cv_type_off_t+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 cat >conftest.$ac_ext <<_ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 $ac_includes_default
9228 rm -f conftest.$ac_objext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9230 (eval $ac_compile) 2>conftest.er1
9232 grep -v '^ *+' conftest.er1 >conftest.err
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -z "$ac_c_werror_flag"
9238 || test ! -s conftest.err'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; } &&
9244 { ac_try='test -s conftest.$ac_objext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_type_off_t=yes
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9259 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9260 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9261 if test $ac_cv_type_off_t = yes; then
9265 cat >>confdefs.h <<_ACEOF
9271 echo "$as_me:$LINENO: checking for pid_t" >&5
9272 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9273 if test "${ac_cv_type_pid_t+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 cat >conftest.$ac_ext <<_ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9282 $ac_includes_default
9294 rm -f conftest.$ac_objext
9295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9296 (eval $ac_compile) 2>conftest.er1
9298 grep -v '^ *+' conftest.er1 >conftest.err
9300 cat conftest.err >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } &&
9303 { ac_try='test -z "$ac_c_werror_flag"
9304 || test ! -s conftest.err'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; } &&
9310 { ac_try='test -s conftest.$ac_objext'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 ac_cv_type_pid_t=yes
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9325 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9326 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9327 if test $ac_cv_type_pid_t = yes; then
9331 cat >>confdefs.h <<_ACEOF
9338 echo "$as_me:$LINENO: checking volatile declaration" >&5
9339 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
9340 if test "${timidity_cv_type_volatile+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 cat >conftest.$ac_ext <<_ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9358 rm -f conftest.$ac_objext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360 (eval $ac_compile) 2>conftest.er1
9362 grep -v '^ *+' conftest.er1 >conftest.err
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -z "$ac_c_werror_flag"
9368 || test ! -s conftest.err'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; } &&
9374 { ac_try='test -s conftest.$ac_objext'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9380 timidity_cv_type_volatile=yes
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9385 timidity_cv_type_volatile=no
9387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9389 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9390 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9391 if test $timidity_cv_type_volatile = no; then
9393 cat >>confdefs.h <<\_ACEOF
9394 #define NO_VOLATILE 1
9399 echo "$as_me:$LINENO: checking union semun declaration" >&5
9400 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9401 if test "${timidity_cv_type_union_semun+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 cat >conftest.$ac_ext <<_ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9411 #include <sys/types.h>
9412 #include <sys/ipc.h>
9413 #include <sys/sem.h>
9423 rm -f conftest.$ac_objext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9425 (eval $ac_compile) 2>conftest.er1
9427 grep -v '^ *+' conftest.er1 >conftest.err
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -z "$ac_c_werror_flag"
9433 || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try='test -s conftest.$ac_objext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 timidity_cv_type_union_semun=yes
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 timidity_cv_type_union_semun=no
9452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9454 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9455 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9456 if test $timidity_cv_type_union_semun = yes; then
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_UNION_SEMUN 1
9464 if test "x$MSYS" = xyes ; then
9468 echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9469 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9470 if test -z "$ac_cv_prog_CC"; then
9473 our_gcc="$ac_cv_prog_CC"
9475 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9477 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9478 msnative_struct='-fnative-struct'
9482 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9483 msnative_struct='-mms-bitfields'
9487 if test x"$msnative_struct" = x ; then
9488 echo "$as_me:$LINENO: result: no way" >&5
9489 echo "${ECHO_T}no way" >&6
9490 { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9491 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9493 CFLAGS="$CFLAGS $msnative_struct"
9494 CPPFLAGS="$CPPFLAGS $msnative_struct"
9495 echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9496 echo "${ECHO_T}${msnative_struct}" >&6
9503 if test "x$MSYS" = xyes ; then
9504 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9505 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9506 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 cat >conftest.$ac_ext <<_ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9516 #include <windows.h>
9517 #include <mmsystem.h>
9522 return WOM_OPEN != 0x3BB
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529 (eval $ac_compile) 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 timidity_cv_header_new_mmsystem=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 timidity_cv_header_new_mmsystem=no
9556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9559 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9560 if test $timidity_cv_header_new_mmsystem = yes; then
9562 cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_NEW_MMSYSTEM 1
9569 # Checks for library functions.
9570 echo "$as_me:$LINENO: checking for error_at_line" >&5
9571 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9572 if test "${ac_cv_lib_error_at_line+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 $ac_includes_default
9585 error_at_line (0, 0, "", 0, "");
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592 (eval $ac_link) 2>conftest.er1
9594 grep -v '^ *+' conftest.er1 >conftest.err
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -z "$ac_c_werror_flag"
9600 || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest$ac_exeext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_lib_error_at_line=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_lib_error_at_line=no
9619 rm -f conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9622 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9623 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9624 if test $ac_cv_lib_error_at_line = no; then
9626 "error.$ac_objext" | \
9627 *" error.$ac_objext" | \
9628 "error.$ac_objext "* | \
9629 *" error.$ac_objext "* ) ;;
9630 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9637 for ac_header in unistd.h vfork.h
9639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9641 echo "$as_me:$LINENO: checking for $ac_header" >&5
9642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9649 # Is the header compilable?
9650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9652 cat >conftest.$ac_ext <<_ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 $ac_includes_default
9659 #include <$ac_header>
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663 (eval $ac_compile) 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag"
9671 || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_header_compiler=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_header_compiler=no
9690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6
9694 # Is the header present?
9695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <$ac_header>
9705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } >/dev/null; then
9713 if test -s conftest.err; then
9714 ac_cpp_err=$ac_c_preproc_warn_flag
9715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9722 if test -z "$ac_cpp_err"; then
9723 ac_header_preproc=yes
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_header_preproc=no
9730 rm -f conftest.err conftest.$ac_ext
9731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732 echo "${ECHO_T}$ac_header_preproc" >&6
9734 # So? What about this header?
9735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9741 ac_header_preproc=yes
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9758 ## ------------------------------- ##
9759 ## Report this to root@mput.dip.jp ##
9760 ## ------------------------------- ##
9763 sed "s/^/$as_me: WARNING: /" >&2
9766 echo "$as_me:$LINENO: checking for $ac_header" >&5
9767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 eval "$as_ac_Header=\$ac_header_preproc"
9773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9778 cat >>confdefs.h <<_ACEOF
9779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9788 for ac_func in fork vfork
9790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9791 echo "$as_me:$LINENO: checking for $ac_func" >&5
9792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9793 if eval "test \"\${$as_ac_var+set}\" = set"; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9804 #define $ac_func innocuous_$ac_func
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char $ac_func (); below.
9808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809 <limits.h> exists even on freestanding compilers. */
9812 # include <limits.h>
9814 # include <assert.h>
9819 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9827 /* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9833 char (*f) () = $ac_func;
9842 return f != $ac_func;
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849 (eval $ac_link) 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 eval "$as_ac_var=yes"
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 eval "$as_ac_var=no"
9876 rm -f conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9881 if test `eval echo '${'$as_ac_var'}'` = yes; then
9882 cat >>confdefs.h <<_ACEOF
9883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9889 if test "x$ac_cv_func_fork" = xyes; then
9890 echo "$as_me:$LINENO: checking for working fork" >&5
9891 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9892 if test "${ac_cv_func_fork_works+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 if test "$cross_compiling" = yes; then
9896 ac_cv_func_fork_works=cross
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* By Ruediger Kuhlmann. */
9900 #include <sys/types.h>
9902 # include <unistd.h>
9904 /* Some systems only have a dummy stub for fork() */
9912 rm -f conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_func_fork_works=yes
9925 echo "$as_me: program exited with status $ac_status" >&5
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9930 ac_cv_func_fork_works=no
9932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9935 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9936 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9939 ac_cv_func_fork_works=$ac_cv_func_fork
9941 if test "x$ac_cv_func_fork_works" = xcross; then
9943 *-*-amigaos* | *-*-msdosdjgpp*)
9944 # Override, as these systems have only a dummy fork() stub
9945 ac_cv_func_fork_works=no
9948 ac_cv_func_fork_works=yes
9951 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9952 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9954 ac_cv_func_vfork_works=$ac_cv_func_vfork
9955 if test "x$ac_cv_func_vfork" = xyes; then
9956 echo "$as_me:$LINENO: checking for working vfork" >&5
9957 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9958 if test "${ac_cv_func_vfork_works+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 if test "$cross_compiling" = yes; then
9962 ac_cv_func_vfork_works=cross
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 /* Thanks to Paul Eggert for this test. */
9973 #include <sys/types.h>
9974 #include <sys/stat.h>
9975 #include <sys/wait.h>
9977 # include <unistd.h>
9982 /* On some sparc systems, changes by the child to local and incoming
9983 argument registers are propagated back to the parent. The compiler
9984 is told about this with #include <vfork.h>, but some compilers
9985 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9986 static variable whose address is put into a register that is
9987 clobbered by the vfork. */
9990 sparc_address_test (int arg)
9992 sparc_address_test (arg) int arg;
10013 pid_t parent = getpid ();
10016 sparc_address_test (0);
10021 /* Here is another test for sparc vfork register problems. This
10022 test uses lots of local variables, at least as many local
10023 variables as main has allocated so far including compiler
10024 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10025 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10026 reuse the register of parent for one of the local variables,
10027 since it will think that parent can't possibly be used any more
10028 in this routine. Assigning to the local variable will thus
10029 munge parent in the parent process. */
10031 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10032 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10033 /* Convince the compiler that p..p7 are live; otherwise, it might
10034 use the same hardware register for all 8 local variables. */
10035 if (p != p1 || p != p2 || p != p3 || p != p4
10036 || p != p5 || p != p6 || p != p7)
10039 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10040 from child file descriptors. If the child closes a descriptor
10041 before it execs or exits, this munges the parent's descriptor
10042 as well. Test for this by closing stdout in the child. */
10043 _exit(close(fileno(stdout)) != 0);
10048 while (wait(&status) != child)
10051 /* Was there some problem with vforking? */
10054 /* Did the child fail? (This shouldn't happen.) */
10057 /* Did the vfork/compiler bug occur? */
10058 || parent != getpid()
10060 /* Did the file descriptor bug occur? */
10061 || fstat(fileno(stdout), &st) != 0
10066 rm -f conftest$ac_exeext
10067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068 (eval $ac_link) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_func_vfork_works=yes
10079 echo "$as_me: program exited with status $ac_status" >&5
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ( exit $ac_status )
10084 ac_cv_func_vfork_works=no
10086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10089 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10090 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10093 if test "x$ac_cv_func_fork_works" = xcross; then
10094 ac_cv_func_vfork_works=$ac_cv_func_vfork
10095 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10096 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10099 if test "x$ac_cv_func_vfork_works" = xyes; then
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_WORKING_VFORK 1
10107 cat >>confdefs.h <<\_ACEOF
10112 if test "x$ac_cv_func_fork_works" = xyes; then
10114 cat >>confdefs.h <<\_ACEOF
10115 #define HAVE_WORKING_FORK 1
10120 echo "$as_me:$LINENO: checking for working memcmp" >&5
10121 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10122 if test "${ac_cv_func_memcmp_working+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 if test "$cross_compiling" = yes; then
10126 ac_cv_func_memcmp_working=no
10128 cat >conftest.$ac_ext <<_ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 $ac_includes_default
10139 /* Some versions of memcmp are not 8-bit clean. */
10140 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10141 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10144 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10145 or more and with at least one buffer not starting on a 4-byte boundary.
10146 William Lewis provided this test program. */
10151 for (i = 0; i < 4; i++)
10155 strcpy (a, "--------01111111");
10156 strcpy (b, "--------10000000");
10157 if (memcmp (a, b, 16) >= 0)
10167 rm -f conftest$ac_exeext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_func_memcmp_working=yes
10180 echo "$as_me: program exited with status $ac_status" >&5
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ( exit $ac_status )
10185 ac_cv_func_memcmp_working=no
10187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10190 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10191 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10192 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
10193 "memcmp.$ac_objext" | \
10194 *" memcmp.$ac_objext" | \
10195 "memcmp.$ac_objext "* | \
10196 *" memcmp.$ac_objext "* ) ;;
10197 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
10203 for ac_header in stdlib.h unistd.h
10205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10207 echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10215 # Is the header compilable?
10216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10218 cat >conftest.$ac_ext <<_ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224 $ac_includes_default
10225 #include <$ac_header>
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest.$ac_objext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_header_compiler=yes
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_header_compiler=no
10256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10258 echo "${ECHO_T}$ac_header_compiler" >&6
10260 # Is the header present?
10261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 #include <$ac_header>
10271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10274 grep -v '^ *+' conftest.er1 >conftest.err
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } >/dev/null; then
10279 if test -s conftest.err; then
10280 ac_cpp_err=$ac_c_preproc_warn_flag
10281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10288 if test -z "$ac_cpp_err"; then
10289 ac_header_preproc=yes
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ac_header_preproc=no
10296 rm -f conftest.err conftest.$ac_ext
10297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10298 echo "${ECHO_T}$ac_header_preproc" >&6
10300 # So? What about this header?
10301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10307 ac_header_preproc=yes
10310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10324 ## ------------------------------- ##
10325 ## Report this to root@mput.dip.jp ##
10326 ## ------------------------------- ##
10329 sed "s/^/$as_me: WARNING: /" >&2
10332 echo "$as_me:$LINENO: checking for $ac_header" >&5
10333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 eval "$as_ac_Header=\$ac_header_preproc"
10339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10344 cat >>confdefs.h <<_ACEOF
10345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10353 for ac_func in getpagesize
10355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10356 echo "$as_me:$LINENO: checking for $ac_func" >&5
10357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10358 if eval "test \"\${$as_ac_var+set}\" = set"; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10369 #define $ac_func innocuous_$ac_func
10371 /* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char $ac_func (); below.
10373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10374 <limits.h> exists even on freestanding compilers. */
10377 # include <limits.h>
10379 # include <assert.h>
10384 /* Override any gcc2 internal prototype to avoid an error. */
10389 /* We use char because int might match the return type of a gcc2
10390 builtin and then its argument prototype would still apply. */
10392 /* The GNU C library defines this for functions which it implements
10393 to always fail with ENOSYS. Some functions are actually named
10394 something starting with __ and the normal name is an alias. */
10395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10398 char (*f) () = $ac_func;
10407 return f != $ac_func;
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414 (eval $ac_link) 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 eval "$as_ac_var=yes"
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 eval "$as_ac_var=no"
10441 rm -f conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10446 if test `eval echo '${'$as_ac_var'}'` = yes; then
10447 cat >>confdefs.h <<_ACEOF
10448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10454 echo "$as_me:$LINENO: checking for working mmap" >&5
10455 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10456 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 if test "$cross_compiling" = yes; then
10460 ac_cv_func_mmap_fixed_mapped=no
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 $ac_includes_default
10469 /* malloc might have been renamed as rpl_malloc. */
10472 /* Thanks to Mike Haertel and Jim Avera for this test.
10473 Here is a matrix of mmap possibilities:
10474 mmap private not fixed
10475 mmap private fixed at somewhere currently unmapped
10476 mmap private fixed at somewhere already mapped
10477 mmap shared not fixed
10478 mmap shared fixed at somewhere currently unmapped
10479 mmap shared fixed at somewhere already mapped
10480 For private mappings, we should verify that changes cannot be read()
10481 back from the file, nor mmap's back from the file at a different
10482 address. (There have been systems where private was not correctly
10483 implemented like the infamous i386 svr4.0, and systems where the
10484 VM page cache was not coherent with the file system buffer cache
10485 like early versions of FreeBSD and possibly contemporary NetBSD.)
10486 For shared mappings, we should conversely verify that changes get
10487 propagated back to all the places they're supposed to be.
10489 Grep wants private fixed already mapped.
10490 The main things grep needs to know about mmap are:
10491 * does it exist and is it safe to write into the mmap'd area
10492 * how to use it (BSD variants) */
10495 #include <sys/mman.h>
10497 #if !STDC_HEADERS && !HAVE_STDLIB_H
10501 /* This mess was copied from the GNU getpagesize.h. */
10502 #if !HAVE_GETPAGESIZE
10503 /* Assume that all systems that can run configure have sys/param.h. */
10504 # if !HAVE_SYS_PARAM_H
10505 # define HAVE_SYS_PARAM_H 1
10508 # ifdef _SC_PAGESIZE
10509 # define getpagesize() sysconf(_SC_PAGESIZE)
10510 # else /* no _SC_PAGESIZE */
10511 # if HAVE_SYS_PARAM_H
10512 # include <sys/param.h>
10513 # ifdef EXEC_PAGESIZE
10514 # define getpagesize() EXEC_PAGESIZE
10515 # else /* no EXEC_PAGESIZE */
10517 # define getpagesize() NBPG * CLSIZE
10520 # endif /* no CLSIZE */
10521 # else /* no NBPG */
10523 # define getpagesize() NBPC
10524 # else /* no NBPC */
10526 # define getpagesize() PAGESIZE
10527 # endif /* PAGESIZE */
10528 # endif /* no NBPC */
10529 # endif /* no NBPG */
10530 # endif /* no EXEC_PAGESIZE */
10531 # else /* no HAVE_SYS_PARAM_H */
10532 # define getpagesize() 8192 /* punt totally */
10533 # endif /* no HAVE_SYS_PARAM_H */
10534 # endif /* no _SC_PAGESIZE */
10536 #endif /* no HAVE_GETPAGESIZE */
10541 char *data, *data2, *data3;
10545 pagesize = getpagesize ();
10547 /* First, make a file with some known garbage in it. */
10548 data = (char *) malloc (pagesize);
10551 for (i = 0; i < pagesize; ++i)
10552 *(data + i) = rand ();
10554 fd = creat ("conftest.mmap", 0600);
10557 if (write (fd, data, pagesize) != pagesize)
10561 /* Next, try to mmap the file at a fixed address which already has
10562 something else allocated at it. If we can, also make sure that
10563 we see the same garbage. */
10564 fd = open ("conftest.mmap", O_RDWR);
10567 data2 = (char *) malloc (2 * pagesize);
10570 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10571 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10572 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10574 for (i = 0; i < pagesize; ++i)
10575 if (*(data + i) != *(data2 + i))
10578 /* Finally, make sure that changes to the mapped area do not
10579 percolate back to the file as seen by read(). (This is a bug on
10580 some variants of i386 svr4.0.) */
10581 for (i = 0; i < pagesize; ++i)
10582 *(data2 + i) = *(data2 + i) + 1;
10583 data3 = (char *) malloc (pagesize);
10586 if (read (fd, data3, pagesize) != pagesize)
10588 for (i = 0; i < pagesize; ++i)
10589 if (*(data + i) != *(data3 + i))
10595 rm -f conftest$ac_exeext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597 (eval $ac_link) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 ac_cv_func_mmap_fixed_mapped=yes
10608 echo "$as_me: program exited with status $ac_status" >&5
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10612 ( exit $ac_status )
10613 ac_cv_func_mmap_fixed_mapped=no
10615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10619 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10620 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10622 cat >>confdefs.h <<\_ACEOF
10623 #define HAVE_MMAP 1
10627 rm -f conftest.mmap
10629 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10630 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10631 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 ac_cv_func_setvbuf_reversed=no
10635 cat >conftest.$ac_ext <<_ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10643 int (setvbuf) (FILE *, int, char *, size_t);
10648 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655 (eval $ac_link) 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10683 int (setvbuf) (FILE *, int, char *, size_t);
10688 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10693 rm -f conftest.$ac_objext conftest$ac_exeext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>conftest.er1
10697 grep -v '^ *+' conftest.er1 >conftest.err
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 # It compiles and links either way, so it must not be declared
10716 # with a prototype and most likely this is a K&R C compiler.
10718 if test "$cross_compiling" = yes; then
10719 : # Assume setvbuf is not reversed when cross-compiling.
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10731 /* This call has the arguments reversed.
10732 A reversed system may check and see that the address of buf
10733 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10735 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10738 exit (0); /* Non-reversed systems SEGV here. */
10743 rm -f conftest$ac_exeext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745 (eval $ac_link) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 ac_cv_func_setvbuf_reversed=yes
10756 echo "$as_me: program exited with status $ac_status" >&5
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 ( exit $ac_status )
10763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10765 ac_cv_func_setvbuf_reversed=yes
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10771 rm -f conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext conftest.$ac_ext
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10778 rm -f conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10781 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10782 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10783 if test $ac_cv_func_setvbuf_reversed = yes; then
10785 cat >>confdefs.h <<\_ACEOF
10786 #define SETVBUF_REVERSED 1
10791 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10792 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10793 if test "${ac_cv_type_signal+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 #include <sys/types.h>
10803 #include <signal.h>
10808 extern "C" void (*signal (int, void (*)(int)))(int);
10810 void (*signal ()) ();
10821 rm -f conftest.$ac_objext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10823 (eval $ac_compile) 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } &&
10830 { ac_try='test -z "$ac_c_werror_flag"
10831 || test ! -s conftest.err'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; } &&
10837 { ac_try='test -s conftest.$ac_objext'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 ac_cv_type_signal=void
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 ac_cv_type_signal=int
10850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10853 echo "${ECHO_T}$ac_cv_type_signal" >&6
10855 cat >>confdefs.h <<_ACEOF
10856 #define RETSIGTYPE $ac_cv_type_signal
10860 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes"; then
10862 for ac_func in vprintf
10864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10865 echo "$as_me:$LINENO: checking for $ac_func" >&5
10866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10867 if eval "test \"\${$as_ac_var+set}\" = set"; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 cat >conftest.$ac_ext <<_ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10878 #define $ac_func innocuous_$ac_func
10880 /* System header to define __stub macros and hopefully few prototypes,
10881 which can conflict with char $ac_func (); below.
10882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10883 <limits.h> exists even on freestanding compilers. */
10886 # include <limits.h>
10888 # include <assert.h>
10893 /* Override any gcc2 internal prototype to avoid an error. */
10898 /* We use char because int might match the return type of a gcc2
10899 builtin and then its argument prototype would still apply. */
10901 /* The GNU C library defines this for functions which it implements
10902 to always fail with ENOSYS. Some functions are actually named
10903 something starting with __ and the normal name is an alias. */
10904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10907 char (*f) () = $ac_func;
10916 return f != $ac_func;
10921 rm -f conftest.$ac_objext conftest$ac_exeext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923 (eval $ac_link) 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag"
10931 || test ! -s conftest.err'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try='test -s conftest$ac_exeext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 eval "$as_ac_var=yes"
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 eval "$as_ac_var=no"
10950 rm -f conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10955 if test `eval echo '${'$as_ac_var'}'` = yes; then
10956 cat >>confdefs.h <<_ACEOF
10957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10960 echo "$as_me:$LINENO: checking for _doprnt" >&5
10961 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10962 if test "${ac_cv_func__doprnt+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973 #define _doprnt innocuous__doprnt
10975 /* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char _doprnt (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10981 # include <limits.h>
10983 # include <assert.h>
10988 /* Override any gcc2 internal prototype to avoid an error. */
10993 /* We use char because int might match the return type of a gcc2
10994 builtin and then its argument prototype would still apply. */
10996 /* The GNU C library defines this for functions which it implements
10997 to always fail with ENOSYS. Some functions are actually named
10998 something starting with __ and the normal name is an alias. */
10999 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11002 char (*f) () = _doprnt;
11011 return f != _doprnt;
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018 (eval $ac_link) 2>conftest.er1
11020 grep -v '^ *+' conftest.er1 >conftest.err
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_cv_func__doprnt=yes
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 ac_cv_func__doprnt=no
11045 rm -f conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11048 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11049 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11050 if test $ac_cv_func__doprnt = yes; then
11052 cat >>confdefs.h <<\_ACEOF
11053 #define HAVE_DOPRNT 1
11137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11138 echo "$as_me:$LINENO: checking for $ac_func" >&5
11139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11140 if eval "test \"\${$as_ac_var+set}\" = set"; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 cat >conftest.$ac_ext <<_ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11151 #define $ac_func innocuous_$ac_func
11153 /* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11159 # include <limits.h>
11161 # include <assert.h>
11166 /* Override any gcc2 internal prototype to avoid an error. */
11171 /* We use char because int might match the return type of a gcc2
11172 builtin and then its argument prototype would still apply. */
11174 /* The GNU C library defines this for functions which it implements
11175 to always fail with ENOSYS. Some functions are actually named
11176 something starting with __ and the normal name is an alias. */
11177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11180 char (*f) () = $ac_func;
11189 return f != $ac_func;
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>conftest.er1
11198 grep -v '^ *+' conftest.er1 >conftest.err
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag"
11204 || test ! -s conftest.err'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try='test -s conftest$ac_exeext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 eval "$as_ac_var=yes"
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11221 eval "$as_ac_var=no"
11223 rm -f conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
11226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11228 if test `eval echo '${'$as_ac_var'}'` = yes; then
11229 cat >>confdefs.h <<_ACEOF
11230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11236 if test "x$VCPP" = xyes; then
11237 cat >>confdefs.h <<\_ACEOF
11238 #define RETSIGTYPE int
11241 cat >>confdefs.h <<\_ACEOF
11242 #define HAVE_GETCWD int
11246 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_GETHOSTBYNAME 1
11251 cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_POPEN 1
11256 cat >>confdefs.h <<\_ACEOF
11257 #define popen _popen
11261 cat >>confdefs.h <<\_ACEOF
11262 #define pclose _pclose
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_SELECT 1
11269 cat >>confdefs.h <<\_ACEOF
11270 #define HAVE_SNPRINTF 1
11273 cat >>confdefs.h <<\_ACEOF
11274 #define HAVE_STRDUP 1
11277 cat >>confdefs.h <<\_ACEOF
11278 #define HAVE_STRERROR 1
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_STRNCASECMP 1
11285 cat >>confdefs.h <<\_ACEOF
11286 #define HAVE_STRSTR 1
11290 cat >>confdefs.h <<\_ACEOF
11291 #define snprintf _snprintf
11294 cat >>confdefs.h <<\_ACEOF
11295 #define HAVE_SOCKET 1
11298 cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_VSNPRINTF 1
11303 cat >>confdefs.h <<\_ACEOF
11304 #define vsnprintf _vsnprintf
11308 cat >>confdefs.h <<\_ACEOF
11309 #define TIMID_VERSION $(PACKAGE_VERSION)
11314 echo "$as_me:$LINENO: checking for getopt_long" >&5
11315 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
11316 if test "${ac_cv_func_getopt_long+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 cat >conftest.$ac_ext <<_ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11325 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11327 #define getopt_long innocuous_getopt_long
11329 /* System header to define __stub macros and hopefully few prototypes,
11330 which can conflict with char getopt_long (); below.
11331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11332 <limits.h> exists even on freestanding compilers. */
11335 # include <limits.h>
11337 # include <assert.h>
11342 /* Override any gcc2 internal prototype to avoid an error. */
11347 /* We use char because int might match the return type of a gcc2
11348 builtin and then its argument prototype would still apply. */
11349 char getopt_long ();
11350 /* The GNU C library defines this for functions which it implements
11351 to always fail with ENOSYS. Some functions are actually named
11352 something starting with __ and the normal name is an alias. */
11353 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11356 char (*f) () = getopt_long;
11365 return f != getopt_long;
11370 rm -f conftest.$ac_objext conftest$ac_exeext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372 (eval $ac_link) 2>conftest.er1
11374 grep -v '^ *+' conftest.er1 >conftest.err
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -z "$ac_c_werror_flag"
11380 || test ! -s conftest.err'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest$ac_exeext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_func_getopt_long=yes
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 ac_cv_func_getopt_long=no
11399 rm -f conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11402 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11403 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11404 if test $ac_cv_func_getopt_long = yes; then
11406 cat >>confdefs.h <<\_ACEOF
11407 #define HAVE_GETOPT_LONG 1
11410 tm_cv_needgetopt="no"
11412 tm_cv_needgetopt="yes"
11417 if test "x$tm_cv_needgetopt" = "xyes"; then
11419 NEEDGETOPT_FALSE='#'
11421 NEEDGETOPT_TRUE='#'
11426 # Checks on cygnus and MYSYS
11427 if test "x$MSYS" = xyes ; then
11428 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
11430 echo "$as_me:$LINENO: checking for opendir" >&5
11431 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11432 if test "${ac_cv_func_opendir+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 cat >conftest.$ac_ext <<_ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11443 #define opendir innocuous_opendir
11445 /* System header to define __stub macros and hopefully few prototypes,
11446 which can conflict with char opendir (); below.
11447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11448 <limits.h> exists even on freestanding compilers. */
11451 # include <limits.h>
11453 # include <assert.h>
11458 /* Override any gcc2 internal prototype to avoid an error. */
11463 /* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11466 /* The GNU C library defines this for functions which it implements
11467 to always fail with ENOSYS. Some functions are actually named
11468 something starting with __ and the normal name is an alias. */
11469 #if defined (__stub_opendir) || defined (__stub___opendir)
11472 char (*f) () = opendir;
11481 return f != opendir;
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11488 (eval $ac_link) 2>conftest.er1
11490 grep -v '^ *+' conftest.er1 >conftest.err
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag"
11496 || test ! -s conftest.err'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest$ac_exeext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_cv_func_opendir=yes
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_cv_func_opendir=no
11515 rm -f conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11518 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11519 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11520 if test $ac_cv_func_opendir = yes; then
11523 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11528 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11532 if test "x$enable_network" = "xyes"; then
11533 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11534 EXTRALIBS="$EXTRALIBS wsock32.lib"
11535 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11537 echo "$as_me:$LINENO: checking for socket" >&5
11538 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11539 if test "${ac_cv_func_socket+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 cat >conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11550 #define socket innocuous_socket
11552 /* System header to define __stub macros and hopefully few prototypes,
11553 which can conflict with char socket (); below.
11554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11555 <limits.h> exists even on freestanding compilers. */
11558 # include <limits.h>
11560 # include <assert.h>
11565 /* Override any gcc2 internal prototype to avoid an error. */
11570 /* We use char because int might match the return type of a gcc2
11571 builtin and then its argument prototype would still apply. */
11573 /* The GNU C library defines this for functions which it implements
11574 to always fail with ENOSYS. Some functions are actually named
11575 something starting with __ and the normal name is an alias. */
11576 #if defined (__stub_socket) || defined (__stub___socket)
11579 char (*f) () = socket;
11588 return f != socket;
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>conftest.er1
11597 grep -v '^ *+' conftest.er1 >conftest.err
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -z "$ac_c_werror_flag"
11603 || test ! -s conftest.err'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; } &&
11609 { ac_try='test -s conftest$ac_exeext'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 ac_cv_func_socket=yes
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 ac_cv_func_socket=no
11622 rm -f conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11625 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11626 echo "${ECHO_T}$ac_cv_func_socket" >&6
11627 if test $ac_cv_func_socket = yes; then
11630 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11631 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11632 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11633 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 ac_save_LIBS="$LIBS"
11637 LIBS="-lwsock32 $LIBS"
11638 cat >conftest.$ac_ext <<_ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 #include <windows.h>
11645 #include <winsock.h>
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657 (eval $ac_link) 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_c_werror_flag"
11665 || test ! -s conftest.err'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest$ac_exeext'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 eval "wapi_cv_lib_$ac_lib_var=yes"
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 eval "wapi_cv_lib_$ac_lib_var=no"
11684 rm -f conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 LIBS="$ac_save_LIBS"
11689 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11690 echo "$as_me:$LINENO: result: yes" >&5
11691 echo "${ECHO_T}yes" >&6
11692 EXTRALIBS="$EXTRALIBS -lwsock32"
11693 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11696 echo "$as_me:$LINENO: result: no" >&5
11697 echo "${ECHO_T}no" >&6
11707 # Checks on extra paths
11710 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11711 if test "${with_tcl_includes+set}" = set; then
11712 withval="$with_tcl_includes"
11713 if test ! -d $withval; then
11714 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11715 echo "$as_me: WARNING: $withval is not found." >&2;}
11717 tcl_include_dir="-I$withval"
11721 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11722 if test "${with_tcl_libs+set}" = set; then
11723 withval="$with_tcl_libs"
11724 if test ! -d $withval; then
11725 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11726 echo "$as_me: WARNING: $withval is not found." >&2;}
11728 tcl_libdir="-L$withval"
11731 # Check whether --with-tk-includes or --without-tk-includes was given.
11732 if test "${with_tk_includes+set}" = set; then
11733 withval="$with_tk_includes"
11734 if test ! -d $withval; then
11735 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11736 echo "$as_me: WARNING: $withval is not found." >&2;}
11738 tk_includes="-I$withval"
11741 # Check whether --with-tk-libs or --without-tk-libs was given.
11742 if test "${with_tk_libs+set}" = set; then
11743 withval="$with_tk_libs"
11744 if test ! -d $withval; then
11745 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11746 echo "$as_me: WARNING: $withval is not found." >&2;}
11748 tk_libdir="-L$withval"
11752 # Check whether --with-offix-includes or --without-offix-includes was given.
11753 if test "${with_offix_includes+set}" = set; then
11754 withval="$with_offix_includes"
11755 if test ! -d $withval; then
11756 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11757 echo "$as_me: WARNING: $withval is not found." >&2;}
11759 offix_include_dir="-I$withval"
11762 # Check whether --with-offix-libs or --without-offix-libs was given.
11763 if test "${with_offix_libs+set}" = set; then
11764 withval="$with_offix_libs"
11765 if test ! -d $withval; then
11766 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11767 echo "$as_me: WARNING: $withval is not found." >&2;}
11769 offix_lib_dir="-L$withval"
11777 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11780 # Check whether --with-nas-library or --without-nas-library was given.
11781 if test "${with_nas_library+set}" = set; then
11782 withval="$with_nas_library"
11786 # Check whether --with-nas-includes or --without-nas-includes was given.
11787 if test "${with_nas_includes+set}" = set; then
11788 withval="$with_nas_includes"
11793 # Check whether --enable-audio or --disable-audio was given.
11794 if test "${enable_audio+set}" = set; then
11795 enableval="$enable_audio"
11796 enable_audio=$enableval
11803 test "x$enable_audio" = xyes && enable_audio=default
11805 if test "x$enable_audio" != xno; then
11806 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11807 eval "au_enable_$i=yes"
11813 # Check whether --with-default-output or --without-default-output was given.
11814 if test "${with_default_output+set}" = set; then
11815 withval="$with_default_output"
11816 if test "$enable_audio" != no; then
11817 DEFAULT_PLAYMODE=$withval
11818 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11820 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11821 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11826 if test "x$au_enable_default" = xyes; then
11828 *-*-linux*|*-*-freebsd*)
11832 au_enable_sb_dsp=yes
11834 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11862 au_enable_darwin=yes
11865 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11866 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11872 # Each audio mode's configurations
11873 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11874 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11875 if test "x$au_enable_oss" = xyes; then
11876 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11877 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11878 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11879 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11880 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11884 echo "$as_me:$LINENO: result: yes" >&5
11885 echo "${ECHO_T}yes" >&6
11888 if test "x$ac_cv_header_soundcard_h" = xyes; then
11889 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11890 echo "${ECHO_T}yes - <soundcard.h>" >&6
11892 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11893 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11899 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11900 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11901 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-lossaudio $LIBS"
11906 cat >conftest.$ac_ext <<_ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11913 /* Override any gcc2 internal prototype to avoid an error. */
11917 /* We use char because int might match the return type of a gcc2
11918 builtin and then its argument prototype would still apply. */
11928 rm -f conftest.$ac_objext conftest$ac_exeext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930 (eval $ac_link) 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_c_werror_flag"
11938 || test ! -s conftest.err'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest$ac_exeext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_cv_lib_ossaudio_open=yes
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11955 ac_cv_lib_ossaudio_open=no
11957 rm -f conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959 LIBS=$ac_check_lib_save_LIBS
11961 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11962 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11963 if test $ac_cv_lib_ossaudio_open = yes; then
11964 cat >>confdefs.h <<_ACEOF
11965 #define HAVE_LIBOSSAUDIO 1
11968 LIBS="-lossaudio $LIBS"
11975 if test ! -e "/dev/dsp"; then
11976 oss_device=/dev/audio
11981 echo "$as_me:$LINENO: result: no" >&5
11982 echo "${ECHO_T}no" >&6
11985 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11986 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11987 if test "x$au_enable_sun" = xyes; then
11990 if test -f /usr/demo/SOUND/libaudio.a; then
11991 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11992 echo "$as_me:$LINENO: result: yes" >&5
11993 echo "${ECHO_T}yes" >&6
11995 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11996 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
12000 if test -f /usr/demo/SOUND/lib/libaudio.a; then
12001 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
12002 echo "$as_me:$LINENO: result: yes" >&5
12003 echo "${ECHO_T}yes" >&6
12005 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
12006 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
12009 *) echo "$as_me:$LINENO: result: yes" >&5
12010 echo "${ECHO_T}yes" >&6
12013 EXTRADEFS="$EXTRADEFS -DAU_SUN"
12014 SYSEXTRAS="$SYSEXTRAS sun_a.c"
12016 echo "$as_me:$LINENO: result: no" >&5
12017 echo "${ECHO_T}no" >&6
12020 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
12021 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
12022 if test "x$au_enable_hpux" = xyes; then
12024 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12025 echo "${ECHO_T}yes" >&6 ;;
12026 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12027 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12029 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
12030 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
12032 echo "$as_me:$LINENO: result: no" >&5
12033 echo "${ECHO_T}no" >&6
12036 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
12037 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
12038 if test "x$au_enable_irix" = xyes; then
12040 *-sgi-irix5*|*-sgi-irix6.2)
12041 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
12042 echo "$as_me:$LINENO: result: yes" >&5
12043 echo "${ECHO_T}yes" >&6
12046 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
12047 echo "$as_me:$LINENO: result: yes" >&5
12048 echo "${ECHO_T}yes" >&6
12050 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12051 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12053 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
12054 EXTRALIBS="$EXTRASLIBS -laudio"
12056 echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6
12060 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
12061 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
12062 if test "x$au_enable_mme" = xyes; then
12064 *-dec-*) 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_DEC -DAU_AUDRIV"
12070 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
12071 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
12072 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
12074 echo "$as_me:$LINENO: result: no" >&5
12075 echo "${ECHO_T}no" >&6
12078 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
12079 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
12080 if test "x$au_enable_sb_dsp" = xyes; then
12082 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
12083 echo "${ECHO_T}yes" >&6 ;;
12084 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12085 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12087 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
12088 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
12090 echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6
12094 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
12095 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
12096 if test "x$au_enable_w32" = xyes; then
12099 echo "$as_me:$LINENO: result: yes" >&5
12100 echo "${ECHO_T}yes" >&6
12103 echo "$as_me:$LINENO: result: yes" >&5
12104 echo "${ECHO_T}yes" >&6
12107 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12108 echo "$as_me: WARNING: may not work on $target" >&2;}
12111 SYSEXTRAS="$SYSEXTRAS w32_a.c"
12112 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
12113 EXTRALIBS="$EXTRALIBS winmm.lib"
12115 EXTRALIBS="$EXTRALIBS -lwinmm"
12117 EXTRADEFS="$EXTRADEFS -DAU_W32"
12119 echo "$as_me:$LINENO: result: no" >&5
12120 echo "${ECHO_T}no" >&6
12123 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
12124 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
12125 if test "x$au_enable_darwin" = xyes; then
12126 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
12127 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
12128 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
12131 echo "$as_me:$LINENO: result: yes" >&5
12132 echo "${ECHO_T}yes" >&6;;
12134 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12135 echo "$as_me: WARNING: may not work on $target" >&2;}
12139 echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12144 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
12145 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
12146 if test "x$au_enable_alsa" = xyes; then
12147 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
12148 echo "${ECHO_T}yes, configuring alsa" >&6
12151 KEEPLDFLAGS=$LDFLAGS
12152 alsa_save_CFLAGS="$CFLAGS"
12153 alsa_save_LDFLAGS="$LDFLAGS"
12154 alsa_save_LIBS="$LIBS"
12158 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
12159 if test "${with_alsa_prefix+set}" = set; then
12160 withval="$with_alsa_prefix"
12161 alsa_prefix="$withval"
12167 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
12168 if test "${with_alsa_inc_prefix+set}" = set; then
12169 withval="$with_alsa_inc_prefix"
12170 alsa_inc_prefix="$withval"
12175 # Check whether --enable-alsatest or --disable-alsatest was given.
12176 if test "${enable_alsatest+set}" = set; then
12177 enableval="$enable_alsatest"
12180 enable_alsatest=yes
12183 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12184 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12185 if test "$alsa_inc_prefix" != "" ; then
12186 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12187 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12189 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12190 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12192 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12193 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12194 if test "$alsa_prefix" != "" ; then
12195 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12196 LDFLAGS="$LDFLAGS $ALSA_LIBS"
12199 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12200 LIBS=`echo $LIBS | sed 's/-lm//'`
12201 LIBS=`echo $LIBS | sed 's/-ldl//'`
12202 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12203 LIBS=`echo $LIBS | sed 's/ //'`
12204 LIBS="$ALSA_LIBS $LIBS"
12205 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12206 echo "${ECHO_T}$ALSA_LIBS" >&6
12208 min_alsa_version=0.1.1
12209 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12210 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12212 alsa_min_major_version=`echo $min_alsa_version | \
12213 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12214 alsa_min_minor_version=`echo $min_alsa_version | \
12215 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12216 alsa_min_micro_version=`echo $min_alsa_version | \
12217 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12223 ac_cpp='$CPP $CPPFLAGS'
12224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12228 cat >conftest.$ac_ext <<_ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12235 #include <alsa/asoundlib.h>
12241 /* ensure backward compatibility */
12242 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12243 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12245 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12246 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12248 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12249 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12252 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12255 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12256 # error not present
12259 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12262 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12263 # error not present
12266 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12267 # error not present
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 echo "$as_me:$LINENO: result: found." >&5
12300 echo "${ECHO_T}found." >&6
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 cat >conftest.$ac_ext <<_ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12312 #include <sys/asoundlib.h>
12318 /* ensure backward compatibility */
12319 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12320 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12322 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12323 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12325 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12326 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12329 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12332 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12333 # error not present
12336 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12339 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12340 # error not present
12343 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12344 # error not present
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356 (eval $ac_compile) 2>conftest.er1
12358 grep -v '^ *+' conftest.er1 >conftest.err
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest.$ac_objext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 echo "$as_me:$LINENO: result: found." >&5
12377 echo "${ECHO_T}found." >&6
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 echo "$as_me:$LINENO: result: not present." >&5
12383 echo "${ECHO_T}not present." >&6
12384 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12385 echo "${ECHO_T}libasound was not found anywhere." >&6
12388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12389 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12390 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12395 ac_cpp='$CPP $CPPFLAGS'
12396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12402 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12403 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12404 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 ac_check_lib_save_LIBS=$LIBS
12408 LIBS="-lasound $LIBS"
12409 cat >conftest.$ac_ext <<_ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12416 /* Override any gcc2 internal prototype to avoid an error. */
12420 /* We use char because int might match the return type of a gcc2
12421 builtin and then its argument prototype would still apply. */
12422 char snd_ctl_open ();
12431 rm -f conftest.$ac_objext conftest$ac_exeext
12432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12433 (eval $ac_link) 2>conftest.er1
12435 grep -v '^ *+' conftest.er1 >conftest.err
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } &&
12440 { ac_try='test -z "$ac_c_werror_flag"
12441 || test ! -s conftest.err'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } &&
12447 { ac_try='test -s conftest$ac_exeext'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 ac_cv_lib_asound_snd_ctl_open=yes
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ac_cv_lib_asound_snd_ctl_open=no
12460 rm -f conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
12462 LIBS=$ac_check_lib_save_LIBS
12464 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12465 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12466 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12467 cat >>confdefs.h <<_ACEOF
12468 #define HAVE_LIBASOUND 1
12471 LIBS="-lasound $LIBS"
12474 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12475 echo "${ECHO_T}No linkable libasound was found." >&6
12481 if test "x$alsa_found" = "xyes" ; then
12483 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12484 LIBS=`echo $LIBS | sed 's/ //'`
12485 LIBS="-lasound $LIBS"
12488 CFLAGS="$alsa_save_CFLAGS"
12489 LDFLAGS="$alsa_save_LDFLAGS"
12490 LIBS="$alsa_save_LIBS"
12498 if test "x$alsa_found" = "xyes" ; then
12499 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12500 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12501 for f in $ALSA_CFLAGS; do
12503 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12504 *) CFLAGS="$CPPFLAGS $f" ;;
12508 LIBS="$LIBS $ALSA_LIBS"
12510 for ac_func in snd_seq_port_info_set_timestamping
12512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12513 echo "$as_me:$LINENO: checking for $ac_func" >&5
12514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12515 if eval "test \"\${$as_ac_var+set}\" = set"; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 cat >conftest.$ac_ext <<_ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12526 #define $ac_func innocuous_$ac_func
12528 /* System header to define __stub macros and hopefully few prototypes,
12529 which can conflict with char $ac_func (); below.
12530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12531 <limits.h> exists even on freestanding compilers. */
12534 # include <limits.h>
12536 # include <assert.h>
12541 /* Override any gcc2 internal prototype to avoid an error. */
12546 /* We use char because int might match the return type of a gcc2
12547 builtin and then its argument prototype would still apply. */
12549 /* The GNU C library defines this for functions which it implements
12550 to always fail with ENOSYS. Some functions are actually named
12551 something starting with __ and the normal name is an alias. */
12552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12555 char (*f) () = $ac_func;
12564 return f != $ac_func;
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571 (eval $ac_link) 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag"
12579 || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest$ac_exeext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 eval "$as_ac_var=yes"
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 eval "$as_ac_var=no"
12598 rm -f conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12603 if test `eval echo '${'$as_ac_var'}'` = yes; then
12604 cat >>confdefs.h <<_ACEOF
12605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12612 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12613 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12616 LDFLAGS=$KEEPLDFLAGS
12619 echo "$as_me:$LINENO: result: no" >&5
12620 echo "${ECHO_T}no" >&6
12623 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12624 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12625 if test "x$au_enable_alib" = xyes; then
12627 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12628 echo "${ECHO_T}yes" >&6 ;;
12629 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12630 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12632 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12633 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12634 if test -d /opt/audio/include; then
12635 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12637 if test -d /opt/audio/lib; then
12638 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12640 EXTRALIBS="$EXTRALIBS -lAlib"
12642 echo "$as_me:$LINENO: result: no" >&5
12643 echo "${ECHO_T}no" >&6
12646 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12647 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12648 if test "x$au_enable_nas" = xyes; then
12649 if test "x$with_x" != xyes; then
12650 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12651 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12652 { (exit 1); exit 1; }; }
12654 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12655 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12658 if test "x$with_nas_library" != x; then
12659 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12660 echo "${ECHO_T}$with_nas_library" >&6;
12661 EXTRALIBS="$EXTRALIBS $with_nas_library"
12663 echo "$as_me:$LINENO: result: " >&5
12664 echo "${ECHO_T}" >&6
12665 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12666 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12667 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 ac_func_search_save_LIBS="$LIBS"
12671 timidity_cv_search_AuOpenServer="no"
12672 for i in $x_libraries/libaudio.a \
12673 /usr/lib/libaudio.so \
12674 /usr/lib/libaudio.a ; do
12675 LIBS="$i $ac_func_search_save_LIBS"
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12683 /* Override any gcc2 internal prototype to avoid an error. */
12687 /* We use char because int might match the return type of a gcc2
12688 builtin and then its argument prototype would still apply. */
12689 char AuOpenServer ();
12698 rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700 (eval $ac_link) 2>conftest.er1
12702 grep -v '^ *+' conftest.er1 >conftest.err
12704 cat conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -z "$ac_c_werror_flag"
12708 || test ! -s conftest.err'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12720 timidity_cv_search_AuOpenServer="$i"; break
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12726 rm -f conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12729 LIBS="$ac_func_search_save_LIBS"
12731 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12732 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12733 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12734 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12735 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12736 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12738 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12739 echo "$as_me: WARNING: NAS library is not found." >&2;}
12742 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12744 if test "x$have_xext" = xyes; then
12745 lib_xext_opt=-lXext
12747 if test "x$have_xprelibs" = xyes; then
12748 lib_xprelibs_opt='-lSM -lICE'
12751 echo "$as_me:$LINENO: result: no" >&5
12752 echo "${ECHO_T}no" >&6
12755 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12756 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12757 if test "x$au_enable_arts" = xyes; then
12758 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12759 echo "${ECHO_T}yes, configuring aRts" >&6
12762 KEEPLDFLAGS=$LDFLAGS
12764 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12765 if test "${with_arts_prefix+set}" = set; then
12766 withval="$with_arts_prefix"
12767 arts_prefix="$withval"
12771 # Check whether --enable-artstest or --disable-artstest was given.
12772 if test "${enable_artstest+set}" = set; then
12773 enableval="$enable_artstest"
12776 enable_artstest=yes
12779 if test x$arts_prefix != x ; then
12780 arts_args="$arts_args --prefix=$arts_prefix"
12781 if test x${ARTS_CONFIG+set} != xset ; then
12782 ARTS_CONFIG=$arts_prefix/bin/artsc-config
12786 # Extract the first word of "artsc-config", so it can be a program name with args.
12787 set dummy artsc-config; ac_word=$2
12788 echo "$as_me:$LINENO: checking for $ac_word" >&5
12789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12790 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 case $ARTS_CONFIG in
12795 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799 for as_dir in $PATH
12802 test -z "$as_dir" && as_dir=.
12803 for ac_exec_ext in '' $ac_executable_extensions; do
12804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12805 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12816 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12818 if test -n "$ARTS_CONFIG"; then
12819 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12820 echo "${ECHO_T}$ARTS_CONFIG" >&6
12822 echo "$as_me:$LINENO: result: no" >&5
12823 echo "${ECHO_T}no" >&6
12826 min_arts_version=0.9.5
12827 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12828 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12830 if test "$ARTS_CONFIG" = "no" ; then
12833 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12834 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12836 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12837 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12838 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12839 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12840 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12841 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12842 if test "x$enable_artstest" = "xyes" ; then
12843 ac_save_CFLAGS="$CFLAGS"
12844 ac_save_LIBS="$LIBS"
12845 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12846 LIBS="$LIBS $ARTS_LIBS"
12847 rm -f conf.artstest
12848 if test "$cross_compiling" = yes; then
12849 echo $ac_n "cross compiling; assumed OK... $ac_c"
12851 cat >conftest.$ac_ext <<_ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12859 #include <stdlib.h>
12860 #include <string.h>
12864 my_strdup (char *str)
12870 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12871 strcpy (new_str, str);
12881 int major, minor, micro;
12884 system ("touch conf.artstest");
12886 /* HP/UX 9 (%@#!) writes to sscanf strings */
12887 tmp_version = my_strdup("$min_arts_version");
12888 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12889 printf("%s, bad version string\n", "$min_arts_version");
12893 if (($arts_major_version > major) ||
12894 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12895 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12901 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12902 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12903 printf("*** best to upgrade to the required version.\n");
12904 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12905 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12906 printf("*** config.cache before re-running configure\n");
12913 rm -f conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12926 echo "$as_me: program exited with status $ac_status" >&5
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 ( exit $ac_status )
12933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12935 CFLAGS="$ac_save_CFLAGS"
12936 LIBS="$ac_save_LIBS"
12939 if test "x$no_arts" = x ; then
12940 echo "$as_me:$LINENO: result: yes" >&5
12941 echo "${ECHO_T}yes" >&6
12944 echo "$as_me:$LINENO: result: no" >&5
12945 echo "${ECHO_T}no" >&6
12946 if test "$ARTS_CONFIG" = "no" ; then
12947 echo "*** The artsc-config script installed by ARTS could not be found"
12948 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12949 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12950 echo "*** full path to artsc-config."
12952 if test -f conf.artstest ; then
12955 echo "*** Could not run ARTS test program, checking why..."
12956 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12957 LIBS="$LIBS $ARTS_LIBS"
12958 cat >conftest.$ac_ext <<_ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>conftest.er1
12980 grep -v '^ *+' conftest.er1 >conftest.err
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 echo "*** The test program compiled, but did not run. This usually means"
12999 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
13000 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
13001 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13002 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13003 echo "*** is required on your system"
13005 echo "*** If you have an old version installed, it is best to remove it, although"
13006 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 echo "*** The test program failed to compile or link. See the file config.log for the"
13012 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
13013 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
13014 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
13016 rm -f conftest.err conftest.$ac_objext \
13017 conftest$ac_exeext conftest.$ac_ext
13018 CFLAGS="$ac_save_CFLAGS"
13019 LIBS="$ac_save_LIBS"
13028 rm -f conf.artstest
13032 LDFLAGS=$KEEPLDFLAGS
13033 if test "x$no_arts" = x; then
13034 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
13035 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
13036 for f in $ARTS_CFLAGS; do
13038 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13039 *) CFLAGS="$CPPFLAGS $f" ;;
13043 LIBS="$LIBS $ARTS_LIBS"
13045 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
13046 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
13049 echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6
13053 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
13054 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
13055 if test "x$au_enable_esd" = xyes; then
13056 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
13057 echo "${ECHO_T}yes, configuring esd" >&6
13060 KEEPLDFLAGS=$LDFLAGS
13062 # Check whether --with-esd-prefix or --without-esd-prefix was given.
13063 if test "${with_esd_prefix+set}" = set; then
13064 withval="$with_esd_prefix"
13065 esd_prefix="$withval"
13070 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
13071 if test "${with_esd_exec_prefix+set}" = set; then
13072 withval="$with_esd_exec_prefix"
13073 esd_exec_prefix="$withval"
13077 # Check whether --enable-esdtest or --disable-esdtest was given.
13078 if test "${enable_esdtest+set}" = set; then
13079 enableval="$enable_esdtest"
13085 if test x$esd_exec_prefix != x ; then
13086 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
13087 if test x${ESD_CONFIG+set} != xset ; then
13088 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
13091 if test x$esd_prefix != x ; then
13092 esd_args="$esd_args --prefix=$esd_prefix"
13093 if test x${ESD_CONFIG+set} != xset ; then
13094 ESD_CONFIG=$esd_prefix/bin/esd-config
13098 # Extract the first word of "esd-config", so it can be a program name with args.
13099 set dummy esd-config; ac_word=$2
13100 echo "$as_me:$LINENO: checking for $ac_word" >&5
13101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13102 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 case $ESD_CONFIG in
13107 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
13128 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
13130 if test -n "$ESD_CONFIG"; then
13131 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
13132 echo "${ECHO_T}$ESD_CONFIG" >&6
13134 echo "$as_me:$LINENO: result: no" >&5
13135 echo "${ECHO_T}no" >&6
13138 min_esd_version=0.2.7
13139 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
13140 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
13142 if test "$ESD_CONFIG" = "no" ; then
13148 ac_cpp='$CPP $CPPFLAGS'
13149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13153 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
13154 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
13156 esd_major_version=`$ESD_CONFIG $esd_args --version | \
13157 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13158 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
13159 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13160 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
13161 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13162 if test "x$enable_esdtest" = "xyes" ; then
13163 ac_save_CFLAGS="$CFLAGS"
13164 ac_save_LIBS="$LIBS"
13165 CFLAGS="$CFLAGS $ESD_CFLAGS"
13166 LIBS="$LIBS $ESD_LIBS"
13168 if test "$cross_compiling" = yes; then
13169 echo $ac_n "cross compiling; assumed OK... $ac_c"
13171 cat >conftest.$ac_ext <<_ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13179 #include <stdlib.h>
13180 #include <string.h>
13184 my_strdup (char *str)
13190 new_str = malloc ((strlen (str) + 1) * sizeof(char));
13191 strcpy (new_str, str);
13201 int major, minor, micro;
13204 system ("touch conf.esdtest");
13206 /* HP/UX 9 (%@#!) writes to sscanf strings */
13207 tmp_version = my_strdup("$min_esd_version");
13208 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13209 printf("%s, bad version string\n", "$min_esd_version");
13213 if (($esd_major_version > major) ||
13214 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13215 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13221 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13222 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13223 printf("*** best to upgrade to the required version.\n");
13224 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13225 printf("*** to point to the correct copy of esd-config, and remove the file\n");
13226 printf("*** config.cache before re-running configure\n");
13233 rm -f conftest$ac_exeext
13234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13235 (eval $ac_link) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; }; then
13246 echo "$as_me: program exited with status $ac_status" >&5
13247 echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13250 ( exit $ac_status )
13253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13255 CFLAGS="$ac_save_CFLAGS"
13256 LIBS="$ac_save_LIBS"
13258 ac_cpp='$CPP $CPPFLAGS'
13259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13265 if test "x$no_esd" = x ; then
13266 echo "$as_me:$LINENO: result: yes" >&5
13267 echo "${ECHO_T}yes" >&6
13270 echo "$as_me:$LINENO: result: no" >&5
13271 echo "${ECHO_T}no" >&6
13272 if test "$ESD_CONFIG" = "no" ; then
13273 echo "*** The esd-config script installed by ESD could not be found"
13274 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13275 echo "*** your path, or set the ESD_CONFIG environment variable to the"
13276 echo "*** full path to esd-config."
13278 if test -f conf.esdtest ; then
13281 echo "*** Could not run ESD test program, checking why..."
13282 CFLAGS="$CFLAGS $ESD_CFLAGS"
13283 LIBS="$LIBS $ESD_LIBS"
13287 ac_cpp='$CPP $CPPFLAGS'
13288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13292 cat >conftest.$ac_ext <<_ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13310 rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312 (eval $ac_link) 2>conftest.er1
13314 grep -v '^ *+' conftest.er1 >conftest.err
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -z "$ac_c_werror_flag"
13320 || test ! -s conftest.err'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest$ac_exeext'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 echo "*** The test program compiled, but did not run. This usually means"
13333 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13334 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13335 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13336 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13337 echo "*** is required on your system"
13339 echo "*** If you have an old version installed, it is best to remove it, although"
13340 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 echo "*** The test program failed to compile or link. See the file config.log for the"
13346 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13347 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13348 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13350 rm -f conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 CFLAGS="$ac_save_CFLAGS"
13353 LIBS="$ac_save_LIBS"
13355 ac_cpp='$CPP $CPPFLAGS'
13356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13372 LDFLAGS=$KEEPLDFLAGS
13373 if test "x$no_esd" = x; then
13374 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13375 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13376 for f in $ESD_CFLAGS; do
13378 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13379 *) CFLAGS="$CPPFLAGS $f" ;;
13383 LIBS="$LIBS $ESD_LIBS"
13385 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13386 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13389 echo "$as_me:$LINENO: result: no" >&5
13390 echo "${ECHO_T}no" >&6
13393 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13394 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13395 if test "x$au_enable_portaudio" = xyes; then
13396 echo "$as_me:$LINENO: result: yes" >&5
13397 echo "${ECHO_T}yes" >&6
13398 if test "x$MSYS" = xyes ; then
13399 SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13400 EXTRALIBS="$EXTRALIBS -lportaudio"
13401 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13403 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13404 EXTRALIBS="$EXTRALIBS -lportaudio"
13405 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13408 echo "$as_me:$LINENO: result: no" >&5
13409 echo "${ECHO_T}no" >&6
13412 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13413 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13414 if test "x$au_enable_jack" = xyes; then
13415 echo "$as_me:$LINENO: result: yes" >&5
13416 echo "${ECHO_T}yes" >&6
13417 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13418 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13419 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13421 echo "$as_me:$LINENO: result: no" >&5
13422 echo "${ECHO_T}no" >&6
13425 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13426 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13427 if test "x$au_enable_ao" = xyes; then
13428 echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13429 echo "${ECHO_T}yes, configuring ao" >&6
13431 # Check whether --with-ao or --without-ao was given.
13432 if test "${with_ao+set}" = set; then
13434 ao_prefix="$withval"
13439 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13440 if test "${with_ao_libraries+set}" = set; then
13441 withval="$with_ao_libraries"
13442 ao_libraries="$withval"
13447 # Check whether --with-ao-includes or --without-ao-includes was given.
13448 if test "${with_ao_includes+set}" = set; then
13449 withval="$with_ao_includes"
13450 ao_includes="$withval"
13454 # Check whether --enable-aotest or --disable-aotest was given.
13455 if test "${enable_aotest+set}" = set; then
13456 enableval="$enable_aotest"
13463 if test "x$ao_libraries" != "x" ; then
13464 AO_LIBS="-L$ao_libraries"
13465 elif test "x$ao_prefix" != "x"; then
13466 AO_LIBS="-L$ao_prefix/lib"
13467 elif test "x$prefix" != "xNONE"; then
13468 AO_LIBS="-L$prefix/lib"
13471 if test "x$ao_includes" != "x" ; then
13472 AO_CFLAGS="-I$ao_includes"
13473 elif test "x$ao_prefix" != "x"; then
13474 AO_CFLAGS="-I$ao_prefix/include"
13475 elif test "x$prefix" != "xNONE"; then
13476 AO_CFLAGS="-I$prefix/include"
13479 # see where dl* and friends live
13481 for ac_func in dlopen
13483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13484 echo "$as_me:$LINENO: checking for $ac_func" >&5
13485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13486 if eval "test \"\${$as_ac_var+set}\" = set"; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 cat >conftest.$ac_ext <<_ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13497 #define $ac_func innocuous_$ac_func
13499 /* System header to define __stub macros and hopefully few prototypes,
13500 which can conflict with char $ac_func (); below.
13501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13502 <limits.h> exists even on freestanding compilers. */
13505 # include <limits.h>
13507 # include <assert.h>
13512 /* Override any gcc2 internal prototype to avoid an error. */
13517 /* We use char because int might match the return type of a gcc2
13518 builtin and then its argument prototype would still apply. */
13520 /* The GNU C library defines this for functions which it implements
13521 to always fail with ENOSYS. Some functions are actually named
13522 something starting with __ and the normal name is an alias. */
13523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13526 char (*f) () = $ac_func;
13535 return f != $ac_func;
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13544 grep -v '^ *+' conftest.er1 >conftest.err
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 eval "$as_ac_var=yes"
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 eval "$as_ac_var=no"
13569 rm -f conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
13572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13574 if test `eval echo '${'$as_ac_var'}'` = yes; then
13575 cat >>confdefs.h <<_ACEOF
13576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13581 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13582 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13583 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 ac_check_lib_save_LIBS=$LIBS
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13595 /* Override any gcc2 internal prototype to avoid an error. */
13599 /* We use char because int might match the return type of a gcc2
13600 builtin and then its argument prototype would still apply. */
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13612 (eval $ac_link) 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag"
13620 || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest$ac_exeext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 ac_cv_lib_dl_dlopen=yes
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_cv_lib_dl_dlopen=no
13639 rm -f conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext conftest.$ac_ext
13641 LIBS=$ac_check_lib_save_LIBS
13643 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13645 if test $ac_cv_lib_dl_dlopen = yes; then
13649 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13650 your system may not be supported." >&5
13651 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13652 your system may not be supported." >&2;}
13661 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13663 echo "$as_me:$LINENO: checking for ao" >&5
13664 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13668 if test "x$enable_aotest" = "xyes" ; then
13669 ac_save_CFLAGS="$CFLAGS"
13670 ac_save_LIBS="$LIBS"
13671 CFLAGS="$CFLAGS $AO_CFLAGS"
13672 LIBS="$LIBS $AO_LIBS"
13674 if test "$cross_compiling" = yes; then
13675 echo $ac_n "cross compiling; assumed OK... $ac_c"
13677 cat >conftest.$ac_ext <<_ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13685 #include <stdlib.h>
13686 #include <string.h>
13691 system("touch conf.aotest");
13697 rm -f conftest$ac_exeext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13699 (eval $ac_link) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13710 echo "$as_me: program exited with status $ac_status" >&5
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ( exit $ac_status )
13717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13719 CFLAGS="$ac_save_CFLAGS"
13720 LIBS="$ac_save_LIBS"
13723 if test "x$no_ao" = "x" ; then
13724 echo "$as_me:$LINENO: result: yes" >&5
13725 echo "${ECHO_T}yes" >&6
13728 echo "$as_me:$LINENO: result: no" >&5
13729 echo "${ECHO_T}no" >&6
13730 if test -f conf.aotest ; then
13733 echo "*** Could not run ao test program, checking why..."
13734 CFLAGS="$CFLAGS $AO_CFLAGS"
13735 LIBS="$LIBS $AO_LIBS"
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13756 (eval $ac_link) 2>conftest.er1
13758 grep -v '^ *+' conftest.er1 >conftest.err
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
13763 { ac_try='test -z "$ac_c_werror_flag"
13764 || test ! -s conftest.err'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 echo "*** The test program compiled, but did not run. This usually means"
13777 echo "*** that the run-time linker is not finding ao or finding the wrong"
13778 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13779 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13780 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13781 echo "*** is required on your system"
13783 echo "*** If you have an old version installed, it is best to remove it, although"
13784 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13789 echo "*** The test program failed to compile or link. See the file config.log for the"
13790 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13791 echo "*** or that you have moved ao since it was installed."
13793 rm -f conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext conftest.$ac_ext
13795 CFLAGS="$ac_save_CFLAGS"
13796 LIBS="$ac_save_LIBS"
13806 if test "x$no_ao" = "x" ; then
13807 # AC_MSG_RESULT(yes)
13808 EXTRADEFS="$EXTRADEFS -DAU_AO"
13809 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13810 for f in $AO_CFLAGS; do
13812 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13813 *) CFLAGS="$CPPFLAGS $f" ;;
13817 LIBS="$LIBS $AO_LIBS"
13819 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13820 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13823 echo "$as_me:$LINENO: result: no" >&5
13824 echo "${ECHO_T}no" >&6
13827 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13828 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13829 if test "x$au_enable_vorbis" = xyes; then
13830 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13831 echo "${ECHO_T}yes, configuring vorbis" >&6
13833 # Check whether --with-ogg or --without-ogg was given.
13834 if test "${with_ogg+set}" = set; then
13835 withval="$with_ogg"
13836 ogg_prefix="$withval"
13841 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13842 if test "${with_ogg_libraries+set}" = set; then
13843 withval="$with_ogg_libraries"
13844 ogg_libraries="$withval"
13849 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13850 if test "${with_ogg_includes+set}" = set; then
13851 withval="$with_ogg_includes"
13852 ogg_includes="$withval"
13856 # Check whether --enable-oggtest or --disable-oggtest was given.
13857 if test "${enable_oggtest+set}" = set; then
13858 enableval="$enable_oggtest"
13864 if test "x$ogg_libraries" != "x" ; then
13865 OGG_LIBS="-L$ogg_libraries"
13866 elif test "x$ogg_prefix" != "x" ; then
13867 OGG_LIBS="-L$ogg_prefix/lib"
13868 elif test "x$prefix" != "xNONE" ; then
13869 OGG_LIBS="-L$prefix/lib"
13872 OGG_LIBS="$OGG_LIBS -logg"
13874 if test "x$ogg_includes" != "x" ; then
13875 OGG_CFLAGS="-I$ogg_includes"
13876 elif test "x$ogg_prefix" != "x" ; then
13877 OGG_CFLAGS="-I$ogg_prefix/include"
13878 elif test "x$prefix" != "xNONE"; then
13879 OGG_CFLAGS="-I$prefix/include"
13882 echo "$as_me:$LINENO: checking for Ogg" >&5
13883 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13887 if test "x$enable_oggtest" = "xyes" ; then
13888 ac_save_CFLAGS="$CFLAGS"
13889 ac_save_LIBS="$LIBS"
13890 CFLAGS="$CFLAGS $OGG_CFLAGS"
13891 LIBS="$LIBS $OGG_LIBS"
13893 if test "$cross_compiling" = yes; then
13894 echo $ac_n "cross compiling; assumed OK... $ac_c"
13896 cat >conftest.$ac_ext <<_ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13904 #include <stdlib.h>
13905 #include <string.h>
13906 #include <ogg/ogg.h>
13910 system("touch conf.oggtest");
13916 rm -f conftest$ac_exeext
13917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13918 (eval $ac_link) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13929 echo "$as_me: program exited with status $ac_status" >&5
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13933 ( exit $ac_status )
13936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13938 CFLAGS="$ac_save_CFLAGS"
13939 LIBS="$ac_save_LIBS"
13942 if test "x$no_ogg" = "x" ; then
13943 echo "$as_me:$LINENO: result: yes" >&5
13944 echo "${ECHO_T}yes" >&6
13947 # Check whether --with-vorbis or --without-vorbis was given.
13948 if test "${with_vorbis+set}" = set; then
13949 withval="$with_vorbis"
13950 vorbis_prefix="$withval"
13955 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13956 if test "${with_vorbis_libraries+set}" = set; then
13957 withval="$with_vorbis_libraries"
13958 vorbis_libraries="$withval"
13960 vorbis_libraries=""
13963 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13964 if test "${with_vorbis_includes+set}" = set; then
13965 withval="$with_vorbis_includes"
13966 vorbis_includes="$withval"
13970 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13971 if test "${enable_vorbistest+set}" = set; then
13972 enableval="$enable_vorbistest"
13975 enable_vorbistest=yes
13978 if test "x$vorbis_libraries" != "x" ; then
13979 VORBIS_LIBS="-L$vorbis_libraries"
13980 elif test "x$vorbis_prefix" != "x" ; then
13981 VORBIS_LIBS="-L$vorbis_prefix/lib"
13982 elif test "x$prefix" != "xNONE"; then
13983 VORBIS_LIBS="-L$prefix/lib"
13986 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13987 VORBISFILE_LIBS="-lvorbisfile"
13988 VORBISENC_LIBS="-lvorbisenc"
13990 if test "x$vorbis_includes" != "x" ; then
13991 VORBIS_CFLAGS="-I$vorbis_includes"
13992 elif test "x$vorbis_prefix" != "x" ; then
13993 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13994 elif test "x$prefix" != "xNONE"; then
13995 VORBIS_CFLAGS="-I$prefix/include"
13999 echo "$as_me:$LINENO: checking for Vorbis" >&5
14000 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
14004 if test "x$enable_vorbistest" = "xyes" ; then
14005 ac_save_CFLAGS="$CFLAGS"
14006 ac_save_LIBS="$LIBS"
14007 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
14008 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14009 rm -f conf.vorbistest
14010 if test "$cross_compiling" = yes; then
14011 echo $ac_n "cross compiling; assumed OK... $ac_c"
14013 cat >conftest.$ac_ext <<_ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14021 #include <stdlib.h>
14022 #include <string.h>
14023 #include <vorbis/codec.h>
14027 system("touch conf.vorbistest");
14033 rm -f conftest$ac_exeext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14035 (eval $ac_link) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14046 echo "$as_me: program exited with status $ac_status" >&5
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ( exit $ac_status )
14053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14055 CFLAGS="$ac_save_CFLAGS"
14056 LIBS="$ac_save_LIBS"
14059 if test "x$no_vorbis" = "x" ; then
14060 echo "$as_me:$LINENO: result: yes" >&5
14061 echo "${ECHO_T}yes" >&6
14064 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
14065 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
14066 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
14067 if test "x$MSYS" = "xyes"; then
14068 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
14069 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14073 echo "$as_me:$LINENO: result: no" >&5
14074 echo "${ECHO_T}no" >&6
14075 if test -f conf.vorbistest ; then
14078 echo "*** Could not run Vorbis test program, checking why..."
14079 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14080 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14089 #include <vorbis/codec.h>
14099 rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14101 (eval $ac_link) 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag"
14109 || test ! -s conftest.err'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 echo "*** The test program compiled, but did not run. This usually means"
14122 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14123 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14124 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14125 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14126 echo "*** is required on your system"
14128 echo "*** If you have an old version installed, it is best to remove it, although"
14129 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 echo "*** The test program failed to compile or link. See the file config.log for the"
14135 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14136 echo "*** or that you have moved Vorbis since it was installed."
14138 rm -f conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
14140 CFLAGS="$ac_save_CFLAGS"
14141 LIBS="$ac_save_LIBS"
14148 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14149 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14156 rm -f conf.vorbistest
14160 echo "$as_me:$LINENO: result: no" >&5
14161 echo "${ECHO_T}no" >&6
14162 if test -f conf.oggtest ; then
14165 echo "*** Could not run Ogg test program, checking why..."
14166 CFLAGS="$CFLAGS $OGG_CFLAGS"
14167 LIBS="$LIBS $OGG_LIBS"
14168 cat >conftest.$ac_ext <<_ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14176 #include <ogg/ogg.h>
14186 rm -f conftest.$ac_objext conftest$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188 (eval $ac_link) 2>conftest.er1
14190 grep -v '^ *+' conftest.er1 >conftest.err
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try='test -z "$ac_c_werror_flag"
14196 || test ! -s conftest.err'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try='test -s conftest$ac_exeext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 echo "*** The test program compiled, but did not run. This usually means"
14209 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14210 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14211 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14212 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14213 echo "*** is required on your system"
14215 echo "*** If you have an old version installed, it is best to remove it, although"
14216 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14221 echo "*** The test program failed to compile or link. See the file config.log for the"
14222 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14223 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14224 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14226 rm -f conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228 CFLAGS="$ac_save_CFLAGS"
14229 LIBS="$ac_save_LIBS"
14234 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14235 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14244 echo "$as_me:$LINENO: result: no" >&5
14245 echo "${ECHO_T}no" >&6
14248 if test "x$MSYS" = xyes ; then
14249 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14250 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14251 if test "x$au_enable_flac" = xyes; then
14252 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14253 echo "${ECHO_T}yes, configuring flac" >&6
14254 SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
14256 # Check whether --with-libFLAC or --without-libFLAC was given.
14257 if test "${with_libFLAC+set}" = set; then
14258 withval="$with_libFLAC"
14259 libFLAC_prefix="$withval"
14264 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14265 if test "${with_libFLAC_libraries+set}" = set; then
14266 withval="$with_libFLAC_libraries"
14267 libFLAC_libraries="$withval"
14269 libFLAC_libraries=""
14272 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14273 if test "${with_libFLAC_includes+set}" = set; then
14274 withval="$with_libFLAC_includes"
14275 libFLAC_includes="$withval"
14277 libFLAC_includes=""
14279 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14280 if test "${enable_libFLACtest+set}" = set; then
14281 enableval="$enable_libFLACtest"
14284 enable_libFLACtest=yes
14287 if test "x$libFLAC_libraries" != "x" ; then
14288 LIBFLAC_LIBS="-L$libFLAC_libraries"
14289 elif test "x$libFLAC_prefix" != "x" ; then
14290 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14291 elif test "x$prefix" != "xNONE" ; then
14292 LIBFLAC_LIBS="-L$prefix/lib"
14295 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14297 if test "x$libFLAC_includes" != "x" ; then
14298 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14299 elif test "x$libFLAC_prefix" != "x" ; then
14300 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14301 elif test "$prefix" != "xNONE"; then
14302 LIBFLAC_CFLAGS="-I$prefix/include"
14305 echo "$as_me:$LINENO: checking for libFLAC" >&5
14306 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14310 if test "x$enable_libFLACtest" = "xyes" ; then
14311 ac_save_CFLAGS="$CFLAGS"
14312 ac_save_CXXFLAGS="$CXXFLAGS"
14313 ac_save_LIBS="$LIBS"
14314 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14315 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14316 LIBS="$LIBS $LIBFLAC_LIBS"
14317 rm -f conf.libFLACtest
14318 if test "$cross_compiling" = yes; then
14319 echo $ac_n "cross compiling; assumed OK... $ac_c"
14321 cat >conftest.$ac_ext <<_ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14329 #include <stdlib.h>
14330 #include <string.h>
14331 #include <FLAC/format.h>
14335 system("touch conf.libFLACtest");
14341 rm -f conftest$ac_exeext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14343 (eval $ac_link) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14354 echo "$as_me: program exited with status $ac_status" >&5
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 ( exit $ac_status )
14361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14363 CFLAGS="$ac_save_CFLAGS"
14364 LIBS="$ac_save_LIBS"
14367 if test "x$no_libFLAC" = "x" ; then
14368 echo "$as_me:$LINENO: result: yes" >&5
14369 echo "${ECHO_T}yes" >&6
14371 EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14372 for f in $LIBFLAC_CFLAGS; do
14374 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14375 *) CFLAGS="$CPPFLAGS $f" ;;
14379 LIBS="$LIBS $LIBFLAC_LIBS"
14382 echo "$as_me:$LINENO: result: no" >&5
14383 echo "${ECHO_T}no" >&6
14384 if test -f conf.libFLACtest ; then
14387 echo "*** Could not run libFLAC test program, checking why..."
14388 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14389 LIBS="$LIBS $LIBFLAC_LIBS"
14390 cat >conftest.$ac_ext <<_ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14398 #include <FLAC/format.h>
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14410 (eval $ac_link) 2>conftest.er1
14412 grep -v '^ *+' conftest.er1 >conftest.err
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
14417 { ac_try='test -z "$ac_c_werror_flag"
14418 || test ! -s conftest.err'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 echo "*** The test program compiled, but did not run. This usually means"
14431 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14432 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14433 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14434 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14435 echo "*** is required on your system"
14437 echo "*** If you have an old version installed, it is best to remove it, although"
14438 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14440 echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14443 echo "*** The test program failed to compile or link. See the file config.log for the"
14444 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14445 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14446 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14448 rm -f conftest.err conftest.$ac_objext \
14449 conftest$ac_exeext conftest.$ac_ext
14450 CFLAGS="$ac_save_CFLAGS"
14451 LIBS="$ac_save_LIBS"
14459 rm -f conf.libFLACtest
14462 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14463 if test "${with_libOggFLAC+set}" = set; then
14464 withval="$with_libOggFLAC"
14465 libOggFLAC_prefix="$withval"
14467 libOggFLAC_prefix=""
14470 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14471 if test "${with_libOggFLAC_libraries+set}" = set; then
14472 withval="$with_libOggFLAC_libraries"
14473 libOggFLAC_libraries="$withval"
14475 libOggFLAC_libraries=""
14478 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14479 if test "${with_libOggFLAC_includes+set}" = set; then
14480 withval="$with_libOggFLAC_includes"
14481 libOggFLAC_includes="$withval"
14483 libOggFLAC_includes=""
14485 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14486 if test "${enable_libOggFLACtest+set}" = set; then
14487 enableval="$enable_libOggFLACtest"
14490 enable_libOggFLACtest=yes
14493 if test "x$libOggFLAC_libraries" != "x" ; then
14494 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14495 elif test "x$libOggFLAC_prefix" != "x" ; then
14496 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14497 elif test "x$prefix" != "xNONE" ; then
14498 LIBOGGFLAC_LIBS="-L$prefix/lib"
14501 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14503 if test "x$libOggFLAC_includes" != "x" ; then
14504 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14505 elif test "x$libOggFLAC_prefix" != "x" ; then
14506 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14507 elif test "$prefix" != "xNONE"; then
14508 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14511 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14512 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14516 if test "x$enable_libOggFLACtest" = "xyes" ; then
14517 ac_save_CFLAGS="$CFLAGS"
14518 ac_save_CXXFLAGS="$CXXFLAGS"
14519 ac_save_LIBS="$LIBS"
14520 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14521 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14522 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14523 rm -f conf.libOggFLACtest
14524 if test "$cross_compiling" = yes; then
14525 echo $ac_n "cross compiling; assumed OK... $ac_c"
14527 cat >conftest.$ac_ext <<_ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14535 #include <stdlib.h>
14536 #include <string.h>
14537 #include <OggFLAC/stream_decoder.h>
14541 system("touch conf.libOggFLACtest");
14547 rm -f conftest$ac_exeext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14549 (eval $ac_link) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14560 echo "$as_me: program exited with status $ac_status" >&5
14561 echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14564 ( exit $ac_status )
14567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14569 CFLAGS="$ac_save_CFLAGS"
14570 LIBS="$ac_save_LIBS"
14573 if test "x$no_libOggFLAC" = "x" ; then
14574 echo "$as_me:$LINENO: result: yes" >&5
14575 echo "${ECHO_T}yes" >&6
14577 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14578 for f in $LIBOGGFLAC_CFLAGS; do
14580 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14581 *) CFLAGS="$CPPFLAGS $f" ;;
14585 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14588 echo "$as_me:$LINENO: result: no" >&5
14589 echo "${ECHO_T}no" >&6
14590 if test -f conf.libOggFLACtest ; then
14593 echo "*** Could not run libOggFLAC test program, checking why..."
14594 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14595 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14604 #include <OggFLAC/stream_decoder.h>
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14616 (eval $ac_link) 2>conftest.er1
14618 grep -v '^ *+' conftest.er1 >conftest.err
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag"
14624 || test ! -s conftest.err'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try='test -s conftest$ac_exeext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 echo "*** The test program compiled, but did not run. This usually means"
14637 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14638 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14639 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14640 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14641 echo "*** is required on your system"
14643 echo "*** If you have an old version installed, it is best to remove it, although"
14644 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 echo "*** The test program failed to compile or link. See the file config.log for the"
14650 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14651 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14652 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14654 rm -f conftest.err conftest.$ac_objext \
14655 conftest$ac_exeext conftest.$ac_ext
14656 CFLAGS="$ac_save_CFLAGS"
14657 LIBS="$ac_save_LIBS"
14659 LIBOGGFLAC_CFLAGS=""
14665 rm -f conf.libOggFLACtest
14668 echo "$as_me:$LINENO: result: no" >&5
14669 echo "${ECHO_T}no" >&6
14672 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14673 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14674 if test "x$au_enable_flac" = xyes; then
14675 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14676 echo "${ECHO_T}yes, configuring flac" >&6
14677 SYSEXTRAS="$SYSEXTRAS flac_a.c"
14679 # Check whether --with-libFLAC or --without-libFLAC was given.
14680 if test "${with_libFLAC+set}" = set; then
14681 withval="$with_libFLAC"
14682 libFLAC_prefix="$withval"
14687 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14688 if test "${with_libFLAC_libraries+set}" = set; then
14689 withval="$with_libFLAC_libraries"
14690 libFLAC_libraries="$withval"
14692 libFLAC_libraries=""
14695 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14696 if test "${with_libFLAC_includes+set}" = set; then
14697 withval="$with_libFLAC_includes"
14698 libFLAC_includes="$withval"
14700 libFLAC_includes=""
14702 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14703 if test "${enable_libFLACtest+set}" = set; then
14704 enableval="$enable_libFLACtest"
14707 enable_libFLACtest=yes
14710 if test "x$libFLAC_libraries" != "x" ; then
14711 LIBFLAC_LIBS="-L$libFLAC_libraries"
14712 elif test "x$libFLAC_prefix" != "x" ; then
14713 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14714 elif test "x$prefix" != "xNONE" ; then
14715 LIBFLAC_LIBS="-L$prefix/lib"
14718 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14720 if test "x$libFLAC_includes" != "x" ; then
14721 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14722 elif test "x$libFLAC_prefix" != "x" ; then
14723 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14724 elif test "$prefix" != "xNONE"; then
14725 LIBFLAC_CFLAGS="-I$prefix/include"
14728 echo "$as_me:$LINENO: checking for libFLAC" >&5
14729 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14733 if test "x$enable_libFLACtest" = "xyes" ; then
14734 ac_save_CFLAGS="$CFLAGS"
14735 ac_save_CXXFLAGS="$CXXFLAGS"
14736 ac_save_LIBS="$LIBS"
14737 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14738 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14739 LIBS="$LIBS $LIBFLAC_LIBS"
14740 rm -f conf.libFLACtest
14741 if test "$cross_compiling" = yes; then
14742 echo $ac_n "cross compiling; assumed OK... $ac_c"
14744 cat >conftest.$ac_ext <<_ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14752 #include <stdlib.h>
14753 #include <string.h>
14754 #include <FLAC/format.h>
14758 system("touch conf.libFLACtest");
14764 rm -f conftest$ac_exeext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14766 (eval $ac_link) 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14777 echo "$as_me: program exited with status $ac_status" >&5
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14781 ( exit $ac_status )
14784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14786 CFLAGS="$ac_save_CFLAGS"
14787 LIBS="$ac_save_LIBS"
14790 if test "x$no_libFLAC" = "x" ; then
14791 echo "$as_me:$LINENO: result: yes" >&5
14792 echo "${ECHO_T}yes" >&6
14794 EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14795 for f in $LIBFLAC_CFLAGS; do
14797 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14798 *) CFLAGS="$CPPFLAGS $f" ;;
14802 LIBS="$LIBS $LIBFLAC_LIBS"
14805 echo "$as_me:$LINENO: result: no" >&5
14806 echo "${ECHO_T}no" >&6
14807 if test -f conf.libFLACtest ; then
14810 echo "*** Could not run libFLAC test program, checking why..."
14811 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14812 LIBS="$LIBS $LIBFLAC_LIBS"
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14821 #include <FLAC/format.h>
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14833 (eval $ac_link) 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } &&
14840 { ac_try='test -z "$ac_c_werror_flag"
14841 || test ! -s conftest.err'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; } &&
14847 { ac_try='test -s conftest$ac_exeext'
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }; then
14853 echo "*** The test program compiled, but did not run. This usually means"
14854 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14855 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14856 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14857 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14858 echo "*** is required on your system"
14860 echo "*** If you have an old version installed, it is best to remove it, although"
14861 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 echo "*** The test program failed to compile or link. See the file config.log for the"
14867 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14868 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14869 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14871 rm -f conftest.err conftest.$ac_objext \
14872 conftest$ac_exeext conftest.$ac_ext
14873 CFLAGS="$ac_save_CFLAGS"
14874 LIBS="$ac_save_LIBS"
14882 rm -f conf.libFLACtest
14885 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14886 if test "${with_libOggFLAC+set}" = set; then
14887 withval="$with_libOggFLAC"
14888 libOggFLAC_prefix="$withval"
14890 libOggFLAC_prefix=""
14893 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14894 if test "${with_libOggFLAC_libraries+set}" = set; then
14895 withval="$with_libOggFLAC_libraries"
14896 libOggFLAC_libraries="$withval"
14898 libOggFLAC_libraries=""
14901 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14902 if test "${with_libOggFLAC_includes+set}" = set; then
14903 withval="$with_libOggFLAC_includes"
14904 libOggFLAC_includes="$withval"
14906 libOggFLAC_includes=""
14908 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14909 if test "${enable_libOggFLACtest+set}" = set; then
14910 enableval="$enable_libOggFLACtest"
14913 enable_libOggFLACtest=yes
14916 if test "x$libOggFLAC_libraries" != "x" ; then
14917 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14918 elif test "x$libOggFLAC_prefix" != "x" ; then
14919 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14920 elif test "x$prefix" != "xNONE" ; then
14921 LIBOGGFLAC_LIBS="-L$prefix/lib"
14924 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14926 if test "x$libOggFLAC_includes" != "x" ; then
14927 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14928 elif test "x$libOggFLAC_prefix" != "x" ; then
14929 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14930 elif test "$prefix" != "xNONE"; then
14931 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14934 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14935 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14939 if test "x$enable_libOggFLACtest" = "xyes" ; then
14940 ac_save_CFLAGS="$CFLAGS"
14941 ac_save_CXXFLAGS="$CXXFLAGS"
14942 ac_save_LIBS="$LIBS"
14943 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14944 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14945 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14946 rm -f conf.libOggFLACtest
14947 if test "$cross_compiling" = yes; then
14948 echo $ac_n "cross compiling; assumed OK... $ac_c"
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14958 #include <stdlib.h>
14959 #include <string.h>
14960 #include <OggFLAC/stream_decoder.h>
14964 system("touch conf.libOggFLACtest");
14970 rm -f conftest$ac_exeext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14972 (eval $ac_link) 2>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14983 echo "$as_me: program exited with status $ac_status" >&5
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14987 ( exit $ac_status )
14990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14992 CFLAGS="$ac_save_CFLAGS"
14993 LIBS="$ac_save_LIBS"
14996 if test "x$no_libOggFLAC" = "x" ; then
14997 echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
15000 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
15001 for f in $LIBOGGFLAC_CFLAGS; do
15003 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
15004 *) CFLAGS="$CPPFLAGS $f" ;;
15008 LIBS="$LIBS $LIBOGGFLAC_LIBS"
15011 echo "$as_me:$LINENO: result: no" >&5
15012 echo "${ECHO_T}no" >&6
15013 if test -f conf.libOggFLACtest ; then
15016 echo "*** Could not run libOggFLAC test program, checking why..."
15017 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15018 LIBS="$LIBS $LIBOGGFLAC_LIBS"
15019 cat >conftest.$ac_ext <<_ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15027 #include <OggFLAC/stream_decoder.h>
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 echo "*** The test program compiled, but did not run. This usually means"
15060 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
15061 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
15062 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15063 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15064 echo "*** is required on your system"
15066 echo "*** If you have an old version installed, it is best to remove it, although"
15067 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 echo "*** The test program failed to compile or link. See the file config.log for the"
15073 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
15074 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
15075 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
15077 rm -f conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 CFLAGS="$ac_save_CFLAGS"
15080 LIBS="$ac_save_LIBS"
15082 LIBOGGFLAC_CFLAGS=""
15088 rm -f conf.libOggFLACtest
15091 echo "$as_me:$LINENO: result: no" >&5
15092 echo "${ECHO_T}no" >&6
15095 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
15096 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
15097 if test "x$au_enable_speex" = xyes; then
15098 if test "${have_speex+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15109 #include <ogg/ogg.h>
15121 rm -f conftest.$ac_objext conftest$ac_exeext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15123 (eval $ac_link) 2>conftest.er1
15125 grep -v '^ *+' conftest.er1 >conftest.err
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -z "$ac_c_werror_flag"
15131 || test ! -s conftest.err'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest$ac_exeext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15150 rm -f conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext conftest.$ac_ext
15154 echo "$as_me:$LINENO: result: $have_speex" >&5
15155 echo "${ECHO_T}$have_speex" >&6
15156 if test "x$have_speex" = xyes; then
15157 SYSEXTRAS="$SYSEXTRAS speex_a.c"
15158 EXTRALIBS="$EXTRALIBS -lspeex -logg"
15159 EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
15162 echo "$as_me:$LINENO: result: no" >&5
15163 echo "${ECHO_T}no" >&6
15166 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
15167 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
15168 if test "x$au_enable_gogo" = xyes; then
15169 if test "x$MSYS" = "xyes"; then
15170 echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6
15173 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
15174 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
15177 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
15178 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
15179 EXTRALIBS="$EXTRALIBS -lgogo"
15181 echo "$as_me:$LINENO: result: no" >&5
15182 echo "${ECHO_T}no" >&6
15185 if test "x$au_enable_none" = xyes; then
15186 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
15187 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
15189 echo "$as_me:$LINENO: checking default output mode" >&5
15190 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
15191 if test "x$DEFAULT_PLAYMODE" = x; then
15192 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
15194 case ".$DEFAULT_PLAYMODE" in
15195 .default) TIMIDITY_OUTPUT_ID=d ;;
15196 .oss) TIMIDITY_OUTPUT_ID=d ;;
15197 .alsa) TIMIDITY_OUTPUT_ID=s ;;
15198 .sun) TIMIDITY_OUTPUT_ID=d ;;
15199 .hpux) TIMIDITY_OUTPUT_ID=d ;;
15200 .irix) TIMIDITY_OUTPUT_ID=d ;;
15201 .mme) TIMIDITY_OUTPUT_ID=d ;;
15202 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
15203 .darwin) TIMIDITY_OUTPUT_ID=d ;;
15204 .w32) TIMIDITY_OUTPUT_ID=d ;;
15205 .alib) TIMIDITY_OUTPUT_ID=A ;;
15206 .nas) TIMIDITY_OUTPUT_ID=n ;;
15207 .arts) TIMIDITY_OUTPUT_ID=R ;;
15208 .esd) TIMIDITY_OUTPUT_ID=e ;;
15209 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
15210 .wav) TIMIDITY_OUTPUT_ID=w ;;
15211 .au) TIMIDITY_OUTPUT_ID=u ;;
15212 .aiff) TIMIDITY_OUTPUT_ID=a ;;
15213 .list) TIMIDITY_OUTPUT_ID=l ;;
15214 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
15215 .flac) TIMIDITY_OUTPUT_ID=F ;;
15216 .speex) TIMIDITY_OUTPUT_ID=S ;;
15217 .gogo) TIMIDITY_OUTPUT_ID=g ;;
15218 .jack) TIMIDITY_OUTPUT_ID=j ;;
15219 *) TIMIDITY_OUTPUT_ID= ;;
15221 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
15222 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
15226 # Interface Section
15229 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
15231 # Check whether --enable-interface or --disable-interface was given.
15232 if test "${enable_interface+set}" = set; then
15233 enableval="$enable_interface"
15234 for i in `echo $enableval | sed 's/,/ /g'`; do
15235 eval "enable_$i=yes"
15239 # Dynamic link configuration
15240 # Check whether --enable-dynamic or --disable-dynamic was given.
15241 if test "${enable_dynamic+set}" = set; then
15242 enableval="$enable_dynamic"
15243 if test "x$enable_dynamic" = xyes; then
15244 enable_dynamic=dynamic
15245 elif test "x$enable_dynamic" != xno; then
15246 for i in `echo $enableval | sed 's/,/ /g'`; do
15247 eval "enable_$i=dynamic"
15253 for i in $interface_targets; do
15254 eval "join_targets=$join_targets\$enable_$i"
15257 case ".$join_targets" in
15258 .*dynamic*) NEEDDLOPEN=yes;;
15262 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
15263 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
15265 if test "$NEEDDLOPEN" = "yes"; then
15268 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
15269 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
15270 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 #include <windows.h>
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15292 (eval $ac_link) 2>conftest.er1
15294 grep -v '^ *+' conftest.er1 >conftest.err
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } &&
15299 { ac_try='test -z "$ac_c_werror_flag"
15300 || test ! -s conftest.err'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } &&
15306 { ac_try='test -s conftest$ac_exeext'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 wapi_cv_func_LoadLibrary=yes
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 wapi_cv_func_LoadLibrary=no
15319 rm -f conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
15323 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15324 echo "$as_me:$LINENO: result: yes" >&5
15325 echo "${ECHO_T}yes" >&6
15328 echo "$as_me:$LINENO: result: no" >&5
15329 echo "${ECHO_T}no" >&6
15332 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15334 if test "$have_dl" = "no"; then
15335 echo "$as_me:$LINENO: checking for shl_load" >&5
15336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15337 if test "${ac_cv_func_shl_load+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 cat >conftest.$ac_ext <<_ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15348 #define shl_load innocuous_shl_load
15350 /* System header to define __stub macros and hopefully few prototypes,
15351 which can conflict with char shl_load (); below.
15352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15353 <limits.h> exists even on freestanding compilers. */
15356 # include <limits.h>
15358 # include <assert.h>
15363 /* Override any gcc2 internal prototype to avoid an error. */
15368 /* We use char because int might match the return type of a gcc2
15369 builtin and then its argument prototype would still apply. */
15371 /* The GNU C library defines this for functions which it implements
15372 to always fail with ENOSYS. Some functions are actually named
15373 something starting with __ and the normal name is an alias. */
15374 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15377 char (*f) () = shl_load;
15386 return f != shl_load;
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393 (eval $ac_link) 2>conftest.er1
15395 grep -v '^ *+' conftest.er1 >conftest.err
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -z "$ac_c_werror_flag"
15401 || test ! -s conftest.err'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; } &&
15407 { ac_try='test -s conftest$ac_exeext'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15413 ac_cv_func_shl_load=yes
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_cv_func_shl_load=no
15420 rm -f conftest.err conftest.$ac_objext \
15421 conftest$ac_exeext conftest.$ac_ext
15423 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15424 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15425 if test $ac_cv_func_shl_load = yes; then
15430 if test "$have_dl" = "no"; then
15431 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15432 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
15433 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 cat >conftest.$ac_ext <<_ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h. */
15442 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15444 #define NSLinkModule innocuous_NSLinkModule
15446 /* System header to define __stub macros and hopefully few prototypes,
15447 which can conflict with char NSLinkModule (); below.
15448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15449 <limits.h> exists even on freestanding compilers. */
15452 # include <limits.h>
15454 # include <assert.h>
15457 #undef NSLinkModule
15459 /* Override any gcc2 internal prototype to avoid an error. */
15464 /* We use char because int might match the return type of a gcc2
15465 builtin and then its argument prototype would still apply. */
15466 char NSLinkModule ();
15467 /* The GNU C library defines this for functions which it implements
15468 to always fail with ENOSYS. Some functions are actually named
15469 something starting with __ and the normal name is an alias. */
15470 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
15473 char (*f) () = NSLinkModule;
15482 return f != NSLinkModule;
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15489 (eval $ac_link) 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest$ac_exeext'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 ac_cv_func_NSLinkModule=yes
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 ac_cv_func_NSLinkModule=no
15516 rm -f conftest.err conftest.$ac_objext \
15517 conftest$ac_exeext conftest.$ac_ext
15519 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15520 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15521 if test $ac_cv_func_NSLinkModule = yes; then
15526 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15529 if test "$have_dl" = "no"; then
15530 echo "$as_me:$LINENO: checking for dlopen" >&5
15531 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15532 if test "${ac_cv_func_dlopen+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 cat >conftest.$ac_ext <<_ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15543 #define dlopen innocuous_dlopen
15545 /* System header to define __stub macros and hopefully few prototypes,
15546 which can conflict with char dlopen (); below.
15547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15548 <limits.h> exists even on freestanding compilers. */
15551 # include <limits.h>
15553 # include <assert.h>
15558 /* Override any gcc2 internal prototype to avoid an error. */
15563 /* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15566 /* The GNU C library defines this for functions which it implements
15567 to always fail with ENOSYS. Some functions are actually named
15568 something starting with __ and the normal name is an alias. */
15569 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15572 char (*f) () = dlopen;
15581 return f != dlopen;
15586 rm -f conftest.$ac_objext conftest$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_func_dlopen=yes
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 ac_cv_func_dlopen=no
15615 rm -f conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15618 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15619 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15620 if test $ac_cv_func_dlopen = yes; then
15625 if test "$have_dl" = "no"; then
15626 echo "$as_me:$LINENO: checking for dld_init" >&5
15627 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15628 if test "${ac_cv_func_dld_init+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 cat >conftest.$ac_ext <<_ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15639 #define dld_init innocuous_dld_init
15641 /* System header to define __stub macros and hopefully few prototypes,
15642 which can conflict with char dld_init (); below.
15643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644 <limits.h> exists even on freestanding compilers. */
15647 # include <limits.h>
15649 # include <assert.h>
15654 /* Override any gcc2 internal prototype to avoid an error. */
15659 /* We use char because int might match the return type of a gcc2
15660 builtin and then its argument prototype would still apply. */
15662 /* The GNU C library defines this for functions which it implements
15663 to always fail with ENOSYS. Some functions are actually named
15664 something starting with __ and the normal name is an alias. */
15665 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15668 char (*f) () = dld_init;
15677 return f != dld_init;
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15684 (eval $ac_link) 2>conftest.er1
15686 grep -v '^ *+' conftest.er1 >conftest.err
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -z "$ac_c_werror_flag"
15692 || test ! -s conftest.err'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try='test -s conftest$ac_exeext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_cv_func_dld_init=yes
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 ac_cv_func_dld_init=no
15711 rm -f conftest.err conftest.$ac_objext \
15712 conftest$ac_exeext conftest.$ac_ext
15714 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15715 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15716 if test $ac_cv_func_dld_init = yes; then
15721 if test "$have_dl" = "no"; then
15722 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15723 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15724 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 ac_check_lib_save_LIBS=$LIBS
15729 cat >conftest.$ac_ext <<_ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15736 /* Override any gcc2 internal prototype to avoid an error. */
15740 /* We use char because int might match the return type of a gcc2
15741 builtin and then its argument prototype would still apply. */
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15753 (eval $ac_link) 2>conftest.er1
15755 grep -v '^ *+' conftest.er1 >conftest.err
15757 cat conftest.err >&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } &&
15760 { ac_try='test -z "$ac_c_werror_flag"
15761 || test ! -s conftest.err'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; } &&
15767 { ac_try='test -s conftest$ac_exeext'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_cv_lib_dld_dld_init=yes
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_cv_lib_dld_dld_init=no
15780 rm -f conftest.err conftest.$ac_objext \
15781 conftest$ac_exeext conftest.$ac_ext
15782 LIBS=$ac_check_lib_save_LIBS
15784 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15785 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15786 if test $ac_cv_lib_dld_dld_init = yes; then
15787 have_dl=dld;lib_dl_opt=-ldld
15792 echo "$as_me:$LINENO: checking dynamic link method" >&5
15793 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15796 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15797 echo "${ECHO_T}use dl_dlopen.c" >&6
15798 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15799 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15800 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15801 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 case "$ac_cv_header_dlfcn_h" in
15805 yes) i_dlfcn=define;;
15816 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
15818 #include <sys/types.h>
15823 extern int fred() ;
15832 int mode = RTLD_LAZY ;
15834 handle = dlopen("./dyna.$so", mode) ;
15835 if (handle == NULL) {
15840 symbol = dlsym(handle, "fred") ;
15841 if (symbol == NULL) {
15842 /* try putting a leading underscore */
15843 symbol = dlsym(handle, "_fred") ;
15844 if (symbol == NULL) {
15857 : Call the object file tmp-dyna.o in case dlext=o.
15858 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15859 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15860 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15861 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15864 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
15865 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
15867 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
15868 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
15870 3) timidity_cv_func_dlsym_underscore=yes
15872 4) timidity_cv_func_dlsym_underscore=no
15876 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15877 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15879 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15883 case "x$timidity_cv_func_dlsym_underscore" in
15885 cat >>confdefs.h <<\_ACEOF
15886 #define DLSYM_NEEDS_UNDERSCORE 1
15889 echo "$as_me:$LINENO: result: yes" >&5
15890 echo "${ECHO_T}yes" >&6
15893 echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6
15900 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15901 echo "${ECHO_T}use dl_dld.c" >&6
15902 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15905 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15906 echo "${ECHO_T}use dl_hpux.c" >&6
15907 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15908 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15911 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15912 echo "${ECHO_T}use dl_w32.c" >&6
15913 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15916 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15917 echo "${ECHO_T}use dl_dyld.c" >&6
15918 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15922 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15923 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15928 if test "$NEEDDLOPEN" = "yes"; then
15929 cat >> confdefs.h <<EOF
15930 #define IA_DYNAMIC 1
15934 cat >>confdefs.h <<_ACEOF
15935 #define SHARED_LIB_EXT ".$so"
15938 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
15943 if test "$NEEDDLOPEN" = "yes"; then
15945 NEEDDLOPEN_FALSE='#'
15947 NEEDDLOPEN_TRUE='#'
15956 ENABLE_NCURSES_TRUE=
15957 ENABLE_NCURSES_FALSE='#'
15959 ENABLE_NCURSES_TRUE='#'
15960 ENABLE_NCURSES_FALSE=
15963 # Check whether --enable-ncurses or --disable-ncurses was given.
15964 if test "${enable_ncurses+set}" = set; then
15965 enableval="$enable_ncurses"
15966 case "x$enable_ncurses" in xyes|xdynamic)
15969 for ac_header in ncurses.h ncurses/curses.h curses.h
15971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15973 echo "$as_me:$LINENO: checking for $ac_header" >&5
15974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15981 # Is the header compilable?
15982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 #include <$ac_header>
15993 rm -f conftest.$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995 (eval $ac_compile) 2>conftest.er1
15997 grep -v '^ *+' conftest.er1 >conftest.err
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try='test -z "$ac_c_werror_flag"
16003 || test ! -s conftest.err'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; } &&
16009 { ac_try='test -s conftest.$ac_objext'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_header_compiler=yes
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_header_compiler=no
16022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16024 echo "${ECHO_T}$ac_header_compiler" >&6
16026 # Is the header present?
16027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16029 cat >conftest.$ac_ext <<_ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 #include <$ac_header>
16037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } >/dev/null; then
16045 if test -s conftest.err; then
16046 ac_cpp_err=$ac_c_preproc_warn_flag
16047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16054 if test -z "$ac_cpp_err"; then
16055 ac_header_preproc=yes
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 ac_header_preproc=no
16062 rm -f conftest.err conftest.$ac_ext
16063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16064 echo "${ECHO_T}$ac_header_preproc" >&6
16066 # So? What about this header?
16067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16073 ac_header_preproc=yes
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16090 ## ------------------------------- ##
16091 ## Report this to root@mput.dip.jp ##
16092 ## ------------------------------- ##
16095 sed "s/^/$as_me: WARNING: /" >&2
16098 echo "$as_me:$LINENO: checking for $ac_header" >&5
16099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 eval "$as_ac_Header=\$ac_header_preproc"
16105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16110 cat >>confdefs.h <<_ACEOF
16111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16120 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
16122 *) for i in /usr/include /usr/local/include; do
16123 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
16124 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
16125 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
16126 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
16133 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
16134 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
16135 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 ac_check_lib_save_LIBS=$LIBS
16139 LIBS="-lncurses $LIBS"
16140 cat >conftest.$ac_ext <<_ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16147 /* Override any gcc2 internal prototype to avoid an error. */
16151 /* We use char because int might match the return type of a gcc2
16152 builtin and then its argument prototype would still apply. */
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164 (eval $ac_link) 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag"
16172 || test ! -s conftest.err'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try='test -s conftest$ac_exeext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ac_cv_lib_ncurses_initscr=yes
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16189 ac_cv_lib_ncurses_initscr=no
16191 rm -f conftest.err conftest.$ac_objext \
16192 conftest$ac_exeext conftest.$ac_ext
16193 LIBS=$ac_check_lib_save_LIBS
16195 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
16196 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
16197 if test $ac_cv_lib_ncurses_initscr = yes; then
16198 lib_curses_opt=-lncurses
16200 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
16201 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
16202 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 ac_check_lib_save_LIBS=$LIBS
16206 LIBS="-lcurses $lib_user32_test $LIBS"
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16214 /* Override any gcc2 internal prototype to avoid an error. */
16218 /* We use char because int might match the return type of a gcc2
16219 builtin and then its argument prototype would still apply. */
16220 char PDC_set_ctrl_break ();
16224 PDC_set_ctrl_break ();
16229 rm -f conftest.$ac_objext conftest$ac_exeext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16231 (eval $ac_link) 2>conftest.er1
16233 grep -v '^ *+' conftest.er1 >conftest.err
16235 cat conftest.err >&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
16238 { ac_try='test -z "$ac_c_werror_flag"
16239 || test ! -s conftest.err'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest$ac_exeext'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16251 ac_cv_lib_curses_PDC_set_ctrl_break=yes
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ac_cv_lib_curses_PDC_set_ctrl_break=no
16258 rm -f conftest.err conftest.$ac_objext \
16259 conftest$ac_exeext conftest.$ac_ext
16260 LIBS=$ac_check_lib_save_LIBS
16262 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
16263 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
16264 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
16265 lib_curses_opt=-lcurses
16267 cat >>confdefs.h <<\_ACEOF
16268 #define USE_PDCURSES 1
16271 lib_user32_opt="$lib_user32_test"
16274 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
16275 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
16276 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 ac_check_lib_save_LIBS=$LIBS
16280 LIBS="-lpdcurses $LIBS"
16281 cat >conftest.$ac_ext <<_ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16288 /* Override any gcc2 internal prototype to avoid an error. */
16292 /* We use char because int might match the return type of a gcc2
16293 builtin and then its argument prototype would still apply. */
16294 char PDC_set_ctrl_break ();
16298 PDC_set_ctrl_break ();
16303 rm -f conftest.$ac_objext conftest$ac_exeext
16304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16305 (eval $ac_link) 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -z "$ac_c_werror_flag"
16313 || test ! -s conftest.err'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest$ac_exeext'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16332 rm -f conftest.err conftest.$ac_objext \
16333 conftest$ac_exeext conftest.$ac_ext
16334 LIBS=$ac_check_lib_save_LIBS
16336 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16337 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
16338 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16339 lib_curses_opt=-lpdcurses
16341 cat >>confdefs.h <<\_ACEOF
16342 #define USE_PDCURSES 1
16345 lib_user32_opt="$lib_user32_test"
16350 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16351 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
16352 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 ac_check_lib_save_LIBS=$LIBS
16356 LIBS="-lcurses $LIBS"
16357 cat >conftest.$ac_ext <<_ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16364 /* Override any gcc2 internal prototype to avoid an error. */
16368 /* We use char because int might match the return type of a gcc2
16369 builtin and then its argument prototype would still apply. */
16379 rm -f conftest.$ac_objext conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381 (eval $ac_link) 2>conftest.er1
16383 grep -v '^ *+' conftest.er1 >conftest.err
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } &&
16388 { ac_try='test -z "$ac_c_werror_flag"
16389 || test ! -s conftest.err'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest$ac_exeext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 ac_cv_lib_curses_initscr=yes
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16406 ac_cv_lib_curses_initscr=no
16408 rm -f conftest.err conftest.$ac_objext \
16409 conftest$ac_exeext conftest.$ac_ext
16410 LIBS=$ac_check_lib_save_LIBS
16412 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16413 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
16414 if test $ac_cv_lib_curses_initscr = yes; then
16415 lib_curses_opt=-lcurses
16417 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16418 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16424 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
16425 lib_curses_opt=libpdcurses.lib
16427 cat >>confdefs.h <<\_ACEOF
16428 #define USE_PDCURSES 1
16432 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16433 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16449 case "x$enable_ncurses" in
16451 cat >> confdefs.h <<EOF
16452 #define IA_NCURSES 1
16458 ENABLE_NCURSES_TRUE=
16459 ENABLE_NCURSES_FALSE='#'
16461 ENABLE_NCURSES_TRUE='#'
16462 ENABLE_NCURSES_FALSE=
16465 LIBS="$LIBS $lib_curses_opt"
16468 EXTRALIBS="$EXTRALIBS -lmytinfo"
16471 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16475 dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
16476 n_so_libs="$lib_curses_opt"
16479 EXTRALIBS="$EXTRALIBS -lmytinfo"
16494 ENABLE_SLANG_FALSE='#'
16496 ENABLE_SLANG_TRUE='#'
16497 ENABLE_SLANG_FALSE=
16500 # Check whether --enable-slang or --disable-slang was given.
16501 if test "${enable_slang+set}" = set; then
16502 enableval="$enable_slang"
16503 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16504 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
16505 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 ac_check_lib_save_LIBS=$LIBS
16509 LIBS="-lslang $LIBS"
16510 cat >conftest.$ac_ext <<_ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16517 /* Override any gcc2 internal prototype to avoid an error. */
16521 /* We use char because int might match the return type of a gcc2
16522 builtin and then its argument prototype would still apply. */
16523 char SLang_init_tty ();
16532 rm -f conftest.$ac_objext conftest$ac_exeext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16534 (eval $ac_link) 2>conftest.er1
16536 grep -v '^ *+' conftest.er1 >conftest.err
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag"
16542 || test ! -s conftest.err'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest$ac_exeext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_cv_lib_slang_SLang_init_tty=yes
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_cv_lib_slang_SLang_init_tty=no
16561 rm -f conftest.err conftest.$ac_objext \
16562 conftest$ac_exeext conftest.$ac_ext
16563 LIBS=$ac_check_lib_save_LIBS
16565 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16566 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16567 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16571 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16572 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16578 for ac_header in slang/slang.h slang.h
16580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16582 echo "$as_me:$LINENO: checking for $ac_header" >&5
16583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16590 # Is the header compilable?
16591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16593 cat >conftest.$ac_ext <<_ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16599 $ac_includes_default
16600 #include <$ac_header>
16602 rm -f conftest.$ac_objext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16604 (eval $ac_compile) 2>conftest.er1
16606 grep -v '^ *+' conftest.er1 >conftest.err
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag"
16612 || test ! -s conftest.err'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest.$ac_objext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_header_compiler=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_header_compiler=no
16631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16633 echo "${ECHO_T}$ac_header_compiler" >&6
16635 # Is the header present?
16636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16638 cat >conftest.$ac_ext <<_ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16644 #include <$ac_header>
16646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16649 grep -v '^ *+' conftest.er1 >conftest.err
16651 cat conftest.err >&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } >/dev/null; then
16654 if test -s conftest.err; then
16655 ac_cpp_err=$ac_c_preproc_warn_flag
16656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16663 if test -z "$ac_cpp_err"; then
16664 ac_header_preproc=yes
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_header_preproc=no
16671 rm -f conftest.err conftest.$ac_ext
16672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16673 echo "${ECHO_T}$ac_header_preproc" >&6
16675 # So? What about this header?
16676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16682 ac_header_preproc=yes
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16699 ## ------------------------------- ##
16700 ## Report this to root@mput.dip.jp ##
16701 ## ------------------------------- ##
16704 sed "s/^/$as_me: WARNING: /" >&2
16707 echo "$as_me:$LINENO: checking for $ac_header" >&5
16708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 eval "$as_ac_Header=\$ac_header_preproc"
16714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16719 cat >>confdefs.h <<_ACEOF
16720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16729 case "x$enable_slang" in
16731 cat >> confdefs.h <<EOF
16739 ENABLE_SLANG_FALSE='#'
16741 ENABLE_SLANG_TRUE='#'
16742 ENABLE_SLANG_FALSE=
16745 LIBS="$LIBS -lslang"
16746 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16750 dynamic_targets="$dynamic_targets if_slang.\$(so)"
16751 s_so_libs="-lslang"
16752 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16753 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16754 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 ac_check_lib_save_LIBS=$LIBS
16758 LIBS="-ltermcap $LIBS"
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16766 /* Override any gcc2 internal prototype to avoid an error. */
16770 /* We use char because int might match the return type of a gcc2
16771 builtin and then its argument prototype would still apply. */
16781 rm -f conftest.$ac_objext conftest$ac_exeext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16783 (eval $ac_link) 2>conftest.er1
16785 grep -v '^ *+' conftest.er1 >conftest.err
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
16790 { ac_try='test -z "$ac_c_werror_flag"
16791 || test ! -s conftest.err'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest$ac_exeext'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_cv_lib_termcap_initscr=yes
16805 echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16808 ac_cv_lib_termcap_initscr=no
16810 rm -f conftest.err conftest.$ac_objext \
16811 conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16814 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16815 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16816 if test $ac_cv_lib_termcap_initscr = yes; then
16817 s_so_libs="$s_so_libs -ltermcap"
16833 ENABLE_MOTIF_FALSE='#'
16835 ENABLE_MOTIF_TRUE='#'
16836 ENABLE_MOTIF_FALSE=
16839 # Check whether --enable-motif or --disable-motif was given.
16840 if test "${enable_motif+set}" = set; then
16841 enableval="$enable_motif"
16842 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
16843 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16844 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16845 { (exit 1); exit 1; }; }
16847 if test "x$have_xm" != xyes; then
16848 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16849 echo "$as_me: WARNING: Motif library is not found." >&2;}
16854 case "x$enable_motif" in
16856 cat >> confdefs.h <<EOF
16864 ENABLE_MOTIF_FALSE='#'
16866 ENABLE_MOTIF_TRUE='#'
16867 ENABLE_MOTIF_FALSE=
16872 lib_xext_opt=-lXext
16873 if test "x$have_xprelibs" = xyes; then
16874 lib_xprelibs_opt='-lSM -lICE'
16876 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16880 dynamic_targets="$dynamic_targets if_motif.\$(so)"
16881 if test x$have_xprelibs = xyes; then
16882 m_so_libs="-lXext -lSM -lICE"
16884 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16898 ENABLE_TCLTK_FALSE='#'
16900 ENABLE_TCLTK_TRUE='#'
16901 ENABLE_TCLTK_FALSE=
16904 # Check whether --enable-tcltk or --disable-tcltk was given.
16905 if test "${enable_tcltk+set}" = set; then
16906 enableval="$enable_tcltk"
16907 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
16908 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16909 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16910 { (exit 1); exit 1; }; }
16913 KEEPCPPFLAGS=$CPPFLAGS
16914 KEEPLDFLAGS=$LDFLAGS
16917 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16918 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16919 LIBS="$LIBS $lib_dl_opt"
16923 for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16924 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16925 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16926 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16927 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 ac_check_lib_save_LIBS=$LIBS
16932 cat >conftest.$ac_ext <<_ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16939 /* Override any gcc2 internal prototype to avoid an error. */
16943 /* We use char because int might match the return type of a gcc2
16944 builtin and then its argument prototype would still apply. */
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16956 (eval $ac_link) 2>conftest.er1
16958 grep -v '^ *+' conftest.er1 >conftest.err
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest$ac_exeext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 eval "$as_ac_Lib=yes"
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16981 eval "$as_ac_Lib=no"
16983 rm -f conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16985 LIBS=$ac_check_lib_save_LIBS
16987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16988 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16989 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16994 LIBS="$LIBS $tcl_lib"
16995 for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16996 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16997 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16998 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16999 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 ac_check_lib_save_LIBS=$LIBS
17004 cat >conftest.$ac_ext <<_ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17011 /* Override any gcc2 internal prototype to avoid an error. */
17015 /* We use char because int might match the return type of a gcc2
17016 builtin and then its argument prototype would still apply. */
17026 rm -f conftest.$ac_objext conftest$ac_exeext
17027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17028 (eval $ac_link) 2>conftest.er1
17030 grep -v '^ *+' conftest.er1 >conftest.err
17032 cat conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
17035 { ac_try='test -z "$ac_c_werror_flag"
17036 || test ! -s conftest.err'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; } &&
17042 { ac_try='test -s conftest$ac_exeext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 eval "$as_ac_Lib=yes"
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17053 eval "$as_ac_Lib=no"
17055 rm -f conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
17057 LIBS=$ac_check_lib_save_LIBS
17059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17060 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17061 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17068 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
17069 CPPFLAGS=$KEEPCPPFLAGS
17070 LDFLAGS=$KEEPLDFLAGS
17072 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
17073 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
17075 tcltk_dep='tclIndex'
17079 case "x$enable_tcltk" in
17081 cat >> confdefs.h <<EOF
17089 ENABLE_TCLTK_FALSE='#'
17091 ENABLE_TCLTK_TRUE='#'
17092 ENABLE_TCLTK_FALSE=
17095 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
17098 EXTRALIBS="$EXTRALIBS -lipc"
17101 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
17105 dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
17106 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
17109 k_so_libs="$k_so_libs -lipc"
17112 k_so_libs="$k_so_libs -lX11 -lm"
17123 if test "x$enable_tcltk" = "xdynamic"; then
17124 ENABLE_DYNAMIC_TCLTK_TRUE=
17125 ENABLE_DYNAMIC_TCLTK_FALSE='#'
17127 ENABLE_DYNAMIC_TCLTK_TRUE='#'
17128 ENABLE_DYNAMIC_TCLTK_FALSE=
17136 ENABLE_EMACS_FALSE='#'
17138 ENABLE_EMACS_TRUE='#'
17139 ENABLE_EMACS_FALSE=
17142 # Check whether --enable-emacs or --disable-emacs was given.
17143 if test "${enable_emacs+set}" = set; then
17144 enableval="$enable_emacs"
17145 case "x$enable_emacs" in xyes|xdynamic) ;; esac
17147 case "x$enable_emacs" in
17149 cat >> confdefs.h <<EOF
17157 ENABLE_EMACS_FALSE='#'
17159 ENABLE_EMACS_TRUE='#'
17160 ENABLE_EMACS_FALSE=
17163 ELFILES="$ELFILES timidity.el"
17164 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
17168 dynamic_targets="$dynamic_targets if_emacs.\$(so)"
17169 ELFILES="$ELFILES timidity.el"
17182 ENABLE_VT100_FALSE='#'
17184 ENABLE_VT100_TRUE='#'
17185 ENABLE_VT100_FALSE=
17188 # Check whether --enable-vt100 or --disable-vt100 was given.
17189 if test "${enable_vt100+set}" = set; then
17190 enableval="$enable_vt100"
17191 case "x$enable_vt100" in xyes|xdynamic) ;; esac
17193 case "x$enable_vt100" in
17195 cat >> confdefs.h <<EOF
17203 ENABLE_VT100_FALSE='#'
17205 ENABLE_VT100_TRUE='#'
17206 ENABLE_VT100_FALSE=
17209 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
17212 dynamic_targets="$dynamic_targets if_vt100.\$(so)"
17226 ENABLE_XAW_FALSE='#'
17228 ENABLE_XAW_TRUE='#'
17232 # Check whether --enable-xaw or --disable-xaw was given.
17233 if test "${enable_xaw+set}" = set; then
17234 enableval="$enable_xaw"
17235 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
17236 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
17237 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
17238 { (exit 1); exit 1; }; }
17240 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
17241 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
17242 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
17246 case "x$enable_xaw" in
17248 cat >> confdefs.h <<EOF
17256 ENABLE_XAW_FALSE='#'
17258 ENABLE_XAW_TRUE='#'
17262 if test "x$have_xext" = xyes; then
17263 lib_xext_opt=-lXext
17265 if test "x$have_xprelibs" = xyes; then
17266 lib_xprelibs_opt='-lSM -lICE'
17270 if test "x$have_xaw" = x3d; then
17272 cat >>confdefs.h <<\_ACEOF
17276 lib_xaw_opt=-lXaw3d
17280 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
17284 dynamic_targets="$dynamic_targets if_xaw.\$(so)"
17285 if test "x$have_xext" = xyes; then
17286 a_so_libs="-lXext -lX11"
17292 a_so_libs="$a_so_libs -lcc_dynamic"
17295 if test "x$have_xprelibs" = xyes; then
17296 a_so_libs="-lSM -lICE $a_so_libs"
17298 if test "x$have_xaw" = xyes; then
17299 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
17300 elif test "x$have_xaw" = x3d; then
17302 cat >>confdefs.h <<\_ACEOF
17306 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
17308 a_so_libs="$ldflags_x_opt $a_so_libs"
17319 if test "x$enable_xaw" = "xdynamic"; then
17320 ENABLE_DYNAMIC_XAW_TRUE=
17321 ENABLE_DYNAMIC_XAW_FALSE='#'
17323 ENABLE_DYNAMIC_XAW_TRUE='#'
17324 ENABLE_DYNAMIC_XAW_FALSE=
17332 ENABLE_XSKIN_FALSE='#'
17334 ENABLE_XSKIN_TRUE='#'
17335 ENABLE_XSKIN_FALSE=
17338 # Check whether --enable-xskin or --disable-xskin was given.
17339 if test "${enable_xskin+set}" = set; then
17340 enableval="$enable_xskin"
17341 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
17342 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17343 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17344 { (exit 1); exit 1; }; }
17348 case "x$enable_xskin" in
17350 cat >> confdefs.h <<EOF
17358 ENABLE_XSKIN_FALSE='#'
17360 ENABLE_XSKIN_TRUE='#'
17361 ENABLE_XSKIN_FALSE=
17364 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17367 dynamic_targets="$dynamic_targets if_xskin.\$(so)"
17368 i_so_libs="$ldflags_x_opt -lX11"
17381 ENABLE_GTK_FALSE='#'
17383 ENABLE_GTK_TRUE='#'
17387 # Check whether --enable-gtk or --disable-gtk was given.
17388 if test "${enable_gtk+set}" = set; then
17389 enableval="$enable_gtk"
17390 case "x$enable_gtk" in xyes|xdynamic) # Check whether --enable-gtktest or --disable-gtktest was given.
17391 if test "${enable_gtktest+set}" = set; then
17392 enableval="$enable_gtktest"
17398 pkg_config_args=gtk+-2.0
17403 pkg_config_args="$pkg_config_args gthread-2.0"
17410 # Extract the first word of "pkg-config", so it can be a program name with args.
17411 set dummy pkg-config; ac_word=$2
17412 echo "$as_me:$LINENO: checking for $ac_word" >&5
17413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17414 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17417 case $PKG_CONFIG in
17419 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17423 for as_dir in $PATH
17426 test -z "$as_dir" && as_dir=.
17427 for ac_exec_ext in '' $ac_executable_extensions; do
17428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17429 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17436 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17440 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17442 if test -n "$PKG_CONFIG"; then
17443 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17444 echo "${ECHO_T}$PKG_CONFIG" >&6
17446 echo "$as_me:$LINENO: result: no" >&5
17447 echo "${ECHO_T}no" >&6
17451 if test x$PKG_CONFIG != xno ; then
17452 if pkg-config --atleast-pkgconfig-version 0.7 ; then
17455 echo *** pkg-config too old; version 0.7 or better required.
17463 min_gtk_version=2.0.0
17464 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17465 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
17467 if test x$PKG_CONFIG != xno ; then
17468 ## don't try to run the test against uninstalled libtool libs
17469 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17470 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17474 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17481 if test x"$no_gtk" = x ; then
17482 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17483 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17484 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17485 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17486 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17487 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17488 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17489 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17490 if test "x$enable_gtktest" = "xyes" ; then
17491 ac_save_CFLAGS="$CFLAGS"
17492 ac_save_LIBS="$LIBS"
17493 CFLAGS="$CFLAGS $GTK_CFLAGS"
17494 LIBS="$GTK_LIBS $LIBS"
17496 if test "$cross_compiling" = yes; then
17497 echo $ac_n "cross compiling; assumed OK... $ac_c"
17499 cat >conftest.$ac_ext <<_ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17506 #include <gtk/gtk.h>
17508 #include <stdlib.h>
17513 int major, minor, micro;
17516 system ("touch conf.gtktest");
17518 /* HP/UX 9 (%@#!) writes to sscanf strings */
17519 tmp_version = g_strdup("$min_gtk_version");
17520 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17521 printf("%s, bad version string\n", "$min_gtk_version");
17525 if ((gtk_major_version != $gtk_config_major_version) ||
17526 (gtk_minor_version != $gtk_config_minor_version) ||
17527 (gtk_micro_version != $gtk_config_micro_version))
17529 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17530 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17531 gtk_major_version, gtk_minor_version, gtk_micro_version);
17532 printf ("*** was found! If pkg-config was correct, then it is best\n");
17533 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17534 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17535 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17536 printf("*** required on your system.\n");
17537 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17538 printf("*** to point to the correct configuration files\n");
17540 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17541 (gtk_minor_version != GTK_MINOR_VERSION) ||
17542 (gtk_micro_version != GTK_MICRO_VERSION))
17544 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17545 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17546 printf("*** library (version %d.%d.%d)\n",
17547 gtk_major_version, gtk_minor_version, gtk_micro_version);
17551 if ((gtk_major_version > major) ||
17552 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17553 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17559 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17560 gtk_major_version, gtk_minor_version, gtk_micro_version);
17561 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17562 major, minor, micro);
17563 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17565 printf("*** If you have already installed a sufficiently new version, this error\n");
17566 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17567 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17568 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17569 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17570 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17571 printf("*** so that the correct libraries are found at run-time))\n");
17578 rm -f conftest$ac_exeext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580 (eval $ac_link) 2>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17591 echo "$as_me: program exited with status $ac_status" >&5
17592 echo "$as_me: failed program was:" >&5
17593 sed 's/^/| /' conftest.$ac_ext >&5
17595 ( exit $ac_status )
17598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17600 CFLAGS="$ac_save_CFLAGS"
17601 LIBS="$ac_save_LIBS"
17604 if test "x$no_gtk" = x ; then
17605 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17606 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
17608 cat >>confdefs.h <<\_ACEOF
17609 #define HAVE_GTK_2 1
17613 echo "$as_me:$LINENO: result: no" >&5
17614 echo "${ECHO_T}no" >&6
17615 if test "$PKG_CONFIG" = "no" ; then
17616 echo "*** A new enough version of pkg-config was not found."
17617 echo "*** See http://pkgconfig.sourceforge.net"
17619 if test -f conf.gtktest ; then
17622 echo "*** Could not run GTK+ test program, checking why..."
17623 ac_save_CFLAGS="$CFLAGS"
17624 ac_save_LIBS="$LIBS"
17625 CFLAGS="$CFLAGS $GTK_CFLAGS"
17626 LIBS="$LIBS $GTK_LIBS"
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17634 #include <gtk/gtk.h>
17640 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17645 rm -f conftest.$ac_objext conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647 (eval $ac_link) 2>conftest.er1
17649 grep -v '^ *+' conftest.er1 >conftest.err
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -z "$ac_c_werror_flag"
17655 || test ! -s conftest.err'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; } &&
17661 { ac_try='test -s conftest$ac_exeext'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; }; then
17667 echo "*** The test program compiled, but did not run. This usually means"
17668 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17669 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17670 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17671 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17672 echo "*** is required on your system"
17674 echo "*** If you have an old version installed, it is best to remove it, although"
17675 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 echo "*** The test program failed to compile or link. See the file config.log for the"
17681 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17683 rm -f conftest.err conftest.$ac_objext \
17684 conftest$ac_exeext conftest.$ac_ext
17685 CFLAGS="$ac_save_CFLAGS"
17686 LIBS="$ac_save_LIBS"
17692 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17693 if test "${with_gtk_prefix+set}" = set; then
17694 withval="$with_gtk_prefix"
17695 gtk_config_prefix="$withval"
17697 gtk_config_prefix=""
17700 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17701 if test "${with_gtk_exec_prefix+set}" = set; then
17702 withval="$with_gtk_exec_prefix"
17703 gtk_config_exec_prefix="$withval"
17705 gtk_config_exec_prefix=""
17707 # Check whether --enable-gtktest or --disable-gtktest was given.
17708 if test "${enable_gtktest+set}" = set; then
17709 enableval="$enable_gtktest"
17719 gtk_config_args="$gtk_config_args gthread"
17724 if test x$gtk_config_exec_prefix != x ; then
17725 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17726 if test x${GTK_CONFIG+set} != xset ; then
17727 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17730 if test x$gtk_config_prefix != x ; then
17731 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17732 if test x${GTK_CONFIG+set} != xset ; then
17733 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17737 # Extract the first word of "gtk-config", so it can be a program name with args.
17738 set dummy gtk-config; ac_word=$2
17739 echo "$as_me:$LINENO: checking for $ac_word" >&5
17740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17741 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17742 echo $ECHO_N "(cached) $ECHO_C" >&6
17744 case $GTK_CONFIG in
17746 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17750 for as_dir in $PATH
17753 test -z "$as_dir" && as_dir=.
17754 for ac_exec_ext in '' $ac_executable_extensions; do
17755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17756 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17763 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17767 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17769 if test -n "$GTK_CONFIG"; then
17770 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17771 echo "${ECHO_T}$GTK_CONFIG" >&6
17773 echo "$as_me:$LINENO: result: no" >&5
17774 echo "${ECHO_T}no" >&6
17777 min_gtk_version=1.1.3
17778 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17779 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17781 if test "$GTK_CONFIG" = "no" ; then
17784 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17785 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17786 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17787 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17788 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17789 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17790 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17791 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17792 if test "x$enable_gtktest" = "xyes" ; then
17793 ac_save_CFLAGS="$CFLAGS"
17794 ac_save_LIBS="$LIBS"
17795 CFLAGS="$CFLAGS $GTK_CFLAGS"
17796 LIBS="$GTK_LIBS $LIBS"
17798 if test "$cross_compiling" = yes; then
17799 echo $ac_n "cross compiling; assumed OK... $ac_c"
17801 cat >conftest.$ac_ext <<_ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17808 #include <gtk/gtk.h>
17810 #include <stdlib.h>
17815 int major, minor, micro;
17818 system ("touch conf.gtktest");
17820 /* HP/UX 9 (%@#!) writes to sscanf strings */
17821 tmp_version = g_strdup("$min_gtk_version");
17822 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17823 printf("%s, bad version string\n", "$min_gtk_version");
17827 if ((gtk_major_version != $gtk_config_major_version) ||
17828 (gtk_minor_version != $gtk_config_minor_version) ||
17829 (gtk_micro_version != $gtk_config_micro_version))
17831 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17832 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17833 gtk_major_version, gtk_minor_version, gtk_micro_version);
17834 printf ("*** was found! If gtk-config was correct, then it is best\n");
17835 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17836 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17837 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17838 printf("*** required on your system.\n");
17839 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17840 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17841 printf("*** before re-running configure\n");
17843 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17844 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17845 (gtk_minor_version != GTK_MINOR_VERSION) ||
17846 (gtk_micro_version != GTK_MICRO_VERSION))
17848 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17849 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17850 printf("*** library (version %d.%d.%d)\n",
17851 gtk_major_version, gtk_minor_version, gtk_micro_version);
17853 #endif /* defined (GTK_MAJOR_VERSION) ... */
17856 if ((gtk_major_version > major) ||
17857 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17858 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17864 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17865 gtk_major_version, gtk_minor_version, gtk_micro_version);
17866 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17867 major, minor, micro);
17868 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17870 printf("*** If you have already installed a sufficiently new version, this error\n");
17871 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17872 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17873 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17874 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17875 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17876 printf("*** so that the correct libraries are found at run-time))\n");
17883 rm -f conftest$ac_exeext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17885 (eval $ac_link) 2>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17896 echo "$as_me: program exited with status $ac_status" >&5
17897 echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17900 ( exit $ac_status )
17903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17905 CFLAGS="$ac_save_CFLAGS"
17906 LIBS="$ac_save_LIBS"
17909 if test "x$no_gtk" = x ; then
17910 echo "$as_me:$LINENO: result: yes" >&5
17911 echo "${ECHO_T}yes" >&6
17914 echo "$as_me:$LINENO: result: no" >&5
17915 echo "${ECHO_T}no" >&6
17916 if test "$GTK_CONFIG" = "no" ; then
17917 echo "*** The gtk-config script installed by GTK could not be found"
17918 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17919 echo "*** your path, or set the GTK_CONFIG environment variable to the"
17920 echo "*** full path to gtk-config."
17922 if test -f conf.gtktest ; then
17925 echo "*** Could not run GTK test program, checking why..."
17926 CFLAGS="$CFLAGS $GTK_CFLAGS"
17927 LIBS="$LIBS $GTK_LIBS"
17928 cat >conftest.$ac_ext <<_ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17935 #include <gtk/gtk.h>
17941 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17946 rm -f conftest.$ac_objext conftest$ac_exeext
17947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17948 (eval $ac_link) 2>conftest.er1
17950 grep -v '^ *+' conftest.er1 >conftest.err
17952 cat conftest.err >&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
17955 { ac_try='test -z "$ac_c_werror_flag"
17956 || test ! -s conftest.err'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest$ac_exeext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 echo "*** The test program compiled, but did not run. This usually means"
17969 echo "*** that the run-time linker is not finding GTK or finding the wrong"
17970 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17971 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17972 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17973 echo "*** is required on your system"
17975 echo "*** If you have an old version installed, it is best to remove it, although"
17976 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17978 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17979 echo "*** came with the system with the command"
17981 echo "*** rpm --erase --nodeps gtk gtk-devel"
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17986 echo "*** The test program failed to compile or link. See the file config.log for the"
17987 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17988 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17989 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17991 rm -f conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17993 CFLAGS="$ac_save_CFLAGS"
17994 LIBS="$ac_save_LIBS"
18011 case "x$enable_gtk" in
18013 cat >> confdefs.h <<EOF
18021 ENABLE_GTK_FALSE='#'
18023 ENABLE_GTK_TRUE='#'
18027 LIBS="$LIBS $GTK_LIBS"
18028 for f in $GTK_CFLAGS; do
18030 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
18031 *) CFLAGS="$CPPFLAGS $f" ;;
18035 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
18039 dynamic_targets="$dynamic_targets if_gtk.\$(so)"
18040 if test "x$GCC" = xyes; then
18041 for i in $GTK_LIBS; do
18044 *) g_so_libs="$g_so_libs $i" ;;
18048 g_so_libs="$GTK_LIBS"
18050 for f in $GTK_CFLAGS; do
18052 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
18053 *) CFLAGS="$CPPFLAGS $f" ;;
18068 ENABLE_SERVER_TRUE=
18069 ENABLE_SERVER_FALSE='#'
18071 ENABLE_SERVER_TRUE='#'
18072 ENABLE_SERVER_FALSE=
18075 # Check whether --enable-server or --disable-server was given.
18076 if test "${enable_server+set}" = set; then
18077 enableval="$enable_server"
18078 case "x$enable_server" in xyes|xdynamic) ;; esac
18080 case "x$enable_server" in
18082 cat >> confdefs.h <<EOF
18083 #define IA_SERVER 1
18089 ENABLE_SERVER_TRUE=
18090 ENABLE_SERVER_FALSE='#'
18092 ENABLE_SERVER_TRUE='#'
18093 ENABLE_SERVER_FALSE=
18096 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
18098 for ac_header in sys/soundcard.h
18100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18102 echo "$as_me:$LINENO: checking for $ac_header" >&5
18103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18110 # Is the header compilable?
18111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18113 cat >conftest.$ac_ext <<_ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 $ac_includes_default
18120 #include <$ac_header>
18122 rm -f conftest.$ac_objext
18123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18124 (eval $ac_compile) 2>conftest.er1
18126 grep -v '^ *+' conftest.er1 >conftest.err
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
18131 { ac_try='test -z "$ac_c_werror_flag"
18132 || test ! -s conftest.err'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; } &&
18138 { ac_try='test -s conftest.$ac_objext'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
18144 ac_header_compiler=yes
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ac_header_compiler=no
18151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18153 echo "${ECHO_T}$ac_header_compiler" >&6
18155 # Is the header present?
18156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 #include <$ac_header>
18166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18169 grep -v '^ *+' conftest.er1 >conftest.err
18171 cat conftest.err >&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); } >/dev/null; then
18174 if test -s conftest.err; then
18175 ac_cpp_err=$ac_c_preproc_warn_flag
18176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18183 if test -z "$ac_cpp_err"; then
18184 ac_header_preproc=yes
18186 echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 ac_header_preproc=no
18191 rm -f conftest.err conftest.$ac_ext
18192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18193 echo "${ECHO_T}$ac_header_preproc" >&6
18195 # So? What about this header?
18196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18202 ac_header_preproc=yes
18205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18219 ## ------------------------------- ##
18220 ## Report this to root@mput.dip.jp ##
18221 ## ------------------------------- ##
18224 sed "s/^/$as_me: WARNING: /" >&2
18227 echo "$as_me:$LINENO: checking for $ac_header" >&5
18228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 eval "$as_ac_Header=\$ac_header_preproc"
18234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18239 cat >>confdefs.h <<_ACEOF
18240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18250 dynamic_targets="$dynamic_targets if_server.\$(so)"
18263 ENABLE_ALSASEQ_TRUE=
18264 ENABLE_ALSASEQ_FALSE='#'
18266 ENABLE_ALSASEQ_TRUE='#'
18267 ENABLE_ALSASEQ_FALSE=
18270 # Check whether --enable-alsaseq or --disable-alsaseq was given.
18271 if test "${enable_alsaseq+set}" = set; then
18272 enableval="$enable_alsaseq"
18273 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
18275 case "x$enable_alsaseq" in
18277 cat >> confdefs.h <<EOF
18278 #define IA_ALSASEQ 1
18284 ENABLE_ALSASEQ_TRUE=
18285 ENABLE_ALSASEQ_FALSE='#'
18287 ENABLE_ALSASEQ_TRUE='#'
18288 ENABLE_ALSASEQ_FALSE=
18291 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
18292 alsa_save_CFLAGS="$CFLAGS"
18293 alsa_save_LDFLAGS="$LDFLAGS"
18294 alsa_save_LIBS="$LIBS"
18298 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
18299 if test "${with_alsa_prefix+set}" = set; then
18300 withval="$with_alsa_prefix"
18301 alsa_prefix="$withval"
18307 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
18308 if test "${with_alsa_inc_prefix+set}" = set; then
18309 withval="$with_alsa_inc_prefix"
18310 alsa_inc_prefix="$withval"
18315 # Check whether --enable-alsatest or --disable-alsatest was given.
18316 if test "${enable_alsatest+set}" = set; then
18317 enableval="$enable_alsatest"
18320 enable_alsatest=yes
18323 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
18324 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
18325 if test "$alsa_inc_prefix" != "" ; then
18326 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18327 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18329 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
18330 echo "${ECHO_T}$ALSA_CFLAGS" >&6
18332 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
18333 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
18334 if test "$alsa_prefix" != "" ; then
18335 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18336 LDFLAGS="$LDFLAGS $ALSA_LIBS"
18339 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18340 LIBS=`echo $LIBS | sed 's/-lm//'`
18341 LIBS=`echo $LIBS | sed 's/-ldl//'`
18342 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18343 LIBS=`echo $LIBS | sed 's/ //'`
18344 LIBS="$ALSA_LIBS $LIBS"
18345 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
18346 echo "${ECHO_T}$ALSA_LIBS" >&6
18348 min_alsa_version=0.1.1
18349 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
18350 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
18352 alsa_min_major_version=`echo $min_alsa_version | \
18353 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18354 alsa_min_minor_version=`echo $min_alsa_version | \
18355 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18356 alsa_min_micro_version=`echo $min_alsa_version | \
18357 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18363 ac_cpp='$CPP $CPPFLAGS'
18364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18368 cat >conftest.$ac_ext <<_ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18375 #include <alsa/asoundlib.h>
18381 /* ensure backward compatibility */
18382 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18383 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18385 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18386 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18388 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18389 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18392 # if(SND_LIB_MAJOR > $alsa_min_major_version)
18395 # if(SND_LIB_MAJOR < $alsa_min_major_version)
18396 # error not present
18399 # if(SND_LIB_MINOR > $alsa_min_minor_version)
18402 # if(SND_LIB_MINOR < $alsa_min_minor_version)
18403 # error not present
18406 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18407 # error not present
18417 rm -f conftest.$ac_objext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419 (eval $ac_compile) 2>conftest.er1
18421 grep -v '^ *+' conftest.er1 >conftest.err
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } &&
18426 { ac_try='test -z "$ac_c_werror_flag"
18427 || test ! -s conftest.err'
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest.$ac_objext'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 echo "$as_me:$LINENO: result: found." >&5
18440 echo "${ECHO_T}found." >&6
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 cat >conftest.$ac_ext <<_ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18452 #include <sys/asoundlib.h>
18458 /* ensure backward compatibility */
18459 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18460 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18462 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18463 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18465 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18466 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18469 # if(SND_LIB_MAJOR > $alsa_min_major_version)
18472 # if(SND_LIB_MAJOR < $alsa_min_major_version)
18473 # error not present
18476 # if(SND_LIB_MINOR > $alsa_min_minor_version)
18479 # if(SND_LIB_MINOR < $alsa_min_minor_version)
18480 # error not present
18483 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18484 # error not present
18494 rm -f conftest.$ac_objext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496 (eval $ac_compile) 2>conftest.er1
18498 grep -v '^ *+' conftest.er1 >conftest.err
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag"
18504 || test ! -s conftest.err'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest.$ac_objext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 echo "$as_me:$LINENO: result: found." >&5
18517 echo "${ECHO_T}found." >&6
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 echo "$as_me:$LINENO: result: not present." >&5
18523 echo "${ECHO_T}not present." >&6
18524 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18525 echo "${ECHO_T}libasound was not found anywhere." >&6
18528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18529 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18530 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18535 ac_cpp='$CPP $CPPFLAGS'
18536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18542 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18543 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18544 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 ac_check_lib_save_LIBS=$LIBS
18548 LIBS="-lasound $LIBS"
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18556 /* Override any gcc2 internal prototype to avoid an error. */
18560 /* We use char because int might match the return type of a gcc2
18561 builtin and then its argument prototype would still apply. */
18562 char snd_ctl_open ();
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573 (eval $ac_link) 2>conftest.er1
18575 grep -v '^ *+' conftest.er1 >conftest.err
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } &&
18580 { ac_try='test -z "$ac_c_werror_flag"
18581 || test ! -s conftest.err'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; } &&
18587 { ac_try='test -s conftest$ac_exeext'
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
18593 ac_cv_lib_asound_snd_ctl_open=yes
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 ac_cv_lib_asound_snd_ctl_open=no
18600 rm -f conftest.err conftest.$ac_objext \
18601 conftest$ac_exeext conftest.$ac_ext
18602 LIBS=$ac_check_lib_save_LIBS
18604 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18605 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18606 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18607 cat >>confdefs.h <<_ACEOF
18608 #define HAVE_LIBASOUND 1
18611 LIBS="-lasound $LIBS"
18614 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18615 echo "${ECHO_T}No linkable libasound was found." >&6
18621 if test "x$alsa_found" = "xyes" ; then
18623 LIBS=`echo $LIBS | sed 's/-lasound//g'`
18624 LIBS=`echo $LIBS | sed 's/ //'`
18625 LIBS="-lasound $LIBS"
18628 CFLAGS="$alsa_save_CFLAGS"
18629 LDFLAGS="$alsa_save_LDFLAGS"
18630 LIBS="$alsa_save_LIBS"
18641 dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
18654 ENABLE_WINSYN_TRUE=
18655 ENABLE_WINSYN_FALSE='#'
18657 ENABLE_WINSYN_TRUE='#'
18658 ENABLE_WINSYN_FALSE=
18661 # Check whether --enable-winsyn or --disable-winsyn was given.
18662 if test "${enable_winsyn+set}" = set; then
18663 enableval="$enable_winsyn"
18664 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
18666 case "x$enable_winsyn" in
18668 cat >> confdefs.h <<EOF
18669 #define IA_WINSYN 1
18675 ENABLE_WINSYN_TRUE=
18676 ENABLE_WINSYN_FALSE='#'
18678 ENABLE_WINSYN_TRUE='#'
18679 ENABLE_WINSYN_FALSE=
18682 WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18685 dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
18698 ENABLE_PORTMIDISYN_TRUE=
18699 ENABLE_PORTMIDISYN_FALSE='#'
18701 ENABLE_PORTMIDISYN_TRUE='#'
18702 ENABLE_PORTMIDISYN_FALSE=
18705 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18706 if test "${enable_portmidisyn+set}" = set; then
18707 enableval="$enable_portmidisyn"
18708 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
18710 case "x$enable_portmidisyn" in
18712 cat >> confdefs.h <<EOF
18713 #define IA_PORTMIDISYN 1
18719 ENABLE_PORTMIDISYN_TRUE=
18720 ENABLE_PORTMIDISYN_FALSE='#'
18722 ENABLE_PORTMIDISYN_TRUE='#'
18723 ENABLE_PORTMIDISYN_FALSE=
18726 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18729 dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
18742 ENABLE_W32G_SYN_TRUE=
18743 ENABLE_W32G_SYN_FALSE='#'
18745 ENABLE_W32G_SYN_TRUE='#'
18746 ENABLE_W32G_SYN_FALSE=
18749 # Check whether --enable-winsyng or --disable-winsyng was given.
18750 if test "${enable_winsyng+set}" = set; then
18751 enableval="$enable_winsyng"
18752 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
18754 case "x$enable_winsyng" in
18756 cat >> confdefs.h <<EOF
18757 #define IA_W32G_SYN 1
18763 ENABLE_W32G_SYN_TRUE=
18764 ENABLE_W32G_SYN_FALSE='#'
18766 ENABLE_W32G_SYN_TRUE='#'
18767 ENABLE_W32G_SYN_FALSE=
18772 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
18773 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"
18774 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18775 lib_user32_opt='user32.lib'
18776 if test "x$VCPP" = xyes; then
18777 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18779 if test "x$BORLANDC" = xyes; then
18780 BORLANDC_START='C0W32.OBJ'
18781 CFLAGS="$CFLAGS -tW"
18782 lib_w32gui_opt="-aa $lib_w32gui_opt"
18784 if test "x$WATCOM_C" = xyes; then
18785 CFLAGS="$CFLAGS -bw"
18786 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18789 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18790 lib_user32_opt='-luser32'
18791 LDFLAGS="-mwindows $LDFLAGS"
18792 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"
18797 dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
18811 ENABLE_W32GUI_TRUE=
18812 ENABLE_W32GUI_FALSE='#'
18814 ENABLE_W32GUI_TRUE='#'
18815 ENABLE_W32GUI_FALSE=
18818 # Check whether --enable-w32gui or --disable-w32gui was given.
18819 if test "${enable_w32gui+set}" = set; then
18820 enableval="$enable_w32gui"
18821 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
18823 case "x$enable_w32gui" in
18825 cat >> confdefs.h <<EOF
18826 #define IA_W32GUI 1
18832 ENABLE_W32GUI_TRUE=
18833 ENABLE_W32GUI_FALSE='#'
18835 ENABLE_W32GUI_TRUE='#'
18836 ENABLE_W32GUI_FALSE=
18841 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
18842 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"
18843 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18844 lib_user32_opt='user32.lib'
18845 if test "x$VCPP" = xyes; then
18846 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18848 if test "x$BORLANDC" = xyes; then
18849 BORLANDC_START='C0W32.OBJ'
18850 CFLAGS="$CFLAGS -tW"
18851 lib_w32gui_opt="-aa $lib_w32gui_opt"
18853 if test "x$WATCOM_C" = xyes; then
18854 CFLAGS="$CFLAGS -bw"
18855 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18858 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18859 lib_user32_opt='-luser32'
18860 LDFLAGS="-mwindows $LDFLAGS"
18861 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"
18866 dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
18879 ENABLE_PLUGIN_TRUE=
18880 ENABLE_PLUGIN_FALSE='#'
18882 ENABLE_PLUGIN_TRUE='#'
18883 ENABLE_PLUGIN_FALSE=
18886 # Check whether --enable-ump or --disable-ump was given.
18887 if test "${enable_ump+set}" = set; then
18888 enableval="$enable_ump"
18889 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
18890 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
18891 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
18892 { (exit 1); exit 1; }; }
18894 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18895 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18896 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18897 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18901 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18903 # Is the header compilable?
18904 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18905 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18906 cat >conftest.$ac_ext <<_ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18912 $ac_includes_default
18913 #include <X11/xpm.h>
18915 rm -f conftest.$ac_objext
18916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18917 (eval $ac_compile) 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
18924 { ac_try='test -z "$ac_c_werror_flag"
18925 || test ! -s conftest.err'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest.$ac_objext'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 ac_header_compiler=yes
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 ac_header_compiler=no
18944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18946 echo "${ECHO_T}$ac_header_compiler" >&6
18948 # Is the header present?
18949 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18950 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 #include <X11/xpm.h>
18959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18962 grep -v '^ *+' conftest.er1 >conftest.err
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } >/dev/null; then
18967 if test -s conftest.err; then
18968 ac_cpp_err=$ac_c_preproc_warn_flag
18969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18976 if test -z "$ac_cpp_err"; then
18977 ac_header_preproc=yes
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18982 ac_header_preproc=no
18984 rm -f conftest.err conftest.$ac_ext
18985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18986 echo "${ECHO_T}$ac_header_preproc" >&6
18988 # So? What about this header?
18989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18991 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18992 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18993 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18994 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18995 ac_header_preproc=yes
18998 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18999 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
19000 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
19001 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
19002 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
19003 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
19004 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
19005 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19006 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
19007 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
19008 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
19009 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
19012 ## ------------------------------- ##
19013 ## Report this to root@mput.dip.jp ##
19014 ## ------------------------------- ##
19017 sed "s/^/$as_me: WARNING: /" >&2
19020 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
19021 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
19022 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19025 ac_cv_header_X11_xpm_h=$ac_header_preproc
19027 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
19028 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
19031 if test $ac_cv_header_X11_xpm_h = yes; then
19034 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
19035 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
19036 { (exit 1); exit 1; }; }
19040 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
19041 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
19042 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 ac_check_lib_save_LIBS=$LIBS
19047 cat >conftest.$ac_ext <<_ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h. */
19054 /* Override any gcc2 internal prototype to avoid an error. */
19058 /* We use char because int might match the return type of a gcc2
19059 builtin and then its argument prototype would still apply. */
19060 char XpmCreatePixmapFromData ();
19064 XpmCreatePixmapFromData ();
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19071 (eval $ac_link) 2>conftest.er1
19073 grep -v '^ *+' conftest.er1 >conftest.err
19075 cat conftest.err >&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
19078 { ac_try='test -z "$ac_c_werror_flag"
19079 || test ! -s conftest.err'
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest$ac_exeext'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; }; then
19091 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
19093 echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19096 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
19098 rm -f conftest.err conftest.$ac_objext \
19099 conftest$ac_exeext conftest.$ac_ext
19100 LIBS=$ac_check_lib_save_LIBS
19102 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
19103 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
19104 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
19107 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
19108 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
19109 { (exit 1); exit 1; }; }
19112 if test "x$have_xext" = xyes; then
19113 lib_xext_opt=-lXext
19115 if test "x$have_xprelibs" = xyes; then
19116 lib_xprelibs_opt='-lSM -lICE'
19122 case "x$enable_ump" in
19124 cat >> confdefs.h <<EOF
19125 #define IA_PLUGIN 1
19131 ENABLE_PLUGIN_TRUE=
19132 ENABLE_PLUGIN_FALSE='#'
19134 ENABLE_PLUGIN_TRUE='#'
19135 ENABLE_PLUGIN_FALSE=
19141 dynamic_targets="$dynamic_targets if_ump.\$(so)"
19151 # Check whether --enable-windrv or --disable-windrv was given.
19152 if test "${enable_windrv+set}" = set; then
19153 enableval="$enable_windrv"
19154 if test "$enableval" = "yes"; then
19155 if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; then
19156 { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom" >&5
19157 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom" >&2;}
19158 { (exit 1); exit 1; }; }
19159 elif test "x$WINSYN" != "xyes"; then
19160 { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
19161 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
19162 { (exit 1); exit 1; }; }
19165 cat >>confdefs.h <<\_ACEOF
19170 if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
19171 CFLAGS="$CFLAGS $DLLFLAG -DANOTHER_MAIN "
19176 # Check whether --enable-offix or --disable-offix was given.
19177 if test "${enable_offix+set}" = set; then
19178 enableval="$enable_offix"
19179 if test "$enableval" = "yes"; then
19180 KEEPCPPFLAGS=$CPPFLAGS
19182 KEEPLDFLAGS=$LDFLAGS
19183 CPPFLAGS="$CPPFLAGS $offix_include_dir"
19184 LDFLAGS="$LDFLAGS $offix_lib_dir"
19185 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
19186 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
19187 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
19188 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 ac_check_lib_save_LIBS=$LIBS
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19200 /* Override any gcc2 internal prototype to avoid an error. */
19204 /* We use char because int might match the return type of a gcc2
19205 builtin and then its argument prototype would still apply. */
19206 char DndInitialize ();
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217 (eval $ac_link) 2>conftest.er1
19219 grep -v '^ *+' conftest.er1 >conftest.err
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest$ac_exeext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_lib_Dnd_DndInitialize=yes
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 ac_cv_lib_Dnd_DndInitialize=no
19244 rm -f conftest.err conftest.$ac_objext \
19245 conftest$ac_exeext conftest.$ac_ext
19246 LIBS=$ac_check_lib_save_LIBS
19248 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
19249 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
19250 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
19253 lib_offix_opt="-lDnd"
19255 cat >>confdefs.h <<\_ACEOF
19261 LDFLAGS=$KEEPLDFLAGS
19262 CPPFLAGS=$KEEPCPPFLAGS
19271 # Check whether --enable-network or --disable-network was given.
19272 if test "${enable_network+set}" = set; then
19273 enableval="$enable_network"
19274 if test "$enableval" = "yes"; then
19276 cat >>confdefs.h <<\_ACEOF
19277 #define SUPPORT_SOCKET 1
19284 if test "x$enable_network" = "xyes"; then
19285 ENABLE_NETWORK_TRUE=
19286 ENABLE_NETWORK_FALSE='#'
19288 ENABLE_NETWORK_TRUE='#'
19289 ENABLE_NETWORK_FALSE=
19293 # Check whether --enable-spectrogram or --disable-spectrogram was given.
19294 if test "${enable_spectrogram+set}" = set; then
19295 enableval="$enable_spectrogram"
19296 if test "$enableval" = "yes"; then
19297 if test "x$with_x" != xyes; then
19298 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
19299 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
19300 { (exit 1); exit 1; }; }
19303 cat >>confdefs.h <<\_ACEOF
19304 #define SUPPORT_SOUNDSPEC 1
19311 if test "x$enable_spectrogram" = "xyes"; then
19312 ENABLE_SOUND_SPEC_TRUE=
19313 ENABLE_SOUND_SPEC_FALSE='#'
19315 ENABLE_SOUND_SPEC_TRUE='#'
19316 ENABLE_SOUND_SPEC_FALSE=
19320 # Check whether --enable-spline or --disable-spline was given.
19321 if test "${enable_spline+set}" = set; then
19322 enableval="$enable_spline"
19323 case "x$enableval" in
19326 cat >>confdefs.h <<\_ACEOF
19327 #define DEFAULT_RESAMPLATION resample_linear
19333 cat >>confdefs.h <<\_ACEOF
19334 #define DEFAULT_RESAMPLATION resample_cspline
19340 cat >>confdefs.h <<\_ACEOF
19341 #define DEFAULT_RESAMPLATION resample_lagrange
19347 cat >>confdefs.h <<\_ACEOF
19348 #define DEFAULT_RESAMPLATION resample_newton
19354 cat >>confdefs.h <<\_ACEOF
19355 #define DEFAULT_RESAMPLATION resample_gauss
19361 cat >>confdefs.h <<\_ACEOF
19362 #define DEFAULT_RESAMPLATION resample_none
19367 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
19368 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
19369 { (exit 1); exit 1; }; }
19374 # Check whether --enable-wrd or --disable-wrd was given.
19375 if test "${enable_wrd+set}" = set; then
19376 enableval="$enable_wrd"
19377 if test "$enableval" = "yes"; then
19378 if test "x$with_x" != xyes; then
19379 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
19380 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
19381 { (exit 1); exit 1; }; }
19384 cat >>confdefs.h <<\_ACEOF
19388 enable_sherry_wrd=yes
19389 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
19390 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
19391 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 ac_check_lib_save_LIBS=$LIBS
19396 cat >conftest.$ac_ext <<_ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19403 /* Override any gcc2 internal prototype to avoid an error. */
19407 /* We use char because int might match the return type of a gcc2
19408 builtin and then its argument prototype would still apply. */
19409 char zlibVersion ();
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19420 (eval $ac_link) 2>conftest.er1
19422 grep -v '^ *+' conftest.er1 >conftest.err
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest$ac_exeext'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 ac_cv_lib_z_zlibVersion=yes
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_cv_lib_z_zlibVersion=no
19447 rm -f conftest.err conftest.$ac_objext \
19448 conftest$ac_exeext conftest.$ac_ext
19449 LIBS=$ac_check_lib_save_LIBS
19451 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
19452 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
19453 if test $ac_cv_lib_z_zlibVersion = yes; then
19456 enable_sherry_wrd=no
19459 if test "${ac_cv_header_png_h+set}" = set; then
19460 echo "$as_me:$LINENO: checking for png.h" >&5
19461 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19462 if test "${ac_cv_header_png_h+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19466 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19468 # Is the header compilable?
19469 echo "$as_me:$LINENO: checking png.h usability" >&5
19470 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19477 $ac_includes_default
19480 rm -f conftest.$ac_objext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19482 (eval $ac_compile) 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try='test -z "$ac_c_werror_flag"
19490 || test ! -s conftest.err'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; } &&
19496 { ac_try='test -s conftest.$ac_objext'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 ac_header_compiler=yes
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19507 ac_header_compiler=no
19509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19511 echo "${ECHO_T}$ac_header_compiler" >&6
19513 # Is the header present?
19514 echo "$as_me:$LINENO: checking png.h presence" >&5
19515 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19527 grep -v '^ *+' conftest.er1 >conftest.err
19529 cat conftest.err >&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); } >/dev/null; then
19532 if test -s conftest.err; then
19533 ac_cpp_err=$ac_c_preproc_warn_flag
19534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19541 if test -z "$ac_cpp_err"; then
19542 ac_header_preproc=yes
19544 echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19547 ac_header_preproc=no
19549 rm -f conftest.err conftest.$ac_ext
19550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19551 echo "${ECHO_T}$ac_header_preproc" >&6
19553 # So? What about this header?
19554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19556 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19557 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19558 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19559 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19560 ac_header_preproc=yes
19563 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19564 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19565 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19566 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19567 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19568 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19569 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19570 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
19571 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19572 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19573 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19574 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19577 ## ------------------------------- ##
19578 ## Report this to root@mput.dip.jp ##
19579 ## ------------------------------- ##
19582 sed "s/^/$as_me: WARNING: /" >&2
19585 echo "$as_me:$LINENO: checking for png.h" >&5
19586 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19587 if test "${ac_cv_header_png_h+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_cv_header_png_h=$ac_header_preproc
19592 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19593 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19596 if test $ac_cv_header_png_h = yes; then
19599 enable_sherry_wrd=no
19603 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19604 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19605 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
19608 ac_check_lib_save_LIBS=$LIBS
19609 LIBS="-lpng -lz $LIBS"
19610 cat >conftest.$ac_ext <<_ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19617 /* Override any gcc2 internal prototype to avoid an error. */
19621 /* We use char because int might match the return type of a gcc2
19622 builtin and then its argument prototype would still apply. */
19623 char png_init_io ();
19632 rm -f conftest.$ac_objext conftest$ac_exeext
19633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19634 (eval $ac_link) 2>conftest.er1
19636 grep -v '^ *+' conftest.er1 >conftest.err
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } &&
19641 { ac_try='test -z "$ac_c_werror_flag"
19642 || test ! -s conftest.err'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest$ac_exeext'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_cv_lib_png_png_init_io=yes
19656 echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_lib_png_png_init_io=no
19661 rm -f conftest.err conftest.$ac_objext \
19662 conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19666 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19667 if test $ac_cv_lib_png_png_init_io = yes; then
19670 enable_sherry_wrd=no
19673 if test "$enable_sherry_wrd" = yes; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define ENABLE_SHERRY 1
19682 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19683 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19685 if test "x$have_xext" = xyes; then
19686 lib_xext_opt=-lXext
19700 if test "x$enable_wrd" = "xyes"; then
19702 ENABLE_WRD_FALSE='#'
19704 ENABLE_WRD_TRUE='#'
19710 if test "x$W32G_GUI" = xyes; then
19720 if test "x$WINDRV" = xyes; then
19730 if test "x$MSYS" = xyes; then
19740 if test "x$VCPP" = xyes; then
19750 if test "x$BORLANDC" = xyes; then
19760 if test "x$WATCOM_C" = xyes; then
19770 if test "x$MINGWGCC" = xyes; then
19781 if test "x$W32READDIR" = "xyes"; then
19783 W32READDIR_FALSE='#'
19785 W32READDIR_TRUE='#'
19790 rm -f wordtmp >/dev/null 2>&1
19792 for f in $LDFLAGS; do
19793 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19796 echo $f >>wordtmp; val="$val $f"
19801 rm -f wordtmp >/dev/null 2>&1
19803 rm -f wordtmp >/dev/null 2>&1
19805 for f in $SHLDFLAGS; do
19806 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19809 echo $f >>wordtmp; val="$val $f"
19814 rm -f wordtmp >/dev/null 2>&1
19816 rm -f wordtmp >/dev/null 2>&1
19818 for f in $EXTRACFLAGS $CFLAGS; do
19819 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19822 echo $f >>wordtmp; val="$val $f"
19827 rm -f wordtmp >/dev/null 2>&1
19829 rm -f wordtmp >/dev/null 2>&1
19831 for f in $CPPFLAGS $EXTRADEFS; do
19832 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19835 echo $f >>wordtmp; val="$val $f"
19840 rm -f wordtmp >/dev/null 2>&1
19843 if test "x$oss_device" != x; then
19845 cat >>confdefs.h <<_ACEOF
19846 #define OSS_DEVICE "$oss_device"
19851 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19853 cat >>confdefs.h <<_ACEOF
19854 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19859 if test "x$with_x" = xyes; then
19860 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/"`
19862 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19863 SHLD="$SHLD $SHLDFLAGS"
19887 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"
19889 cat >confcache <<\_ACEOF
19890 # This file is a shell script that caches the results of configure
19891 # tests run on this system so they can be shared between configure
19892 # scripts and configure runs, see configure's option --config-cache.
19893 # It is not useful on other systems. If it contains results you don't
19894 # want to keep, you may remove or edit it.
19896 # config.status only pays attention to the cache file if you give it
19897 # the --recheck option to rerun configure.
19899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19901 # following values.
19905 # The following way of writing the cache mishandles newlines in values,
19906 # but we know of no workaround that is simple, portable, and efficient.
19907 # So, don't put newlines in cache variables' values.
19908 # Ultrix sh set writes to stderr and can't be redirected directly,
19909 # and sets the high bit in the cache file unless we assign to the vars.
19912 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19914 # `set' does not quote correctly, so add quotes (double-quote
19915 # substitution turns \\\\ into \\, and sed turns \\ into \).
19918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19921 # `set' quotes correctly as required by POSIX, so do not add quotes.
19923 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19932 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19934 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19935 if test -w $cache_file; then
19936 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19937 cat confcache >$cache_file
19939 echo "not updating unwritable cache $cache_file"
19944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19945 # Let make expand exec_prefix.
19946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19948 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19949 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19950 # trailing colons and then remove the whole line if VPATH becomes empty
19951 # (actually we leave an empty line to preserve line numbers).
19952 if test "x$srcdir" = x.; then
19953 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19954 s/:*\$(srcdir):*/:/;
19955 s/:*\${srcdir}:*/:/;
19957 s/^\([^=]*=[ ]*\):*/\1/;
19963 DEFS=-DHAVE_CONFIG_H
19967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19968 # 1. Remove the extension, and $U if already installed.
19969 ac_i=`echo "$ac_i" |
19970 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19972 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19973 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19975 LIBOBJS=$ac_libobjs
19977 LTLIBOBJS=$ac_ltlibobjs
19980 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19981 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19982 Usually this means the macro was only invoked conditionally." >&5
19983 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19984 Usually this means the macro was only invoked conditionally." >&2;}
19985 { (exit 1); exit 1; }; }
19987 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19988 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19989 Usually this means the macro was only invoked conditionally." >&5
19990 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19991 Usually this means the macro was only invoked conditionally." >&2;}
19992 { (exit 1); exit 1; }; }
19994 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19995 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19996 Usually this means the macro was only invoked conditionally." >&5
19997 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19998 Usually this means the macro was only invoked conditionally." >&2;}
19999 { (exit 1); exit 1; }; }
20001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20002 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20003 Usually this means the macro was only invoked conditionally." >&5
20004 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20005 Usually this means the macro was only invoked conditionally." >&2;}
20006 { (exit 1); exit 1; }; }
20008 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
20009 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
20010 Usually this means the macro was only invoked conditionally." >&5
20011 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
20012 Usually this means the macro was only invoked conditionally." >&2;}
20013 { (exit 1); exit 1; }; }
20015 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
20016 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
20017 Usually this means the macro was only invoked conditionally." >&5
20018 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
20019 Usually this means the macro was only invoked conditionally." >&2;}
20020 { (exit 1); exit 1; }; }
20022 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20023 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20024 Usually this means the macro was only invoked conditionally." >&5
20025 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20026 Usually this means the macro was only invoked conditionally." >&2;}
20027 { (exit 1); exit 1; }; }
20029 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20030 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20031 Usually this means the macro was only invoked conditionally." >&5
20032 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20033 Usually this means the macro was only invoked conditionally." >&2;}
20034 { (exit 1); exit 1; }; }
20036 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20037 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20038 Usually this means the macro was only invoked conditionally." >&5
20039 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20040 Usually this means the macro was only invoked conditionally." >&2;}
20041 { (exit 1); exit 1; }; }
20043 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20044 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20045 Usually this means the macro was only invoked conditionally." >&5
20046 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20047 Usually this means the macro was only invoked conditionally." >&2;}
20048 { (exit 1); exit 1; }; }
20050 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20051 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20052 Usually this means the macro was only invoked conditionally." >&5
20053 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20054 Usually this means the macro was only invoked conditionally." >&2;}
20055 { (exit 1); exit 1; }; }
20057 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20058 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20059 Usually this means the macro was only invoked conditionally." >&5
20060 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20061 Usually this means the macro was only invoked conditionally." >&2;}
20062 { (exit 1); exit 1; }; }
20064 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20065 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20066 Usually this means the macro was only invoked conditionally." >&5
20067 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20068 Usually this means the macro was only invoked conditionally." >&2;}
20069 { (exit 1); exit 1; }; }
20071 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20072 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20073 Usually this means the macro was only invoked conditionally." >&5
20074 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20075 Usually this means the macro was only invoked conditionally." >&2;}
20076 { (exit 1); exit 1; }; }
20078 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
20079 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20080 Usually this means the macro was only invoked conditionally." >&5
20081 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20082 Usually this means the macro was only invoked conditionally." >&2;}
20083 { (exit 1); exit 1; }; }
20085 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20086 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20087 Usually this means the macro was only invoked conditionally." >&5
20088 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20089 Usually this means the macro was only invoked conditionally." >&2;}
20090 { (exit 1); exit 1; }; }
20092 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20093 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20094 Usually this means the macro was only invoked conditionally." >&5
20095 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20096 Usually this means the macro was only invoked conditionally." >&2;}
20097 { (exit 1); exit 1; }; }
20099 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20100 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20101 Usually this means the macro was only invoked conditionally." >&5
20102 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20103 Usually this means the macro was only invoked conditionally." >&2;}
20104 { (exit 1); exit 1; }; }
20106 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20107 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20108 Usually this means the macro was only invoked conditionally." >&5
20109 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20110 Usually this means the macro was only invoked conditionally." >&2;}
20111 { (exit 1); exit 1; }; }
20113 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20114 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20115 Usually this means the macro was only invoked conditionally." >&5
20116 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20117 Usually this means the macro was only invoked conditionally." >&2;}
20118 { (exit 1); exit 1; }; }
20120 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20121 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20122 Usually this means the macro was only invoked conditionally." >&5
20123 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20124 Usually this means the macro was only invoked conditionally." >&2;}
20125 { (exit 1); exit 1; }; }
20127 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
20128 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20129 Usually this means the macro was only invoked conditionally." >&5
20130 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20131 Usually this means the macro was only invoked conditionally." >&2;}
20132 { (exit 1); exit 1; }; }
20134 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20135 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20136 Usually this means the macro was only invoked conditionally." >&5
20137 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20138 Usually this means the macro was only invoked conditionally." >&2;}
20139 { (exit 1); exit 1; }; }
20141 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20142 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20143 Usually this means the macro was only invoked conditionally." >&5
20144 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20145 Usually this means the macro was only invoked conditionally." >&2;}
20146 { (exit 1); exit 1; }; }
20148 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20149 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20150 Usually this means the macro was only invoked conditionally." >&5
20151 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20152 Usually this means the macro was only invoked conditionally." >&2;}
20153 { (exit 1); exit 1; }; }
20155 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20156 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20157 Usually this means the macro was only invoked conditionally." >&5
20158 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20159 Usually this means the macro was only invoked conditionally." >&2;}
20160 { (exit 1); exit 1; }; }
20162 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20163 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20164 Usually this means the macro was only invoked conditionally." >&5
20165 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20166 Usually this means the macro was only invoked conditionally." >&2;}
20167 { (exit 1); exit 1; }; }
20169 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20170 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20171 Usually this means the macro was only invoked conditionally." >&5
20172 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20173 Usually this means the macro was only invoked conditionally." >&2;}
20174 { (exit 1); exit 1; }; }
20176 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20177 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20178 Usually this means the macro was only invoked conditionally." >&5
20179 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20180 Usually this means the macro was only invoked conditionally." >&2;}
20181 { (exit 1); exit 1; }; }
20183 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20184 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20185 Usually this means the macro was only invoked conditionally." >&5
20186 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20187 Usually this means the macro was only invoked conditionally." >&2;}
20188 { (exit 1); exit 1; }; }
20190 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20191 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20192 Usually this means the macro was only invoked conditionally." >&5
20193 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20194 Usually this means the macro was only invoked conditionally." >&2;}
20195 { (exit 1); exit 1; }; }
20197 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20198 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20199 Usually this means the macro was only invoked conditionally." >&5
20200 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20201 Usually this means the macro was only invoked conditionally." >&2;}
20202 { (exit 1); exit 1; }; }
20204 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20205 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20206 Usually this means the macro was only invoked conditionally." >&5
20207 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20208 Usually this means the macro was only invoked conditionally." >&2;}
20209 { (exit 1); exit 1; }; }
20211 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20212 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20213 Usually this means the macro was only invoked conditionally." >&5
20214 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20215 Usually this means the macro was only invoked conditionally." >&2;}
20216 { (exit 1); exit 1; }; }
20218 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20219 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20220 Usually this means the macro was only invoked conditionally." >&5
20221 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20222 Usually this means the macro was only invoked conditionally." >&2;}
20223 { (exit 1); exit 1; }; }
20225 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20226 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20227 Usually this means the macro was only invoked conditionally." >&5
20228 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20229 Usually this means the macro was only invoked conditionally." >&2;}
20230 { (exit 1); exit 1; }; }
20232 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20233 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20234 Usually this means the macro was only invoked conditionally." >&5
20235 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20236 Usually this means the macro was only invoked conditionally." >&2;}
20237 { (exit 1); exit 1; }; }
20239 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20240 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20241 Usually this means the macro was only invoked conditionally." >&5
20242 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20243 Usually this means the macro was only invoked conditionally." >&2;}
20244 { (exit 1); exit 1; }; }
20246 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20247 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20248 Usually this means the macro was only invoked conditionally." >&5
20249 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20250 Usually this means the macro was only invoked conditionally." >&2;}
20251 { (exit 1); exit 1; }; }
20253 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20254 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20255 Usually this means the macro was only invoked conditionally." >&5
20256 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20257 Usually this means the macro was only invoked conditionally." >&2;}
20258 { (exit 1); exit 1; }; }
20260 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
20261 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
20262 Usually this means the macro was only invoked conditionally." >&5
20263 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
20264 Usually this means the macro was only invoked conditionally." >&2;}
20265 { (exit 1); exit 1; }; }
20267 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
20268 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20269 Usually this means the macro was only invoked conditionally." >&5
20270 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20271 Usually this means the macro was only invoked conditionally." >&2;}
20272 { (exit 1); exit 1; }; }
20274 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
20275 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
20276 Usually this means the macro was only invoked conditionally." >&5
20277 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
20278 Usually this means the macro was only invoked conditionally." >&2;}
20279 { (exit 1); exit 1; }; }
20281 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
20282 { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
20283 Usually this means the macro was only invoked conditionally." >&5
20284 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
20285 Usually this means the macro was only invoked conditionally." >&2;}
20286 { (exit 1); exit 1; }; }
20288 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
20289 { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
20290 Usually this means the macro was only invoked conditionally." >&5
20291 echo "$as_me: error: conditional \"WINDRV\" was never defined.
20292 Usually this means the macro was only invoked conditionally." >&2;}
20293 { (exit 1); exit 1; }; }
20295 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
20296 { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
20297 Usually this means the macro was only invoked conditionally." >&5
20298 echo "$as_me: error: conditional \"MSYS\" was never defined.
20299 Usually this means the macro was only invoked conditionally." >&2;}
20300 { (exit 1); exit 1; }; }
20302 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
20303 { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
20304 Usually this means the macro was only invoked conditionally." >&5
20305 echo "$as_me: error: conditional \"VCPP\" was never defined.
20306 Usually this means the macro was only invoked conditionally." >&2;}
20307 { (exit 1); exit 1; }; }
20309 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
20310 { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
20311 Usually this means the macro was only invoked conditionally." >&5
20312 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
20313 Usually this means the macro was only invoked conditionally." >&2;}
20314 { (exit 1); exit 1; }; }
20316 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
20317 { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
20318 Usually this means the macro was only invoked conditionally." >&5
20319 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
20320 Usually this means the macro was only invoked conditionally." >&2;}
20321 { (exit 1); exit 1; }; }
20323 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
20324 { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
20325 Usually this means the macro was only invoked conditionally." >&5
20326 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
20327 Usually this means the macro was only invoked conditionally." >&2;}
20328 { (exit 1); exit 1; }; }
20330 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
20331 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
20332 Usually this means the macro was only invoked conditionally." >&5
20333 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
20334 Usually this means the macro was only invoked conditionally." >&2;}
20335 { (exit 1); exit 1; }; }
20338 : ${CONFIG_STATUS=./config.status}
20339 ac_clean_files_save=$ac_clean_files
20340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20341 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20342 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20343 cat >$CONFIG_STATUS <<_ACEOF
20345 # Generated by $as_me.
20346 # Run this file to recreate the current configuration.
20347 # Compiler output produced by configure, useful for debugging
20348 # configure, is in config.log if it exists.
20351 ac_cs_recheck=false
20353 SHELL=\${CONFIG_SHELL-$SHELL}
20356 cat >>$CONFIG_STATUS <<\_ACEOF
20357 ## --------------------- ##
20358 ## M4sh Initialization. ##
20359 ## --------------------- ##
20361 # Be Bourne compatible
20362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20365 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20366 # is contrary to our usage. Disable this feature.
20367 alias -g '${1+"$@"}'='"$@"'
20368 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20371 DUALCASE=1; export DUALCASE # for MKS sh
20373 # Support unset when possible.
20374 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20381 # Work around bugs in pre-3.0 UWIN ksh.
20382 $as_unset ENV MAIL MAILPATH
20389 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20390 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20391 LC_TELEPHONE LC_TIME
20393 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20394 eval $as_var=C; export $as_var
20400 # Required to use basename.
20401 if expr a : '\(a\)' >/dev/null 2>&1; then
20407 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20408 as_basename=basename
20414 # Name of the executable.
20415 as_me=`$as_basename "$0" ||
20416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20417 X"$0" : 'X\(//\)$' \| \
20418 X"$0" : 'X\(/\)$' \| \
20419 . : '\(.\)' 2>/dev/null ||
20421 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20422 /^X\/\(\/\/\)$/{ s//\1/; q; }
20423 /^X\/\(\/\).*/{ s//\1/; q; }
20427 # PATH needs CR, and LINENO needs CR and PATH.
20428 # Avoid depending upon Character Ranges.
20429 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20430 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20431 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20432 as_cr_digits='0123456789'
20433 as_cr_alnum=$as_cr_Letters$as_cr_digits
20435 # The user is always right.
20436 if test "${PATH_SEPARATOR+set}" != set; then
20437 echo "#! /bin/sh" >conf$$.sh
20438 echo "exit 0" >>conf$$.sh
20440 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20449 as_lineno_1=$LINENO
20450 as_lineno_2=$LINENO
20451 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20452 test "x$as_lineno_1" != "x$as_lineno_2" &&
20453 test "x$as_lineno_3" = "x$as_lineno_2" || {
20454 # Find who we are. Look in the path if we contain no path at all
20457 *[\\/]* ) as_myself=$0 ;;
20458 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20459 for as_dir in $PATH
20462 test -z "$as_dir" && as_dir=.
20463 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20468 # We did not find ourselves, most probably we were run as `sh COMMAND'
20469 # in which case we are not to be found in the path.
20470 if test "x$as_myself" = x; then
20473 if test ! -f "$as_myself"; then
20474 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20475 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20476 { (exit 1); exit 1; }; }
20478 case $CONFIG_SHELL in
20480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20481 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20484 test -z "$as_dir" && as_dir=.
20485 for as_base in sh bash ksh sh5; do
20488 if ("$as_dir/$as_base" -c '
20489 as_lineno_1=$LINENO
20490 as_lineno_2=$LINENO
20491 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20492 test "x$as_lineno_1" != "x$as_lineno_2" &&
20493 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20494 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20495 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20496 CONFIG_SHELL=$as_dir/$as_base
20497 export CONFIG_SHELL
20498 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20506 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20507 # uniformly replaced by the line number. The first 'sed' inserts a
20508 # line-number line before each line; the second 'sed' does the real
20509 # work. The second script uses 'N' to pair each line-number line
20510 # with the numbered line, and appends trailing '-' during
20511 # substitution so that $LINENO is not a special case at line end.
20512 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20513 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20514 sed '=' <$as_myself |
20519 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20522 s,^['$as_cr_digits']*\n,,
20523 ' >$as_me.lineno &&
20524 chmod +x $as_me.lineno ||
20525 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20526 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20527 { (exit 1); exit 1; }; }
20529 # Don't try to exec as it changes $[0], causing all sort of problems
20530 # (the dirname of $[0] is not the place where we might find the
20531 # original and so on. Autoconf is especially sensible to this).
20533 # Exit status is that of the last command.
20538 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20539 *c*,-n*) ECHO_N= ECHO_C='
20541 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20542 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20545 if expr a : '\(a\)' >/dev/null 2>&1; then
20551 rm -f conf$$ conf$$.exe conf$$.file
20553 if ln -s conf$$.file conf$$ 2>/dev/null; then
20554 # We could just check for DJGPP; but this test a) works b) is more generic
20555 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20556 if test -f conf$$.exe; then
20557 # Don't use ln at all; we don't have any links
20562 elif ln conf$$.file conf$$ 2>/dev/null; then
20567 rm -f conf$$ conf$$.exe conf$$.file
20569 if mkdir -p . 2>/dev/null; then
20572 test -d ./-p && rmdir ./-p
20576 as_executable_p="test -f"
20578 # Sed expression to map a string onto a valid CPP name.
20579 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20581 # Sed expression to map a string onto a valid variable name.
20582 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20586 # We need space, tab and new line, in precisely that order.
20596 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20597 # report actual input values of CONFIG_FILES etc. instead of their
20598 # values after options handling. Logging --version etc. is OK.
20602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20603 ## Running $as_me. ##
20608 This file was extended by TiMidity++ $as_me 2.13.2, which was
20609 generated by GNU Autoconf 2.59. Invocation command line was
20611 CONFIG_FILES = $CONFIG_FILES
20612 CONFIG_HEADERS = $CONFIG_HEADERS
20613 CONFIG_LINKS = $CONFIG_LINKS
20614 CONFIG_COMMANDS = $CONFIG_COMMANDS
20618 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20622 # Files that config.status was made for.
20623 if test -n "$ac_config_files"; then
20624 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20627 if test -n "$ac_config_headers"; then
20628 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20631 if test -n "$ac_config_links"; then
20632 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20635 if test -n "$ac_config_commands"; then
20636 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20639 cat >>$CONFIG_STATUS <<\_ACEOF
20642 \`$as_me' instantiates files from templates according to the
20643 current configuration.
20645 Usage: $0 [OPTIONS] [FILE]...
20647 -h, --help print this help, then exit
20648 -V, --version print version number, then exit
20649 -q, --quiet do not print progress messages
20650 -d, --debug don't remove temporary files
20651 --recheck update $as_me by reconfiguring in the same conditions
20652 --file=FILE[:TEMPLATE]
20653 instantiate the configuration file FILE
20654 --header=FILE[:TEMPLATE]
20655 instantiate the configuration header FILE
20657 Configuration files:
20660 Configuration headers:
20663 Configuration commands:
20666 Report bugs to <bug-autoconf@gnu.org>."
20669 cat >>$CONFIG_STATUS <<_ACEOF
20671 TiMidity++ config.status 2.13.2
20672 configured by $0, generated by GNU Autoconf 2.59,
20673 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20675 Copyright (C) 2003 Free Software Foundation, Inc.
20676 This config.status script is free software; the Free Software Foundation
20677 gives unlimited permission to copy, distribute and modify it."
20682 cat >>$CONFIG_STATUS <<\_ACEOF
20683 # If no file are specified by the user, then we need to provide default
20684 # value. By we need to know if files were specified by the user.
20690 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20691 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20699 *) # This is not an option, so the user has probably given explicit
20702 ac_need_defaults=false;;
20706 # Handling of the options.
20708 cat >>$CONFIG_STATUS <<\_ACEOF
20709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20711 --version | --vers* | -V )
20712 echo "$ac_cs_version"; exit 0 ;;
20714 # Conflict between --help and --header
20715 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20716 Try \`$0 --help' for more information." >&5
20717 echo "$as_me: error: ambiguous option: $1
20718 Try \`$0 --help' for more information." >&2;}
20719 { (exit 1); exit 1; }; };;
20720 --help | --hel | -h )
20721 echo "$ac_cs_usage"; exit 0 ;;
20722 --debug | --d* | -d )
20724 --file | --fil | --fi | --f )
20726 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20727 ac_need_defaults=false;;
20728 --header | --heade | --head | --hea )
20730 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20731 ac_need_defaults=false;;
20732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20736 # This is an error.
20737 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20738 Try \`$0 --help' for more information." >&5
20739 echo "$as_me: error: unrecognized option: $1
20740 Try \`$0 --help' for more information." >&2;}
20741 { (exit 1); exit 1; }; } ;;
20743 *) ac_config_targets="$ac_config_targets $1" ;;
20749 ac_configure_extra_args=
20751 if $ac_cs_silent; then
20753 ac_configure_extra_args="$ac_configure_extra_args --silent"
20757 cat >>$CONFIG_STATUS <<_ACEOF
20758 if \$ac_cs_recheck; then
20759 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20760 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20765 cat >>$CONFIG_STATUS <<_ACEOF
20767 # INIT-COMMANDS section.
20770 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20776 cat >>$CONFIG_STATUS <<\_ACEOF
20777 for ac_config_target in $ac_config_targets
20779 case "$ac_config_target" in
20780 # Handling of arguments.
20781 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20782 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20783 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20784 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20785 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20786 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20787 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20788 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20789 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20790 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20791 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20792 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20793 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20794 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20795 "windrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
20796 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20797 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20798 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20799 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20800 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20801 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20802 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20803 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20804 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20805 { (exit 1); exit 1; }; };;
20809 # If the user did not use the arguments to specify the items to instantiate,
20810 # then the envvar interface is used. Set only those that are not.
20811 # We use the long form for the default assignment because of an extremely
20812 # bizarre bug on SunOS 4.1.3.
20813 if $ac_need_defaults; then
20814 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20815 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20816 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20819 # Have a temporary directory for convenience. Make it in the build tree
20820 # simply because there is no reason to put it here, and in addition,
20821 # creating and moving files from /tmp can sometimes cause problems.
20822 # Create a temporary directory, and hook for its removal unless debugging.
20825 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20826 trap '{ (exit 1); exit 1; }' 1 2 13 15
20829 # Create a (secure) tmp directory for tmp files.
20832 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20833 test -n "$tmp" && test -d "$tmp"
20836 tmp=./confstat$$-$RANDOM
20837 (umask 077 && mkdir $tmp)
20840 echo "$me: cannot create a temporary directory in ." >&2
20841 { (exit 1); exit 1; }
20846 cat >>$CONFIG_STATUS <<_ACEOF
20849 # CONFIG_FILES section.
20852 # No need to generate the scripts if there are no CONFIG_FILES.
20853 # This happens for instance when ./config.status config.h
20854 if test -n "\$CONFIG_FILES"; then
20855 # Protect against being on the right side of a sed subst in config.status.
20856 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20857 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20858 s,@SHELL@,$SHELL,;t t
20859 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20860 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20861 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20862 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20863 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20864 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20865 s,@exec_prefix@,$exec_prefix,;t t
20866 s,@prefix@,$prefix,;t t
20867 s,@program_transform_name@,$program_transform_name,;t t
20868 s,@bindir@,$bindir,;t t
20869 s,@sbindir@,$sbindir,;t t
20870 s,@libexecdir@,$libexecdir,;t t
20871 s,@datadir@,$datadir,;t t
20872 s,@sysconfdir@,$sysconfdir,;t t
20873 s,@sharedstatedir@,$sharedstatedir,;t t
20874 s,@localstatedir@,$localstatedir,;t t
20875 s,@libdir@,$libdir,;t t
20876 s,@includedir@,$includedir,;t t
20877 s,@oldincludedir@,$oldincludedir,;t t
20878 s,@infodir@,$infodir,;t t
20879 s,@mandir@,$mandir,;t t
20880 s,@build_alias@,$build_alias,;t t
20881 s,@host_alias@,$host_alias,;t t
20882 s,@target_alias@,$target_alias,;t t
20883 s,@DEFS@,$DEFS,;t t
20884 s,@ECHO_C@,$ECHO_C,;t t
20885 s,@ECHO_N@,$ECHO_N,;t t
20886 s,@ECHO_T@,$ECHO_T,;t t
20887 s,@LIBS@,$LIBS,;t t
20888 s,@build@,$build,;t t
20889 s,@build_cpu@,$build_cpu,;t t
20890 s,@build_vendor@,$build_vendor,;t t
20891 s,@build_os@,$build_os,;t t
20892 s,@host@,$host,;t t
20893 s,@host_cpu@,$host_cpu,;t t
20894 s,@host_vendor@,$host_vendor,;t t
20895 s,@host_os@,$host_os,;t t
20896 s,@target@,$target,;t t
20897 s,@target_cpu@,$target_cpu,;t t
20898 s,@target_vendor@,$target_vendor,;t t
20899 s,@target_os@,$target_os,;t t
20900 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20901 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20902 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20903 s,@CYGPATH_W@,$CYGPATH_W,;t t
20904 s,@PACKAGE@,$PACKAGE,;t t
20905 s,@VERSION@,$VERSION,;t t
20906 s,@ACLOCAL@,$ACLOCAL,;t t
20907 s,@AUTOCONF@,$AUTOCONF,;t t
20908 s,@AUTOMAKE@,$AUTOMAKE,;t t
20909 s,@AUTOHEADER@,$AUTOHEADER,;t t
20910 s,@MAKEINFO@,$MAKEINFO,;t t
20911 s,@AMTAR@,$AMTAR,;t t
20912 s,@install_sh@,$install_sh,;t t
20913 s,@STRIP@,$STRIP,;t t
20914 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20915 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20916 s,@mkdir_p@,$mkdir_p,;t t
20918 s,@SET_MAKE@,$SET_MAKE,;t t
20919 s,@am__leading_dot@,$am__leading_dot,;t t
20920 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20921 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20922 s,@MAINT@,$MAINT,;t t
20924 s,@CXXFLAGS@,$CXXFLAGS,;t t
20925 s,@LDFLAGS@,$LDFLAGS,;t t
20926 s,@CPPFLAGS@,$CPPFLAGS,;t t
20927 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20928 s,@EXEEXT@,$EXEEXT,;t t
20929 s,@OBJEXT@,$OBJEXT,;t t
20930 s,@DEPDIR@,$DEPDIR,;t t
20931 s,@am__include@,$am__include,;t t
20932 s,@am__quote@,$am__quote,;t t
20933 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20934 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20935 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20936 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20937 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20938 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20939 s,@EMACS@,$EMACS,;t t
20940 s,@EMACSLOADPATH@,$EMACSLOADPATH,;t t
20941 s,@lispdir@,$lispdir,;t t
20943 s,@CFLAGS@,$CFLAGS,;t t
20944 s,@ac_ct_CC@,$ac_ct_CC,;t t
20945 s,@CCDEPMODE@,$CCDEPMODE,;t t
20946 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20947 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20949 s,@EGREP@,$EGREP,;t t
20950 s,@RANLIB@,$RANLIB,;t t
20951 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20952 s,@LN_S@,$LN_S,;t t
20953 s,@X_CFLAGS@,$X_CFLAGS,;t t
20954 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20955 s,@X_LIBS@,$X_LIBS,;t t
20956 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20957 s,@LIBOBJS@,$LIBOBJS,;t t
20958 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20959 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20960 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20961 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20962 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
20963 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
20964 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
20965 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20966 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20967 s,@ESD_LIBS@,$ESD_LIBS,;t t
20968 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20969 s,@AO_LIBS@,$AO_LIBS,;t t
20970 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20971 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20972 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20973 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20974 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20975 s,@OGG_LIBS@,$OGG_LIBS,;t t
20976 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20977 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20978 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20979 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20980 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20981 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20982 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20983 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20984 s,@n_so_libs@,$n_so_libs,;t t
20985 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20986 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20987 s,@s_so_libs@,$s_so_libs,;t t
20988 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20989 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20990 s,@m_so_libs@,$m_so_libs,;t t
20991 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
20992 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
20993 s,@k_so_libs@,$k_so_libs,;t t
20994 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
20995 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
20996 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
20997 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
20998 s,@e_so_libs@,$e_so_libs,;t t
20999 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
21000 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
21001 s,@T_so_libs@,$T_so_libs,;t t
21002 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
21003 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
21004 s,@a_so_libs@,$a_so_libs,;t t
21005 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
21006 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
21007 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
21008 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
21009 s,@i_so_libs@,$i_so_libs,;t t
21010 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
21011 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
21012 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21013 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
21014 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21015 s,@GTK_LIBS@,$GTK_LIBS,;t t
21016 s,@g_so_libs@,$g_so_libs,;t t
21017 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
21018 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
21019 s,@r_so_libs@,$r_so_libs,;t t
21020 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
21021 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
21022 s,@A_so_libs@,$A_so_libs,;t t
21023 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
21024 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
21025 s,@W_so_libs@,$W_so_libs,;t t
21026 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
21027 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
21028 s,@P_so_libs@,$P_so_libs,;t t
21029 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
21030 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
21031 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
21032 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
21033 s,@w_so_libs@,$w_so_libs,;t t
21034 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
21035 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
21036 s,@p_so_libs@,$p_so_libs,;t t
21037 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
21038 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
21039 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
21040 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
21041 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
21042 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
21043 s,@W32G_GUI_TRUE@,$W32G_GUI_TRUE,;t t
21044 s,@W32G_GUI_FALSE@,$W32G_GUI_FALSE,;t t
21045 s,@WINDRV_TRUE@,$WINDRV_TRUE,;t t
21046 s,@WINDRV_FALSE@,$WINDRV_FALSE,;t t
21047 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
21048 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
21049 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
21050 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
21051 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
21052 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
21053 s,@WATCOM_C_TRUE@,$WATCOM_C_TRUE,;t t
21054 s,@WATCOM_C_FALSE@,$WATCOM_C_FALSE,;t t
21055 s,@MINGWGCC_TRUE@,$MINGWGCC_TRUE,;t t
21056 s,@MINGWGCC_FALSE@,$MINGWGCC_FALSE,;t t
21057 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
21058 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
21059 s,@BORLANDC_START@,$BORLANDC_START,;t t
21060 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
21061 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
21062 s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t
21063 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
21064 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
21065 s,@EXTRALIBS@,$EXTRALIBS,;t t
21066 s,@NETSRCS@,$NETSRCS,;t t
21067 s,@ELFILES@,$ELFILES,;t t
21068 s,@SHLD@,$SHLD,;t t
21069 s,@SHCFLAGS@,$SHCFLAGS,;t t
21070 s,@dynamic_targets@,$dynamic_targets,;t t
21072 s,@WISH@,$WISH,;t t
21073 s,@tcltk_dep@,$tcltk_dep,;t t
21074 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
21075 s,@pkgdatadir@,$pkgdatadir,;t t
21076 s,@pkglibdir@,$pkglibdir,;t t
21077 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21082 cat >>$CONFIG_STATUS <<\_ACEOF
21083 # Split the substitutions into bite-sized pieces for seds with
21084 # small command number limits, like on Digital OSF/1 and HP-UX.
21085 ac_max_sed_lines=48
21086 ac_sed_frag=1 # Number of current file.
21087 ac_beg=1 # First line for current file.
21088 ac_end=$ac_max_sed_lines # Line after last line for current file.
21091 while $ac_more_lines; do
21092 if test $ac_beg -gt 1; then
21093 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21095 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21097 if test ! -s $tmp/subs.frag; then
21098 ac_more_lines=false
21100 # The purpose of the label and of the branching condition is to
21101 # speed up the sed processing (if there are no `@' at all, there
21102 # is no need to browse any of the substitutions).
21103 # These are the two extra sed commands mentioned above.
21105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21106 if test -z "$ac_sed_cmds"; then
21107 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21109 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21111 ac_sed_frag=`expr $ac_sed_frag + 1`
21113 ac_end=`expr $ac_end + $ac_max_sed_lines`
21116 if test -z "$ac_sed_cmds"; then
21119 fi # test -n "$CONFIG_FILES"
21122 cat >>$CONFIG_STATUS <<\_ACEOF
21123 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21126 - | *:- | *:-:* ) # input from stdin
21128 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21130 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21132 * ) ac_file_in=$ac_file.in ;;
21135 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21136 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21138 X"$ac_file" : 'X\(//\)[^/]' \| \
21139 X"$ac_file" : 'X\(//\)$' \| \
21140 X"$ac_file" : 'X\(/\)' \| \
21141 . : '\(.\)' 2>/dev/null ||
21143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21145 /^X\(\/\/\)$/{ s//\1/; q; }
21146 /^X\(\/\).*/{ s//\1/; q; }
21148 { if $as_mkdir_p; then
21153 while test ! -d "$as_dir"; do
21154 as_dirs="$as_dir $as_dirs"
21155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21157 X"$as_dir" : 'X\(//\)[^/]' \| \
21158 X"$as_dir" : 'X\(//\)$' \| \
21159 X"$as_dir" : 'X\(/\)' \| \
21160 . : '\(.\)' 2>/dev/null ||
21162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21164 /^X\(\/\/\)$/{ s//\1/; q; }
21165 /^X\(\/\).*/{ s//\1/; q; }
21168 test ! -n "$as_dirs" || mkdir $as_dirs
21169 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21171 { (exit 1); exit 1; }; }; }
21175 if test "$ac_dir" != .; then
21176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21177 # A "../" for each directory in $ac_dir_suffix.
21178 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21180 ac_dir_suffix= ac_top_builddir=
21184 .) # No --srcdir option. We are building in place.
21186 if test -z "$ac_top_builddir"; then
21189 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21191 [\\/]* | ?:[\\/]* ) # Absolute path.
21192 ac_srcdir=$srcdir$ac_dir_suffix;
21193 ac_top_srcdir=$srcdir ;;
21194 *) # Relative path.
21195 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21196 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21199 # Do not use `cd foo && pwd` to compute absolute paths, because
21200 # the directories may not exist.
21202 .) ac_abs_builddir="$ac_dir";;
21205 .) ac_abs_builddir=`pwd`;;
21206 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21207 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21210 case $ac_abs_builddir in
21211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21213 case ${ac_top_builddir}. in
21214 .) ac_abs_top_builddir=$ac_abs_builddir;;
21215 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21216 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21219 case $ac_abs_builddir in
21220 .) ac_abs_srcdir=$ac_srcdir;;
21223 .) ac_abs_srcdir=$ac_abs_builddir;;
21224 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21225 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21228 case $ac_abs_builddir in
21229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21231 case $ac_top_srcdir in
21232 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21233 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21234 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21240 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21241 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21244 if test x"$ac_file" != x-; then
21245 { echo "$as_me:$LINENO: creating $ac_file" >&5
21246 echo "$as_me: creating $ac_file" >&6;}
21249 # Let's still pretend it is `configure' which instantiates (i.e., don't
21250 # use $as_me), people would be surprised to read:
21251 # /* config.h. Generated by config.status. */
21252 if test x"$ac_file" = x-; then
21255 configure_input="$ac_file. "
21257 configure_input=$configure_input"Generated from `echo $ac_file_in |
21258 sed 's,.*/,,'` by configure."
21260 # First look for the input files in the build tree, otherwise in the
21262 ac_file_inputs=`IFS=:
21263 for f in $ac_file_in; do
21265 -) echo $tmp/stdin ;;
21267 # Absolute (can't be DOS-style, as IFS=:)
21268 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21269 echo "$as_me: error: cannot find input file: $f" >&2;}
21270 { (exit 1); exit 1; }; }
21273 if test -f "$f"; then
21276 elif test -f "$srcdir/$f"; then
21281 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21282 echo "$as_me: error: cannot find input file: $f" >&2;}
21283 { (exit 1); exit 1; }; }
21286 done` || { (exit 1); exit 1; }
21288 cat >>$CONFIG_STATUS <<_ACEOF
21292 cat >>$CONFIG_STATUS <<\_ACEOF
21294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21295 s,@configure_input@,$configure_input,;t t
21296 s,@srcdir@,$ac_srcdir,;t t
21297 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21298 s,@top_srcdir@,$ac_top_srcdir,;t t
21299 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21300 s,@builddir@,$ac_builddir,;t t
21301 s,@abs_builddir@,$ac_abs_builddir,;t t
21302 s,@top_builddir@,$ac_top_builddir,;t t
21303 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21304 s,@INSTALL@,$ac_INSTALL,;t t
21305 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21307 if test x"$ac_file" != x-; then
21308 mv $tmp/out $ac_file
21316 cat >>$CONFIG_STATUS <<\_ACEOF
21319 # CONFIG_HEADER section.
21322 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21323 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21325 # ac_d sets the value in "#define NAME VALUE" lines.
21326 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21327 ac_dB='[ ].*$,\1#\2'
21330 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21331 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21332 ac_uB='$,\1#\2define\3'
21336 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21337 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21339 - | *:- | *:-:* ) # input from stdin
21341 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21342 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21343 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21345 * ) ac_file_in=$ac_file.in ;;
21348 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21349 echo "$as_me: creating $ac_file" >&6;}
21351 # First look for the input files in the build tree, otherwise in the
21353 ac_file_inputs=`IFS=:
21354 for f in $ac_file_in; do
21356 -) echo $tmp/stdin ;;
21358 # Absolute (can't be DOS-style, as IFS=:)
21359 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21360 echo "$as_me: error: cannot find input file: $f" >&2;}
21361 { (exit 1); exit 1; }; }
21362 # Do quote $f, to prevent DOS paths from being IFS'd.
21365 if test -f "$f"; then
21368 elif test -f "$srcdir/$f"; then
21373 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21374 echo "$as_me: error: cannot find input file: $f" >&2;}
21375 { (exit 1); exit 1; }; }
21378 done` || { (exit 1); exit 1; }
21379 # Remove the trailing spaces.
21380 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21384 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21385 # `conftest.undefs', that substitutes the proper values into
21386 # config.h.in to produce config.h. The first handles `#define'
21387 # templates, and the second `#undef' templates.
21388 # And first: Protect against being on the right side of a sed subst in
21389 # config.status. Protect against being in an unquoted here document
21390 # in config.status.
21391 rm -f conftest.defines conftest.undefs
21392 # Using a here document instead of a string reduces the quoting nightmare.
21393 # Putting comments in sed scripts is not portable.
21395 # `end' is used to avoid that the second main sed command (meant for
21396 # 0-ary CPP macros) applies to n-ary macro definitions.
21397 # See the Autoconf documentation for `clear'.
21398 cat >confdef2sed.sed <<\_ACEOF
21403 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21405 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21408 # If some macros were called several times there might be several times
21409 # the same #defines, which is useless. Nevertheless, we may not want to
21410 # sort them, since we want the *last* AC-DEFINE to be honored.
21411 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21412 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21413 rm -f confdef2sed.sed
21415 # This sed command replaces #undef with comments. This is necessary, for
21416 # example, in the case of _POSIX_SOURCE, which is predefined and required
21417 # on some systems where configure will not decide to define it.
21418 cat >>conftest.undefs <<\_ACEOF
21419 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21422 # Break up conftest.defines because some shells have a limit on the size
21423 # of here documents, and old seds have small limits too (100 cmds).
21424 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21425 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21426 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21427 echo ' :' >>$CONFIG_STATUS
21428 rm -f conftest.tail
21429 while grep . conftest.defines >/dev/null
21431 # Write a limited-size here document to $tmp/defines.sed.
21432 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21433 # Speed up: don't consider the non `#define' lines.
21434 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21435 # Work around the forget-to-reset-the-flag bug.
21436 echo 't clr' >>$CONFIG_STATUS
21437 echo ': clr' >>$CONFIG_STATUS
21438 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21440 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21442 mv $tmp/out $tmp/in
21444 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21445 rm -f conftest.defines
21446 mv conftest.tail conftest.defines
21448 rm -f conftest.defines
21449 echo ' fi # grep' >>$CONFIG_STATUS
21450 echo >>$CONFIG_STATUS
21452 # Break up conftest.undefs because some shells have a limit on the size
21453 # of here documents, and old seds have small limits too (100 cmds).
21454 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21455 rm -f conftest.tail
21456 while grep . conftest.undefs >/dev/null
21458 # Write a limited-size here document to $tmp/undefs.sed.
21459 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21460 # Speed up: don't consider the non `#undef'
21461 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21462 # Work around the forget-to-reset-the-flag bug.
21463 echo 't clr' >>$CONFIG_STATUS
21464 echo ': clr' >>$CONFIG_STATUS
21465 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21467 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21469 mv $tmp/out $tmp/in
21471 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21472 rm -f conftest.undefs
21473 mv conftest.tail conftest.undefs
21475 rm -f conftest.undefs
21477 cat >>$CONFIG_STATUS <<\_ACEOF
21478 # Let's still pretend it is `configure' which instantiates (i.e., don't
21479 # use $as_me), people would be surprised to read:
21480 # /* config.h. Generated by config.status. */
21481 if test x"$ac_file" = x-; then
21482 echo "/* Generated by configure. */" >$tmp/config.h
21484 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21486 cat $tmp/in >>$tmp/config.h
21488 if test x"$ac_file" != x-; then
21489 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21490 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21491 echo "$as_me: $ac_file is unchanged" >&6;}
21493 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21495 X"$ac_file" : 'X\(//\)[^/]' \| \
21496 X"$ac_file" : 'X\(//\)$' \| \
21497 X"$ac_file" : 'X\(/\)' \| \
21498 . : '\(.\)' 2>/dev/null ||
21500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21502 /^X\(\/\/\)$/{ s//\1/; q; }
21503 /^X\(\/\).*/{ s//\1/; q; }
21505 { if $as_mkdir_p; then
21510 while test ! -d "$as_dir"; do
21511 as_dirs="$as_dir $as_dirs"
21512 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21514 X"$as_dir" : 'X\(//\)[^/]' \| \
21515 X"$as_dir" : 'X\(//\)$' \| \
21516 X"$as_dir" : 'X\(/\)' \| \
21517 . : '\(.\)' 2>/dev/null ||
21519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21521 /^X\(\/\/\)$/{ s//\1/; q; }
21522 /^X\(\/\).*/{ s//\1/; q; }
21525 test ! -n "$as_dirs" || mkdir $as_dirs
21526 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21528 { (exit 1); exit 1; }; }; }
21531 mv $tmp/config.h $ac_file
21535 rm -f $tmp/config.h
21537 # Compute $ac_file's index in $config_headers.
21539 for _am_header in $config_headers :; do
21540 case $_am_header in
21541 $ac_file | $ac_file:* )
21544 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21547 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21548 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21549 X$ac_file : 'X\(//\)[^/]' \| \
21550 X$ac_file : 'X\(//\)$' \| \
21551 X$ac_file : 'X\(/\)' \| \
21552 . : '\(.\)' 2>/dev/null ||
21554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21556 /^X\(\/\/\)$/{ s//\1/; q; }
21557 /^X\(\/\).*/{ s//\1/; q; }
21558 s/.*/./; q'`/stamp-h$_am_stamp_count
21561 cat >>$CONFIG_STATUS <<\_ACEOF
21564 # CONFIG_COMMANDS section.
21566 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21567 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21568 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21569 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21570 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21571 X"$ac_dest" : 'X\(//\)[^/]' \| \
21572 X"$ac_dest" : 'X\(//\)$' \| \
21573 X"$ac_dest" : 'X\(/\)' \| \
21574 . : '\(.\)' 2>/dev/null ||
21576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21578 /^X\(\/\/\)$/{ s//\1/; q; }
21579 /^X\(\/\).*/{ s//\1/; q; }
21581 { if $as_mkdir_p; then
21586 while test ! -d "$as_dir"; do
21587 as_dirs="$as_dir $as_dirs"
21588 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21590 X"$as_dir" : 'X\(//\)[^/]' \| \
21591 X"$as_dir" : 'X\(//\)$' \| \
21592 X"$as_dir" : 'X\(/\)' \| \
21593 . : '\(.\)' 2>/dev/null ||
21595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21597 /^X\(\/\/\)$/{ s//\1/; q; }
21598 /^X\(\/\).*/{ s//\1/; q; }
21601 test ! -n "$as_dirs" || mkdir $as_dirs
21602 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21604 { (exit 1); exit 1; }; }; }
21608 if test "$ac_dir" != .; then
21609 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21610 # A "../" for each directory in $ac_dir_suffix.
21611 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21613 ac_dir_suffix= ac_top_builddir=
21617 .) # No --srcdir option. We are building in place.
21619 if test -z "$ac_top_builddir"; then
21622 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21624 [\\/]* | ?:[\\/]* ) # Absolute path.
21625 ac_srcdir=$srcdir$ac_dir_suffix;
21626 ac_top_srcdir=$srcdir ;;
21627 *) # Relative path.
21628 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21629 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21632 # Do not use `cd foo && pwd` to compute absolute paths, because
21633 # the directories may not exist.
21635 .) ac_abs_builddir="$ac_dir";;
21638 .) ac_abs_builddir=`pwd`;;
21639 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21640 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21643 case $ac_abs_builddir in
21644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21646 case ${ac_top_builddir}. in
21647 .) ac_abs_top_builddir=$ac_abs_builddir;;
21648 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21649 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21652 case $ac_abs_builddir in
21653 .) ac_abs_srcdir=$ac_srcdir;;
21656 .) ac_abs_srcdir=$ac_abs_builddir;;
21657 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21658 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21661 case $ac_abs_builddir in
21662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21664 case $ac_top_srcdir in
21665 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21666 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21667 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21672 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21673 echo "$as_me: executing $ac_dest commands" >&6;}
21675 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21676 # Strip MF so we end up with the name of the file.
21677 mf=`echo "$mf" | sed -e 's/:.*$//'`
21678 # Check whether this is an Automake generated Makefile or not.
21679 # We used to match only the files named `Makefile.in', but
21680 # some people rename them; so instead we look at the file content.
21681 # Grep'ing the first line is not enough: some people post-process
21682 # each Makefile.in and add a new line on top of each file to say so.
21683 # So let's grep whole file.
21684 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21685 dirpart=`(dirname "$mf") 2>/dev/null ||
21686 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21687 X"$mf" : 'X\(//\)[^/]' \| \
21688 X"$mf" : 'X\(//\)$' \| \
21689 X"$mf" : 'X\(/\)' \| \
21690 . : '\(.\)' 2>/dev/null ||
21692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21694 /^X\(\/\/\)$/{ s//\1/; q; }
21695 /^X\(\/\).*/{ s//\1/; q; }
21700 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21701 # Extract the definition of DEP_FILES from the Makefile without
21703 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21704 test -z "$DEPDIR" && continue
21705 # When using ansi2knr, U may be empty or an underscore; expand it
21706 U=`sed -n -e '/^U = / s///p' < "$mf"`
21707 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21708 # We invoke sed twice because it is the simplest approach to
21709 # changing $(DEPDIR) to its actual value in the expansion.
21710 for file in `sed -n -e '
21711 /^DEP_FILES = .*\\\\$/ {
21720 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21721 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21722 # Make sure the directory exists.
21723 test -f "$dirpart/$file" && continue
21724 fdir=`(dirname "$file") 2>/dev/null ||
21725 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21726 X"$file" : 'X\(//\)[^/]' \| \
21727 X"$file" : 'X\(//\)$' \| \
21728 X"$file" : 'X\(/\)' \| \
21729 . : '\(.\)' 2>/dev/null ||
21731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21733 /^X\(\/\/\)$/{ s//\1/; q; }
21734 /^X\(\/\).*/{ s//\1/; q; }
21736 { if $as_mkdir_p; then
21737 mkdir -p $dirpart/$fdir
21739 as_dir=$dirpart/$fdir
21741 while test ! -d "$as_dir"; do
21742 as_dirs="$as_dir $as_dirs"
21743 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21745 X"$as_dir" : 'X\(//\)[^/]' \| \
21746 X"$as_dir" : 'X\(//\)$' \| \
21747 X"$as_dir" : 'X\(/\)' \| \
21748 . : '\(.\)' 2>/dev/null ||
21750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21752 /^X\(\/\/\)$/{ s//\1/; q; }
21753 /^X\(\/\).*/{ s//\1/; q; }
21756 test ! -n "$as_dirs" || mkdir $as_dirs
21757 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21758 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21759 { (exit 1); exit 1; }; }; }
21761 # echo "creating $dirpart/$file"
21762 echo '# dummy' > "$dirpart/$file"
21770 cat >>$CONFIG_STATUS <<\_ACEOF
21772 { (exit 0); exit 0; }
21774 chmod +x $CONFIG_STATUS
21775 ac_clean_files=$ac_clean_files_save
21778 # configure is writing to config.log, and then calls config.status.
21779 # config.status does its own redirection, appending to config.log.
21780 # Unfortunately, on DOS this fails, as config.log is still kept open
21781 # by configure, so config.status won't be able to write to it; its
21782 # output is simply discarded. So we exec the FD to /dev/null,
21783 # effectively closing config.log, so it can be properly (re)opened and
21784 # appended to by config.status. When coming back to configure, we
21785 # need to make the FD available again.
21786 if test "$no_create" != yes; then
21788 ac_config_status_args=
21789 test "$silent" = yes &&
21790 ac_config_status_args="$ac_config_status_args --quiet"
21792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21795 # would make configure fail if this is the last instruction.
21796 $ac_cs_success || { (exit 1); exit 1; }