2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ current.
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='current'
273 PACKAGE_STRING='TiMidity++ current'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH 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 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 CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_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_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
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_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures TiMidity++ current to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848 --target=TARGET configure for building compilers for TARGET [HOST]
852 if test -n "$ac_init_help"; then
853 case $ac_init_help in
854 short | recursive ) echo "Configuration of TiMidity++ current:";;
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-debug Build a debugging version.
864 --disable-dependency-tracking Speeds up one-time builds
865 --enable-dependency-tracking Do not reject slow dependency extractors
866 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867 default: Automatically select audio device.
869 sun: SunOS /dev/audio
870 hpux: HPUX /dev/audio
871 irix: IRIX audio library
873 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
875 darwin: Darwin CoreAudio
876 alsa: ALSA pcm device
877 alib: HPUX network audio (Alib)
878 nas: NAS - Network Audio System
880 esd: EsounD - Enlightened Sound Daemon
887 gogo: MP3 GOGO (Only Windows is supported)
888 --disable-alsatest Do not try to compile and run a test Alsa program
889 --disable-artstest Do not try to compile and run a test ARTS program
890 --disable-esdtest Do not try to compile and run a test ESD program
891 --disable-aotest Do not try to compile and run a test ao program
892 --disable-oggtest Do not try to compile and run a test Ogg program
893 --disable-vorbistest Do not try to compile and run a test Vorbis program
894 --disable-libFLACtest Do not try to compile and run a test libFLAC program
895 --disable-libOggFLACtest Do not try to compile and run a test libOggFLAC program
896 --enable-interface=interface_list
897 Comma separated interface list
898 --enable-dynamic Enable dynamic link interface (default is no)
899 --enable-dynamic=dynamic_list
900 Comma separated dynamic interface list
901 --enable-ncurses Enable ncurses interface (default is no)
902 --enable-slang Enable slang interface (default is no)
903 --enable-motif Enable motif interface (default is no)
904 --enable-tcltk Enable tcltk interface (default is no)
905 --enable-emacs Enable emacs interface (default is no)
906 --enable-vt100 Enable VT100 interface (default is no)
907 --enable-xaw Enable athena interface (default is no)
908 --enable-xskin Enable X skin interface (default is no)
909 --enable-gtk Enable GTK+ interface (default is no)
910 --disable-gtktest Do not try to compile and run a test GTK program
911 --enable-server Enable server interface (default is no)
912 --enable-alsaseq Enable ALSA sequencer server interface
914 --enable-winsyn Enable Windows Synthesizer interface
916 --enable-portmidisyn Enable PortMIDI Synthesizer interface
918 --enable-winsyng Enable Windows GUI Synthesizer interface
920 --enable-w32gui Enable Windows GUI interface (default is no)
921 --enable-ump UMP configuration (default is no)
922 --enable-offix Enable offix support (default is no)
923 --enable-network Enable network support (default is no)
924 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
925 --enable-spline=method Specify spline method.
926 one of no,linear,cubic,lagrange,newton,gauss
928 --enable-wrd Enable WRD interface for X (default is no)
931 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
932 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
933 --with-includes=DIR Specify include directories (colon separated)
934 --with-libraries=DIR Specify library directories (colon separated)
935 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
936 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
937 --with-lispdir Override the default lisp directory
938 --with-elf create ELF shared object instead of AOUT
939 --with-x use the X Window System
940 --with-tcl-includes=DIR Tcl include file path
941 --with-tcl-libs=DIR Tcl library file path
942 --with-tk-includes=DIR Tk include file path
943 --with-tk-libs=DIR Tk library file path
944 --with-offix-includes=DIR Offix include file path
945 --with-offix-libs=DIR Offix include file path
946 --with-nas-library=library NAS absolute library path(Don't use -laudio)
947 --with-nas-includes=DIR NAS include files are in dir
948 --with-default-output=<mode> Specify default output mode (optional):
949 (default|alsa|alib|arts|nas|
950 esd|wav|au|aiff|list|vorbis|flac|speex|
951 gogo|portaudio|jack|ao)
952 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
953 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
954 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
955 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
956 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
957 --with-ao=PFX Prefix where libao is installed (optional)
958 --with-ao-libraries=DIR Directory where libao library is installed (optional)
959 --with-ao-includes=DIR Directory where libao header files are installed (optional)
960 --with-ogg=PFX Prefix where libogg is installed (optional)
961 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
962 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
963 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
964 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
965 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
966 --with-libFLAC=PFX Prefix where libFLAC is installed (optional)
967 --with-libFLAC-libraries=DIR Directory where libFLAC library is installed (optional)
968 --with-libFLAC-includes=DIR Directory where libFLAC header files are installed (optional)
969 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional)
970 --with-libOggFLAC-libraries=DIR Directory where libOggFLAC library is installed (optional)
971 --with-libOggFLAC-includes=DIR Directory where libOggFLAC header files are installed (optional)
972 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
973 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
975 Some influential environment variables:
976 CC C compiler command
977 CFLAGS C compiler flags
978 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
979 nonstandard directory <lib dir>
980 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
981 headers in a nonstandard directory <include dir>
984 Use these variables to override the choices made by `configure' or to help
985 it to find libraries and programs with nonstandard names/locations.
987 Report bugs to <root@mput.dip.jp>.
991 if test "$ac_init_help" = "recursive"; then
992 # If there are subdirs, report their specific --help.
994 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
995 test -d $ac_dir || continue
998 if test "$ac_dir" != .; then
999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1000 # A "../" for each directory in $ac_dir_suffix.
1001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1003 ac_dir_suffix= ac_top_builddir=
1007 .) # No --srcdir option. We are building in place.
1009 if test -z "$ac_top_builddir"; then
1012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1014 [\\/]* | ?:[\\/]* ) # Absolute path.
1015 ac_srcdir=$srcdir$ac_dir_suffix;
1016 ac_top_srcdir=$srcdir ;;
1018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1019 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1022 # Do not use `cd foo && pwd` to compute absolute paths, because
1023 # the directories may not exist.
1025 .) ac_abs_builddir="$ac_dir";;
1028 .) ac_abs_builddir=`pwd`;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1030 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1036 case ${ac_top_builddir}. in
1037 .) ac_abs_top_builddir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1042 case $ac_abs_builddir in
1043 .) ac_abs_srcdir=$ac_srcdir;;
1046 .) ac_abs_srcdir=$ac_abs_builddir;;
1047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1051 case $ac_abs_builddir in
1052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1054 case $ac_top_srcdir in
1055 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1062 # Check for guested configure; otherwise get Cygnus style configure.
1063 if test -f $ac_srcdir/configure.gnu; then
1065 $SHELL $ac_srcdir/configure.gnu --help=recursive
1066 elif test -f $ac_srcdir/configure; then
1068 $SHELL $ac_srcdir/configure --help=recursive
1069 elif test -f $ac_srcdir/configure.ac ||
1070 test -f $ac_srcdir/configure.in; then
1072 $ac_configure --help
1074 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1080 test -n "$ac_init_help" && exit 0
1081 if $ac_init_version; then
1083 TiMidity++ configure current
1084 generated by GNU Autoconf 2.59
1086 Copyright (C) 2003 Free Software Foundation, Inc.
1087 This configure script is free software; the Free Software Foundation
1088 gives unlimited permission to copy, distribute and modify it.
1094 This file contains any messages produced by compilers while
1095 running configure, to aid debugging if configure makes a mistake.
1097 It was created by TiMidity++ $as_me current, which was
1098 generated by GNU Autoconf 2.59. Invocation command line was
1109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1121 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1132 test -z "$as_dir" && as_dir=.
1133 echo "PATH: $as_dir"
1148 # Keep a trace of the command line.
1149 # Strip out --no-create and --no-recursion so they do not pile up.
1150 # Strip out --silent because we don't want to record it for future runs.
1151 # Also quote any args containing shell meta-characters.
1152 # Make two passes to allow for proper duplicate-argument suppression.
1157 ac_must_keep_next=false
1163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1167 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1168 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1171 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1173 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1174 if test $ac_must_keep_next = true; then
1175 ac_must_keep_next=false # Got value, back to normal.
1178 *=* | --config-cache | -C | -disable-* | --disable-* \
1179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1181 | -with-* | --with-* | -without-* | --without-* | --x)
1182 case "$ac_configure_args0 " in
1183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1186 -* ) ac_must_keep_next=true ;;
1189 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1190 # Get rid of the leading space.
1196 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1197 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1199 # When interrupted or exit'd, cleanup temporary files, and complete
1200 # config.log. We remove comments because anyway the quotes in there
1201 # would cause problems or look ugly.
1202 # WARNING: Be sure not to use single quotes in there, as some shells,
1203 # such as our DU 5.0 friend, will then `close' the trap.
1204 trap 'exit_status=$?
1205 # Save into config.log some information that might help in debugging.
1210 ## ---------------- ##
1211 ## Cache variables. ##
1212 ## ---------------- ##
1215 # The following way of writing the cache mishandles newlines in values,
1218 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1221 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1226 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1233 ## ----------------- ##
1234 ## Output variables. ##
1235 ## ----------------- ##
1238 for ac_var in $ac_subst_vars
1240 eval ac_val=$`echo $ac_var`
1241 echo "$ac_var='"'"'$ac_val'"'"'"
1245 if test -n "$ac_subst_files"; then
1252 for ac_var in $ac_subst_files
1254 eval ac_val=$`echo $ac_var`
1255 echo "$ac_var='"'"'$ac_val'"'"'"
1260 if test -s confdefs.h; then
1267 sed "/^$/d" confdefs.h | sort
1270 test "$ac_signal" != 0 &&
1271 echo "$as_me: caught signal $ac_signal"
1272 echo "$as_me: exit $exit_status"
1274 rm -f core *.core &&
1275 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1278 for ac_signal in 1 2 13 15; do
1279 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1284 rm -rf conftest* confdefs.h
1285 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1288 # Predefined preprocessor variables.
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_NAME "$PACKAGE_NAME"
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_STRING "$PACKAGE_STRING"
1310 cat >>confdefs.h <<_ACEOF
1311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1315 # Let the site file select an alternate cache file if it wants to.
1316 # Prefer explicitly selected file to automatically selected ones.
1317 if test -z "$CONFIG_SITE"; then
1318 if test "x$prefix" != xNONE; then
1319 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1321 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1324 for ac_site_file in $CONFIG_SITE; do
1325 if test -r "$ac_site_file"; then
1326 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1327 echo "$as_me: loading site script $ac_site_file" >&6;}
1328 sed 's/^/| /' "$ac_site_file" >&5
1333 if test -r "$cache_file"; then
1334 # Some versions of bash will fail to source /dev/null (special
1335 # files actually), so we avoid doing that.
1336 if test -f "$cache_file"; then
1337 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1338 echo "$as_me: loading cache $cache_file" >&6;}
1340 [\\/]* | ?:[\\/]* ) . $cache_file;;
1341 *) . ./$cache_file;;
1345 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1346 echo "$as_me: creating cache $cache_file" >&6;}
1350 # Check that the precious variables saved in the cache have kept the same
1352 ac_cache_corrupted=false
1353 for ac_var in `(set) 2>&1 |
1354 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1355 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1356 eval ac_new_set=\$ac_env_${ac_var}_set
1357 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1358 eval ac_new_val="\$ac_env_${ac_var}_value"
1359 case $ac_old_set,$ac_new_set in
1361 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1365 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1366 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1367 ac_cache_corrupted=: ;;
1370 if test "x$ac_old_val" != "x$ac_new_val"; then
1371 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1372 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1373 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1374 echo "$as_me: former value: $ac_old_val" >&2;}
1375 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1376 echo "$as_me: current value: $ac_new_val" >&2;}
1377 ac_cache_corrupted=:
1380 # Pass precious variables to config.status.
1381 if test "$ac_new_set" = set; then
1383 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1384 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1385 *) ac_arg=$ac_var=$ac_new_val ;;
1387 case " $ac_configure_args " in
1388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1389 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1393 if $ac_cache_corrupted; then
1394 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1395 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1396 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1397 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1398 { (exit 1); exit 1; }; }
1402 ac_cpp='$CPP $CPPFLAGS'
1403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 for ac_dir in autoconf $srcdir/autoconf; do
1435 if test -f $ac_dir/install-sh; then
1437 ac_install_sh="$ac_aux_dir/install-sh -c"
1439 elif test -f $ac_dir/install.sh; then
1441 ac_install_sh="$ac_aux_dir/install.sh -c"
1443 elif test -f $ac_dir/shtool; then
1445 ac_install_sh="$ac_aux_dir/shtool install -c"
1449 if test -z "$ac_aux_dir"; then
1450 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1451 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1452 { (exit 1); exit 1; }; }
1454 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1455 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1456 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1458 # Make sure we can run config.sub.
1459 $ac_config_sub sun4 >/dev/null 2>&1 ||
1460 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1461 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1462 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: checking build system type" >&5
1465 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1466 if test "${ac_cv_build+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_build_alias=$build_alias
1470 test -z "$ac_cv_build_alias" &&
1471 ac_cv_build_alias=`$ac_config_guess`
1472 test -z "$ac_cv_build_alias" &&
1473 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1474 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1475 { (exit 1); exit 1; }; }
1476 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1477 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1479 { (exit 1); exit 1; }; }
1482 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1483 echo "${ECHO_T}$ac_cv_build" >&6
1485 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 echo "$as_me:$LINENO: checking host system type" >&5
1491 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1492 if test "${ac_cv_host+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 ac_cv_host_alias=$host_alias
1496 test -z "$ac_cv_host_alias" &&
1497 ac_cv_host_alias=$ac_cv_build_alias
1498 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1501 { (exit 1); exit 1; }; }
1504 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1505 echo "${ECHO_T}$ac_cv_host" >&6
1507 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512 echo "$as_me:$LINENO: checking target system type" >&5
1513 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1514 if test "${ac_cv_target+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 ac_cv_target_alias=$target_alias
1518 test "x$ac_cv_target_alias" = "x" &&
1519 ac_cv_target_alias=$ac_cv_host_alias
1520 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1523 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1527 echo "${ECHO_T}$ac_cv_target" >&6
1528 target=$ac_cv_target
1529 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534 # The aliases save the names the user supplied, while $host etc.
1535 # will get canonicalized.
1536 test -n "$target_alias" &&
1537 test "$program_prefix$program_suffix$program_transform_name" = \
1539 program_prefix=${target_alias}-
1540 am__api_version="1.7"
1541 # Find a good install program. We prefer a C program (faster),
1542 # so one script is as good as another. But avoid the broken or
1543 # incompatible versions:
1544 # SysV /etc/install, /usr/sbin/install
1545 # SunOS /usr/etc/install
1546 # IRIX /sbin/install
1548 # AmigaOS /C/install, which installs bootblocks on floppy discs
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # OS/2's system install, which has a completely different semantic
1553 # ./install, which can be erroneously created by make from ./install.sh.
1554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1556 if test -z "$INSTALL"; then
1557 if test "${ac_cv_path_install+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 # Account for people who put trailing slashes in PATH elements.
1567 ./ | .// | /cC/* | \
1568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1572 # OSF1 and SCO ODT 3.0 have their own names for install.
1573 # Don't use installbsd from OSF since it installs stuff as root
1575 for ac_prog in ginstall scoinst install; do
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1578 if test $ac_prog = install &&
1579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1580 # AIX install. It has an incompatible calling convention.
1582 elif test $ac_prog = install &&
1583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584 # program-specific install script used by HP pwplus--don't use.
1587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1599 if test "${ac_cv_path_install+set}" = set; then
1600 INSTALL=$ac_cv_path_install
1602 # As a last resort, use the slow shell script. We don't cache a
1603 # path for INSTALL within a source directory, because that will
1604 # break other packages using the cache if that directory is
1605 # removed, or if the path is relative.
1606 INSTALL=$ac_install_sh
1609 echo "$as_me:$LINENO: result: $INSTALL" >&5
1610 echo "${ECHO_T}$INSTALL" >&6
1612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1613 # It thinks the first close brace ends the variable substitution.
1614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1624 echo timestamp > conftest.file
1625 # Do `set' in a subshell so we don't clobber the current shell's
1626 # arguments. Must try -L first in case configure is actually a
1627 # symlink; some systems play weird games with the mod time of symlinks
1628 # (eg FreeBSD returns the mod time of the symlink's containing
1631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1632 if test "$*" = "X"; then
1634 set X `ls -t $srcdir/configure conftest.file`
1637 if test "$*" != "X $srcdir/configure conftest.file" \
1638 && test "$*" != "X conftest.file $srcdir/configure"; then
1640 # If neither matched, then we have a broken ls. This can happen
1641 # if, for instance, CONFIG_SHELL is bash and it inherits a
1642 # broken ls alias from the environment. This has actually
1643 # happened. Such a system could not be considered "sane".
1644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1645 alias in your environment" >&5
1646 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1647 alias in your environment" >&2;}
1648 { (exit 1); exit 1; }; }
1651 test "$2" = conftest.file
1657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1658 Check your system clock" >&5
1659 echo "$as_me: error: newly created file is older than distributed files!
1660 Check your system clock" >&2;}
1661 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: yes" >&5
1664 echo "${ECHO_T}yes" >&6
1665 test "$program_prefix" != NONE &&
1666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1667 # Use a double $ so make ignores it.
1668 test "$program_suffix" != NONE &&
1669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1670 # Double any \ or $. echo might interpret backslashes.
1671 # By default was `s,x,x', remove it if useless.
1672 cat <<\_ACEOF >conftest.sed
1673 s/[\\$]/&&/g;s/;s,x,x,$//
1675 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679 # expand $ac_aux_dir to an absolute path
1680 am_aux_dir=`cd $ac_aux_dir && pwd`
1682 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683 # Use eval to expand $SHELL
1684 if eval "$MISSING --run true"; then
1685 am_missing_run="$MISSING --run "
1688 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692 for ac_prog in gawk mawk nawk awk
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_AWK+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$AWK"; then
1702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_AWK="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 if test -n "$AWK"; then
1722 echo "$as_me:$LINENO: result: $AWK" >&5
1723 echo "${ECHO_T}$AWK" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$AWK" && break
1732 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1733 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1734 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1735 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 cat >conftest.make <<\_ACEOF
1740 @echo 'ac_maketemp="$(MAKE)"'
1742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1743 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1744 if test -n "$ac_maketemp"; then
1745 eval ac_cv_prog_make_${ac_make}_set=yes
1747 eval ac_cv_prog_make_${ac_make}_set=no
1751 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1752 echo "$as_me:$LINENO: result: yes" >&5
1753 echo "${ECHO_T}yes" >&6
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 SET_MAKE="MAKE=${MAKE-make}"
1761 rm -rf .tst 2>/dev/null
1762 mkdir .tst 2>/dev/null
1763 if test -d .tst; then
1768 rmdir .tst 2>/dev/null
1770 # test to see if srcdir already configured
1771 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1772 test -f $srcdir/config.status; then
1773 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1774 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1775 { (exit 1); exit 1; }; }
1778 # test whether we have cygpath
1779 if test -z "$CYGPATH_W"; then
1780 if (cygpath --version) >/dev/null 2>/dev/null; then
1781 CYGPATH_W='cygpath -w'
1788 # Define the identity of the package.
1789 PACKAGE='TiMidity++'
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE "$PACKAGE"
1798 cat >>confdefs.h <<_ACEOF
1799 #define VERSION "$VERSION"
1802 # Some tools Automake needs.
1804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1819 AMTAR=${AMTAR-"${am_missing_run}tar"}
1821 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1823 # Installed binaries are usually stripped using `strip' when the user
1824 # run `make install-strip'. However `strip' might not be the right
1825 # tool to use in cross-compilation environments, therefore Automake
1826 # will honor the `STRIP' environment variable to overrule this program.
1827 if test "$cross_compiling" != no; then
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}strip; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_STRIP+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$STRIP"; then
1837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 STRIP=$ac_cv_prog_STRIP
1856 if test -n "$STRIP"; then
1857 echo "$as_me:$LINENO: result: $STRIP" >&5
1858 echo "${ECHO_T}$STRIP" >&6
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_STRIP"; then
1867 # Extract the first word of "strip", so it can be a program name with args.
1868 set dummy strip; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$ac_ct_STRIP"; then
1875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_STRIP="strip"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1895 if test -n "$ac_ct_STRIP"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1897 echo "${ECHO_T}$ac_ct_STRIP" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1905 STRIP="$ac_cv_prog_STRIP"
1909 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1911 # We need awk for the "check" target. The system "awk" is bad on
1917 ac_config_headers="$ac_config_headers config.h interface.h"
1919 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1920 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1921 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1922 if test "${enable_maintainer_mode+set}" = set; then
1923 enableval="$enable_maintainer_mode"
1924 USE_MAINTAINER_MODE=$enableval
1926 USE_MAINTAINER_MODE=no
1928 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1929 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1932 if test $USE_MAINTAINER_MODE = yes; then
1933 MAINTAINER_MODE_TRUE=
1934 MAINTAINER_MODE_FALSE='#'
1936 MAINTAINER_MODE_TRUE='#'
1937 MAINTAINER_MODE_FALSE=
1940 MAINT=$MAINTAINER_MODE_TRUE
1944 SHELL=${CONFIG_SHELL-"/bin/sh"}
1947 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1948 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1949 echo "grimblepritz" >grimble
1950 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1951 contains="./contains"
1952 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1955 contains="./contains"
1959 grep) echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1963 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1964 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1965 cat >./contains <<'EOSS'
1966 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1968 chmod +x "./contains"
1973 # Check for compiler options -- such as debug flags.
1975 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1976 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1977 # Check whether --enable-debug or --disable-debug was given.
1978 if test "${enable_debug+set}" = set; then
1979 enableval="$enable_debug"
1980 timidity_cv_debug="yes"
1982 timidity_cv_debug="no"
1984 if test "x$timidity_cv_debug" = "xyes"; then
1986 cat >>confdefs.h <<\_ACEOF
1990 CFLAGS=${CFLAGS-"-g"}
1992 if test "x$timidity_cv_debug" = "xno"; then
1994 cat >>confdefs.h <<\_ACEOF
1999 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2000 echo "${ECHO_T}$timidity_cv_debug" >&6
2002 CFLAGS=${CFLAGS-"-O2"}
2004 if test "x$with_x" = x; then
2010 # Checking gcc environment
2011 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2012 LDFLAGS="$LDFLAGS -L${i}"
2014 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2015 CPPFLAGS="$CPPFLAGS -I${i}"
2018 # add $prefix if specified.
2019 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2020 LDFLAGS="-L$prefix/lib $LDFLAGS"
2021 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2022 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2026 # Check whether --with-includes or --without-includes was given.
2027 if test "${with_includes+set}" = set; then
2028 withval="$with_includes"
2030 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2033 CPPFLAGS="$j$CPPFLAGS"
2038 # Check whether --with-libraries or --without-libraries was given.
2039 if test "${with_libraries+set}" = set; then
2040 withval="$with_libraries"
2042 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2045 LDFLAGS="$j$LDFLAGS"
2051 # Check whether --with-default-path or --without-default-path was given.
2052 if test "${with_default_path+set}" = set; then
2053 withval="$with_default_path"
2057 if test "x$prefix" != "xNONE"; then
2058 pkgdatadir='${prefix}/share/timidity'
2060 pkgdatadir='/usr/local/share/timidity'
2064 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2066 cat >>confdefs.h <<_ACEOF
2067 #define DEFAULT_PATH "$tmpdefpath"
2071 cat >>confdefs.h <<\_ACEOF
2072 #define PKGDATADIR DEFAULT_PATH
2077 # Check whether --with-module-dir or --without-module-dir was given.
2078 if test "${with_module_dir+set}" = set; then
2079 withval="$with_module_dir"
2083 if test "x$prefix" != "xNONE"; then
2084 pkglibdir='${prefix}/lib/timidity'
2086 pkglibdir='/usr/local/lib/timidity'
2090 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PKGLIBDIR "$tmplibdir"
2098 # Checks for programs.
2100 # Check whether --with-lispdir or --without-lispdir was given.
2101 if test "${with_lispdir+set}" = set; then
2102 withval="$with_lispdir"
2104 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2105 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2106 echo "$as_me:$LINENO: result: $lispdir" >&5
2107 echo "${ECHO_T}$lispdir" >&6
2110 # If set to t, that means we are running in a shell under Emacs.
2111 # If you have an Emacs named "t", then use the full path.
2112 test x"$EMACS" = xt && EMACS=
2113 for ac_prog in emacs xemacs
2115 # Extract the first word of "$ac_prog", so it can be a program name with args.
2116 set dummy $ac_prog; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_EMACS+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$EMACS"; then
2123 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_EMACS="$ac_prog"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 EMACS=$ac_cv_prog_EMACS
2142 if test -n "$EMACS"; then
2143 echo "$as_me:$LINENO: result: $EMACS" >&5
2144 echo "${ECHO_T}$EMACS" >&6
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2150 test -n "$EMACS" && break
2152 test -n "$EMACS" || EMACS="no"
2154 if test $EMACS != "no"; then
2155 if test x${lispdir+set} != xset; then
2156 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2157 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2158 if test "${am_cv_lispdir+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2162 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2163 # which is non-obvious for non-emacs users.
2164 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2165 # emacsen earlier and avoid running this altogether.
2166 { (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
2167 ($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
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }
2171 am_cv_lispdir=`sed -n \
2173 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2174 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2177 if test -z "$am_cv_lispdir"; then
2178 am_cv_lispdir='${datadir}/emacs/site-lisp'
2182 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2183 echo "${ECHO_T}$am_cv_lispdir" >&6
2184 lispdir="$am_cv_lispdir"
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 if test -n "$ac_tool_prefix"; then
2197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test -n "$CC"; then
2205 ac_cv_prog_CC="$CC" # Let the user override the test.
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 if test -n "$CC"; then
2225 echo "$as_me:$LINENO: result: $CC" >&5
2226 echo "${ECHO_T}$CC" >&6
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2233 if test -z "$ac_cv_prog_CC"; then
2235 # Extract the first word of "gcc", so it can be a program name with args.
2236 set dummy gcc; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$ac_ct_CC"; then
2243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_ac_ct_CC="gcc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6
2266 echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2275 if test -z "$CC"; then
2276 if test -n "$ac_tool_prefix"; then
2277 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}cc; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_CC="${ac_tool_prefix}cc"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 if test -n "$CC"; then
2305 echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6
2308 echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2313 if test -z "$ac_cv_prog_CC"; then
2315 # Extract the first word of "cc", so it can be a program name with args.
2316 set dummy cc; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_ac_ct_CC="cc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2356 if test -z "$CC"; then
2357 # Extract the first word of "cc", so it can be a program name with args.
2358 set dummy cc; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2376 ac_prog_rejected=yes
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 if test $ac_prog_rejected = yes; then
2387 # We found a bogon in the path, so make sure we never use it.
2388 set dummy $ac_cv_prog_CC
2390 if test $# != 0; then
2391 # We chose a different compiler from the bogus one.
2392 # However, it has the same basename, so the bogon will be chosen
2393 # first if we set CC to just the basename; use the full file name.
2395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2401 if test -n "$CC"; then
2402 echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 if test -n "$CC"; then
2442 echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6
2445 echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6
2449 test -n "$CC" && break
2452 if test -z "$CC"; then
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_ac_ct_CC="$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2491 test -n "$ac_ct_CC" && break
2500 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: no acceptable C compiler found in \$PATH
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2506 # Provide some information about the compiler.
2507 echo "$as_me:$LINENO:" \
2508 "checking for C compiler version" >&5
2509 ac_compiler=`set X $ac_compile; echo $2`
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2511 (eval $ac_compiler --version </dev/null >&5) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2516 (eval $ac_compiler -v </dev/null >&5) 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2521 (eval $ac_compiler -V </dev/null >&5) 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2526 cat >conftest.$ac_ext <<_ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2541 ac_clean_files_save=$ac_clean_files
2542 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2543 # Try to create an executable without -o first, disregard a.out.
2544 # It will help us diagnose broken compilers, and finding out an intuition
2546 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2547 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2548 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2549 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2550 (eval $ac_link_default) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 # Find the output, starting from the most likely. This scheme is
2555 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2558 # Be careful to initialize this variable, since it used to be cached.
2559 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2561 # b.out is created by i960 compilers.
2562 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2564 test -f "$ac_file" || continue
2566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2569 # This is the source file.
2572 # We found the default executable, but exeext='' is most
2576 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2577 # FIXME: I believe we export ac_cv_exeext for Libtool,
2578 # but it would be cool to find out if it's true. Does anybody
2579 # maintain Libtool? --akim.
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2590 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: C compiler cannot create executables
2593 See \`config.log' for more details." >&2;}
2594 { (exit 77); exit 77; }; }
2597 ac_exeext=$ac_cv_exeext
2598 echo "$as_me:$LINENO: result: $ac_file" >&5
2599 echo "${ECHO_T}$ac_file" >&6
2601 # Check the compiler produces executables we can run. If not, either
2602 # the compiler is broken, or we cross compile.
2603 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2604 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2605 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2606 # If not cross compiling, check that we can run a simple program.
2607 if test "$cross_compiling" != yes; then
2608 if { ac_try='./$ac_file'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2616 if test "$cross_compiling" = maybe; then
2619 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2620 If you meant to cross compile, use \`--host'.
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot run C compiled programs.
2623 If you meant to cross compile, use \`--host'.
2624 See \`config.log' for more details." >&2;}
2625 { (exit 1); exit 1; }; }
2629 echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6
2632 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2633 ac_clean_files=$ac_clean_files_save
2634 # Check the compiler produces executables we can run. If not, either
2635 # the compiler is broken, or we cross compile.
2636 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2637 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2638 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2639 echo "${ECHO_T}$cross_compiling" >&6
2641 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2642 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644 (eval $ac_link) 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; then
2648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2650 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 for ac_file in conftest.exe conftest conftest.*; do
2653 test -f "$ac_file" || continue
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2670 rm -f conftest$ac_cv_exeext
2671 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2672 echo "${ECHO_T}$ac_cv_exeext" >&6
2674 rm -f conftest.$ac_ext
2675 EXEEXT=$ac_cv_exeext
2677 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2678 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2679 if test "${ac_cv_objext+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.o conftest.obj
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; then
2703 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2706 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2723 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2724 echo "${ECHO_T}$ac_cv_objext" >&6
2725 OBJEXT=$ac_cv_objext
2727 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>conftest.er1
2754 grep -v '^ *+' conftest.er1 >conftest.err
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -z "$ac_c_werror_flag"
2760 || test ! -s conftest.err'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2783 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2785 GCC=`test $ac_compiler_gnu = yes && echo yes`
2786 ac_test_CFLAGS=${CFLAGS+set}
2787 ac_save_CFLAGS=$CFLAGS
2789 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2790 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2791 if test "${ac_cv_prog_cc_g+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 cat >conftest.$ac_ext <<_ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2841 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2842 if test "$ac_test_CFLAGS" = set; then
2843 CFLAGS=$ac_save_CFLAGS
2844 elif test $ac_cv_prog_cc_g = yes; then
2845 if test "$GCC" = yes; then
2851 if test "$GCC" = yes; then
2857 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2858 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 ac_cv_prog_cc_stdc=no
2864 cat >conftest.$ac_ext <<_ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2872 #include <sys/types.h>
2873 #include <sys/stat.h>
2874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2875 struct buf { int x; };
2876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2877 static char *e (p, i)
2883 static char *f (char * (*g) (char **, int), char **p, ...)
2888 s = g (p, va_arg (v,int));
2893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2894 function prototypes and stuff, but not '\xHH' hex character constants.
2895 These don't provoke an error unfortunately, instead are silently treated
2896 as 'x'. The following induces an error, until -std1 is added to get
2897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2898 array size at least. It's necessary to write '\x00'==0 to get something
2899 that's true only with -std1. */
2900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902 int test (int i, double x);
2903 struct s1 {int (*f) (int a);};
2904 struct s2 {int (*f) (double a);};
2905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2916 # Don't try gcc -ansi; that turns off useful extensions and
2917 # breaks some systems' header files.
2918 # AIX -qlanglvl=ansi
2919 # Ultrix and OSF/1 -std1
2920 # HP-UX 10.20 and later -Ae
2921 # HP-UX older versions -Aa -D_HPUX_SOURCE
2922 # SVR4 -Xc -D__EXTENSIONS__
2923 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2925 CC="$ac_save_CC $ac_arg"
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_prog_cc_stdc=$ac_arg
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2955 rm -f conftest.err conftest.$ac_objext
2957 rm -f conftest.$ac_ext conftest.$ac_objext
2962 case "x$ac_cv_prog_cc_stdc" in
2964 echo "$as_me:$LINENO: result: none needed" >&5
2965 echo "${ECHO_T}none needed" >&6 ;;
2967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2968 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2969 CC="$CC $ac_cv_prog_cc_stdc" ;;
2972 # Some people use a C++ compiler to compile C. Since we use `exit',
2973 # in C++ we need to declare it. In case someone uses the same compiler
2974 # for both compiling C and C++ we need to have the C++ compiler decide
2975 # the declaration of exit, since it's the most demanding environment.
2976 cat >conftest.$ac_ext <<_ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -z "$ac_c_werror_flag"
2991 || test ! -s conftest.err'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 for ac_declaration in \
3005 'extern "C" void std::exit (int) throw (); using std::exit;' \
3006 'extern "C" void std::exit (int); using std::exit;' \
3007 'extern "C" void exit (int) throw ();' \
3008 'extern "C" void exit (int);' \
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_c_werror_flag"
3037 || test ! -s conftest.err'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.$ac_objext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074 (eval $ac_compile) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1 >conftest.err
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_c_werror_flag"
3082 || test ! -s conftest.err'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103 if test -n "$ac_declaration"; then
3104 echo '#ifdef __cplusplus' >>confdefs.h
3105 echo $ac_declaration >>confdefs.h
3106 echo '#endif' >>confdefs.h
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 DEPDIR="${am__leading_dot}deps"
3122 ac_config_commands="$ac_config_commands depfiles"
3125 am_make=${MAKE-make}
3126 cat > confinc << 'END'
3131 # If we don't find an include directive, just comment out the code.
3132 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3133 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3137 # First try GNU make style include.
3138 echo "include confinc" > confmf
3139 # We grep out `Entering directory' and `Leaving directory'
3140 # messages which can occur if `w' ends up in MAKEFLAGS.
3141 # In particular we don't look at `^make:' because GNU make might
3142 # be invoked under some other name (usually "gmake"), in which
3143 # case it prints its new name instead of `make'.
3144 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3149 # Now try BSD make style include.
3150 if test "$am__include" = "#"; then
3151 echo '.include "confinc"' > confmf
3152 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3153 am__include=.include
3160 echo "$as_me:$LINENO: result: $_am_result" >&5
3161 echo "${ECHO_T}$_am_result" >&6
3162 rm -f confinc confmf
3164 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3165 if test "${enable_dependency_tracking+set}" = set; then
3166 enableval="$enable_dependency_tracking"
3169 if test "x$enable_dependency_tracking" != xno; then
3170 am_depcomp="$ac_aux_dir/depcomp"
3175 if test "x$enable_dependency_tracking" != xno; then
3186 depcc="$CC" am_compiler_list=
3188 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3189 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3190 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3194 # We make a subdir and do the tests there. Otherwise we can end up
3195 # making bogus files that we don't know about and never remove. For
3196 # instance it was reported that on HP-UX the gcc test will end up
3197 # making a dummy file named `D' -- because `-MD' means `put the output
3200 # Copy depcomp to subdir because otherwise we won't find it if we're
3201 # using a relative directory.
3202 cp "$am_depcomp" conftest.dir
3204 # We will build objects and dependencies in a subdirectory because
3205 # it helps to detect inapplicable dependency modes. For instance
3206 # both Tru64's cc and ICC support -MD to output dependencies as a
3207 # side effect of compilation, but ICC will put the dependencies in
3208 # the current directory while Tru64 will put them in the object
3212 am_cv_CC_dependencies_compiler_type=none
3213 if test "$am_compiler_list" = ""; then
3214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3216 for depmode in $am_compiler_list; do
3217 # Setup a source with many dependencies, because some compilers
3218 # like to wrap large dependency lists on column 80 (with \), and
3219 # we should not choose a depcomp mode which is confused by this.
3221 # We need to recreate these files for each test, as the compiler may
3222 # overwrite some of them when testing with obscure command lines.
3223 # This happens at least with the AIX C compiler.
3225 for i in 1 2 3 4 5 6; do
3226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3233 # after this tag, mechanisms are not by side-effect, so they'll
3234 # only be used when explicitly requested
3235 if test "x$enable_dependency_tracking" = xyes; then
3243 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3244 # mode. It turns out that the SunPro C++ compiler does not properly
3245 # handle `-M -o', and we need to detect this.
3246 if depmode=$depmode \
3247 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3248 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3249 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3250 >/dev/null 2>conftest.err &&
3251 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3252 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3253 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3254 # icc doesn't choke on unknown options, it will just issue warnings
3255 # (even with -Werror). So we grep stderr for any message
3256 # that says an option was ignored.
3257 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3258 am_cv_CC_dependencies_compiler_type=$depmode
3267 am_cv_CC_dependencies_compiler_type=none
3271 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3272 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3273 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3278 test "x$enable_dependency_tracking" != xno \
3279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3281 am__fastdepCC_FALSE='#'
3283 am__fastdepCC_TRUE='#'
3284 am__fastdepCC_FALSE=
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3295 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3296 # On Suns, sometimes $CPP names a directory.
3297 if test -n "$CPP" && test -d "$CPP"; then
3300 if test -z "$CPP"; then
3301 if test "${ac_cv_prog_CPP+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 # Double quotes because CPP needs to be expanded
3305 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3308 for ac_c_preproc_warn_flag in '' yes
3310 # Use a header file that comes with gcc, so configuring glibc
3311 # with a fresh cross-compiler works.
3312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313 # <limits.h> exists even on freestanding compilers.
3314 # On the NeXT, cc -E runs the code through the compiler's parser,
3315 # not just through cpp. "Syntax error" is here to catch this case.
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3323 # include <limits.h>
3325 # include <assert.h>
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null; then
3337 if test -s conftest.err; then
3338 ac_cpp_err=$ac_c_preproc_warn_flag
3339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3346 if test -z "$ac_cpp_err"; then
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Broken: fails on valid input.
3355 rm -f conftest.err conftest.$ac_ext
3357 # OK, works on sane cases. Now check whether non-existent headers
3358 # can be detected and how.
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 #include <ac_nonexistent.h>
3367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_c_preproc_warn_flag
3377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384 if test -z "$ac_cpp_err"; then
3385 # Broken: success on invalid input.
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 # Passes both tests.
3395 rm -f conftest.err conftest.$ac_ext
3398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399 rm -f conftest.err conftest.$ac_ext
3400 if $ac_preproc_ok; then
3412 echo "$as_me:$LINENO: result: $CPP" >&5
3413 echo "${ECHO_T}$CPP" >&6
3415 for ac_c_preproc_warn_flag in '' yes
3417 # Use a header file that comes with gcc, so configuring glibc
3418 # with a fresh cross-compiler works.
3419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420 # <limits.h> exists even on freestanding compilers.
3421 # On the NeXT, cc -E runs the code through the compiler's parser,
3422 # not just through cpp. "Syntax error" is here to catch this case.
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3430 # include <limits.h>
3432 # include <assert.h>
3436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null; then
3444 if test -s conftest.err; then
3445 ac_cpp_err=$ac_c_preproc_warn_flag
3446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453 if test -z "$ac_cpp_err"; then
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Broken: fails on valid input.
3462 rm -f conftest.err conftest.$ac_ext
3464 # OK, works on sane cases. Now check whether non-existent headers
3465 # can be detected and how.
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #include <ac_nonexistent.h>
3474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 grep -v '^ *+' conftest.er1 >conftest.err
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } >/dev/null; then
3482 if test -s conftest.err; then
3483 ac_cpp_err=$ac_c_preproc_warn_flag
3484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491 if test -z "$ac_cpp_err"; then
3492 # Broken: success on invalid input.
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 # Passes both tests.
3502 rm -f conftest.err conftest.$ac_ext
3505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506 rm -f conftest.err conftest.$ac_ext
3507 if $ac_preproc_ok; then
3510 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3513 See \`config.log' for more details." >&2;}
3514 { (exit 1); exit 1; }; }
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524 echo "$as_me:$LINENO: checking for egrep" >&5
3525 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3526 if test "${ac_cv_prog_egrep+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3530 then ac_cv_prog_egrep='grep -E'
3531 else ac_cv_prog_egrep='egrep'
3534 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3535 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3536 EGREP=$ac_cv_prog_egrep
3539 if test $ac_cv_c_compiler_gnu = yes; then
3540 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3541 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3542 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_pattern="Autoconf.*'x'"
3546 cat >conftest.$ac_ext <<_ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3557 ac_cv_prog_gcc_traditional=yes
3559 ac_cv_prog_gcc_traditional=no
3564 if test $ac_cv_prog_gcc_traditional = no; then
3565 cat >conftest.$ac_ext <<_ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3576 ac_cv_prog_gcc_traditional=yes
3582 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3583 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3584 if test $ac_cv_prog_gcc_traditional = yes; then
3585 CC="$CC -traditional"
3589 # Find a good install program. We prefer a C program (faster),
3590 # so one script is as good as another. But avoid the broken or
3591 # incompatible versions:
3592 # SysV /etc/install, /usr/sbin/install
3593 # SunOS /usr/etc/install
3594 # IRIX /sbin/install
3596 # AmigaOS /C/install, which installs bootblocks on floppy discs
3597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3600 # OS/2's system install, which has a completely different semantic
3601 # ./install, which can be erroneously created by make from ./install.sh.
3602 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3603 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3604 if test -z "$INSTALL"; then
3605 if test "${ac_cv_path_install+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 test -z "$as_dir" && as_dir=.
3613 # Account for people who put trailing slashes in PATH elements.
3615 ./ | .// | /cC/* | \
3616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3617 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3620 # OSF1 and SCO ODT 3.0 have their own names for install.
3621 # Don't use installbsd from OSF since it installs stuff as root
3623 for ac_prog in ginstall scoinst install; do
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3626 if test $ac_prog = install &&
3627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3628 # AIX install. It has an incompatible calling convention.
3630 elif test $ac_prog = install &&
3631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3632 # program-specific install script used by HP pwplus--don't use.
3635 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3647 if test "${ac_cv_path_install+set}" = set; then
3648 INSTALL=$ac_cv_path_install
3650 # As a last resort, use the slow shell script. We don't cache a
3651 # path for INSTALL within a source directory, because that will
3652 # break other packages using the cache if that directory is
3653 # removed, or if the path is relative.
3654 INSTALL=$ac_install_sh
3657 echo "$as_me:$LINENO: result: $INSTALL" >&5
3658 echo "${ECHO_T}$INSTALL" >&6
3660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3661 # It thinks the first close brace ends the variable substitution.
3662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3668 for ac_prog in gawk mawk nawk awk
3670 # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_AWK+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 if test -n "$AWK"; then
3678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_AWK="$ac_prog"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 if test -n "$AWK"; then
3698 echo "$as_me:$LINENO: result: $AWK" >&5
3699 echo "${ECHO_T}$AWK" >&6
3701 echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3705 test -n "$AWK" && break
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_prog_RANLIB+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 if test -n "$RANLIB"; then
3717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 RANLIB=$ac_cv_prog_RANLIB
3736 if test -n "$RANLIB"; then
3737 echo "$as_me:$LINENO: result: $RANLIB" >&5
3738 echo "${ECHO_T}$RANLIB" >&6
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3745 if test -z "$ac_cv_prog_RANLIB"; then
3746 ac_ct_RANLIB=$RANLIB
3747 # Extract the first word of "ranlib", so it can be a program name with args.
3748 set dummy ranlib; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test -n "$ac_ct_RANLIB"; then
3755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_ac_ct_RANLIB="ranlib"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3775 if test -n "$ac_ct_RANLIB"; then
3776 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3777 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3783 RANLIB=$ac_ct_RANLIB
3785 RANLIB="$ac_cv_prog_RANLIB"
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3791 if test "$LN_S" = "ln -s"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3799 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3800 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3801 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3802 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat > conftest.$ac_ext <<EOF
3806 int main() {return 0;}
3808 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3809 if test -s conftest.out; then
3810 eval "timidity_cv_ccoption_$ac_ccoption=no"
3812 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3815 eval "timidity_cv_ccoption_$ac_ccoption=no"
3820 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3821 echo "$as_me:$LINENO: result: yes" >&5
3822 echo "${ECHO_T}yes" >&6
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3831 # Checks for target dependencies
3834 # Check whether --with-elf or --without-elf was given.
3835 if test "${with_elf+set}" = set; then
3843 # [ --with-simd create SIMD friendly binary (default is no) ],
3844 # [ SIMD=$withval ], [ SIMD="no" ])
3849 test -n "$SHLD" || SHLD="ld -b"
3853 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3854 test -n "$SHLD" || SHLD="cc -shared -all"
3858 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3863 test -n "$SHLD" || SHLD="ld -Bshareable"
3867 if test "$ELFFORMAT" = yes; then
3868 test -n "$SHLD" || SHLD="ld -Bshareable"
3871 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3872 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3878 # EXTRALIBS="$EXTRALIBS -lxpg4"
3879 # test -n "$SHLD" || SHLD="ld -Bshareable"
3884 EXTRADEFS="-D__W32__"
3887 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3888 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3889 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3890 *) test -n "$SHLD" || SHLD="unknown" ;;
3894 lib_user32_test=-luser32
3897 EXTRADEFS="-D__W32__"
3900 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3901 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3902 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3903 *) test -n "$SHLD" || SHLD="unknown" ;;
3907 lib_user32_test=-luser32
3911 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3915 EXTRADEFS="-DSOLARIS"
3916 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3920 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3924 if test "x$SIMD" = "xyes"; then
3926 cat >>confdefs.h <<\_ACEOF
3927 #define USE_ALTIVEC 1
3930 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3931 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3934 cat >>confdefs.h <<\_ACEOF
3935 #define USE_ALTIVEC 0
3939 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3940 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3941 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3945 test -n "$SHLD" || \
3946 if test "x$GCC" = xyes; then
3949 SHLD="ld -Bdynamic -G"
3956 # Checks for libraries.
3958 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3959 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3960 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 ac_check_lib_save_LIBS=$LIBS
3965 cat >conftest.$ac_ext <<_ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3972 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3987 rm -f conftest.$ac_objext conftest$ac_exeext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989 (eval $ac_link) 2>conftest.er1
3991 grep -v '^ *+' conftest.er1 >conftest.err
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -z "$ac_c_werror_flag"
3997 || test ! -s conftest.err'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; } &&
4003 { ac_try='test -s conftest$ac_exeext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 ac_cv_lib_m_sqrt=yes
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4016 rm -f conftest.err conftest.$ac_objext \
4017 conftest$ac_exeext conftest.$ac_ext
4018 LIBS=$ac_check_lib_save_LIBS
4020 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4021 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4022 if test $ac_cv_lib_m_sqrt = yes; then
4023 cat >>confdefs.h <<_ACEOF
4032 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4033 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4034 if test "${ac_cv_lib_socket_socket+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 ac_check_lib_save_LIBS=$LIBS
4038 LIBS="-lsocket $LIBS"
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4046 /* Override any gcc2 internal prototype to avoid an error. */
4050 /* We use char because int might match the return type of a gcc2
4051 builtin and then its argument prototype would still apply. */
4061 rm -f conftest.$ac_objext conftest$ac_exeext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063 (eval $ac_link) 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag"
4071 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_lib_socket_socket=yes
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_cv_lib_socket_socket=no
4090 rm -f conftest.err conftest.$ac_objext \
4091 conftest$ac_exeext conftest.$ac_ext
4092 LIBS=$ac_check_lib_save_LIBS
4094 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4095 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4096 if test $ac_cv_lib_socket_socket = yes; then
4097 cat >>confdefs.h <<_ACEOF
4098 #define HAVE_LIBSOCKET 1
4101 LIBS="-lsocket $LIBS"
4105 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4106 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4107 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 ac_check_lib_save_LIBS=$LIBS
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4134 rm -f conftest.$ac_objext conftest$ac_exeext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest$ac_exeext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_lib_dl_dlopen=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_cv_lib_dl_dlopen=no
4163 rm -f conftest.err conftest.$ac_objext \
4164 conftest$ac_exeext conftest.$ac_ext
4165 LIBS=$ac_check_lib_save_LIBS
4167 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4168 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4169 if test $ac_cv_lib_dl_dlopen = yes; then
4173 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4174 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4175 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 ac_check_lib_save_LIBS=$LIBS
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4187 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4193 char NSLinkModule ();
4202 rm -f conftest.$ac_objext conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest$ac_exeext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_lib_objc_NSLinkModule=yes
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_lib_objc_NSLinkModule=no
4231 rm -f conftest.err conftest.$ac_objext \
4232 conftest$ac_exeext conftest.$ac_ext
4233 LIBS=$ac_check_lib_save_LIBS
4235 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4236 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4237 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4240 # Mac OS X need this.
4242 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4243 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4244 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 ac_check_lib_save_LIBS=$LIBS
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4256 /* Override any gcc2 internal prototype to avoid an error. */
4260 /* We use char because int might match the return type of a gcc2
4261 builtin and then its argument prototype would still apply. */
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273 (eval $ac_link) 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -z "$ac_c_werror_flag"
4281 || test ! -s conftest.err'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest$ac_exeext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_cv_lib_xpg4_setlocale=yes
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ac_cv_lib_xpg4_setlocale=no
4300 rm -f conftest.err conftest.$ac_objext \
4301 conftest$ac_exeext conftest.$ac_ext
4302 LIBS=$ac_check_lib_save_LIBS
4304 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4305 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4306 if test $ac_cv_lib_xpg4_setlocale = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308 #define HAVE_LIBXPG4 1
4314 # Mac OS X (and maybe NetBSD) need this.
4316 for ac_func in gethostbyname
4318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4319 echo "$as_me:$LINENO: checking for $ac_func" >&5
4320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4321 if eval "test \"\${$as_ac_var+set}\" = set"; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4332 #define $ac_func innocuous_$ac_func
4334 /* System header to define __stub macros and hopefully few prototypes,
4335 which can conflict with char $ac_func (); below.
4336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337 <limits.h> exists even on freestanding compilers. */
4340 # include <limits.h>
4342 # include <assert.h>
4347 /* Override any gcc2 internal prototype to avoid an error. */
4352 /* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
4355 /* The GNU C library defines this for functions which it implements
4356 to always fail with ENOSYS. Some functions are actually named
4357 something starting with __ and the normal name is an alias. */
4358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4361 char (*f) () = $ac_func;
4370 return f != $ac_func;
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377 (eval $ac_link) 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -z "$ac_c_werror_flag"
4385 || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try='test -s conftest$ac_exeext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 eval "$as_ac_var=yes"
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 eval "$as_ac_var=no"
4404 rm -f conftest.err conftest.$ac_objext \
4405 conftest$ac_exeext conftest.$ac_ext
4407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4409 if test `eval echo '${'$as_ac_var'}'` = yes; then
4410 cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4416 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4417 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4418 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 ac_check_lib_save_LIBS=$LIBS
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4430 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4436 char gethostbyname ();
4445 rm -f conftest.$ac_objext conftest$ac_exeext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4447 (eval $ac_link) 2>conftest.er1
4449 grep -v '^ *+' conftest.er1 >conftest.err
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -z "$ac_c_werror_flag"
4455 || test ! -s conftest.err'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; } &&
4461 { ac_try='test -s conftest$ac_exeext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_cv_lib_nsl_gethostbyname=yes
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 ac_cv_lib_nsl_gethostbyname=no
4474 rm -f conftest.err conftest.$ac_objext \
4475 conftest$ac_exeext conftest.$ac_ext
4476 LIBS=$ac_check_lib_save_LIBS
4478 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4479 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4480 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4481 cat >>confdefs.h <<_ACEOF
4482 #define HAVE_LIBNSL 1
4492 echo "$as_me:$LINENO: checking for X" >&5
4493 echo $ECHO_N "checking for X... $ECHO_C" >&6
4496 # Check whether --with-x or --without-x was given.
4497 if test "${with_x+set}" = set; then
4501 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4502 if test "x$with_x" = xno; then
4503 # The user explicitly disabled X.
4506 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4507 # Both variables are already set.
4510 if test "${ac_cv_have_x+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 # One or both of the vars are not set, and there is no cached value.
4514 ac_x_includes=no ac_x_libraries=no
4516 if mkdir conftest.dir; then
4518 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4519 cat >Imakefile <<'_ACEOF'
4521 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4523 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4525 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4526 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4527 for ac_extension in a so sl; do
4528 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4529 test -f $ac_im_libdir/libX11.$ac_extension; then
4530 ac_im_usrlibdir=$ac_im_libdir; break
4533 # Screen out bogus values from the imake configuration. They are
4534 # bogus both because they are the default anyway, and because
4535 # using them would break gcc on systems where it needs fixed includes.
4536 case $ac_im_incroot in
4538 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4540 case $ac_im_usrlibdir in
4542 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4549 # Standard set of common directories for X headers.
4550 # Check X11 before X11Rn because it is often a symlink to the current release.
4562 /usr/local/X11/include
4563 /usr/local/X11R6/include
4564 /usr/local/X11R5/include
4565 /usr/local/X11R4/include
4567 /usr/local/include/X11
4568 /usr/local/include/X11R6
4569 /usr/local/include/X11R5
4570 /usr/local/include/X11R4
4574 /usr/XFree86/include/X11
4578 /usr/unsupported/include
4580 /usr/local/x11r5/include
4581 /usr/lpp/Xamples/include
4583 /usr/openwin/include
4584 /usr/openwin/share/include'
4586 if test "$ac_x_includes" = no; then
4587 # Guess where to find include files, by looking for Intrinsic.h.
4588 # First, try using that file with no special directory specified.
4589 cat >conftest.$ac_ext <<_ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4595 #include <X11/Intrinsic.h>
4597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } >/dev/null; then
4605 if test -s conftest.err; then
4606 ac_cpp_err=$ac_c_preproc_warn_flag
4607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4614 if test -z "$ac_cpp_err"; then
4615 # We can compile using X headers with no special include directory.
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 for ac_dir in $ac_x_header_dirs; do
4622 if test -r "$ac_dir/X11/Intrinsic.h"; then
4623 ac_x_includes=$ac_dir
4628 rm -f conftest.err conftest.$ac_ext
4629 fi # $ac_x_includes = no
4631 if test "$ac_x_libraries" = no; then
4632 # Check for the libraries.
4633 # See if we find them without any special options.
4634 # Don't add to $LIBS permanently.
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <X11/Intrinsic.h>
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest$ac_exeext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4675 # We can link X programs with no special library path.
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4682 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4684 # Don't even attempt the hair of trying to link an X program!
4685 for ac_extension in a so sl; do
4686 if test -r $ac_dir/libXt.$ac_extension; then
4687 ac_x_libraries=$ac_dir
4693 rm -f conftest.err conftest.$ac_objext \
4694 conftest$ac_exeext conftest.$ac_ext
4695 fi # $ac_x_libraries = no
4697 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4698 # Didn't find X anywhere. Cache the known absence of X.
4699 ac_cv_have_x="have_x=no"
4701 # Record where we found X for the cache.
4702 ac_cv_have_x="have_x=yes \
4703 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4708 eval "$ac_cv_have_x"
4711 if test "$have_x" != yes; then
4712 echo "$as_me:$LINENO: result: $have_x" >&5
4713 echo "${ECHO_T}$have_x" >&6
4716 # If each of the values was on the command line, it overrides each guess.
4717 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4718 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4719 # Update the cache value to reflect the command line values.
4720 ac_cv_have_x="have_x=yes \
4721 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4722 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4723 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4726 if test "$no_x" = yes; then
4727 # Not all programs may use this symbol, but it does not hurt to define it.
4729 cat >>confdefs.h <<\_ACEOF
4730 #define X_DISPLAY_MISSING 1
4733 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4735 if test -n "$x_includes"; then
4736 X_CFLAGS="$X_CFLAGS -I$x_includes"
4739 # It would also be nice to do this for all -L options, not just this one.
4740 if test -n "$x_libraries"; then
4741 X_LIBS="$X_LIBS -L$x_libraries"
4742 # For Solaris; some versions of Sun CC require a space after -R and
4743 # others require no space. Words are not sufficient . . . .
4744 case `(uname -sr) 2>/dev/null` in
4746 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4747 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4748 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4764 rm -f conftest.$ac_objext conftest$ac_exeext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766 (eval $ac_link) 2>conftest.er1
4768 grep -v '^ *+' conftest.er1 >conftest.err
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest$ac_exeext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4793 rm -f conftest.err conftest.$ac_objext \
4794 conftest$ac_exeext conftest.$ac_ext
4795 if test $ac_R_nospace = yes; then
4796 echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4798 X_LIBS="$X_LIBS -R$x_libraries"
4800 LIBS="$ac_xsave_LIBS -R $x_libraries"
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4845 rm -f conftest.err conftest.$ac_objext \
4846 conftest$ac_exeext conftest.$ac_ext
4847 if test $ac_R_space = yes; then
4848 echo "$as_me:$LINENO: result: yes" >&5
4849 echo "${ECHO_T}yes" >&6
4850 X_LIBS="$X_LIBS -R $x_libraries"
4852 echo "$as_me:$LINENO: result: neither works" >&5
4853 echo "${ECHO_T}neither works" >&6
4860 # Check for system-dependent libraries X programs must link with.
4861 # Do this before checking for the system-independent R6 libraries
4862 # (-lICE), since we may need -lsocket or whatever for X linking.
4864 if test "$ISC" = yes; then
4865 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4867 # Martyn Johnson says this is needed for Ultrix, if the X
4868 # libraries were built with DECnet support. And Karl Berry says
4869 # the Alpha needs dnet_stub (dnet does not exist).
4870 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 /* Override any gcc2 internal prototype to avoid an error. */
4882 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4884 char XOpenDisplay ();
4893 rm -f conftest.$ac_objext conftest$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>conftest.er1
4897 grep -v '^ *+' conftest.er1 >conftest.err
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4921 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4922 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 ac_check_lib_save_LIBS=$LIBS
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951 (eval $ac_link) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_dnet_dnet_ntoa=yes
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_cv_lib_dnet_dnet_ntoa=no
4978 rm -f conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4983 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4984 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4985 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4988 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4989 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4990 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4991 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-ldnet_stub $LIBS"
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5003 /* Override any gcc2 internal prototype to avoid an error. */
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020 (eval $ac_link) 2>conftest.er1
5022 grep -v '^ *+' conftest.er1 >conftest.err
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_c_werror_flag"
5028 || test ! -s conftest.err'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; } &&
5034 { ac_try='test -s conftest$ac_exeext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 ac_cv_lib_dnet_stub_dnet_ntoa=no
5047 rm -f conftest.err conftest.$ac_objext \
5048 conftest$ac_exeext conftest.$ac_ext
5049 LIBS=$ac_check_lib_save_LIBS
5051 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5052 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5053 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5054 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 LIBS="$ac_xsave_LIBS"
5063 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5064 # to get the SysV transport functions.
5065 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5067 # The nsl library prevents programs from opening the X display
5068 # on Irix 5.2, according to T.E. Dickey.
5069 # The functions gethostbyname, getservbyname, and inet_addr are
5070 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5071 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5072 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5073 if test "${ac_cv_func_gethostbyname+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 cat >conftest.$ac_ext <<_ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5084 #define gethostbyname innocuous_gethostbyname
5086 /* System header to define __stub macros and hopefully few prototypes,
5087 which can conflict with char gethostbyname (); below.
5088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 <limits.h> exists even on freestanding compilers. */
5092 # include <limits.h>
5094 # include <assert.h>
5097 #undef gethostbyname
5099 /* Override any gcc2 internal prototype to avoid an error. */
5104 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5106 char gethostbyname ();
5107 /* The GNU C library defines this for functions which it implements
5108 to always fail with ENOSYS. Some functions are actually named
5109 something starting with __ and the normal name is an alias. */
5110 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5113 char (*f) () = gethostbyname;
5122 return f != gethostbyname;
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129 (eval $ac_link) 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest$ac_exeext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_func_gethostbyname=yes
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_cv_func_gethostbyname=no
5156 rm -f conftest.err conftest.$ac_objext \
5157 conftest$ac_exeext conftest.$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5160 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5162 if test $ac_cv_func_gethostbyname = no; then
5163 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5164 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5165 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 ac_check_lib_save_LIBS=$LIBS
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5177 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5183 char gethostbyname ();
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194 (eval $ac_link) 2>conftest.er1
5196 grep -v '^ *+' conftest.er1 >conftest.err
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -z "$ac_c_werror_flag"
5202 || test ! -s conftest.err'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try='test -s conftest$ac_exeext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5214 ac_cv_lib_nsl_gethostbyname=yes
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ac_cv_lib_nsl_gethostbyname=no
5221 rm -f conftest.err conftest.$ac_objext \
5222 conftest$ac_exeext conftest.$ac_ext
5223 LIBS=$ac_check_lib_save_LIBS
5225 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5226 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5227 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5228 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5231 if test $ac_cv_lib_nsl_gethostbyname = no; then
5232 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5233 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5234 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 ac_check_lib_save_LIBS=$LIBS
5239 cat >conftest.$ac_ext <<_ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5246 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5252 char gethostbyname ();
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_lib_bsd_gethostbyname=yes
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_cv_lib_bsd_gethostbyname=no
5290 rm -f conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5294 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5295 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5296 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5303 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5304 # socket/setsockopt and other routines are undefined under SCO ODT
5305 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5306 # on later versions), says Simon Leinen: it contains gethostby*
5307 # variants that don't use the name server (or something). -lsocket
5308 # must be given before -lnsl if both are needed. We assume that
5309 # if connect needs -lnsl, so does gethostbyname.
5310 echo "$as_me:$LINENO: checking for connect" >&5
5311 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5312 if test "${ac_cv_func_connect+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5323 #define connect innocuous_connect
5325 /* System header to define __stub macros and hopefully few prototypes,
5326 which can conflict with char connect (); below.
5327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 <limits.h> exists even on freestanding compilers. */
5331 # include <limits.h>
5333 # include <assert.h>
5338 /* Override any gcc2 internal prototype to avoid an error. */
5343 /* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */
5346 /* The GNU C library defines this for functions which it implements
5347 to always fail with ENOSYS. Some functions are actually named
5348 something starting with __ and the normal name is an alias. */
5349 #if defined (__stub_connect) || defined (__stub___connect)
5352 char (*f) () = connect;
5361 return f != connect;
5366 rm -f conftest.$ac_objext conftest$ac_exeext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5368 (eval $ac_link) 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } &&
5375 { ac_try='test -z "$ac_c_werror_flag"
5376 || test ! -s conftest.err'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; } &&
5382 { ac_try='test -s conftest$ac_exeext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_cv_func_connect=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_cv_func_connect=no
5395 rm -f conftest.err conftest.$ac_objext \
5396 conftest$ac_exeext conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5399 echo "${ECHO_T}$ac_cv_func_connect" >&6
5401 if test $ac_cv_func_connect = no; then
5402 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5403 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5404 if test "${ac_cv_lib_socket_connect+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 ac_check_lib_save_LIBS=$LIBS
5408 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433 (eval $ac_link) 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest$ac_exeext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_cv_lib_socket_connect=yes
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_cv_lib_socket_connect=no
5460 rm -f conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5464 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5465 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5466 if test $ac_cv_lib_socket_connect = yes; then
5467 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5472 # Guillermo Gomez says -lposix is necessary on A/UX.
5473 echo "$as_me:$LINENO: checking for remove" >&5
5474 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5475 if test "${ac_cv_func_remove+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 cat >conftest.$ac_ext <<_ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5486 #define remove innocuous_remove
5488 /* System header to define __stub macros and hopefully few prototypes,
5489 which can conflict with char remove (); below.
5490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5491 <limits.h> exists even on freestanding compilers. */
5494 # include <limits.h>
5496 # include <assert.h>
5501 /* Override any gcc2 internal prototype to avoid an error. */
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5509 /* The GNU C library defines this for functions which it implements
5510 to always fail with ENOSYS. Some functions are actually named
5511 something starting with __ and the normal name is an alias. */
5512 #if defined (__stub_remove) || defined (__stub___remove)
5515 char (*f) () = remove;
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 (eval $ac_link) 2>conftest.er1
5533 grep -v '^ *+' conftest.er1 >conftest.err
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -z "$ac_c_werror_flag"
5539 || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest$ac_exeext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_func_remove=yes
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 ac_cv_func_remove=no
5558 rm -f conftest.err conftest.$ac_objext \
5559 conftest$ac_exeext conftest.$ac_ext
5561 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5562 echo "${ECHO_T}$ac_cv_func_remove" >&6
5564 if test $ac_cv_func_remove = no; then
5565 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5566 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5567 if test "${ac_cv_lib_posix_remove+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lposix $LIBS"
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5594 rm -f conftest.$ac_objext conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_lib_posix_remove=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_cv_lib_posix_remove=no
5623 rm -f conftest.err conftest.$ac_objext \
5624 conftest$ac_exeext conftest.$ac_ext
5625 LIBS=$ac_check_lib_save_LIBS
5627 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5628 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5629 if test $ac_cv_lib_posix_remove = yes; then
5630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5635 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5636 echo "$as_me:$LINENO: checking for shmat" >&5
5637 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5638 if test "${ac_cv_func_shmat+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5649 #define shmat innocuous_shmat
5651 /* System header to define __stub macros and hopefully few prototypes,
5652 which can conflict with char shmat (); below.
5653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654 <limits.h> exists even on freestanding compilers. */
5657 # include <limits.h>
5659 # include <assert.h>
5664 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5672 /* The GNU C library defines this for functions which it implements
5673 to always fail with ENOSYS. Some functions are actually named
5674 something starting with __ and the normal name is an alias. */
5675 #if defined (__stub_shmat) || defined (__stub___shmat)
5678 char (*f) () = shmat;
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_func_shmat=yes
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5721 rm -f conftest.err conftest.$ac_objext \
5722 conftest$ac_exeext conftest.$ac_ext
5724 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5725 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5727 if test $ac_cv_func_shmat = no; then
5728 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5729 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5730 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 ac_check_lib_save_LIBS=$LIBS
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5742 /* Override any gcc2 internal prototype to avoid an error. */
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>conftest.er1
5761 grep -v '^ *+' conftest.er1 >conftest.err
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest$ac_exeext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_lib_ipc_shmat=yes
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 ac_cv_lib_ipc_shmat=no
5786 rm -f conftest.err conftest.$ac_objext \
5787 conftest$ac_exeext conftest.$ac_ext
5788 LIBS=$ac_check_lib_save_LIBS
5790 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5791 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5792 if test $ac_cv_lib_ipc_shmat = yes; then
5793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5799 # Check for libraries that X11R6 Xt/Xaw programs need.
5800 ac_save_LDFLAGS=$LDFLAGS
5801 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5802 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5803 # check for ICE first), but we must link in the order -lSM -lICE or
5804 # we get undefined symbols. So assume we have SM if we have ICE.
5805 # These have to be linked with before -lX11, unlike the other
5806 # libraries we check for below, so use a different variable.
5807 # John Interrante, Karl Berry
5808 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5809 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5810 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 ac_check_lib_save_LIBS=$LIBS
5814 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5815 cat >conftest.$ac_ext <<_ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5822 /* Override any gcc2 internal prototype to avoid an error. */
5826 /* We use char because int might match the return type of a gcc2
5827 builtin and then its argument prototype would still apply. */
5828 char IceConnectionNumber ();
5832 IceConnectionNumber ();
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839 (eval $ac_link) 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag"
5847 || test ! -s conftest.err'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; } &&
5853 { ac_try='test -s conftest$ac_exeext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
5859 ac_cv_lib_ICE_IceConnectionNumber=yes
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 ac_cv_lib_ICE_IceConnectionNumber=no
5866 rm -f conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
5868 LIBS=$ac_check_lib_save_LIBS
5870 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5871 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5872 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5873 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5876 LDFLAGS=$ac_save_LDFLAGS
5882 if test "x$with_x" = xyes; then
5883 if test "x$have_x" = xno; then
5884 if test "x$x_config_flag" = xyes; then
5885 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5886 echo "$as_me: error: Could not configure X" >&2;}
5887 { (exit 1); exit 1; }; }
5889 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5890 echo "$as_me: WARNING: Could not configure X" >&2;}
5894 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5895 if test "x$x_libraries" != x; then
5896 ldflags_x_opt="-L$x_libraries"
5897 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5898 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5902 if test "x$x_includes" != x; then
5903 CPPFLAGS="$CPPFLAGS -I$x_includes"
5907 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5908 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5909 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 ac_check_lib_save_LIBS=$LIBS
5914 cat >conftest.$ac_ext <<_ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5921 /* Override any gcc2 internal prototype to avoid an error. */
5925 /* We use char because int might match the return type of a gcc2
5926 builtin and then its argument prototype would still apply. */
5927 char XOpenDisplay ();
5936 rm -f conftest.$ac_objext conftest$ac_exeext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938 (eval $ac_link) 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_c_werror_flag"
5946 || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest$ac_exeext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_lib_X11_XOpenDisplay=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_cv_lib_X11_XOpenDisplay=no
5965 rm -f conftest.err conftest.$ac_objext \
5966 conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5970 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5971 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5972 cat >>confdefs.h <<_ACEOF
5973 #define HAVE_LIBX11 1
5980 echo "$as_me:$LINENO: checking X11 version 6" >&5
5981 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5982 if test "${timidity_cv_x11_version_6+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 #include <X11/Xlib.h>
5996 #if XlibSpecificationRelease < 6
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>conftest.er1
6008 grep -v '^ *+' conftest.er1 >conftest.err
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } &&
6013 { ac_try='test -z "$ac_c_werror_flag"
6014 || test ! -s conftest.err'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest$ac_exeext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 timidity_cv_x11_version_6=yes
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 timidity_cv_x11_version_6=no
6033 rm -f conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6037 if test "$timidity_cv_x11_version_6" = "yes"; then
6038 echo "$as_me:$LINENO: result: 6 or newer" >&5
6039 echo "${ECHO_T}6 or newer" >&6
6041 echo "$as_me:$LINENO: result: before 6" >&5
6042 echo "${ECHO_T}before 6" >&6
6046 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6047 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6048 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 ac_check_lib_save_LIBS=$LIBS
6053 cat >conftest.$ac_ext <<_ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6060 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6066 char XShapeCombineMask ();
6070 XShapeCombineMask ();
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_lib_Xext_XShapeCombineMask=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_cv_lib_Xext_XShapeCombineMask=no
6104 rm -f conftest.err conftest.$ac_objext \
6105 conftest$ac_exeext conftest.$ac_ext
6106 LIBS=$ac_check_lib_save_LIBS
6108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6109 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6110 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6111 have_xext=yes; LIBS="-lXext $LIBS"
6117 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6118 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6119 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 ac_check_lib_save_LIBS=$LIBS
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6131 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6137 char IceConnectionNumber ();
6141 IceConnectionNumber ();
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148 (eval $ac_link) 2>conftest.er1
6150 grep -v '^ *+' conftest.er1 >conftest.err
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest$ac_exeext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_lib_ICE_IceConnectionNumber=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_lib_ICE_IceConnectionNumber=no
6175 rm -f conftest.err conftest.$ac_objext \
6176 conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_check_lib_save_LIBS
6179 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6180 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6181 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6182 cat >>confdefs.h <<_ACEOF
6183 #define HAVE_LIBICE 1
6190 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6191 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6192 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 ac_check_lib_save_LIBS=$LIBS
6197 cat >conftest.$ac_ext <<_ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6204 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6210 char SmcOpenConnection ();
6214 SmcOpenConnection ();
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6221 (eval $ac_link) 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -z "$ac_c_werror_flag"
6229 || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try='test -s conftest$ac_exeext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_lib_SM_SmcOpenConnection=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_lib_SM_SmcOpenConnection=no
6248 rm -f conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext conftest.$ac_ext
6250 LIBS=$ac_check_lib_save_LIBS
6252 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6253 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6254 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6255 have_xprelibs=yes; LIBS="-lSM $LIBS"
6260 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6261 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6262 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 ac_check_lib_save_LIBS=$LIBS
6267 cat >conftest.$ac_ext <<_ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6274 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6280 char XtVaAppInitialize ();
6284 XtVaAppInitialize ();
6289 rm -f conftest.$ac_objext conftest$ac_exeext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291 (eval $ac_link) 2>conftest.er1
6293 grep -v '^ *+' conftest.er1 >conftest.err
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -z "$ac_c_werror_flag"
6299 || test ! -s conftest.err'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest$ac_exeext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_lib_Xt_XtVaAppInitialize=yes
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6316 ac_cv_lib_Xt_XtVaAppInitialize=no
6318 rm -f conftest.err conftest.$ac_objext \
6319 conftest$ac_exeext conftest.$ac_ext
6320 LIBS=$ac_check_lib_save_LIBS
6322 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6323 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6324 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6325 have_xt=yes; LIBS="-lXt $LIBS"
6330 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6331 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6332 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 ac_check_lib_save_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 XmuInternAtom ();
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_Xmu_XmuInternAtom=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_cv_lib_Xmu_XmuInternAtom=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_Xmu_XmuInternAtom" >&5
6393 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6394 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6399 for ac_func in XmuRegisterExternalAgent
6401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6402 echo "$as_me:$LINENO: checking for $ac_func" >&5
6403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_var+set}\" = set"; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6415 #define $ac_func innocuous_$ac_func
6417 /* System header to define __stub macros and hopefully few prototypes,
6418 which can conflict with char $ac_func (); below.
6419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6420 <limits.h> exists even on freestanding compilers. */
6423 # include <limits.h>
6425 # include <assert.h>
6430 /* Override any gcc2 internal prototype to avoid an error. */
6435 /* We use char because int might match the return type of a gcc2
6436 builtin and then its argument prototype would still apply. */
6438 /* The GNU C library defines this for functions which it implements
6439 to always fail with ENOSYS. Some functions are actually named
6440 something starting with __ and the normal name is an alias. */
6441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 char (*f) () = $ac_func;
6453 return f != $ac_func;
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 eval "$as_ac_var=yes"
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 eval "$as_ac_var=no"
6487 rm -f conftest.err conftest.$ac_objext \
6488 conftest$ac_exeext conftest.$ac_ext
6490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6492 if test `eval echo '${'$as_ac_var'}'` = yes; then
6493 cat >>confdefs.h <<_ACEOF
6494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6500 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6501 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6502 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 ac_check_lib_save_LIBS=$LIBS
6506 LIBS="-lXaw3d $LIBS"
6507 cat >conftest.$ac_ext <<_ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6518 /* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6520 char XawInitializeWidgetSet ();
6524 XawInitializeWidgetSet ();
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531 (eval $ac_link) 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_c_werror_flag"
6539 || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6558 rm -f conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
6560 LIBS=$ac_check_lib_save_LIBS
6562 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6563 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6564 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6567 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6568 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6569 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_check_lib_save_LIBS=$LIBS
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6581 /* Override any gcc2 internal prototype to avoid an error. */
6585 /* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6587 char XawInitializeWidgetSet ();
6591 XawInitializeWidgetSet ();
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6600 grep -v '^ *+' conftest.er1 >conftest.err
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6625 rm -f conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_check_lib_save_LIBS
6629 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6630 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6631 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6639 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6640 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6641 if test "${ac_cv_lib_Xm_XmCreateForm+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 XmCreateForm ();
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_Xm_XmCreateForm=yes
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 ac_cv_lib_Xm_XmCreateForm=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_Xm_XmCreateForm" >&5
6702 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6703 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6710 for ac_func in XShmCreatePixmap
6712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6713 echo "$as_me:$LINENO: checking for $ac_func" >&5
6714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_var+set}\" = set"; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6726 #define $ac_func innocuous_$ac_func
6728 /* System header to define __stub macros and hopefully few prototypes,
6729 which can conflict with char $ac_func (); below.
6730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731 <limits.h> exists even on freestanding compilers. */
6734 # include <limits.h>
6736 # include <assert.h>
6741 /* Override any gcc2 internal prototype to avoid an error. */
6746 /* We use char because int might match the return type of a gcc2
6747 builtin and then its argument prototype would still apply. */
6749 /* The GNU C library defines this for functions which it implements
6750 to always fail with ENOSYS. Some functions are actually named
6751 something starting with __ and the normal name is an alias. */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6755 char (*f) () = $ac_func;
6764 return f != $ac_func;
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>conftest.er1
6773 grep -v '^ *+' conftest.er1 >conftest.err
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -z "$ac_c_werror_flag"
6779 || test ! -s conftest.err'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; } &&
6785 { ac_try='test -s conftest$ac_exeext'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 eval "$as_ac_var=yes"
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 eval "$as_ac_var=no"
6798 rm -f conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
6801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6803 if test `eval echo '${'$as_ac_var'}'` = yes; then
6804 cat >>confdefs.h <<_ACEOF
6805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6814 # Checks for header files.
6815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6817 if test "${ac_cv_header_stdc+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6839 rm -f conftest.$ac_objext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6841 (eval $ac_compile) 2>conftest.er1
6843 grep -v '^ *+' conftest.er1 >conftest.err
6845 cat conftest.err >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try='test -z "$ac_c_werror_flag"
6849 || test ! -s conftest.err'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; } &&
6855 { ac_try='test -s conftest.$ac_objext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_cv_header_stdc=yes
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 ac_cv_header_stdc=no
6868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6870 if test $ac_cv_header_stdc = yes; then
6871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6882 $EGREP "memchr" >/dev/null 2>&1; then
6885 ac_cv_header_stdc=no
6891 if test $ac_cv_header_stdc = yes; then
6892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6903 $EGREP "free" >/dev/null 2>&1; then
6906 ac_cv_header_stdc=no
6912 if test $ac_cv_header_stdc = yes; then
6913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6914 if test "$cross_compiling" = yes; then
6917 cat >conftest.$ac_ext <<_ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6924 #if ((' ' & 0x0FF) == 0x020)
6925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6928 # define ISLOWER(c) \
6929 (('a' <= (c) && (c) <= 'i') \
6930 || ('j' <= (c) && (c) <= 'r') \
6931 || ('s' <= (c) && (c) <= 'z'))
6932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6940 for (i = 0; i < 256; i++)
6941 if (XOR (islower (i), ISLOWER (i))
6942 || toupper (i) != TOUPPER (i))
6947 rm -f conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6960 echo "$as_me: program exited with status $ac_status" >&5
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_cv_header_stdc=no
6967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6971 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6973 if test $ac_cv_header_stdc = yes; then
6975 cat >>confdefs.h <<\_ACEOF
6976 #define STDC_HEADERS 1
6981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6992 inttypes.h stdint.h unistd.h
6994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 $ac_includes_default
7008 #include <$ac_header>
7010 rm -f conftest.$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>conftest.er1
7014 grep -v '^ *+' conftest.er1 >conftest.err
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest.$ac_objext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 eval "$as_ac_Header=yes"
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 eval "$as_ac_Header=no"
7039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7044 cat >>confdefs.h <<_ACEOF
7045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7054 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7055 if test "${ac_cv_header_stdbool_h+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7065 #include <stdbool.h>
7067 # error bool is not defined
7070 # error false is not defined
7073 # error false is not 0
7076 # error true is not defined
7079 # error true is not 1
7081 #ifndef __bool_true_false_are_defined
7082 # error __bool_true_false_are_defined is not defined
7085 struct s { _Bool s: 1; _Bool t; } s;
7087 char a[true == 1 ? 1 : -1];
7088 char b[false == 0 ? 1 : -1];
7089 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7090 char d[(bool) -0.5 == true ? 1 : -1];
7092 char f[(_Bool) -0.0 == false ? 1 : -1];
7094 char h[sizeof (_Bool)];
7100 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest.$ac_objext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_header_stdbool_h=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 ac_cv_header_stdbool_h=no
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7136 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7137 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7138 echo "$as_me:$LINENO: checking for _Bool" >&5
7139 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7140 if test "${ac_cv_type__Bool+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 cat >conftest.$ac_ext <<_ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7161 rm -f conftest.$ac_objext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>conftest.er1
7165 grep -v '^ *+' conftest.er1 >conftest.err
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try='test -z "$ac_c_werror_flag"
7171 || test ! -s conftest.err'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; } &&
7177 { ac_try='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_type__Bool=yes
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7192 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7193 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7194 if test $ac_cv_type__Bool = yes; then
7196 cat >>confdefs.h <<_ACEOF
7197 #define HAVE__BOOL 1
7203 if test $ac_cv_header_stdbool_h = yes; then
7205 cat >>confdefs.h <<\_ACEOF
7206 #define HAVE_STDBOOL_H 1
7211 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7212 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7213 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 cat >conftest.$ac_ext <<_ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #include <sys/types.h>
7223 #include <sys/wait.h>
7225 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7228 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7236 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } &&
7250 { ac_try='test -z "$ac_c_werror_flag"
7251 || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 ac_cv_header_sys_wait_h=yes
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 ac_cv_header_sys_wait_h=no
7270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7272 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7273 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7274 if test $ac_cv_header_sys_wait_h = yes; then
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_SYS_WAIT_H 1
7282 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7283 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7284 if test "${ac_cv_header_time+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 cat >conftest.$ac_ext <<_ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 #include <sys/types.h>
7294 #include <sys/time.h>
7300 if ((struct tm *) 0)
7306 rm -f conftest.$ac_objext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308 (eval $ac_compile) 2>conftest.er1
7310 grep -v '^ *+' conftest.er1 >conftest.err
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -z "$ac_c_werror_flag"
7316 || test ! -s conftest.err'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; } &&
7322 { ac_try='test -s conftest.$ac_objext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_cv_header_time=yes
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_cv_header_time=no
7335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7337 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7338 echo "${ECHO_T}$ac_cv_header_time" >&6
7339 if test $ac_cv_header_time = yes; then
7341 cat >>confdefs.h <<\_ACEOF
7342 #define TIME_WITH_SYS_TIME 1
7353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7354 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7355 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7356 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 #include <sys/types.h>
7378 rm -f conftest.$ac_objext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380 (eval $ac_compile) 2>conftest.er1
7382 grep -v '^ *+' conftest.er1 >conftest.err
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try='test -s conftest.$ac_objext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 eval "$as_ac_Header=yes"
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 eval "$as_ac_Header=no"
7407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7412 cat >>confdefs.h <<_ACEOF
7413 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7416 ac_header_dirent=$ac_hdr; break
7420 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7421 if test $ac_header_dirent = dirent.h; then
7422 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7423 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7424 if test "${ac_cv_search_opendir+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 ac_func_search_save_LIBS=$LIBS
7428 ac_cv_search_opendir=no
7429 cat >conftest.$ac_ext <<_ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7436 /* Override any gcc2 internal prototype to avoid an error. */
7440 /* We use char because int might match the return type of a gcc2
7441 builtin and then its argument prototype would still apply. */
7451 rm -f conftest.$ac_objext conftest$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453 (eval $ac_link) 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } &&
7460 { ac_try='test -z "$ac_c_werror_flag"
7461 || test ! -s conftest.err'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; } &&
7467 { ac_try='test -s conftest$ac_exeext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_search_opendir="none required"
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7479 rm -f conftest.err conftest.$ac_objext \
7480 conftest$ac_exeext conftest.$ac_ext
7481 if test "$ac_cv_search_opendir" = no; then
7482 for ac_lib in dir; do
7483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7491 /* Override any gcc2 internal prototype to avoid an error. */
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>conftest.er1
7510 grep -v '^ *+' conftest.er1 >conftest.err
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -z "$ac_c_werror_flag"
7516 || test ! -s conftest.err'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; } &&
7522 { ac_try='test -s conftest$ac_exeext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_cv_search_opendir="-l$ac_lib"
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7535 rm -f conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_func_search_save_LIBS
7541 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7542 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7543 if test "$ac_cv_search_opendir" != no; then
7544 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7549 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7550 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7551 if test "${ac_cv_search_opendir+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_func_search_save_LIBS=$LIBS
7555 ac_cv_search_opendir=no
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7563 /* Override any gcc2 internal prototype to avoid an error. */
7567 /* We use char because int might match the return type of a gcc2
7568 builtin and then its argument prototype would still apply. */
7578 rm -f conftest.$ac_objext conftest$ac_exeext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7580 (eval $ac_link) 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -z "$ac_c_werror_flag"
7588 || test ! -s conftest.err'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; } &&
7594 { ac_try='test -s conftest$ac_exeext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_search_opendir="none required"
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7606 rm -f conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7608 if test "$ac_cv_search_opendir" = no; then
7610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7618 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>conftest.er1
7637 grep -v '^ *+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest$ac_exeext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_cv_search_opendir="-l$ac_lib"
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7662 rm -f conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7666 LIBS=$ac_func_search_save_LIBS
7668 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7669 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7670 if test "$ac_cv_search_opendir" != no; then
7671 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757 echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 $ac_includes_default
7775 #include <$ac_header>
7777 rm -f conftest.$ac_objext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7779 (eval $ac_compile) 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -z "$ac_c_werror_flag"
7787 || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest.$ac_objext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 ac_header_compiler=yes
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 ac_header_compiler=no
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7808 echo "${ECHO_T}$ac_header_compiler" >&6
7810 # Is the header present?
7811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <$ac_header>
7821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } >/dev/null; then
7829 if test -s conftest.err; then
7830 ac_cpp_err=$ac_c_preproc_warn_flag
7831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7838 if test -z "$ac_cpp_err"; then
7839 ac_header_preproc=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ac_header_preproc=no
7846 rm -f conftest.err conftest.$ac_ext
7847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7848 echo "${ECHO_T}$ac_header_preproc" >&6
7850 # So? What about this header?
7851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7857 ac_header_preproc=yes
7860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7874 ## ------------------------------- ##
7875 ## Report this to root@mput.dip.jp ##
7876 ## ------------------------------- ##
7879 sed "s/^/$as_me: WARNING: /" >&2
7882 echo "$as_me:$LINENO: checking for $ac_header" >&5
7883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 eval "$as_ac_Header=\$ac_header_preproc"
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7920 #ifdef HAVE_X11_XLIB_H
7921 #include <X11/Xlib.h>
7925 #include <$ac_header>
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 eval "$as_ac_Header=yes"
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 eval "$as_ac_Header=no"
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7969 if test "${ac_cv_header_string_h+set}" = set; then
7970 echo "$as_me:$LINENO: checking for string.h" >&5
7971 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7972 if test "${ac_cv_header_string_h+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7976 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7978 # Is the header compilable?
7979 echo "$as_me:$LINENO: checking string.h usability" >&5
7980 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try='test -z "$ac_c_werror_flag"
8000 || test ! -s conftest.err'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; } &&
8006 { ac_try='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_header_compiler=yes
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 ac_header_compiler=no
8019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8021 echo "${ECHO_T}$ac_header_compiler" >&6
8023 # Is the header present?
8024 echo "$as_me:$LINENO: checking string.h presence" >&5
8025 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } >/dev/null; then
8042 if test -s conftest.err; then
8043 ac_cpp_err=$ac_c_preproc_warn_flag
8044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8051 if test -z "$ac_cpp_err"; then
8052 ac_header_preproc=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_header_preproc=no
8059 rm -f conftest.err conftest.$ac_ext
8060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8061 echo "${ECHO_T}$ac_header_preproc" >&6
8063 # So? What about this header?
8064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8066 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8067 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8069 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8070 ac_header_preproc=yes
8073 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8074 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8076 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8078 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8080 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8082 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8084 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8087 ## ------------------------------- ##
8088 ## Report this to root@mput.dip.jp ##
8089 ## ------------------------------- ##
8092 sed "s/^/$as_me: WARNING: /" >&2
8095 echo "$as_me:$LINENO: checking for string.h" >&5
8096 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8097 if test "${ac_cv_header_string_h+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 ac_cv_header_string_h=$ac_header_preproc
8102 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8103 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8106 if test $ac_cv_header_string_h = yes; then
8110 cat >>confdefs.h <<\_ACEOF
8111 #define NO_STRING_H 1
8118 # Checks for typedefs, structures, and compiler characteristics.
8119 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8120 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8121 if test "${ac_cv_c_bigendian+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 # See if sys/param.h defines the BYTE_ORDER macro.
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 #include <sys/types.h>
8132 #include <sys/param.h>
8137 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8145 rm -f conftest.$ac_objext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8147 (eval $ac_compile) 2>conftest.er1
8149 grep -v '^ *+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag"
8155 || test ! -s conftest.err'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; } &&
8161 { ac_try='test -s conftest.$ac_objext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 # It does; now see whether it defined to BIG_ENDIAN or not.
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 #include <sys/types.h>
8175 #include <sys/param.h>
8180 #if BYTE_ORDER != BIG_ENDIAN
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_c_bigendian=yes
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_c_bigendian=no
8217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 # It does not; compile a test program.
8223 if test "$cross_compiling" = yes; then
8224 # try to guess the endianness by grepping values into an object file
8225 ac_cv_c_bigendian=unknown
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8233 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8234 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8235 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8236 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8237 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8241 _ascii (); _ebcdic ();
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8269 ac_cv_c_bigendian=yes
8271 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8272 if test "$ac_cv_c_bigendian" = unknown; then
8273 ac_cv_c_bigendian=no
8275 # finding both strings is unlikely to happen, but who knows?
8276 ac_cv_c_bigendian=unknown
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8295 /* Are we little or big endian? From Harbison&Steele. */
8299 char c[sizeof (long)];
8302 exit (u.c[sizeof (long) - 1] == 1);
8305 rm -f conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_cv_c_bigendian=no
8318 echo "$as_me: program exited with status $ac_status" >&5
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_cv_c_bigendian=yes
8325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8330 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8331 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8332 case $ac_cv_c_bigendian in
8335 cat >>confdefs.h <<\_ACEOF
8336 #define WORDS_BIGENDIAN 1
8342 { { echo "$as_me:$LINENO: error: unknown endianness
8343 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8344 echo "$as_me: error: unknown endianness
8345 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8346 { (exit 1); exit 1; }; } ;;
8350 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8351 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8352 if test "${ac_cv_c_char_unsigned+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8365 static int test_array [1 - 2 * !(((char) -1) < 0)];
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest.$ac_objext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_cv_c_char_unsigned=no
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 ac_cv_c_char_unsigned=yes
8401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8403 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8404 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8405 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8406 cat >>confdefs.h <<\_ACEOF
8407 #define __CHAR_UNSIGNED__ 1
8412 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8413 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8414 if test "${ac_cv_c_const+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8427 /* FIXME: Include the comments suggested by Paul. */
8429 /* Ultrix mips cc rejects this. */
8430 typedef int charset[2];
8432 /* SunOS 4.1.1 cc rejects this. */
8433 char const *const *ccp;
8435 /* NEC SVR4.0.2 mips cc rejects this. */
8436 struct point {int x, y;};
8437 static struct point const zero = {0,0};
8438 /* AIX XL C 1.02.0.0 rejects this.
8439 It does not let you subtract one const X* pointer from another in
8440 an arm of an if-expression whose if-part is not a constant
8442 const char *g = "string";
8443 ccp = &g + (g ? g-g : 0);
8444 /* HPUX 7.0 cc rejects these. */
8447 ccp = (char const *const *) p;
8448 { /* SCO 3.2v4 cc rejects this. */
8450 char const *s = 0 ? (char *) 0 : (char const *) 0;
8454 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8456 const int *foo = &x[0];
8459 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8460 typedef const int *iptr;
8464 { /* AIX XL C 1.02.0.0 rejects this saying
8465 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8466 struct s { int j; const int *ap[3]; };
8467 struct s *b; b->j = 5;
8469 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8478 rm -f conftest.$ac_objext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -z "$ac_c_werror_flag"
8488 || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8510 echo "${ECHO_T}$ac_cv_c_const" >&6
8511 if test $ac_cv_c_const = no; then
8513 cat >>confdefs.h <<\_ACEOF
8519 echo "$as_me:$LINENO: checking for inline" >&5
8520 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8521 if test "${ac_cv_c_inline+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 for ac_kw in inline __inline__ __inline; do
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8534 static $ac_kw foo_t static_foo () {return 0; }
8535 $ac_kw foo_t foo () {return 0; }
8539 rm -f conftest.$ac_objext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8541 (eval $ac_compile) 2>conftest.er1
8543 grep -v '^ *+' conftest.er1 >conftest.err
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest.$ac_objext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_c_inline=$ac_kw; break
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8571 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8572 echo "${ECHO_T}$ac_cv_c_inline" >&6
8575 case $ac_cv_c_inline in
8578 case $ac_cv_c_inline in
8580 *) ac_val=$ac_cv_c_inline;;
8582 cat >>confdefs.h <<_ACEOF
8584 #define inline $ac_val
8590 echo "$as_me:$LINENO: checking for working volatile" >&5
8591 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8592 if test "${ac_cv_c_volatile+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_cv_c_volatile=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8644 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8645 if test $ac_cv_c_volatile = no; then
8647 cat >>confdefs.h <<\_ACEOF
8653 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8654 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8655 if test "${ac_cv_c_stringize+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 cat >conftest.$ac_ext <<_ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8666 char *s = x(teststring);
8668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8669 $EGREP "#teststring" >/dev/null 2>&1; then
8670 ac_cv_c_stringize=no
8672 ac_cv_c_stringize=yes
8677 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8678 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8679 if test $ac_cv_c_stringize = yes; then
8681 cat >>confdefs.h <<\_ACEOF
8682 #define HAVE_STRINGIZE 1
8687 echo "$as_me:$LINENO: checking for function prototypes" >&5
8688 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8689 if test "$ac_cv_prog_cc_stdc" != no; then
8690 echo "$as_me:$LINENO: result: yes" >&5
8691 echo "${ECHO_T}yes" >&6
8693 cat >>confdefs.h <<\_ACEOF
8694 #define PROTOTYPES 1
8698 cat >>confdefs.h <<\_ACEOF
8699 #define __PROTOTYPES 1
8703 echo "$as_me:$LINENO: result: no" >&5
8704 echo "${ECHO_T}no" >&6
8707 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8708 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8709 if test "${ac_cv_struct_tm+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 cat >conftest.$ac_ext <<_ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 #include <sys/types.h>
8724 struct tm *tp; tp->tm_sec;
8729 rm -f conftest.$ac_objext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731 (eval $ac_compile) 2>conftest.er1
8733 grep -v '^ *+' conftest.er1 >conftest.err
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -z "$ac_c_werror_flag"
8739 || test ! -s conftest.err'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_struct_tm=time.h
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 ac_cv_struct_tm=sys/time.h
8758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8760 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8761 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8762 if test $ac_cv_struct_tm = sys/time.h; then
8764 cat >>confdefs.h <<\_ACEOF
8765 #define TM_IN_SYS_TIME 1
8770 echo "$as_me:$LINENO: checking for size_t" >&5
8771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8772 if test "${ac_cv_type_size_t+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 $ac_includes_default
8787 if (sizeof (size_t))
8793 rm -f conftest.$ac_objext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8795 (eval $ac_compile) 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag"
8803 || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest.$ac_objext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_cv_type_size_t=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_cv_type_size_t=no
8822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8825 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8826 if test $ac_cv_type_size_t = yes; then
8830 cat >>confdefs.h <<_ACEOF
8831 #define size_t unsigned
8836 echo "$as_me:$LINENO: checking for off_t" >&5
8837 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8838 if test "${ac_cv_type_off_t+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 $ac_includes_default
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861 (eval $ac_compile) 2>conftest.er1
8863 grep -v '^ *+' conftest.er1 >conftest.err
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_type_off_t=yes
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8890 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8891 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8892 if test $ac_cv_type_off_t = yes; then
8896 cat >>confdefs.h <<_ACEOF
8902 echo "$as_me:$LINENO: checking for pid_t" >&5
8903 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8904 if test "${ac_cv_type_pid_t+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927 (eval $ac_compile) 2>conftest.er1
8929 grep -v '^ *+' conftest.er1 >conftest.err
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest.$ac_objext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_type_pid_t=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8957 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8958 if test $ac_cv_type_pid_t = yes; then
8962 cat >>confdefs.h <<_ACEOF
8969 echo "$as_me:$LINENO: checking volatile declaration" >&5
8970 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8971 if test "${timidity_cv_type_volatile+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8989 rm -f conftest.$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_c_werror_flag"
8999 || test ! -s conftest.err'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; } &&
9005 { ac_try='test -s conftest.$ac_objext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 timidity_cv_type_volatile=yes
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 timidity_cv_type_volatile=no
9018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9020 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9021 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9022 if test $timidity_cv_type_volatile = no; then
9024 cat >>confdefs.h <<\_ACEOF
9025 #define NO_VOLATILE 1
9030 echo "$as_me:$LINENO: checking union semun declaration" >&5
9031 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9032 if test "${timidity_cv_type_union_semun+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9042 #include <sys/types.h>
9043 #include <sys/ipc.h>
9044 #include <sys/sem.h>
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>conftest.er1
9058 grep -v '^ *+' conftest.er1 >conftest.err
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag"
9064 || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 timidity_cv_type_union_semun=yes
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 timidity_cv_type_union_semun=no
9083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9086 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9087 if test $timidity_cv_type_union_semun = yes; then
9089 cat >>confdefs.h <<\_ACEOF
9090 #define HAVE_UNION_SEMUN 1
9095 if test "x$CYGNUS" = xyes; then
9096 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9097 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9098 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 cat >conftest.$ac_ext <<_ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9108 #include <windows.h>
9109 #include <mmsystem.h>
9114 return WOM_OPEN != 0x3BB
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121 (eval $ac_compile) 2>conftest.er1
9123 grep -v '^ *+' conftest.er1 >conftest.err
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -z "$ac_c_werror_flag"
9129 || test ! -s conftest.err'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; } &&
9135 { ac_try='test -s conftest.$ac_objext'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 timidity_cv_header_new_mmsystem=yes
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9146 timidity_cv_header_new_mmsystem=no
9148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9150 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9151 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9152 if test $timidity_cv_header_new_mmsystem = yes; then
9154 cat >>confdefs.h <<\_ACEOF
9155 #define HAVE_NEW_MMSYSTEM 1
9161 if test "x$MINGW" = xyes; then
9162 echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
9163 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
9164 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 cat >conftest.$ac_ext <<_ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9174 #include <windows.h>
9175 #include <mmsystem.h>
9180 return WOM_OPEN != 0x3BB
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187 (eval $ac_compile) 2>conftest.er1
9189 grep -v '^ *+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -z "$ac_c_werror_flag"
9195 || test ! -s conftest.err'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 timidity_cv_header_new_mmsystem=yes
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 timidity_cv_header_new_mmsystem=no
9214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9216 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9217 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9218 if test $timidity_cv_header_new_mmsystem = yes; then
9220 cat >>confdefs.h <<\_ACEOF
9221 #define HAVE_NEW_MMSYSTEM 1
9227 # Checks for library functions.
9228 echo "$as_me:$LINENO: checking for error_at_line" >&5
9229 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9230 if test "${ac_cv_lib_error_at_line+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 cat >conftest.$ac_ext <<_ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 $ac_includes_default
9243 error_at_line (0, 0, "", 0, "");
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>conftest.er1
9252 grep -v '^ *+' conftest.er1 >conftest.err
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -z "$ac_c_werror_flag"
9258 || test ! -s conftest.err'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 ac_cv_lib_error_at_line=yes
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_cv_lib_error_at_line=no
9277 rm -f conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9281 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9282 if test $ac_cv_lib_error_at_line = no; then
9284 "error.$ac_objext" | \
9285 *" error.$ac_objext" | \
9286 "error.$ac_objext "* | \
9287 *" error.$ac_objext "* ) ;;
9288 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9295 for ac_header in unistd.h vfork.h
9297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299 echo "$as_me:$LINENO: checking for $ac_header" >&5
9300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9307 # Is the header compilable?
9308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 $ac_includes_default
9317 #include <$ac_header>
9319 rm -f conftest.$ac_objext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9321 (eval $ac_compile) 2>conftest.er1
9323 grep -v '^ *+' conftest.er1 >conftest.err
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } &&
9328 { ac_try='test -z "$ac_c_werror_flag"
9329 || test ! -s conftest.err'
9330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; } &&
9335 { ac_try='test -s conftest.$ac_objext'
9336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
9341 ac_header_compiler=yes
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9346 ac_header_compiler=no
9348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9350 echo "${ECHO_T}$ac_header_compiler" >&6
9352 # Is the header present?
9353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9355 cat >conftest.$ac_ext <<_ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #include <$ac_header>
9363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9366 grep -v '^ *+' conftest.er1 >conftest.err
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } >/dev/null; then
9371 if test -s conftest.err; then
9372 ac_cpp_err=$ac_c_preproc_warn_flag
9373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9380 if test -z "$ac_cpp_err"; then
9381 ac_header_preproc=yes
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_header_preproc=no
9388 rm -f conftest.err conftest.$ac_ext
9389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9390 echo "${ECHO_T}$ac_header_preproc" >&6
9392 # So? What about this header?
9393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9399 ac_header_preproc=yes
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9416 ## ------------------------------- ##
9417 ## Report this to root@mput.dip.jp ##
9418 ## ------------------------------- ##
9421 sed "s/^/$as_me: WARNING: /" >&2
9424 echo "$as_me:$LINENO: checking for $ac_header" >&5
9425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 eval "$as_ac_Header=\$ac_header_preproc"
9431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9436 cat >>confdefs.h <<_ACEOF
9437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9446 for ac_func in fork vfork
9448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9449 echo "$as_me:$LINENO: checking for $ac_func" >&5
9450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9451 if eval "test \"\${$as_ac_var+set}\" = set"; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 cat >conftest.$ac_ext <<_ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9462 #define $ac_func innocuous_$ac_func
9464 /* System header to define __stub macros and hopefully few prototypes,
9465 which can conflict with char $ac_func (); below.
9466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9467 <limits.h> exists even on freestanding compilers. */
9470 # include <limits.h>
9472 # include <assert.h>
9477 /* Override any gcc2 internal prototype to avoid an error. */
9482 /* We use char because int might match the return type of a gcc2
9483 builtin and then its argument prototype would still apply. */
9485 /* The GNU C library defines this for functions which it implements
9486 to always fail with ENOSYS. Some functions are actually named
9487 something starting with __ and the normal name is an alias. */
9488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9491 char (*f) () = $ac_func;
9500 return f != $ac_func;
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507 (eval $ac_link) 2>conftest.er1
9509 grep -v '^ *+' conftest.er1 >conftest.err
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } &&
9514 { ac_try='test -z "$ac_c_werror_flag"
9515 || test ! -s conftest.err'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest$ac_exeext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9527 eval "$as_ac_var=yes"
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 eval "$as_ac_var=no"
9534 rm -f conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9539 if test `eval echo '${'$as_ac_var'}'` = yes; then
9540 cat >>confdefs.h <<_ACEOF
9541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9547 if test "x$ac_cv_func_fork" = xyes; then
9548 echo "$as_me:$LINENO: checking for working fork" >&5
9549 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9550 if test "${ac_cv_func_fork_works+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 if test "$cross_compiling" = yes; then
9554 ac_cv_func_fork_works=cross
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* By Ruediger Kuhlmann. */
9558 #include <sys/types.h>
9560 # include <unistd.h>
9562 /* Some systems only have a dummy stub for fork() */
9570 rm -f conftest$ac_exeext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_func_fork_works=yes
9583 echo "$as_me: program exited with status $ac_status" >&5
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_func_fork_works=no
9590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9593 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9594 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9597 ac_cv_func_fork_works=$ac_cv_func_fork
9599 if test "x$ac_cv_func_fork_works" = xcross; then
9601 *-*-amigaos* | *-*-msdosdjgpp*)
9602 # Override, as these systems have only a dummy fork() stub
9603 ac_cv_func_fork_works=no
9606 ac_cv_func_fork_works=yes
9609 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9610 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9612 ac_cv_func_vfork_works=$ac_cv_func_vfork
9613 if test "x$ac_cv_func_vfork" = xyes; then
9614 echo "$as_me:$LINENO: checking for working vfork" >&5
9615 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9616 if test "${ac_cv_func_vfork_works+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 if test "$cross_compiling" = yes; then
9620 ac_cv_func_vfork_works=cross
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 /* Thanks to Paul Eggert for this test. */
9631 #include <sys/types.h>
9632 #include <sys/stat.h>
9633 #include <sys/wait.h>
9635 # include <unistd.h>
9640 /* On some sparc systems, changes by the child to local and incoming
9641 argument registers are propagated back to the parent. The compiler
9642 is told about this with #include <vfork.h>, but some compilers
9643 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9644 static variable whose address is put into a register that is
9645 clobbered by the vfork. */
9648 sparc_address_test (int arg)
9650 sparc_address_test (arg) int arg;
9671 pid_t parent = getpid ();
9674 sparc_address_test (0);
9679 /* Here is another test for sparc vfork register problems. This
9680 test uses lots of local variables, at least as many local
9681 variables as main has allocated so far including compiler
9682 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9683 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9684 reuse the register of parent for one of the local variables,
9685 since it will think that parent can't possibly be used any more
9686 in this routine. Assigning to the local variable will thus
9687 munge parent in the parent process. */
9689 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9690 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9691 /* Convince the compiler that p..p7 are live; otherwise, it might
9692 use the same hardware register for all 8 local variables. */
9693 if (p != p1 || p != p2 || p != p3 || p != p4
9694 || p != p5 || p != p6 || p != p7)
9697 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9698 from child file descriptors. If the child closes a descriptor
9699 before it execs or exits, this munges the parent's descriptor
9700 as well. Test for this by closing stdout in the child. */
9701 _exit(close(fileno(stdout)) != 0);
9706 while (wait(&status) != child)
9709 /* Was there some problem with vforking? */
9712 /* Did the child fail? (This shouldn't happen.) */
9715 /* Did the vfork/compiler bug occur? */
9716 || parent != getpid()
9718 /* Did the file descriptor bug occur? */
9719 || fstat(fileno(stdout), &st) != 0
9724 rm -f conftest$ac_exeext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9726 (eval $ac_link) 2>&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_func_vfork_works=yes
9737 echo "$as_me: program exited with status $ac_status" >&5
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_cv_func_vfork_works=no
9744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9747 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9748 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9751 if test "x$ac_cv_func_fork_works" = xcross; then
9752 ac_cv_func_vfork_works=$ac_cv_func_vfork
9753 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9754 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9757 if test "x$ac_cv_func_vfork_works" = xyes; then
9759 cat >>confdefs.h <<\_ACEOF
9760 #define HAVE_WORKING_VFORK 1
9765 cat >>confdefs.h <<\_ACEOF
9770 if test "x$ac_cv_func_fork_works" = xyes; then
9772 cat >>confdefs.h <<\_ACEOF
9773 #define HAVE_WORKING_FORK 1
9778 echo "$as_me:$LINENO: checking for working memcmp" >&5
9779 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9780 if test "${ac_cv_func_memcmp_working+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 if test "$cross_compiling" = yes; then
9784 ac_cv_func_memcmp_working=no
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $ac_includes_default
9797 /* Some versions of memcmp are not 8-bit clean. */
9798 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9799 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9802 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9803 or more and with at least one buffer not starting on a 4-byte boundary.
9804 William Lewis provided this test program. */
9809 for (i = 0; i < 4; i++)
9813 strcpy (a, "--------01111111");
9814 strcpy (b, "--------10000000");
9815 if (memcmp (a, b, 16) >= 0)
9825 rm -f conftest$ac_exeext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827 (eval $ac_link) 2>&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_func_memcmp_working=yes
9838 echo "$as_me: program exited with status $ac_status" >&5
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_func_memcmp_working=no
9845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9848 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9849 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9850 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9851 "memcmp.$ac_objext" | \
9852 *" memcmp.$ac_objext" | \
9853 "memcmp.$ac_objext "* | \
9854 *" memcmp.$ac_objext "* ) ;;
9855 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9861 for ac_header in stdlib.h unistd.h
9863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9865 echo "$as_me:$LINENO: checking for $ac_header" >&5
9866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9873 # Is the header compilable?
9874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 $ac_includes_default
9883 #include <$ac_header>
9885 rm -f conftest.$ac_objext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887 (eval $ac_compile) 2>conftest.er1
9889 grep -v '^ *+' conftest.er1 >conftest.err
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest.$ac_objext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_header_compiler=yes
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_header_compiler=no
9914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9916 echo "${ECHO_T}$ac_header_compiler" >&6
9918 # Is the header present?
9919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9921 cat >conftest.$ac_ext <<_ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9927 #include <$ac_header>
9929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } >/dev/null; then
9937 if test -s conftest.err; then
9938 ac_cpp_err=$ac_c_preproc_warn_flag
9939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9946 if test -z "$ac_cpp_err"; then
9947 ac_header_preproc=yes
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_header_preproc=no
9954 rm -f conftest.err conftest.$ac_ext
9955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9956 echo "${ECHO_T}$ac_header_preproc" >&6
9958 # So? What about this header?
9959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9965 ac_header_preproc=yes
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9982 ## ------------------------------- ##
9983 ## Report this to root@mput.dip.jp ##
9984 ## ------------------------------- ##
9987 sed "s/^/$as_me: WARNING: /" >&2
9990 echo "$as_me:$LINENO: checking for $ac_header" >&5
9991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 eval "$as_ac_Header=\$ac_header_preproc"
9997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10011 for ac_func in getpagesize
10013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10014 echo "$as_me:$LINENO: checking for $ac_func" >&5
10015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10016 if eval "test \"\${$as_ac_var+set}\" = set"; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 cat >conftest.$ac_ext <<_ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10027 #define $ac_func innocuous_$ac_func
10029 /* System header to define __stub macros and hopefully few prototypes,
10030 which can conflict with char $ac_func (); below.
10031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10032 <limits.h> exists even on freestanding compilers. */
10035 # include <limits.h>
10037 # include <assert.h>
10042 /* Override any gcc2 internal prototype to avoid an error. */
10047 /* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10050 /* The GNU C library defines this for functions which it implements
10051 to always fail with ENOSYS. Some functions are actually named
10052 something starting with __ and the normal name is an alias. */
10053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10056 char (*f) () = $ac_func;
10065 return f != $ac_func;
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10072 (eval $ac_link) 2>conftest.er1
10074 grep -v '^ *+' conftest.er1 >conftest.err
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -z "$ac_c_werror_flag"
10080 || test ! -s conftest.err'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest$ac_exeext'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; }; then
10092 eval "$as_ac_var=yes"
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 eval "$as_ac_var=no"
10099 rm -f conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10104 if test `eval echo '${'$as_ac_var'}'` = yes; then
10105 cat >>confdefs.h <<_ACEOF
10106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10112 echo "$as_me:$LINENO: checking for working mmap" >&5
10113 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10114 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 if test "$cross_compiling" = yes; then
10118 ac_cv_func_mmap_fixed_mapped=no
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 /* malloc might have been renamed as rpl_malloc. */
10130 /* Thanks to Mike Haertel and Jim Avera for this test.
10131 Here is a matrix of mmap possibilities:
10132 mmap private not fixed
10133 mmap private fixed at somewhere currently unmapped
10134 mmap private fixed at somewhere already mapped
10135 mmap shared not fixed
10136 mmap shared fixed at somewhere currently unmapped
10137 mmap shared fixed at somewhere already mapped
10138 For private mappings, we should verify that changes cannot be read()
10139 back from the file, nor mmap's back from the file at a different
10140 address. (There have been systems where private was not correctly
10141 implemented like the infamous i386 svr4.0, and systems where the
10142 VM page cache was not coherent with the file system buffer cache
10143 like early versions of FreeBSD and possibly contemporary NetBSD.)
10144 For shared mappings, we should conversely verify that changes get
10145 propagated back to all the places they're supposed to be.
10147 Grep wants private fixed already mapped.
10148 The main things grep needs to know about mmap are:
10149 * does it exist and is it safe to write into the mmap'd area
10150 * how to use it (BSD variants) */
10153 #include <sys/mman.h>
10155 #if !STDC_HEADERS && !HAVE_STDLIB_H
10159 /* This mess was copied from the GNU getpagesize.h. */
10160 #if !HAVE_GETPAGESIZE
10161 /* Assume that all systems that can run configure have sys/param.h. */
10162 # if !HAVE_SYS_PARAM_H
10163 # define HAVE_SYS_PARAM_H 1
10166 # ifdef _SC_PAGESIZE
10167 # define getpagesize() sysconf(_SC_PAGESIZE)
10168 # else /* no _SC_PAGESIZE */
10169 # if HAVE_SYS_PARAM_H
10170 # include <sys/param.h>
10171 # ifdef EXEC_PAGESIZE
10172 # define getpagesize() EXEC_PAGESIZE
10173 # else /* no EXEC_PAGESIZE */
10175 # define getpagesize() NBPG * CLSIZE
10178 # endif /* no CLSIZE */
10179 # else /* no NBPG */
10181 # define getpagesize() NBPC
10182 # else /* no NBPC */
10184 # define getpagesize() PAGESIZE
10185 # endif /* PAGESIZE */
10186 # endif /* no NBPC */
10187 # endif /* no NBPG */
10188 # endif /* no EXEC_PAGESIZE */
10189 # else /* no HAVE_SYS_PARAM_H */
10190 # define getpagesize() 8192 /* punt totally */
10191 # endif /* no HAVE_SYS_PARAM_H */
10192 # endif /* no _SC_PAGESIZE */
10194 #endif /* no HAVE_GETPAGESIZE */
10199 char *data, *data2, *data3;
10203 pagesize = getpagesize ();
10205 /* First, make a file with some known garbage in it. */
10206 data = (char *) malloc (pagesize);
10209 for (i = 0; i < pagesize; ++i)
10210 *(data + i) = rand ();
10212 fd = creat ("conftest.mmap", 0600);
10215 if (write (fd, data, pagesize) != pagesize)
10219 /* Next, try to mmap the file at a fixed address which already has
10220 something else allocated at it. If we can, also make sure that
10221 we see the same garbage. */
10222 fd = open ("conftest.mmap", O_RDWR);
10225 data2 = (char *) malloc (2 * pagesize);
10228 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10229 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10230 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10232 for (i = 0; i < pagesize; ++i)
10233 if (*(data + i) != *(data2 + i))
10236 /* Finally, make sure that changes to the mapped area do not
10237 percolate back to the file as seen by read(). (This is a bug on
10238 some variants of i386 svr4.0.) */
10239 for (i = 0; i < pagesize; ++i)
10240 *(data2 + i) = *(data2 + i) + 1;
10241 data3 = (char *) malloc (pagesize);
10244 if (read (fd, data3, pagesize) != pagesize)
10246 for (i = 0; i < pagesize; ++i)
10247 if (*(data + i) != *(data3 + i))
10253 rm -f conftest$ac_exeext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10255 (eval $ac_link) 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_func_mmap_fixed_mapped=yes
10266 echo "$as_me: program exited with status $ac_status" >&5
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10270 ( exit $ac_status )
10271 ac_cv_func_mmap_fixed_mapped=no
10273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10276 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10277 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10278 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_MMAP 1
10285 rm -f conftest.mmap
10287 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10288 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10289 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 ac_cv_func_setvbuf_reversed=no
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10301 int (setvbuf) (FILE *, int, char *, size_t);
10306 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>conftest.er1
10315 grep -v '^ *+' conftest.er1 >conftest.err
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_c_werror_flag"
10321 || test ! -s conftest.err'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; } &&
10327 { ac_try='test -s conftest$ac_exeext'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 cat >conftest.$ac_ext <<_ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10341 int (setvbuf) (FILE *, int, char *, size_t);
10346 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10353 (eval $ac_link) 2>conftest.er1
10355 grep -v '^ *+' conftest.er1 >conftest.err
10357 cat conftest.err >&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } &&
10360 { ac_try='test -z "$ac_c_werror_flag"
10361 || test ! -s conftest.err'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest$ac_exeext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10373 # It compiles and links either way, so it must not be declared
10374 # with a prototype and most likely this is a K&R C compiler.
10376 if test "$cross_compiling" = yes; then
10377 : # Assume setvbuf is not reversed when cross-compiling.
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10389 /* This call has the arguments reversed.
10390 A reversed system may check and see that the address of buf
10391 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10393 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10396 exit (0); /* Non-reversed systems SEGV here. */
10401 rm -f conftest$ac_exeext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403 (eval $ac_link) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 ac_cv_func_setvbuf_reversed=yes
10414 echo "$as_me: program exited with status $ac_status" >&5
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ( exit $ac_status )
10421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10423 ac_cv_func_setvbuf_reversed=yes
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10429 rm -f conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10436 rm -f conftest.err conftest.$ac_objext \
10437 conftest$ac_exeext conftest.$ac_ext
10439 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10440 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10441 if test $ac_cv_func_setvbuf_reversed = yes; then
10443 cat >>confdefs.h <<\_ACEOF
10444 #define SETVBUF_REVERSED 1
10449 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10450 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10451 if test "${ac_cv_type_signal+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <sys/types.h>
10461 #include <signal.h>
10466 extern "C" void (*signal (int, void (*)(int)))(int);
10468 void (*signal ()) ();
10479 rm -f conftest.$ac_objext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481 (eval $ac_compile) 2>conftest.er1
10483 grep -v '^ *+' conftest.er1 >conftest.err
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag"
10489 || test ! -s conftest.err'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest.$ac_objext'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10501 ac_cv_type_signal=void
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 ac_cv_type_signal=int
10508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10510 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10511 echo "${ECHO_T}$ac_cv_type_signal" >&6
10513 cat >>confdefs.h <<_ACEOF
10514 #define RETSIGTYPE $ac_cv_type_signal
10519 for ac_func in vprintf
10521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10522 echo "$as_me:$LINENO: checking for $ac_func" >&5
10523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10524 if eval "test \"\${$as_ac_var+set}\" = set"; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10535 #define $ac_func innocuous_$ac_func
10537 /* System header to define __stub macros and hopefully few prototypes,
10538 which can conflict with char $ac_func (); below.
10539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10540 <limits.h> exists even on freestanding compilers. */
10543 # include <limits.h>
10545 # include <assert.h>
10550 /* Override any gcc2 internal prototype to avoid an error. */
10555 /* We use char because int might match the return type of a gcc2
10556 builtin and then its argument prototype would still apply. */
10558 /* The GNU C library defines this for functions which it implements
10559 to always fail with ENOSYS. Some functions are actually named
10560 something starting with __ and the normal name is an alias. */
10561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10564 char (*f) () = $ac_func;
10573 return f != $ac_func;
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10580 (eval $ac_link) 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try='test -z "$ac_c_werror_flag"
10588 || test ! -s conftest.err'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; } &&
10594 { ac_try='test -s conftest$ac_exeext'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 eval "$as_ac_var=yes"
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10605 eval "$as_ac_var=no"
10607 rm -f conftest.err conftest.$ac_objext \
10608 conftest$ac_exeext conftest.$ac_ext
10610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10612 if test `eval echo '${'$as_ac_var'}'` = yes; then
10613 cat >>confdefs.h <<_ACEOF
10614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10617 echo "$as_me:$LINENO: checking for _doprnt" >&5
10618 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10619 if test "${ac_cv_func__doprnt+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 cat >conftest.$ac_ext <<_ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10630 #define _doprnt innocuous__doprnt
10632 /* System header to define __stub macros and hopefully few prototypes,
10633 which can conflict with char _doprnt (); below.
10634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10635 <limits.h> exists even on freestanding compilers. */
10638 # include <limits.h>
10640 # include <assert.h>
10645 /* Override any gcc2 internal prototype to avoid an error. */
10650 /* We use char because int might match the return type of a gcc2
10651 builtin and then its argument prototype would still apply. */
10653 /* The GNU C library defines this for functions which it implements
10654 to always fail with ENOSYS. Some functions are actually named
10655 something starting with __ and the normal name is an alias. */
10656 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10659 char (*f) () = _doprnt;
10668 return f != _doprnt;
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10675 (eval $ac_link) 2>conftest.er1
10677 grep -v '^ *+' conftest.er1 >conftest.err
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag"
10683 || test ! -s conftest.err'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; } &&
10689 { ac_try='test -s conftest$ac_exeext'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 ac_cv_func__doprnt=yes
10697 echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10700 ac_cv_func__doprnt=no
10702 rm -f conftest.err conftest.$ac_objext \
10703 conftest$ac_exeext conftest.$ac_ext
10705 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10706 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10707 if test $ac_cv_func__doprnt = yes; then
10709 cat >>confdefs.h <<\_ACEOF
10710 #define HAVE_DOPRNT 1
10787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10788 echo "$as_me:$LINENO: checking for $ac_func" >&5
10789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10790 if eval "test \"\${$as_ac_var+set}\" = set"; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 cat >conftest.$ac_ext <<_ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10801 #define $ac_func innocuous_$ac_func
10803 /* System header to define __stub macros and hopefully few prototypes,
10804 which can conflict with char $ac_func (); below.
10805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10806 <limits.h> exists even on freestanding compilers. */
10809 # include <limits.h>
10811 # include <assert.h>
10816 /* Override any gcc2 internal prototype to avoid an error. */
10821 /* We use char because int might match the return type of a gcc2
10822 builtin and then its argument prototype would still apply. */
10824 /* The GNU C library defines this for functions which it implements
10825 to always fail with ENOSYS. Some functions are actually named
10826 something starting with __ and the normal name is an alias. */
10827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10830 char (*f) () = $ac_func;
10839 return f != $ac_func;
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>conftest.er1
10848 grep -v '^ *+' conftest.er1 >conftest.err
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag"
10854 || test ! -s conftest.err'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 eval "$as_ac_var=yes"
10868 echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10871 eval "$as_ac_var=no"
10873 rm -f conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10878 if test `eval echo '${'$as_ac_var'}'` = yes; then
10879 cat >>confdefs.h <<_ACEOF
10880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10886 echo "$as_me:$LINENO: checking for getopt_long" >&5
10887 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10888 if test "${ac_cv_func_getopt_long+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 cat >conftest.$ac_ext <<_ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10899 #define getopt_long innocuous_getopt_long
10901 /* System header to define __stub macros and hopefully few prototypes,
10902 which can conflict with char getopt_long (); below.
10903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10904 <limits.h> exists even on freestanding compilers. */
10907 # include <limits.h>
10909 # include <assert.h>
10914 /* Override any gcc2 internal prototype to avoid an error. */
10919 /* We use char because int might match the return type of a gcc2
10920 builtin and then its argument prototype would still apply. */
10921 char getopt_long ();
10922 /* The GNU C library defines this for functions which it implements
10923 to always fail with ENOSYS. Some functions are actually named
10924 something starting with __ and the normal name is an alias. */
10925 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10928 char (*f) () = getopt_long;
10937 return f != getopt_long;
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944 (eval $ac_link) 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest$ac_exeext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_func_getopt_long=yes
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_cv_func_getopt_long=no
10971 rm -f conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10974 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10975 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10976 if test $ac_cv_func_getopt_long = yes; then
10978 cat >>confdefs.h <<\_ACEOF
10979 #define HAVE_GETOPT_LONG 1
10982 tm_cv_needgetopt="no"
10984 tm_cv_needgetopt="yes"
10989 if test "x$tm_cv_needgetopt" = "xyes"; then
10991 NEEDGETOPT_FALSE='#'
10993 NEEDGETOPT_TRUE='#'
10999 if test "x$CYGNUS" = xyes; then
11000 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
11002 echo "$as_me:$LINENO: checking for opendir" >&5
11003 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11004 if test "${ac_cv_func_opendir+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11015 #define opendir innocuous_opendir
11017 /* System header to define __stub macros and hopefully few prototypes,
11018 which can conflict with char opendir (); below.
11019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020 <limits.h> exists even on freestanding compilers. */
11023 # include <limits.h>
11025 # include <assert.h>
11030 /* Override any gcc2 internal prototype to avoid an error. */
11035 /* We use char because int might match the return type of a gcc2
11036 builtin and then its argument prototype would still apply. */
11038 /* The GNU C library defines this for functions which it implements
11039 to always fail with ENOSYS. Some functions are actually named
11040 something starting with __ and the normal name is an alias. */
11041 #if defined (__stub_opendir) || defined (__stub___opendir)
11044 char (*f) () = opendir;
11053 return f != opendir;
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>conftest.er1
11062 grep -v '^ *+' conftest.er1 >conftest.err
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
11067 { ac_try='test -z "$ac_c_werror_flag"
11068 || test ! -s conftest.err'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest$ac_exeext'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_cv_func_opendir=yes
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_cv_func_opendir=no
11087 rm -f conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11090 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11091 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11092 if test $ac_cv_func_opendir = yes; then
11095 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11100 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11104 if test "x$enable_network" = "xyes"; then
11105 echo "$as_me:$LINENO: checking for socket" >&5
11106 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11107 if test "${ac_cv_func_socket+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11118 #define socket innocuous_socket
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char socket (); below.
11122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123 <limits.h> exists even on freestanding compilers. */
11126 # include <limits.h>
11128 # include <assert.h>
11133 /* Override any gcc2 internal prototype to avoid an error. */
11138 /* We use char because int might match the return type of a gcc2
11139 builtin and then its argument prototype would still apply. */
11141 /* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
11144 #if defined (__stub_socket) || defined (__stub___socket)
11147 char (*f) () = socket;
11156 return f != socket;
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>conftest.er1
11165 grep -v '^ *+' conftest.er1 >conftest.err
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag"
11171 || test ! -s conftest.err'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; } &&
11177 { ac_try='test -s conftest$ac_exeext'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 ac_cv_func_socket=yes
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_cv_func_socket=no
11190 rm -f conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11193 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11194 echo "${ECHO_T}$ac_cv_func_socket" >&6
11195 if test $ac_cv_func_socket = yes; then
11198 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11199 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11200 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11201 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 ac_save_LIBS="$LIBS"
11205 LIBS="-lwsock32 $LIBS"
11206 cat >conftest.$ac_ext <<_ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 #include <windows.h>
11213 #include <winsock.h>
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
11227 grep -v '^ *+' conftest.er1 >conftest.err
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 eval "wapi_cv_lib_$ac_lib_var=yes"
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 eval "wapi_cv_lib_$ac_lib_var=no"
11252 rm -f conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 LIBS="$ac_save_LIBS"
11257 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11258 echo "$as_me:$LINENO: result: yes" >&5
11259 echo "${ECHO_T}yes" >&6
11260 EXTRALIBS="$EXTRALIBS -lwsock32"
11261 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11263 echo "$as_me:$LINENO: result: no" >&5
11264 echo "${ECHO_T}no" >&6
11273 if test "x$CYGWIN" = xyes; then
11274 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
11276 echo "$as_me:$LINENO: checking for opendir" >&5
11277 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11278 if test "${ac_cv_func_opendir+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11289 #define opendir innocuous_opendir
11291 /* System header to define __stub macros and hopefully few prototypes,
11292 which can conflict with char opendir (); below.
11293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11294 <limits.h> exists even on freestanding compilers. */
11297 # include <limits.h>
11299 # include <assert.h>
11304 /* Override any gcc2 internal prototype to avoid an error. */
11309 /* We use char because int might match the return type of a gcc2
11310 builtin and then its argument prototype would still apply. */
11312 /* The GNU C library defines this for functions which it implements
11313 to always fail with ENOSYS. Some functions are actually named
11314 something starting with __ and the normal name is an alias. */
11315 #if defined (__stub_opendir) || defined (__stub___opendir)
11318 char (*f) () = opendir;
11327 return f != opendir;
11332 rm -f conftest.$ac_objext conftest$ac_exeext
11333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11334 (eval $ac_link) 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -z "$ac_c_werror_flag"
11342 || test ! -s conftest.err'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest$ac_exeext'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 ac_cv_func_opendir=yes
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 ac_cv_func_opendir=no
11361 rm -f conftest.err conftest.$ac_objext \
11362 conftest$ac_exeext conftest.$ac_ext
11364 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11365 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11366 if test $ac_cv_func_opendir = yes; then
11369 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11374 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11378 if test "x$enable_network" = "xyes"; then
11379 echo "$as_me:$LINENO: checking for socket" >&5
11380 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11381 if test "${ac_cv_func_socket+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11392 #define socket innocuous_socket
11394 /* System header to define __stub macros and hopefully few prototypes,
11395 which can conflict with char socket (); below.
11396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11397 <limits.h> exists even on freestanding compilers. */
11400 # include <limits.h>
11402 # include <assert.h>
11407 /* Override any gcc2 internal prototype to avoid an error. */
11412 /* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined (__stub_socket) || defined (__stub___socket)
11421 char (*f) () = socket;
11430 return f != socket;
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11437 (eval $ac_link) 2>conftest.er1
11439 grep -v '^ *+' conftest.er1 >conftest.err
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
11444 { ac_try='test -z "$ac_c_werror_flag"
11445 || test ! -s conftest.err'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest$ac_exeext'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_func_socket=yes
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_cv_func_socket=no
11464 rm -f conftest.err conftest.$ac_objext \
11465 conftest$ac_exeext conftest.$ac_ext
11467 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11468 echo "${ECHO_T}$ac_cv_func_socket" >&6
11469 if test $ac_cv_func_socket = yes; then
11472 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11473 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11474 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11475 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 ac_save_LIBS="$LIBS"
11479 LIBS="-lwsock32 $LIBS"
11480 cat >conftest.$ac_ext <<_ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11486 #include <windows.h>
11487 #include <winsock.h>
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499 (eval $ac_link) 2>conftest.er1
11501 grep -v '^ *+' conftest.er1 >conftest.err
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_c_werror_flag"
11507 || test ! -s conftest.err'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; } &&
11513 { ac_try='test -s conftest$ac_exeext'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11519 eval "wapi_cv_lib_$ac_lib_var=yes"
11521 echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11524 eval "wapi_cv_lib_$ac_lib_var=no"
11526 rm -f conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS="$ac_save_LIBS"
11531 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11532 echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6
11534 EXTRALIBS="$EXTRALIBS -lwsock32"
11535 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11537 echo "$as_me:$LINENO: result: no" >&5
11538 echo "${ECHO_T}no" >&6
11546 # Checks on extra paths
11549 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11550 if test "${with_tcl_includes+set}" = set; then
11551 withval="$with_tcl_includes"
11552 if test ! -d $withval; then
11553 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11554 echo "$as_me: WARNING: $withval is not found." >&2;}
11556 tcl_include_dir="-I$withval"
11560 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11561 if test "${with_tcl_libs+set}" = set; then
11562 withval="$with_tcl_libs"
11563 if test ! -d $withval; then
11564 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11565 echo "$as_me: WARNING: $withval is not found." >&2;}
11567 tcl_libdir="-L$withval"
11570 # Check whether --with-tk-includes or --without-tk-includes was given.
11571 if test "${with_tk_includes+set}" = set; then
11572 withval="$with_tk_includes"
11573 if test ! -d $withval; then
11574 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11575 echo "$as_me: WARNING: $withval is not found." >&2;}
11577 tk_includes="-I$withval"
11580 # Check whether --with-tk-libs or --without-tk-libs was given.
11581 if test "${with_tk_libs+set}" = set; then
11582 withval="$with_tk_libs"
11583 if test ! -d $withval; then
11584 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11585 echo "$as_me: WARNING: $withval is not found." >&2;}
11587 tk_libdir="-L$withval"
11591 # Check whether --with-offix-includes or --without-offix-includes was given.
11592 if test "${with_offix_includes+set}" = set; then
11593 withval="$with_offix_includes"
11594 if test ! -d $withval; then
11595 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11596 echo "$as_me: WARNING: $withval is not found." >&2;}
11598 offix_include_dir="-I$withval"
11601 # Check whether --with-offix-libs or --without-offix-libs was given.
11602 if test "${with_offix_libs+set}" = set; then
11603 withval="$with_offix_libs"
11604 if test ! -d $withval; then
11605 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11606 echo "$as_me: WARNING: $withval is not found." >&2;}
11608 offix_lib_dir="-L$withval"
11616 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11619 # Check whether --with-nas-library or --without-nas-library was given.
11620 if test "${with_nas_library+set}" = set; then
11621 withval="$with_nas_library"
11625 # Check whether --with-nas-includes or --without-nas-includes was given.
11626 if test "${with_nas_includes+set}" = set; then
11627 withval="$with_nas_includes"
11632 # Check whether --enable-audio or --disable-audio was given.
11633 if test "${enable_audio+set}" = set; then
11634 enableval="$enable_audio"
11635 enable_audio=$enableval
11642 test "x$enable_audio" = xyes && enable_audio=default
11644 if test "x$enable_audio" != xno; then
11645 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11646 eval "au_enable_$i=yes"
11652 # Check whether --with-default-output or --without-default-output was given.
11653 if test "${with_default_output+set}" = set; then
11654 withval="$with_default_output"
11655 if test "$enable_audio" != no; then
11656 DEFAULT_PLAYMODE=$withval
11657 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11659 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11660 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11665 if test "x$au_enable_default" = xyes; then
11667 *-*-linux*|*-*-freebsd*)
11671 au_enable_sb_dsp=yes
11673 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11701 au_enable_darwin=yes
11704 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11705 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11711 # Each audio mode's configurations
11712 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11713 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11714 if test "x$au_enable_oss" = xyes; then
11715 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11716 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11717 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11718 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11719 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11723 echo "$as_me:$LINENO: result: yes" >&5
11724 echo "${ECHO_T}yes" >&6
11727 if test "x$ac_cv_header_soundcard_h" = xyes; then
11728 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11729 echo "${ECHO_T}yes - <soundcard.h>" >&6
11731 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11732 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11738 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11739 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11740 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 ac_check_lib_save_LIBS=$LIBS
11744 LIBS="-lossaudio $LIBS"
11745 cat >conftest.$ac_ext <<_ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11752 /* Override any gcc2 internal prototype to avoid an error. */
11756 /* We use char because int might match the return type of a gcc2
11757 builtin and then its argument prototype would still apply. */
11767 rm -f conftest.$ac_objext conftest$ac_exeext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11769 (eval $ac_link) 2>conftest.er1
11771 grep -v '^ *+' conftest.er1 >conftest.err
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag"
11777 || test ! -s conftest.err'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; } &&
11783 { ac_try='test -s conftest$ac_exeext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 ac_cv_lib_ossaudio_open=yes
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_cv_lib_ossaudio_open=no
11796 rm -f conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11798 LIBS=$ac_check_lib_save_LIBS
11800 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11801 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11802 if test $ac_cv_lib_ossaudio_open = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 #define HAVE_LIBOSSAUDIO 1
11807 LIBS="-lossaudio $LIBS"
11814 if test ! -e "/dev/dsp"; then
11815 oss_device=/dev/audio
11820 echo "$as_me:$LINENO: result: no" >&5
11821 echo "${ECHO_T}no" >&6
11824 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11825 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11826 if test "x$au_enable_sun" = xyes; then
11829 if test -f /usr/demo/SOUND/libaudio.a; then
11830 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11831 echo "$as_me:$LINENO: result: yes" >&5
11832 echo "${ECHO_T}yes" >&6
11834 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11835 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11839 if test -f /usr/demo/SOUND/lib/libaudio.a; then
11840 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11841 echo "$as_me:$LINENO: result: yes" >&5
11842 echo "${ECHO_T}yes" >&6
11844 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11845 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11848 *) echo "$as_me:$LINENO: result: yes" >&5
11849 echo "${ECHO_T}yes" >&6
11852 EXTRADEFS="$EXTRADEFS -DAU_SUN"
11853 SYSEXTRAS="$SYSEXTRAS sun_a.c"
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11859 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11860 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11861 if test "x$au_enable_hpux" = xyes; then
11863 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11864 echo "${ECHO_T}yes" >&6 ;;
11865 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11866 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11868 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11869 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11871 echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11875 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11876 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11877 if test "x$au_enable_irix" = xyes; then
11879 *-sgi-irix5*|*-sgi-irix6.2)
11880 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11881 echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11885 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11886 echo "$as_me:$LINENO: result: yes" >&5
11887 echo "${ECHO_T}yes" >&6
11889 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11890 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11892 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11893 EXTRALIBS="$EXTRASLIBS -laudio"
11895 echo "$as_me:$LINENO: result: no" >&5
11896 echo "${ECHO_T}no" >&6
11899 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11900 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11901 if test "x$au_enable_mme" = xyes; then
11903 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11904 echo "${ECHO_T}yes" >&6 ;;
11905 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11906 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11908 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11909 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11910 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11911 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11913 echo "$as_me:$LINENO: result: no" >&5
11914 echo "${ECHO_T}no" >&6
11917 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11918 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11919 if test "x$au_enable_sb_dsp" = xyes; then
11921 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11922 echo "${ECHO_T}yes" >&6 ;;
11923 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11924 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11926 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11927 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11929 echo "$as_me:$LINENO: result: no" >&5
11930 echo "${ECHO_T}no" >&6
11933 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11934 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11935 if test "x$au_enable_w32" = xyes; then
11938 echo "$as_me:$LINENO: result: yes" >&5
11939 echo "${ECHO_T}yes" >&6
11942 echo "$as_me:$LINENO: result: yes" >&5
11943 echo "${ECHO_T}yes" >&6
11946 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11947 echo "$as_me: WARNING: may not work on $target" >&2;}
11950 SYSEXTRAS="$SYSEXTRAS w32_a.c"
11951 EXTRALIBS="$EXTRALIBS -lwinmm"
11952 EXTRADEFS="$EXTRADEFS -DAU_W32"
11954 echo "$as_me:$LINENO: result: no" >&5
11955 echo "${ECHO_T}no" >&6
11958 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11959 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11960 if test "x$au_enable_darwin" = xyes; then
11961 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11962 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11963 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11966 echo "$as_me:$LINENO: result: yes" >&5
11967 echo "${ECHO_T}yes" >&6;;
11969 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11970 echo "$as_me: WARNING: may not work on $target" >&2;}
11974 echo "$as_me:$LINENO: result: no" >&5
11975 echo "${ECHO_T}no" >&6
11979 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11980 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11981 if test "x$au_enable_alsa" = xyes; then
11982 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11983 echo "${ECHO_T}yes, configuring alsa" >&6
11986 KEEPLDFLAGS=$LDFLAGS
11987 alsa_save_CFLAGS="$CFLAGS"
11988 alsa_save_LDFLAGS="$LDFLAGS"
11989 alsa_save_LIBS="$LIBS"
11993 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11994 if test "${with_alsa_prefix+set}" = set; then
11995 withval="$with_alsa_prefix"
11996 alsa_prefix="$withval"
12002 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
12003 if test "${with_alsa_inc_prefix+set}" = set; then
12004 withval="$with_alsa_inc_prefix"
12005 alsa_inc_prefix="$withval"
12010 # Check whether --enable-alsatest or --disable-alsatest was given.
12011 if test "${enable_alsatest+set}" = set; then
12012 enableval="$enable_alsatest"
12015 enable_alsatest=yes
12018 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12019 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12020 if test "$alsa_inc_prefix" != "" ; then
12021 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12022 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12024 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12025 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12027 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12028 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12029 if test "$alsa_prefix" != "" ; then
12030 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12031 LDFLAGS="$LDFLAGS $ALSA_LIBS"
12034 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12035 LIBS=`echo $LIBS | sed 's/-lm//'`
12036 LIBS=`echo $LIBS | sed 's/-ldl//'`
12037 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12038 LIBS=`echo $LIBS | sed 's/ //'`
12039 LIBS="$ALSA_LIBS $LIBS"
12040 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12041 echo "${ECHO_T}$ALSA_LIBS" >&6
12043 min_alsa_version=0.1.1
12044 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12045 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12047 alsa_min_major_version=`echo $min_alsa_version | \
12048 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12049 alsa_min_minor_version=`echo $min_alsa_version | \
12050 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12051 alsa_min_micro_version=`echo $min_alsa_version | \
12052 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12058 ac_cpp='$CPP $CPPFLAGS'
12059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12063 cat >conftest.$ac_ext <<_ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12070 #include <alsa/asoundlib.h>
12076 /* ensure backward compatibility */
12077 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12078 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12080 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12081 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12083 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12084 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12087 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12090 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12091 # error not present
12094 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12097 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12098 # error not present
12101 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12102 # error not present
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_c_werror_flag"
12122 || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest.$ac_objext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 echo "$as_me:$LINENO: result: found." >&5
12135 echo "${ECHO_T}found." >&6
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12147 #include <sys/asoundlib.h>
12153 /* ensure backward compatibility */
12154 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12155 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12157 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12158 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12160 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12161 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12164 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12167 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12168 # error not present
12171 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12174 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12175 # error not present
12178 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12179 # error not present
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag"
12199 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest.$ac_objext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 echo "$as_me:$LINENO: result: found." >&5
12212 echo "${ECHO_T}found." >&6
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 echo "$as_me:$LINENO: result: not present." >&5
12218 echo "${ECHO_T}not present." >&6
12219 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12220 echo "${ECHO_T}libasound was not found anywhere." >&6
12223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12224 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12225 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12230 ac_cpp='$CPP $CPPFLAGS'
12231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12237 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12238 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12239 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-lasound $LIBS"
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 /* Override any gcc2 internal prototype to avoid an error. */
12255 /* We use char because int might match the return type of a gcc2
12256 builtin and then its argument prototype would still apply. */
12257 char snd_ctl_open ();
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>conftest.er1
12270 grep -v '^ *+' conftest.er1 >conftest.err
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_lib_asound_snd_ctl_open=yes
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ac_cv_lib_asound_snd_ctl_open=no
12295 rm -f conftest.err conftest.$ac_objext \
12296 conftest$ac_exeext conftest.$ac_ext
12297 LIBS=$ac_check_lib_save_LIBS
12299 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12300 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12301 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12302 cat >>confdefs.h <<_ACEOF
12303 #define HAVE_LIBASOUND 1
12306 LIBS="-lasound $LIBS"
12309 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12310 echo "${ECHO_T}No linkable libasound was found." >&6
12316 if test "x$alsa_found" = "xyes" ; then
12318 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12319 LIBS=`echo $LIBS | sed 's/ //'`
12320 LIBS="-lasound $LIBS"
12323 CFLAGS="$alsa_save_CFLAGS"
12324 LDFLAGS="$alsa_save_LDFLAGS"
12325 LIBS="$alsa_save_LIBS"
12333 if test "x$alsa_found" = "xyes" ; then
12334 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12335 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12336 for f in $ALSA_CFLAGS; do
12338 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12339 *) CFLAGS="$CPPFLAGS $f" ;;
12343 LIBS="$LIBS $ALSA_LIBS"
12345 for ac_func in snd_seq_port_info_set_timestamping
12347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12348 echo "$as_me:$LINENO: checking for $ac_func" >&5
12349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12350 if eval "test \"\${$as_ac_var+set}\" = set"; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 cat >conftest.$ac_ext <<_ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12361 #define $ac_func innocuous_$ac_func
12363 /* System header to define __stub macros and hopefully few prototypes,
12364 which can conflict with char $ac_func (); below.
12365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12366 <limits.h> exists even on freestanding compilers. */
12369 # include <limits.h>
12371 # include <assert.h>
12376 /* Override any gcc2 internal prototype to avoid an error. */
12381 /* We use char because int might match the return type of a gcc2
12382 builtin and then its argument prototype would still apply. */
12384 /* The GNU C library defines this for functions which it implements
12385 to always fail with ENOSYS. Some functions are actually named
12386 something starting with __ and the normal name is an alias. */
12387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12390 char (*f) () = $ac_func;
12399 return f != $ac_func;
12404 rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12406 (eval $ac_link) 2>conftest.er1
12408 grep -v '^ *+' conftest.er1 >conftest.err
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -z "$ac_c_werror_flag"
12414 || test ! -s conftest.err'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try='test -s conftest$ac_exeext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 eval "$as_ac_var=yes"
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 eval "$as_ac_var=no"
12433 rm -f conftest.err conftest.$ac_objext \
12434 conftest$ac_exeext conftest.$ac_ext
12436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12438 if test `eval echo '${'$as_ac_var'}'` = yes; then
12439 cat >>confdefs.h <<_ACEOF
12440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12447 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12448 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12451 LDFLAGS=$KEEPLDFLAGS
12454 echo "$as_me:$LINENO: result: no" >&5
12455 echo "${ECHO_T}no" >&6
12458 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12459 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12460 if test "x$au_enable_alib" = xyes; then
12462 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12463 echo "${ECHO_T}yes" >&6 ;;
12464 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12465 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12467 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12468 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12469 if test -d /opt/audio/include; then
12470 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12472 if test -d /opt/audio/lib; then
12473 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12475 EXTRALIBS="$EXTRALIBS -lAlib"
12477 echo "$as_me:$LINENO: result: no" >&5
12478 echo "${ECHO_T}no" >&6
12481 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12482 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12483 if test "x$au_enable_nas" = xyes; then
12484 if test "x$with_x" != xyes; then
12485 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12486 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12487 { (exit 1); exit 1; }; }
12489 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12490 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12493 if test "x$with_nas_library" != x; then
12494 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12495 echo "${ECHO_T}$with_nas_library" >&6;
12496 EXTRALIBS="$EXTRALIBS $with_nas_library"
12498 echo "$as_me:$LINENO: result: " >&5
12499 echo "${ECHO_T}" >&6
12500 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12501 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12502 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 ac_func_search_save_LIBS="$LIBS"
12506 timidity_cv_search_AuOpenServer="no"
12507 for i in $x_libraries/libaudio.a \
12508 /usr/lib/libaudio.so \
12509 /usr/lib/libaudio.a ; do
12510 LIBS="$i $ac_func_search_save_LIBS"
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12518 /* Override any gcc2 internal prototype to avoid an error. */
12522 /* We use char because int might match the return type of a gcc2
12523 builtin and then its argument prototype would still apply. */
12524 char AuOpenServer ();
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12535 (eval $ac_link) 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag"
12543 || test ! -s conftest.err'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest$ac_exeext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 timidity_cv_search_AuOpenServer="$i"; break
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12561 rm -f conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12564 LIBS="$ac_func_search_save_LIBS"
12566 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12567 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12568 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12569 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12570 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12571 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12573 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12574 echo "$as_me: WARNING: NAS library is not found." >&2;}
12577 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12579 if test "x$have_xext" = xyes; then
12580 lib_xext_opt=-lXext
12582 if test "x$have_xprelibs" = xyes; then
12583 lib_xprelibs_opt='-lSM -lICE'
12586 echo "$as_me:$LINENO: result: no" >&5
12587 echo "${ECHO_T}no" >&6
12590 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12591 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12592 if test "x$au_enable_arts" = xyes; then
12593 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12594 echo "${ECHO_T}yes, configuring aRts" >&6
12597 KEEPLDFLAGS=$LDFLAGS
12599 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12600 if test "${with_arts_prefix+set}" = set; then
12601 withval="$with_arts_prefix"
12602 arts_prefix="$withval"
12606 # Check whether --enable-artstest or --disable-artstest was given.
12607 if test "${enable_artstest+set}" = set; then
12608 enableval="$enable_artstest"
12611 enable_artstest=yes
12614 if test x$arts_prefix != x ; then
12615 arts_args="$arts_args --prefix=$arts_prefix"
12616 if test x${ARTS_CONFIG+set} != xset ; then
12617 ARTS_CONFIG=$arts_prefix/bin/artsc-config
12621 # Extract the first word of "artsc-config", so it can be a program name with args.
12622 set dummy artsc-config; ac_word=$2
12623 echo "$as_me:$LINENO: checking for $ac_word" >&5
12624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12625 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 case $ARTS_CONFIG in
12630 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12637 test -z "$as_dir" && as_dir=.
12638 for ac_exec_ext in '' $ac_executable_extensions; do
12639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12640 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12651 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12653 if test -n "$ARTS_CONFIG"; then
12654 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12655 echo "${ECHO_T}$ARTS_CONFIG" >&6
12657 echo "$as_me:$LINENO: result: no" >&5
12658 echo "${ECHO_T}no" >&6
12661 min_arts_version=0.9.5
12662 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12663 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12665 if test "$ARTS_CONFIG" = "no" ; then
12668 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12669 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12671 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12672 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12673 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12674 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12675 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12677 if test "x$enable_artstest" = "xyes" ; then
12678 ac_save_CFLAGS="$CFLAGS"
12679 ac_save_LIBS="$LIBS"
12680 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12681 LIBS="$LIBS $ARTS_LIBS"
12682 rm -f conf.artstest
12683 if test "$cross_compiling" = yes; then
12684 echo $ac_n "cross compiling; assumed OK... $ac_c"
12686 cat >conftest.$ac_ext <<_ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12694 #include <stdlib.h>
12695 #include <string.h>
12699 my_strdup (char *str)
12705 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12706 strcpy (new_str, str);
12716 int major, minor, micro;
12719 system ("touch conf.artstest");
12721 /* HP/UX 9 (%@#!) writes to sscanf strings */
12722 tmp_version = my_strdup("$min_arts_version");
12723 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12724 printf("%s, bad version string\n", "$min_arts_version");
12728 if (($arts_major_version > major) ||
12729 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12730 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12736 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12737 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12738 printf("*** best to upgrade to the required version.\n");
12739 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12740 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12741 printf("*** config.cache before re-running configure\n");
12748 rm -f conftest$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750 (eval $ac_link) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12761 echo "$as_me: program exited with status $ac_status" >&5
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ( exit $ac_status )
12768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12770 CFLAGS="$ac_save_CFLAGS"
12771 LIBS="$ac_save_LIBS"
12774 if test "x$no_arts" = x ; then
12775 echo "$as_me:$LINENO: result: yes" >&5
12776 echo "${ECHO_T}yes" >&6
12779 echo "$as_me:$LINENO: result: no" >&5
12780 echo "${ECHO_T}no" >&6
12781 if test "$ARTS_CONFIG" = "no" ; then
12782 echo "*** The artsc-config script installed by ARTS could not be found"
12783 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12784 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12785 echo "*** full path to artsc-config."
12787 if test -f conf.artstest ; then
12790 echo "*** Could not run ARTS test program, checking why..."
12791 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12792 LIBS="$LIBS $ARTS_LIBS"
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12811 rm -f conftest.$ac_objext conftest$ac_exeext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12813 (eval $ac_link) 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 { ac_try='test -z "$ac_c_werror_flag"
12821 || test ! -s conftest.err'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest$ac_exeext'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 echo "*** The test program compiled, but did not run. This usually means"
12834 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12835 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12836 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12837 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12838 echo "*** is required on your system"
12840 echo "*** If you have an old version installed, it is best to remove it, although"
12841 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 echo "*** The test program failed to compile or link. See the file config.log for the"
12847 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12848 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12849 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12851 rm -f conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12853 CFLAGS="$ac_save_CFLAGS"
12854 LIBS="$ac_save_LIBS"
12863 rm -f conf.artstest
12867 LDFLAGS=$KEEPLDFLAGS
12868 if test "x$no_arts" = x; then
12869 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12870 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12871 for f in $ARTS_CFLAGS; do
12873 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12874 *) CFLAGS="$CPPFLAGS $f" ;;
12878 LIBS="$LIBS $ARTS_LIBS"
12880 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12881 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12884 echo "$as_me:$LINENO: result: no" >&5
12885 echo "${ECHO_T}no" >&6
12888 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12889 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12890 if test "x$au_enable_esd" = xyes; then
12891 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12892 echo "${ECHO_T}yes, configuring esd" >&6
12895 KEEPLDFLAGS=$LDFLAGS
12897 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12898 if test "${with_esd_prefix+set}" = set; then
12899 withval="$with_esd_prefix"
12900 esd_prefix="$withval"
12905 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12906 if test "${with_esd_exec_prefix+set}" = set; then
12907 withval="$with_esd_exec_prefix"
12908 esd_exec_prefix="$withval"
12912 # Check whether --enable-esdtest or --disable-esdtest was given.
12913 if test "${enable_esdtest+set}" = set; then
12914 enableval="$enable_esdtest"
12920 if test x$esd_exec_prefix != x ; then
12921 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12922 if test x${ESD_CONFIG+set} != xset ; then
12923 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12926 if test x$esd_prefix != x ; then
12927 esd_args="$esd_args --prefix=$esd_prefix"
12928 if test x${ESD_CONFIG+set} != xset ; then
12929 ESD_CONFIG=$esd_prefix/bin/esd-config
12933 # Extract the first word of "esd-config", so it can be a program name with args.
12934 set dummy esd-config; ac_word=$2
12935 echo "$as_me:$LINENO: checking for $ac_word" >&5
12936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12937 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 case $ESD_CONFIG in
12942 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12959 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12963 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12965 if test -n "$ESD_CONFIG"; then
12966 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12967 echo "${ECHO_T}$ESD_CONFIG" >&6
12969 echo "$as_me:$LINENO: result: no" >&5
12970 echo "${ECHO_T}no" >&6
12973 min_esd_version=0.2.7
12974 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12975 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12977 if test "$ESD_CONFIG" = "no" ; then
12983 ac_cpp='$CPP $CPPFLAGS'
12984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12989 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12991 esd_major_version=`$ESD_CONFIG $esd_args --version | \
12992 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12993 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12994 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12995 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12997 if test "x$enable_esdtest" = "xyes" ; then
12998 ac_save_CFLAGS="$CFLAGS"
12999 ac_save_LIBS="$LIBS"
13000 CFLAGS="$CFLAGS $ESD_CFLAGS"
13001 LIBS="$LIBS $ESD_LIBS"
13003 if test "$cross_compiling" = yes; then
13004 echo $ac_n "cross compiling; assumed OK... $ac_c"
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13014 #include <stdlib.h>
13015 #include <string.h>
13019 my_strdup (char *str)
13025 new_str = malloc ((strlen (str) + 1) * sizeof(char));
13026 strcpy (new_str, str);
13036 int major, minor, micro;
13039 system ("touch conf.esdtest");
13041 /* HP/UX 9 (%@#!) writes to sscanf strings */
13042 tmp_version = my_strdup("$min_esd_version");
13043 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13044 printf("%s, bad version string\n", "$min_esd_version");
13048 if (($esd_major_version > major) ||
13049 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13050 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13056 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13057 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13058 printf("*** best to upgrade to the required version.\n");
13059 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13060 printf("*** to point to the correct copy of esd-config, and remove the file\n");
13061 printf("*** config.cache before re-running configure\n");
13068 rm -f conftest$ac_exeext
13069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13070 (eval $ac_link) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13081 echo "$as_me: program exited with status $ac_status" >&5
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 ( exit $ac_status )
13088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13090 CFLAGS="$ac_save_CFLAGS"
13091 LIBS="$ac_save_LIBS"
13093 ac_cpp='$CPP $CPPFLAGS'
13094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13100 if test "x$no_esd" = x ; then
13101 echo "$as_me:$LINENO: result: yes" >&5
13102 echo "${ECHO_T}yes" >&6
13105 echo "$as_me:$LINENO: result: no" >&5
13106 echo "${ECHO_T}no" >&6
13107 if test "$ESD_CONFIG" = "no" ; then
13108 echo "*** The esd-config script installed by ESD could not be found"
13109 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13110 echo "*** your path, or set the ESD_CONFIG environment variable to the"
13111 echo "*** full path to esd-config."
13113 if test -f conf.esdtest ; then
13116 echo "*** Could not run ESD test program, checking why..."
13117 CFLAGS="$CFLAGS $ESD_CFLAGS"
13118 LIBS="$LIBS $ESD_LIBS"
13122 ac_cpp='$CPP $CPPFLAGS'
13123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13127 cat >conftest.$ac_ext <<_ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147 (eval $ac_link) 2>conftest.er1
13149 grep -v '^ *+' conftest.er1 >conftest.err
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -z "$ac_c_werror_flag"
13155 || test ! -s conftest.err'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; } &&
13161 { ac_try='test -s conftest$ac_exeext'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 echo "*** The test program compiled, but did not run. This usually means"
13168 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13169 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13170 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13171 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13172 echo "*** is required on your system"
13174 echo "*** If you have an old version installed, it is best to remove it, although"
13175 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 echo "*** The test program failed to compile or link. See the file config.log for the"
13181 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13182 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13183 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13185 rm -f conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13187 CFLAGS="$ac_save_CFLAGS"
13188 LIBS="$ac_save_LIBS"
13190 ac_cpp='$CPP $CPPFLAGS'
13191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13207 LDFLAGS=$KEEPLDFLAGS
13208 if test "x$no_esd" = x; then
13209 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13210 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13211 for f in $ESD_CFLAGS; do
13213 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13214 *) CFLAGS="$CPPFLAGS $f" ;;
13218 LIBS="$LIBS $ESD_LIBS"
13220 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13221 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13224 echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6
13228 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13229 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13230 if test "x$au_enable_portaudio" = xyes; then
13231 echo "$as_me:$LINENO: result: yes" >&5
13232 echo "${ECHO_T}yes" >&6
13233 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13234 EXTRALIBS="$EXTRALIBS -lportaudio"
13235 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13237 echo "$as_me:$LINENO: result: no" >&5
13238 echo "${ECHO_T}no" >&6
13241 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13242 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13243 if test "x$au_enable_jack" = xyes; then
13244 echo "$as_me:$LINENO: result: yes" >&5
13245 echo "${ECHO_T}yes" >&6
13246 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13247 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13248 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13250 echo "$as_me:$LINENO: result: no" >&5
13251 echo "${ECHO_T}no" >&6
13254 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13255 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13256 if test "x$au_enable_ao" = xyes; then
13257 echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13258 echo "${ECHO_T}yes, configuring ao" >&6
13260 # Check whether --with-ao or --without-ao was given.
13261 if test "${with_ao+set}" = set; then
13263 ao_prefix="$withval"
13268 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13269 if test "${with_ao_libraries+set}" = set; then
13270 withval="$with_ao_libraries"
13271 ao_libraries="$withval"
13276 # Check whether --with-ao-includes or --without-ao-includes was given.
13277 if test "${with_ao_includes+set}" = set; then
13278 withval="$with_ao_includes"
13279 ao_includes="$withval"
13283 # Check whether --enable-aotest or --disable-aotest was given.
13284 if test "${enable_aotest+set}" = set; then
13285 enableval="$enable_aotest"
13292 if test "x$ao_libraries" != "x" ; then
13293 AO_LIBS="-L$ao_libraries"
13294 elif test "x$ao_prefix" != "x"; then
13295 AO_LIBS="-L$ao_prefix/lib"
13296 elif test "x$prefix" != "xNONE"; then
13297 AO_LIBS="-L$prefix/lib"
13300 if test "x$ao_includes" != "x" ; then
13301 AO_CFLAGS="-I$ao_includes"
13302 elif test "x$ao_prefix" != "x"; then
13303 AO_CFLAGS="-I$ao_prefix/include"
13304 elif test "x$prefix" != "xNONE"; then
13305 AO_CFLAGS="-I$prefix/include"
13308 # see where dl* and friends live
13310 for ac_func in dlopen
13312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13313 echo "$as_me:$LINENO: checking for $ac_func" >&5
13314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13315 if eval "test \"\${$as_ac_var+set}\" = set"; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13326 #define $ac_func innocuous_$ac_func
13328 /* System header to define __stub macros and hopefully few prototypes,
13329 which can conflict with char $ac_func (); below.
13330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13331 <limits.h> exists even on freestanding compilers. */
13334 # include <limits.h>
13336 # include <assert.h>
13341 /* Override any gcc2 internal prototype to avoid an error. */
13346 /* We use char because int might match the return type of a gcc2
13347 builtin and then its argument prototype would still apply. */
13349 /* The GNU C library defines this for functions which it implements
13350 to always fail with ENOSYS. Some functions are actually named
13351 something starting with __ and the normal name is an alias. */
13352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13355 char (*f) () = $ac_func;
13364 return f != $ac_func;
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>conftest.er1
13373 grep -v '^ *+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag"
13379 || test ! -s conftest.err'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest$ac_exeext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 eval "$as_ac_var=yes"
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13396 eval "$as_ac_var=no"
13398 rm -f conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13403 if test `eval echo '${'$as_ac_var'}'` = yes; then
13404 cat >>confdefs.h <<_ACEOF
13405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13410 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13411 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13412 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 ac_check_lib_save_LIBS=$LIBS
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13424 /* Override any gcc2 internal prototype to avoid an error. */
13428 /* We use char because int might match the return type of a gcc2
13429 builtin and then its argument prototype would still apply. */
13439 rm -f conftest.$ac_objext conftest$ac_exeext
13440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441 (eval $ac_link) 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_c_werror_flag"
13449 || test ! -s conftest.err'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; } &&
13455 { ac_try='test -s conftest$ac_exeext'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 ac_cv_lib_dl_dlopen=yes
13463 echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13466 ac_cv_lib_dl_dlopen=no
13468 rm -f conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13470 LIBS=$ac_check_lib_save_LIBS
13472 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13473 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13474 if test $ac_cv_lib_dl_dlopen = yes; then
13478 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13479 your system may not be supported." >&5
13480 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13481 your system may not be supported." >&2;}
13490 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13492 echo "$as_me:$LINENO: checking for ao" >&5
13493 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13497 if test "x$enable_aotest" = "xyes" ; then
13498 ac_save_CFLAGS="$CFLAGS"
13499 ac_save_LIBS="$LIBS"
13500 CFLAGS="$CFLAGS $AO_CFLAGS"
13501 LIBS="$LIBS $AO_LIBS"
13503 if test "$cross_compiling" = yes; then
13504 echo $ac_n "cross compiling; assumed OK... $ac_c"
13506 cat >conftest.$ac_ext <<_ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13514 #include <stdlib.h>
13515 #include <string.h>
13520 system("touch conf.aotest");
13526 rm -f conftest$ac_exeext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528 (eval $ac_link) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13539 echo "$as_me: program exited with status $ac_status" >&5
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ( exit $ac_status )
13546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13548 CFLAGS="$ac_save_CFLAGS"
13549 LIBS="$ac_save_LIBS"
13552 if test "x$no_ao" = "x" ; then
13553 echo "$as_me:$LINENO: result: yes" >&5
13554 echo "${ECHO_T}yes" >&6
13557 echo "$as_me:$LINENO: result: no" >&5
13558 echo "${ECHO_T}no" >&6
13559 if test -f conf.aotest ; then
13562 echo "*** Could not run ao test program, checking why..."
13563 CFLAGS="$CFLAGS $AO_CFLAGS"
13564 LIBS="$LIBS $AO_LIBS"
13565 cat >conftest.$ac_ext <<_ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13585 (eval $ac_link) 2>conftest.er1
13587 grep -v '^ *+' conftest.er1 >conftest.err
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try='test -z "$ac_c_werror_flag"
13593 || test ! -s conftest.err'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest$ac_exeext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 echo "*** The test program compiled, but did not run. This usually means"
13606 echo "*** that the run-time linker is not finding ao or finding the wrong"
13607 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13608 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13609 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13610 echo "*** is required on your system"
13612 echo "*** If you have an old version installed, it is best to remove it, although"
13613 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 echo "*** The test program failed to compile or link. See the file config.log for the"
13619 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13620 echo "*** or that you have moved ao since it was installed."
13622 rm -f conftest.err conftest.$ac_objext \
13623 conftest$ac_exeext conftest.$ac_ext
13624 CFLAGS="$ac_save_CFLAGS"
13625 LIBS="$ac_save_LIBS"
13635 if test "x$no_ao" = "x" ; then
13636 echo "$as_me:$LINENO: result: yes" >&5
13637 echo "${ECHO_T}yes" >&6
13638 EXTRADEFS="$EXTRADEFS -DAU_AO"
13639 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13640 for f in $AO_CFLAGS; do
13642 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13643 *) CFLAGS="$CPPFLAGS $f" ;;
13647 LIBS="$LIBS $AO_LIBS"
13649 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13650 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13653 echo "$as_me:$LINENO: result: no" >&5
13654 echo "${ECHO_T}no" >&6
13657 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13658 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13659 if test "x$au_enable_vorbis" = xyes; then
13660 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13661 echo "${ECHO_T}yes, configuring vorbis" >&6
13663 # Check whether --with-ogg or --without-ogg was given.
13664 if test "${with_ogg+set}" = set; then
13665 withval="$with_ogg"
13666 ogg_prefix="$withval"
13671 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13672 if test "${with_ogg_libraries+set}" = set; then
13673 withval="$with_ogg_libraries"
13674 ogg_libraries="$withval"
13679 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13680 if test "${with_ogg_includes+set}" = set; then
13681 withval="$with_ogg_includes"
13682 ogg_includes="$withval"
13686 # Check whether --enable-oggtest or --disable-oggtest was given.
13687 if test "${enable_oggtest+set}" = set; then
13688 enableval="$enable_oggtest"
13694 if test "x$ogg_libraries" != "x" ; then
13695 OGG_LIBS="-L$ogg_libraries"
13696 elif test "x$ogg_prefix" != "x" ; then
13697 OGG_LIBS="-L$ogg_prefix/lib"
13698 elif test "x$prefix" != "xNONE" ; then
13699 OGG_LIBS="-L$prefix/lib"
13702 OGG_LIBS="$OGG_LIBS -logg"
13704 if test "x$ogg_includes" != "x" ; then
13705 OGG_CFLAGS="-I$ogg_includes"
13706 elif test "x$ogg_prefix" != "x" ; then
13707 OGG_CFLAGS="-I$ogg_prefix/include"
13708 elif test "x$prefix" != "xNONE"; then
13709 OGG_CFLAGS="-I$prefix/include"
13712 echo "$as_me:$LINENO: checking for Ogg" >&5
13713 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13717 if test "x$enable_oggtest" = "xyes" ; then
13718 ac_save_CFLAGS="$CFLAGS"
13719 ac_save_LIBS="$LIBS"
13720 CFLAGS="$CFLAGS $OGG_CFLAGS"
13721 LIBS="$LIBS $OGG_LIBS"
13723 if test "$cross_compiling" = yes; then
13724 echo $ac_n "cross compiling; assumed OK... $ac_c"
13726 cat >conftest.$ac_ext <<_ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13734 #include <stdlib.h>
13735 #include <string.h>
13736 #include <ogg/ogg.h>
13740 system("touch conf.oggtest");
13746 rm -f conftest$ac_exeext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13748 (eval $ac_link) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13759 echo "$as_me: program exited with status $ac_status" >&5
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ( exit $ac_status )
13766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13768 CFLAGS="$ac_save_CFLAGS"
13769 LIBS="$ac_save_LIBS"
13772 if test "x$no_ogg" = "x" ; then
13773 echo "$as_me:$LINENO: result: yes" >&5
13774 echo "${ECHO_T}yes" >&6
13777 # Check whether --with-vorbis or --without-vorbis was given.
13778 if test "${with_vorbis+set}" = set; then
13779 withval="$with_vorbis"
13780 vorbis_prefix="$withval"
13785 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13786 if test "${with_vorbis_libraries+set}" = set; then
13787 withval="$with_vorbis_libraries"
13788 vorbis_libraries="$withval"
13790 vorbis_libraries=""
13793 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13794 if test "${with_vorbis_includes+set}" = set; then
13795 withval="$with_vorbis_includes"
13796 vorbis_includes="$withval"
13800 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13801 if test "${enable_vorbistest+set}" = set; then
13802 enableval="$enable_vorbistest"
13805 enable_vorbistest=yes
13808 if test "x$vorbis_libraries" != "x" ; then
13809 VORBIS_LIBS="-L$vorbis_libraries"
13810 elif test "x$vorbis_prefix" != "x" ; then
13811 VORBIS_LIBS="-L$vorbis_prefix/lib"
13812 elif test "x$prefix" != "xNONE"; then
13813 VORBIS_LIBS="-L$prefix/lib"
13816 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13817 VORBISFILE_LIBS="-lvorbisfile"
13818 VORBISENC_LIBS="-lvorbisenc"
13820 if test "x$vorbis_includes" != "x" ; then
13821 VORBIS_CFLAGS="-I$vorbis_includes"
13822 elif test "x$vorbis_prefix" != "x" ; then
13823 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13824 elif test "x$prefix" != "xNONE"; then
13825 VORBIS_CFLAGS="-I$prefix/include"
13829 echo "$as_me:$LINENO: checking for Vorbis" >&5
13830 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13834 if test "x$enable_vorbistest" = "xyes" ; then
13835 ac_save_CFLAGS="$CFLAGS"
13836 ac_save_LIBS="$LIBS"
13837 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13838 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13839 rm -f conf.vorbistest
13840 if test "$cross_compiling" = yes; then
13841 echo $ac_n "cross compiling; assumed OK... $ac_c"
13843 cat >conftest.$ac_ext <<_ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13851 #include <stdlib.h>
13852 #include <string.h>
13853 #include <vorbis/codec.h>
13857 system("touch conf.vorbistest");
13863 rm -f conftest$ac_exeext
13864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13865 (eval $ac_link) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13876 echo "$as_me: program exited with status $ac_status" >&5
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 ( exit $ac_status )
13883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13885 CFLAGS="$ac_save_CFLAGS"
13886 LIBS="$ac_save_LIBS"
13889 if test "x$no_vorbis" = "x" ; then
13890 echo "$as_me:$LINENO: result: yes" >&5
13891 echo "${ECHO_T}yes" >&6
13894 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13895 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13896 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13897 if test "x$CYGNUS" = "xyes"; then
13898 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13899 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13901 if test "x$MINGW" = "xyes"; then
13902 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13903 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13907 echo "$as_me:$LINENO: result: no" >&5
13908 echo "${ECHO_T}no" >&6
13909 if test -f conf.vorbistest ; then
13912 echo "*** Could not run Vorbis test program, checking why..."
13913 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13914 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13915 cat >conftest.$ac_ext <<_ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13923 #include <vorbis/codec.h>
13933 rm -f conftest.$ac_objext conftest$ac_exeext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935 (eval $ac_link) 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_c_werror_flag"
13943 || test ! -s conftest.err'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; } &&
13949 { ac_try='test -s conftest$ac_exeext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 echo "*** The test program compiled, but did not run. This usually means"
13956 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13957 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13958 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13959 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13960 echo "*** is required on your system"
13962 echo "*** If you have an old version installed, it is best to remove it, although"
13963 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 echo "*** The test program failed to compile or link. See the file config.log for the"
13969 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13970 echo "*** or that you have moved Vorbis since it was installed."
13972 rm -f conftest.err conftest.$ac_objext \
13973 conftest$ac_exeext conftest.$ac_ext
13974 CFLAGS="$ac_save_CFLAGS"
13975 LIBS="$ac_save_LIBS"
13982 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13983 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13990 rm -f conf.vorbistest
13994 echo "$as_me:$LINENO: result: no" >&5
13995 echo "${ECHO_T}no" >&6
13996 if test -f conf.oggtest ; then
13999 echo "*** Could not run Ogg test program, checking why..."
14000 CFLAGS="$CFLAGS $OGG_CFLAGS"
14001 LIBS="$LIBS $OGG_LIBS"
14002 cat >conftest.$ac_ext <<_ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14010 #include <ogg/ogg.h>
14020 rm -f conftest.$ac_objext conftest$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022 (eval $ac_link) 2>conftest.er1
14024 grep -v '^ *+' conftest.er1 >conftest.err
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -z "$ac_c_werror_flag"
14030 || test ! -s conftest.err'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest$ac_exeext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 echo "*** The test program compiled, but did not run. This usually means"
14043 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14044 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14045 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14046 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14047 echo "*** is required on your system"
14049 echo "*** If you have an old version installed, it is best to remove it, although"
14050 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14052 echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14055 echo "*** The test program failed to compile or link. See the file config.log for the"
14056 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14057 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14058 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14060 rm -f conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
14062 CFLAGS="$ac_save_CFLAGS"
14063 LIBS="$ac_save_LIBS"
14068 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14069 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14078 echo "$as_me:$LINENO: result: no" >&5
14079 echo "${ECHO_T}no" >&6
14082 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14083 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14084 if test "x$au_enable_flac" = xyes; then
14085 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14086 echo "${ECHO_T}yes, configuring flac" >&6
14087 SYSEXTRAS="$SYSEXTRAS flac_a.c"
14089 # Check whether --with-libFLAC or --without-libFLAC was given.
14090 if test "${with_libFLAC+set}" = set; then
14091 withval="$with_libFLAC"
14092 libFLAC_prefix="$withval"
14097 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14098 if test "${with_libFLAC_libraries+set}" = set; then
14099 withval="$with_libFLAC_libraries"
14100 libFLAC_libraries="$withval"
14102 libFLAC_libraries=""
14105 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14106 if test "${with_libFLAC_includes+set}" = set; then
14107 withval="$with_libFLAC_includes"
14108 libFLAC_includes="$withval"
14110 libFLAC_includes=""
14112 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14113 if test "${enable_libFLACtest+set}" = set; then
14114 enableval="$enable_libFLACtest"
14117 enable_libFLACtest=yes
14120 if test "x$libFLAC_libraries" != "x" ; then
14121 LIBFLAC_LIBS="-L$libFLAC_libraries"
14122 elif test "x$libFLAC_prefix" != "x" ; then
14123 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14124 elif test "x$prefix" != "xNONE" ; then
14125 LIBFLAC_LIBS="-L$prefix/lib"
14128 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14130 if test "x$libFLAC_includes" != "x" ; then
14131 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14132 elif test "x$libFLAC_prefix" != "x" ; then
14133 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14134 elif test "$prefix" != "xNONE"; then
14135 LIBFLAC_CFLAGS="-I$prefix/include"
14138 echo "$as_me:$LINENO: checking for libFLAC" >&5
14139 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14143 if test "x$enable_libFLACtest" = "xyes" ; then
14144 ac_save_CFLAGS="$CFLAGS"
14145 ac_save_CXXFLAGS="$CXXFLAGS"
14146 ac_save_LIBS="$LIBS"
14147 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14148 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14149 LIBS="$LIBS $LIBFLAC_LIBS"
14150 rm -f conf.libFLACtest
14151 if test "$cross_compiling" = yes; then
14152 echo $ac_n "cross compiling; assumed OK... $ac_c"
14154 cat >conftest.$ac_ext <<_ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14162 #include <stdlib.h>
14163 #include <string.h>
14164 #include <FLAC/format.h>
14168 system("touch conf.libFLACtest");
14174 rm -f conftest$ac_exeext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14176 (eval $ac_link) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14187 echo "$as_me: program exited with status $ac_status" >&5
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ( exit $ac_status )
14194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14196 CFLAGS="$ac_save_CFLAGS"
14197 LIBS="$ac_save_LIBS"
14200 if test "x$no_libFLAC" = "x" ; then
14201 echo "$as_me:$LINENO: result: yes" >&5
14202 echo "${ECHO_T}yes" >&6
14204 EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14205 for f in $LIBFLAC_CFLAGS; do
14207 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14208 *) CFLAGS="$CPPFLAGS $f" ;;
14212 LIBS="$LIBS $LIBFLAC_LIBS"
14215 echo "$as_me:$LINENO: result: no" >&5
14216 echo "${ECHO_T}no" >&6
14217 if test -f conf.libFLACtest ; then
14220 echo "*** Could not run libFLAC test program, checking why..."
14221 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14222 LIBS="$LIBS $LIBFLAC_LIBS"
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14231 #include <FLAC/format.h>
14241 rm -f conftest.$ac_objext conftest$ac_exeext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243 (eval $ac_link) 2>conftest.er1
14245 grep -v '^ *+' conftest.er1 >conftest.err
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -z "$ac_c_werror_flag"
14251 || test ! -s conftest.err'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; } &&
14257 { ac_try='test -s conftest$ac_exeext'
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; }; then
14263 echo "*** The test program compiled, but did not run. This usually means"
14264 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14265 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14266 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14267 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14268 echo "*** is required on your system"
14270 echo "*** If you have an old version installed, it is best to remove it, although"
14271 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 echo "*** The test program failed to compile or link. See the file config.log for the"
14277 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14278 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14279 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14281 rm -f conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14283 CFLAGS="$ac_save_CFLAGS"
14284 LIBS="$ac_save_LIBS"
14292 rm -f conf.libFLACtest
14295 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14296 if test "${with_libOggFLAC+set}" = set; then
14297 withval="$with_libOggFLAC"
14298 libOggFLAC_prefix="$withval"
14300 libOggFLAC_prefix=""
14303 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14304 if test "${with_libOggFLAC_libraries+set}" = set; then
14305 withval="$with_libOggFLAC_libraries"
14306 libOggFLAC_libraries="$withval"
14308 libOggFLAC_libraries=""
14311 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14312 if test "${with_libOggFLAC_includes+set}" = set; then
14313 withval="$with_libOggFLAC_includes"
14314 libOggFLAC_includes="$withval"
14316 libOggFLAC_includes=""
14318 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14319 if test "${enable_libOggFLACtest+set}" = set; then
14320 enableval="$enable_libOggFLACtest"
14323 enable_libOggFLACtest=yes
14326 if test "x$libOggFLAC_libraries" != "x" ; then
14327 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14328 elif test "x$libOggFLAC_prefix" != "x" ; then
14329 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14330 elif test "x$prefix" != "xNONE" ; then
14331 LIBOGGFLAC_LIBS="-L$prefix/lib"
14334 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14336 if test "x$libOggFLAC_includes" != "x" ; then
14337 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14338 elif test "x$libOggFLAC_prefix" != "x" ; then
14339 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14340 elif test "$prefix" != "xNONE"; then
14341 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14344 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14345 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14349 if test "x$enable_libOggFLACtest" = "xyes" ; then
14350 ac_save_CFLAGS="$CFLAGS"
14351 ac_save_CXXFLAGS="$CXXFLAGS"
14352 ac_save_LIBS="$LIBS"
14353 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14354 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14355 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14356 rm -f conf.libOggFLACtest
14357 if test "$cross_compiling" = yes; then
14358 echo $ac_n "cross compiling; assumed OK... $ac_c"
14360 cat >conftest.$ac_ext <<_ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14368 #include <stdlib.h>
14369 #include <string.h>
14370 #include <OggFLAC/stream_decoder.h>
14374 system("touch conf.libOggFLACtest");
14380 rm -f conftest$ac_exeext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382 (eval $ac_link) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14393 echo "$as_me: program exited with status $ac_status" >&5
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 ( exit $ac_status )
14400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14402 CFLAGS="$ac_save_CFLAGS"
14403 LIBS="$ac_save_LIBS"
14406 if test "x$no_libOggFLAC" = "x" ; then
14407 echo "$as_me:$LINENO: result: yes" >&5
14408 echo "${ECHO_T}yes" >&6
14410 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14411 for f in $LIBOGGFLAC_CFLAGS; do
14413 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14414 *) CFLAGS="$CPPFLAGS $f" ;;
14418 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14421 echo "$as_me:$LINENO: result: no" >&5
14422 echo "${ECHO_T}no" >&6
14423 if test -f conf.libOggFLACtest ; then
14426 echo "*** Could not run libOggFLAC test program, checking why..."
14427 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14428 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14437 #include <OggFLAC/stream_decoder.h>
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449 (eval $ac_link) 2>conftest.er1
14451 grep -v '^ *+' conftest.er1 >conftest.err
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
14456 { ac_try='test -z "$ac_c_werror_flag"
14457 || test ! -s conftest.err'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; } &&
14463 { ac_try='test -s conftest$ac_exeext'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 echo "*** The test program compiled, but did not run. This usually means"
14470 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14471 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14472 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14473 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14474 echo "*** is required on your system"
14476 echo "*** If you have an old version installed, it is best to remove it, although"
14477 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 echo "*** The test program failed to compile or link. See the file config.log for the"
14483 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14484 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14485 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14487 rm -f conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14489 CFLAGS="$ac_save_CFLAGS"
14490 LIBS="$ac_save_LIBS"
14492 LIBOGGFLAC_CFLAGS=""
14498 rm -f conf.libOggFLACtest
14501 echo "$as_me:$LINENO: result: no" >&5
14502 echo "${ECHO_T}no" >&6
14505 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14506 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14507 if test "x$au_enable_speex" = xyes; then
14508 if test "${have_speex+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14519 #include <ogg/ogg.h>
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533 (eval $ac_link) 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_c_werror_flag"
14541 || test ! -s conftest.err'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; } &&
14547 { ac_try='test -s conftest$ac_exeext'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14560 rm -f conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14564 echo "$as_me:$LINENO: result: $have_speex" >&5
14565 echo "${ECHO_T}$have_speex" >&6
14566 if test "x$have_speex" = xyes; then
14567 SYSEXTRAS="$SYSEXTRAS speex_a.c"
14568 EXTRALIBS="$EXTRALIBS -lspeex -logg"
14569 EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14572 echo "$as_me:$LINENO: result: no" >&5
14573 echo "${ECHO_T}no" >&6
14576 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14577 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14578 if test "x$au_enable_gogo" = xyes; then
14579 if test "x$CYGNUS" = "xyes"; then
14580 echo "$as_me:$LINENO: result: yes" >&5
14581 echo "${ECHO_T}yes" >&6
14583 if test "x$MINGW" = "xyes"; then
14584 echo "$as_me:$LINENO: result: yes" >&5
14585 echo "${ECHO_T}yes" >&6
14587 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
14588 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
14592 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14593 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14594 EXTRALIBS="$EXTRALIBS -lgogo"
14596 echo "$as_me:$LINENO: result: no" >&5
14597 echo "${ECHO_T}no" >&6
14600 if test "x$au_enable_none" = xyes; then
14601 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14602 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14604 echo "$as_me:$LINENO: checking default output mode" >&5
14605 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14606 if test "x$DEFAULT_PLAYMODE" = x; then
14607 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14609 case ".$DEFAULT_PLAYMODE" in
14610 .default) TIMIDITY_OUTPUT_ID=d ;;
14611 .oss) TIMIDITY_OUTPUT_ID=d ;;
14612 .alsa) TIMIDITY_OUTPUT_ID=s ;;
14613 .sun) TIMIDITY_OUTPUT_ID=d ;;
14614 .hpux) TIMIDITY_OUTPUT_ID=d ;;
14615 .irix) TIMIDITY_OUTPUT_ID=d ;;
14616 .mme) TIMIDITY_OUTPUT_ID=d ;;
14617 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
14618 .darwin) TIMIDITY_OUTPUT_ID=d ;;
14619 .w32) TIMIDITY_OUTPUT_ID=d ;;
14620 .alib) TIMIDITY_OUTPUT_ID=A ;;
14621 .nas) TIMIDITY_OUTPUT_ID=n ;;
14622 .arts) TIMIDITY_OUTPUT_ID=R ;;
14623 .esd) TIMIDITY_OUTPUT_ID=e ;;
14624 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
14625 .wav) TIMIDITY_OUTPUT_ID=w ;;
14626 .au) TIMIDITY_OUTPUT_ID=u ;;
14627 .aiff) TIMIDITY_OUTPUT_ID=a ;;
14628 .list) TIMIDITY_OUTPUT_ID=l ;;
14629 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
14630 .flac) TIMIDITY_OUTPUT_ID=F ;;
14631 .speex) TIMIDITY_OUTPUT_ID=S ;;
14632 .gogo) TIMIDITY_OUTPUT_ID=g ;;
14633 .jack) TIMIDITY_OUTPUT_ID=j ;;
14634 *) TIMIDITY_OUTPUT_ID= ;;
14636 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14637 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14640 # Interface Section
14643 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14645 # Check whether --enable-interface or --disable-interface was given.
14646 if test "${enable_interface+set}" = set; then
14647 enableval="$enable_interface"
14648 for i in `echo $enableval | sed 's/,/ /g'`; do
14649 eval "enable_$i=yes"
14653 # Dynamic link configuration
14654 # Check whether --enable-dynamic or --disable-dynamic was given.
14655 if test "${enable_dynamic+set}" = set; then
14656 enableval="$enable_dynamic"
14657 if test "x$enable_dynamic" = xyes; then
14658 enable_dynamic=dynamic
14659 elif test "x$enable_dynamic" != xno; then
14660 for i in `echo $enableval | sed 's/,/ /g'`; do
14661 eval "enable_$i=dynamic"
14667 for i in $interface_targets; do
14668 eval "join_targets=$join_targets\$enable_$i"
14671 case ".$join_targets" in
14672 .*dynamic*) NEEDDLOPEN=yes;;
14676 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14677 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14679 if test "$NEEDDLOPEN" = "yes"; then
14682 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14683 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14684 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 #include <windows.h>
14704 rm -f conftest.$ac_objext conftest$ac_exeext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14706 (eval $ac_link) 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_c_werror_flag"
14714 || test ! -s conftest.err'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; } &&
14720 { ac_try='test -s conftest$ac_exeext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 wapi_cv_func_LoadLibrary=yes
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 wapi_cv_func_LoadLibrary=no
14733 rm -f conftest.err conftest.$ac_objext \
14734 conftest$ac_exeext conftest.$ac_ext
14737 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14738 echo "$as_me:$LINENO: result: yes" >&5
14739 echo "${ECHO_T}yes" >&6
14742 echo "$as_me:$LINENO: result: no" >&5
14743 echo "${ECHO_T}no" >&6
14746 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14748 if test "$have_dl" = "no"; then
14749 echo "$as_me:$LINENO: checking for shl_load" >&5
14750 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14751 if test "${ac_cv_func_shl_load+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 cat >conftest.$ac_ext <<_ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14760 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14762 #define shl_load innocuous_shl_load
14764 /* System header to define __stub macros and hopefully few prototypes,
14765 which can conflict with char shl_load (); below.
14766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14767 <limits.h> exists even on freestanding compilers. */
14770 # include <limits.h>
14772 # include <assert.h>
14777 /* Override any gcc2 internal prototype to avoid an error. */
14782 /* We use char because int might match the return type of a gcc2
14783 builtin and then its argument prototype would still apply. */
14785 /* The GNU C library defines this for functions which it implements
14786 to always fail with ENOSYS. Some functions are actually named
14787 something starting with __ and the normal name is an alias. */
14788 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14791 char (*f) () = shl_load;
14800 return f != shl_load;
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807 (eval $ac_link) 2>conftest.er1
14809 grep -v '^ *+' conftest.er1 >conftest.err
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_c_werror_flag"
14815 || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try='test -s conftest$ac_exeext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_cv_func_shl_load=yes
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_func_shl_load=no
14834 rm -f conftest.err conftest.$ac_objext \
14835 conftest$ac_exeext conftest.$ac_ext
14837 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14838 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14839 if test $ac_cv_func_shl_load = yes; then
14844 if test "$have_dl" = "no"; then
14845 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14846 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14847 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 cat >conftest.$ac_ext <<_ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14858 #define NSLinkModule innocuous_NSLinkModule
14860 /* System header to define __stub macros and hopefully few prototypes,
14861 which can conflict with char NSLinkModule (); below.
14862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14863 <limits.h> exists even on freestanding compilers. */
14866 # include <limits.h>
14868 # include <assert.h>
14871 #undef NSLinkModule
14873 /* Override any gcc2 internal prototype to avoid an error. */
14878 /* We use char because int might match the return type of a gcc2
14879 builtin and then its argument prototype would still apply. */
14880 char NSLinkModule ();
14881 /* The GNU C library defines this for functions which it implements
14882 to always fail with ENOSYS. Some functions are actually named
14883 something starting with __ and the normal name is an alias. */
14884 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14887 char (*f) () = NSLinkModule;
14896 return f != NSLinkModule;
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_func_NSLinkModule=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_cv_func_NSLinkModule=no
14930 rm -f conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14933 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14934 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14935 if test $ac_cv_func_NSLinkModule = yes; then
14940 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14943 if test "$have_dl" = "no"; then
14944 echo "$as_me:$LINENO: checking for dlopen" >&5
14945 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14946 if test "${ac_cv_func_dlopen+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 cat >conftest.$ac_ext <<_ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14955 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14957 #define dlopen innocuous_dlopen
14959 /* System header to define __stub macros and hopefully few prototypes,
14960 which can conflict with char dlopen (); below.
14961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14962 <limits.h> exists even on freestanding compilers. */
14965 # include <limits.h>
14967 # include <assert.h>
14972 /* Override any gcc2 internal prototype to avoid an error. */
14977 /* We use char because int might match the return type of a gcc2
14978 builtin and then its argument prototype would still apply. */
14980 /* The GNU C library defines this for functions which it implements
14981 to always fail with ENOSYS. Some functions are actually named
14982 something starting with __ and the normal name is an alias. */
14983 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14986 char (*f) () = dlopen;
14995 return f != dlopen;
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15002 (eval $ac_link) 2>conftest.er1
15004 grep -v '^ *+' conftest.er1 >conftest.err
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
15009 { ac_try='test -z "$ac_c_werror_flag"
15010 || test ! -s conftest.err'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest$ac_exeext'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15022 ac_cv_func_dlopen=yes
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15027 ac_cv_func_dlopen=no
15029 rm -f conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15032 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15033 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15034 if test $ac_cv_func_dlopen = yes; then
15039 if test "$have_dl" = "no"; then
15040 echo "$as_me:$LINENO: checking for dld_init" >&5
15041 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15042 if test "${ac_cv_func_dld_init+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15053 #define dld_init innocuous_dld_init
15055 /* System header to define __stub macros and hopefully few prototypes,
15056 which can conflict with char dld_init (); below.
15057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15058 <limits.h> exists even on freestanding compilers. */
15061 # include <limits.h>
15063 # include <assert.h>
15068 /* Override any gcc2 internal prototype to avoid an error. */
15073 /* We use char because int might match the return type of a gcc2
15074 builtin and then its argument prototype would still apply. */
15076 /* The GNU C library defines this for functions which it implements
15077 to always fail with ENOSYS. Some functions are actually named
15078 something starting with __ and the normal name is an alias. */
15079 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15082 char (*f) () = dld_init;
15091 return f != dld_init;
15096 rm -f conftest.$ac_objext conftest$ac_exeext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15098 (eval $ac_link) 2>conftest.er1
15100 grep -v '^ *+' conftest.er1 >conftest.err
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
15105 { ac_try='test -z "$ac_c_werror_flag"
15106 || test ! -s conftest.err'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest$ac_exeext'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15118 ac_cv_func_dld_init=yes
15120 echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15123 ac_cv_func_dld_init=no
15125 rm -f conftest.err conftest.$ac_objext \
15126 conftest$ac_exeext conftest.$ac_ext
15128 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15129 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15130 if test $ac_cv_func_dld_init = yes; then
15135 if test "$have_dl" = "no"; then
15136 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15137 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15138 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 ac_check_lib_save_LIBS=$LIBS
15143 cat >conftest.$ac_ext <<_ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15150 /* Override any gcc2 internal prototype to avoid an error. */
15154 /* We use char because int might match the return type of a gcc2
15155 builtin and then its argument prototype would still apply. */
15165 rm -f conftest.$ac_objext conftest$ac_exeext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15167 (eval $ac_link) 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag"
15175 || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest$ac_exeext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_cv_lib_dld_dld_init=yes
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_cv_lib_dld_dld_init=no
15194 rm -f conftest.err conftest.$ac_objext \
15195 conftest$ac_exeext conftest.$ac_ext
15196 LIBS=$ac_check_lib_save_LIBS
15198 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15199 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15200 if test $ac_cv_lib_dld_dld_init = yes; then
15201 have_dl=dld;lib_dl_opt=-ldld
15206 echo "$as_me:$LINENO: checking dynamic link method" >&5
15207 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15210 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15211 echo "${ECHO_T}use dl_dlopen.c" >&6
15212 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15213 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15214 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15215 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 case "$ac_cv_header_dlfcn_h" in
15219 yes) i_dlfcn=define;;
15230 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
15232 #include <sys/types.h>
15237 extern int fred() ;
15246 int mode = RTLD_LAZY ;
15248 handle = dlopen("./dyna.$so", mode) ;
15249 if (handle == NULL) {
15254 symbol = dlsym(handle, "fred") ;
15255 if (symbol == NULL) {
15256 /* try putting a leading underscore */
15257 symbol = dlsym(handle, "_fred") ;
15258 if (symbol == NULL) {
15271 : Call the object file tmp-dyna.o in case dlext=o.
15272 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15273 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15274 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15275 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15278 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
15279 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
15281 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
15282 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
15284 3) timidity_cv_func_dlsym_underscore=yes
15286 4) timidity_cv_func_dlsym_underscore=no
15290 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15291 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15293 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15297 case "x$timidity_cv_func_dlsym_underscore" in
15299 cat >>confdefs.h <<\_ACEOF
15300 #define DLSYM_NEEDS_UNDERSCORE 1
15303 echo "$as_me:$LINENO: result: yes" >&5
15304 echo "${ECHO_T}yes" >&6
15307 echo "$as_me:$LINENO: result: no" >&5
15308 echo "${ECHO_T}no" >&6
15314 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15315 echo "${ECHO_T}use dl_dld.c" >&6
15316 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15319 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15320 echo "${ECHO_T}use dl_hpux.c" >&6
15321 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15322 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15325 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15326 echo "${ECHO_T}use dl_w32.c" >&6
15327 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15330 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15331 echo "${ECHO_T}use dl_dyld.c" >&6
15332 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15336 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15337 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15342 if test "$NEEDDLOPEN" = "yes"; then
15343 cat >> confdefs.h <<EOF
15344 #define IA_DYNAMIC 1
15348 cat >>confdefs.h <<_ACEOF
15349 #define SHARED_LIB_EXT ".$so"
15352 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
15357 if test "$NEEDDLOPEN" = "yes"; then
15359 NEEDDLOPEN_FALSE='#'
15361 NEEDDLOPEN_TRUE='#'
15370 ENABLE_NCURSES_TRUE=
15371 ENABLE_NCURSES_FALSE='#'
15373 ENABLE_NCURSES_TRUE='#'
15374 ENABLE_NCURSES_FALSE=
15377 # Check whether --enable-ncurses or --disable-ncurses was given.
15378 if test "${enable_ncurses+set}" = set; then
15379 enableval="$enable_ncurses"
15380 case "x$enable_ncurses" in xyes|xdynamic)
15383 for ac_header in ncurses.h ncurses/curses.h curses.h
15385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15387 echo "$as_me:$LINENO: checking for $ac_header" >&5
15388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15395 # Is the header compilable?
15396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15398 cat >conftest.$ac_ext <<_ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404 $ac_includes_default
15405 #include <$ac_header>
15407 rm -f conftest.$ac_objext
15408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15409 (eval $ac_compile) 2>conftest.er1
15411 grep -v '^ *+' conftest.er1 >conftest.err
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } &&
15416 { ac_try='test -z "$ac_c_werror_flag"
15417 || test ! -s conftest.err'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest.$ac_objext'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_header_compiler=yes
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 ac_header_compiler=no
15436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15438 echo "${ECHO_T}$ac_header_compiler" >&6
15440 # Is the header present?
15441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15443 cat >conftest.$ac_ext <<_ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15449 #include <$ac_header>
15451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15454 grep -v '^ *+' conftest.er1 >conftest.err
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } >/dev/null; then
15459 if test -s conftest.err; then
15460 ac_cpp_err=$ac_c_preproc_warn_flag
15461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15468 if test -z "$ac_cpp_err"; then
15469 ac_header_preproc=yes
15471 echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15474 ac_header_preproc=no
15476 rm -f conftest.err conftest.$ac_ext
15477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15478 echo "${ECHO_T}$ac_header_preproc" >&6
15480 # So? What about this header?
15481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15487 ac_header_preproc=yes
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15504 ## ------------------------------- ##
15505 ## Report this to root@mput.dip.jp ##
15506 ## ------------------------------- ##
15509 sed "s/^/$as_me: WARNING: /" >&2
15512 echo "$as_me:$LINENO: checking for $ac_header" >&5
15513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 eval "$as_ac_Header=\$ac_header_preproc"
15519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15524 cat >>confdefs.h <<_ACEOF
15525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15534 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15536 *) for i in /usr/include /usr/local/include; do
15537 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15538 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
15539 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
15540 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15547 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15548 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15549 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 ac_check_lib_save_LIBS=$LIBS
15553 LIBS="-lncurses $LIBS"
15554 cat >conftest.$ac_ext <<_ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15561 /* Override any gcc2 internal prototype to avoid an error. */
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_lib_ncurses_initscr=yes
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_cv_lib_ncurses_initscr=no
15605 rm -f conftest.err conftest.$ac_objext \
15606 conftest$ac_exeext conftest.$ac_ext
15607 LIBS=$ac_check_lib_save_LIBS
15609 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15610 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15611 if test $ac_cv_lib_ncurses_initscr = yes; then
15612 lib_curses_opt=-lncurses
15614 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15615 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15616 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 ac_check_lib_save_LIBS=$LIBS
15620 LIBS="-lcurses $lib_user32_test $LIBS"
15621 cat >conftest.$ac_ext <<_ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15628 /* Override any gcc2 internal prototype to avoid an error. */
15632 /* We use char because int might match the return type of a gcc2
15633 builtin and then its argument prototype would still apply. */
15634 char PDC_set_ctrl_break ();
15638 PDC_set_ctrl_break ();
15643 rm -f conftest.$ac_objext conftest$ac_exeext
15644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15645 (eval $ac_link) 2>conftest.er1
15647 grep -v '^ *+' conftest.er1 >conftest.err
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag"
15653 || test ! -s conftest.err'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; } &&
15659 { ac_try='test -s conftest$ac_exeext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
15665 ac_cv_lib_curses_PDC_set_ctrl_break=yes
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 ac_cv_lib_curses_PDC_set_ctrl_break=no
15672 rm -f conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15674 LIBS=$ac_check_lib_save_LIBS
15676 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15677 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15678 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15679 lib_curses_opt=-lcurses
15681 cat >>confdefs.h <<\_ACEOF
15682 #define USE_PDCURSES 1
15685 lib_user32_opt="$lib_user32_test"
15688 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15689 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15690 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 ac_check_lib_save_LIBS=$LIBS
15694 LIBS="-lpdcurses $LIBS"
15695 cat >conftest.$ac_ext <<_ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15702 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15708 char PDC_set_ctrl_break ();
15712 PDC_set_ctrl_break ();
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719 (eval $ac_link) 2>conftest.er1
15721 grep -v '^ *+' conftest.er1 >conftest.err
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest$ac_exeext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15746 rm -f conftest.err conftest.$ac_objext \
15747 conftest$ac_exeext conftest.$ac_ext
15748 LIBS=$ac_check_lib_save_LIBS
15750 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15751 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15752 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15753 lib_curses_opt=-lpdcurses
15755 cat >>confdefs.h <<\_ACEOF
15756 #define USE_PDCURSES 1
15759 lib_user32_opt="$lib_user32_test"
15764 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15765 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15766 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 ac_check_lib_save_LIBS=$LIBS
15770 LIBS="-lcurses $LIBS"
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15778 /* Override any gcc2 internal prototype to avoid an error. */
15782 /* We use char because int might match the return type of a gcc2
15783 builtin and then its argument prototype would still apply. */
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15795 (eval $ac_link) 2>conftest.er1
15797 grep -v '^ *+' conftest.er1 >conftest.err
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } &&
15802 { ac_try='test -z "$ac_c_werror_flag"
15803 || test ! -s conftest.err'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; } &&
15809 { ac_try='test -s conftest$ac_exeext'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_cv_lib_curses_initscr=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_cv_lib_curses_initscr=no
15822 rm -f conftest.err conftest.$ac_objext \
15823 conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15826 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15827 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15828 if test $ac_cv_lib_curses_initscr = yes; then
15829 lib_curses_opt=-lcurses
15831 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15832 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15839 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15854 case "x$enable_ncurses" in
15856 cat >> confdefs.h <<EOF
15857 #define IA_NCURSES 1
15863 ENABLE_NCURSES_TRUE=
15864 ENABLE_NCURSES_FALSE='#'
15866 ENABLE_NCURSES_TRUE='#'
15867 ENABLE_NCURSES_FALSE=
15870 LIBS="$LIBS $lib_curses_opt"
15873 EXTRALIBS="$EXTRALIBS -lmytinfo"
15876 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15880 dynamic_targets="$dynamic_targets interface_n.\$(so)"
15881 n_so_libs="$lib_curses_opt"
15884 EXTRALIBS="$EXTRALIBS -lmytinfo"
15899 ENABLE_SLANG_FALSE='#'
15901 ENABLE_SLANG_TRUE='#'
15902 ENABLE_SLANG_FALSE=
15905 # Check whether --enable-slang or --disable-slang was given.
15906 if test "${enable_slang+set}" = set; then
15907 enableval="$enable_slang"
15908 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15909 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15910 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-lslang $LIBS"
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15922 /* Override any gcc2 internal prototype to avoid an error. */
15926 /* We use char because int might match the return type of a gcc2
15927 builtin and then its argument prototype would still apply. */
15928 char SLang_init_tty ();
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>conftest.er1
15941 grep -v '^ *+' conftest.er1 >conftest.err
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag"
15947 || test ! -s conftest.err'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest$ac_exeext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 ac_cv_lib_slang_SLang_init_tty=yes
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 ac_cv_lib_slang_SLang_init_tty=no
15966 rm -f conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext
15968 LIBS=$ac_check_lib_save_LIBS
15970 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15971 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15972 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15976 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15977 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15983 for ac_header in slang/slang.h slang.h
15985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15987 echo "$as_me:$LINENO: checking for $ac_header" >&5
15988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15995 # Is the header compilable?
15996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15998 cat >conftest.$ac_ext <<_ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h. */
16004 $ac_includes_default
16005 #include <$ac_header>
16007 rm -f conftest.$ac_objext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16009 (eval $ac_compile) 2>conftest.er1
16011 grep -v '^ *+' conftest.er1 >conftest.err
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try='test -z "$ac_c_werror_flag"
16017 || test ! -s conftest.err'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest.$ac_objext'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_header_compiler=yes
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ac_header_compiler=no
16036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16038 echo "${ECHO_T}$ac_header_compiler" >&6
16040 # Is the header present?
16041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16043 cat >conftest.$ac_ext <<_ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 #include <$ac_header>
16051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } >/dev/null; then
16059 if test -s conftest.err; then
16060 ac_cpp_err=$ac_c_preproc_warn_flag
16061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16068 if test -z "$ac_cpp_err"; then
16069 ac_header_preproc=yes
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 ac_header_preproc=no
16076 rm -f conftest.err conftest.$ac_ext
16077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16078 echo "${ECHO_T}$ac_header_preproc" >&6
16080 # So? What about this header?
16081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16087 ac_header_preproc=yes
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16104 ## ------------------------------- ##
16105 ## Report this to root@mput.dip.jp ##
16106 ## ------------------------------- ##
16109 sed "s/^/$as_me: WARNING: /" >&2
16112 echo "$as_me:$LINENO: checking for $ac_header" >&5
16113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 eval "$as_ac_Header=\$ac_header_preproc"
16119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16124 cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16134 case "x$enable_slang" in
16136 cat >> confdefs.h <<EOF
16144 ENABLE_SLANG_FALSE='#'
16146 ENABLE_SLANG_TRUE='#'
16147 ENABLE_SLANG_FALSE=
16150 LIBS="$LIBS -lslang"
16151 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16155 dynamic_targets="$dynamic_targets interface_s.\$(so)"
16156 s_so_libs="-lslang"
16157 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16158 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16159 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-ltermcap $LIBS"
16164 cat >conftest.$ac_ext <<_ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16171 /* Override any gcc2 internal prototype to avoid an error. */
16175 /* We use char because int might match the return type of a gcc2
16176 builtin and then its argument prototype would still apply. */
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188 (eval $ac_link) 2>conftest.er1
16190 grep -v '^ *+' conftest.er1 >conftest.err
16192 cat conftest.err >&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -z "$ac_c_werror_flag"
16196 || test ! -s conftest.err'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 { ac_try='test -s conftest$ac_exeext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 ac_cv_lib_termcap_initscr=yes
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16213 ac_cv_lib_termcap_initscr=no
16215 rm -f conftest.err conftest.$ac_objext \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16219 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16220 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16221 if test $ac_cv_lib_termcap_initscr = yes; then
16222 s_so_libs="$s_so_libs -ltermcap"
16238 ENABLE_MOTIF_FALSE='#'
16240 ENABLE_MOTIF_TRUE='#'
16241 ENABLE_MOTIF_FALSE=
16244 # Check whether --enable-motif or --disable-motif was given.
16245 if test "${enable_motif+set}" = set; then
16246 enableval="$enable_motif"
16247 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
16248 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16249 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16250 { (exit 1); exit 1; }; }
16252 if test "x$have_xm" != xyes; then
16253 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16254 echo "$as_me: WARNING: Motif library is not found." >&2;}
16259 case "x$enable_motif" in
16261 cat >> confdefs.h <<EOF
16269 ENABLE_MOTIF_FALSE='#'
16271 ENABLE_MOTIF_TRUE='#'
16272 ENABLE_MOTIF_FALSE=
16277 lib_xext_opt=-lXext
16278 if test "x$have_xprelibs" = xyes; then
16279 lib_xprelibs_opt='-lSM -lICE'
16281 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16285 dynamic_targets="$dynamic_targets interface_m.\$(so)"
16286 if test x$have_xprelibs = xyes; then
16287 m_so_libs="-lXext -lSM -lICE"
16289 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16303 ENABLE_TCLTK_FALSE='#'
16305 ENABLE_TCLTK_TRUE='#'
16306 ENABLE_TCLTK_FALSE=
16309 # Check whether --enable-tcltk or --disable-tcltk was given.
16310 if test "${enable_tcltk+set}" = set; then
16311 enableval="$enable_tcltk"
16312 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
16313 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16314 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16315 { (exit 1); exit 1; }; }
16318 KEEPCPPFLAGS=$CPPFLAGS
16319 KEEPLDFLAGS=$LDFLAGS
16322 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16323 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16324 LIBS="$LIBS $lib_dl_opt"
16328 for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16329 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16330 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16331 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16332 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 ac_check_lib_save_LIBS=$LIBS
16337 cat >conftest.$ac_ext <<_ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16344 /* Override any gcc2 internal prototype to avoid an error. */
16348 /* We use char because int might match the return type of a gcc2
16349 builtin and then its argument prototype would still apply. */
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>conftest.er1
16363 grep -v '^ *+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_c_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest$ac_exeext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 eval "$as_ac_Lib=yes"
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 eval "$as_ac_Lib=no"
16388 rm -f conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
16390 LIBS=$ac_check_lib_save_LIBS
16392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16393 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16394 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16399 LIBS="$LIBS $tcl_lib"
16400 for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16401 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16402 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16403 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16404 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 ac_check_lib_save_LIBS=$LIBS
16409 cat >conftest.$ac_ext <<_ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16416 /* Override any gcc2 internal prototype to avoid an error. */
16420 /* We use char because int might match the return type of a gcc2
16421 builtin and then its argument prototype would still apply. */
16431 rm -f conftest.$ac_objext conftest$ac_exeext
16432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16433 (eval $ac_link) 2>conftest.er1
16435 grep -v '^ *+' conftest.er1 >conftest.err
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag"
16441 || test ! -s conftest.err'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest$ac_exeext'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 eval "$as_ac_Lib=yes"
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 eval "$as_ac_Lib=no"
16460 rm -f conftest.err conftest.$ac_objext \
16461 conftest$ac_exeext conftest.$ac_ext
16462 LIBS=$ac_check_lib_save_LIBS
16464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16465 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16466 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16473 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16474 CPPFLAGS=$KEEPCPPFLAGS
16475 LDFLAGS=$KEEPLDFLAGS
16477 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16478 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16480 tcltk_dep='tclIndex'
16484 case "x$enable_tcltk" in
16486 cat >> confdefs.h <<EOF
16494 ENABLE_TCLTK_FALSE='#'
16496 ENABLE_TCLTK_TRUE='#'
16497 ENABLE_TCLTK_FALSE=
16500 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16503 EXTRALIBS="$EXTRALIBS -lipc"
16506 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16510 dynamic_targets="$dynamic_targets interface_k.\$(so)"
16511 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16514 k_so_libs="$k_so_libs -lipc"
16517 k_so_libs="$k_so_libs -lX11 -lm"
16528 if test "x$enable_tcltk" = "xdynamic"; then
16529 ENABLE_DYNAMIC_TCLTK_TRUE=
16530 ENABLE_DYNAMIC_TCLTK_FALSE='#'
16532 ENABLE_DYNAMIC_TCLTK_TRUE='#'
16533 ENABLE_DYNAMIC_TCLTK_FALSE=
16541 ENABLE_EMACS_FALSE='#'
16543 ENABLE_EMACS_TRUE='#'
16544 ENABLE_EMACS_FALSE=
16547 # Check whether --enable-emacs or --disable-emacs was given.
16548 if test "${enable_emacs+set}" = set; then
16549 enableval="$enable_emacs"
16550 case "x$enable_emacs" in xyes|xdynamic) ;; esac
16552 case "x$enable_emacs" in
16554 cat >> confdefs.h <<EOF
16562 ENABLE_EMACS_FALSE='#'
16564 ENABLE_EMACS_TRUE='#'
16565 ENABLE_EMACS_FALSE=
16568 ELFILES="$ELFILES timidity.el"
16569 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16573 dynamic_targets="$dynamic_targets interface_e.\$(so)"
16574 ELFILES="$ELFILES timidity.el"
16587 ENABLE_VT100_FALSE='#'
16589 ENABLE_VT100_TRUE='#'
16590 ENABLE_VT100_FALSE=
16593 # Check whether --enable-vt100 or --disable-vt100 was given.
16594 if test "${enable_vt100+set}" = set; then
16595 enableval="$enable_vt100"
16596 case "x$enable_vt100" in xyes|xdynamic) ;; esac
16598 case "x$enable_vt100" in
16600 cat >> confdefs.h <<EOF
16608 ENABLE_VT100_FALSE='#'
16610 ENABLE_VT100_TRUE='#'
16611 ENABLE_VT100_FALSE=
16614 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16617 dynamic_targets="$dynamic_targets interface_T.\$(so)"
16631 ENABLE_XAW_FALSE='#'
16633 ENABLE_XAW_TRUE='#'
16637 # Check whether --enable-xaw or --disable-xaw was given.
16638 if test "${enable_xaw+set}" = set; then
16639 enableval="$enable_xaw"
16640 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
16641 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16642 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16643 { (exit 1); exit 1; }; }
16645 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16646 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16647 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16651 case "x$enable_xaw" in
16653 cat >> confdefs.h <<EOF
16661 ENABLE_XAW_FALSE='#'
16663 ENABLE_XAW_TRUE='#'
16667 if test "x$have_xext" = xyes; then
16668 lib_xext_opt=-lXext
16670 if test "x$have_xprelibs" = xyes; then
16671 lib_xprelibs_opt='-lSM -lICE'
16675 if test "x$have_xaw" = x3d; then
16677 cat >>confdefs.h <<\_ACEOF
16681 lib_xaw_opt=-lXaw3d
16685 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16689 dynamic_targets="$dynamic_targets interface_a.\$(so)"
16690 if test "x$have_xext" = xyes; then
16691 a_so_libs="-lXext -lX11"
16697 a_so_libs="$a_so_libs -lcc_dynamic"
16700 if test "x$have_xprelibs" = xyes; then
16701 a_so_libs="-lSM -lICE $a_so_libs"
16703 if test "x$have_xaw" = xyes; then
16704 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16705 elif test "x$have_xaw" = x3d; then
16707 cat >>confdefs.h <<\_ACEOF
16711 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16713 a_so_libs="$ldflags_x_opt $a_so_libs"
16724 if test "x$enable_xaw" = "xdynamic"; then
16725 ENABLE_DYNAMIC_XAW_TRUE=
16726 ENABLE_DYNAMIC_XAW_FALSE='#'
16728 ENABLE_DYNAMIC_XAW_TRUE='#'
16729 ENABLE_DYNAMIC_XAW_FALSE=
16737 ENABLE_XSKIN_FALSE='#'
16739 ENABLE_XSKIN_TRUE='#'
16740 ENABLE_XSKIN_FALSE=
16743 # Check whether --enable-xskin or --disable-xskin was given.
16744 if test "${enable_xskin+set}" = set; then
16745 enableval="$enable_xskin"
16746 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
16747 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16748 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16749 { (exit 1); exit 1; }; }
16753 case "x$enable_xskin" in
16755 cat >> confdefs.h <<EOF
16763 ENABLE_XSKIN_FALSE='#'
16765 ENABLE_XSKIN_TRUE='#'
16766 ENABLE_XSKIN_FALSE=
16769 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16772 dynamic_targets="$dynamic_targets interface_i.\$(so)"
16773 i_so_libs="$ldflags_x_opt -lX11"
16786 ENABLE_GTK_FALSE='#'
16788 ENABLE_GTK_TRUE='#'
16792 # Check whether --enable-gtk or --disable-gtk was given.
16793 if test "${enable_gtk+set}" = set; then
16794 enableval="$enable_gtk"
16795 case "x$enable_gtk" in xyes|xdynamic)
16796 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
16797 if test "${with_gtk_prefix+set}" = set; then
16798 withval="$with_gtk_prefix"
16799 gtk_config_prefix="$withval"
16801 gtk_config_prefix=""
16804 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
16805 if test "${with_gtk_exec_prefix+set}" = set; then
16806 withval="$with_gtk_exec_prefix"
16807 gtk_config_exec_prefix="$withval"
16809 gtk_config_exec_prefix=""
16811 # Check whether --enable-gtktest or --disable-gtktest was given.
16812 if test "${enable_gtktest+set}" = set; then
16813 enableval="$enable_gtktest"
16823 gtk_config_args="$gtk_config_args gthread"
16828 if test x$gtk_config_exec_prefix != x ; then
16829 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
16830 if test x${GTK_CONFIG+set} != xset ; then
16831 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
16834 if test x$gtk_config_prefix != x ; then
16835 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
16836 if test x${GTK_CONFIG+set} != xset ; then
16837 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
16841 # Extract the first word of "gtk-config", so it can be a program name with args.
16842 set dummy gtk-config; ac_word=$2
16843 echo "$as_me:$LINENO: checking for $ac_word" >&5
16844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16845 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 case $GTK_CONFIG in
16850 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
16853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16854 for as_dir in $PATH
16857 test -z "$as_dir" && as_dir=.
16858 for ac_exec_ext in '' $ac_executable_extensions; do
16859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16860 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16867 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
16871 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
16873 if test -n "$GTK_CONFIG"; then
16874 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
16875 echo "${ECHO_T}$GTK_CONFIG" >&6
16877 echo "$as_me:$LINENO: result: no" >&5
16878 echo "${ECHO_T}no" >&6
16881 min_gtk_version=1.1.3
16882 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
16883 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
16885 if test "$GTK_CONFIG" = "no" ; then
16888 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
16889 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
16890 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
16891 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16892 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
16893 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16894 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
16895 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16896 if test "x$enable_gtktest" = "xyes" ; then
16897 ac_save_CFLAGS="$CFLAGS"
16898 ac_save_LIBS="$LIBS"
16899 CFLAGS="$CFLAGS $GTK_CFLAGS"
16900 LIBS="$GTK_LIBS $LIBS"
16902 if test "$cross_compiling" = yes; then
16903 echo $ac_n "cross compiling; assumed OK... $ac_c"
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16912 #include <gtk/gtk.h>
16914 #include <stdlib.h>
16919 int major, minor, micro;
16922 system ("touch conf.gtktest");
16924 /* HP/UX 9 (%@#!) writes to sscanf strings */
16925 tmp_version = g_strdup("$min_gtk_version");
16926 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
16927 printf("%s, bad version string\n", "$min_gtk_version");
16931 if ((gtk_major_version != $gtk_config_major_version) ||
16932 (gtk_minor_version != $gtk_config_minor_version) ||
16933 (gtk_micro_version != $gtk_config_micro_version))
16935 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16936 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16937 gtk_major_version, gtk_minor_version, gtk_micro_version);
16938 printf ("*** was found! If gtk-config was correct, then it is best\n");
16939 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16940 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16941 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16942 printf("*** required on your system.\n");
16943 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16944 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16945 printf("*** before re-running configure\n");
16947 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16948 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16949 (gtk_minor_version != GTK_MINOR_VERSION) ||
16950 (gtk_micro_version != GTK_MICRO_VERSION))
16952 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16953 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16954 printf("*** library (version %d.%d.%d)\n",
16955 gtk_major_version, gtk_minor_version, gtk_micro_version);
16957 #endif /* defined (GTK_MAJOR_VERSION) ... */
16960 if ((gtk_major_version > major) ||
16961 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16962 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16968 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16969 gtk_major_version, gtk_minor_version, gtk_micro_version);
16970 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16971 major, minor, micro);
16972 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16974 printf("*** If you have already installed a sufficiently new version, this error\n");
16975 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16976 printf("*** being found. The easiest way to fix this is to remove the old version\n");
16977 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16978 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16979 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16980 printf("*** so that the correct libraries are found at run-time))\n");
16987 rm -f conftest$ac_exeext
16988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989 (eval $ac_link) 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
17000 echo "$as_me: program exited with status $ac_status" >&5
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ( exit $ac_status )
17007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17009 CFLAGS="$ac_save_CFLAGS"
17010 LIBS="$ac_save_LIBS"
17013 if test "x$no_gtk" = x ; then
17014 echo "$as_me:$LINENO: result: yes" >&5
17015 echo "${ECHO_T}yes" >&6
17018 echo "$as_me:$LINENO: result: no" >&5
17019 echo "${ECHO_T}no" >&6
17020 if test "$GTK_CONFIG" = "no" ; then
17021 echo "*** The gtk-config script installed by GTK could not be found"
17022 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17023 echo "*** your path, or set the GTK_CONFIG environment variable to the"
17024 echo "*** full path to gtk-config."
17026 if test -f conf.gtktest ; then
17029 echo "*** Could not run GTK test program, checking why..."
17030 CFLAGS="$CFLAGS $GTK_CFLAGS"
17031 LIBS="$LIBS $GTK_LIBS"
17032 cat >conftest.$ac_ext <<_ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17039 #include <gtk/gtk.h>
17045 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17050 rm -f conftest.$ac_objext conftest$ac_exeext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 echo "*** The test program compiled, but did not run. This usually means"
17073 echo "*** that the run-time linker is not finding GTK or finding the wrong"
17074 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17075 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17076 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17077 echo "*** is required on your system"
17079 echo "*** If you have an old version installed, it is best to remove it, although"
17080 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17082 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17083 echo "*** came with the system with the command"
17085 echo "*** rpm --erase --nodeps gtk gtk-devel"
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17090 echo "*** The test program failed to compile or link. See the file config.log for the"
17091 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17092 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17093 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17095 rm -f conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097 CFLAGS="$ac_save_CFLAGS"
17098 LIBS="$ac_save_LIBS"
17110 case "x$enable_gtk" in
17112 cat >> confdefs.h <<EOF
17120 ENABLE_GTK_FALSE='#'
17122 ENABLE_GTK_TRUE='#'
17126 LIBS="$LIBS $GTK_LIBS"
17127 for f in $GTK_CFLAGS; do
17129 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17130 *) CFLAGS="$CPPFLAGS $f" ;;
17134 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17138 dynamic_targets="$dynamic_targets interface_g.\$(so)"
17139 if test "x$GCC" = xyes; then
17140 for i in $GTK_LIBS; do
17143 *) g_so_libs="$g_so_libs $i" ;;
17147 g_so_libs="$GTK_LIBS"
17149 for f in $GTK_CFLAGS; do
17151 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17152 *) CFLAGS="$CPPFLAGS $f" ;;
17167 ENABLE_SERVER_TRUE=
17168 ENABLE_SERVER_FALSE='#'
17170 ENABLE_SERVER_TRUE='#'
17171 ENABLE_SERVER_FALSE=
17174 # Check whether --enable-server or --disable-server was given.
17175 if test "${enable_server+set}" = set; then
17176 enableval="$enable_server"
17177 case "x$enable_server" in xyes|xdynamic) ;; esac
17179 case "x$enable_server" in
17181 cat >> confdefs.h <<EOF
17182 #define IA_SERVER 1
17188 ENABLE_SERVER_TRUE=
17189 ENABLE_SERVER_FALSE='#'
17191 ENABLE_SERVER_TRUE='#'
17192 ENABLE_SERVER_FALSE=
17195 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17197 for ac_header in sys/soundcard.h
17199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17201 echo "$as_me:$LINENO: checking for $ac_header" >&5
17202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17209 # Is the header compilable?
17210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17212 cat >conftest.$ac_ext <<_ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17218 $ac_includes_default
17219 #include <$ac_header>
17221 rm -f conftest.$ac_objext
17222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17223 (eval $ac_compile) 2>conftest.er1
17225 grep -v '^ *+' conftest.er1 >conftest.err
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
17230 { ac_try='test -z "$ac_c_werror_flag"
17231 || test ! -s conftest.err'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; } &&
17237 { ac_try='test -s conftest.$ac_objext'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 ac_header_compiler=yes
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ac_header_compiler=no
17250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17252 echo "${ECHO_T}$ac_header_compiler" >&6
17254 # Is the header present?
17255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17257 cat >conftest.$ac_ext <<_ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17263 #include <$ac_header>
17265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17268 grep -v '^ *+' conftest.er1 >conftest.err
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } >/dev/null; then
17273 if test -s conftest.err; then
17274 ac_cpp_err=$ac_c_preproc_warn_flag
17275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17282 if test -z "$ac_cpp_err"; then
17283 ac_header_preproc=yes
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 ac_header_preproc=no
17290 rm -f conftest.err conftest.$ac_ext
17291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17292 echo "${ECHO_T}$ac_header_preproc" >&6
17294 # So? What about this header?
17295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17301 ac_header_preproc=yes
17304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17318 ## ------------------------------- ##
17319 ## Report this to root@mput.dip.jp ##
17320 ## ------------------------------- ##
17323 sed "s/^/$as_me: WARNING: /" >&2
17326 echo "$as_me:$LINENO: checking for $ac_header" >&5
17327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 eval "$as_ac_Header=\$ac_header_preproc"
17333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17338 cat >>confdefs.h <<_ACEOF
17339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17349 dynamic_targets="$dynamic_targets interface_r.\$(so)"
17362 ENABLE_ALSASEQ_TRUE=
17363 ENABLE_ALSASEQ_FALSE='#'
17365 ENABLE_ALSASEQ_TRUE='#'
17366 ENABLE_ALSASEQ_FALSE=
17369 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17370 if test "${enable_alsaseq+set}" = set; then
17371 enableval="$enable_alsaseq"
17372 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
17374 case "x$enable_alsaseq" in
17376 cat >> confdefs.h <<EOF
17377 #define IA_ALSASEQ 1
17383 ENABLE_ALSASEQ_TRUE=
17384 ENABLE_ALSASEQ_FALSE='#'
17386 ENABLE_ALSASEQ_TRUE='#'
17387 ENABLE_ALSASEQ_FALSE=
17390 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17391 alsa_save_CFLAGS="$CFLAGS"
17392 alsa_save_LDFLAGS="$LDFLAGS"
17393 alsa_save_LIBS="$LIBS"
17397 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17398 if test "${with_alsa_prefix+set}" = set; then
17399 withval="$with_alsa_prefix"
17400 alsa_prefix="$withval"
17406 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17407 if test "${with_alsa_inc_prefix+set}" = set; then
17408 withval="$with_alsa_inc_prefix"
17409 alsa_inc_prefix="$withval"
17414 # Check whether --enable-alsatest or --disable-alsatest was given.
17415 if test "${enable_alsatest+set}" = set; then
17416 enableval="$enable_alsatest"
17419 enable_alsatest=yes
17422 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17423 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17424 if test "$alsa_inc_prefix" != "" ; then
17425 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17426 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17428 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17429 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17431 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17432 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17433 if test "$alsa_prefix" != "" ; then
17434 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17435 LDFLAGS="$LDFLAGS $ALSA_LIBS"
17438 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17439 LIBS=`echo $LIBS | sed 's/-lm//'`
17440 LIBS=`echo $LIBS | sed 's/-ldl//'`
17441 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17442 LIBS=`echo $LIBS | sed 's/ //'`
17443 LIBS="$ALSA_LIBS $LIBS"
17444 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17445 echo "${ECHO_T}$ALSA_LIBS" >&6
17447 min_alsa_version=0.1.1
17448 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17449 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17451 alsa_min_major_version=`echo $min_alsa_version | \
17452 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17453 alsa_min_minor_version=`echo $min_alsa_version | \
17454 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17455 alsa_min_micro_version=`echo $min_alsa_version | \
17456 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17462 ac_cpp='$CPP $CPPFLAGS'
17463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17474 #include <alsa/asoundlib.h>
17480 /* ensure backward compatibility */
17481 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17482 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17484 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17485 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17487 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17488 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17491 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17494 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17495 # error not present
17498 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17501 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17502 # error not present
17505 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17506 # error not present
17516 rm -f conftest.$ac_objext
17517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17518 (eval $ac_compile) 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -z "$ac_c_werror_flag"
17526 || test ! -s conftest.err'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 echo "$as_me:$LINENO: result: found." >&5
17539 echo "${ECHO_T}found." >&6
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 cat >conftest.$ac_ext <<_ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17551 #include <sys/asoundlib.h>
17557 /* ensure backward compatibility */
17558 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17559 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17561 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17562 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17564 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17565 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17568 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17571 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17572 # error not present
17575 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17578 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17579 # error not present
17582 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17583 # error not present
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595 (eval $ac_compile) 2>conftest.er1
17597 grep -v '^ *+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 echo "$as_me:$LINENO: result: found." >&5
17616 echo "${ECHO_T}found." >&6
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 echo "$as_me:$LINENO: result: not present." >&5
17622 echo "${ECHO_T}not present." >&6
17623 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
17624 echo "${ECHO_T}libasound was not found anywhere." >&6
17627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17628 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
17629 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
17632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17634 ac_cpp='$CPP $CPPFLAGS'
17635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17641 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
17642 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
17643 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17646 ac_check_lib_save_LIBS=$LIBS
17647 LIBS="-lasound $LIBS"
17648 cat >conftest.$ac_ext <<_ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17655 /* Override any gcc2 internal prototype to avoid an error. */
17659 /* We use char because int might match the return type of a gcc2
17660 builtin and then its argument prototype would still apply. */
17661 char snd_ctl_open ();
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17672 (eval $ac_link) 2>conftest.er1
17674 grep -v '^ *+' conftest.er1 >conftest.err
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } &&
17679 { ac_try='test -z "$ac_c_werror_flag"
17680 || test ! -s conftest.err'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; } &&
17686 { ac_try='test -s conftest$ac_exeext'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; }; then
17692 ac_cv_lib_asound_snd_ctl_open=yes
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_cv_lib_asound_snd_ctl_open=no
17699 rm -f conftest.err conftest.$ac_objext \
17700 conftest$ac_exeext conftest.$ac_ext
17701 LIBS=$ac_check_lib_save_LIBS
17703 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17704 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
17705 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define HAVE_LIBASOUND 1
17710 LIBS="-lasound $LIBS"
17713 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
17714 echo "${ECHO_T}No linkable libasound was found." >&6
17720 if test "x$alsa_found" = "xyes" ; then
17722 LIBS=`echo $LIBS | sed 's/-lasound//g'`
17723 LIBS=`echo $LIBS | sed 's/ //'`
17724 LIBS="-lasound $LIBS"
17727 CFLAGS="$alsa_save_CFLAGS"
17728 LDFLAGS="$alsa_save_LDFLAGS"
17729 LIBS="$alsa_save_LIBS"
17740 dynamic_targets="$dynamic_targets interface_A.\$(so)"
17753 ENABLE_WINSYN_TRUE=
17754 ENABLE_WINSYN_FALSE='#'
17756 ENABLE_WINSYN_TRUE='#'
17757 ENABLE_WINSYN_FALSE=
17760 # Check whether --enable-winsyn or --disable-winsyn was given.
17761 if test "${enable_winsyn+set}" = set; then
17762 enableval="$enable_winsyn"
17763 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
17765 case "x$enable_winsyn" in
17767 cat >> confdefs.h <<EOF
17768 #define IA_WINSYN 1
17774 ENABLE_WINSYN_TRUE=
17775 ENABLE_WINSYN_FALSE='#'
17777 ENABLE_WINSYN_TRUE='#'
17778 ENABLE_WINSYN_FALSE=
17781 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17784 dynamic_targets="$dynamic_targets interface_W.\$(so)"
17797 ENABLE_PORTMIDISYN_TRUE=
17798 ENABLE_PORTMIDISYN_FALSE='#'
17800 ENABLE_PORTMIDISYN_TRUE='#'
17801 ENABLE_PORTMIDISYN_FALSE=
17804 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
17805 if test "${enable_portmidisyn+set}" = set; then
17806 enableval="$enable_portmidisyn"
17807 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
17809 case "x$enable_portmidisyn" in
17811 cat >> confdefs.h <<EOF
17812 #define IA_PORTMIDISYN 1
17818 ENABLE_PORTMIDISYN_TRUE=
17819 ENABLE_PORTMIDISYN_FALSE='#'
17821 ENABLE_PORTMIDISYN_TRUE='#'
17822 ENABLE_PORTMIDISYN_FALSE=
17825 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
17828 dynamic_targets="$dynamic_targets interface_P.\$(so)"
17841 ENABLE_W32G_SYN_TRUE=
17842 ENABLE_W32G_SYN_FALSE='#'
17844 ENABLE_W32G_SYN_TRUE='#'
17845 ENABLE_W32G_SYN_FALSE=
17848 # Check whether --enable-winsyng or --disable-winsyng was given.
17849 if test "${enable_winsyng+set}" = set; then
17850 enableval="$enable_winsyng"
17851 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
17853 case "x$enable_winsyng" in
17855 cat >> confdefs.h <<EOF
17856 #define IA_W32G_SYN 1
17862 ENABLE_W32G_SYN_TRUE=
17863 ENABLE_W32G_SYN_FALSE='#'
17865 ENABLE_W32G_SYN_TRUE='#'
17866 ENABLE_W32G_SYN_FALSE=
17869 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17870 lib_user32_opt='-luser32'
17871 LDFLAGS="-mwindows $LDFLAGS"
17872 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"
17876 dynamic_targets="$dynamic_targets interface_W.\$(so)"
17890 ENABLE_W32GUI_TRUE=
17891 ENABLE_W32GUI_FALSE='#'
17893 ENABLE_W32GUI_TRUE='#'
17894 ENABLE_W32GUI_FALSE=
17897 # Check whether --enable-w32gui or --disable-w32gui was given.
17898 if test "${enable_w32gui+set}" = set; then
17899 enableval="$enable_w32gui"
17900 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
17902 case "x$enable_w32gui" in
17904 cat >> confdefs.h <<EOF
17905 #define IA_W32GUI 1
17911 ENABLE_W32GUI_TRUE=
17912 ENABLE_W32GUI_FALSE='#'
17914 ENABLE_W32GUI_TRUE='#'
17915 ENABLE_W32GUI_FALSE=
17918 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17919 lib_user32_opt='-luser32'
17920 LDFLAGS="-mwindows $LDFLAGS"
17921 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"
17925 dynamic_targets="$dynamic_targets interface_w.\$(so)"
17938 ENABLE_PLUGIN_TRUE=
17939 ENABLE_PLUGIN_FALSE='#'
17941 ENABLE_PLUGIN_TRUE='#'
17942 ENABLE_PLUGIN_FALSE=
17945 # Check whether --enable-ump or --disable-ump was given.
17946 if test "${enable_ump+set}" = set; then
17947 enableval="$enable_ump"
17948 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
17949 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
17950 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
17951 { (exit 1); exit 1; }; }
17953 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17954 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17955 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17956 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17960 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17962 # Is the header compilable?
17963 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17964 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17972 #include <X11/xpm.h>
17974 rm -f conftest.$ac_objext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976 (eval $ac_compile) 2>conftest.er1
17978 grep -v '^ *+' conftest.er1 >conftest.err
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag"
17984 || test ! -s conftest.err'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest.$ac_objext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17996 ac_header_compiler=yes
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18001 ac_header_compiler=no
18003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18005 echo "${ECHO_T}$ac_header_compiler" >&6
18007 # Is the header present?
18008 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18009 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18010 cat >conftest.$ac_ext <<_ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18016 #include <X11/xpm.h>
18018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18021 grep -v '^ *+' conftest.er1 >conftest.err
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } >/dev/null; then
18026 if test -s conftest.err; then
18027 ac_cpp_err=$ac_c_preproc_warn_flag
18028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18035 if test -z "$ac_cpp_err"; then
18036 ac_header_preproc=yes
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 ac_header_preproc=no
18043 rm -f conftest.err conftest.$ac_ext
18044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18045 echo "${ECHO_T}$ac_header_preproc" >&6
18047 # So? What about this header?
18048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18050 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18051 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18052 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18053 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18054 ac_header_preproc=yes
18057 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18058 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18059 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
18060 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
18061 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18062 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18063 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
18064 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18065 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18066 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18068 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18071 ## ------------------------------- ##
18072 ## Report this to root@mput.dip.jp ##
18073 ## ------------------------------- ##
18076 sed "s/^/$as_me: WARNING: /" >&2
18079 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18080 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18081 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 ac_cv_header_X11_xpm_h=$ac_header_preproc
18086 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18087 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18090 if test $ac_cv_header_X11_xpm_h = yes; then
18093 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18094 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18095 { (exit 1); exit 1; }; }
18099 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18100 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18101 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 ac_check_lib_save_LIBS=$LIBS
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18113 /* Override any gcc2 internal prototype to avoid an error. */
18117 /* We use char because int might match the return type of a gcc2
18118 builtin and then its argument prototype would still apply. */
18119 char XpmCreatePixmapFromData ();
18123 XpmCreatePixmapFromData ();
18128 rm -f conftest.$ac_objext conftest$ac_exeext
18129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18130 (eval $ac_link) 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } &&
18137 { ac_try='test -z "$ac_c_werror_flag"
18138 || test ! -s conftest.err'
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); }; } &&
18144 { ac_try='test -s conftest$ac_exeext'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; }; then
18150 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18155 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18157 rm -f conftest.err conftest.$ac_objext \
18158 conftest$ac_exeext conftest.$ac_ext
18159 LIBS=$ac_check_lib_save_LIBS
18161 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18162 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18163 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18166 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18167 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18168 { (exit 1); exit 1; }; }
18171 if test "x$have_xext" = xyes; then
18172 lib_xext_opt=-lXext
18174 if test "x$have_xprelibs" = xyes; then
18175 lib_xprelibs_opt='-lSM -lICE'
18181 case "x$enable_ump" in
18183 cat >> confdefs.h <<EOF
18184 #define IA_PLUGIN 1
18190 ENABLE_PLUGIN_TRUE=
18191 ENABLE_PLUGIN_FALSE='#'
18193 ENABLE_PLUGIN_TRUE='#'
18194 ENABLE_PLUGIN_FALSE=
18200 dynamic_targets="$dynamic_targets interface_p.\$(so)"
18211 # Check whether --enable-offix or --disable-offix was given.
18212 if test "${enable_offix+set}" = set; then
18213 enableval="$enable_offix"
18214 if test "$enableval" = "yes"; then
18215 KEEPCPPFLAGS=$CPPFLAGS
18217 KEEPLDFLAGS=$LDFLAGS
18218 CPPFLAGS="$CPPFLAGS $offix_include_dir"
18219 LDFLAGS="$LDFLAGS $offix_lib_dir"
18220 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18221 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18222 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18223 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 ac_check_lib_save_LIBS=$LIBS
18228 cat >conftest.$ac_ext <<_ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18235 /* Override any gcc2 internal prototype to avoid an error. */
18239 /* We use char because int might match the return type of a gcc2
18240 builtin and then its argument prototype would still apply. */
18241 char DndInitialize ();
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252 (eval $ac_link) 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } &&
18259 { ac_try='test -z "$ac_c_werror_flag"
18260 || test ! -s conftest.err'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; } &&
18266 { ac_try='test -s conftest$ac_exeext'
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 ac_cv_lib_Dnd_DndInitialize=yes
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 ac_cv_lib_Dnd_DndInitialize=no
18279 rm -f conftest.err conftest.$ac_objext \
18280 conftest$ac_exeext conftest.$ac_ext
18281 LIBS=$ac_check_lib_save_LIBS
18283 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18284 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18285 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18288 lib_offix_opt="-lDnd"
18290 cat >>confdefs.h <<\_ACEOF
18296 LDFLAGS=$KEEPLDFLAGS
18297 CPPFLAGS=$KEEPCPPFLAGS
18306 # Check whether --enable-network or --disable-network was given.
18307 if test "${enable_network+set}" = set; then
18308 enableval="$enable_network"
18309 if test "$enableval" = "yes"; then
18311 cat >>confdefs.h <<\_ACEOF
18312 #define SUPPORT_SOCKET 1
18319 if test "x$enable_network" = "xyes"; then
18320 ENABLE_NETWORK_TRUE=
18321 ENABLE_NETWORK_FALSE='#'
18323 ENABLE_NETWORK_TRUE='#'
18324 ENABLE_NETWORK_FALSE=
18328 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18329 if test "${enable_spectrogram+set}" = set; then
18330 enableval="$enable_spectrogram"
18331 if test "$enableval" = "yes"; then
18332 if test "x$with_x" != xyes; then
18333 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18334 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18335 { (exit 1); exit 1; }; }
18338 cat >>confdefs.h <<\_ACEOF
18339 #define SUPPORT_SOUNDSPEC 1
18346 if test "x$enable_spectrogram" = "xyes"; then
18347 ENABLE_SOUND_SPEC_TRUE=
18348 ENABLE_SOUND_SPEC_FALSE='#'
18350 ENABLE_SOUND_SPEC_TRUE='#'
18351 ENABLE_SOUND_SPEC_FALSE=
18355 # Check whether --enable-spline or --disable-spline was given.
18356 if test "${enable_spline+set}" = set; then
18357 enableval="$enable_spline"
18358 case "x$enableval" in
18361 cat >>confdefs.h <<\_ACEOF
18362 #define DEFAULT_RESAMPLATION resample_linear
18368 cat >>confdefs.h <<\_ACEOF
18369 #define DEFAULT_RESAMPLATION resample_cspline
18375 cat >>confdefs.h <<\_ACEOF
18376 #define DEFAULT_RESAMPLATION resample_lagrange
18382 cat >>confdefs.h <<\_ACEOF
18383 #define DEFAULT_RESAMPLATION resample_newton
18389 cat >>confdefs.h <<\_ACEOF
18390 #define DEFAULT_RESAMPLATION resample_gauss
18396 cat >>confdefs.h <<\_ACEOF
18397 #define DEFAULT_RESAMPLATION resample_none
18402 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18403 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18404 { (exit 1); exit 1; }; }
18409 # Check whether --enable-wrd or --disable-wrd was given.
18410 if test "${enable_wrd+set}" = set; then
18411 enableval="$enable_wrd"
18412 if test "$enableval" = "yes"; then
18413 if test "x$with_x" != xyes; then
18414 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18415 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18416 { (exit 1); exit 1; }; }
18419 cat >>confdefs.h <<\_ACEOF
18423 enable_sherry_wrd=yes
18424 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18425 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18426 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 ac_check_lib_save_LIBS=$LIBS
18431 cat >conftest.$ac_ext <<_ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h. */
18438 /* Override any gcc2 internal prototype to avoid an error. */
18442 /* We use char because int might match the return type of a gcc2
18443 builtin and then its argument prototype would still apply. */
18444 char zlibVersion ();
18453 rm -f conftest.$ac_objext conftest$ac_exeext
18454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18455 (eval $ac_link) 2>conftest.er1
18457 grep -v '^ *+' conftest.er1 >conftest.err
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } &&
18462 { ac_try='test -z "$ac_c_werror_flag"
18463 || test ! -s conftest.err'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest$ac_exeext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_lib_z_zlibVersion=yes
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18480 ac_cv_lib_z_zlibVersion=no
18482 rm -f conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18486 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18487 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18488 if test $ac_cv_lib_z_zlibVersion = yes; then
18491 enable_sherry_wrd=no
18494 if test "${ac_cv_header_png_h+set}" = set; then
18495 echo "$as_me:$LINENO: checking for png.h" >&5
18496 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18497 if test "${ac_cv_header_png_h+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18501 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18503 # Is the header compilable?
18504 echo "$as_me:$LINENO: checking png.h usability" >&5
18505 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 $ac_includes_default
18515 rm -f conftest.$ac_objext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517 (eval $ac_compile) 2>conftest.er1
18519 grep -v '^ *+' conftest.er1 >conftest.err
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag"
18525 || test ! -s conftest.err'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest.$ac_objext'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_header_compiler=yes
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ac_header_compiler=no
18544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18546 echo "${ECHO_T}$ac_header_compiler" >&6
18548 # Is the header present?
18549 echo "$as_me:$LINENO: checking png.h presence" >&5
18550 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18551 cat >conftest.$ac_ext <<_ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18562 grep -v '^ *+' conftest.er1 >conftest.err
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } >/dev/null; then
18567 if test -s conftest.err; then
18568 ac_cpp_err=$ac_c_preproc_warn_flag
18569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18576 if test -z "$ac_cpp_err"; then
18577 ac_header_preproc=yes
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 ac_header_preproc=no
18584 rm -f conftest.err conftest.$ac_ext
18585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18586 echo "${ECHO_T}$ac_header_preproc" >&6
18588 # So? What about this header?
18589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18591 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18592 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18593 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
18594 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
18595 ac_header_preproc=yes
18598 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18599 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18600 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18601 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18602 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
18603 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
18604 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
18605 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
18606 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18607 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18608 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
18609 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
18612 ## ------------------------------- ##
18613 ## Report this to root@mput.dip.jp ##
18614 ## ------------------------------- ##
18617 sed "s/^/$as_me: WARNING: /" >&2
18620 echo "$as_me:$LINENO: checking for png.h" >&5
18621 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18622 if test "${ac_cv_header_png_h+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18625 ac_cv_header_png_h=$ac_header_preproc
18627 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18628 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18631 if test $ac_cv_header_png_h = yes; then
18634 enable_sherry_wrd=no
18638 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
18639 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
18640 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 ac_check_lib_save_LIBS=$LIBS
18644 LIBS="-lpng -lz $LIBS"
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18652 /* Override any gcc2 internal prototype to avoid an error. */
18656 /* We use char because int might match the return type of a gcc2
18657 builtin and then its argument prototype would still apply. */
18658 char png_init_io ();
18667 rm -f conftest.$ac_objext conftest$ac_exeext
18668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18669 (eval $ac_link) 2>conftest.er1
18671 grep -v '^ *+' conftest.er1 >conftest.err
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } &&
18676 { ac_try='test -z "$ac_c_werror_flag"
18677 || test ! -s conftest.err'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest$ac_exeext'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 ac_cv_lib_png_png_init_io=yes
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18694 ac_cv_lib_png_png_init_io=no
18696 rm -f conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18698 LIBS=$ac_check_lib_save_LIBS
18700 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
18701 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
18702 if test $ac_cv_lib_png_png_init_io = yes; then
18705 enable_sherry_wrd=no
18708 if test "$enable_sherry_wrd" = yes; then
18710 cat >>confdefs.h <<\_ACEOF
18711 #define ENABLE_SHERRY 1
18717 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
18718 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
18720 if test "x$have_xext" = xyes; then
18721 lib_xext_opt=-lXext
18734 if test "x$enable_wrd" = "xyes"; then
18736 ENABLE_WRD_FALSE='#'
18738 ENABLE_WRD_TRUE='#'
18745 if test "x$CYGNUS" = xyes; then
18755 if test "x$MINGW" = xyes; then
18765 if test "x$W32READDIR" = "xyes"; then
18767 W32READDIR_FALSE='#'
18769 W32READDIR_TRUE='#'
18774 rm -f wordtmp >/dev/null 2>&1
18776 for f in $LDFLAGS; do
18777 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18780 echo $f >>wordtmp; val="$val $f"
18785 rm -f wordtmp >/dev/null 2>&1
18787 rm -f wordtmp >/dev/null 2>&1
18789 for f in $SHLDFLAGS; do
18790 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18793 echo $f >>wordtmp; val="$val $f"
18798 rm -f wordtmp >/dev/null 2>&1
18800 rm -f wordtmp >/dev/null 2>&1
18802 for f in $EXTRACFLAGS $CFLAGS; do
18803 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18806 echo $f >>wordtmp; val="$val $f"
18811 rm -f wordtmp >/dev/null 2>&1
18813 rm -f wordtmp >/dev/null 2>&1
18815 for f in $CPPFLAGS $EXTRADEFS; do
18816 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18819 echo $f >>wordtmp; val="$val $f"
18824 rm -f wordtmp >/dev/null 2>&1
18827 if test "x$oss_device" != x; then
18829 cat >>confdefs.h <<_ACEOF
18830 #define OSS_DEVICE "$oss_device"
18835 if test "x$TIMIDITY_OUTPUT_ID" != x; then
18837 cat >>confdefs.h <<_ACEOF
18838 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
18843 if test "x$with_x" = xyes; then
18844 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/"`
18846 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
18847 SHLD="$SHLD $SHLDFLAGS"
18867 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 utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
18869 cat >confcache <<\_ACEOF
18870 # This file is a shell script that caches the results of configure
18871 # tests run on this system so they can be shared between configure
18872 # scripts and configure runs, see configure's option --config-cache.
18873 # It is not useful on other systems. If it contains results you don't
18874 # want to keep, you may remove or edit it.
18876 # config.status only pays attention to the cache file if you give it
18877 # the --recheck option to rerun configure.
18879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18881 # following values.
18885 # The following way of writing the cache mishandles newlines in values,
18886 # but we know of no workaround that is simple, portable, and efficient.
18887 # So, don't put newlines in cache variables' values.
18888 # Ultrix sh set writes to stderr and can't be redirected directly,
18889 # and sets the high bit in the cache file unless we assign to the vars.
18892 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18894 # `set' does not quote correctly, so add quotes (double-quote
18895 # substitution turns \\\\ into \\, and sed turns \\ into \).
18898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18901 # `set' quotes correctly as required by POSIX, so do not add quotes.
18903 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18912 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18914 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18915 if test -w $cache_file; then
18916 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18917 cat confcache >$cache_file
18919 echo "not updating unwritable cache $cache_file"
18924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18925 # Let make expand exec_prefix.
18926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18930 # trailing colons and then remove the whole line if VPATH becomes empty
18931 # (actually we leave an empty line to preserve line numbers).
18932 if test "x$srcdir" = x.; then
18933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18934 s/:*\$(srcdir):*/:/;
18935 s/:*\${srcdir}:*/:/;
18937 s/^\([^=]*=[ ]*\):*/\1/;
18943 DEFS=-DHAVE_CONFIG_H
18947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18948 # 1. Remove the extension, and $U if already installed.
18949 ac_i=`echo "$ac_i" |
18950 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18952 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18953 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18955 LIBOBJS=$ac_libobjs
18957 LTLIBOBJS=$ac_ltlibobjs
18960 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18961 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18962 Usually this means the macro was only invoked conditionally." >&5
18963 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18964 Usually this means the macro was only invoked conditionally." >&2;}
18965 { (exit 1); exit 1; }; }
18967 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18968 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18969 Usually this means the macro was only invoked conditionally." >&5
18970 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18971 Usually this means the macro was only invoked conditionally." >&2;}
18972 { (exit 1); exit 1; }; }
18974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18975 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18976 Usually this means the macro was only invoked conditionally." >&5
18977 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18978 Usually this means the macro was only invoked conditionally." >&2;}
18979 { (exit 1); exit 1; }; }
18981 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18982 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18983 Usually this means the macro was only invoked conditionally." >&5
18984 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18985 Usually this means the macro was only invoked conditionally." >&2;}
18986 { (exit 1); exit 1; }; }
18988 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18989 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18990 Usually this means the macro was only invoked conditionally." >&5
18991 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18992 Usually this means the macro was only invoked conditionally." >&2;}
18993 { (exit 1); exit 1; }; }
18995 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18996 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18997 Usually this means the macro was only invoked conditionally." >&5
18998 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18999 Usually this means the macro was only invoked conditionally." >&2;}
19000 { (exit 1); exit 1; }; }
19002 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19003 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19004 Usually this means the macro was only invoked conditionally." >&5
19005 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19006 Usually this means the macro was only invoked conditionally." >&2;}
19007 { (exit 1); exit 1; }; }
19009 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19010 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19011 Usually this means the macro was only invoked conditionally." >&5
19012 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19013 Usually this means the macro was only invoked conditionally." >&2;}
19014 { (exit 1); exit 1; }; }
19016 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19017 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19018 Usually this means the macro was only invoked conditionally." >&5
19019 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19020 Usually this means the macro was only invoked conditionally." >&2;}
19021 { (exit 1); exit 1; }; }
19023 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19024 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19025 Usually this means the macro was only invoked conditionally." >&5
19026 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19027 Usually this means the macro was only invoked conditionally." >&2;}
19028 { (exit 1); exit 1; }; }
19030 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19031 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19032 Usually this means the macro was only invoked conditionally." >&5
19033 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19034 Usually this means the macro was only invoked conditionally." >&2;}
19035 { (exit 1); exit 1; }; }
19037 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19038 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19039 Usually this means the macro was only invoked conditionally." >&5
19040 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19041 Usually this means the macro was only invoked conditionally." >&2;}
19042 { (exit 1); exit 1; }; }
19044 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19045 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19046 Usually this means the macro was only invoked conditionally." >&5
19047 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19048 Usually this means the macro was only invoked conditionally." >&2;}
19049 { (exit 1); exit 1; }; }
19051 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19052 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19053 Usually this means the macro was only invoked conditionally." >&5
19054 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19055 Usually this means the macro was only invoked conditionally." >&2;}
19056 { (exit 1); exit 1; }; }
19058 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19059 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19060 Usually this means the macro was only invoked conditionally." >&5
19061 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19062 Usually this means the macro was only invoked conditionally." >&2;}
19063 { (exit 1); exit 1; }; }
19065 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19066 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19067 Usually this means the macro was only invoked conditionally." >&5
19068 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19069 Usually this means the macro was only invoked conditionally." >&2;}
19070 { (exit 1); exit 1; }; }
19072 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19073 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19074 Usually this means the macro was only invoked conditionally." >&5
19075 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19076 Usually this means the macro was only invoked conditionally." >&2;}
19077 { (exit 1); exit 1; }; }
19079 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19080 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19081 Usually this means the macro was only invoked conditionally." >&5
19082 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19083 Usually this means the macro was only invoked conditionally." >&2;}
19084 { (exit 1); exit 1; }; }
19086 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19087 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19088 Usually this means the macro was only invoked conditionally." >&5
19089 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19090 Usually this means the macro was only invoked conditionally." >&2;}
19091 { (exit 1); exit 1; }; }
19093 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19094 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19095 Usually this means the macro was only invoked conditionally." >&5
19096 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19097 Usually this means the macro was only invoked conditionally." >&2;}
19098 { (exit 1); exit 1; }; }
19100 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19101 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19102 Usually this means the macro was only invoked conditionally." >&5
19103 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19104 Usually this means the macro was only invoked conditionally." >&2;}
19105 { (exit 1); exit 1; }; }
19107 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19108 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19109 Usually this means the macro was only invoked conditionally." >&5
19110 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19111 Usually this means the macro was only invoked conditionally." >&2;}
19112 { (exit 1); exit 1; }; }
19114 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19115 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19116 Usually this means the macro was only invoked conditionally." >&5
19117 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19118 Usually this means the macro was only invoked conditionally." >&2;}
19119 { (exit 1); exit 1; }; }
19121 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19122 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19123 Usually this means the macro was only invoked conditionally." >&5
19124 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19125 Usually this means the macro was only invoked conditionally." >&2;}
19126 { (exit 1); exit 1; }; }
19128 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19129 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19130 Usually this means the macro was only invoked conditionally." >&5
19131 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19132 Usually this means the macro was only invoked conditionally." >&2;}
19133 { (exit 1); exit 1; }; }
19135 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19136 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19137 Usually this means the macro was only invoked conditionally." >&5
19138 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19139 Usually this means the macro was only invoked conditionally." >&2;}
19140 { (exit 1); exit 1; }; }
19142 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19143 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19144 Usually this means the macro was only invoked conditionally." >&5
19145 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19146 Usually this means the macro was only invoked conditionally." >&2;}
19147 { (exit 1); exit 1; }; }
19149 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19150 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19151 Usually this means the macro was only invoked conditionally." >&5
19152 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19153 Usually this means the macro was only invoked conditionally." >&2;}
19154 { (exit 1); exit 1; }; }
19156 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19157 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19158 Usually this means the macro was only invoked conditionally." >&5
19159 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19160 Usually this means the macro was only invoked conditionally." >&2;}
19161 { (exit 1); exit 1; }; }
19163 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19164 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19165 Usually this means the macro was only invoked conditionally." >&5
19166 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19167 Usually this means the macro was only invoked conditionally." >&2;}
19168 { (exit 1); exit 1; }; }
19170 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19171 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19172 Usually this means the macro was only invoked conditionally." >&5
19173 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19174 Usually this means the macro was only invoked conditionally." >&2;}
19175 { (exit 1); exit 1; }; }
19177 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19178 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19179 Usually this means the macro was only invoked conditionally." >&5
19180 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19181 Usually this means the macro was only invoked conditionally." >&2;}
19182 { (exit 1); exit 1; }; }
19184 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19185 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19186 Usually this means the macro was only invoked conditionally." >&5
19187 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19188 Usually this means the macro was only invoked conditionally." >&2;}
19189 { (exit 1); exit 1; }; }
19191 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19192 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19193 Usually this means the macro was only invoked conditionally." >&5
19194 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19195 Usually this means the macro was only invoked conditionally." >&2;}
19196 { (exit 1); exit 1; }; }
19198 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19199 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19200 Usually this means the macro was only invoked conditionally." >&5
19201 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19202 Usually this means the macro was only invoked conditionally." >&2;}
19203 { (exit 1); exit 1; }; }
19205 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19206 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19207 Usually this means the macro was only invoked conditionally." >&5
19208 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19209 Usually this means the macro was only invoked conditionally." >&2;}
19210 { (exit 1); exit 1; }; }
19212 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19213 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19214 Usually this means the macro was only invoked conditionally." >&5
19215 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19216 Usually this means the macro was only invoked conditionally." >&2;}
19217 { (exit 1); exit 1; }; }
19219 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19220 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19221 Usually this means the macro was only invoked conditionally." >&5
19222 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19223 Usually this means the macro was only invoked conditionally." >&2;}
19224 { (exit 1); exit 1; }; }
19226 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19227 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19228 Usually this means the macro was only invoked conditionally." >&5
19229 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19230 Usually this means the macro was only invoked conditionally." >&2;}
19231 { (exit 1); exit 1; }; }
19233 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19234 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19235 Usually this means the macro was only invoked conditionally." >&5
19236 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19237 Usually this means the macro was only invoked conditionally." >&2;}
19238 { (exit 1); exit 1; }; }
19240 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19241 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19242 Usually this means the macro was only invoked conditionally." >&5
19243 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19244 Usually this means the macro was only invoked conditionally." >&2;}
19245 { (exit 1); exit 1; }; }
19247 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19248 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19249 Usually this means the macro was only invoked conditionally." >&5
19250 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19251 Usually this means the macro was only invoked conditionally." >&2;}
19252 { (exit 1); exit 1; }; }
19254 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
19255 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
19256 Usually this means the macro was only invoked conditionally." >&5
19257 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
19258 Usually this means the macro was only invoked conditionally." >&2;}
19259 { (exit 1); exit 1; }; }
19261 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
19262 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
19263 Usually this means the macro was only invoked conditionally." >&5
19264 echo "$as_me: error: conditional \"MINGW\" was never defined.
19265 Usually this means the macro was only invoked conditionally." >&2;}
19266 { (exit 1); exit 1; }; }
19268 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19269 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19270 Usually this means the macro was only invoked conditionally." >&5
19271 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19272 Usually this means the macro was only invoked conditionally." >&2;}
19273 { (exit 1); exit 1; }; }
19276 : ${CONFIG_STATUS=./config.status}
19277 ac_clean_files_save=$ac_clean_files
19278 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19279 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19280 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19281 cat >$CONFIG_STATUS <<_ACEOF
19283 # Generated by $as_me.
19284 # Run this file to recreate the current configuration.
19285 # Compiler output produced by configure, useful for debugging
19286 # configure, is in config.log if it exists.
19289 ac_cs_recheck=false
19291 SHELL=\${CONFIG_SHELL-$SHELL}
19294 cat >>$CONFIG_STATUS <<\_ACEOF
19295 ## --------------------- ##
19296 ## M4sh Initialization. ##
19297 ## --------------------- ##
19299 # Be Bourne compatible
19300 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19303 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19304 # is contrary to our usage. Disable this feature.
19305 alias -g '${1+"$@"}'='"$@"'
19306 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19309 DUALCASE=1; export DUALCASE # for MKS sh
19311 # Support unset when possible.
19312 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19319 # Work around bugs in pre-3.0 UWIN ksh.
19320 $as_unset ENV MAIL MAILPATH
19327 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19328 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19329 LC_TELEPHONE LC_TIME
19331 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19332 eval $as_var=C; export $as_var
19338 # Required to use basename.
19339 if expr a : '\(a\)' >/dev/null 2>&1; then
19345 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19346 as_basename=basename
19352 # Name of the executable.
19353 as_me=`$as_basename "$0" ||
19354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19355 X"$0" : 'X\(//\)$' \| \
19356 X"$0" : 'X\(/\)$' \| \
19357 . : '\(.\)' 2>/dev/null ||
19359 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19360 /^X\/\(\/\/\)$/{ s//\1/; q; }
19361 /^X\/\(\/\).*/{ s//\1/; q; }
19365 # PATH needs CR, and LINENO needs CR and PATH.
19366 # Avoid depending upon Character Ranges.
19367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19370 as_cr_digits='0123456789'
19371 as_cr_alnum=$as_cr_Letters$as_cr_digits
19373 # The user is always right.
19374 if test "${PATH_SEPARATOR+set}" != set; then
19375 echo "#! /bin/sh" >conf$$.sh
19376 echo "exit 0" >>conf$$.sh
19378 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19387 as_lineno_1=$LINENO
19388 as_lineno_2=$LINENO
19389 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19390 test "x$as_lineno_1" != "x$as_lineno_2" &&
19391 test "x$as_lineno_3" = "x$as_lineno_2" || {
19392 # Find who we are. Look in the path if we contain no path at all
19395 *[\\/]* ) as_myself=$0 ;;
19396 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19397 for as_dir in $PATH
19400 test -z "$as_dir" && as_dir=.
19401 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19406 # We did not find ourselves, most probably we were run as `sh COMMAND'
19407 # in which case we are not to be found in the path.
19408 if test "x$as_myself" = x; then
19411 if test ! -f "$as_myself"; then
19412 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19413 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19414 { (exit 1); exit 1; }; }
19416 case $CONFIG_SHELL in
19418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19419 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19422 test -z "$as_dir" && as_dir=.
19423 for as_base in sh bash ksh sh5; do
19426 if ("$as_dir/$as_base" -c '
19427 as_lineno_1=$LINENO
19428 as_lineno_2=$LINENO
19429 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19430 test "x$as_lineno_1" != "x$as_lineno_2" &&
19431 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19432 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19433 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19434 CONFIG_SHELL=$as_dir/$as_base
19435 export CONFIG_SHELL
19436 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19444 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19445 # uniformly replaced by the line number. The first 'sed' inserts a
19446 # line-number line before each line; the second 'sed' does the real
19447 # work. The second script uses 'N' to pair each line-number line
19448 # with the numbered line, and appends trailing '-' during
19449 # substitution so that $LINENO is not a special case at line end.
19450 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19451 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19452 sed '=' <$as_myself |
19457 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19460 s,^['$as_cr_digits']*\n,,
19461 ' >$as_me.lineno &&
19462 chmod +x $as_me.lineno ||
19463 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19464 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19465 { (exit 1); exit 1; }; }
19467 # Don't try to exec as it changes $[0], causing all sort of problems
19468 # (the dirname of $[0] is not the place where we might find the
19469 # original and so on. Autoconf is especially sensible to this).
19471 # Exit status is that of the last command.
19476 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19477 *c*,-n*) ECHO_N= ECHO_C='
19479 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19480 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19483 if expr a : '\(a\)' >/dev/null 2>&1; then
19489 rm -f conf$$ conf$$.exe conf$$.file
19491 if ln -s conf$$.file conf$$ 2>/dev/null; then
19492 # We could just check for DJGPP; but this test a) works b) is more generic
19493 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19494 if test -f conf$$.exe; then
19495 # Don't use ln at all; we don't have any links
19500 elif ln conf$$.file conf$$ 2>/dev/null; then
19505 rm -f conf$$ conf$$.exe conf$$.file
19507 if mkdir -p . 2>/dev/null; then
19510 test -d ./-p && rmdir ./-p
19514 as_executable_p="test -f"
19516 # Sed expression to map a string onto a valid CPP name.
19517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19519 # Sed expression to map a string onto a valid variable name.
19520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19524 # We need space, tab and new line, in precisely that order.
19534 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19535 # report actual input values of CONFIG_FILES etc. instead of their
19536 # values after options handling. Logging --version etc. is OK.
19540 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19541 ## Running $as_me. ##
19546 This file was extended by TiMidity++ $as_me current, which was
19547 generated by GNU Autoconf 2.59. Invocation command line was
19549 CONFIG_FILES = $CONFIG_FILES
19550 CONFIG_HEADERS = $CONFIG_HEADERS
19551 CONFIG_LINKS = $CONFIG_LINKS
19552 CONFIG_COMMANDS = $CONFIG_COMMANDS
19556 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19560 # Files that config.status was made for.
19561 if test -n "$ac_config_files"; then
19562 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19565 if test -n "$ac_config_headers"; then
19566 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19569 if test -n "$ac_config_links"; then
19570 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19573 if test -n "$ac_config_commands"; then
19574 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19577 cat >>$CONFIG_STATUS <<\_ACEOF
19580 \`$as_me' instantiates files from templates according to the
19581 current configuration.
19583 Usage: $0 [OPTIONS] [FILE]...
19585 -h, --help print this help, then exit
19586 -V, --version print version number, then exit
19587 -q, --quiet do not print progress messages
19588 -d, --debug don't remove temporary files
19589 --recheck update $as_me by reconfiguring in the same conditions
19590 --file=FILE[:TEMPLATE]
19591 instantiate the configuration file FILE
19592 --header=FILE[:TEMPLATE]
19593 instantiate the configuration header FILE
19595 Configuration files:
19598 Configuration headers:
19601 Configuration commands:
19604 Report bugs to <bug-autoconf@gnu.org>."
19607 cat >>$CONFIG_STATUS <<_ACEOF
19609 TiMidity++ config.status current
19610 configured by $0, generated by GNU Autoconf 2.59,
19611 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19613 Copyright (C) 2003 Free Software Foundation, Inc.
19614 This config.status script is free software; the Free Software Foundation
19615 gives unlimited permission to copy, distribute and modify it."
19620 cat >>$CONFIG_STATUS <<\_ACEOF
19621 # If no file are specified by the user, then we need to provide default
19622 # value. By we need to know if files were specified by the user.
19628 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19629 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19637 *) # This is not an option, so the user has probably given explicit
19640 ac_need_defaults=false;;
19644 # Handling of the options.
19646 cat >>$CONFIG_STATUS <<\_ACEOF
19647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19649 --version | --vers* | -V )
19650 echo "$ac_cs_version"; exit 0 ;;
19652 # Conflict between --help and --header
19653 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19654 Try \`$0 --help' for more information." >&5
19655 echo "$as_me: error: ambiguous option: $1
19656 Try \`$0 --help' for more information." >&2;}
19657 { (exit 1); exit 1; }; };;
19658 --help | --hel | -h )
19659 echo "$ac_cs_usage"; exit 0 ;;
19660 --debug | --d* | -d )
19662 --file | --fil | --fi | --f )
19664 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19665 ac_need_defaults=false;;
19666 --header | --heade | --head | --hea )
19668 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19669 ac_need_defaults=false;;
19670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19671 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19674 # This is an error.
19675 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19676 Try \`$0 --help' for more information." >&5
19677 echo "$as_me: error: unrecognized option: $1
19678 Try \`$0 --help' for more information." >&2;}
19679 { (exit 1); exit 1; }; } ;;
19681 *) ac_config_targets="$ac_config_targets $1" ;;
19687 ac_configure_extra_args=
19689 if $ac_cs_silent; then
19691 ac_configure_extra_args="$ac_configure_extra_args --silent"
19695 cat >>$CONFIG_STATUS <<_ACEOF
19696 if \$ac_cs_recheck; then
19697 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19698 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19703 cat >>$CONFIG_STATUS <<_ACEOF
19705 # INIT-COMMANDS section.
19708 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19714 cat >>$CONFIG_STATUS <<\_ACEOF
19715 for ac_config_target in $ac_config_targets
19717 case "$ac_config_target" in
19718 # Handling of arguments.
19719 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19720 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
19721 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
19722 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
19723 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19724 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
19725 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
19726 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
19727 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
19728 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
19729 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
19730 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
19731 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
19732 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
19733 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19734 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
19735 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
19736 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
19737 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19738 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19739 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
19740 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19741 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19742 { (exit 1); exit 1; }; };;
19746 # If the user did not use the arguments to specify the items to instantiate,
19747 # then the envvar interface is used. Set only those that are not.
19748 # We use the long form for the default assignment because of an extremely
19749 # bizarre bug on SunOS 4.1.3.
19750 if $ac_need_defaults; then
19751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19756 # Have a temporary directory for convenience. Make it in the build tree
19757 # simply because there is no reason to put it here, and in addition,
19758 # creating and moving files from /tmp can sometimes cause problems.
19759 # Create a temporary directory, and hook for its removal unless debugging.
19762 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19763 trap '{ (exit 1); exit 1; }' 1 2 13 15
19766 # Create a (secure) tmp directory for tmp files.
19769 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19770 test -n "$tmp" && test -d "$tmp"
19773 tmp=./confstat$$-$RANDOM
19774 (umask 077 && mkdir $tmp)
19777 echo "$me: cannot create a temporary directory in ." >&2
19778 { (exit 1); exit 1; }
19783 cat >>$CONFIG_STATUS <<_ACEOF
19786 # CONFIG_FILES section.
19789 # No need to generate the scripts if there are no CONFIG_FILES.
19790 # This happens for instance when ./config.status config.h
19791 if test -n "\$CONFIG_FILES"; then
19792 # Protect against being on the right side of a sed subst in config.status.
19793 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19794 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19795 s,@SHELL@,$SHELL,;t t
19796 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19797 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19798 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19799 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19800 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19801 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19802 s,@exec_prefix@,$exec_prefix,;t t
19803 s,@prefix@,$prefix,;t t
19804 s,@program_transform_name@,$program_transform_name,;t t
19805 s,@bindir@,$bindir,;t t
19806 s,@sbindir@,$sbindir,;t t
19807 s,@libexecdir@,$libexecdir,;t t
19808 s,@datadir@,$datadir,;t t
19809 s,@sysconfdir@,$sysconfdir,;t t
19810 s,@sharedstatedir@,$sharedstatedir,;t t
19811 s,@localstatedir@,$localstatedir,;t t
19812 s,@libdir@,$libdir,;t t
19813 s,@includedir@,$includedir,;t t
19814 s,@oldincludedir@,$oldincludedir,;t t
19815 s,@infodir@,$infodir,;t t
19816 s,@mandir@,$mandir,;t t
19817 s,@build_alias@,$build_alias,;t t
19818 s,@host_alias@,$host_alias,;t t
19819 s,@target_alias@,$target_alias,;t t
19820 s,@DEFS@,$DEFS,;t t
19821 s,@ECHO_C@,$ECHO_C,;t t
19822 s,@ECHO_N@,$ECHO_N,;t t
19823 s,@ECHO_T@,$ECHO_T,;t t
19824 s,@LIBS@,$LIBS,;t t
19825 s,@build@,$build,;t t
19826 s,@build_cpu@,$build_cpu,;t t
19827 s,@build_vendor@,$build_vendor,;t t
19828 s,@build_os@,$build_os,;t t
19829 s,@host@,$host,;t t
19830 s,@host_cpu@,$host_cpu,;t t
19831 s,@host_vendor@,$host_vendor,;t t
19832 s,@host_os@,$host_os,;t t
19833 s,@target@,$target,;t t
19834 s,@target_cpu@,$target_cpu,;t t
19835 s,@target_vendor@,$target_vendor,;t t
19836 s,@target_os@,$target_os,;t t
19837 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19838 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19839 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19840 s,@CYGPATH_W@,$CYGPATH_W,;t t
19841 s,@PACKAGE@,$PACKAGE,;t t
19842 s,@VERSION@,$VERSION,;t t
19843 s,@ACLOCAL@,$ACLOCAL,;t t
19844 s,@AUTOCONF@,$AUTOCONF,;t t
19845 s,@AUTOMAKE@,$AUTOMAKE,;t t
19846 s,@AUTOHEADER@,$AUTOHEADER,;t t
19847 s,@MAKEINFO@,$MAKEINFO,;t t
19848 s,@AMTAR@,$AMTAR,;t t
19849 s,@install_sh@,$install_sh,;t t
19850 s,@STRIP@,$STRIP,;t t
19851 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19852 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19854 s,@SET_MAKE@,$SET_MAKE,;t t
19855 s,@am__leading_dot@,$am__leading_dot,;t t
19856 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19857 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19858 s,@MAINT@,$MAINT,;t t
19859 s,@EMACS@,$EMACS,;t t
19860 s,@lispdir@,$lispdir,;t t
19862 s,@CFLAGS@,$CFLAGS,;t t
19863 s,@LDFLAGS@,$LDFLAGS,;t t
19864 s,@CPPFLAGS@,$CPPFLAGS,;t t
19865 s,@ac_ct_CC@,$ac_ct_CC,;t t
19866 s,@EXEEXT@,$EXEEXT,;t t
19867 s,@OBJEXT@,$OBJEXT,;t t
19868 s,@DEPDIR@,$DEPDIR,;t t
19869 s,@am__include@,$am__include,;t t
19870 s,@am__quote@,$am__quote,;t t
19871 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19872 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19873 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19874 s,@CCDEPMODE@,$CCDEPMODE,;t t
19875 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19876 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19878 s,@EGREP@,$EGREP,;t t
19879 s,@RANLIB@,$RANLIB,;t t
19880 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19881 s,@LN_S@,$LN_S,;t t
19882 s,@X_CFLAGS@,$X_CFLAGS,;t t
19883 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19884 s,@X_LIBS@,$X_LIBS,;t t
19885 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19886 s,@LIBOBJS@,$LIBOBJS,;t t
19887 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
19888 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
19889 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
19890 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
19891 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
19892 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
19893 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
19894 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
19895 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
19896 s,@ESD_LIBS@,$ESD_LIBS,;t t
19897 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
19898 s,@AO_LIBS@,$AO_LIBS,;t t
19899 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
19900 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
19901 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
19902 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
19903 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
19904 s,@OGG_LIBS@,$OGG_LIBS,;t t
19905 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
19906 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
19907 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
19908 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
19909 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
19910 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
19911 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
19912 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
19913 s,@n_so_libs@,$n_so_libs,;t t
19914 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19915 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19916 s,@s_so_libs@,$s_so_libs,;t t
19917 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19918 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19919 s,@m_so_libs@,$m_so_libs,;t t
19920 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19921 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19922 s,@k_so_libs@,$k_so_libs,;t t
19923 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19924 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19925 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19926 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19927 s,@e_so_libs@,$e_so_libs,;t t
19928 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19929 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19930 s,@T_so_libs@,$T_so_libs,;t t
19931 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19932 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19933 s,@a_so_libs@,$a_so_libs,;t t
19934 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19935 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19936 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19937 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19938 s,@i_so_libs@,$i_so_libs,;t t
19939 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19940 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19941 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19942 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19943 s,@GTK_LIBS@,$GTK_LIBS,;t t
19944 s,@g_so_libs@,$g_so_libs,;t t
19945 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19946 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19947 s,@r_so_libs@,$r_so_libs,;t t
19948 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19949 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19950 s,@A_so_libs@,$A_so_libs,;t t
19951 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19952 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19953 s,@W_so_libs@,$W_so_libs,;t t
19954 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19955 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19956 s,@P_so_libs@,$P_so_libs,;t t
19957 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19958 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19959 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19960 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19961 s,@w_so_libs@,$w_so_libs,;t t
19962 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19963 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19964 s,@p_so_libs@,$p_so_libs,;t t
19965 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19966 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19967 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19968 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19969 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19970 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19971 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19972 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19973 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19974 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19975 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19976 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19977 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19978 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19979 s,@EXTRALIBS@,$EXTRALIBS,;t t
19980 s,@NETSRCS@,$NETSRCS,;t t
19981 s,@ELFILES@,$ELFILES,;t t
19982 s,@SHLD@,$SHLD,;t t
19983 s,@SHCFLAGS@,$SHCFLAGS,;t t
19984 s,@dynamic_targets@,$dynamic_targets,;t t
19986 s,@WISH@,$WISH,;t t
19987 s,@tcltk_dep@,$tcltk_dep,;t t
19988 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19989 s,@pkgdatadir@,$pkgdatadir,;t t
19990 s,@pkglibdir@,$pkglibdir,;t t
19991 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19996 cat >>$CONFIG_STATUS <<\_ACEOF
19997 # Split the substitutions into bite-sized pieces for seds with
19998 # small command number limits, like on Digital OSF/1 and HP-UX.
19999 ac_max_sed_lines=48
20000 ac_sed_frag=1 # Number of current file.
20001 ac_beg=1 # First line for current file.
20002 ac_end=$ac_max_sed_lines # Line after last line for current file.
20005 while $ac_more_lines; do
20006 if test $ac_beg -gt 1; then
20007 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20009 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20011 if test ! -s $tmp/subs.frag; then
20012 ac_more_lines=false
20014 # The purpose of the label and of the branching condition is to
20015 # speed up the sed processing (if there are no `@' at all, there
20016 # is no need to browse any of the substitutions).
20017 # These are the two extra sed commands mentioned above.
20019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20020 if test -z "$ac_sed_cmds"; then
20021 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20023 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20025 ac_sed_frag=`expr $ac_sed_frag + 1`
20027 ac_end=`expr $ac_end + $ac_max_sed_lines`
20030 if test -z "$ac_sed_cmds"; then
20033 fi # test -n "$CONFIG_FILES"
20036 cat >>$CONFIG_STATUS <<\_ACEOF
20037 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20038 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20040 - | *:- | *:-:* ) # input from stdin
20042 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20043 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20044 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20046 * ) ac_file_in=$ac_file.in ;;
20049 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20050 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20052 X"$ac_file" : 'X\(//\)[^/]' \| \
20053 X"$ac_file" : 'X\(//\)$' \| \
20054 X"$ac_file" : 'X\(/\)' \| \
20055 . : '\(.\)' 2>/dev/null ||
20057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20059 /^X\(\/\/\)$/{ s//\1/; q; }
20060 /^X\(\/\).*/{ s//\1/; q; }
20062 { if $as_mkdir_p; then
20067 while test ! -d "$as_dir"; do
20068 as_dirs="$as_dir $as_dirs"
20069 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20071 X"$as_dir" : 'X\(//\)[^/]' \| \
20072 X"$as_dir" : 'X\(//\)$' \| \
20073 X"$as_dir" : 'X\(/\)' \| \
20074 . : '\(.\)' 2>/dev/null ||
20076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20078 /^X\(\/\/\)$/{ s//\1/; q; }
20079 /^X\(\/\).*/{ s//\1/; q; }
20082 test ! -n "$as_dirs" || mkdir $as_dirs
20083 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20085 { (exit 1); exit 1; }; }; }
20089 if test "$ac_dir" != .; then
20090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20091 # A "../" for each directory in $ac_dir_suffix.
20092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20094 ac_dir_suffix= ac_top_builddir=
20098 .) # No --srcdir option. We are building in place.
20100 if test -z "$ac_top_builddir"; then
20103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20105 [\\/]* | ?:[\\/]* ) # Absolute path.
20106 ac_srcdir=$srcdir$ac_dir_suffix;
20107 ac_top_srcdir=$srcdir ;;
20108 *) # Relative path.
20109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20113 # Do not use `cd foo && pwd` to compute absolute paths, because
20114 # the directories may not exist.
20116 .) ac_abs_builddir="$ac_dir";;
20119 .) ac_abs_builddir=`pwd`;;
20120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20124 case $ac_abs_builddir in
20125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20127 case ${ac_top_builddir}. in
20128 .) ac_abs_top_builddir=$ac_abs_builddir;;
20129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20133 case $ac_abs_builddir in
20134 .) ac_abs_srcdir=$ac_srcdir;;
20137 .) ac_abs_srcdir=$ac_abs_builddir;;
20138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20142 case $ac_abs_builddir in
20143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20145 case $ac_top_srcdir in
20146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20155 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20158 if test x"$ac_file" != x-; then
20159 { echo "$as_me:$LINENO: creating $ac_file" >&5
20160 echo "$as_me: creating $ac_file" >&6;}
20163 # Let's still pretend it is `configure' which instantiates (i.e., don't
20164 # use $as_me), people would be surprised to read:
20165 # /* config.h. Generated by config.status. */
20166 if test x"$ac_file" = x-; then
20169 configure_input="$ac_file. "
20171 configure_input=$configure_input"Generated from `echo $ac_file_in |
20172 sed 's,.*/,,'` by configure."
20174 # First look for the input files in the build tree, otherwise in the
20176 ac_file_inputs=`IFS=:
20177 for f in $ac_file_in; do
20179 -) echo $tmp/stdin ;;
20181 # Absolute (can't be DOS-style, as IFS=:)
20182 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20183 echo "$as_me: error: cannot find input file: $f" >&2;}
20184 { (exit 1); exit 1; }; }
20187 if test -f "$f"; then
20190 elif test -f "$srcdir/$f"; then
20195 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20196 echo "$as_me: error: cannot find input file: $f" >&2;}
20197 { (exit 1); exit 1; }; }
20200 done` || { (exit 1); exit 1; }
20202 cat >>$CONFIG_STATUS <<_ACEOF
20206 cat >>$CONFIG_STATUS <<\_ACEOF
20208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20209 s,@configure_input@,$configure_input,;t t
20210 s,@srcdir@,$ac_srcdir,;t t
20211 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20212 s,@top_srcdir@,$ac_top_srcdir,;t t
20213 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20214 s,@builddir@,$ac_builddir,;t t
20215 s,@abs_builddir@,$ac_abs_builddir,;t t
20216 s,@top_builddir@,$ac_top_builddir,;t t
20217 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20218 s,@INSTALL@,$ac_INSTALL,;t t
20219 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20221 if test x"$ac_file" != x-; then
20222 mv $tmp/out $ac_file
20230 cat >>$CONFIG_STATUS <<\_ACEOF
20233 # CONFIG_HEADER section.
20236 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20237 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20239 # ac_d sets the value in "#define NAME VALUE" lines.
20240 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20241 ac_dB='[ ].*$,\1#\2'
20244 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20245 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20246 ac_uB='$,\1#\2define\3'
20250 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20253 - | *:- | *:-:* ) # input from stdin
20255 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20257 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20258 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20259 * ) ac_file_in=$ac_file.in ;;
20262 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20263 echo "$as_me: creating $ac_file" >&6;}
20265 # First look for the input files in the build tree, otherwise in the
20267 ac_file_inputs=`IFS=:
20268 for f in $ac_file_in; do
20270 -) echo $tmp/stdin ;;
20272 # Absolute (can't be DOS-style, as IFS=:)
20273 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20274 echo "$as_me: error: cannot find input file: $f" >&2;}
20275 { (exit 1); exit 1; }; }
20276 # Do quote $f, to prevent DOS paths from being IFS'd.
20279 if test -f "$f"; then
20282 elif test -f "$srcdir/$f"; then
20287 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20288 echo "$as_me: error: cannot find input file: $f" >&2;}
20289 { (exit 1); exit 1; }; }
20292 done` || { (exit 1); exit 1; }
20293 # Remove the trailing spaces.
20294 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20298 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20299 # `conftest.undefs', that substitutes the proper values into
20300 # config.h.in to produce config.h. The first handles `#define'
20301 # templates, and the second `#undef' templates.
20302 # And first: Protect against being on the right side of a sed subst in
20303 # config.status. Protect against being in an unquoted here document
20304 # in config.status.
20305 rm -f conftest.defines conftest.undefs
20306 # Using a here document instead of a string reduces the quoting nightmare.
20307 # Putting comments in sed scripts is not portable.
20309 # `end' is used to avoid that the second main sed command (meant for
20310 # 0-ary CPP macros) applies to n-ary macro definitions.
20311 # See the Autoconf documentation for `clear'.
20312 cat >confdef2sed.sed <<\_ACEOF
20317 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20319 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20322 # If some macros were called several times there might be several times
20323 # the same #defines, which is useless. Nevertheless, we may not want to
20324 # sort them, since we want the *last* AC-DEFINE to be honored.
20325 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20326 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20327 rm -f confdef2sed.sed
20329 # This sed command replaces #undef with comments. This is necessary, for
20330 # example, in the case of _POSIX_SOURCE, which is predefined and required
20331 # on some systems where configure will not decide to define it.
20332 cat >>conftest.undefs <<\_ACEOF
20333 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20336 # Break up conftest.defines because some shells have a limit on the size
20337 # of here documents, and old seds have small limits too (100 cmds).
20338 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20339 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20340 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20341 echo ' :' >>$CONFIG_STATUS
20342 rm -f conftest.tail
20343 while grep . conftest.defines >/dev/null
20345 # Write a limited-size here document to $tmp/defines.sed.
20346 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20347 # Speed up: don't consider the non `#define' lines.
20348 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20349 # Work around the forget-to-reset-the-flag bug.
20350 echo 't clr' >>$CONFIG_STATUS
20351 echo ': clr' >>$CONFIG_STATUS
20352 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20354 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20356 mv $tmp/out $tmp/in
20358 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20359 rm -f conftest.defines
20360 mv conftest.tail conftest.defines
20362 rm -f conftest.defines
20363 echo ' fi # grep' >>$CONFIG_STATUS
20364 echo >>$CONFIG_STATUS
20366 # Break up conftest.undefs because some shells have a limit on the size
20367 # of here documents, and old seds have small limits too (100 cmds).
20368 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20369 rm -f conftest.tail
20370 while grep . conftest.undefs >/dev/null
20372 # Write a limited-size here document to $tmp/undefs.sed.
20373 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20374 # Speed up: don't consider the non `#undef'
20375 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20376 # Work around the forget-to-reset-the-flag bug.
20377 echo 't clr' >>$CONFIG_STATUS
20378 echo ': clr' >>$CONFIG_STATUS
20379 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20381 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20383 mv $tmp/out $tmp/in
20385 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20386 rm -f conftest.undefs
20387 mv conftest.tail conftest.undefs
20389 rm -f conftest.undefs
20391 cat >>$CONFIG_STATUS <<\_ACEOF
20392 # Let's still pretend it is `configure' which instantiates (i.e., don't
20393 # use $as_me), people would be surprised to read:
20394 # /* config.h. Generated by config.status. */
20395 if test x"$ac_file" = x-; then
20396 echo "/* Generated by configure. */" >$tmp/config.h
20398 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20400 cat $tmp/in >>$tmp/config.h
20402 if test x"$ac_file" != x-; then
20403 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20404 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20405 echo "$as_me: $ac_file is unchanged" >&6;}
20407 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20409 X"$ac_file" : 'X\(//\)[^/]' \| \
20410 X"$ac_file" : 'X\(//\)$' \| \
20411 X"$ac_file" : 'X\(/\)' \| \
20412 . : '\(.\)' 2>/dev/null ||
20414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20416 /^X\(\/\/\)$/{ s//\1/; q; }
20417 /^X\(\/\).*/{ s//\1/; q; }
20419 { if $as_mkdir_p; then
20424 while test ! -d "$as_dir"; do
20425 as_dirs="$as_dir $as_dirs"
20426 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20428 X"$as_dir" : 'X\(//\)[^/]' \| \
20429 X"$as_dir" : 'X\(//\)$' \| \
20430 X"$as_dir" : 'X\(/\)' \| \
20431 . : '\(.\)' 2>/dev/null ||
20433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20435 /^X\(\/\/\)$/{ s//\1/; q; }
20436 /^X\(\/\).*/{ s//\1/; q; }
20439 test ! -n "$as_dirs" || mkdir $as_dirs
20440 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20441 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20442 { (exit 1); exit 1; }; }; }
20445 mv $tmp/config.h $ac_file
20449 rm -f $tmp/config.h
20451 # Compute $ac_file's index in $config_headers.
20453 for _am_header in $config_headers :; do
20454 case $_am_header in
20455 $ac_file | $ac_file:* )
20458 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20461 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20462 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20463 X$ac_file : 'X\(//\)[^/]' \| \
20464 X$ac_file : 'X\(//\)$' \| \
20465 X$ac_file : 'X\(/\)' \| \
20466 . : '\(.\)' 2>/dev/null ||
20468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20470 /^X\(\/\/\)$/{ s//\1/; q; }
20471 /^X\(\/\).*/{ s//\1/; q; }
20472 s/.*/./; q'`/stamp-h$_am_stamp_count
20475 cat >>$CONFIG_STATUS <<\_ACEOF
20478 # CONFIG_COMMANDS section.
20480 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20481 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20482 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20483 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20484 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20485 X"$ac_dest" : 'X\(//\)[^/]' \| \
20486 X"$ac_dest" : 'X\(//\)$' \| \
20487 X"$ac_dest" : 'X\(/\)' \| \
20488 . : '\(.\)' 2>/dev/null ||
20490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20492 /^X\(\/\/\)$/{ s//\1/; q; }
20493 /^X\(\/\).*/{ s//\1/; q; }
20495 { if $as_mkdir_p; then
20500 while test ! -d "$as_dir"; do
20501 as_dirs="$as_dir $as_dirs"
20502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20504 X"$as_dir" : 'X\(//\)[^/]' \| \
20505 X"$as_dir" : 'X\(//\)$' \| \
20506 X"$as_dir" : 'X\(/\)' \| \
20507 . : '\(.\)' 2>/dev/null ||
20509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20511 /^X\(\/\/\)$/{ s//\1/; q; }
20512 /^X\(\/\).*/{ s//\1/; q; }
20515 test ! -n "$as_dirs" || mkdir $as_dirs
20516 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20517 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20518 { (exit 1); exit 1; }; }; }
20522 if test "$ac_dir" != .; then
20523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20524 # A "../" for each directory in $ac_dir_suffix.
20525 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20527 ac_dir_suffix= ac_top_builddir=
20531 .) # No --srcdir option. We are building in place.
20533 if test -z "$ac_top_builddir"; then
20536 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20538 [\\/]* | ?:[\\/]* ) # Absolute path.
20539 ac_srcdir=$srcdir$ac_dir_suffix;
20540 ac_top_srcdir=$srcdir ;;
20541 *) # Relative path.
20542 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20543 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20546 # Do not use `cd foo && pwd` to compute absolute paths, because
20547 # the directories may not exist.
20549 .) ac_abs_builddir="$ac_dir";;
20552 .) ac_abs_builddir=`pwd`;;
20553 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20554 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20557 case $ac_abs_builddir in
20558 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20560 case ${ac_top_builddir}. in
20561 .) ac_abs_top_builddir=$ac_abs_builddir;;
20562 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20563 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20566 case $ac_abs_builddir in
20567 .) ac_abs_srcdir=$ac_srcdir;;
20570 .) ac_abs_srcdir=$ac_abs_builddir;;
20571 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20572 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20575 case $ac_abs_builddir in
20576 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20578 case $ac_top_srcdir in
20579 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20580 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20581 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20586 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20587 echo "$as_me: executing $ac_dest commands" >&6;}
20589 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20590 # Strip MF so we end up with the name of the file.
20591 mf=`echo "$mf" | sed -e 's/:.*$//'`
20592 # Check whether this is an Automake generated Makefile or not.
20593 # We used to match only the files named `Makefile.in', but
20594 # some people rename them; so instead we look at the file content.
20595 # Grep'ing the first line is not enough: some people post-process
20596 # each Makefile.in and add a new line on top of each file to say so.
20597 # So let's grep whole file.
20598 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20599 dirpart=`(dirname "$mf") 2>/dev/null ||
20600 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20601 X"$mf" : 'X\(//\)[^/]' \| \
20602 X"$mf" : 'X\(//\)$' \| \
20603 X"$mf" : 'X\(/\)' \| \
20604 . : '\(.\)' 2>/dev/null ||
20606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20608 /^X\(\/\/\)$/{ s//\1/; q; }
20609 /^X\(\/\).*/{ s//\1/; q; }
20614 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20615 # Extract the definition of DEP_FILES from the Makefile without
20617 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20618 test -z "$DEPDIR" && continue
20619 # When using ansi2knr, U may be empty or an underscore; expand it
20620 U=`sed -n -e '/^U = / s///p' < "$mf"`
20621 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20622 # We invoke sed twice because it is the simplest approach to
20623 # changing $(DEPDIR) to its actual value in the expansion.
20624 for file in `sed -n -e '
20625 /^DEP_FILES = .*\\\\$/ {
20634 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20635 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20636 # Make sure the directory exists.
20637 test -f "$dirpart/$file" && continue
20638 fdir=`(dirname "$file") 2>/dev/null ||
20639 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20640 X"$file" : 'X\(//\)[^/]' \| \
20641 X"$file" : 'X\(//\)$' \| \
20642 X"$file" : 'X\(/\)' \| \
20643 . : '\(.\)' 2>/dev/null ||
20645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20647 /^X\(\/\/\)$/{ s//\1/; q; }
20648 /^X\(\/\).*/{ s//\1/; q; }
20650 { if $as_mkdir_p; then
20651 mkdir -p $dirpart/$fdir
20653 as_dir=$dirpart/$fdir
20655 while test ! -d "$as_dir"; do
20656 as_dirs="$as_dir $as_dirs"
20657 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20659 X"$as_dir" : 'X\(//\)[^/]' \| \
20660 X"$as_dir" : 'X\(//\)$' \| \
20661 X"$as_dir" : 'X\(/\)' \| \
20662 . : '\(.\)' 2>/dev/null ||
20664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20666 /^X\(\/\/\)$/{ s//\1/; q; }
20667 /^X\(\/\).*/{ s//\1/; q; }
20670 test ! -n "$as_dirs" || mkdir $as_dirs
20671 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20672 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20673 { (exit 1); exit 1; }; }; }
20675 # echo "creating $dirpart/$file"
20676 echo '# dummy' > "$dirpart/$file"
20684 cat >>$CONFIG_STATUS <<\_ACEOF
20686 { (exit 0); exit 0; }
20688 chmod +x $CONFIG_STATUS
20689 ac_clean_files=$ac_clean_files_save
20692 # configure is writing to config.log, and then calls config.status.
20693 # config.status does its own redirection, appending to config.log.
20694 # Unfortunately, on DOS this fails, as config.log is still kept open
20695 # by configure, so config.status won't be able to write to it; its
20696 # output is simply discarded. So we exec the FD to /dev/null,
20697 # effectively closing config.log, so it can be properly (re)opened and
20698 # appended to by config.status. When coming back to configure, we
20699 # need to make the FD available again.
20700 if test "$no_create" != yes; then
20702 ac_config_status_args=
20703 test "$silent" = yes &&
20704 ac_config_status_args="$ac_config_status_args --quiet"
20706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20709 # would make configure fail if this is the last instruction.
20710 $ac_cs_success || { (exit 1); exit 1; }