2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ 2.13.2.
5 # Report bugs to <root@mput.dip.jp>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='2.13.2'
273 PACKAGE_STRING='TiMidity++ 2.13.2'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS EMACSLOADPATH 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 ARTSCCONFIG ARTSLIBS ARTSINCL ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE PKG_CONFIG GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE W32G_GUI_TRUE W32G_GUI_FALSE WINDRV_TRUE WINDRV_FALSE MSYS_TRUE MSYS_FALSE VCPP_TRUE VCPP_FALSE BORLANDC_TRUE BORLANDC_FALSE WATCOM_C_TRUE WATCOM_C_FALSE DMC_TRUE DMC_FALSE MINGWGCC_TRUE MINGWGCC_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS WATCOM_LDFLAGS DMC_LDFLAGS VCPP_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_EMACS_set=${EMACS+set}
756 ac_env_EMACS_value=$EMACS
757 ac_cv_env_EMACS_set=${EMACS+set}
758 ac_cv_env_EMACS_value=$EMACS
759 ac_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
760 ac_env_EMACSLOADPATH_value=$EMACSLOADPATH
761 ac_cv_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
762 ac_cv_env_EMACSLOADPATH_value=$EMACSLOADPATH
763 ac_env_CC_set=${CC+set}
765 ac_cv_env_CC_set=${CC+set}
766 ac_cv_env_CC_value=$CC
767 ac_env_CFLAGS_set=${CFLAGS+set}
768 ac_env_CFLAGS_value=$CFLAGS
769 ac_cv_env_CFLAGS_set=${CFLAGS+set}
770 ac_cv_env_CFLAGS_value=$CFLAGS
771 ac_env_LDFLAGS_set=${LDFLAGS+set}
772 ac_env_LDFLAGS_value=$LDFLAGS
773 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
774 ac_cv_env_LDFLAGS_value=$LDFLAGS
775 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
776 ac_env_CPPFLAGS_value=$CPPFLAGS
777 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
778 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
791 \`configure' configures TiMidity++ 2.13.2 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
845 --program-prefix=PREFIX prepend PREFIX to installed program names
846 --program-suffix=SUFFIX append SUFFIX to installed program names
847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
860 if test -n "$ac_init_help"; then
861 case $ac_init_help in
862 short | recursive ) echo "Configuration of TiMidity++ 2.13.2:";;
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-maintainer-mode enable make rules and dependencies not useful
870 (and sometimes confusing) to the casual installer
871 --enable-debug Build a debugging version.
872 --disable-dependency-tracking speeds up one-time build
873 --enable-dependency-tracking do not reject slow dependency extractors
874 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
875 default: Automatically select audio device.
877 sun: SunOS /dev/audio
878 hpux: HPUX /dev/audio
879 irix: IRIX audio library
881 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
883 darwin: Darwin CoreAudio
884 alsa: ALSA pcm device
885 alib: HPUX network audio (Alib)
886 nas: NAS - Network Audio System
888 esd: EsounD - Enlightened Sound Daemon
895 gogo: MP3 GOGO (Only Windows is supported)
896 --disable-alsatest Do not try to compile and run a test Alsa program
897 --disable-esdtest Do not try to compile and run a test ESD program
898 --disable-aotest Do not try to compile and run a test ao program
899 --disable-oggtest Do not try to compile and run a test Ogg program
900 --disable-vorbistest Do not try to compile and run a test Vorbis program
901 --disable-libFLACtest Do not try to compile and run a test libFLAC program
902 --disable-libOggFLACtest Do not try to compile and run a test libOggFLAC program
903 --enable-interface=interface_list
904 Comma separated interface list
905 --enable-dynamic Enable dynamic link interface (default is no)
906 --enable-dynamic=dynamic_list
907 Comma separated dynamic interface list
908 --enable-ncurses Enable ncurses interface (default is no)
909 --enable-slang Enable slang interface (default is no)
910 --enable-motif Enable motif interface (default is no)
911 --enable-tcltk Enable tcltk interface (default is no)
912 --enable-emacs Enable emacs interface (default is no)
913 --enable-vt100 Enable VT100 interface (default is no)
914 --enable-xaw Enable athena interface (default is no)
915 --enable-xskin Enable X skin interface (default is no)
916 --enable-gtk Enable GTK+ interface (default is no)
917 --disable-gtktest do not try to compile and run a test GTK+ program
918 --disable-gtktest Do not try to compile and run a test GTK program
919 --enable-server Enable server interface (default is no)
920 --enable-alsaseq Enable ALSA sequencer server interface
922 --enable-winsyn Enable Windows Synthesizer interface
924 --enable-portmidisyn Enable PortMIDI Synthesizer interface
926 --enable-winsyng Enable Windows GUI Synthesizer interface
928 --enable-w32gui Enable Windows GUI interface (default is no)
929 --enable-ump UMP configuration (default is no)
930 --enable-windrv Windows Driver interface(requires winsyn)
931 --enable-offix Enable offix support (default is no)
932 --enable-network Enable network support (default is no)
933 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
934 --enable-spline=method Specify spline method.
935 one of no,linear,cubic,lagrange,newton,gauss
937 --enable-wrd Enable WRD interface for X (default is no)
940 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
941 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
942 --with-includes=DIR Specify include directories (colon separated)
943 --with-libraries=DIR Specify library directories (colon separated)
944 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
945 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
946 --with-lispdir override the default lisp directory
947 --with-elf create ELF shared object instead of AOUT
948 --with-x use the X Window System
949 --with-tcl-includes=DIR Tcl include file path
950 --with-tcl-libs=DIR Tcl library file path
951 --with-tk-includes=DIR Tk include file path
952 --with-tk-libs=DIR Tk library file path
953 --with-offix-includes=DIR Offix include file path
954 --with-offix-libs=DIR Offix include file path
955 --with-nas-library=library NAS absolute library path(Don't use -laudio)
956 --with-nas-includes=DIR NAS include files are in dir
957 --with-default-output=<mode> Specify default output mode (optional):
958 (default|alsa|alib|arts|nas|
959 esd|wav|au|aiff|list|vorbis|flac|speex|
960 gogo|portaudio|jack|ao)
961 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
962 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
963 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
964 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
965 --with-ao=PFX Prefix where libao is installed (optional)
966 --with-ao-libraries=DIR Directory where libao library is installed (optional)
967 --with-ao-includes=DIR Directory where libao header files are installed (optional)
968 --with-ogg=PFX Prefix where libogg is installed (optional)
969 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
970 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
971 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
972 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
973 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
974 --with-libFLAC=PFX Prefix where libFLAC is installed (optional)
975 --with-libFLAC-libraries=DIR Directory where libFLAC library is installed (optional)
976 --with-libFLAC-includes=DIR Directory where libFLAC header files are installed (optional)
977 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional)
978 --with-libOggFLAC-libraries=DIR Directory where libOggFLAC library is installed (optional)
979 --with-libOggFLAC-includes=DIR Directory where libOggFLAC header files are installed (optional)
980 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
981 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
983 Some influential environment variables:
984 EMACS the Emacs editor command
986 the Emacs library search path
987 CC C compiler command
988 CFLAGS C compiler flags
989 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
990 nonstandard directory <lib dir>
991 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
992 headers in a nonstandard directory <include dir>
995 Use these variables to override the choices made by `configure' or to help
996 it to find libraries and programs with nonstandard names/locations.
998 Report bugs to <root@mput.dip.jp>.
1002 if test "$ac_init_help" = "recursive"; then
1003 # If there are subdirs, report their specific --help.
1005 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1006 test -d $ac_dir || continue
1009 if test "$ac_dir" != .; then
1010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1011 # A "../" for each directory in $ac_dir_suffix.
1012 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1014 ac_dir_suffix= ac_top_builddir=
1018 .) # No --srcdir option. We are building in place.
1020 if test -z "$ac_top_builddir"; then
1023 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1025 [\\/]* | ?:[\\/]* ) # Absolute path.
1026 ac_srcdir=$srcdir$ac_dir_suffix;
1027 ac_top_srcdir=$srcdir ;;
1029 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1030 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1033 # Do not use `cd foo && pwd` to compute absolute paths, because
1034 # the directories may not exist.
1036 .) ac_abs_builddir="$ac_dir";;
1039 .) ac_abs_builddir=`pwd`;;
1040 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1041 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1044 case $ac_abs_builddir in
1045 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1047 case ${ac_top_builddir}. in
1048 .) ac_abs_top_builddir=$ac_abs_builddir;;
1049 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1050 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1053 case $ac_abs_builddir in
1054 .) ac_abs_srcdir=$ac_srcdir;;
1057 .) ac_abs_srcdir=$ac_abs_builddir;;
1058 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1059 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1062 case $ac_abs_builddir in
1063 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1065 case $ac_top_srcdir in
1066 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1067 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1068 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1073 # Check for guested configure; otherwise get Cygnus style configure.
1074 if test -f $ac_srcdir/configure.gnu; then
1076 $SHELL $ac_srcdir/configure.gnu --help=recursive
1077 elif test -f $ac_srcdir/configure; then
1079 $SHELL $ac_srcdir/configure --help=recursive
1080 elif test -f $ac_srcdir/configure.ac ||
1081 test -f $ac_srcdir/configure.in; then
1083 $ac_configure --help
1085 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1091 test -n "$ac_init_help" && exit 0
1092 if $ac_init_version; then
1094 TiMidity++ configure 2.13.2
1095 generated by GNU Autoconf 2.59
1097 Copyright (C) 2003 Free Software Foundation, Inc.
1098 This configure script is free software; the Free Software Foundation
1099 gives unlimited permission to copy, distribute and modify it.
1105 This file contains any messages produced by compilers while
1106 running configure, to aid debugging if configure makes a mistake.
1108 It was created by TiMidity++ $as_me 2.13.2, which was
1109 generated by GNU Autoconf 2.59. Invocation command line was
1120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1121 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1122 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1123 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1124 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1127 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1129 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1130 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1132 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1133 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1134 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1135 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1143 test -z "$as_dir" && as_dir=.
1144 echo "PATH: $as_dir"
1159 # Keep a trace of the command line.
1160 # Strip out --no-create and --no-recursion so they do not pile up.
1161 # Strip out --silent because we don't want to record it for future runs.
1162 # Also quote any args containing shell meta-characters.
1163 # Make two passes to allow for proper duplicate-argument suppression.
1168 ac_must_keep_next=false
1174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1178 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1182 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1184 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1185 if test $ac_must_keep_next = true; then
1186 ac_must_keep_next=false # Got value, back to normal.
1189 *=* | --config-cache | -C | -disable-* | --disable-* \
1190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1192 | -with-* | --with-* | -without-* | --without-* | --x)
1193 case "$ac_configure_args0 " in
1194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1197 -* ) ac_must_keep_next=true ;;
1200 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1201 # Get rid of the leading space.
1207 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1208 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1210 # When interrupted or exit'd, cleanup temporary files, and complete
1211 # config.log. We remove comments because anyway the quotes in there
1212 # would cause problems or look ugly.
1213 # WARNING: Be sure not to use single quotes in there, as some shells,
1214 # such as our DU 5.0 friend, will then `close' the trap.
1215 trap 'exit_status=$?
1216 # Save into config.log some information that might help in debugging.
1221 ## ---------------- ##
1222 ## Cache variables. ##
1223 ## ---------------- ##
1226 # The following way of writing the cache mishandles newlines in values,
1229 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1232 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1237 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1244 ## ----------------- ##
1245 ## Output variables. ##
1246 ## ----------------- ##
1249 for ac_var in $ac_subst_vars
1251 eval ac_val=$`echo $ac_var`
1252 echo "$ac_var='"'"'$ac_val'"'"'"
1256 if test -n "$ac_subst_files"; then
1263 for ac_var in $ac_subst_files
1265 eval ac_val=$`echo $ac_var`
1266 echo "$ac_var='"'"'$ac_val'"'"'"
1271 if test -s confdefs.h; then
1278 sed "/^$/d" confdefs.h | sort
1281 test "$ac_signal" != 0 &&
1282 echo "$as_me: caught signal $ac_signal"
1283 echo "$as_me: exit $exit_status"
1285 rm -f core *.core &&
1286 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1289 for ac_signal in 1 2 13 15; do
1290 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1294 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1295 rm -rf conftest* confdefs.h
1296 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1299 # Predefined preprocessor variables.
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_NAME "$PACKAGE_NAME"
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1311 cat >>confdefs.h <<_ACEOF
1312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1316 cat >>confdefs.h <<_ACEOF
1317 #define PACKAGE_STRING "$PACKAGE_STRING"
1321 cat >>confdefs.h <<_ACEOF
1322 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1326 # Let the site file select an alternate cache file if it wants to.
1327 # Prefer explicitly selected file to automatically selected ones.
1328 if test -z "$CONFIG_SITE"; then
1329 if test "x$prefix" != xNONE; then
1330 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1332 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1335 for ac_site_file in $CONFIG_SITE; do
1336 if test -r "$ac_site_file"; then
1337 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1338 echo "$as_me: loading site script $ac_site_file" >&6;}
1339 sed 's/^/| /' "$ac_site_file" >&5
1344 if test -r "$cache_file"; then
1345 # Some versions of bash will fail to source /dev/null (special
1346 # files actually), so we avoid doing that.
1347 if test -f "$cache_file"; then
1348 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1349 echo "$as_me: loading cache $cache_file" >&6;}
1351 [\\/]* | ?:[\\/]* ) . $cache_file;;
1352 *) . ./$cache_file;;
1356 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1357 echo "$as_me: creating cache $cache_file" >&6;}
1361 # Check that the precious variables saved in the cache have kept the same
1363 ac_cache_corrupted=false
1364 for ac_var in `(set) 2>&1 |
1365 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1366 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1367 eval ac_new_set=\$ac_env_${ac_var}_set
1368 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1369 eval ac_new_val="\$ac_env_${ac_var}_value"
1370 case $ac_old_set,$ac_new_set in
1372 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1373 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1374 ac_cache_corrupted=: ;;
1376 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1377 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1378 ac_cache_corrupted=: ;;
1381 if test "x$ac_old_val" != "x$ac_new_val"; then
1382 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1383 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1384 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1385 echo "$as_me: former value: $ac_old_val" >&2;}
1386 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1387 echo "$as_me: current value: $ac_new_val" >&2;}
1388 ac_cache_corrupted=:
1391 # Pass precious variables to config.status.
1392 if test "$ac_new_set" = set; then
1394 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1395 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1396 *) ac_arg=$ac_var=$ac_new_val ;;
1398 case " $ac_configure_args " in
1399 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1400 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1404 if $ac_cache_corrupted; then
1405 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1406 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1407 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1408 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1409 { (exit 1); exit 1; }; }
1413 ac_cpp='$CPP $CPPFLAGS'
1414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1445 for ac_dir in autoconf $srcdir/autoconf; do
1446 if test -f $ac_dir/install-sh; then
1448 ac_install_sh="$ac_aux_dir/install-sh -c"
1450 elif test -f $ac_dir/install.sh; then
1452 ac_install_sh="$ac_aux_dir/install.sh -c"
1454 elif test -f $ac_dir/shtool; then
1456 ac_install_sh="$ac_aux_dir/shtool install -c"
1460 if test -z "$ac_aux_dir"; then
1461 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1462 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1463 { (exit 1); exit 1; }; }
1465 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1466 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1467 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1469 # Make sure we can run config.sub.
1470 $ac_config_sub sun4 >/dev/null 2>&1 ||
1471 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1472 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1473 { (exit 1); exit 1; }; }
1475 echo "$as_me:$LINENO: checking build system type" >&5
1476 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1477 if test "${ac_cv_build+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 ac_cv_build_alias=$build_alias
1481 test -z "$ac_cv_build_alias" &&
1482 ac_cv_build_alias=`$ac_config_guess`
1483 test -z "$ac_cv_build_alias" &&
1484 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1485 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1486 { (exit 1); exit 1; }; }
1487 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1494 echo "${ECHO_T}$ac_cv_build" >&6
1496 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1501 echo "$as_me:$LINENO: checking host system type" >&5
1502 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1503 if test "${ac_cv_host+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 ac_cv_host_alias=$host_alias
1507 test -z "$ac_cv_host_alias" &&
1508 ac_cv_host_alias=$ac_cv_build_alias
1509 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1510 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1511 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1512 { (exit 1); exit 1; }; }
1515 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1516 echo "${ECHO_T}$ac_cv_host" >&6
1518 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1519 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1520 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1523 echo "$as_me:$LINENO: checking target system type" >&5
1524 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1525 if test "${ac_cv_target+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 ac_cv_target_alias=$target_alias
1529 test "x$ac_cv_target_alias" = "x" &&
1530 ac_cv_target_alias=$ac_cv_host_alias
1531 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1532 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1533 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1534 { (exit 1); exit 1; }; }
1537 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1538 echo "${ECHO_T}$ac_cv_target" >&6
1539 target=$ac_cv_target
1540 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545 # The aliases save the names the user supplied, while $host etc.
1546 # will get canonicalized.
1547 test -n "$target_alias" &&
1548 test "$program_prefix$program_suffix$program_transform_name" = \
1550 program_prefix=${target_alias}-
1551 am__api_version="1.8"
1552 # Find a good install program. We prefer a C program (faster),
1553 # so one script is as good as another. But avoid the broken or
1554 # incompatible versions:
1555 # SysV /etc/install, /usr/sbin/install
1556 # SunOS /usr/etc/install
1557 # IRIX /sbin/install
1559 # AmigaOS /C/install, which installs bootblocks on floppy discs
1560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1563 # OS/2's system install, which has a completely different semantic
1564 # ./install, which can be erroneously created by make from ./install.sh.
1565 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1566 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1567 if test -z "$INSTALL"; then
1568 if test "${ac_cv_path_install+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir=.
1576 # Account for people who put trailing slashes in PATH elements.
1578 ./ | .// | /cC/* | \
1579 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1580 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1583 # OSF1 and SCO ODT 3.0 have their own names for install.
1584 # Don't use installbsd from OSF since it installs stuff as root
1586 for ac_prog in ginstall scoinst install; do
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1589 if test $ac_prog = install &&
1590 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1591 # AIX install. It has an incompatible calling convention.
1593 elif test $ac_prog = install &&
1594 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595 # program-specific install script used by HP pwplus--don't use.
1598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1610 if test "${ac_cv_path_install+set}" = set; then
1611 INSTALL=$ac_cv_path_install
1613 # As a last resort, use the slow shell script. We don't cache a
1614 # path for INSTALL within a source directory, because that will
1615 # break other packages using the cache if that directory is
1616 # removed, or if the path is relative.
1617 INSTALL=$ac_install_sh
1620 echo "$as_me:$LINENO: result: $INSTALL" >&5
1621 echo "${ECHO_T}$INSTALL" >&6
1623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1624 # It thinks the first close brace ends the variable substitution.
1625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1631 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1632 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1635 echo timestamp > conftest.file
1636 # Do `set' in a subshell so we don't clobber the current shell's
1637 # arguments. Must try -L first in case configure is actually a
1638 # symlink; some systems play weird games with the mod time of symlinks
1639 # (eg FreeBSD returns the mod time of the symlink's containing
1642 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1643 if test "$*" = "X"; then
1645 set X `ls -t $srcdir/configure conftest.file`
1648 if test "$*" != "X $srcdir/configure conftest.file" \
1649 && test "$*" != "X conftest.file $srcdir/configure"; then
1651 # If neither matched, then we have a broken ls. This can happen
1652 # if, for instance, CONFIG_SHELL is bash and it inherits a
1653 # broken ls alias from the environment. This has actually
1654 # happened. Such a system could not be considered "sane".
1655 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1656 alias in your environment" >&5
1657 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1658 alias in your environment" >&2;}
1659 { (exit 1); exit 1; }; }
1662 test "$2" = conftest.file
1668 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1669 Check your system clock" >&5
1670 echo "$as_me: error: newly created file is older than distributed files!
1671 Check your system clock" >&2;}
1672 { (exit 1); exit 1; }; }
1674 echo "$as_me:$LINENO: result: yes" >&5
1675 echo "${ECHO_T}yes" >&6
1676 test "$program_prefix" != NONE &&
1677 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1678 # Use a double $ so make ignores it.
1679 test "$program_suffix" != NONE &&
1680 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1681 # Double any \ or $. echo might interpret backslashes.
1682 # By default was `s,x,x', remove it if useless.
1683 cat <<\_ACEOF >conftest.sed
1684 s/[\\$]/&&/g;s/;s,x,x,$//
1686 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1689 # expand $ac_aux_dir to an absolute path
1690 am_aux_dir=`cd $ac_aux_dir && pwd`
1692 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1693 # Use eval to expand $SHELL
1694 if eval "$MISSING --run true"; then
1695 am_missing_run="$MISSING --run "
1698 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1699 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1702 if mkdir -p -- . 2>/dev/null; then
1703 # Keeping the `.' argument allows $(mkdir_p) to be used without
1704 # argument. Indeed, we sometimes output rules like
1705 # $(mkdir_p) $(somedir)
1706 # where $(somedir) is conditionally defined.
1707 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1708 # expensive solution, as it forces Make to start a sub-shell.)
1709 mkdir_p='mkdir -p -- .'
1711 # On NextStep and OpenStep, the `mkdir' command does not
1712 # recognize any option. It will interpret all options as
1713 # directories to create, and then abort because `.' already
1717 test -d $d && rmdir $d
1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720 if test -f "$ac_aux_dir/mkinstalldirs"; then
1721 mkdir_p='$(mkinstalldirs)'
1723 mkdir_p='$(install_sh) -d'
1727 for ac_prog in gawk mawk nawk awk
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_AWK+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$AWK"; then
1737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_AWK="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 if test -n "$AWK"; then
1757 echo "$as_me:$LINENO: result: $AWK" >&5
1758 echo "${ECHO_T}$AWK" >&6
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$AWK" && break
1767 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 cat >conftest.make <<\_ACEOF
1775 @echo 'ac_maketemp="$(MAKE)"'
1777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779 if test -n "$ac_maketemp"; then
1780 eval ac_cv_prog_make_${ac_make}_set=yes
1782 eval ac_cv_prog_make_${ac_make}_set=no
1786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787 echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793 SET_MAKE="MAKE=${MAKE-make}"
1796 rm -rf .tst 2>/dev/null
1797 mkdir .tst 2>/dev/null
1798 if test -d .tst; then
1803 rmdir .tst 2>/dev/null
1805 # test to see if srcdir already configured
1806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807 test -f $srcdir/config.status; then
1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810 { (exit 1); exit 1; }; }
1813 # test whether we have cygpath
1814 if test -z "$CYGPATH_W"; then
1815 if (cygpath --version) >/dev/null 2>/dev/null; then
1816 CYGPATH_W='cygpath -w'
1823 # Define the identity of the package.
1824 PACKAGE='TiMidity++'
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE "$PACKAGE"
1833 cat >>confdefs.h <<_ACEOF
1834 #define VERSION "$VERSION"
1837 # Some tools Automake needs.
1839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1854 AMTAR=${AMTAR-"${am_missing_run}tar"}
1856 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1858 # Installed binaries are usually stripped using `strip' when the user
1859 # run `make install-strip'. However `strip' might not be the right
1860 # tool to use in cross-compilation environments, therefore Automake
1861 # will honor the `STRIP' environment variable to overrule this program.
1862 if test "$cross_compiling" != no; then
1863 if test -n "$ac_tool_prefix"; then
1864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1865 set dummy ${ac_tool_prefix}strip; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_STRIP+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$STRIP"; then
1872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 STRIP=$ac_cv_prog_STRIP
1891 if test -n "$STRIP"; then
1892 echo "$as_me:$LINENO: result: $STRIP" >&5
1893 echo "${ECHO_T}$STRIP" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1900 if test -z "$ac_cv_prog_STRIP"; then
1902 # Extract the first word of "strip", so it can be a program name with args.
1903 set dummy strip; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test -n "$ac_ct_STRIP"; then
1910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_ac_ct_STRIP="strip"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1930 if test -n "$ac_ct_STRIP"; then
1931 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1932 echo "${ECHO_T}$ac_ct_STRIP" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1940 STRIP="$ac_cv_prog_STRIP"
1944 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1946 # We need awk for the "check" target. The system "awk" is bad on
1952 ac_config_headers="$ac_config_headers config.h interface.h"
1954 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1955 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1956 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1957 if test "${enable_maintainer_mode+set}" = set; then
1958 enableval="$enable_maintainer_mode"
1959 USE_MAINTAINER_MODE=$enableval
1961 USE_MAINTAINER_MODE=no
1963 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1964 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1967 if test $USE_MAINTAINER_MODE = yes; then
1968 MAINTAINER_MODE_TRUE=
1969 MAINTAINER_MODE_FALSE='#'
1971 MAINTAINER_MODE_TRUE='#'
1972 MAINTAINER_MODE_FALSE=
1975 MAINT=$MAINTAINER_MODE_TRUE
1979 SHELL=${CONFIG_SHELL-"/bin/sh"}
1982 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1983 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1984 echo "grimblepritz" >grimble
1985 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1986 contains="./contains"
1987 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1990 contains="./contains"
1994 grep) echo "$as_me:$LINENO: result: yes" >&5
1995 echo "${ECHO_T}yes" >&6
1998 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1999 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
2000 cat >./contains <<'EOSS'
2001 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2003 chmod +x "./contains"
2008 # Check for compiler options -- such as debug flags.
2010 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2011 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
2012 # Check whether --enable-debug or --disable-debug was given.
2013 if test "${enable_debug+set}" = set; then
2014 enableval="$enable_debug"
2015 timidity_cv_debug="yes"
2017 timidity_cv_debug="no"
2019 if test "x$timidity_cv_debug" = "xyes"; then
2021 cat >>confdefs.h <<\_ACEOF
2025 CFLAGS=${CFLAGS-"-g"}
2027 if test "x$timidity_cv_debug" = "xno"; then
2029 cat >>confdefs.h <<\_ACEOF
2034 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2035 echo "${ECHO_T}$timidity_cv_debug" >&6
2037 if test "x$CFLAGS" = "x"; then
2041 if test "x$with_x" = x; then
2047 # Checking gcc environment
2048 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2049 LDFLAGS="$LDFLAGS -L${i}"
2051 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2052 CPPFLAGS="$CPPFLAGS -I${i}"
2055 # add $prefix if specified.
2056 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2057 LDFLAGS="-L$prefix/lib $LDFLAGS"
2058 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2059 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2063 # Check whether --with-includes or --without-includes was given.
2064 if test "${with_includes+set}" = set; then
2065 withval="$with_includes"
2067 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2070 CPPFLAGS="$j$CPPFLAGS"
2075 # Check whether --with-libraries or --without-libraries was given.
2076 if test "${with_libraries+set}" = set; then
2077 withval="$with_libraries"
2079 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2082 LDFLAGS="$j$LDFLAGS"
2088 # Check whether --with-default-path or --without-default-path was given.
2089 if test "${with_default_path+set}" = set; then
2090 withval="$with_default_path"
2094 if test "x$prefix" != "xNONE"; then
2095 pkgdatadir='${prefix}/share/timidity'
2097 pkgdatadir='/usr/local/share/timidity'
2101 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2103 cat >>confdefs.h <<_ACEOF
2104 #define DEFAULT_PATH "$tmpdefpath"
2108 cat >>confdefs.h <<\_ACEOF
2109 #define PKGDATADIR DEFAULT_PATH
2114 # Check whether --with-module-dir or --without-module-dir was given.
2115 if test "${with_module_dir+set}" = set; then
2116 withval="$with_module_dir"
2120 if test "x$prefix" != "xNONE"; then
2121 pkglibdir='${prefix}/lib/timidity'
2123 pkglibdir='/usr/local/lib/timidity'
2127 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2129 cat >>confdefs.h <<_ACEOF
2130 #define PKGLIBDIR "$tmplibdir"
2135 # Checks for programs.
2136 # If set to t, that means we are running in a shell under Emacs.
2137 # If you have an Emacs named "t", then use the full path.
2138 test x"$EMACS" = xt && EMACS=
2139 for ac_prog in emacs xemacs
2141 # Extract the first word of "$ac_prog", so it can be a program name with args.
2142 set dummy $ac_prog; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_EMACS+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$EMACS"; then
2149 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_EMACS="$ac_prog"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 EMACS=$ac_cv_prog_EMACS
2168 if test -n "$EMACS"; then
2169 echo "$as_me:$LINENO: result: $EMACS" >&5
2170 echo "${ECHO_T}$EMACS" >&6
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2176 test -n "$EMACS" && break
2178 test -n "$EMACS" || EMACS="no"
2183 # Check whether --with-lispdir or --without-lispdir was given.
2184 if test "${with_lispdir+set}" = set; then
2185 withval="$with_lispdir"
2187 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2188 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2189 echo "$as_me:$LINENO: result: $lispdir" >&5
2190 echo "${ECHO_T}$lispdir" >&6
2193 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2194 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2195 if test "${am_cv_lispdir+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test $EMACS != "no"; then
2200 if test x${lispdir+set} != xset; then
2201 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2202 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2203 # which is non-obvious for non-emacs users.
2204 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2205 # emacsen earlier and avoid running this altogether.
2206 { (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
2207 ($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
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2211 am_cv_lispdir=`sed -n \
2213 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2214 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2219 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
2222 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2223 echo "${ECHO_T}$am_cv_lispdir" >&6
2224 lispdir="$am_cv_lispdir"
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 if test -n "$CC"; then
2263 echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6
2266 echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2271 if test -z "$ac_cv_prog_CC"; then
2273 # Extract the first word of "gcc", so it can be a program name with args.
2274 set dummy gcc; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 if test -n "$ac_ct_CC"; then
2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290 ac_cv_prog_ac_ct_CC="gcc"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300 if test -n "$ac_ct_CC"; then
2301 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302 echo "${ECHO_T}$ac_ct_CC" >&6
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2313 if test -z "$CC"; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 if test -n "$CC"; then
2343 echo "$as_me:$LINENO: result: $CC" >&5
2344 echo "${ECHO_T}$CC" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2351 if test -z "$ac_cv_prog_CC"; then
2353 # Extract the first word of "cc", so it can be a program name with args.
2354 set dummy cc; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 ac_cv_prog_ac_ct_CC="cc"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2382 echo "${ECHO_T}$ac_ct_CC" >&6
2384 echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2394 if test -z "$CC"; then
2395 # Extract the first word of "cc", so it can be a program name with args.
2396 set dummy cc; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2414 ac_prog_rejected=yes
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 if test $ac_prog_rejected = yes; then
2425 # We found a bogon in the path, so make sure we never use it.
2426 set dummy $ac_cv_prog_CC
2428 if test $# != 0; then
2429 # We chose a different compiler from the bogus one.
2430 # However, it has the same basename, so the bogon will be chosen
2431 # first if we set CC to just the basename; use the full file name.
2433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2439 if test -n "$CC"; then
2440 echo "$as_me:$LINENO: result: $CC" >&5
2441 echo "${ECHO_T}$CC" >&6
2443 echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2448 if test -z "$CC"; then
2449 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2454 echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 if test -n "$CC"; then
2480 echo "$as_me:$LINENO: result: $CC" >&5
2481 echo "${ECHO_T}$CC" >&6
2483 echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6
2487 test -n "$CC" && break
2490 if test -z "$CC"; then
2494 # Extract the first word of "$ac_prog", so it can be a program name with args.
2495 set dummy $ac_prog; ac_word=$2
2496 echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$ac_ct_CC"; then
2502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511 ac_cv_prog_ac_ct_CC="$ac_prog"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2521 if test -n "$ac_ct_CC"; then
2522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2523 echo "${ECHO_T}$ac_ct_CC" >&6
2525 echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2529 test -n "$ac_ct_CC" && break
2538 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: no acceptable C compiler found in \$PATH
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2544 # Provide some information about the compiler.
2545 echo "$as_me:$LINENO:" \
2546 "checking for C compiler version" >&5
2547 ac_compiler=`set X $ac_compile; echo $2`
2548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2549 (eval $ac_compiler --version </dev/null >&5) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2554 (eval $ac_compiler -v </dev/null >&5) 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2559 (eval $ac_compiler -V </dev/null >&5) 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }
2564 cat >conftest.$ac_ext <<_ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2579 ac_clean_files_save=$ac_clean_files
2580 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2581 # Try to create an executable without -o first, disregard a.out.
2582 # It will help us diagnose broken compilers, and finding out an intuition
2584 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2585 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2586 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2588 (eval $ac_link_default) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 # Find the output, starting from the most likely. This scheme is
2593 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2596 # Be careful to initialize this variable, since it used to be cached.
2597 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2599 # b.out is created by i960 compilers.
2600 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2602 test -f "$ac_file" || continue
2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2607 # This is the source file.
2610 # We found the default executable, but exeext='' is most
2614 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615 # FIXME: I believe we export ac_cv_exeext for Libtool,
2616 # but it would be cool to find out if it's true. Does anybody
2617 # maintain Libtool? --akim.
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2628 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2629 See \`config.log' for more details." >&5
2630 echo "$as_me: error: C compiler cannot create executables
2631 See \`config.log' for more details." >&2;}
2632 { (exit 77); exit 77; }; }
2635 ac_exeext=$ac_cv_exeext
2636 echo "$as_me:$LINENO: result: $ac_file" >&5
2637 echo "${ECHO_T}$ac_file" >&6
2639 # Check the compiler produces executables we can run. If not, either
2640 # the compiler is broken, or we cross compile.
2641 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2642 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2643 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2644 # If not cross compiling, check that we can run a simple program.
2645 if test "$cross_compiling" != yes; then
2646 if { ac_try='./$ac_file'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2654 if test "$cross_compiling" = maybe; then
2657 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2658 If you meant to cross compile, use \`--host'.
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot run C compiled programs.
2661 If you meant to cross compile, use \`--host'.
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2667 echo "$as_me:$LINENO: result: yes" >&5
2668 echo "${ECHO_T}yes" >&6
2670 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2671 ac_clean_files=$ac_clean_files_save
2672 # Check the compiler produces executables we can run. If not, either
2673 # the compiler is broken, or we cross compile.
2674 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2675 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2676 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2677 echo "${ECHO_T}$cross_compiling" >&6
2679 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2680 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2682 (eval $ac_link) 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; then
2686 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2687 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2688 # work properly (i.e., refer to `conftest.exe'), while it won't with
2690 for ac_file in conftest.exe conftest conftest.*; do
2691 test -f "$ac_file" || continue
2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2694 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2702 See \`config.log' for more details." >&5
2703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2704 See \`config.log' for more details." >&2;}
2705 { (exit 1); exit 1; }; }
2708 rm -f conftest$ac_cv_exeext
2709 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2710 echo "${ECHO_T}$ac_cv_exeext" >&6
2712 rm -f conftest.$ac_ext
2713 EXEEXT=$ac_cv_exeext
2715 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2716 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2717 if test "${ac_cv_objext+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 rm -f conftest.o conftest.obj
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; then
2741 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2753 See \`config.log' for more details." >&5
2754 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2755 See \`config.log' for more details." >&2;}
2756 { (exit 1); exit 1; }; }
2759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2761 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2762 echo "${ECHO_T}$ac_cv_objext" >&6
2763 OBJEXT=$ac_cv_objext
2765 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2766 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 cat >conftest.$ac_ext <<_ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2792 grep -v '^ *+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_c_werror_flag"
2798 || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2821 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2823 GCC=`test $ac_compiler_gnu = yes && echo yes`
2824 ac_test_CFLAGS=${CFLAGS+set}
2825 ac_save_CFLAGS=$CFLAGS
2827 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2829 if test "${ac_cv_prog_cc_g+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1 >conftest.err
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_c_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2880 if test "$ac_test_CFLAGS" = set; then
2881 CFLAGS=$ac_save_CFLAGS
2882 elif test $ac_cv_prog_cc_g = yes; then
2883 if test "$GCC" = yes; then
2889 if test "$GCC" = yes; then
2895 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2896 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2897 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 ac_cv_prog_cc_stdc=no
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 #include <sys/types.h>
2911 #include <sys/stat.h>
2912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2913 struct buf { int x; };
2914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2915 static char *e (p, i)
2921 static char *f (char * (*g) (char **, int), char **p, ...)
2926 s = g (p, va_arg (v,int));
2931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2932 function prototypes and stuff, but not '\xHH' hex character constants.
2933 These don't provoke an error unfortunately, instead are silently treated
2934 as 'x'. The following induces an error, until -std1 is added to get
2935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2936 array size at least. It's necessary to write '\x00'==0 to get something
2937 that's true only with -std1. */
2938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2940 int test (int i, double x);
2941 struct s1 {int (*f) (int a);};
2942 struct s2 {int (*f) (double a);};
2943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2954 # Don't try gcc -ansi; that turns off useful extensions and
2955 # breaks some systems' header files.
2956 # AIX -qlanglvl=ansi
2957 # Ultrix and OSF/1 -std1
2958 # HP-UX 10.20 and later -Ae
2959 # HP-UX older versions -Aa -D_HPUX_SOURCE
2960 # SVR4 -Xc -D__EXTENSIONS__
2961 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2963 CC="$ac_save_CC $ac_arg"
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_c_werror_flag"
2974 || test ! -s conftest.err'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; } &&
2980 { ac_try='test -s conftest.$ac_objext'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 ac_cv_prog_cc_stdc=$ac_arg
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.err conftest.$ac_objext
2995 rm -f conftest.$ac_ext conftest.$ac_objext
3000 case "x$ac_cv_prog_cc_stdc" in
3002 echo "$as_me:$LINENO: result: none needed" >&5
3003 echo "${ECHO_T}none needed" >&6 ;;
3005 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3006 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3007 CC="$CC $ac_cv_prog_cc_stdc" ;;
3010 # Some people use a C++ compiler to compile C. Since we use `exit',
3011 # in C++ we need to declare it. In case someone uses the same compiler
3012 # for both compiling C and C++ we need to have the C++ compiler decide
3013 # the declaration of exit, since it's the most demanding environment.
3014 cat >conftest.$ac_ext <<_ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>conftest.er1
3023 grep -v '^ *+' conftest.er1 >conftest.err
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_c_werror_flag"
3029 || test ! -s conftest.err'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 for ac_declaration in \
3043 'extern "C" void std::exit (int) throw (); using std::exit;' \
3044 'extern "C" void std::exit (int); using std::exit;' \
3045 'extern "C" void exit (int) throw ();' \
3046 'extern "C" void exit (int);' \
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_c_werror_flag"
3075 || test ! -s conftest.err'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112 (eval $ac_compile) 2>conftest.er1
3114 grep -v '^ *+' conftest.er1 >conftest.err
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } &&
3119 { ac_try='test -z "$ac_c_werror_flag"
3120 || test ! -s conftest.err'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; } &&
3126 { ac_try='test -s conftest.$ac_objext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3141 if test -n "$ac_declaration"; then
3142 echo '#ifdef __cplusplus' >>confdefs.h
3143 echo $ac_declaration >>confdefs.h
3144 echo '#endif' >>confdefs.h
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 DEPDIR="${am__leading_dot}deps"
3160 ac_config_commands="$ac_config_commands depfiles"
3163 am_make=${MAKE-make}
3164 cat > confinc << 'END'
3169 # If we don't find an include directive, just comment out the code.
3170 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3171 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3175 # First try GNU make style include.
3176 echo "include confinc" > confmf
3177 # We grep out `Entering directory' and `Leaving directory'
3178 # messages which can occur if `w' ends up in MAKEFLAGS.
3179 # In particular we don't look at `^make:' because GNU make might
3180 # be invoked under some other name (usually "gmake"), in which
3181 # case it prints its new name instead of `make'.
3182 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3187 # Now try BSD make style include.
3188 if test "$am__include" = "#"; then
3189 echo '.include "confinc"' > confmf
3190 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3191 am__include=.include
3198 echo "$as_me:$LINENO: result: $_am_result" >&5
3199 echo "${ECHO_T}$_am_result" >&6
3200 rm -f confinc confmf
3202 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3203 if test "${enable_dependency_tracking+set}" = set; then
3204 enableval="$enable_dependency_tracking"
3207 if test "x$enable_dependency_tracking" != xno; then
3208 am_depcomp="$ac_aux_dir/depcomp"
3213 if test "x$enable_dependency_tracking" != xno; then
3224 depcc="$CC" am_compiler_list=
3226 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3227 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3228 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3232 # We make a subdir and do the tests there. Otherwise we can end up
3233 # making bogus files that we don't know about and never remove. For
3234 # instance it was reported that on HP-UX the gcc test will end up
3235 # making a dummy file named `D' -- because `-MD' means `put the output
3238 # Copy depcomp to subdir because otherwise we won't find it if we're
3239 # using a relative directory.
3240 cp "$am_depcomp" conftest.dir
3242 # We will build objects and dependencies in a subdirectory because
3243 # it helps to detect inapplicable dependency modes. For instance
3244 # both Tru64's cc and ICC support -MD to output dependencies as a
3245 # side effect of compilation, but ICC will put the dependencies in
3246 # the current directory while Tru64 will put them in the object
3250 am_cv_CC_dependencies_compiler_type=none
3251 if test "$am_compiler_list" = ""; then
3252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3254 for depmode in $am_compiler_list; do
3255 # Setup a source with many dependencies, because some compilers
3256 # like to wrap large dependency lists on column 80 (with \), and
3257 # we should not choose a depcomp mode which is confused by this.
3259 # We need to recreate these files for each test, as the compiler may
3260 # overwrite some of them when testing with obscure command lines.
3261 # This happens at least with the AIX C compiler.
3263 for i in 1 2 3 4 5 6; do
3264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3271 # after this tag, mechanisms are not by side-effect, so they'll
3272 # only be used when explicitly requested
3273 if test "x$enable_dependency_tracking" = xyes; then
3281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3282 # mode. It turns out that the SunPro C++ compiler does not properly
3283 # handle `-M -o', and we need to detect this.
3284 if depmode=$depmode \
3285 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3287 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3288 >/dev/null 2>conftest.err &&
3289 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3290 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3291 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3292 # icc doesn't choke on unknown options, it will just issue warnings
3293 # (even with -Werror). So we grep stderr for any message
3294 # that says an option was ignored.
3295 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3296 am_cv_CC_dependencies_compiler_type=$depmode
3305 am_cv_CC_dependencies_compiler_type=none
3309 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3310 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3316 test "x$enable_dependency_tracking" != xno \
3317 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3319 am__fastdepCC_FALSE='#'
3321 am__fastdepCC_TRUE='#'
3322 am__fastdepCC_FALSE=
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3333 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3334 # On Suns, sometimes $CPP names a directory.
3335 if test -n "$CPP" && test -d "$CPP"; then
3338 if test -z "$CPP"; then
3339 if test "${ac_cv_prog_CPP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 # Double quotes because CPP needs to be expanded
3343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3346 for ac_c_preproc_warn_flag in '' yes
3348 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works.
3350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351 # <limits.h> exists even on freestanding compilers.
3352 # On the NeXT, cc -E runs the code through the compiler's parser,
3353 # not just through cpp. "Syntax error" is here to catch this case.
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3361 # include <limits.h>
3363 # include <assert.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
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 # Broken: fails on valid input.
3393 rm -f conftest.err conftest.$ac_ext
3395 # OK, works on sane cases. Now check whether non-existent headers
3396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #include <ac_nonexistent.h>
3405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 if test -z "$ac_cpp_err"; then
3423 # Broken: success on invalid input.
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 # Passes both tests.
3433 rm -f conftest.err conftest.$ac_ext
3436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437 rm -f conftest.err conftest.$ac_ext
3438 if $ac_preproc_ok; then
3450 echo "$as_me:$LINENO: result: $CPP" >&5
3451 echo "${ECHO_T}$CPP" >&6
3453 for ac_c_preproc_warn_flag in '' yes
3455 # Use a header file that comes with gcc, so configuring glibc
3456 # with a fresh cross-compiler works.
3457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3458 # <limits.h> exists even on freestanding compilers.
3459 # On the NeXT, cc -E runs the code through the compiler's parser,
3460 # not just through cpp. "Syntax error" is here to catch this case.
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3468 # include <limits.h>
3470 # include <assert.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
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 # Broken: fails on valid input.
3500 rm -f conftest.err conftest.$ac_ext
3502 # OK, works on sane cases. Now check whether non-existent headers
3503 # can be detected and how.
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <ac_nonexistent.h>
3512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } >/dev/null; then
3520 if test -s conftest.err; then
3521 ac_cpp_err=$ac_c_preproc_warn_flag
3522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3529 if test -z "$ac_cpp_err"; then
3530 # Broken: success on invalid input.
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 # Passes both tests.
3540 rm -f conftest.err conftest.$ac_ext
3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544 rm -f conftest.err conftest.$ac_ext
3545 if $ac_preproc_ok; then
3548 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3549 See \`config.log' for more details." >&5
3550 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3551 See \`config.log' for more details." >&2;}
3552 { (exit 1); exit 1; }; }
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562 echo "$as_me:$LINENO: checking for egrep" >&5
3563 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3564 if test "${ac_cv_prog_egrep+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3568 then ac_cv_prog_egrep='grep -E'
3569 else ac_cv_prog_egrep='egrep'
3572 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3573 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3574 EGREP=$ac_cv_prog_egrep
3577 if test $ac_cv_c_compiler_gnu = yes; then
3578 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3579 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3580 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 ac_pattern="Autoconf.*'x'"
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3595 ac_cv_prog_gcc_traditional=yes
3597 ac_cv_prog_gcc_traditional=no
3602 if test $ac_cv_prog_gcc_traditional = no; then
3603 cat >conftest.$ac_ext <<_ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3613 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3614 ac_cv_prog_gcc_traditional=yes
3620 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3621 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3622 if test $ac_cv_prog_gcc_traditional = yes; then
3623 CC="$CC -traditional"
3627 # Find a good install program. We prefer a C program (faster),
3628 # so one script is as good as another. But avoid the broken or
3629 # incompatible versions:
3630 # SysV /etc/install, /usr/sbin/install
3631 # SunOS /usr/etc/install
3632 # IRIX /sbin/install
3634 # AmigaOS /C/install, which installs bootblocks on floppy discs
3635 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3638 # OS/2's system install, which has a completely different semantic
3639 # ./install, which can be erroneously created by make from ./install.sh.
3640 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3641 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3642 if test -z "$INSTALL"; then
3643 if test "${ac_cv_path_install+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 test -z "$as_dir" && as_dir=.
3651 # Account for people who put trailing slashes in PATH elements.
3653 ./ | .// | /cC/* | \
3654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3655 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3658 # OSF1 and SCO ODT 3.0 have their own names for install.
3659 # Don't use installbsd from OSF since it installs stuff as root
3661 for ac_prog in ginstall scoinst install; do
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3664 if test $ac_prog = install &&
3665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3666 # AIX install. It has an incompatible calling convention.
3668 elif test $ac_prog = install &&
3669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3670 # program-specific install script used by HP pwplus--don't use.
3673 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3685 if test "${ac_cv_path_install+set}" = set; then
3686 INSTALL=$ac_cv_path_install
3688 # As a last resort, use the slow shell script. We don't cache a
3689 # path for INSTALL within a source directory, because that will
3690 # break other packages using the cache if that directory is
3691 # removed, or if the path is relative.
3692 INSTALL=$ac_install_sh
3695 echo "$as_me:$LINENO: result: $INSTALL" >&5
3696 echo "${ECHO_T}$INSTALL" >&6
3698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3699 # It thinks the first close brace ends the variable substitution.
3700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3706 for ac_prog in gawk mawk nawk awk
3708 # Extract the first word of "$ac_prog", so it can be a program name with args.
3709 set dummy $ac_prog; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_prog_AWK+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 if test -n "$AWK"; then
3716 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 ac_cv_prog_AWK="$ac_prog"
3726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 if test -n "$AWK"; then
3736 echo "$as_me:$LINENO: result: $AWK" >&5
3737 echo "${ECHO_T}$AWK" >&6
3739 echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3743 test -n "$AWK" && break
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test -n "$RANLIB"; then
3755 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}ranlib"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 RANLIB=$ac_cv_prog_RANLIB
3774 if test -n "$RANLIB"; then
3775 echo "$as_me:$LINENO: result: $RANLIB" >&5
3776 echo "${ECHO_T}$RANLIB" >&6
3778 echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6
3783 if test -z "$ac_cv_prog_RANLIB"; then
3784 ac_ct_RANLIB=$RANLIB
3785 # Extract the first word of "ranlib", so it can be a program name with args.
3786 set dummy ranlib; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -n "$ac_ct_RANLIB"; then
3793 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_ac_ct_RANLIB="ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3812 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3813 if test -n "$ac_ct_RANLIB"; then
3814 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3815 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3817 echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3821 RANLIB=$ac_ct_RANLIB
3823 RANLIB="$ac_cv_prog_RANLIB"
3826 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3827 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3829 if test "$LN_S" = "ln -s"; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6
3833 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3834 echo "${ECHO_T}no, using $LN_S" >&6
3837 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3838 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3839 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3840 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 cat > conftest.$ac_ext <<EOF
3844 int main() {return 0;}
3846 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3847 if test -s conftest.out; then
3848 eval "timidity_cv_ccoption_$ac_ccoption=no"
3850 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3853 eval "timidity_cv_ccoption_$ac_ccoption=no"
3858 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860 echo "${ECHO_T}yes" >&6
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3869 if test "x$NOCFLAGS" = "xyes"; then
3870 if test "x$GCC" = "xyes"; then
3877 # Checks for target dependencies
3880 # Check whether --with-elf or --without-elf was given.
3881 if test "${with_elf+set}" = set; then
3889 # [ --with-simd create SIMD friendly binary (default is no) ],
3890 # [ SIMD=$withval ], [ SIMD="no" ])
3895 test -n "$SHLD" || SHLD="ld -b"
3899 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3900 test -n "$SHLD" || SHLD="cc -shared -all"
3904 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3909 test -n "$SHLD" || SHLD="ld -Bshareable"
3913 if test "$ELFFORMAT" = yes; then
3914 test -n "$SHLD" || SHLD="ld -Bshareable"
3917 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3918 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3924 # EXTRALIBS="$EXTRALIBS -lxpg4"
3925 # test -n "$SHLD" || SHLD="ld -Bshareable"
3929 *-*-cygwin*|*-*-mingw*)
3930 EXTRADEFS="-D__W32__"
3934 # test -n "$SHLD" || SHLD="tlink32 -Tpd"
3935 test -n "$SHLD" || SHLD="BCC32 -WD"
3937 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3938 BORLANDC_START='C0X32.OBJ'
3939 CFLAGS="$CFLAGS -tWM -VM"
3940 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3943 test -n "$SHLD" || SHLD="dmc -WD"
3945 DMC_LDFLAGS="winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib"
3946 CFLAGS="$CFLAGS -mn -j0"
3948 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3952 CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
3955 EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
3958 test -n "$SHLD" || SHLD="link -dll"
3961 *" -MT "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
3962 *" -MD "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
3963 *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
3964 *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
3965 *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
3967 VCPP_LDFLAGS="-nologo -incremental:no $NODEF kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
3968 CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX -Ob2"
3969 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c"
3971 "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
3972 *) test -n "$SHLD" || SHLD="unknown" ;;
3976 lib_user32_test=-luser32
3980 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3984 EXTRADEFS="-DSOLARIS"
3985 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3989 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3993 if test "x$SIMD" = "xyes"; then
3995 cat >>confdefs.h <<\_ACEOF
3996 #define USE_ALTIVEC 1
3999 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4000 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4003 cat >>confdefs.h <<\_ACEOF
4004 #define USE_ALTIVEC 0
4008 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4009 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4010 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4014 test -n "$SHLD" || \
4015 if test "x$GCC" = xyes; then
4018 SHLD="ld -Bdynamic -G"
4025 # Checks for libraries.
4027 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4028 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4029 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 ac_check_lib_save_LIBS=$LIBS
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4041 /* Override any gcc2 internal prototype to avoid an error. */
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4056 rm -f conftest.$ac_objext conftest$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest$ac_exeext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_cv_lib_m_sqrt=yes
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4085 rm -f conftest.err conftest.$ac_objext \
4086 conftest$ac_exeext conftest.$ac_ext
4087 LIBS=$ac_check_lib_save_LIBS
4089 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4090 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4091 if test $ac_cv_lib_m_sqrt = yes; then
4092 cat >>confdefs.h <<_ACEOF
4101 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4102 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4103 if test "${ac_cv_lib_socket_socket+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 ac_check_lib_save_LIBS=$LIBS
4107 LIBS="-lsocket $LIBS"
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4115 /* Override any gcc2 internal prototype to avoid an error. */
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4130 rm -f conftest.$ac_objext conftest$ac_exeext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4132 (eval $ac_link) 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_c_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest$ac_exeext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 ac_cv_lib_socket_socket=yes
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4157 ac_cv_lib_socket_socket=no
4159 rm -f conftest.err conftest.$ac_objext \
4160 conftest$ac_exeext conftest.$ac_ext
4161 LIBS=$ac_check_lib_save_LIBS
4163 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4164 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4165 if test $ac_cv_lib_socket_socket = yes; then
4166 cat >>confdefs.h <<_ACEOF
4167 #define HAVE_LIBSOCKET 1
4170 LIBS="-lsocket $LIBS"
4174 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4175 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4176 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 ac_check_lib_save_LIBS=$LIBS
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4188 /* Override any gcc2 internal prototype to avoid an error. */
4192 /* We use char because int might match the return type of a gcc2
4193 builtin and then its argument prototype would still apply. */
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205 (eval $ac_link) 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -z "$ac_c_werror_flag"
4213 || test ! -s conftest.err'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; } &&
4219 { ac_try='test -s conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 ac_cv_lib_dl_dlopen=yes
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 ac_cv_lib_dl_dlopen=no
4232 rm -f conftest.err conftest.$ac_objext \
4233 conftest$ac_exeext conftest.$ac_ext
4234 LIBS=$ac_check_lib_save_LIBS
4236 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4237 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4238 if test $ac_cv_lib_dl_dlopen = yes; then
4242 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4243 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4244 if test "${ac_cv_lib_objc_NSLinkModule+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. */
4262 char NSLinkModule ();
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_objc_NSLinkModule=yes
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ac_cv_lib_objc_NSLinkModule=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_objc_NSLinkModule" >&5
4305 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4306 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4309 # Mac OS X need this.
4310 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; then
4312 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4313 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4314 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 ac_check_lib_save_LIBS=$LIBS
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4326 /* Override any gcc2 internal prototype to avoid an error. */
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4341 rm -f conftest.$ac_objext conftest$ac_exeext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343 (eval $ac_link) 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_c_werror_flag"
4351 || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_lib_xpg4_setlocale=yes
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 ac_cv_lib_xpg4_setlocale=no
4370 rm -f conftest.err conftest.$ac_objext \
4371 conftest$ac_exeext conftest.$ac_ext
4372 LIBS=$ac_check_lib_save_LIBS
4374 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4375 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4376 if test $ac_cv_lib_xpg4_setlocale = yes; then
4377 cat >>confdefs.h <<_ACEOF
4378 #define HAVE_LIBXPG4 1
4384 # Mac OS X (and maybe NetBSD) need this.
4387 for ac_func in gethostbyname
4389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4390 echo "$as_me:$LINENO: checking for $ac_func" >&5
4391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4392 if eval "test \"\${$as_ac_var+set}\" = set"; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4403 #define $ac_func innocuous_$ac_func
4405 /* System header to define __stub macros and hopefully few prototypes,
4406 which can conflict with char $ac_func (); below.
4407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4408 <limits.h> exists even on freestanding compilers. */
4411 # include <limits.h>
4413 # include <assert.h>
4418 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4426 /* The GNU C library defines this for functions which it implements
4427 to always fail with ENOSYS. Some functions are actually named
4428 something starting with __ and the normal name is an alias. */
4429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4432 char (*f) () = $ac_func;
4441 return f != $ac_func;
4446 rm -f conftest.$ac_objext conftest$ac_exeext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4448 (eval $ac_link) 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest$ac_exeext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 eval "$as_ac_var=yes"
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 eval "$as_ac_var=no"
4475 rm -f conftest.err conftest.$ac_objext \
4476 conftest$ac_exeext conftest.$ac_ext
4478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4480 if test `eval echo '${'$as_ac_var'}'` = yes; then
4481 cat >>confdefs.h <<_ACEOF
4482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4487 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4488 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4489 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 ac_check_lib_save_LIBS=$LIBS
4494 cat >conftest.$ac_ext <<_ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4501 /* Override any gcc2 internal prototype to avoid an error. */
4505 /* We use char because int might match the return type of a gcc2
4506 builtin and then its argument prototype would still apply. */
4507 char gethostbyname ();
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518 (eval $ac_link) 2>conftest.er1
4520 grep -v '^ *+' conftest.er1 >conftest.err
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest$ac_exeext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_cv_lib_nsl_gethostbyname=yes
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4543 ac_cv_lib_nsl_gethostbyname=no
4545 rm -f conftest.err conftest.$ac_objext \
4546 conftest$ac_exeext conftest.$ac_ext
4547 LIBS=$ac_check_lib_save_LIBS
4549 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4550 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4551 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4552 cat >>confdefs.h <<_ACEOF
4553 #define HAVE_LIBNSL 1
4563 echo "$as_me:$LINENO: checking for X" >&5
4564 echo $ECHO_N "checking for X... $ECHO_C" >&6
4567 # Check whether --with-x or --without-x was given.
4568 if test "${with_x+set}" = set; then
4572 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4573 if test "x$with_x" = xno; then
4574 # The user explicitly disabled X.
4577 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4578 # Both variables are already set.
4581 if test "${ac_cv_have_x+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 # One or both of the vars are not set, and there is no cached value.
4585 ac_x_includes=no ac_x_libraries=no
4587 if mkdir conftest.dir; then
4589 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4590 cat >Imakefile <<'_ACEOF'
4592 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4594 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4596 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4597 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4598 for ac_extension in a so sl; do
4599 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4600 test -f $ac_im_libdir/libX11.$ac_extension; then
4601 ac_im_usrlibdir=$ac_im_libdir; break
4604 # Screen out bogus values from the imake configuration. They are
4605 # bogus both because they are the default anyway, and because
4606 # using them would break gcc on systems where it needs fixed includes.
4607 case $ac_im_incroot in
4609 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4611 case $ac_im_usrlibdir in
4613 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4620 # Standard set of common directories for X headers.
4621 # Check X11 before X11Rn because it is often a symlink to the current release.
4633 /usr/local/X11/include
4634 /usr/local/X11R6/include
4635 /usr/local/X11R5/include
4636 /usr/local/X11R4/include
4638 /usr/local/include/X11
4639 /usr/local/include/X11R6
4640 /usr/local/include/X11R5
4641 /usr/local/include/X11R4
4645 /usr/XFree86/include/X11
4649 /usr/unsupported/include
4651 /usr/local/x11r5/include
4652 /usr/lpp/Xamples/include
4654 /usr/openwin/include
4655 /usr/openwin/share/include'
4657 if test "$ac_x_includes" = no; then
4658 # Guess where to find include files, by looking for Intrinsic.h.
4659 # First, try using that file with no special directory specified.
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 #include <X11/Intrinsic.h>
4668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } >/dev/null; then
4676 if test -s conftest.err; then
4677 ac_cpp_err=$ac_c_preproc_warn_flag
4678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4685 if test -z "$ac_cpp_err"; then
4686 # We can compile using X headers with no special include directory.
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 for ac_dir in $ac_x_header_dirs; do
4693 if test -r "$ac_dir/X11/Intrinsic.h"; then
4694 ac_x_includes=$ac_dir
4699 rm -f conftest.err conftest.$ac_ext
4700 fi # $ac_x_includes = no
4702 if test "$ac_x_libraries" = no; then
4703 # Check for the libraries.
4704 # See if we find them without any special options.
4705 # Don't add to $LIBS permanently.
4708 cat >conftest.$ac_ext <<_ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #include <X11/Intrinsic.h>
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>conftest.er1
4727 grep -v '^ *+' conftest.er1 >conftest.err
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -z "$ac_c_werror_flag"
4733 || test ! -s conftest.err'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4746 # We can link X programs with no special library path.
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4753 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4755 # Don't even attempt the hair of trying to link an X program!
4756 for ac_extension in a so sl; do
4757 if test -r $ac_dir/libXt.$ac_extension; then
4758 ac_x_libraries=$ac_dir
4764 rm -f conftest.err conftest.$ac_objext \
4765 conftest$ac_exeext conftest.$ac_ext
4766 fi # $ac_x_libraries = no
4768 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4769 # Didn't find X anywhere. Cache the known absence of X.
4770 ac_cv_have_x="have_x=no"
4772 # Record where we found X for the cache.
4773 ac_cv_have_x="have_x=yes \
4774 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4779 eval "$ac_cv_have_x"
4782 if test "$have_x" != yes; then
4783 echo "$as_me:$LINENO: result: $have_x" >&5
4784 echo "${ECHO_T}$have_x" >&6
4787 # If each of the values was on the command line, it overrides each guess.
4788 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4789 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4790 # Update the cache value to reflect the command line values.
4791 ac_cv_have_x="have_x=yes \
4792 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4793 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4794 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4797 if test "$no_x" = yes; then
4798 # Not all programs may use this symbol, but it does not hurt to define it.
4800 cat >>confdefs.h <<\_ACEOF
4801 #define X_DISPLAY_MISSING 1
4804 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4806 if test -n "$x_includes"; then
4807 X_CFLAGS="$X_CFLAGS -I$x_includes"
4810 # It would also be nice to do this for all -L options, not just this one.
4811 if test -n "$x_libraries"; then
4812 X_LIBS="$X_LIBS -L$x_libraries"
4813 # For Solaris; some versions of Sun CC require a space after -R and
4814 # others require no space. Words are not sufficient . . . .
4815 case `(uname -sr) 2>/dev/null` in
4817 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4818 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4819 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837 (eval $ac_link) 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest$ac_exeext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4864 rm -f conftest.err conftest.$ac_objext \
4865 conftest$ac_exeext conftest.$ac_ext
4866 if test $ac_R_nospace = yes; then
4867 echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4869 X_LIBS="$X_LIBS -R$x_libraries"
4871 LIBS="$ac_xsave_LIBS -R $x_libraries"
4872 cat >conftest.$ac_ext <<_ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889 (eval $ac_link) 2>conftest.er1
4891 grep -v '^ *+' conftest.er1 >conftest.err
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -z "$ac_c_werror_flag"
4897 || test ! -s conftest.err'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest$ac_exeext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4916 rm -f conftest.err conftest.$ac_objext \
4917 conftest$ac_exeext conftest.$ac_ext
4918 if test $ac_R_space = yes; then
4919 echo "$as_me:$LINENO: result: yes" >&5
4920 echo "${ECHO_T}yes" >&6
4921 X_LIBS="$X_LIBS -R $x_libraries"
4923 echo "$as_me:$LINENO: result: neither works" >&5
4924 echo "${ECHO_T}neither works" >&6
4931 # Check for system-dependent libraries X programs must link with.
4932 # Do this before checking for the system-independent R6 libraries
4933 # (-lICE), since we may need -lsocket or whatever for X linking.
4935 if test "$ISC" = yes; then
4936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4938 # Martyn Johnson says this is needed for Ultrix, if the X
4939 # libraries were built with DECnet support. And Karl Berry says
4940 # the Alpha needs dnet_stub (dnet does not exist).
4941 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 /* Override any gcc2 internal prototype to avoid an error. */
4953 /* We use char because int might match the return type of a gcc2
4954 builtin and then its argument prototype would still apply. */
4955 char XOpenDisplay ();
4964 rm -f conftest.$ac_objext conftest$ac_exeext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4966 (eval $ac_link) 2>conftest.er1
4968 grep -v '^ *+' conftest.er1 >conftest.err
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -z "$ac_c_werror_flag"
4974 || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4992 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4993 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 ac_check_lib_save_LIBS=$LIBS
4998 cat >conftest.$ac_ext <<_ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5005 /* Override any gcc2 internal prototype to avoid an error. */
5009 /* We use char because int might match the return type of a gcc2
5010 builtin and then its argument prototype would still apply. */
5020 rm -f conftest.$ac_objext conftest$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -z "$ac_c_werror_flag"
5030 || test ! -s conftest.err'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try='test -s conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_lib_dnet_dnet_ntoa=yes
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 ac_cv_lib_dnet_dnet_ntoa=no
5049 rm -f conftest.err conftest.$ac_objext \
5050 conftest$ac_exeext conftest.$ac_ext
5051 LIBS=$ac_check_lib_save_LIBS
5053 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5054 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5055 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5056 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5059 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5060 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5061 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5062 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 ac_check_lib_save_LIBS=$LIBS
5066 LIBS="-ldnet_stub $LIBS"
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5074 /* Override any gcc2 internal prototype to avoid an error. */
5078 /* We use char because int might match the return type of a gcc2
5079 builtin and then its argument prototype would still apply. */
5089 rm -f conftest.$ac_objext conftest$ac_exeext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091 (eval $ac_link) 2>conftest.er1
5093 grep -v '^ *+' conftest.er1 >conftest.err
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -z "$ac_c_werror_flag"
5099 || test ! -s conftest.err'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; } &&
5105 { ac_try='test -s conftest$ac_exeext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 ac_cv_lib_dnet_stub_dnet_ntoa=no
5118 rm -f conftest.err conftest.$ac_objext \
5119 conftest$ac_exeext conftest.$ac_ext
5120 LIBS=$ac_check_lib_save_LIBS
5122 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5123 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5124 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5125 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5130 rm -f conftest.err conftest.$ac_objext \
5131 conftest$ac_exeext conftest.$ac_ext
5132 LIBS="$ac_xsave_LIBS"
5134 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5135 # to get the SysV transport functions.
5136 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5138 # The nsl library prevents programs from opening the X display
5139 # on Irix 5.2, according to T.E. Dickey.
5140 # The functions gethostbyname, getservbyname, and inet_addr are
5141 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5142 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5143 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5144 if test "${ac_cv_func_gethostbyname+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5155 #define gethostbyname innocuous_gethostbyname
5157 /* System header to define __stub macros and hopefully few prototypes,
5158 which can conflict with char gethostbyname (); below.
5159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160 <limits.h> exists even on freestanding compilers. */
5163 # include <limits.h>
5165 # include <assert.h>
5168 #undef gethostbyname
5170 /* Override any gcc2 internal prototype to avoid an error. */
5175 /* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */
5177 char gethostbyname ();
5178 /* The GNU C library defines this for functions which it implements
5179 to always fail with ENOSYS. Some functions are actually named
5180 something starting with __ and the normal name is an alias. */
5181 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5184 char (*f) () = gethostbyname;
5193 return f != gethostbyname;
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200 (eval $ac_link) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag"
5208 || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try='test -s conftest$ac_exeext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 ac_cv_func_gethostbyname=yes
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5225 ac_cv_func_gethostbyname=no
5227 rm -f conftest.err conftest.$ac_objext \
5228 conftest$ac_exeext conftest.$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5231 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5233 if test $ac_cv_func_gethostbyname = no; then
5234 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5235 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5236 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 ac_check_lib_save_LIBS=$LIBS
5241 cat >conftest.$ac_ext <<_ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5248 /* Override any gcc2 internal prototype to avoid an error. */
5252 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */
5254 char gethostbyname ();
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag"
5273 || test ! -s conftest.err'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; } &&
5279 { ac_try='test -s conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_lib_nsl_gethostbyname=yes
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290 ac_cv_lib_nsl_gethostbyname=no
5292 rm -f conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
5294 LIBS=$ac_check_lib_save_LIBS
5296 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5297 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5298 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5302 if test $ac_cv_lib_nsl_gethostbyname = no; then
5303 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5304 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5305 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_check_lib_save_LIBS=$LIBS
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5317 /* Override any gcc2 internal prototype to avoid an error. */
5321 /* We use char because int might match the return type of a gcc2
5322 builtin and then its argument prototype would still apply. */
5323 char gethostbyname ();
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>conftest.er1
5336 grep -v '^ *+' conftest.er1 >conftest.err
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest$ac_exeext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_lib_bsd_gethostbyname=yes
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_cv_lib_bsd_gethostbyname=no
5361 rm -f conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5365 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5366 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5367 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5368 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5374 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5375 # socket/setsockopt and other routines are undefined under SCO ODT
5376 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5377 # on later versions), says Simon Leinen: it contains gethostby*
5378 # variants that don't use the name server (or something). -lsocket
5379 # must be given before -lnsl if both are needed. We assume that
5380 # if connect needs -lnsl, so does gethostbyname.
5381 echo "$as_me:$LINENO: checking for connect" >&5
5382 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5383 if test "${ac_cv_func_connect+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 cat >conftest.$ac_ext <<_ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5394 #define connect innocuous_connect
5396 /* System header to define __stub macros and hopefully few prototypes,
5397 which can conflict with char connect (); below.
5398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399 <limits.h> exists even on freestanding compilers. */
5402 # include <limits.h>
5404 # include <assert.h>
5409 /* Override any gcc2 internal prototype to avoid an error. */
5414 /* We use char because int might match the return type of a gcc2
5415 builtin and then its argument prototype would still apply. */
5417 /* The GNU C library defines this for functions which it implements
5418 to always fail with ENOSYS. Some functions are actually named
5419 something starting with __ and the normal name is an alias. */
5420 #if defined (__stub_connect) || defined (__stub___connect)
5423 char (*f) () = connect;
5432 return f != connect;
5437 rm -f conftest.$ac_objext conftest$ac_exeext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5439 (eval $ac_link) 2>conftest.er1
5441 grep -v '^ *+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest$ac_exeext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_cv_func_connect=yes
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 ac_cv_func_connect=no
5466 rm -f conftest.err conftest.$ac_objext \
5467 conftest$ac_exeext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5470 echo "${ECHO_T}$ac_cv_func_connect" >&6
5472 if test $ac_cv_func_connect = no; then
5473 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5474 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5475 if test "${ac_cv_lib_socket_connect+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 ac_check_lib_save_LIBS=$LIBS
5479 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5480 cat >conftest.$ac_ext <<_ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5487 /* Override any gcc2 internal prototype to avoid an error. */
5491 /* We use char because int might match the return type of a gcc2
5492 builtin and then its argument prototype would still apply. */
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5504 (eval $ac_link) 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest$ac_exeext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_cv_lib_socket_connect=yes
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_cv_lib_socket_connect=no
5531 rm -f conftest.err conftest.$ac_objext \
5532 conftest$ac_exeext conftest.$ac_ext
5533 LIBS=$ac_check_lib_save_LIBS
5535 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5536 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5537 if test $ac_cv_lib_socket_connect = yes; then
5538 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5543 # Guillermo Gomez says -lposix is necessary on A/UX.
5544 echo "$as_me:$LINENO: checking for remove" >&5
5545 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5546 if test "${ac_cv_func_remove+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 cat >conftest.$ac_ext <<_ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5557 #define remove innocuous_remove
5559 /* System header to define __stub macros and hopefully few prototypes,
5560 which can conflict with char remove (); below.
5561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 <limits.h> exists even on freestanding compilers. */
5565 # include <limits.h>
5567 # include <assert.h>
5572 /* Override any gcc2 internal prototype to avoid an error. */
5577 /* We use char because int might match the return type of a gcc2
5578 builtin and then its argument prototype would still apply. */
5580 /* The GNU C library defines this for functions which it implements
5581 to always fail with ENOSYS. Some functions are actually named
5582 something starting with __ and the normal name is an alias. */
5583 #if defined (__stub_remove) || defined (__stub___remove)
5586 char (*f) () = remove;
5600 rm -f conftest.$ac_objext conftest$ac_exeext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5602 (eval $ac_link) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_func_remove=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_cv_func_remove=no
5629 rm -f conftest.err conftest.$ac_objext \
5630 conftest$ac_exeext conftest.$ac_ext
5632 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5633 echo "${ECHO_T}$ac_cv_func_remove" >&6
5635 if test $ac_cv_func_remove = no; then
5636 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5637 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5638 if test "${ac_cv_lib_posix_remove+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 ac_check_lib_save_LIBS=$LIBS
5642 LIBS="-lposix $LIBS"
5643 cat >conftest.$ac_ext <<_ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5650 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5665 rm -f conftest.$ac_objext conftest$ac_exeext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667 (eval $ac_link) 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag"
5675 || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest$ac_exeext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_lib_posix_remove=yes
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_cv_lib_posix_remove=no
5694 rm -f conftest.err conftest.$ac_objext \
5695 conftest$ac_exeext conftest.$ac_ext
5696 LIBS=$ac_check_lib_save_LIBS
5698 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5699 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5700 if test $ac_cv_lib_posix_remove = yes; then
5701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5706 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5707 echo "$as_me:$LINENO: checking for shmat" >&5
5708 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5709 if test "${ac_cv_func_shmat+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5720 #define shmat innocuous_shmat
5722 /* System header to define __stub macros and hopefully few prototypes,
5723 which can conflict with char shmat (); below.
5724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5725 <limits.h> exists even on freestanding compilers. */
5728 # include <limits.h>
5730 # include <assert.h>
5735 /* Override any gcc2 internal prototype to avoid an error. */
5740 /* We use char because int might match the return type of a gcc2
5741 builtin and then its argument prototype would still apply. */
5743 /* The GNU C library defines this for functions which it implements
5744 to always fail with ENOSYS. Some functions are actually named
5745 something starting with __ and the normal name is an alias. */
5746 #if defined (__stub_shmat) || defined (__stub___shmat)
5749 char (*f) () = shmat;
5763 rm -f conftest.$ac_objext conftest$ac_exeext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5765 (eval $ac_link) 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag"
5773 || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest$ac_exeext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_cv_func_shmat=yes
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5792 rm -f conftest.err conftest.$ac_objext \
5793 conftest$ac_exeext conftest.$ac_ext
5795 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5796 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5798 if test $ac_cv_func_shmat = no; then
5799 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5800 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5801 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 ac_check_lib_save_LIBS=$LIBS
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5813 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830 (eval $ac_link) 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag"
5838 || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest$ac_exeext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_lib_ipc_shmat=yes
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 ac_cv_lib_ipc_shmat=no
5857 rm -f conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5862 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5863 if test $ac_cv_lib_ipc_shmat = yes; then
5864 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5870 # Check for libraries that X11R6 Xt/Xaw programs need.
5871 ac_save_LDFLAGS=$LDFLAGS
5872 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5873 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5874 # check for ICE first), but we must link in the order -lSM -lICE or
5875 # we get undefined symbols. So assume we have SM if we have ICE.
5876 # These have to be linked with before -lX11, unlike the other
5877 # libraries we check for below, so use a different variable.
5878 # John Interrante, Karl Berry
5879 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5880 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5881 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 ac_check_lib_save_LIBS=$LIBS
5885 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5886 cat >conftest.$ac_ext <<_ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5893 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5899 char IceConnectionNumber ();
5903 IceConnectionNumber ();
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_lib_ICE_IceConnectionNumber=yes
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5935 ac_cv_lib_ICE_IceConnectionNumber=no
5937 rm -f conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 LIBS=$ac_check_lib_save_LIBS
5941 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5942 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5943 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5944 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5947 LDFLAGS=$ac_save_LDFLAGS
5953 if test "x$with_x" = xyes; then
5954 if test "x$have_x" = xno; then
5955 if test "x$x_config_flag" = xyes; then
5956 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5957 echo "$as_me: error: Could not configure X" >&2;}
5958 { (exit 1); exit 1; }; }
5960 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5961 echo "$as_me: WARNING: Could not configure X" >&2;}
5965 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5966 if test "x$x_libraries" != x; then
5967 ldflags_x_opt="-L$x_libraries"
5968 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5969 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5973 if test "x$x_includes" != x; then
5974 CPPFLAGS="$CPPFLAGS -I$x_includes"
5978 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5979 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5980 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 ac_check_lib_save_LIBS=$LIBS
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5992 /* Override any gcc2 internal prototype to avoid an error. */
5996 /* We use char because int might match the return type of a gcc2
5997 builtin and then its argument prototype would still apply. */
5998 char XOpenDisplay ();
6007 rm -f conftest.$ac_objext conftest$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009 (eval $ac_link) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_lib_X11_XOpenDisplay=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_cv_lib_X11_XOpenDisplay=no
6036 rm -f conftest.err conftest.$ac_objext \
6037 conftest$ac_exeext conftest.$ac_ext
6038 LIBS=$ac_check_lib_save_LIBS
6040 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6041 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6042 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6043 cat >>confdefs.h <<_ACEOF
6044 #define HAVE_LIBX11 1
6051 echo "$as_me:$LINENO: checking X11 version 6" >&5
6052 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6053 if test "${timidity_cv_x11_version_6+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <X11/Xlib.h>
6067 #if XlibSpecificationRelease < 6
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 timidity_cv_x11_version_6=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 timidity_cv_x11_version_6=no
6104 rm -f conftest.err conftest.$ac_objext \
6105 conftest$ac_exeext conftest.$ac_ext
6108 if test "$timidity_cv_x11_version_6" = "yes"; then
6109 echo "$as_me:$LINENO: result: 6 or newer" >&5
6110 echo "${ECHO_T}6 or newer" >&6
6112 echo "$as_me:$LINENO: result: before 6" >&5
6113 echo "${ECHO_T}before 6" >&6
6117 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6118 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6119 if test "${ac_cv_lib_Xext_XShapeCombineMask+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 XShapeCombineMask ();
6141 XShapeCombineMask ();
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_Xext_XShapeCombineMask=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_lib_Xext_XShapeCombineMask=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_Xext_XShapeCombineMask" >&5
6180 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6181 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6182 have_xext=yes; LIBS="-lXext $LIBS"
6188 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6189 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6190 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 ac_check_lib_save_LIBS=$LIBS
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6202 /* Override any gcc2 internal prototype to avoid an error. */
6206 /* We use char because int might match the return type of a gcc2
6207 builtin and then its argument prototype would still apply. */
6208 char IceConnectionNumber ();
6212 IceConnectionNumber ();
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219 (eval $ac_link) 2>conftest.er1
6221 grep -v '^ *+' conftest.er1 >conftest.err
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -z "$ac_c_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest$ac_exeext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 ac_cv_lib_ICE_IceConnectionNumber=yes
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6244 ac_cv_lib_ICE_IceConnectionNumber=no
6246 rm -f conftest.err conftest.$ac_objext \
6247 conftest$ac_exeext conftest.$ac_ext
6248 LIBS=$ac_check_lib_save_LIBS
6250 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6251 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6252 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6253 cat >>confdefs.h <<_ACEOF
6254 #define HAVE_LIBICE 1
6261 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6262 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6263 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_check_lib_save_LIBS=$LIBS
6268 cat >conftest.$ac_ext <<_ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6275 /* Override any gcc2 internal prototype to avoid an error. */
6279 /* We use char because int might match the return type of a gcc2
6280 builtin and then its argument prototype would still apply. */
6281 char SmcOpenConnection ();
6285 SmcOpenConnection ();
6290 rm -f conftest.$ac_objext conftest$ac_exeext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292 (eval $ac_link) 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_c_werror_flag"
6300 || test ! -s conftest.err'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; } &&
6306 { ac_try='test -s conftest$ac_exeext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_cv_lib_SM_SmcOpenConnection=yes
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_cv_lib_SM_SmcOpenConnection=no
6319 rm -f conftest.err conftest.$ac_objext \
6320 conftest$ac_exeext conftest.$ac_ext
6321 LIBS=$ac_check_lib_save_LIBS
6323 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6324 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6325 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6326 have_xprelibs=yes; LIBS="-lSM $LIBS"
6331 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6332 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6333 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 ac_check_lib_save_LIBS=$LIBS
6338 cat >conftest.$ac_ext <<_ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6345 /* Override any gcc2 internal prototype to avoid an error. */
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6351 char XtVaAppInitialize ();
6355 XtVaAppInitialize ();
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362 (eval $ac_link) 2>conftest.er1
6364 grep -v '^ *+' conftest.er1 >conftest.err
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -z "$ac_c_werror_flag"
6370 || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest$ac_exeext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_cv_lib_Xt_XtVaAppInitialize=yes
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6387 ac_cv_lib_Xt_XtVaAppInitialize=no
6389 rm -f conftest.err conftest.$ac_objext \
6390 conftest$ac_exeext conftest.$ac_ext
6391 LIBS=$ac_check_lib_save_LIBS
6393 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6394 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6395 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6396 have_xt=yes; LIBS="-lXt $LIBS"
6401 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6402 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6403 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 ac_check_lib_save_LIBS=$LIBS
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6415 /* Override any gcc2 internal prototype to avoid an error. */
6419 /* We use char because int might match the return type of a gcc2
6420 builtin and then its argument prototype would still apply. */
6421 char XmuInternAtom ();
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6432 (eval $ac_link) 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -z "$ac_c_werror_flag"
6440 || test ! -s conftest.err'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try='test -s conftest$ac_exeext'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_cv_lib_Xmu_XmuInternAtom=yes
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 ac_cv_lib_Xmu_XmuInternAtom=no
6459 rm -f conftest.err conftest.$ac_objext \
6460 conftest$ac_exeext conftest.$ac_ext
6461 LIBS=$ac_check_lib_save_LIBS
6463 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6464 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6465 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6470 for ac_func in XmuRegisterExternalAgent
6472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6473 echo "$as_me:$LINENO: checking for $ac_func" >&5
6474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6475 if eval "test \"\${$as_ac_var+set}\" = set"; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 cat >conftest.$ac_ext <<_ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6486 #define $ac_func innocuous_$ac_func
6488 /* System header to define __stub macros and hopefully few prototypes,
6489 which can conflict with char $ac_func (); below.
6490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6491 <limits.h> exists even on freestanding compilers. */
6494 # include <limits.h>
6496 # include <assert.h>
6501 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6509 /* The GNU C library defines this for functions which it implements
6510 to always fail with ENOSYS. Some functions are actually named
6511 something starting with __ and the normal name is an alias. */
6512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6515 char (*f) () = $ac_func;
6524 return f != $ac_func;
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 eval "$as_ac_var=yes"
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 eval "$as_ac_var=no"
6558 rm -f conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6563 if test `eval echo '${'$as_ac_var'}'` = yes; then
6564 cat >>confdefs.h <<_ACEOF
6565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6571 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6572 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6573 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 ac_check_lib_save_LIBS=$LIBS
6577 LIBS="-lXaw3d $LIBS"
6578 cat >conftest.$ac_ext <<_ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6585 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6591 char XawInitializeWidgetSet ();
6595 XawInitializeWidgetSet ();
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602 (eval $ac_link) 2>conftest.er1
6604 grep -v '^ *+' conftest.er1 >conftest.err
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_c_werror_flag"
6610 || test ! -s conftest.err'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; } &&
6616 { ac_try='test -s conftest$ac_exeext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6629 rm -f conftest.err conftest.$ac_objext \
6630 conftest$ac_exeext conftest.$ac_ext
6631 LIBS=$ac_check_lib_save_LIBS
6633 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6634 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6635 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6638 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6639 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6640 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 ac_check_lib_save_LIBS=$LIBS
6645 cat >conftest.$ac_ext <<_ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h. */
6652 /* Override any gcc2 internal prototype to avoid an error. */
6656 /* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6658 char XawInitializeWidgetSet ();
6662 XawInitializeWidgetSet ();
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>conftest.er1
6671 grep -v '^ *+' conftest.er1 >conftest.err
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest$ac_exeext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6696 rm -f conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
6698 LIBS=$ac_check_lib_save_LIBS
6700 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6701 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6702 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6710 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6711 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6712 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_check_lib_save_LIBS=$LIBS
6717 cat >conftest.$ac_ext <<_ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6724 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6730 char XmCreateForm ();
6739 rm -f conftest.$ac_objext conftest$ac_exeext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741 (eval $ac_link) 2>conftest.er1
6743 grep -v '^ *+' conftest.er1 >conftest.err
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } &&
6748 { ac_try='test -z "$ac_c_werror_flag"
6749 || test ! -s conftest.err'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest$ac_exeext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6761 ac_cv_lib_Xm_XmCreateForm=yes
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ac_cv_lib_Xm_XmCreateForm=no
6768 rm -f conftest.err conftest.$ac_objext \
6769 conftest$ac_exeext conftest.$ac_ext
6770 LIBS=$ac_check_lib_save_LIBS
6772 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6773 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6774 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6781 for ac_func in XShmCreatePixmap
6783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6784 echo "$as_me:$LINENO: checking for $ac_func" >&5
6785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6786 if eval "test \"\${$as_ac_var+set}\" = set"; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 cat >conftest.$ac_ext <<_ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6797 #define $ac_func innocuous_$ac_func
6799 /* System header to define __stub macros and hopefully few prototypes,
6800 which can conflict with char $ac_func (); below.
6801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6802 <limits.h> exists even on freestanding compilers. */
6805 # include <limits.h>
6807 # include <assert.h>
6812 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6820 /* The GNU C library defines this for functions which it implements
6821 to always fail with ENOSYS. Some functions are actually named
6822 something starting with __ and the normal name is an alias. */
6823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6826 char (*f) () = $ac_func;
6835 return f != $ac_func;
6840 rm -f conftest.$ac_objext conftest$ac_exeext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6842 (eval $ac_link) 2>conftest.er1
6844 grep -v '^ *+' conftest.er1 >conftest.err
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -z "$ac_c_werror_flag"
6850 || test ! -s conftest.err'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; } &&
6856 { ac_try='test -s conftest$ac_exeext'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 eval "$as_ac_var=yes"
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 eval "$as_ac_var=no"
6869 rm -f conftest.err conftest.$ac_objext \
6870 conftest$ac_exeext conftest.$ac_ext
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6874 if test `eval echo '${'$as_ac_var'}'` = yes; then
6875 cat >>confdefs.h <<_ACEOF
6876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6885 # Checks for header files.
6886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6888 if test "${ac_cv_header_stdc+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try='test -z "$ac_c_werror_flag"
6920 || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try='test -s conftest.$ac_objext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 ac_cv_header_stdc=yes
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_cv_header_stdc=no
6939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6941 if test $ac_cv_header_stdc = yes; then
6942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953 $EGREP "memchr" >/dev/null 2>&1; then
6956 ac_cv_header_stdc=no
6962 if test $ac_cv_header_stdc = yes; then
6963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6974 $EGREP "free" >/dev/null 2>&1; then
6977 ac_cv_header_stdc=no
6983 if test $ac_cv_header_stdc = yes; then
6984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6985 if test "$cross_compiling" = yes; then
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6995 #if ((' ' & 0x0FF) == 0x020)
6996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6999 # define ISLOWER(c) \
7000 (('a' <= (c) && (c) <= 'i') \
7001 || ('j' <= (c) && (c) <= 'r') \
7002 || ('s' <= (c) && (c) <= 'z'))
7003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7011 for (i = 0; i < 256; i++)
7012 if (XOR (islower (i), ISLOWER (i))
7013 || toupper (i) != TOUPPER (i))
7018 rm -f conftest$ac_exeext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7031 echo "$as_me: program exited with status $ac_status" >&5
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7036 ac_cv_header_stdc=no
7038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7042 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7043 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7044 if test $ac_cv_header_stdc = yes; then
7046 cat >>confdefs.h <<\_ACEOF
7047 #define STDC_HEADERS 1
7053 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7055 if test "${ac_cv_header_sys_wait_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. */
7064 #include <sys/types.h>
7065 #include <sys/wait.h>
7067 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7083 rm -f conftest.$ac_objext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7085 (eval $ac_compile) 2>conftest.er1
7087 grep -v '^ *+' conftest.er1 >conftest.err
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } &&
7092 { ac_try='test -z "$ac_c_werror_flag"
7093 || test ! -s conftest.err'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; } &&
7099 { ac_try='test -s conftest.$ac_objext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 ac_cv_header_sys_wait_h=yes
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 ac_cv_header_sys_wait_h=no
7112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7115 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7116 if test $ac_cv_header_sys_wait_h = yes; then
7118 cat >>confdefs.h <<\_ACEOF
7119 #define HAVE_SYS_WAIT_H 1
7124 if test "x$WATCOM_C" != xyes ; then
7125 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7126 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7127 if test "${ac_cv_header_time+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 cat >conftest.$ac_ext <<_ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 #include <sys/types.h>
7137 #include <sys/time.h>
7143 if ((struct tm *) 0)
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>conftest.er1
7153 grep -v '^ *+' conftest.er1 >conftest.err
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag"
7159 || test ! -s conftest.err'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; } &&
7165 { ac_try='test -s conftest.$ac_objext'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7171 ac_cv_header_time=yes
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 ac_cv_header_time=no
7178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7180 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7181 echo "${ECHO_T}$ac_cv_header_time" >&6
7182 if test $ac_cv_header_time = yes; then
7184 cat >>confdefs.h <<\_ACEOF
7185 #define TIME_WITH_SYS_TIME 1
7197 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7198 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7199 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7200 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 cat >conftest.$ac_ext <<_ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 #include <sys/types.h>
7222 rm -f conftest.$ac_objext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224 (eval $ac_compile) 2>conftest.er1
7226 grep -v '^ *+' conftest.er1 >conftest.err
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } &&
7231 { ac_try='test -z "$ac_c_werror_flag"
7232 || test ! -s conftest.err'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } &&
7238 { ac_try='test -s conftest.$ac_objext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 eval "$as_ac_Header=yes"
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 eval "$as_ac_Header=no"
7251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7256 cat >>confdefs.h <<_ACEOF
7257 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7260 ac_header_dirent=$ac_hdr; break
7264 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7265 if test $ac_header_dirent = dirent.h; then
7266 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7267 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7268 if test "${ac_cv_search_opendir+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_func_search_save_LIBS=$LIBS
7272 ac_cv_search_opendir=no
7273 cat >conftest.$ac_ext <<_ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7280 /* Override any gcc2 internal prototype to avoid an error. */
7284 /* We use char because int might match the return type of a gcc2
7285 builtin and then its argument prototype would still apply. */
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297 (eval $ac_link) 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest$ac_exeext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 ac_cv_search_opendir="none required"
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7323 rm -f conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext conftest.$ac_ext
7325 if test "$ac_cv_search_opendir" = no; then
7326 for ac_lib in dir; do
7327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7328 cat >conftest.$ac_ext <<_ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7335 /* Override any gcc2 internal prototype to avoid an error. */
7339 /* We use char because int might match the return type of a gcc2
7340 builtin and then its argument prototype would still apply. */
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352 (eval $ac_link) 2>conftest.er1
7354 grep -v '^ *+' conftest.er1 >conftest.err
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -z "$ac_c_werror_flag"
7360 || test ! -s conftest.err'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try='test -s conftest$ac_exeext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7372 ac_cv_search_opendir="-l$ac_lib"
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7379 rm -f conftest.err conftest.$ac_objext \
7380 conftest$ac_exeext conftest.$ac_ext
7383 LIBS=$ac_func_search_save_LIBS
7385 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7386 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7387 if test "$ac_cv_search_opendir" != no; then
7388 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7393 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7394 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7395 if test "${ac_cv_search_opendir+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_func_search_save_LIBS=$LIBS
7399 ac_cv_search_opendir=no
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7407 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424 (eval $ac_link) 2>conftest.er1
7426 grep -v '^ *+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try='test -s conftest$ac_exeext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_cv_search_opendir="none required"
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7450 rm -f conftest.err conftest.$ac_objext \
7451 conftest$ac_exeext conftest.$ac_ext
7452 if test "$ac_cv_search_opendir" = no; then
7454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7455 cat >conftest.$ac_ext <<_ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7462 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>conftest.er1
7481 grep -v '^ *+' conftest.er1 >conftest.err
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -z "$ac_c_werror_flag"
7487 || test ! -s conftest.err'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; } &&
7493 { ac_try='test -s conftest$ac_exeext'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; }; then
7499 ac_cv_search_opendir="-l$ac_lib"
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7506 rm -f conftest.err conftest.$ac_objext \
7507 conftest$ac_exeext conftest.$ac_ext
7510 LIBS=$ac_func_search_save_LIBS
7512 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7513 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7514 if test "$ac_cv_search_opendir" != no; then
7515 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7532 inttypes.h stdint.h unistd.h
7534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7535 echo "$as_me:$LINENO: checking for $ac_header" >&5
7536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 cat >conftest.$ac_ext <<_ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7546 $ac_includes_default
7548 #include <$ac_header>
7550 rm -f conftest.$ac_objext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7552 (eval $ac_compile) 2>conftest.er1
7554 grep -v '^ *+' conftest.er1 >conftest.err
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -z "$ac_c_werror_flag"
7560 || test ! -s conftest.err'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; } &&
7566 { ac_try='test -s conftest.$ac_objext'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; }; then
7572 eval "$as_ac_Header=yes"
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7577 eval "$as_ac_Header=no"
7579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7584 cat >>confdefs.h <<_ACEOF
7585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7673 echo "$as_me:$LINENO: checking for $ac_header" >&5
7674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7681 # Is the header compilable?
7682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7684 cat >conftest.$ac_ext <<_ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 $ac_includes_default
7691 #include <$ac_header>
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7697 grep -v '^ *+' conftest.er1 >conftest.err
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_header_compiler=yes
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 ac_header_compiler=no
7722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7724 echo "${ECHO_T}$ac_header_compiler" >&6
7726 # Is the header present?
7727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 #include <$ac_header>
7737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7740 grep -v '^ *+' conftest.er1 >conftest.err
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } >/dev/null; then
7745 if test -s conftest.err; then
7746 ac_cpp_err=$ac_c_preproc_warn_flag
7747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7754 if test -z "$ac_cpp_err"; then
7755 ac_header_preproc=yes
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_header_preproc=no
7762 rm -f conftest.err conftest.$ac_ext
7763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7764 echo "${ECHO_T}$ac_header_preproc" >&6
7766 # So? What about this header?
7767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7773 ac_header_preproc=yes
7776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7790 ## ------------------------------- ##
7791 ## Report this to root@mput.dip.jp ##
7792 ## ------------------------------- ##
7795 sed "s/^/$as_me: WARNING: /" >&2
7798 echo "$as_me:$LINENO: checking for $ac_header" >&5
7799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 eval "$as_ac_Header=\$ac_header_preproc"
7805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7810 cat >>confdefs.h <<_ACEOF
7811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7821 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7824 echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 cat >conftest.$ac_ext <<_ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7836 #ifdef HAVE_X11_XLIB_H
7837 #include <X11/Xlib.h>
7841 #include <$ac_header>
7843 rm -f conftest.$ac_objext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7845 (eval $ac_compile) 2>conftest.er1
7847 grep -v '^ *+' conftest.er1 >conftest.err
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag"
7853 || test ! -s conftest.err'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; } &&
7859 { ac_try='test -s conftest.$ac_objext'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865 eval "$as_ac_Header=yes"
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 eval "$as_ac_Header=no"
7872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7877 cat >>confdefs.h <<_ACEOF
7878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7885 if test "${ac_cv_header_string_h+set}" = set; then
7886 echo "$as_me:$LINENO: checking for string.h" >&5
7887 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7888 if test "${ac_cv_header_string_h+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7892 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7894 # Is the header compilable?
7895 echo "$as_me:$LINENO: checking string.h usability" >&5
7896 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 $ac_includes_default
7906 rm -f conftest.$ac_objext
7907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7908 (eval $ac_compile) 2>conftest.er1
7910 grep -v '^ *+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try='test -z "$ac_c_werror_flag"
7916 || test ! -s conftest.err'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; } &&
7922 { ac_try='test -s conftest.$ac_objext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_header_compiler=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 ac_header_compiler=no
7935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7937 echo "${ECHO_T}$ac_header_compiler" >&6
7939 # Is the header present?
7940 echo "$as_me:$LINENO: checking string.h presence" >&5
7941 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7953 grep -v '^ *+' conftest.er1 >conftest.err
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } >/dev/null; then
7958 if test -s conftest.err; then
7959 ac_cpp_err=$ac_c_preproc_warn_flag
7960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7967 if test -z "$ac_cpp_err"; then
7968 ac_header_preproc=yes
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_header_preproc=no
7975 rm -f conftest.err conftest.$ac_ext
7976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7977 echo "${ECHO_T}$ac_header_preproc" >&6
7979 # So? What about this header?
7980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7982 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7983 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7984 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7985 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7986 ac_header_preproc=yes
7989 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7990 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7992 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7994 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7996 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7998 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8000 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8003 ## ------------------------------- ##
8004 ## Report this to root@mput.dip.jp ##
8005 ## ------------------------------- ##
8008 sed "s/^/$as_me: WARNING: /" >&2
8011 echo "$as_me:$LINENO: checking for string.h" >&5
8012 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8013 if test "${ac_cv_header_string_h+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_cv_header_string_h=$ac_header_preproc
8018 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8019 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8022 if test $ac_cv_header_string_h = yes; then
8026 cat >>confdefs.h <<\_ACEOF
8027 #define NO_STRING_H 1
8034 # Checks for typedefs, structures, and compiler characteristics.
8035 if test "x$WATCOM_C" != xyes ; then
8036 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8037 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8038 if test "${ac_cv_c_bigendian+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 # See if sys/param.h defines the BYTE_ORDER macro.
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <sys/types.h>
8049 #include <sys/param.h>
8054 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8062 rm -f conftest.$ac_objext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064 (eval $ac_compile) 2>conftest.er1
8066 grep -v '^ *+' conftest.er1 >conftest.err
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -z "$ac_c_werror_flag"
8072 || test ! -s conftest.err'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; } &&
8078 { ac_try='test -s conftest.$ac_objext'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8084 # It does; now see whether it defined to BIG_ENDIAN or not.
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <sys/types.h>
8092 #include <sys/param.h>
8097 #if BYTE_ORDER != BIG_ENDIAN
8105 rm -f conftest.$ac_objext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8107 (eval $ac_compile) 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest.$ac_objext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_cv_c_bigendian=yes
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 ac_cv_c_bigendian=no
8134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 # It does not; compile a test program.
8140 if test "$cross_compiling" = yes; then
8141 # try to guess the endianness by grepping values into an object file
8142 ac_cv_c_bigendian=unknown
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8150 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8151 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8152 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8153 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8154 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8158 _ascii (); _ebcdic ();
8163 rm -f conftest.$ac_objext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165 (eval $ac_compile) 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -z "$ac_c_werror_flag"
8173 || test ! -s conftest.err'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest.$ac_objext'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8186 ac_cv_c_bigendian=yes
8188 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8189 if test "$ac_cv_c_bigendian" = unknown; then
8190 ac_cv_c_bigendian=no
8192 # finding both strings is unlikely to happen, but who knows?
8193 ac_cv_c_bigendian=unknown
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8212 /* Are we little or big endian? From Harbison&Steele. */
8216 char c[sizeof (long)];
8219 exit (u.c[sizeof (long) - 1] == 1);
8222 rm -f conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_c_bigendian=no
8235 echo "$as_me: program exited with status $ac_status" >&5
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8240 ac_cv_c_bigendian=yes
8242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8247 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8248 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8249 case $ac_cv_c_bigendian in
8252 cat >>confdefs.h <<\_ACEOF
8253 #define WORDS_BIGENDIAN 1
8259 { { echo "$as_me:$LINENO: error: unknown endianness
8260 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8261 echo "$as_me: error: unknown endianness
8262 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8263 { (exit 1); exit 1; }; } ;;
8268 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8269 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8270 if test "${ac_cv_c_char_unsigned+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 $ac_includes_default
8283 static int test_array [1 - 2 * !(((char) -1) < 0)];
8290 rm -f conftest.$ac_objext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292 (eval $ac_compile) 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag"
8300 || test ! -s conftest.err'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; } &&
8306 { ac_try='test -s conftest.$ac_objext'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8312 ac_cv_c_char_unsigned=no
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8317 ac_cv_c_char_unsigned=yes
8319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8321 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8322 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8323 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8324 cat >>confdefs.h <<\_ACEOF
8325 #define __CHAR_UNSIGNED__ 1
8330 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8331 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8332 if test "${ac_cv_c_const+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8345 /* FIXME: Include the comments suggested by Paul. */
8347 /* Ultrix mips cc rejects this. */
8348 typedef int charset[2];
8350 /* SunOS 4.1.1 cc rejects this. */
8351 char const *const *ccp;
8353 /* NEC SVR4.0.2 mips cc rejects this. */
8354 struct point {int x, y;};
8355 static struct point const zero = {0,0};
8356 /* AIX XL C 1.02.0.0 rejects this.
8357 It does not let you subtract one const X* pointer from another in
8358 an arm of an if-expression whose if-part is not a constant
8360 const char *g = "string";
8361 ccp = &g + (g ? g-g : 0);
8362 /* HPUX 7.0 cc rejects these. */
8365 ccp = (char const *const *) p;
8366 { /* SCO 3.2v4 cc rejects this. */
8368 char const *s = 0 ? (char *) 0 : (char const *) 0;
8372 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8374 const int *foo = &x[0];
8377 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8378 typedef const int *iptr;
8382 { /* AIX XL C 1.02.0.0 rejects this saying
8383 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8384 struct s { int j; const int *ap[3]; };
8385 struct s *b; b->j = 5;
8387 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>conftest.er1
8400 grep -v '^ *+' conftest.er1 >conftest.err
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag"
8406 || test ! -s conftest.err'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8428 echo "${ECHO_T}$ac_cv_c_const" >&6
8429 if test $ac_cv_c_const = no; then
8431 cat >>confdefs.h <<\_ACEOF
8437 echo "$as_me:$LINENO: checking for inline" >&5
8438 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8439 if test "${ac_cv_c_inline+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 for ac_kw in inline __inline__ __inline; do
8444 cat >conftest.$ac_ext <<_ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8452 static $ac_kw foo_t static_foo () {return 0; }
8453 $ac_kw foo_t foo () {return 0; }
8457 rm -f conftest.$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459 (eval $ac_compile) 2>conftest.er1
8461 grep -v '^ *+' conftest.er1 >conftest.err
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -z "$ac_c_werror_flag"
8467 || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_cv_c_inline=$ac_kw; break
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8489 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8490 echo "${ECHO_T}$ac_cv_c_inline" >&6
8493 case $ac_cv_c_inline in
8496 case $ac_cv_c_inline in
8498 *) ac_val=$ac_cv_c_inline;;
8500 cat >>confdefs.h <<_ACEOF
8502 #define inline $ac_val
8508 echo "$as_me:$LINENO: checking for working volatile" >&5
8509 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8510 if test "${ac_cv_c_volatile+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 cat >conftest.$ac_ext <<_ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_cv_c_volatile=yes
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8561 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8562 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8563 if test $ac_cv_c_volatile = no; then
8565 cat >>confdefs.h <<\_ACEOF
8571 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8572 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8573 if test "${ac_cv_c_stringize+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8584 char *s = x(teststring);
8586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8587 $EGREP "#teststring" >/dev/null 2>&1; then
8588 ac_cv_c_stringize=no
8590 ac_cv_c_stringize=yes
8595 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8596 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8597 if test $ac_cv_c_stringize = yes; then
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_STRINGIZE 1
8605 echo "$as_me:$LINENO: checking for function prototypes" >&5
8606 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8607 if test "$ac_cv_prog_cc_stdc" != no; then
8608 echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6
8611 cat >>confdefs.h <<\_ACEOF
8612 #define PROTOTYPES 1
8616 cat >>confdefs.h <<\_ACEOF
8617 #define __PROTOTYPES 1
8621 echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6
8625 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8626 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8627 if test "${ac_cv_struct_tm+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 cat >conftest.$ac_ext <<_ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 #include <sys/types.h>
8642 struct tm *tp; tp->tm_sec;
8647 rm -f conftest.$ac_objext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8649 (eval $ac_compile) 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest.$ac_objext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_struct_tm=time.h
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_struct_tm=sys/time.h
8676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8678 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8679 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8680 if test $ac_cv_struct_tm = sys/time.h; then
8682 cat >>confdefs.h <<\_ACEOF
8683 #define TM_IN_SYS_TIME 1
8688 echo "$as_me:$LINENO: checking for size_t" >&5
8689 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8690 if test "${ac_cv_type_size_t+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 cat >conftest.$ac_ext <<_ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 $ac_includes_default
8705 if (sizeof (size_t))
8711 rm -f conftest.$ac_objext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713 (eval $ac_compile) 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_cv_type_size_t=yes
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_type_size_t=no
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8743 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8744 if test $ac_cv_type_size_t = yes; then
8748 cat >>confdefs.h <<_ACEOF
8749 #define size_t unsigned
8754 echo "$as_me:$LINENO: checking for off_t" >&5
8755 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8756 if test "${ac_cv_type_off_t+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 cat >conftest.$ac_ext <<_ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 $ac_includes_default
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779 (eval $ac_compile) 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } &&
8786 { ac_try='test -z "$ac_c_werror_flag"
8787 || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest.$ac_objext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_cv_type_off_t=yes
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8809 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8810 if test $ac_cv_type_off_t = yes; then
8814 cat >>confdefs.h <<_ACEOF
8820 echo "$as_me:$LINENO: checking for pid_t" >&5
8821 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8822 if test "${ac_cv_type_pid_t+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 $ac_includes_default
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest.$ac_objext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_type_pid_t=yes
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8874 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8875 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8876 if test $ac_cv_type_pid_t = yes; then
8880 cat >>confdefs.h <<_ACEOF
8887 echo "$as_me:$LINENO: checking volatile declaration" >&5
8888 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8889 if test "${timidity_cv_type_volatile+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>conftest.er1
8911 grep -v '^ *+' conftest.er1 >conftest.err
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -z "$ac_c_werror_flag"
8917 || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 timidity_cv_type_volatile=yes
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 timidity_cv_type_volatile=no
8936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8939 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8940 if test $timidity_cv_type_volatile = no; then
8942 cat >>confdefs.h <<\_ACEOF
8943 #define NO_VOLATILE 1
8948 echo "$as_me:$LINENO: checking union semun declaration" >&5
8949 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8950 if test "${timidity_cv_type_union_semun+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 cat >conftest.$ac_ext <<_ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8960 #include <sys/types.h>
8961 #include <sys/ipc.h>
8962 #include <sys/sem.h>
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8976 grep -v '^ *+' conftest.er1 >conftest.err
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 timidity_cv_type_union_semun=yes
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 timidity_cv_type_union_semun=no
9001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9004 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9005 if test $timidity_cv_type_union_semun = yes; then
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_UNION_SEMUN 1
9013 if test "x$MSYS" = xyes ; then
9017 echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9018 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9019 if test -z "$ac_cv_prog_CC"; then
9022 our_gcc="$ac_cv_prog_CC"
9024 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9026 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9027 msnative_struct='-fnative-struct'
9031 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9032 msnative_struct='-mms-bitfields'
9036 if test x"$msnative_struct" = x ; then
9037 echo "$as_me:$LINENO: result: no way" >&5
9038 echo "${ECHO_T}no way" >&6
9039 { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9040 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9042 CFLAGS="$CFLAGS $msnative_struct"
9043 CPPFLAGS="$CPPFLAGS $msnative_struct"
9044 echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9045 echo "${ECHO_T}${msnative_struct}" >&6
9052 if test "x$MSYS" = xyes ; then
9053 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9054 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9055 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9065 #include <windows.h>
9066 #include <mmsystem.h>
9071 return WOM_OPEN != 0x3BB
9076 rm -f conftest.$ac_objext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9078 (eval $ac_compile) 2>conftest.er1
9080 grep -v '^ *+' conftest.er1 >conftest.err
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -z "$ac_c_werror_flag"
9086 || test ! -s conftest.err'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; } &&
9092 { ac_try='test -s conftest.$ac_objext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 timidity_cv_header_new_mmsystem=yes
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 timidity_cv_header_new_mmsystem=no
9105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9107 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9108 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9109 if test $timidity_cv_header_new_mmsystem = yes; then
9111 cat >>confdefs.h <<\_ACEOF
9112 #define HAVE_NEW_MMSYSTEM 1
9118 # Checks for library functions.
9119 echo "$as_me:$LINENO: checking for error_at_line" >&5
9120 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9121 if test "${ac_cv_lib_error_at_line+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 cat >conftest.$ac_ext <<_ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 $ac_includes_default
9134 error_at_line (0, 0, "", 0, "");
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>conftest.er1
9143 grep -v '^ *+' conftest.er1 >conftest.err
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag"
9149 || test ! -s conftest.err'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } &&
9155 { ac_try='test -s conftest$ac_exeext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 ac_cv_lib_error_at_line=yes
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 ac_cv_lib_error_at_line=no
9168 rm -f conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
9171 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9172 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9173 if test $ac_cv_lib_error_at_line = no; then
9175 "error.$ac_objext" | \
9176 *" error.$ac_objext" | \
9177 "error.$ac_objext "* | \
9178 *" error.$ac_objext "* ) ;;
9179 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9186 for ac_header in unistd.h vfork.h
9188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9190 echo "$as_me:$LINENO: checking for $ac_header" >&5
9191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9198 # Is the header compilable?
9199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9201 cat >conftest.$ac_ext <<_ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 $ac_includes_default
9208 #include <$ac_header>
9210 rm -f conftest.$ac_objext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212 (eval $ac_compile) 2>conftest.er1
9214 grep -v '^ *+' conftest.er1 >conftest.err
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -z "$ac_c_werror_flag"
9220 || test ! -s conftest.err'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_header_compiler=yes
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ac_header_compiler=no
9239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9241 echo "${ECHO_T}$ac_header_compiler" >&6
9243 # Is the header present?
9244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9246 cat >conftest.$ac_ext <<_ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 #include <$ac_header>
9254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9257 grep -v '^ *+' conftest.er1 >conftest.err
9259 cat conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } >/dev/null; then
9262 if test -s conftest.err; then
9263 ac_cpp_err=$ac_c_preproc_warn_flag
9264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9271 if test -z "$ac_cpp_err"; then
9272 ac_header_preproc=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_header_preproc=no
9279 rm -f conftest.err conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9281 echo "${ECHO_T}$ac_header_preproc" >&6
9283 # So? What about this header?
9284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9290 ac_header_preproc=yes
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9307 ## ------------------------------- ##
9308 ## Report this to root@mput.dip.jp ##
9309 ## ------------------------------- ##
9312 sed "s/^/$as_me: WARNING: /" >&2
9315 echo "$as_me:$LINENO: checking for $ac_header" >&5
9316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 eval "$as_ac_Header=\$ac_header_preproc"
9322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9327 cat >>confdefs.h <<_ACEOF
9328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9337 for ac_func in fork vfork
9339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9340 echo "$as_me:$LINENO: checking for $ac_func" >&5
9341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9342 if eval "test \"\${$as_ac_var+set}\" = set"; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9353 #define $ac_func innocuous_$ac_func
9355 /* System header to define __stub macros and hopefully few prototypes,
9356 which can conflict with char $ac_func (); below.
9357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9358 <limits.h> exists even on freestanding compilers. */
9361 # include <limits.h>
9363 # include <assert.h>
9368 /* Override any gcc2 internal prototype to avoid an error. */
9373 /* We use char because int might match the return type of a gcc2
9374 builtin and then its argument prototype would still apply. */
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9382 char (*f) () = $ac_func;
9391 return f != $ac_func;
9396 rm -f conftest.$ac_objext conftest$ac_exeext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398 (eval $ac_link) 2>conftest.er1
9400 grep -v '^ *+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 eval "$as_ac_var=yes"
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9423 eval "$as_ac_var=no"
9425 rm -f conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9430 if test `eval echo '${'$as_ac_var'}'` = yes; then
9431 cat >>confdefs.h <<_ACEOF
9432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9438 if test "x$ac_cv_func_fork" = xyes; then
9439 echo "$as_me:$LINENO: checking for working fork" >&5
9440 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9441 if test "${ac_cv_func_fork_works+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 if test "$cross_compiling" = yes; then
9445 ac_cv_func_fork_works=cross
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* By Ruediger Kuhlmann. */
9449 #include <sys/types.h>
9451 # include <unistd.h>
9453 /* Some systems only have a dummy stub for fork() */
9461 rm -f conftest$ac_exeext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463 (eval $ac_link) 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
9472 ac_cv_func_fork_works=yes
9474 echo "$as_me: program exited with status $ac_status" >&5
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9479 ac_cv_func_fork_works=no
9481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9484 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9485 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9488 ac_cv_func_fork_works=$ac_cv_func_fork
9490 if test "x$ac_cv_func_fork_works" = xcross; then
9492 *-*-amigaos* | *-*-msdosdjgpp*)
9493 # Override, as these systems have only a dummy fork() stub
9494 ac_cv_func_fork_works=no
9497 ac_cv_func_fork_works=yes
9500 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9501 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9503 ac_cv_func_vfork_works=$ac_cv_func_vfork
9504 if test "x$ac_cv_func_vfork" = xyes; then
9505 echo "$as_me:$LINENO: checking for working vfork" >&5
9506 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9507 if test "${ac_cv_func_vfork_works+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 if test "$cross_compiling" = yes; then
9511 ac_cv_func_vfork_works=cross
9513 cat >conftest.$ac_ext <<_ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 /* Thanks to Paul Eggert for this test. */
9522 #include <sys/types.h>
9523 #include <sys/stat.h>
9524 #include <sys/wait.h>
9526 # include <unistd.h>
9531 /* On some sparc systems, changes by the child to local and incoming
9532 argument registers are propagated back to the parent. The compiler
9533 is told about this with #include <vfork.h>, but some compilers
9534 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9535 static variable whose address is put into a register that is
9536 clobbered by the vfork. */
9539 sparc_address_test (int arg)
9541 sparc_address_test (arg) int arg;
9562 pid_t parent = getpid ();
9565 sparc_address_test (0);
9570 /* Here is another test for sparc vfork register problems. This
9571 test uses lots of local variables, at least as many local
9572 variables as main has allocated so far including compiler
9573 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9574 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9575 reuse the register of parent for one of the local variables,
9576 since it will think that parent can't possibly be used any more
9577 in this routine. Assigning to the local variable will thus
9578 munge parent in the parent process. */
9580 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9581 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9582 /* Convince the compiler that p..p7 are live; otherwise, it might
9583 use the same hardware register for all 8 local variables. */
9584 if (p != p1 || p != p2 || p != p3 || p != p4
9585 || p != p5 || p != p6 || p != p7)
9588 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9589 from child file descriptors. If the child closes a descriptor
9590 before it execs or exits, this munges the parent's descriptor
9591 as well. Test for this by closing stdout in the child. */
9592 _exit(close(fileno(stdout)) != 0);
9597 while (wait(&status) != child)
9600 /* Was there some problem with vforking? */
9603 /* Did the child fail? (This shouldn't happen.) */
9606 /* Did the vfork/compiler bug occur? */
9607 || parent != getpid()
9609 /* Did the file descriptor bug occur? */
9610 || fstat(fileno(stdout), &st) != 0
9615 rm -f conftest$ac_exeext
9616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617 (eval $ac_link) 2>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_cv_func_vfork_works=yes
9628 echo "$as_me: program exited with status $ac_status" >&5
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9633 ac_cv_func_vfork_works=no
9635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9638 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9639 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9642 if test "x$ac_cv_func_fork_works" = xcross; then
9643 ac_cv_func_vfork_works=$ac_cv_func_vfork
9644 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9645 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9648 if test "x$ac_cv_func_vfork_works" = xyes; then
9650 cat >>confdefs.h <<\_ACEOF
9651 #define HAVE_WORKING_VFORK 1
9656 cat >>confdefs.h <<\_ACEOF
9661 if test "x$ac_cv_func_fork_works" = xyes; then
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_WORKING_FORK 1
9669 echo "$as_me:$LINENO: checking for working memcmp" >&5
9670 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9671 if test "${ac_cv_func_memcmp_working+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 if test "$cross_compiling" = yes; then
9675 ac_cv_func_memcmp_working=no
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683 $ac_includes_default
9688 /* Some versions of memcmp are not 8-bit clean. */
9689 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9690 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9693 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9694 or more and with at least one buffer not starting on a 4-byte boundary.
9695 William Lewis provided this test program. */
9700 for (i = 0; i < 4; i++)
9704 strcpy (a, "--------01111111");
9705 strcpy (b, "--------10000000");
9706 if (memcmp (a, b, 16) >= 0)
9716 rm -f conftest$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_func_memcmp_working=yes
9729 echo "$as_me: program exited with status $ac_status" >&5
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_cv_func_memcmp_working=no
9736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9740 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9741 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9742 "memcmp.$ac_objext" | \
9743 *" memcmp.$ac_objext" | \
9744 "memcmp.$ac_objext "* | \
9745 *" memcmp.$ac_objext "* ) ;;
9746 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9752 for ac_header in stdlib.h unistd.h
9754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9756 echo "$as_me:$LINENO: checking for $ac_header" >&5
9757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9764 # Is the header compilable?
9765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 $ac_includes_default
9774 #include <$ac_header>
9776 rm -f conftest.$ac_objext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9778 (eval $ac_compile) 2>conftest.er1
9780 grep -v '^ *+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag"
9786 || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest.$ac_objext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_header_compiler=yes
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 ac_header_compiler=no
9805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9807 echo "${ECHO_T}$ac_header_compiler" >&6
9809 # Is the header present?
9810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9812 cat >conftest.$ac_ext <<_ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 #include <$ac_header>
9820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9823 grep -v '^ *+' conftest.er1 >conftest.err
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } >/dev/null; then
9828 if test -s conftest.err; then
9829 ac_cpp_err=$ac_c_preproc_warn_flag
9830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9837 if test -z "$ac_cpp_err"; then
9838 ac_header_preproc=yes
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_header_preproc=no
9845 rm -f conftest.err conftest.$ac_ext
9846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9847 echo "${ECHO_T}$ac_header_preproc" >&6
9849 # So? What about this header?
9850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9856 ac_header_preproc=yes
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9873 ## ------------------------------- ##
9874 ## Report this to root@mput.dip.jp ##
9875 ## ------------------------------- ##
9878 sed "s/^/$as_me: WARNING: /" >&2
9881 echo "$as_me:$LINENO: checking for $ac_header" >&5
9882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 eval "$as_ac_Header=\$ac_header_preproc"
9888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902 for ac_func in getpagesize
9904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9905 echo "$as_me:$LINENO: checking for $ac_func" >&5
9906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9907 if eval "test \"\${$as_ac_var+set}\" = set"; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9918 #define $ac_func innocuous_$ac_func
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char $ac_func (); below.
9922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923 <limits.h> exists even on freestanding compilers. */
9926 # include <limits.h>
9928 # include <assert.h>
9933 /* Override any gcc2 internal prototype to avoid an error. */
9938 /* We use char because int might match the return type of a gcc2
9939 builtin and then its argument prototype would still apply. */
9941 /* The GNU C library defines this for functions which it implements
9942 to always fail with ENOSYS. Some functions are actually named
9943 something starting with __ and the normal name is an alias. */
9944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9947 char (*f) () = $ac_func;
9956 return f != $ac_func;
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963 (eval $ac_link) 2>conftest.er1
9965 grep -v '^ *+' conftest.er1 >conftest.err
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -z "$ac_c_werror_flag"
9971 || test ! -s conftest.err'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 eval "$as_ac_var=yes"
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 eval "$as_ac_var=no"
9990 rm -f conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9995 if test `eval echo '${'$as_ac_var'}'` = yes; then
9996 cat >>confdefs.h <<_ACEOF
9997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10003 echo "$as_me:$LINENO: checking for working mmap" >&5
10004 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10005 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 if test "$cross_compiling" = yes; then
10009 ac_cv_func_mmap_fixed_mapped=no
10011 cat >conftest.$ac_ext <<_ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 $ac_includes_default
10018 /* malloc might have been renamed as rpl_malloc. */
10021 /* Thanks to Mike Haertel and Jim Avera for this test.
10022 Here is a matrix of mmap possibilities:
10023 mmap private not fixed
10024 mmap private fixed at somewhere currently unmapped
10025 mmap private fixed at somewhere already mapped
10026 mmap shared not fixed
10027 mmap shared fixed at somewhere currently unmapped
10028 mmap shared fixed at somewhere already mapped
10029 For private mappings, we should verify that changes cannot be read()
10030 back from the file, nor mmap's back from the file at a different
10031 address. (There have been systems where private was not correctly
10032 implemented like the infamous i386 svr4.0, and systems where the
10033 VM page cache was not coherent with the file system buffer cache
10034 like early versions of FreeBSD and possibly contemporary NetBSD.)
10035 For shared mappings, we should conversely verify that changes get
10036 propagated back to all the places they're supposed to be.
10038 Grep wants private fixed already mapped.
10039 The main things grep needs to know about mmap are:
10040 * does it exist and is it safe to write into the mmap'd area
10041 * how to use it (BSD variants) */
10044 #include <sys/mman.h>
10046 #if !STDC_HEADERS && !HAVE_STDLIB_H
10050 /* This mess was copied from the GNU getpagesize.h. */
10051 #if !HAVE_GETPAGESIZE
10052 /* Assume that all systems that can run configure have sys/param.h. */
10053 # if !HAVE_SYS_PARAM_H
10054 # define HAVE_SYS_PARAM_H 1
10057 # ifdef _SC_PAGESIZE
10058 # define getpagesize() sysconf(_SC_PAGESIZE)
10059 # else /* no _SC_PAGESIZE */
10060 # if HAVE_SYS_PARAM_H
10061 # include <sys/param.h>
10062 # ifdef EXEC_PAGESIZE
10063 # define getpagesize() EXEC_PAGESIZE
10064 # else /* no EXEC_PAGESIZE */
10066 # define getpagesize() NBPG * CLSIZE
10069 # endif /* no CLSIZE */
10070 # else /* no NBPG */
10072 # define getpagesize() NBPC
10073 # else /* no NBPC */
10075 # define getpagesize() PAGESIZE
10076 # endif /* PAGESIZE */
10077 # endif /* no NBPC */
10078 # endif /* no NBPG */
10079 # endif /* no EXEC_PAGESIZE */
10080 # else /* no HAVE_SYS_PARAM_H */
10081 # define getpagesize() 8192 /* punt totally */
10082 # endif /* no HAVE_SYS_PARAM_H */
10083 # endif /* no _SC_PAGESIZE */
10085 #endif /* no HAVE_GETPAGESIZE */
10090 char *data, *data2, *data3;
10094 pagesize = getpagesize ();
10096 /* First, make a file with some known garbage in it. */
10097 data = (char *) malloc (pagesize);
10100 for (i = 0; i < pagesize; ++i)
10101 *(data + i) = rand ();
10103 fd = creat ("conftest.mmap", 0600);
10106 if (write (fd, data, pagesize) != pagesize)
10110 /* Next, try to mmap the file at a fixed address which already has
10111 something else allocated at it. If we can, also make sure that
10112 we see the same garbage. */
10113 fd = open ("conftest.mmap", O_RDWR);
10116 data2 = (char *) malloc (2 * pagesize);
10119 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10120 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10121 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10123 for (i = 0; i < pagesize; ++i)
10124 if (*(data + i) != *(data2 + i))
10127 /* Finally, make sure that changes to the mapped area do not
10128 percolate back to the file as seen by read(). (This is a bug on
10129 some variants of i386 svr4.0.) */
10130 for (i = 0; i < pagesize; ++i)
10131 *(data2 + i) = *(data2 + i) + 1;
10132 data3 = (char *) malloc (pagesize);
10135 if (read (fd, data3, pagesize) != pagesize)
10137 for (i = 0; i < pagesize; ++i)
10138 if (*(data + i) != *(data3 + i))
10144 rm -f conftest$ac_exeext
10145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10146 (eval $ac_link) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_func_mmap_fixed_mapped=yes
10157 echo "$as_me: program exited with status $ac_status" >&5
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ( exit $ac_status )
10162 ac_cv_func_mmap_fixed_mapped=no
10164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10167 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10168 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10169 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10171 cat >>confdefs.h <<\_ACEOF
10172 #define HAVE_MMAP 1
10176 rm -f conftest.mmap
10178 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10179 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10180 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 ac_cv_func_setvbuf_reversed=no
10184 cat >conftest.$ac_ext <<_ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10192 int (setvbuf) (FILE *, int, char *, size_t);
10197 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10206 grep -v '^ *+' conftest.er1 >conftest.err
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest$ac_exeext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 cat >conftest.$ac_ext <<_ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10232 int (setvbuf) (FILE *, int, char *, size_t);
10237 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10244 (eval $ac_link) 2>conftest.er1
10246 grep -v '^ *+' conftest.er1 >conftest.err
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -z "$ac_c_werror_flag"
10252 || test ! -s conftest.err'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; } &&
10258 { ac_try='test -s 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 # It compiles and links either way, so it must not be declared
10265 # with a prototype and most likely this is a K&R C compiler.
10267 if test "$cross_compiling" = yes; then
10268 : # Assume setvbuf is not reversed when cross-compiling.
10270 cat >conftest.$ac_ext <<_ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10280 /* This call has the arguments reversed.
10281 A reversed system may check and see that the address of buf
10282 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10284 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10287 exit (0); /* Non-reversed systems SEGV here. */
10292 rm -f conftest$ac_exeext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_func_setvbuf_reversed=yes
10305 echo "$as_me: program exited with status $ac_status" >&5
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ( exit $ac_status )
10312 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10314 ac_cv_func_setvbuf_reversed=yes
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10320 rm -f conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10323 echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10327 rm -f conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10330 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10331 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10332 if test $ac_cv_func_setvbuf_reversed = yes; then
10334 cat >>confdefs.h <<\_ACEOF
10335 #define SETVBUF_REVERSED 1
10340 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10341 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10342 if test "${ac_cv_type_signal+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 cat >conftest.$ac_ext <<_ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10351 #include <sys/types.h>
10352 #include <signal.h>
10357 extern "C" void (*signal (int, void (*)(int)))(int);
10359 void (*signal ()) ();
10370 rm -f conftest.$ac_objext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10372 (eval $ac_compile) 2>conftest.er1
10374 grep -v '^ *+' conftest.er1 >conftest.err
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -z "$ac_c_werror_flag"
10380 || test ! -s conftest.err'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; } &&
10386 { ac_try='test -s conftest.$ac_objext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 ac_cv_type_signal=void
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 ac_cv_type_signal=int
10399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10401 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10402 echo "${ECHO_T}$ac_cv_type_signal" >&6
10404 cat >>confdefs.h <<_ACEOF
10405 #define RETSIGTYPE $ac_cv_type_signal
10409 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes"; then
10411 for ac_func in vprintf
10413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10414 echo "$as_me:$LINENO: checking for $ac_func" >&5
10415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10416 if eval "test \"\${$as_ac_var+set}\" = set"; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 cat >conftest.$ac_ext <<_ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10427 #define $ac_func innocuous_$ac_func
10429 /* System header to define __stub macros and hopefully few prototypes,
10430 which can conflict with char $ac_func (); below.
10431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10432 <limits.h> exists even on freestanding compilers. */
10435 # include <limits.h>
10437 # include <assert.h>
10442 /* Override any gcc2 internal prototype to avoid an error. */
10447 /* We use char because int might match the return type of a gcc2
10448 builtin and then its argument prototype would still apply. */
10450 /* The GNU C library defines this for functions which it implements
10451 to always fail with ENOSYS. Some functions are actually named
10452 something starting with __ and the normal name is an alias. */
10453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10456 char (*f) () = $ac_func;
10465 return f != $ac_func;
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472 (eval $ac_link) 2>conftest.er1
10474 grep -v '^ *+' conftest.er1 >conftest.err
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag"
10480 || test ! -s conftest.err'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest$ac_exeext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 eval "$as_ac_var=yes"
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 eval "$as_ac_var=no"
10499 rm -f conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10504 if test `eval echo '${'$as_ac_var'}'` = yes; then
10505 cat >>confdefs.h <<_ACEOF
10506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10509 echo "$as_me:$LINENO: checking for _doprnt" >&5
10510 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10511 if test "${ac_cv_func__doprnt+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10522 #define _doprnt innocuous__doprnt
10524 /* System header to define __stub macros and hopefully few prototypes,
10525 which can conflict with char _doprnt (); below.
10526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10527 <limits.h> exists even on freestanding compilers. */
10530 # include <limits.h>
10532 # include <assert.h>
10537 /* Override any gcc2 internal prototype to avoid an error. */
10542 /* We use char because int might match the return type of a gcc2
10543 builtin and then its argument prototype would still apply. */
10545 /* The GNU C library defines this for functions which it implements
10546 to always fail with ENOSYS. Some functions are actually named
10547 something starting with __ and the normal name is an alias. */
10548 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10551 char (*f) () = _doprnt;
10560 return f != _doprnt;
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>conftest.er1
10569 grep -v '^ *+' conftest.er1 >conftest.err
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_func__doprnt=yes
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_cv_func__doprnt=no
10594 rm -f conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10597 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10598 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10599 if test $ac_cv_func__doprnt = yes; then
10601 cat >>confdefs.h <<\_ACEOF
10602 #define HAVE_DOPRNT 1
10686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10687 echo "$as_me:$LINENO: checking for $ac_func" >&5
10688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10689 if eval "test \"\${$as_ac_var+set}\" = set"; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 cat >conftest.$ac_ext <<_ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10700 #define $ac_func innocuous_$ac_func
10702 /* System header to define __stub macros and hopefully few prototypes,
10703 which can conflict with char $ac_func (); below.
10704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10705 <limits.h> exists even on freestanding compilers. */
10708 # include <limits.h>
10710 # include <assert.h>
10715 /* Override any gcc2 internal prototype to avoid an error. */
10720 /* We use char because int might match the return type of a gcc2
10721 builtin and then its argument prototype would still apply. */
10723 /* The GNU C library defines this for functions which it implements
10724 to always fail with ENOSYS. Some functions are actually named
10725 something starting with __ and the normal name is an alias. */
10726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10729 char (*f) () = $ac_func;
10738 return f != $ac_func;
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745 (eval $ac_link) 2>conftest.er1
10747 grep -v '^ *+' conftest.er1 >conftest.err
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag"
10753 || test ! -s conftest.err'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 eval "$as_ac_var=yes"
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10770 eval "$as_ac_var=no"
10772 rm -f conftest.err conftest.$ac_objext \
10773 conftest$ac_exeext conftest.$ac_ext
10775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10777 if test `eval echo '${'$as_ac_var'}'` = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10785 if test "x$VCPP" = xyes; then
10786 cat >>confdefs.h <<\_ACEOF
10787 #define RETSIGTYPE int
10790 cat >>confdefs.h <<\_ACEOF
10791 #define HAVE_GETCWD int
10795 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
10796 cat >>confdefs.h <<\_ACEOF
10797 #define HAVE_GETHOSTBYNAME 1
10800 cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_POPEN 1
10805 cat >>confdefs.h <<\_ACEOF
10806 #define popen _popen
10810 cat >>confdefs.h <<\_ACEOF
10811 #define pclose _pclose
10814 cat >>confdefs.h <<\_ACEOF
10815 #define HAVE_SELECT 1
10818 cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_SNPRINTF 1
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_STRDUP 1
10826 cat >>confdefs.h <<\_ACEOF
10827 #define HAVE_STRERROR 1
10830 cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_STRNCASECMP 1
10834 cat >>confdefs.h <<\_ACEOF
10835 #define HAVE_STRSTR 1
10839 cat >>confdefs.h <<\_ACEOF
10840 #define snprintf _snprintf
10843 cat >>confdefs.h <<\_ACEOF
10844 #define HAVE_SOCKET 1
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_VSNPRINTF 1
10852 cat >>confdefs.h <<\_ACEOF
10853 #define vsnprintf _vsnprintf
10857 cat >>confdefs.h <<\_ACEOF
10858 #define TIMID_VERSION $(PACKAGE_VERSION)
10863 echo "$as_me:$LINENO: checking for getopt_long" >&5
10864 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10865 if test "${ac_cv_func_getopt_long+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 cat >conftest.$ac_ext <<_ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10874 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10876 #define getopt_long innocuous_getopt_long
10878 /* System header to define __stub macros and hopefully few prototypes,
10879 which can conflict with char getopt_long (); below.
10880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10881 <limits.h> exists even on freestanding compilers. */
10884 # include <limits.h>
10886 # include <assert.h>
10891 /* Override any gcc2 internal prototype to avoid an error. */
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10898 char getopt_long ();
10899 /* The GNU C library defines this for functions which it implements
10900 to always fail with ENOSYS. Some functions are actually named
10901 something starting with __ and the normal name is an alias. */
10902 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10905 char (*f) () = getopt_long;
10914 return f != getopt_long;
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10921 (eval $ac_link) 2>conftest.er1
10923 grep -v '^ *+' conftest.er1 >conftest.err
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -z "$ac_c_werror_flag"
10929 || test ! -s conftest.err'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; } &&
10935 { ac_try='test -s conftest$ac_exeext'
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 ac_cv_func_getopt_long=yes
10943 echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10946 ac_cv_func_getopt_long=no
10948 rm -f conftest.err conftest.$ac_objext \
10949 conftest$ac_exeext conftest.$ac_ext
10951 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10952 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10953 if test $ac_cv_func_getopt_long = yes; then
10955 cat >>confdefs.h <<\_ACEOF
10956 #define HAVE_GETOPT_LONG 1
10959 tm_cv_needgetopt="no"
10961 tm_cv_needgetopt="yes"
10966 if test "x$tm_cv_needgetopt" = "xyes"; then
10968 NEEDGETOPT_FALSE='#'
10970 NEEDGETOPT_TRUE='#'
10975 echo "$as_me:$LINENO: checking for open_memstream" >&5
10976 echo $ECHO_N "checking for open_memstream... $ECHO_C" >&6
10977 if test "${ac_cv_func_open_memstream+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 cat >conftest.$ac_ext <<_ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 /* Define open_memstream to an innocuous variant, in case <limits.h> declares open_memstream.
10987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10988 #define open_memstream innocuous_open_memstream
10990 /* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char open_memstream (); below.
10992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10993 <limits.h> exists even on freestanding compilers. */
10996 # include <limits.h>
10998 # include <assert.h>
11001 #undef open_memstream
11003 /* Override any gcc2 internal prototype to avoid an error. */
11008 /* We use char because int might match the return type of a gcc2
11009 builtin and then its argument prototype would still apply. */
11010 char open_memstream ();
11011 /* The GNU C library defines this for functions which it implements
11012 to always fail with ENOSYS. Some functions are actually named
11013 something starting with __ and the normal name is an alias. */
11014 #if defined (__stub_open_memstream) || defined (__stub___open_memstream)
11017 char (*f) () = open_memstream;
11026 return f != open_memstream;
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033 (eval $ac_link) 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -z "$ac_c_werror_flag"
11041 || test ! -s conftest.err'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_func_open_memstream=yes
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_cv_func_open_memstream=no
11060 rm -f conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11063 echo "$as_me:$LINENO: result: $ac_cv_func_open_memstream" >&5
11064 echo "${ECHO_T}$ac_cv_func_open_memstream" >&6
11065 if test $ac_cv_func_open_memstream = yes; then
11068 cat >>confdefs.h <<\_ACEOF
11069 #define HAVE_OPEN_MEMSTREAM 1
11076 # Checks on cygnus and MSYS
11077 if test "x$MSYS" = xyes ; then
11078 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
11080 echo "$as_me:$LINENO: checking for opendir" >&5
11081 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11082 if test "${ac_cv_func_opendir+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 cat >conftest.$ac_ext <<_ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11093 #define opendir innocuous_opendir
11095 /* System header to define __stub macros and hopefully few prototypes,
11096 which can conflict with char opendir (); below.
11097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11098 <limits.h> exists even on freestanding compilers. */
11101 # include <limits.h>
11103 # include <assert.h>
11108 /* Override any gcc2 internal prototype to avoid an error. */
11113 /* We use char because int might match the return type of a gcc2
11114 builtin and then its argument prototype would still apply. */
11116 /* The GNU C library defines this for functions which it implements
11117 to always fail with ENOSYS. Some functions are actually named
11118 something starting with __ and the normal name is an alias. */
11119 #if defined (__stub_opendir) || defined (__stub___opendir)
11122 char (*f) () = opendir;
11131 return f != opendir;
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138 (eval $ac_link) 2>conftest.er1
11140 grep -v '^ *+' conftest.er1 >conftest.err
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag"
11146 || test ! -s conftest.err'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; } &&
11152 { ac_try='test -s conftest$ac_exeext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 ac_cv_func_opendir=yes
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 ac_cv_func_opendir=no
11165 rm -f conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11168 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11169 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11170 if test $ac_cv_func_opendir = yes; then
11173 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11178 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11182 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
11183 EXTRALIBS="$EXTRALIBS wsock32.lib"
11184 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11186 echo "$as_me:$LINENO: checking for socket" >&5
11187 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11188 if test "${ac_cv_func_socket+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 cat >conftest.$ac_ext <<_ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11197 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11199 #define socket innocuous_socket
11201 /* System header to define __stub macros and hopefully few prototypes,
11202 which can conflict with char socket (); below.
11203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11204 <limits.h> exists even on freestanding compilers. */
11207 # include <limits.h>
11209 # include <assert.h>
11214 /* Override any gcc2 internal prototype to avoid an error. */
11219 /* We use char because int might match the return type of a gcc2
11220 builtin and then its argument prototype would still apply. */
11222 /* The GNU C library defines this for functions which it implements
11223 to always fail with ENOSYS. Some functions are actually named
11224 something starting with __ and the normal name is an alias. */
11225 #if defined (__stub_socket) || defined (__stub___socket)
11228 char (*f) () = socket;
11237 return f != socket;
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244 (eval $ac_link) 2>conftest.er1
11246 grep -v '^ *+' conftest.er1 >conftest.err
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -z "$ac_c_werror_flag"
11252 || test ! -s conftest.err'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; } &&
11258 { ac_try='test -s conftest$ac_exeext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 ac_cv_func_socket=yes
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 ac_cv_func_socket=no
11271 rm -f conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11274 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11275 echo "${ECHO_T}$ac_cv_func_socket" >&6
11276 if test $ac_cv_func_socket = yes; then
11279 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11280 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11281 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11282 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 ac_save_LIBS="$LIBS"
11286 LIBS="-lwsock32 $LIBS"
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <windows.h>
11294 #include <winsock.h>
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306 (eval $ac_link) 2>conftest.er1
11308 grep -v '^ *+' conftest.er1 >conftest.err
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -z "$ac_c_werror_flag"
11314 || test ! -s conftest.err'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest$ac_exeext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 eval "wapi_cv_lib_$ac_lib_var=yes"
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 eval "wapi_cv_lib_$ac_lib_var=no"
11333 rm -f conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335 LIBS="$ac_save_LIBS"
11338 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11339 echo "$as_me:$LINENO: result: yes" >&5
11340 echo "${ECHO_T}yes" >&6
11341 EXTRALIBS="$EXTRALIBS -lwsock32"
11342 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11345 echo "$as_me:$LINENO: result: no" >&5
11346 echo "${ECHO_T}no" >&6
11355 # Checks on extra paths
11358 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11359 if test "${with_tcl_includes+set}" = set; then
11360 withval="$with_tcl_includes"
11361 if test ! -d $withval; then
11362 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11363 echo "$as_me: WARNING: $withval is not found." >&2;}
11365 tcl_include_dir="-I$withval"
11369 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11370 if test "${with_tcl_libs+set}" = set; then
11371 withval="$with_tcl_libs"
11372 if test ! -d $withval; then
11373 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11374 echo "$as_me: WARNING: $withval is not found." >&2;}
11376 tcl_libdir="-L$withval"
11379 # Check whether --with-tk-includes or --without-tk-includes was given.
11380 if test "${with_tk_includes+set}" = set; then
11381 withval="$with_tk_includes"
11382 if test ! -d $withval; then
11383 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11384 echo "$as_me: WARNING: $withval is not found." >&2;}
11386 tk_includes="-I$withval"
11389 # Check whether --with-tk-libs or --without-tk-libs was given.
11390 if test "${with_tk_libs+set}" = set; then
11391 withval="$with_tk_libs"
11392 if test ! -d $withval; then
11393 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11394 echo "$as_me: WARNING: $withval is not found." >&2;}
11396 tk_libdir="-L$withval"
11400 # Check whether --with-offix-includes or --without-offix-includes was given.
11401 if test "${with_offix_includes+set}" = set; then
11402 withval="$with_offix_includes"
11403 if test ! -d $withval; then
11404 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11405 echo "$as_me: WARNING: $withval is not found." >&2;}
11407 offix_include_dir="-I$withval"
11410 # Check whether --with-offix-libs or --without-offix-libs was given.
11411 if test "${with_offix_libs+set}" = set; then
11412 withval="$with_offix_libs"
11413 if test ! -d $withval; then
11414 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11415 echo "$as_me: WARNING: $withval is not found." >&2;}
11417 offix_lib_dir="-L$withval"
11425 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11428 # Check whether --with-nas-library or --without-nas-library was given.
11429 if test "${with_nas_library+set}" = set; then
11430 withval="$with_nas_library"
11434 # Check whether --with-nas-includes or --without-nas-includes was given.
11435 if test "${with_nas_includes+set}" = set; then
11436 withval="$with_nas_includes"
11441 # Check whether --enable-audio or --disable-audio was given.
11442 if test "${enable_audio+set}" = set; then
11443 enableval="$enable_audio"
11444 enable_audio=$enableval
11451 test "x$enable_audio" = xyes && enable_audio=default
11453 if test "x$enable_audio" != xno; then
11454 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11455 eval "au_enable_$i=yes"
11461 # Check whether --with-default-output or --without-default-output was given.
11462 if test "${with_default_output+set}" = set; then
11463 withval="$with_default_output"
11464 if test "$enable_audio" != no; then
11465 DEFAULT_PLAYMODE=$withval
11466 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11468 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11469 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11474 if test "x$au_enable_default" = xyes; then
11476 *-*-linux*|*-*-freebsd*)
11480 au_enable_sb_dsp=yes
11482 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11510 au_enable_darwin=yes
11513 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11514 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11520 # Each audio mode's configurations
11521 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11522 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11523 if test "x$au_enable_oss" = xyes; then
11524 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11525 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11526 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11527 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11528 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11532 echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6
11536 if test "x$ac_cv_header_soundcard_h" = xyes; then
11537 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11538 echo "${ECHO_T}yes - <soundcard.h>" >&6
11540 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11541 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11547 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11548 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11549 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 ac_check_lib_save_LIBS=$LIBS
11553 LIBS="-lossaudio $LIBS"
11554 cat >conftest.$ac_ext <<_ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11561 /* Override any gcc2 internal prototype to avoid an error. */
11565 /* We use char because int might match the return type of a gcc2
11566 builtin and then its argument prototype would still apply. */
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11578 (eval $ac_link) 2>conftest.er1
11580 grep -v '^ *+' conftest.er1 >conftest.err
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
11585 { ac_try='test -z "$ac_c_werror_flag"
11586 || test ! -s conftest.err'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest$ac_exeext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_lib_ossaudio_open=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_cv_lib_ossaudio_open=no
11605 rm -f conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607 LIBS=$ac_check_lib_save_LIBS
11609 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11610 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11611 if test $ac_cv_lib_ossaudio_open = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613 #define HAVE_LIBOSSAUDIO 1
11616 LIBS="-lossaudio $LIBS"
11623 if test ! -e "/dev/dsp"; then
11624 oss_device=/dev/audio
11629 echo "$as_me:$LINENO: result: no" >&5
11630 echo "${ECHO_T}no" >&6
11633 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11634 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11635 if test "x$au_enable_sun" = xyes; then
11638 if test -f /usr/demo/SOUND/libaudio.a; then
11639 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11640 echo "$as_me:$LINENO: result: yes" >&5
11641 echo "${ECHO_T}yes" >&6
11643 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11644 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11648 if test -f /usr/demo/SOUND/lib/libaudio.a; then
11649 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11650 echo "$as_me:$LINENO: result: yes" >&5
11651 echo "${ECHO_T}yes" >&6
11653 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11654 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11657 *) echo "$as_me:$LINENO: result: yes" >&5
11658 echo "${ECHO_T}yes" >&6
11661 EXTRADEFS="$EXTRADEFS -DAU_SUN"
11662 SYSEXTRAS="$SYSEXTRAS sun_a.c"
11664 echo "$as_me:$LINENO: result: no" >&5
11665 echo "${ECHO_T}no" >&6
11668 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11669 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11670 if test "x$au_enable_hpux" = xyes; then
11672 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11673 echo "${ECHO_T}yes" >&6 ;;
11674 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11675 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11677 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11678 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11680 echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11684 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11685 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11686 if test "x$au_enable_irix" = xyes; then
11688 *-sgi-irix5*|*-sgi-irix6.2)
11689 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11690 echo "$as_me:$LINENO: result: yes" >&5
11691 echo "${ECHO_T}yes" >&6
11694 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11695 echo "$as_me:$LINENO: result: yes" >&5
11696 echo "${ECHO_T}yes" >&6
11698 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11699 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11701 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11702 EXTRALIBS="$EXTRASLIBS -laudio"
11704 echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6
11708 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11709 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11710 if test "x$au_enable_mme" = xyes; then
11712 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11713 echo "${ECHO_T}yes" >&6 ;;
11714 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11715 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11717 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11718 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11719 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11720 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11722 echo "$as_me:$LINENO: result: no" >&5
11723 echo "${ECHO_T}no" >&6
11726 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11727 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11728 if test "x$au_enable_sb_dsp" = xyes; then
11730 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11731 echo "${ECHO_T}yes" >&6 ;;
11732 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11733 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11735 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11736 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11738 echo "$as_me:$LINENO: result: no" >&5
11739 echo "${ECHO_T}no" >&6
11742 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11743 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11744 if test "x$au_enable_w32" = xyes; then
11747 echo "$as_me:$LINENO: result: yes" >&5
11748 echo "${ECHO_T}yes" >&6
11751 echo "$as_me:$LINENO: result: yes" >&5
11752 echo "${ECHO_T}yes" >&6
11755 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11756 echo "$as_me: WARNING: may not work on $target" >&2;}
11759 SYSEXTRAS="$SYSEXTRAS w32_a.c"
11760 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
11761 EXTRALIBS="$EXTRALIBS winmm.lib"
11763 EXTRALIBS="$EXTRALIBS -lwinmm"
11765 EXTRADEFS="$EXTRADEFS -DAU_W32"
11767 echo "$as_me:$LINENO: result: no" >&5
11768 echo "${ECHO_T}no" >&6
11771 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11772 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11773 if test "x$au_enable_darwin" = xyes; then
11774 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11775 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11776 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11779 echo "$as_me:$LINENO: result: yes" >&5
11780 echo "${ECHO_T}yes" >&6;;
11782 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11783 echo "$as_me: WARNING: may not work on $target" >&2;}
11787 echo "$as_me:$LINENO: result: no" >&5
11788 echo "${ECHO_T}no" >&6
11792 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11793 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11794 if test "x$au_enable_alsa" = xyes; then
11795 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11796 echo "${ECHO_T}yes, configuring alsa" >&6
11799 KEEPLDFLAGS=$LDFLAGS
11800 alsa_save_CFLAGS="$CFLAGS"
11801 alsa_save_LDFLAGS="$LDFLAGS"
11802 alsa_save_LIBS="$LIBS"
11806 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11807 if test "${with_alsa_prefix+set}" = set; then
11808 withval="$with_alsa_prefix"
11809 alsa_prefix="$withval"
11815 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11816 if test "${with_alsa_inc_prefix+set}" = set; then
11817 withval="$with_alsa_inc_prefix"
11818 alsa_inc_prefix="$withval"
11823 # Check whether --enable-alsatest or --disable-alsatest was given.
11824 if test "${enable_alsatest+set}" = set; then
11825 enableval="$enable_alsatest"
11828 enable_alsatest=yes
11831 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
11832 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
11833 if test "$alsa_inc_prefix" != "" ; then
11834 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
11835 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
11837 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
11838 echo "${ECHO_T}$ALSA_CFLAGS" >&6
11840 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
11841 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
11842 if test "$alsa_prefix" != "" ; then
11843 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
11844 LDFLAGS="$LDFLAGS $ALSA_LIBS"
11847 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
11848 LIBS=`echo $LIBS | sed 's/-lm//'`
11849 LIBS=`echo $LIBS | sed 's/-ldl//'`
11850 LIBS=`echo $LIBS | sed 's/-lpthread//'`
11851 LIBS=`echo $LIBS | sed 's/ //'`
11852 LIBS="$ALSA_LIBS $LIBS"
11853 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
11854 echo "${ECHO_T}$ALSA_LIBS" >&6
11856 min_alsa_version=0.1.1
11857 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
11858 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
11860 alsa_min_major_version=`echo $min_alsa_version | \
11861 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11862 alsa_min_minor_version=`echo $min_alsa_version | \
11863 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11864 alsa_min_micro_version=`echo $min_alsa_version | \
11865 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11871 ac_cpp='$CPP $CPPFLAGS'
11872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11883 #include <alsa/asoundlib.h>
11889 /* ensure backward compatibility */
11890 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11891 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11893 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11894 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11896 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11897 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11900 # if(SND_LIB_MAJOR > $alsa_min_major_version)
11903 # if(SND_LIB_MAJOR < $alsa_min_major_version)
11904 # error not present
11907 # if(SND_LIB_MINOR > $alsa_min_minor_version)
11910 # if(SND_LIB_MINOR < $alsa_min_minor_version)
11911 # error not present
11914 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11915 # error not present
11925 rm -f conftest.$ac_objext
11926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927 (eval $ac_compile) 2>conftest.er1
11929 grep -v '^ *+' conftest.er1 >conftest.err
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag"
11935 || test ! -s conftest.err'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest.$ac_objext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 echo "$as_me:$LINENO: result: found." >&5
11948 echo "${ECHO_T}found." >&6
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11960 #include <sys/asoundlib.h>
11966 /* ensure backward compatibility */
11967 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11968 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11970 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11971 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11973 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11974 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11977 # if(SND_LIB_MAJOR > $alsa_min_major_version)
11980 # if(SND_LIB_MAJOR < $alsa_min_major_version)
11981 # error not present
11984 # if(SND_LIB_MINOR > $alsa_min_minor_version)
11987 # if(SND_LIB_MINOR < $alsa_min_minor_version)
11988 # error not present
11991 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11992 # error not present
12002 rm -f conftest.$ac_objext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag"
12012 || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 echo "$as_me:$LINENO: result: found." >&5
12025 echo "${ECHO_T}found." >&6
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 echo "$as_me:$LINENO: result: not present." >&5
12031 echo "${ECHO_T}not present." >&6
12032 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12033 echo "${ECHO_T}libasound was not found anywhere." >&6
12036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12037 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12038 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12043 ac_cpp='$CPP $CPPFLAGS'
12044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12050 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12051 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12052 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-lasound $LIBS"
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12064 /* Override any gcc2 internal prototype to avoid an error. */
12068 /* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12070 char snd_ctl_open ();
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081 (eval $ac_link) 2>conftest.er1
12083 grep -v '^ *+' conftest.er1 >conftest.err
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -z "$ac_c_werror_flag"
12089 || test ! -s conftest.err'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 ac_cv_lib_asound_snd_ctl_open=yes
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 ac_cv_lib_asound_snd_ctl_open=no
12108 rm -f conftest.err conftest.$ac_objext \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12112 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12113 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12114 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12115 cat >>confdefs.h <<_ACEOF
12116 #define HAVE_LIBASOUND 1
12119 LIBS="-lasound $LIBS"
12122 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12123 echo "${ECHO_T}No linkable libasound was found." >&6
12129 if test "x$alsa_found" = "xyes" ; then
12131 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12132 LIBS=`echo $LIBS | sed 's/ //'`
12133 LIBS="-lasound $LIBS"
12136 CFLAGS="$alsa_save_CFLAGS"
12137 LDFLAGS="$alsa_save_LDFLAGS"
12138 LIBS="$alsa_save_LIBS"
12146 if test "x$alsa_found" = "xyes" ; then
12147 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12148 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12149 for f in $ALSA_CFLAGS; do
12151 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12152 *) CFLAGS="$CPPFLAGS $f" ;;
12156 LIBS="$LIBS $ALSA_LIBS"
12158 for ac_func in snd_seq_port_info_set_timestamping
12160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12161 echo "$as_me:$LINENO: checking for $ac_func" >&5
12162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12163 if eval "test \"\${$as_ac_var+set}\" = set"; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12174 #define $ac_func innocuous_$ac_func
12176 /* System header to define __stub macros and hopefully few prototypes,
12177 which can conflict with char $ac_func (); below.
12178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12179 <limits.h> exists even on freestanding compilers. */
12182 # include <limits.h>
12184 # include <assert.h>
12189 /* Override any gcc2 internal prototype to avoid an error. */
12194 /* We use char because int might match the return type of a gcc2
12195 builtin and then its argument prototype would still apply. */
12197 /* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
12200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12203 char (*f) () = $ac_func;
12212 return f != $ac_func;
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -z "$ac_c_werror_flag"
12227 || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 eval "$as_ac_var=yes"
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 eval "$as_ac_var=no"
12246 rm -f conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12251 if test `eval echo '${'$as_ac_var'}'` = yes; then
12252 cat >>confdefs.h <<_ACEOF
12253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12261 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12264 LDFLAGS=$KEEPLDFLAGS
12267 echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12271 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12272 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12273 if test "x$au_enable_alib" = xyes; then
12275 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12276 echo "${ECHO_T}yes" >&6 ;;
12277 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12278 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12280 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12281 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12282 if test -d /opt/audio/include; then
12283 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12285 if test -d /opt/audio/lib; then
12286 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12288 EXTRALIBS="$EXTRALIBS -lAlib"
12290 echo "$as_me:$LINENO: result: no" >&5
12291 echo "${ECHO_T}no" >&6
12294 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12295 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12296 if test "x$au_enable_nas" = xyes; then
12297 if test "x$with_x" != xyes; then
12298 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12299 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12300 { (exit 1); exit 1; }; }
12302 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12303 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12306 if test "x$with_nas_library" != x; then
12307 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12308 echo "${ECHO_T}$with_nas_library" >&6;
12309 EXTRALIBS="$EXTRALIBS $with_nas_library"
12311 echo "$as_me:$LINENO: result: " >&5
12312 echo "${ECHO_T}" >&6
12313 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12314 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12315 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 ac_func_search_save_LIBS="$LIBS"
12319 timidity_cv_search_AuOpenServer="no"
12320 for i in $x_libraries/libaudio.a \
12321 /usr/lib/libaudio.so \
12322 /usr/lib/libaudio.a ; do
12323 LIBS="$i $ac_func_search_save_LIBS"
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 /* Override any gcc2 internal prototype to avoid an error. */
12335 /* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12337 char AuOpenServer ();
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348 (eval $ac_link) 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag"
12356 || test ! -s conftest.err'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest$ac_exeext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 timidity_cv_search_AuOpenServer="$i"; break
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12374 rm -f conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
12377 LIBS="$ac_func_search_save_LIBS"
12379 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12380 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12381 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12382 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12383 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12384 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12386 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12387 echo "$as_me: WARNING: NAS library is not found." >&2;}
12390 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12392 if test "x$have_xext" = xyes; then
12393 lib_xext_opt=-lXext
12395 if test "x$have_xprelibs" = xyes; then
12396 lib_xprelibs_opt='-lSM -lICE'
12399 echo "$as_me:$LINENO: result: no" >&5
12400 echo "${ECHO_T}no" >&6
12403 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12404 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12405 if test "x$au_enable_arts" = xyes; then
12406 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12407 echo "${ECHO_T}yes, configuring aRts" >&6
12408 # Extract the first word of "artsc-config", so it can be a program name with args.
12409 set dummy artsc-config; ac_word=$2
12410 echo "$as_me:$LINENO: checking for $ac_word" >&5
12411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12412 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 case $ARTSCCONFIG in
12417 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12427 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
12428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
12439 if test -n "$ARTSCCONFIG"; then
12440 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12441 echo "${ECHO_T}$ARTSCCONFIG" >&6
12443 echo "$as_me:$LINENO: result: no" >&5
12444 echo "${ECHO_T}no" >&6
12447 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12450 for i in `$ARTSCCONFIG --cflags`
12453 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12456 ARTSC_LIBS=`$ARTSCCONFIG --libs`
12457 save_CFLAGS="$CFLAGS"
12458 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
12459 cat >conftest.$ac_ext <<_ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12469 arts_stream_t stream;
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>conftest.er1
12478 grep -v '^ *+' conftest.er1 >conftest.err
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -z "$ac_c_werror_flag"
12484 || test ! -s conftest.err'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; } &&
12490 { ac_try='test -s conftest.$ac_objext'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 ARTSLIBS=$ARTSC_LIBS
12498 ARTSINCL=$ARTSC_CFLAGS
12501 cat >>confdefs.h <<\_ACEOF
12502 #define HAVE_ARTS 1
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12513 CFLAGS="$save_CFLAGS"
12516 if test "$have_arts" = "yes"; then
12517 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12518 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12519 for f in $ARTSC_CFLAGS; do
12521 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12522 *) CFLAGS="$CPPFLAGS $f" ;;
12526 LIBS="$LIBS $ARTSC_LIBS"
12528 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12529 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12532 echo "$as_me:$LINENO: result: no" >&5
12533 echo "${ECHO_T}no" >&6
12536 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12537 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12538 if test "x$au_enable_esd" = xyes; then
12539 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12540 echo "${ECHO_T}yes, configuring esd" >&6
12543 KEEPLDFLAGS=$LDFLAGS
12545 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12546 if test "${with_esd_prefix+set}" = set; then
12547 withval="$with_esd_prefix"
12548 esd_prefix="$withval"
12553 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12554 if test "${with_esd_exec_prefix+set}" = set; then
12555 withval="$with_esd_exec_prefix"
12556 esd_exec_prefix="$withval"
12560 # Check whether --enable-esdtest or --disable-esdtest was given.
12561 if test "${enable_esdtest+set}" = set; then
12562 enableval="$enable_esdtest"
12568 if test x$esd_exec_prefix != x ; then
12569 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12570 if test x${ESD_CONFIG+set} != xset ; then
12571 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12574 if test x$esd_prefix != x ; then
12575 esd_args="$esd_args --prefix=$esd_prefix"
12576 if test x${ESD_CONFIG+set} != xset ; then
12577 ESD_CONFIG=$esd_prefix/bin/esd-config
12581 # Extract the first word of "esd-config", so it can be a program name with args.
12582 set dummy esd-config; ac_word=$2
12583 echo "$as_me:$LINENO: checking for $ac_word" >&5
12584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12585 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 case $ESD_CONFIG in
12590 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12611 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12613 if test -n "$ESD_CONFIG"; then
12614 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12615 echo "${ECHO_T}$ESD_CONFIG" >&6
12617 echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6
12621 min_esd_version=0.2.7
12622 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12623 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12625 if test "$ESD_CONFIG" = "no" ; then
12631 ac_cpp='$CPP $CPPFLAGS'
12632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12636 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12637 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12639 esd_major_version=`$ESD_CONFIG $esd_args --version | \
12640 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12641 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12642 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12643 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12644 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12645 if test "x$enable_esdtest" = "xyes" ; then
12646 ac_save_CFLAGS="$CFLAGS"
12647 ac_save_LIBS="$LIBS"
12648 CFLAGS="$CFLAGS $ESD_CFLAGS"
12649 LIBS="$LIBS $ESD_LIBS"
12651 if test "$cross_compiling" = yes; then
12652 echo $ac_n "cross compiling; assumed OK... $ac_c"
12654 cat >conftest.$ac_ext <<_ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12662 #include <stdlib.h>
12663 #include <string.h>
12667 my_strdup (char *str)
12673 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12674 strcpy (new_str, str);
12684 int major, minor, micro;
12687 system ("touch conf.esdtest");
12689 /* HP/UX 9 (%@#!) writes to sscanf strings */
12690 tmp_version = my_strdup("$min_esd_version");
12691 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12692 printf("%s, bad version string\n", "$min_esd_version");
12696 if (($esd_major_version > major) ||
12697 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
12698 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
12704 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
12705 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
12706 printf("*** best to upgrade to the required version.\n");
12707 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
12708 printf("*** to point to the correct copy of esd-config, and remove the file\n");
12709 printf("*** config.cache before re-running configure\n");
12716 rm -f conftest$ac_exeext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12718 (eval $ac_link) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12729 echo "$as_me: program exited with status $ac_status" >&5
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ( exit $ac_status )
12736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12738 CFLAGS="$ac_save_CFLAGS"
12739 LIBS="$ac_save_LIBS"
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12748 if test "x$no_esd" = x ; then
12749 echo "$as_me:$LINENO: result: yes" >&5
12750 echo "${ECHO_T}yes" >&6
12753 echo "$as_me:$LINENO: result: no" >&5
12754 echo "${ECHO_T}no" >&6
12755 if test "$ESD_CONFIG" = "no" ; then
12756 echo "*** The esd-config script installed by ESD could not be found"
12757 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
12758 echo "*** your path, or set the ESD_CONFIG environment variable to the"
12759 echo "*** full path to esd-config."
12761 if test -f conf.esdtest ; then
12764 echo "*** Could not run ESD test program, checking why..."
12765 CFLAGS="$CFLAGS $ESD_CFLAGS"
12766 LIBS="$LIBS $ESD_LIBS"
12770 ac_cpp='$CPP $CPPFLAGS'
12771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12775 cat >conftest.$ac_ext <<_ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795 (eval $ac_link) 2>conftest.er1
12797 grep -v '^ *+' conftest.er1 >conftest.err
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag"
12803 || test ! -s conftest.err'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest$ac_exeext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 echo "*** The test program compiled, but did not run. This usually means"
12816 echo "*** that the run-time linker is not finding ESD or finding the wrong"
12817 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
12818 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12819 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12820 echo "*** is required on your system"
12822 echo "*** If you have an old version installed, it is best to remove it, although"
12823 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 echo "*** The test program failed to compile or link. See the file config.log for the"
12829 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
12830 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
12831 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
12833 rm -f conftest.err conftest.$ac_objext \
12834 conftest$ac_exeext conftest.$ac_ext
12835 CFLAGS="$ac_save_CFLAGS"
12836 LIBS="$ac_save_LIBS"
12838 ac_cpp='$CPP $CPPFLAGS'
12839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12855 LDFLAGS=$KEEPLDFLAGS
12856 if test "x$no_esd" = x; then
12857 EXTRADEFS="$EXTRADEFS -DAU_ESD"
12858 SYSEXTRAS="$SYSEXTRAS esd_a.c"
12859 for f in $ESD_CFLAGS; do
12861 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12862 *) CFLAGS="$CPPFLAGS $f" ;;
12866 LIBS="$LIBS $ESD_LIBS"
12868 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
12869 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
12872 echo "$as_me:$LINENO: result: no" >&5
12873 echo "${ECHO_T}no" >&6
12876 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
12877 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
12878 if test "x$au_enable_portaudio" = xyes; then
12879 echo "$as_me:$LINENO: result: yes" >&5
12880 echo "${ECHO_T}yes" >&6
12881 if test "x$MSYS" = xyes ; then
12882 SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
12883 EXTRALIBS="$EXTRALIBS -lportaudio"
12884 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
12886 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
12887 EXTRALIBS="$EXTRALIBS -lportaudio"
12888 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
12891 echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6
12895 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
12896 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
12897 if test "x$au_enable_jack" = xyes; then
12898 echo "$as_me:$LINENO: result: yes" >&5
12899 echo "${ECHO_T}yes" >&6
12900 SYSEXTRAS="$SYSEXTRAS jack_a.c"
12901 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
12902 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
12904 echo "$as_me:$LINENO: result: no" >&5
12905 echo "${ECHO_T}no" >&6
12908 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
12909 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
12910 if test "x$au_enable_ao" = xyes; then
12911 echo "$as_me:$LINENO: result: yes, configuring ao" >&5
12912 echo "${ECHO_T}yes, configuring ao" >&6
12914 # Check whether --with-ao or --without-ao was given.
12915 if test "${with_ao+set}" = set; then
12917 ao_prefix="$withval"
12922 # Check whether --with-ao-libraries or --without-ao-libraries was given.
12923 if test "${with_ao_libraries+set}" = set; then
12924 withval="$with_ao_libraries"
12925 ao_libraries="$withval"
12930 # Check whether --with-ao-includes or --without-ao-includes was given.
12931 if test "${with_ao_includes+set}" = set; then
12932 withval="$with_ao_includes"
12933 ao_includes="$withval"
12937 # Check whether --enable-aotest or --disable-aotest was given.
12938 if test "${enable_aotest+set}" = set; then
12939 enableval="$enable_aotest"
12946 if test "x$ao_libraries" != "x" ; then
12947 AO_LIBS="-L$ao_libraries"
12948 elif test "x$ao_prefix" != "x"; then
12949 AO_LIBS="-L$ao_prefix/lib"
12950 elif test "x$prefix" != "xNONE"; then
12951 AO_LIBS="-L$prefix/lib"
12954 if test "x$ao_includes" != "x" ; then
12955 AO_CFLAGS="-I$ao_includes"
12956 elif test "x$ao_prefix" != "x"; then
12957 AO_CFLAGS="-I$ao_prefix/include"
12958 elif test "x$prefix" != "xNONE"; then
12959 AO_CFLAGS="-I$prefix/include"
12962 # see where dl* and friends live
12964 for ac_func in dlopen
12966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967 echo "$as_me:$LINENO: checking for $ac_func" >&5
12968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12969 if eval "test \"\${$as_ac_var+set}\" = set"; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 cat >conftest.$ac_ext <<_ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12980 #define $ac_func innocuous_$ac_func
12982 /* System header to define __stub macros and hopefully few prototypes,
12983 which can conflict with char $ac_func (); below.
12984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985 <limits.h> exists even on freestanding compilers. */
12988 # include <limits.h>
12990 # include <assert.h>
12995 /* Override any gcc2 internal prototype to avoid an error. */
13000 /* We use char because int might match the return type of a gcc2
13001 builtin and then its argument prototype would still apply. */
13003 /* The GNU C library defines this for functions which it implements
13004 to always fail with ENOSYS. Some functions are actually named
13005 something starting with __ and the normal name is an alias. */
13006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13009 char (*f) () = $ac_func;
13018 return f != $ac_func;
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>conftest.er1
13027 grep -v '^ *+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try='test -z "$ac_c_werror_flag"
13033 || test ! -s conftest.err'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try='test -s conftest$ac_exeext'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 eval "$as_ac_var=yes"
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13050 eval "$as_ac_var=no"
13052 rm -f conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13057 if test `eval echo '${'$as_ac_var'}'` = yes; then
13058 cat >>confdefs.h <<_ACEOF
13059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13064 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13065 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13066 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 ac_check_lib_save_LIBS=$LIBS
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13078 /* Override any gcc2 internal prototype to avoid an error. */
13082 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13095 (eval $ac_link) 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag"
13103 || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_lib_dl_dlopen=yes
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 ac_cv_lib_dl_dlopen=no
13122 rm -f conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13126 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13127 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13128 if test $ac_cv_lib_dl_dlopen = yes; then
13132 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13133 your system may not be supported." >&5
13134 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13135 your system may not be supported." >&2;}
13144 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13146 echo "$as_me:$LINENO: checking for ao" >&5
13147 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13151 if test "x$enable_aotest" = "xyes" ; then
13152 ac_save_CFLAGS="$CFLAGS"
13153 ac_save_LIBS="$LIBS"
13154 CFLAGS="$CFLAGS $AO_CFLAGS"
13155 LIBS="$LIBS $AO_LIBS"
13157 if test "$cross_compiling" = yes; then
13158 echo $ac_n "cross compiling; assumed OK... $ac_c"
13160 cat >conftest.$ac_ext <<_ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13168 #include <stdlib.h>
13169 #include <string.h>
13174 system("touch conf.aotest");
13180 rm -f conftest$ac_exeext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13182 (eval $ac_link) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13193 echo "$as_me: program exited with status $ac_status" >&5
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 ( exit $ac_status )
13200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13202 CFLAGS="$ac_save_CFLAGS"
13203 LIBS="$ac_save_LIBS"
13206 if test "x$no_ao" = "x" ; then
13207 echo "$as_me:$LINENO: result: yes" >&5
13208 echo "${ECHO_T}yes" >&6
13211 echo "$as_me:$LINENO: result: no" >&5
13212 echo "${ECHO_T}no" >&6
13213 if test -f conf.aotest ; then
13216 echo "*** Could not run ao test program, checking why..."
13217 CFLAGS="$CFLAGS $AO_CFLAGS"
13218 LIBS="$LIBS $AO_LIBS"
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239 (eval $ac_link) 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest$ac_exeext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 echo "*** The test program compiled, but did not run. This usually means"
13260 echo "*** that the run-time linker is not finding ao or finding the wrong"
13261 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13262 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13263 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13264 echo "*** is required on your system"
13266 echo "*** If you have an old version installed, it is best to remove it, although"
13267 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 echo "*** The test program failed to compile or link. See the file config.log for the"
13273 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13274 echo "*** or that you have moved ao since it was installed."
13276 rm -f conftest.err conftest.$ac_objext \
13277 conftest$ac_exeext conftest.$ac_ext
13278 CFLAGS="$ac_save_CFLAGS"
13279 LIBS="$ac_save_LIBS"
13289 if test "x$no_ao" = "x" ; then
13290 # AC_MSG_RESULT(yes)
13291 EXTRADEFS="$EXTRADEFS -DAU_AO"
13292 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13293 for f in $AO_CFLAGS; do
13295 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13296 *) CFLAGS="$CPPFLAGS $f" ;;
13300 LIBS="$LIBS $AO_LIBS"
13302 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13303 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13306 echo "$as_me:$LINENO: result: no" >&5
13307 echo "${ECHO_T}no" >&6
13310 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13311 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13312 if test "x$au_enable_vorbis" = xyes; then
13313 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13314 echo "${ECHO_T}yes, configuring vorbis" >&6
13316 # Check whether --with-ogg or --without-ogg was given.
13317 if test "${with_ogg+set}" = set; then
13318 withval="$with_ogg"
13319 ogg_prefix="$withval"
13324 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13325 if test "${with_ogg_libraries+set}" = set; then
13326 withval="$with_ogg_libraries"
13327 ogg_libraries="$withval"
13332 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13333 if test "${with_ogg_includes+set}" = set; then
13334 withval="$with_ogg_includes"
13335 ogg_includes="$withval"
13339 # Check whether --enable-oggtest or --disable-oggtest was given.
13340 if test "${enable_oggtest+set}" = set; then
13341 enableval="$enable_oggtest"
13347 if test "x$ogg_libraries" != "x" ; then
13348 OGG_LIBS="-L$ogg_libraries"
13349 elif test "x$ogg_prefix" != "x" ; then
13350 OGG_LIBS="-L$ogg_prefix/lib"
13351 elif test "x$prefix" != "xNONE" ; then
13352 OGG_LIBS="-L$prefix/lib"
13355 OGG_LIBS="$OGG_LIBS -logg"
13357 if test "x$ogg_includes" != "x" ; then
13358 OGG_CFLAGS="-I$ogg_includes"
13359 elif test "x$ogg_prefix" != "x" ; then
13360 OGG_CFLAGS="-I$ogg_prefix/include"
13361 elif test "x$prefix" != "xNONE"; then
13362 OGG_CFLAGS="-I$prefix/include"
13365 echo "$as_me:$LINENO: checking for Ogg" >&5
13366 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13370 if test "x$enable_oggtest" = "xyes" ; then
13371 ac_save_CFLAGS="$CFLAGS"
13372 ac_save_LIBS="$LIBS"
13373 CFLAGS="$CFLAGS $OGG_CFLAGS"
13374 LIBS="$LIBS $OGG_LIBS"
13376 if test "$cross_compiling" = yes; then
13377 echo $ac_n "cross compiling; assumed OK... $ac_c"
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13387 #include <stdlib.h>
13388 #include <string.h>
13389 #include <ogg/ogg.h>
13393 system("touch conf.oggtest");
13399 rm -f conftest$ac_exeext
13400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13401 (eval $ac_link) 2>&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13412 echo "$as_me: program exited with status $ac_status" >&5
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13416 ( exit $ac_status )
13419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13421 CFLAGS="$ac_save_CFLAGS"
13422 LIBS="$ac_save_LIBS"
13425 if test "x$no_ogg" = "x" ; then
13426 echo "$as_me:$LINENO: result: yes" >&5
13427 echo "${ECHO_T}yes" >&6
13430 # Check whether --with-vorbis or --without-vorbis was given.
13431 if test "${with_vorbis+set}" = set; then
13432 withval="$with_vorbis"
13433 vorbis_prefix="$withval"
13438 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13439 if test "${with_vorbis_libraries+set}" = set; then
13440 withval="$with_vorbis_libraries"
13441 vorbis_libraries="$withval"
13443 vorbis_libraries=""
13446 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13447 if test "${with_vorbis_includes+set}" = set; then
13448 withval="$with_vorbis_includes"
13449 vorbis_includes="$withval"
13453 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13454 if test "${enable_vorbistest+set}" = set; then
13455 enableval="$enable_vorbistest"
13458 enable_vorbistest=yes
13461 if test "x$vorbis_libraries" != "x" ; then
13462 VORBIS_LIBS="-L$vorbis_libraries"
13463 elif test "x$vorbis_prefix" != "x" ; then
13464 VORBIS_LIBS="-L$vorbis_prefix/lib"
13465 elif test "x$prefix" != "xNONE"; then
13466 VORBIS_LIBS="-L$prefix/lib"
13469 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13470 VORBISFILE_LIBS="-lvorbisfile"
13471 VORBISENC_LIBS="-lvorbisenc"
13473 if test "x$vorbis_includes" != "x" ; then
13474 VORBIS_CFLAGS="-I$vorbis_includes"
13475 elif test "x$vorbis_prefix" != "x" ; then
13476 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13477 elif test "x$prefix" != "xNONE"; then
13478 VORBIS_CFLAGS="-I$prefix/include"
13482 echo "$as_me:$LINENO: checking for Vorbis" >&5
13483 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13487 if test "x$enable_vorbistest" = "xyes" ; then
13488 ac_save_CFLAGS="$CFLAGS"
13489 ac_save_LIBS="$LIBS"
13490 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13491 LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13492 rm -f conf.vorbistest
13493 if test "$cross_compiling" = yes; then
13494 echo $ac_n "cross compiling; assumed OK... $ac_c"
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13504 #include <stdlib.h>
13505 #include <string.h>
13506 #include <vorbis/codec.h>
13507 #include <vorbis/vorbisenc.h>
13512 vorbis_dsp_state vd;
13515 vorbis_info_init (&vi);
13516 vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
13517 vorbis_analysis_init (&vd, &vi);
13518 vorbis_block_init (&vd, &vb);
13519 /* this function was added in 1.0rc3, so this is what we're testing for */
13520 vorbis_bitrate_addblock (&vb);
13522 system("touch conf.vorbistest");
13528 rm -f conftest$ac_exeext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530 (eval $ac_link) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13541 echo "$as_me: program exited with status $ac_status" >&5
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 ( exit $ac_status )
13548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13550 CFLAGS="$ac_save_CFLAGS"
13551 LIBS="$ac_save_LIBS"
13554 if test "x$no_vorbis" = "x" ; then
13555 echo "$as_me:$LINENO: result: yes" >&5
13556 echo "${ECHO_T}yes" >&6
13559 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13560 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13561 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13562 if test "x$MSYS" = "xyes"; then
13563 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13564 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13568 echo "$as_me:$LINENO: result: no" >&5
13569 echo "${ECHO_T}no" >&6
13570 if test -f conf.vorbistest ; then
13573 echo "*** Could not run Vorbis test program, checking why..."
13574 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13575 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13584 #include <vorbis/codec.h>
13594 rm -f conftest.$ac_objext conftest$ac_exeext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13596 (eval $ac_link) 2>conftest.er1
13598 grep -v '^ *+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -z "$ac_c_werror_flag"
13604 || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest$ac_exeext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 echo "*** The test program compiled, but did not run. This usually means"
13617 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13618 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13619 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13620 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13621 echo "*** is required on your system"
13623 echo "*** If you have an old version installed, it is best to remove it, although"
13624 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 echo "*** The test program failed to compile or link. See the file config.log for the"
13630 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13631 echo "*** or that you have moved Vorbis since it was installed."
13633 rm -f conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13635 CFLAGS="$ac_save_CFLAGS"
13636 LIBS="$ac_save_LIBS"
13643 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13644 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13651 rm -f conf.vorbistest
13655 echo "$as_me:$LINENO: result: no" >&5
13656 echo "${ECHO_T}no" >&6
13657 if test -f conf.oggtest ; then
13660 echo "*** Could not run Ogg test program, checking why..."
13661 CFLAGS="$CFLAGS $OGG_CFLAGS"
13662 LIBS="$LIBS $OGG_LIBS"
13663 cat >conftest.$ac_ext <<_ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13671 #include <ogg/ogg.h>
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13683 (eval $ac_link) 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 echo "*** The test program compiled, but did not run. This usually means"
13704 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
13705 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
13706 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13707 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13708 echo "*** is required on your system"
13710 echo "*** If you have an old version installed, it is best to remove it, although"
13711 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 echo "*** The test program failed to compile or link. See the file config.log for the"
13717 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
13718 echo "*** or that you have moved Ogg since it was installed."
13720 rm -f conftest.err conftest.$ac_objext \
13721 conftest$ac_exeext conftest.$ac_ext
13722 CFLAGS="$ac_save_CFLAGS"
13723 LIBS="$ac_save_LIBS"
13728 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
13729 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
13738 echo "$as_me:$LINENO: result: no" >&5
13739 echo "${ECHO_T}no" >&6
13742 if test "x$MSYS" = xyes ; then
13743 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
13744 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
13745 if test "x$au_enable_flac" = xyes; then
13746 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
13747 echo "${ECHO_T}yes, configuring flac" >&6
13748 SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
13750 # Check whether --with-libFLAC or --without-libFLAC was given.
13751 if test "${with_libFLAC+set}" = set; then
13752 withval="$with_libFLAC"
13753 libFLAC_prefix="$withval"
13758 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
13759 if test "${with_libFLAC_libraries+set}" = set; then
13760 withval="$with_libFLAC_libraries"
13761 libFLAC_libraries="$withval"
13763 libFLAC_libraries=""
13766 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
13767 if test "${with_libFLAC_includes+set}" = set; then
13768 withval="$with_libFLAC_includes"
13769 libFLAC_includes="$withval"
13771 libFLAC_includes=""
13773 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
13774 if test "${enable_libFLACtest+set}" = set; then
13775 enableval="$enable_libFLACtest"
13778 enable_libFLACtest=yes
13781 if test "x$libFLAC_libraries" != "x" ; then
13782 LIBFLAC_LIBS="-L$libFLAC_libraries"
13783 elif test "x$libFLAC_prefix" != "x" ; then
13784 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
13785 elif test "x$prefix" != "xNONE" ; then
13786 LIBFLAC_LIBS="-L$prefix/lib"
13789 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
13791 if test "x$libFLAC_includes" != "x" ; then
13792 LIBFLAC_CFLAGS="-I$libFLAC_includes"
13793 elif test "x$libFLAC_prefix" != "x" ; then
13794 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
13795 elif test "$prefix" != "xNONE"; then
13796 LIBFLAC_CFLAGS="-I$prefix/include"
13799 echo "$as_me:$LINENO: checking for libFLAC" >&5
13800 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
13804 if test "x$enable_libFLACtest" = "xyes" ; then
13805 ac_save_CFLAGS="$CFLAGS"
13806 ac_save_CXXFLAGS="$CXXFLAGS"
13807 ac_save_LIBS="$LIBS"
13808 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
13809 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
13810 LIBS="$LIBS $LIBFLAC_LIBS"
13811 rm -f conf.libFLACtest
13812 if test "$cross_compiling" = yes; then
13813 echo $ac_n "cross compiling; assumed OK... $ac_c"
13815 cat >conftest.$ac_ext <<_ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h. */
13823 #include <stdlib.h>
13824 #include <string.h>
13825 #include <FLAC/format.h>
13829 system("touch conf.libFLACtest");
13835 rm -f conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13848 echo "$as_me: program exited with status $ac_status" >&5
13849 echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13852 ( exit $ac_status )
13855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13857 CFLAGS="$ac_save_CFLAGS"
13858 LIBS="$ac_save_LIBS"
13861 if test "x$no_libFLAC" = "x" ; then
13862 echo "$as_me:$LINENO: result: yes" >&5
13863 echo "${ECHO_T}yes" >&6
13865 EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
13866 for f in $LIBFLAC_CFLAGS; do
13868 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13869 *) CFLAGS="$CPPFLAGS $f" ;;
13873 LIBS="$LIBS $LIBFLAC_LIBS"
13876 echo "$as_me:$LINENO: result: no" >&5
13877 echo "${ECHO_T}no" >&6
13878 if test -f conf.libFLACtest ; then
13881 echo "*** Could not run libFLAC test program, checking why..."
13882 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
13883 LIBS="$LIBS $LIBFLAC_LIBS"
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13892 #include <FLAC/format.h>
13902 rm -f conftest.$ac_objext conftest$ac_exeext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904 (eval $ac_link) 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_c_werror_flag"
13912 || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest$ac_exeext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 echo "*** The test program compiled, but did not run. This usually means"
13925 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
13926 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
13927 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13928 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13929 echo "*** is required on your system"
13931 echo "*** If you have an old version installed, it is best to remove it, although"
13932 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 echo "*** The test program failed to compile or link. See the file config.log for the"
13938 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
13939 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
13940 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
13942 rm -f conftest.err conftest.$ac_objext \
13943 conftest$ac_exeext conftest.$ac_ext
13944 CFLAGS="$ac_save_CFLAGS"
13945 LIBS="$ac_save_LIBS"
13953 rm -f conf.libFLACtest
13956 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
13957 if test "${with_libOggFLAC+set}" = set; then
13958 withval="$with_libOggFLAC"
13959 libOggFLAC_prefix="$withval"
13961 libOggFLAC_prefix=""
13964 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
13965 if test "${with_libOggFLAC_libraries+set}" = set; then
13966 withval="$with_libOggFLAC_libraries"
13967 libOggFLAC_libraries="$withval"
13969 libOggFLAC_libraries=""
13972 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
13973 if test "${with_libOggFLAC_includes+set}" = set; then
13974 withval="$with_libOggFLAC_includes"
13975 libOggFLAC_includes="$withval"
13977 libOggFLAC_includes=""
13979 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
13980 if test "${enable_libOggFLACtest+set}" = set; then
13981 enableval="$enable_libOggFLACtest"
13984 enable_libOggFLACtest=yes
13987 if test "x$libOggFLAC_libraries" != "x" ; then
13988 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
13989 elif test "x$libOggFLAC_prefix" != "x" ; then
13990 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
13991 elif test "x$prefix" != "xNONE" ; then
13992 LIBOGGFLAC_LIBS="-L$prefix/lib"
13995 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
13997 if test "x$libOggFLAC_includes" != "x" ; then
13998 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
13999 elif test "x$libOggFLAC_prefix" != "x" ; then
14000 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14001 elif test "$prefix" != "xNONE"; then
14002 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14005 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14006 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14010 if test "x$enable_libOggFLACtest" = "xyes" ; then
14011 ac_save_CFLAGS="$CFLAGS"
14012 ac_save_CXXFLAGS="$CXXFLAGS"
14013 ac_save_LIBS="$LIBS"
14014 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14015 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14016 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14017 rm -f conf.libOggFLACtest
14018 if test "$cross_compiling" = yes; then
14019 echo $ac_n "cross compiling; assumed OK... $ac_c"
14021 cat >conftest.$ac_ext <<_ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14029 #include <stdlib.h>
14030 #include <string.h>
14031 #include <OggFLAC/stream_decoder.h>
14035 system("touch conf.libOggFLACtest");
14041 rm -f conftest$ac_exeext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043 (eval $ac_link) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14054 echo "$as_me: program exited with status $ac_status" >&5
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 ( exit $ac_status )
14061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14063 CFLAGS="$ac_save_CFLAGS"
14064 LIBS="$ac_save_LIBS"
14067 if test "x$no_libOggFLAC" = "x" ; then
14068 echo "$as_me:$LINENO: result: yes" >&5
14069 echo "${ECHO_T}yes" >&6
14071 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14072 for f in $LIBOGGFLAC_CFLAGS; do
14074 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14075 *) CFLAGS="$CPPFLAGS $f" ;;
14079 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14082 echo "$as_me:$LINENO: result: no" >&5
14083 echo "${ECHO_T}no" >&6
14084 if test -f conf.libOggFLACtest ; then
14087 echo "*** Could not run libOggFLAC test program, checking why..."
14088 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14089 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14098 #include <OggFLAC/stream_decoder.h>
14108 rm -f conftest.$ac_objext conftest$ac_exeext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14110 (eval $ac_link) 2>conftest.er1
14112 grep -v '^ *+' conftest.er1 >conftest.err
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest$ac_exeext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 echo "*** The test program compiled, but did not run. This usually means"
14131 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14132 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14133 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14134 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14135 echo "*** is required on your system"
14137 echo "*** If you have an old version installed, it is best to remove it, although"
14138 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 echo "*** The test program failed to compile or link. See the file config.log for the"
14144 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14145 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14146 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14148 rm -f conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 CFLAGS="$ac_save_CFLAGS"
14151 LIBS="$ac_save_LIBS"
14153 LIBOGGFLAC_CFLAGS=""
14159 rm -f conf.libOggFLACtest
14162 echo "$as_me:$LINENO: result: no" >&5
14163 echo "${ECHO_T}no" >&6
14166 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14167 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14168 if test "x$au_enable_flac" = xyes; then
14169 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14170 echo "${ECHO_T}yes, configuring flac" >&6
14171 SYSEXTRAS="$SYSEXTRAS flac_a.c"
14173 # Check whether --with-libFLAC or --without-libFLAC was given.
14174 if test "${with_libFLAC+set}" = set; then
14175 withval="$with_libFLAC"
14176 libFLAC_prefix="$withval"
14181 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14182 if test "${with_libFLAC_libraries+set}" = set; then
14183 withval="$with_libFLAC_libraries"
14184 libFLAC_libraries="$withval"
14186 libFLAC_libraries=""
14189 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14190 if test "${with_libFLAC_includes+set}" = set; then
14191 withval="$with_libFLAC_includes"
14192 libFLAC_includes="$withval"
14194 libFLAC_includes=""
14196 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14197 if test "${enable_libFLACtest+set}" = set; then
14198 enableval="$enable_libFLACtest"
14201 enable_libFLACtest=yes
14204 if test "x$libFLAC_libraries" != "x" ; then
14205 LIBFLAC_LIBS="-L$libFLAC_libraries"
14206 elif test "x$libFLAC_prefix" != "x" ; then
14207 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14208 elif test "x$prefix" != "xNONE" ; then
14209 LIBFLAC_LIBS="-L$prefix/lib"
14212 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14214 if test "x$libFLAC_includes" != "x" ; then
14215 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14216 elif test "x$libFLAC_prefix" != "x" ; then
14217 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14218 elif test "$prefix" != "xNONE"; then
14219 LIBFLAC_CFLAGS="-I$prefix/include"
14222 echo "$as_me:$LINENO: checking for libFLAC" >&5
14223 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14227 if test "x$enable_libFLACtest" = "xyes" ; then
14228 ac_save_CFLAGS="$CFLAGS"
14229 ac_save_CXXFLAGS="$CXXFLAGS"
14230 ac_save_LIBS="$LIBS"
14231 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14232 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14233 LIBS="$LIBS $LIBFLAC_LIBS"
14234 rm -f conf.libFLACtest
14235 if test "$cross_compiling" = yes; then
14236 echo $ac_n "cross compiling; assumed OK... $ac_c"
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14246 #include <stdlib.h>
14247 #include <string.h>
14248 #include <FLAC/format.h>
14252 system("touch conf.libFLACtest");
14258 rm -f conftest$ac_exeext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14260 (eval $ac_link) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14271 echo "$as_me: program exited with status $ac_status" >&5
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ( exit $ac_status )
14278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14280 CFLAGS="$ac_save_CFLAGS"
14281 LIBS="$ac_save_LIBS"
14284 if test "x$no_libFLAC" = "x" ; then
14285 echo "$as_me:$LINENO: result: yes" >&5
14286 echo "${ECHO_T}yes" >&6
14288 EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14289 for f in $LIBFLAC_CFLAGS; do
14291 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14292 *) CFLAGS="$CPPFLAGS $f" ;;
14296 LIBS="$LIBS $LIBFLAC_LIBS"
14299 echo "$as_me:$LINENO: result: no" >&5
14300 echo "${ECHO_T}no" >&6
14301 if test -f conf.libFLACtest ; then
14304 echo "*** Could not run libFLAC test program, checking why..."
14305 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14306 LIBS="$LIBS $LIBFLAC_LIBS"
14307 cat >conftest.$ac_ext <<_ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14315 #include <FLAC/format.h>
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14327 (eval $ac_link) 2>conftest.er1
14329 grep -v '^ *+' conftest.er1 >conftest.err
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
14334 { ac_try='test -z "$ac_c_werror_flag"
14335 || test ! -s conftest.err'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; } &&
14341 { ac_try='test -s conftest$ac_exeext'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14347 echo "*** The test program compiled, but did not run. This usually means"
14348 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14349 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14350 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14351 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14352 echo "*** is required on your system"
14354 echo "*** If you have an old version installed, it is best to remove it, although"
14355 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14360 echo "*** The test program failed to compile or link. See the file config.log for the"
14361 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14362 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14363 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14365 rm -f conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14367 CFLAGS="$ac_save_CFLAGS"
14368 LIBS="$ac_save_LIBS"
14376 rm -f conf.libFLACtest
14379 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14380 if test "${with_libOggFLAC+set}" = set; then
14381 withval="$with_libOggFLAC"
14382 libOggFLAC_prefix="$withval"
14384 libOggFLAC_prefix=""
14387 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14388 if test "${with_libOggFLAC_libraries+set}" = set; then
14389 withval="$with_libOggFLAC_libraries"
14390 libOggFLAC_libraries="$withval"
14392 libOggFLAC_libraries=""
14395 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14396 if test "${with_libOggFLAC_includes+set}" = set; then
14397 withval="$with_libOggFLAC_includes"
14398 libOggFLAC_includes="$withval"
14400 libOggFLAC_includes=""
14402 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14403 if test "${enable_libOggFLACtest+set}" = set; then
14404 enableval="$enable_libOggFLACtest"
14407 enable_libOggFLACtest=yes
14410 if test "x$libOggFLAC_libraries" != "x" ; then
14411 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14412 elif test "x$libOggFLAC_prefix" != "x" ; then
14413 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14414 elif test "x$prefix" != "xNONE" ; then
14415 LIBOGGFLAC_LIBS="-L$prefix/lib"
14418 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14420 if test "x$libOggFLAC_includes" != "x" ; then
14421 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14422 elif test "x$libOggFLAC_prefix" != "x" ; then
14423 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14424 elif test "$prefix" != "xNONE"; then
14425 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14428 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14429 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14433 if test "x$enable_libOggFLACtest" = "xyes" ; then
14434 ac_save_CFLAGS="$CFLAGS"
14435 ac_save_CXXFLAGS="$CXXFLAGS"
14436 ac_save_LIBS="$LIBS"
14437 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14438 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14439 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14440 rm -f conf.libOggFLACtest
14441 if test "$cross_compiling" = yes; then
14442 echo $ac_n "cross compiling; assumed OK... $ac_c"
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14452 #include <stdlib.h>
14453 #include <string.h>
14454 #include <OggFLAC/stream_decoder.h>
14458 system("touch conf.libOggFLACtest");
14464 rm -f conftest$ac_exeext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14466 (eval $ac_link) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14477 echo "$as_me: program exited with status $ac_status" >&5
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ( exit $ac_status )
14484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14486 CFLAGS="$ac_save_CFLAGS"
14487 LIBS="$ac_save_LIBS"
14490 if test "x$no_libOggFLAC" = "x" ; then
14491 echo "$as_me:$LINENO: result: yes" >&5
14492 echo "${ECHO_T}yes" >&6
14494 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14495 for f in $LIBOGGFLAC_CFLAGS; do
14497 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14498 *) CFLAGS="$CPPFLAGS $f" ;;
14502 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14505 echo "$as_me:$LINENO: result: no" >&5
14506 echo "${ECHO_T}no" >&6
14507 if test -f conf.libOggFLACtest ; then
14510 echo "*** Could not run libOggFLAC test program, checking why..."
14511 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14512 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14513 cat >conftest.$ac_ext <<_ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14521 #include <OggFLAC/stream_decoder.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
14553 echo "*** The test program compiled, but did not run. This usually means"
14554 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14555 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14556 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14557 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14558 echo "*** is required on your system"
14560 echo "*** If you have an old version installed, it is best to remove it, although"
14561 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 echo "*** The test program failed to compile or link. See the file config.log for the"
14567 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14568 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14569 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14571 rm -f conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext conftest.$ac_ext
14573 CFLAGS="$ac_save_CFLAGS"
14574 LIBS="$ac_save_LIBS"
14576 LIBOGGFLAC_CFLAGS=""
14582 rm -f conf.libOggFLACtest
14585 echo "$as_me:$LINENO: result: no" >&5
14586 echo "${ECHO_T}no" >&6
14589 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14590 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14591 if test "x$au_enable_speex" = xyes; then
14592 if test "${have_speex+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 cat >conftest.$ac_ext <<_ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14603 #include <ogg/ogg.h>
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14617 (eval $ac_link) 2>conftest.er1
14619 grep -v '^ *+' conftest.er1 >conftest.err
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_c_werror_flag"
14625 || test ! -s conftest.err'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest$ac_exeext'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14644 rm -f conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14648 echo "$as_me:$LINENO: result: $have_speex" >&5
14649 echo "${ECHO_T}$have_speex" >&6
14650 if test "x$have_speex" = xyes; then
14651 SYSEXTRAS="$SYSEXTRAS speex_a.c"
14652 EXTRALIBS="$EXTRALIBS -lspeex -logg"
14653 EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14656 echo "$as_me:$LINENO: result: no" >&5
14657 echo "${ECHO_T}no" >&6
14660 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14661 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14662 if test "x$au_enable_gogo" = xyes; then
14663 if test "x$MSYS" = "xyes"; then
14664 echo "$as_me:$LINENO: result: yes" >&5
14665 echo "${ECHO_T}yes" >&6
14667 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
14668 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
14671 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14672 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14673 EXTRALIBS="$EXTRALIBS -lgogo"
14675 echo "$as_me:$LINENO: result: no" >&5
14676 echo "${ECHO_T}no" >&6
14679 if test "x$au_enable_none" = xyes; then
14680 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14681 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14683 echo "$as_me:$LINENO: checking default output mode" >&5
14684 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14685 if test "x$DEFAULT_PLAYMODE" = x; then
14686 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14688 case ".$DEFAULT_PLAYMODE" in
14689 .default) TIMIDITY_OUTPUT_ID=d ;;
14690 .oss) TIMIDITY_OUTPUT_ID=d ;;
14691 .alsa) TIMIDITY_OUTPUT_ID=s ;;
14692 .sun) TIMIDITY_OUTPUT_ID=d ;;
14693 .hpux) TIMIDITY_OUTPUT_ID=d ;;
14694 .irix) TIMIDITY_OUTPUT_ID=d ;;
14695 .mme) TIMIDITY_OUTPUT_ID=d ;;
14696 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
14697 .darwin) TIMIDITY_OUTPUT_ID=d ;;
14698 .w32) TIMIDITY_OUTPUT_ID=d ;;
14699 .alib) TIMIDITY_OUTPUT_ID=A ;;
14700 .nas) TIMIDITY_OUTPUT_ID=n ;;
14701 .arts) TIMIDITY_OUTPUT_ID=R ;;
14702 .esd) TIMIDITY_OUTPUT_ID=e ;;
14703 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
14704 .wav) TIMIDITY_OUTPUT_ID=w ;;
14705 .au) TIMIDITY_OUTPUT_ID=u ;;
14706 .aiff) TIMIDITY_OUTPUT_ID=a ;;
14707 .list) TIMIDITY_OUTPUT_ID=l ;;
14708 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
14709 .flac) TIMIDITY_OUTPUT_ID=F ;;
14710 .speex) TIMIDITY_OUTPUT_ID=S ;;
14711 .gogo) TIMIDITY_OUTPUT_ID=g ;;
14712 .jack) TIMIDITY_OUTPUT_ID=j ;;
14713 *) TIMIDITY_OUTPUT_ID= ;;
14715 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14716 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14720 # Interface Section
14723 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14725 # Check whether --enable-interface or --disable-interface was given.
14726 if test "${enable_interface+set}" = set; then
14727 enableval="$enable_interface"
14728 for i in `echo $enableval | sed 's/,/ /g'`; do
14729 eval "enable_$i=yes"
14733 # Dynamic link configuration
14734 # Check whether --enable-dynamic or --disable-dynamic was given.
14735 if test "${enable_dynamic+set}" = set; then
14736 enableval="$enable_dynamic"
14737 if test "x$enable_dynamic" = xyes; then
14738 enable_dynamic=dynamic
14739 elif test "x$enable_dynamic" != xno; then
14740 for i in `echo $enableval | sed 's/,/ /g'`; do
14741 eval "enable_$i=dynamic"
14747 for i in $interface_targets; do
14748 eval "join_targets=$join_targets\$enable_$i"
14751 case ".$join_targets" in
14752 .*dynamic*) NEEDDLOPEN=yes;;
14756 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14757 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14759 if test "$NEEDDLOPEN" = "yes"; then
14762 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14763 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14764 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 cat >conftest.$ac_ext <<_ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14773 #include <windows.h>
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786 (eval $ac_link) 2>conftest.er1
14788 grep -v '^ *+' conftest.er1 >conftest.err
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -z "$ac_c_werror_flag"
14794 || test ! -s conftest.err'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest$ac_exeext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 wapi_cv_func_LoadLibrary=yes
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14811 wapi_cv_func_LoadLibrary=no
14813 rm -f conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14817 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14818 echo "$as_me:$LINENO: result: yes" >&5
14819 echo "${ECHO_T}yes" >&6
14822 echo "$as_me:$LINENO: result: no" >&5
14823 echo "${ECHO_T}no" >&6
14826 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14828 if test "$have_dl" = "no"; then
14829 echo "$as_me:$LINENO: checking for shl_load" >&5
14830 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14831 if test "${ac_cv_func_shl_load+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 cat >conftest.$ac_ext <<_ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14842 #define shl_load innocuous_shl_load
14844 /* System header to define __stub macros and hopefully few prototypes,
14845 which can conflict with char shl_load (); below.
14846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14847 <limits.h> exists even on freestanding compilers. */
14850 # include <limits.h>
14852 # include <assert.h>
14857 /* Override any gcc2 internal prototype to avoid an error. */
14862 /* We use char because int might match the return type of a gcc2
14863 builtin and then its argument prototype would still apply. */
14865 /* The GNU C library defines this for functions which it implements
14866 to always fail with ENOSYS. Some functions are actually named
14867 something starting with __ and the normal name is an alias. */
14868 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14871 char (*f) () = shl_load;
14880 return f != shl_load;
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14887 (eval $ac_link) 2>conftest.er1
14889 grep -v '^ *+' conftest.er1 >conftest.err
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_func_shl_load=yes
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_cv_func_shl_load=no
14914 rm -f conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14917 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14918 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14919 if test $ac_cv_func_shl_load = yes; then
14924 if test "$have_dl" = "no"; then
14925 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14926 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14927 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14938 #define NSLinkModule innocuous_NSLinkModule
14940 /* System header to define __stub macros and hopefully few prototypes,
14941 which can conflict with char NSLinkModule (); below.
14942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14943 <limits.h> exists even on freestanding compilers. */
14946 # include <limits.h>
14948 # include <assert.h>
14951 #undef NSLinkModule
14953 /* Override any gcc2 internal prototype to avoid an error. */
14958 /* We use char because int might match the return type of a gcc2
14959 builtin and then its argument prototype would still apply. */
14960 char NSLinkModule ();
14961 /* The GNU C library defines this for functions which it implements
14962 to always fail with ENOSYS. Some functions are actually named
14963 something starting with __ and the normal name is an alias. */
14964 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14967 char (*f) () = NSLinkModule;
14976 return f != NSLinkModule;
14981 rm -f conftest.$ac_objext conftest$ac_exeext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14983 (eval $ac_link) 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag"
14991 || test ! -s conftest.err'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; } &&
14997 { ac_try='test -s conftest$ac_exeext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 ac_cv_func_NSLinkModule=yes
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 ac_cv_func_NSLinkModule=no
15010 rm -f conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15013 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15014 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15015 if test $ac_cv_func_NSLinkModule = yes; then
15020 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15023 if test "$have_dl" = "no"; then
15024 echo "$as_me:$LINENO: checking for dlopen" >&5
15025 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15026 if test "${ac_cv_func_dlopen+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15037 #define dlopen innocuous_dlopen
15039 /* System header to define __stub macros and hopefully few prototypes,
15040 which can conflict with char dlopen (); below.
15041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15042 <limits.h> exists even on freestanding compilers. */
15045 # include <limits.h>
15047 # include <assert.h>
15052 /* Override any gcc2 internal prototype to avoid an error. */
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15060 /* The GNU C library defines this for functions which it implements
15061 to always fail with ENOSYS. Some functions are actually named
15062 something starting with __ and the normal name is an alias. */
15063 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15066 char (*f) () = dlopen;
15075 return f != dlopen;
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_func_dlopen=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_func_dlopen=no
15109 rm -f conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
15112 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15113 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15114 if test $ac_cv_func_dlopen = yes; then
15119 if test "$have_dl" = "no"; then
15120 echo "$as_me:$LINENO: checking for dld_init" >&5
15121 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15122 if test "${ac_cv_func_dld_init+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 cat >conftest.$ac_ext <<_ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15133 #define dld_init innocuous_dld_init
15135 /* System header to define __stub macros and hopefully few prototypes,
15136 which can conflict with char dld_init (); below.
15137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15138 <limits.h> exists even on freestanding compilers. */
15141 # include <limits.h>
15143 # include <assert.h>
15148 /* Override any gcc2 internal prototype to avoid an error. */
15153 /* We use char because int might match the return type of a gcc2
15154 builtin and then its argument prototype would still apply. */
15156 /* The GNU C library defines this for functions which it implements
15157 to always fail with ENOSYS. Some functions are actually named
15158 something starting with __ and the normal name is an alias. */
15159 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15162 char (*f) () = dld_init;
15171 return f != dld_init;
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15180 grep -v '^ *+' conftest.er1 >conftest.err
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag"
15186 || test ! -s conftest.err'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } &&
15192 { ac_try='test -s conftest$ac_exeext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 ac_cv_func_dld_init=yes
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15203 ac_cv_func_dld_init=no
15205 rm -f conftest.err conftest.$ac_objext \
15206 conftest$ac_exeext conftest.$ac_ext
15208 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15209 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15210 if test $ac_cv_func_dld_init = yes; then
15215 if test "$have_dl" = "no"; then
15216 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15217 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15218 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15221 ac_check_lib_save_LIBS=$LIBS
15223 cat >conftest.$ac_ext <<_ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15230 /* Override any gcc2 internal prototype to avoid an error. */
15234 /* We use char because int might match the return type of a gcc2
15235 builtin and then its argument prototype would still apply. */
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247 (eval $ac_link) 2>conftest.er1
15249 grep -v '^ *+' conftest.er1 >conftest.err
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag"
15255 || test ! -s conftest.err'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_lib_dld_dld_init=yes
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ac_cv_lib_dld_dld_init=no
15274 rm -f conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
15276 LIBS=$ac_check_lib_save_LIBS
15278 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15279 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15280 if test $ac_cv_lib_dld_dld_init = yes; then
15281 have_dl=dld;lib_dl_opt=-ldld
15286 echo "$as_me:$LINENO: checking dynamic link method" >&5
15287 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15290 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15291 echo "${ECHO_T}use dl_dlopen.c" >&6
15292 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15293 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15294 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15295 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 case "$ac_cv_header_dlfcn_h" in
15299 yes) i_dlfcn=define;;
15310 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
15312 #include <sys/types.h>
15317 extern int fred() ;
15326 int mode = RTLD_LAZY ;
15328 handle = dlopen("./dyna.$so", mode) ;
15329 if (handle == NULL) {
15334 symbol = dlsym(handle, "fred") ;
15335 if (symbol == NULL) {
15336 /* try putting a leading underscore */
15337 symbol = dlsym(handle, "_fred") ;
15338 if (symbol == NULL) {
15351 : Call the object file tmp-dyna.o in case dlext=o.
15352 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15353 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15354 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15355 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15358 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
15359 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
15361 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
15362 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
15364 3) timidity_cv_func_dlsym_underscore=yes
15366 4) timidity_cv_func_dlsym_underscore=no
15370 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15371 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15373 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15377 case "x$timidity_cv_func_dlsym_underscore" in
15379 cat >>confdefs.h <<\_ACEOF
15380 #define DLSYM_NEEDS_UNDERSCORE 1
15383 echo "$as_me:$LINENO: result: yes" >&5
15384 echo "${ECHO_T}yes" >&6
15387 echo "$as_me:$LINENO: result: no" >&5
15388 echo "${ECHO_T}no" >&6
15394 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15395 echo "${ECHO_T}use dl_dld.c" >&6
15396 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15399 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15400 echo "${ECHO_T}use dl_hpux.c" >&6
15401 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15402 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15405 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15406 echo "${ECHO_T}use dl_w32.c" >&6
15407 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15410 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15411 echo "${ECHO_T}use dl_dyld.c" >&6
15412 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15416 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15417 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15422 if test "$NEEDDLOPEN" = "yes"; then
15423 cat >> confdefs.h <<EOF
15424 #define IA_DYNAMIC 1
15428 cat >>confdefs.h <<_ACEOF
15429 #define SHARED_LIB_EXT ".$so"
15432 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
15437 if test "$NEEDDLOPEN" = "yes"; then
15439 NEEDDLOPEN_FALSE='#'
15441 NEEDDLOPEN_TRUE='#'
15450 ENABLE_NCURSES_TRUE=
15451 ENABLE_NCURSES_FALSE='#'
15453 ENABLE_NCURSES_TRUE='#'
15454 ENABLE_NCURSES_FALSE=
15457 # Check whether --enable-ncurses or --disable-ncurses was given.
15458 if test "${enable_ncurses+set}" = set; then
15459 enableval="$enable_ncurses"
15460 case "x$enable_ncurses" in xyes|xdynamic)
15463 for ac_header in ncurses.h ncurses/curses.h curses.h
15465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15467 echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15475 # Is the header compilable?
15476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 $ac_includes_default
15485 #include <$ac_header>
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489 (eval $ac_compile) 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 ac_header_compiler=yes
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 ac_header_compiler=no
15516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6
15520 # Is the header present?
15521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15523 cat >conftest.$ac_ext <<_ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <$ac_header>
15531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15534 grep -v '^ *+' conftest.er1 >conftest.err
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } >/dev/null; then
15539 if test -s conftest.err; then
15540 ac_cpp_err=$ac_c_preproc_warn_flag
15541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15548 if test -z "$ac_cpp_err"; then
15549 ac_header_preproc=yes
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_header_preproc=no
15556 rm -f conftest.err conftest.$ac_ext
15557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6
15560 # So? What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567 ac_header_preproc=yes
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15584 ## ------------------------------- ##
15585 ## Report this to root@mput.dip.jp ##
15586 ## ------------------------------- ##
15589 sed "s/^/$as_me: WARNING: /" >&2
15592 echo "$as_me:$LINENO: checking for $ac_header" >&5
15593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 eval "$as_ac_Header=\$ac_header_preproc"
15599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15604 cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15614 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15616 *) for i in /usr/include /usr/local/include; do
15617 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15618 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
15619 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
15620 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15627 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15628 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15629 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 ac_check_lib_save_LIBS=$LIBS
15633 LIBS="-lncurses $LIBS"
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15641 /* Override any gcc2 internal prototype to avoid an error. */
15645 /* We use char because int might match the return type of a gcc2
15646 builtin and then its argument prototype would still apply. */
15656 rm -f conftest.$ac_objext conftest$ac_exeext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15658 (eval $ac_link) 2>conftest.er1
15660 grep -v '^ *+' conftest.er1 >conftest.err
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag"
15666 || test ! -s conftest.err'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } &&
15672 { ac_try='test -s conftest$ac_exeext'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
15678 ac_cv_lib_ncurses_initscr=yes
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_cv_lib_ncurses_initscr=no
15685 rm -f conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15689 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15690 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15691 if test $ac_cv_lib_ncurses_initscr = yes; then
15692 lib_curses_opt=-lncurses
15694 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15695 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15696 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 ac_check_lib_save_LIBS=$LIBS
15700 LIBS="-lcurses $lib_user32_test $LIBS"
15701 cat >conftest.$ac_ext <<_ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15708 /* Override any gcc2 internal prototype to avoid an error. */
15712 /* We use char because int might match the return type of a gcc2
15713 builtin and then its argument prototype would still apply. */
15714 char PDC_set_ctrl_break ();
15718 PDC_set_ctrl_break ();
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15725 (eval $ac_link) 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag"
15733 || test ! -s conftest.err'
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); }; } &&
15739 { ac_try='test -s conftest$ac_exeext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_lib_curses_PDC_set_ctrl_break=yes
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ac_cv_lib_curses_PDC_set_ctrl_break=no
15752 rm -f conftest.err conftest.$ac_objext \
15753 conftest$ac_exeext conftest.$ac_ext
15754 LIBS=$ac_check_lib_save_LIBS
15756 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15757 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15758 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15759 lib_curses_opt=-lcurses
15761 cat >>confdefs.h <<\_ACEOF
15762 #define USE_PDCURSES 1
15765 lib_user32_opt="$lib_user32_test"
15768 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15769 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15770 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 ac_check_lib_save_LIBS=$LIBS
15774 LIBS="-lpdcurses $LIBS"
15775 cat >conftest.$ac_ext <<_ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15782 /* Override any gcc2 internal prototype to avoid an error. */
15786 /* We use char because int might match the return type of a gcc2
15787 builtin and then its argument prototype would still apply. */
15788 char PDC_set_ctrl_break ();
15792 PDC_set_ctrl_break ();
15797 rm -f conftest.$ac_objext conftest$ac_exeext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799 (eval $ac_link) 2>conftest.er1
15801 grep -v '^ *+' conftest.er1 >conftest.err
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
15806 { ac_try='test -z "$ac_c_werror_flag"
15807 || test ! -s conftest.err'
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; } &&
15813 { ac_try='test -s conftest$ac_exeext'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; }; then
15819 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15826 rm -f conftest.err conftest.$ac_objext \
15827 conftest$ac_exeext conftest.$ac_ext
15828 LIBS=$ac_check_lib_save_LIBS
15830 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15831 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15832 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15833 lib_curses_opt=-lpdcurses
15835 cat >>confdefs.h <<\_ACEOF
15836 #define USE_PDCURSES 1
15839 lib_user32_opt="$lib_user32_test"
15844 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15845 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15846 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 ac_check_lib_save_LIBS=$LIBS
15850 LIBS="-lcurses $LIBS"
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15858 /* Override any gcc2 internal prototype to avoid an error. */
15862 /* We use char because int might match the return type of a gcc2
15863 builtin and then its argument prototype would still apply. */
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15875 (eval $ac_link) 2>conftest.er1
15877 grep -v '^ *+' conftest.er1 >conftest.err
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_c_werror_flag"
15883 || test ! -s conftest.err'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest$ac_exeext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_cv_lib_curses_initscr=yes
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 ac_cv_lib_curses_initscr=no
15902 rm -f conftest.err conftest.$ac_objext \
15903 conftest$ac_exeext conftest.$ac_ext
15904 LIBS=$ac_check_lib_save_LIBS
15906 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15907 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15908 if test $ac_cv_lib_curses_initscr = yes; then
15909 lib_curses_opt=-lcurses
15911 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15912 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15918 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
15919 lib_curses_opt=libpdcurses.lib
15921 cat >>confdefs.h <<\_ACEOF
15922 #define USE_PDCURSES 1
15926 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15927 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15943 case "x$enable_ncurses" in
15945 cat >> confdefs.h <<EOF
15946 #define IA_NCURSES 1
15952 ENABLE_NCURSES_TRUE=
15953 ENABLE_NCURSES_FALSE='#'
15955 ENABLE_NCURSES_TRUE='#'
15956 ENABLE_NCURSES_FALSE=
15959 LIBS="$LIBS $lib_curses_opt"
15962 EXTRALIBS="$EXTRALIBS -lmytinfo"
15965 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15969 dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
15970 n_so_libs="$lib_curses_opt"
15973 EXTRALIBS="$EXTRALIBS -lmytinfo"
15988 ENABLE_SLANG_FALSE='#'
15990 ENABLE_SLANG_TRUE='#'
15991 ENABLE_SLANG_FALSE=
15994 # Check whether --enable-slang or --disable-slang was given.
15995 if test "${enable_slang+set}" = set; then
15996 enableval="$enable_slang"
15997 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15998 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15999 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 ac_check_lib_save_LIBS=$LIBS
16003 LIBS="-lslang $LIBS"
16004 cat >conftest.$ac_ext <<_ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16011 /* Override any gcc2 internal prototype to avoid an error. */
16015 /* We use char because int might match the return type of a gcc2
16016 builtin and then its argument prototype would still apply. */
16017 char SLang_init_tty ();
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028 (eval $ac_link) 2>conftest.er1
16030 grep -v '^ *+' conftest.er1 >conftest.err
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag"
16036 || test ! -s conftest.err'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest$ac_exeext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_cv_lib_slang_SLang_init_tty=yes
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ac_cv_lib_slang_SLang_init_tty=no
16055 rm -f conftest.err conftest.$ac_objext \
16056 conftest$ac_exeext conftest.$ac_ext
16057 LIBS=$ac_check_lib_save_LIBS
16059 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16060 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16061 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16065 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16066 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16072 for ac_header in slang/slang.h slang.h
16074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16076 echo "$as_me:$LINENO: checking for $ac_header" >&5
16077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16084 # Is the header compilable?
16085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16087 cat >conftest.$ac_ext <<_ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 $ac_includes_default
16094 #include <$ac_header>
16096 rm -f conftest.$ac_objext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098 (eval $ac_compile) 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest.$ac_objext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 ac_header_compiler=yes
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 ac_header_compiler=no
16125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16127 echo "${ECHO_T}$ac_header_compiler" >&6
16129 # Is the header present?
16130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16132 cat >conftest.$ac_ext <<_ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 #include <$ac_header>
16140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16143 grep -v '^ *+' conftest.er1 >conftest.err
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } >/dev/null; then
16148 if test -s conftest.err; then
16149 ac_cpp_err=$ac_c_preproc_warn_flag
16150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16157 if test -z "$ac_cpp_err"; then
16158 ac_header_preproc=yes
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 ac_header_preproc=no
16165 rm -f conftest.err conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16167 echo "${ECHO_T}$ac_header_preproc" >&6
16169 # So? What about this header?
16170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16176 ac_header_preproc=yes
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16193 ## ------------------------------- ##
16194 ## Report this to root@mput.dip.jp ##
16195 ## ------------------------------- ##
16198 sed "s/^/$as_me: WARNING: /" >&2
16201 echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 eval "$as_ac_Header=\$ac_header_preproc"
16208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16213 cat >>confdefs.h <<_ACEOF
16214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16223 case "x$enable_slang" in
16225 cat >> confdefs.h <<EOF
16233 ENABLE_SLANG_FALSE='#'
16235 ENABLE_SLANG_TRUE='#'
16236 ENABLE_SLANG_FALSE=
16239 LIBS="$LIBS -lslang"
16240 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16244 dynamic_targets="$dynamic_targets if_slang.\$(so)"
16245 s_so_libs="-lslang"
16246 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16247 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16248 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 ac_check_lib_save_LIBS=$LIBS
16252 LIBS="-ltermcap $LIBS"
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16260 /* Override any gcc2 internal prototype to avoid an error. */
16264 /* We use char because int might match the return type of a gcc2
16265 builtin and then its argument prototype would still apply. */
16275 rm -f conftest.$ac_objext conftest$ac_exeext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16277 (eval $ac_link) 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag"
16285 || test ! -s conftest.err'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest$ac_exeext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 ac_cv_lib_termcap_initscr=yes
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16302 ac_cv_lib_termcap_initscr=no
16304 rm -f conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16306 LIBS=$ac_check_lib_save_LIBS
16308 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16309 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16310 if test $ac_cv_lib_termcap_initscr = yes; then
16311 s_so_libs="$s_so_libs -ltermcap"
16327 ENABLE_MOTIF_FALSE='#'
16329 ENABLE_MOTIF_TRUE='#'
16330 ENABLE_MOTIF_FALSE=
16333 # Check whether --enable-motif or --disable-motif was given.
16334 if test "${enable_motif+set}" = set; then
16335 enableval="$enable_motif"
16336 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
16337 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16338 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16339 { (exit 1); exit 1; }; }
16341 if test "x$have_xm" != xyes; then
16342 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16343 echo "$as_me: WARNING: Motif library is not found." >&2;}
16348 case "x$enable_motif" in
16350 cat >> confdefs.h <<EOF
16358 ENABLE_MOTIF_FALSE='#'
16360 ENABLE_MOTIF_TRUE='#'
16361 ENABLE_MOTIF_FALSE=
16366 lib_xext_opt=-lXext
16367 if test "x$have_xprelibs" = xyes; then
16368 lib_xprelibs_opt='-lSM -lICE'
16370 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16374 dynamic_targets="$dynamic_targets if_motif.\$(so)"
16375 if test x$have_xprelibs = xyes; then
16376 m_so_libs="-lXext -lSM -lICE"
16378 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16392 ENABLE_TCLTK_FALSE='#'
16394 ENABLE_TCLTK_TRUE='#'
16395 ENABLE_TCLTK_FALSE=
16398 # Check whether --enable-tcltk or --disable-tcltk was given.
16399 if test "${enable_tcltk+set}" = set; then
16400 enableval="$enable_tcltk"
16401 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
16402 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16403 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16404 { (exit 1); exit 1; }; }
16407 KEEPCPPFLAGS=$CPPFLAGS
16408 KEEPLDFLAGS=$LDFLAGS
16411 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16412 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16413 LIBS="$LIBS $lib_dl_opt"
16417 for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16418 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16419 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16420 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16421 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 ac_check_lib_save_LIBS=$LIBS
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16433 /* Override any gcc2 internal prototype to avoid an error. */
16437 /* We use char because int might match the return type of a gcc2
16438 builtin and then its argument prototype would still apply. */
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16450 (eval $ac_link) 2>conftest.er1
16452 grep -v '^ *+' conftest.er1 >conftest.err
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
16457 { ac_try='test -z "$ac_c_werror_flag"
16458 || test ! -s conftest.err'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest$ac_exeext'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16470 eval "$as_ac_Lib=yes"
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 eval "$as_ac_Lib=no"
16477 rm -f conftest.err conftest.$ac_objext \
16478 conftest$ac_exeext conftest.$ac_ext
16479 LIBS=$ac_check_lib_save_LIBS
16481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16482 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16483 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16488 LIBS="$LIBS $tcl_lib"
16489 for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16490 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16491 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16492 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16493 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16496 ac_check_lib_save_LIBS=$LIBS
16498 cat >conftest.$ac_ext <<_ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16505 /* Override any gcc2 internal prototype to avoid an error. */
16509 /* We use char because int might match the return type of a gcc2
16510 builtin and then its argument prototype would still apply. */
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16522 (eval $ac_link) 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag"
16530 || test ! -s conftest.err'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 eval "$as_ac_Lib=yes"
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 eval "$as_ac_Lib=no"
16549 rm -f conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16554 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16555 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16562 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16563 CPPFLAGS=$KEEPCPPFLAGS
16564 LDFLAGS=$KEEPLDFLAGS
16566 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16567 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16569 tcltk_dep='tclIndex'
16573 case "x$enable_tcltk" in
16575 cat >> confdefs.h <<EOF
16583 ENABLE_TCLTK_FALSE='#'
16585 ENABLE_TCLTK_TRUE='#'
16586 ENABLE_TCLTK_FALSE=
16589 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16592 EXTRALIBS="$EXTRALIBS -lipc"
16595 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16599 dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
16600 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16603 k_so_libs="$k_so_libs -lipc"
16606 k_so_libs="$k_so_libs -lX11 -lm"
16617 if test "x$enable_tcltk" = "xdynamic"; then
16618 ENABLE_DYNAMIC_TCLTK_TRUE=
16619 ENABLE_DYNAMIC_TCLTK_FALSE='#'
16621 ENABLE_DYNAMIC_TCLTK_TRUE='#'
16622 ENABLE_DYNAMIC_TCLTK_FALSE=
16630 ENABLE_EMACS_FALSE='#'
16632 ENABLE_EMACS_TRUE='#'
16633 ENABLE_EMACS_FALSE=
16636 # Check whether --enable-emacs or --disable-emacs was given.
16637 if test "${enable_emacs+set}" = set; then
16638 enableval="$enable_emacs"
16639 case "x$enable_emacs" in xyes|xdynamic) ;; esac
16641 case "x$enable_emacs" in
16643 cat >> confdefs.h <<EOF
16651 ENABLE_EMACS_FALSE='#'
16653 ENABLE_EMACS_TRUE='#'
16654 ENABLE_EMACS_FALSE=
16657 ELFILES="$ELFILES timidity.el"
16658 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16662 dynamic_targets="$dynamic_targets if_emacs.\$(so)"
16663 ELFILES="$ELFILES timidity.el"
16676 ENABLE_VT100_FALSE='#'
16678 ENABLE_VT100_TRUE='#'
16679 ENABLE_VT100_FALSE=
16682 # Check whether --enable-vt100 or --disable-vt100 was given.
16683 if test "${enable_vt100+set}" = set; then
16684 enableval="$enable_vt100"
16685 case "x$enable_vt100" in xyes|xdynamic) ;; esac
16687 case "x$enable_vt100" in
16689 cat >> confdefs.h <<EOF
16697 ENABLE_VT100_FALSE='#'
16699 ENABLE_VT100_TRUE='#'
16700 ENABLE_VT100_FALSE=
16703 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16706 dynamic_targets="$dynamic_targets if_vt100.\$(so)"
16720 ENABLE_XAW_FALSE='#'
16722 ENABLE_XAW_TRUE='#'
16726 # Check whether --enable-xaw or --disable-xaw was given.
16727 if test "${enable_xaw+set}" = set; then
16728 enableval="$enable_xaw"
16729 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
16730 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16731 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16732 { (exit 1); exit 1; }; }
16734 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16735 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16736 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16740 case "x$enable_xaw" in
16742 cat >> confdefs.h <<EOF
16750 ENABLE_XAW_FALSE='#'
16752 ENABLE_XAW_TRUE='#'
16756 if test "x$have_xext" = xyes; then
16757 lib_xext_opt=-lXext
16759 if test "x$have_xprelibs" = xyes; then
16760 lib_xprelibs_opt='-lSM -lICE'
16764 if test "x$have_xaw" = x3d; then
16766 cat >>confdefs.h <<\_ACEOF
16770 lib_xaw_opt=-lXaw3d
16774 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16778 dynamic_targets="$dynamic_targets if_xaw.\$(so)"
16779 if test "x$have_xext" = xyes; then
16780 a_so_libs="-lXext -lX11"
16786 a_so_libs="$a_so_libs -lcc_dynamic"
16789 if test "x$have_xprelibs" = xyes; then
16790 a_so_libs="-lSM -lICE $a_so_libs"
16792 if test "x$have_xaw" = xyes; then
16793 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16794 elif test "x$have_xaw" = x3d; then
16796 cat >>confdefs.h <<\_ACEOF
16800 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16802 a_so_libs="$ldflags_x_opt $a_so_libs"
16813 if test "x$enable_xaw" = "xdynamic"; then
16814 ENABLE_DYNAMIC_XAW_TRUE=
16815 ENABLE_DYNAMIC_XAW_FALSE='#'
16817 ENABLE_DYNAMIC_XAW_TRUE='#'
16818 ENABLE_DYNAMIC_XAW_FALSE=
16826 ENABLE_XSKIN_FALSE='#'
16828 ENABLE_XSKIN_TRUE='#'
16829 ENABLE_XSKIN_FALSE=
16832 # Check whether --enable-xskin or --disable-xskin was given.
16833 if test "${enable_xskin+set}" = set; then
16834 enableval="$enable_xskin"
16835 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
16836 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16837 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16838 { (exit 1); exit 1; }; }
16842 case "x$enable_xskin" in
16844 cat >> confdefs.h <<EOF
16852 ENABLE_XSKIN_FALSE='#'
16854 ENABLE_XSKIN_TRUE='#'
16855 ENABLE_XSKIN_FALSE=
16858 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16861 dynamic_targets="$dynamic_targets if_xskin.\$(so)"
16862 i_so_libs="$ldflags_x_opt -lX11"
16875 ENABLE_GTK_FALSE='#'
16877 ENABLE_GTK_TRUE='#'
16881 # Check whether --enable-gtk or --disable-gtk was given.
16882 if test "${enable_gtk+set}" = set; then
16883 enableval="$enable_gtk"
16884 case "x$enable_gtk" in xyes|xdynamic) # Check whether --enable-gtktest or --disable-gtktest was given.
16885 if test "${enable_gtktest+set}" = set; then
16886 enableval="$enable_gtktest"
16892 pkg_config_args=gtk+-2.0
16897 pkg_config_args="$pkg_config_args gthread-2.0"
16904 # Extract the first word of "pkg-config", so it can be a program name with args.
16905 set dummy pkg-config; ac_word=$2
16906 echo "$as_me:$LINENO: checking for $ac_word" >&5
16907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16908 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 case $PKG_CONFIG in
16913 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16917 for as_dir in $PATH
16920 test -z "$as_dir" && as_dir=.
16921 for ac_exec_ext in '' $ac_executable_extensions; do
16922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16923 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16930 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16934 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16936 if test -n "$PKG_CONFIG"; then
16937 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
16938 echo "${ECHO_T}$PKG_CONFIG" >&6
16940 echo "$as_me:$LINENO: result: no" >&5
16941 echo "${ECHO_T}no" >&6
16945 if test x$PKG_CONFIG != xno ; then
16946 if pkg-config --atleast-pkgconfig-version 0.7 ; then
16949 echo *** pkg-config too old; version 0.7 or better required.
16957 min_gtk_version=2.0.0
16958 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
16959 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
16961 if test x$PKG_CONFIG != xno ; then
16962 ## don't try to run the test against uninstalled libtool libs
16963 if $PKG_CONFIG --uninstalled $pkg_config_args; then
16964 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
16968 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
16975 if test x"$no_gtk" = x ; then
16976 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
16977 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
16978 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
16979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16980 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
16981 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16982 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
16983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16984 if test "x$enable_gtktest" = "xyes" ; then
16985 ac_save_CFLAGS="$CFLAGS"
16986 ac_save_LIBS="$LIBS"
16987 CFLAGS="$CFLAGS $GTK_CFLAGS"
16988 LIBS="$GTK_LIBS $LIBS"
16990 if test "$cross_compiling" = yes; then
16991 echo $ac_n "cross compiling; assumed OK... $ac_c"
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
17000 #include <gtk/gtk.h>
17002 #include <stdlib.h>
17007 int major, minor, micro;
17010 system ("touch conf.gtktest");
17012 /* HP/UX 9 (%@#!) writes to sscanf strings */
17013 tmp_version = g_strdup("$min_gtk_version");
17014 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17015 printf("%s, bad version string\n", "$min_gtk_version");
17019 if ((gtk_major_version != $gtk_config_major_version) ||
17020 (gtk_minor_version != $gtk_config_minor_version) ||
17021 (gtk_micro_version != $gtk_config_micro_version))
17023 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17024 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17025 gtk_major_version, gtk_minor_version, gtk_micro_version);
17026 printf ("*** was found! If pkg-config was correct, then it is best\n");
17027 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17028 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17029 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17030 printf("*** required on your system.\n");
17031 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17032 printf("*** to point to the correct configuration files\n");
17034 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17035 (gtk_minor_version != GTK_MINOR_VERSION) ||
17036 (gtk_micro_version != GTK_MICRO_VERSION))
17038 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17039 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17040 printf("*** library (version %d.%d.%d)\n",
17041 gtk_major_version, gtk_minor_version, gtk_micro_version);
17045 if ((gtk_major_version > major) ||
17046 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17047 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17053 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17054 gtk_major_version, gtk_minor_version, gtk_micro_version);
17055 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17056 major, minor, micro);
17057 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17059 printf("*** If you have already installed a sufficiently new version, this error\n");
17060 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17061 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17062 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17063 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17064 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17065 printf("*** so that the correct libraries are found at run-time))\n");
17072 rm -f conftest$ac_exeext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074 (eval $ac_link) 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17085 echo "$as_me: program exited with status $ac_status" >&5
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17089 ( exit $ac_status )
17092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17094 CFLAGS="$ac_save_CFLAGS"
17095 LIBS="$ac_save_LIBS"
17098 if test "x$no_gtk" = x ; then
17099 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17100 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
17102 cat >>confdefs.h <<\_ACEOF
17103 #define HAVE_GTK_2 1
17107 echo "$as_me:$LINENO: result: no" >&5
17108 echo "${ECHO_T}no" >&6
17109 if test "$PKG_CONFIG" = "no" ; then
17110 echo "*** A new enough version of pkg-config was not found."
17111 echo "*** See http://pkgconfig.sourceforge.net"
17113 if test -f conf.gtktest ; then
17116 echo "*** Could not run GTK+ test program, checking why..."
17117 ac_save_CFLAGS="$CFLAGS"
17118 ac_save_LIBS="$LIBS"
17119 CFLAGS="$CFLAGS $GTK_CFLAGS"
17120 LIBS="$LIBS $GTK_LIBS"
17121 cat >conftest.$ac_ext <<_ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17128 #include <gtk/gtk.h>
17134 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17141 (eval $ac_link) 2>conftest.er1
17143 grep -v '^ *+' conftest.er1 >conftest.err
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
17148 { ac_try='test -z "$ac_c_werror_flag"
17149 || test ! -s conftest.err'
17150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; } &&
17155 { ac_try='test -s conftest$ac_exeext'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; }; then
17161 echo "*** The test program compiled, but did not run. This usually means"
17162 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17163 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17164 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17165 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17166 echo "*** is required on your system"
17168 echo "*** If you have an old version installed, it is best to remove it, although"
17169 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 echo "*** The test program failed to compile or link. See the file config.log for the"
17175 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17177 rm -f conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179 CFLAGS="$ac_save_CFLAGS"
17180 LIBS="$ac_save_LIBS"
17186 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17187 if test "${with_gtk_prefix+set}" = set; then
17188 withval="$with_gtk_prefix"
17189 gtk_config_prefix="$withval"
17191 gtk_config_prefix=""
17194 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17195 if test "${with_gtk_exec_prefix+set}" = set; then
17196 withval="$with_gtk_exec_prefix"
17197 gtk_config_exec_prefix="$withval"
17199 gtk_config_exec_prefix=""
17201 # Check whether --enable-gtktest or --disable-gtktest was given.
17202 if test "${enable_gtktest+set}" = set; then
17203 enableval="$enable_gtktest"
17213 gtk_config_args="$gtk_config_args gthread"
17218 if test x$gtk_config_exec_prefix != x ; then
17219 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17220 if test x${GTK_CONFIG+set} != xset ; then
17221 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17224 if test x$gtk_config_prefix != x ; then
17225 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17226 if test x${GTK_CONFIG+set} != xset ; then
17227 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17231 # Extract the first word of "gtk-config", so it can be a program name with args.
17232 set dummy gtk-config; ac_word=$2
17233 echo "$as_me:$LINENO: checking for $ac_word" >&5
17234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17235 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 case $GTK_CONFIG in
17240 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17244 for as_dir in $PATH
17247 test -z "$as_dir" && as_dir=.
17248 for ac_exec_ext in '' $ac_executable_extensions; do
17249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17250 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17257 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17261 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17263 if test -n "$GTK_CONFIG"; then
17264 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17265 echo "${ECHO_T}$GTK_CONFIG" >&6
17267 echo "$as_me:$LINENO: result: no" >&5
17268 echo "${ECHO_T}no" >&6
17271 min_gtk_version=1.1.3
17272 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17273 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17275 if test "$GTK_CONFIG" = "no" ; then
17278 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17279 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17280 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17281 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17282 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17284 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17285 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17286 if test "x$enable_gtktest" = "xyes" ; then
17287 ac_save_CFLAGS="$CFLAGS"
17288 ac_save_LIBS="$LIBS"
17289 CFLAGS="$CFLAGS $GTK_CFLAGS"
17290 LIBS="$GTK_LIBS $LIBS"
17292 if test "$cross_compiling" = yes; then
17293 echo $ac_n "cross compiling; assumed OK... $ac_c"
17295 cat >conftest.$ac_ext <<_ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17302 #include <gtk/gtk.h>
17304 #include <stdlib.h>
17309 int major, minor, micro;
17312 system ("touch conf.gtktest");
17314 /* HP/UX 9 (%@#!) writes to sscanf strings */
17315 tmp_version = g_strdup("$min_gtk_version");
17316 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17317 printf("%s, bad version string\n", "$min_gtk_version");
17321 if ((gtk_major_version != $gtk_config_major_version) ||
17322 (gtk_minor_version != $gtk_config_minor_version) ||
17323 (gtk_micro_version != $gtk_config_micro_version))
17325 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17326 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17327 gtk_major_version, gtk_minor_version, gtk_micro_version);
17328 printf ("*** was found! If gtk-config was correct, then it is best\n");
17329 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17330 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17331 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17332 printf("*** required on your system.\n");
17333 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17334 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17335 printf("*** before re-running configure\n");
17337 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17338 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17339 (gtk_minor_version != GTK_MINOR_VERSION) ||
17340 (gtk_micro_version != GTK_MICRO_VERSION))
17342 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17343 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17344 printf("*** library (version %d.%d.%d)\n",
17345 gtk_major_version, gtk_minor_version, gtk_micro_version);
17347 #endif /* defined (GTK_MAJOR_VERSION) ... */
17350 if ((gtk_major_version > major) ||
17351 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17352 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17358 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17359 gtk_major_version, gtk_minor_version, gtk_micro_version);
17360 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17361 major, minor, micro);
17362 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17364 printf("*** If you have already installed a sufficiently new version, this error\n");
17365 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17366 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17367 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17368 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17369 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17370 printf("*** so that the correct libraries are found at run-time))\n");
17377 rm -f conftest$ac_exeext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379 (eval $ac_link) 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17390 echo "$as_me: program exited with status $ac_status" >&5
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ( exit $ac_status )
17397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17399 CFLAGS="$ac_save_CFLAGS"
17400 LIBS="$ac_save_LIBS"
17403 if test "x$no_gtk" = x ; then
17404 echo "$as_me:$LINENO: result: yes" >&5
17405 echo "${ECHO_T}yes" >&6
17408 echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6
17410 if test "$GTK_CONFIG" = "no" ; then
17411 echo "*** The gtk-config script installed by GTK could not be found"
17412 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17413 echo "*** your path, or set the GTK_CONFIG environment variable to the"
17414 echo "*** full path to gtk-config."
17416 if test -f conf.gtktest ; then
17419 echo "*** Could not run GTK test program, checking why..."
17420 CFLAGS="$CFLAGS $GTK_CFLAGS"
17421 LIBS="$LIBS $GTK_LIBS"
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17429 #include <gtk/gtk.h>
17435 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17440 rm -f conftest.$ac_objext conftest$ac_exeext
17441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17442 (eval $ac_link) 2>conftest.er1
17444 grep -v '^ *+' conftest.er1 >conftest.err
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
17449 { ac_try='test -z "$ac_c_werror_flag"
17450 || test ! -s conftest.err'
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest$ac_exeext'
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; }; then
17462 echo "*** The test program compiled, but did not run. This usually means"
17463 echo "*** that the run-time linker is not finding GTK or finding the wrong"
17464 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17465 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17466 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17467 echo "*** is required on your system"
17469 echo "*** If you have an old version installed, it is best to remove it, although"
17470 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17472 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17473 echo "*** came with the system with the command"
17475 echo "*** rpm --erase --nodeps gtk gtk-devel"
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 echo "*** The test program failed to compile or link. See the file config.log for the"
17481 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17482 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17483 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17485 rm -f conftest.err conftest.$ac_objext \
17486 conftest$ac_exeext conftest.$ac_ext
17487 CFLAGS="$ac_save_CFLAGS"
17488 LIBS="$ac_save_LIBS"
17505 case "x$enable_gtk" in
17507 cat >> confdefs.h <<EOF
17515 ENABLE_GTK_FALSE='#'
17517 ENABLE_GTK_TRUE='#'
17521 LIBS="$LIBS $GTK_LIBS"
17522 for f in $GTK_CFLAGS; do
17524 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17525 *) CFLAGS="$CPPFLAGS $f" ;;
17529 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17533 dynamic_targets="$dynamic_targets if_gtk.\$(so)"
17534 if test "x$GCC" = xyes; then
17535 for i in $GTK_LIBS; do
17538 *) g_so_libs="$g_so_libs $i" ;;
17542 g_so_libs="$GTK_LIBS"
17544 for f in $GTK_CFLAGS; do
17546 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17547 *) CFLAGS="$CPPFLAGS $f" ;;
17562 ENABLE_SERVER_TRUE=
17563 ENABLE_SERVER_FALSE='#'
17565 ENABLE_SERVER_TRUE='#'
17566 ENABLE_SERVER_FALSE=
17569 # Check whether --enable-server or --disable-server was given.
17570 if test "${enable_server+set}" = set; then
17571 enableval="$enable_server"
17572 case "x$enable_server" in xyes|xdynamic) ;; esac
17574 case "x$enable_server" in
17576 cat >> confdefs.h <<EOF
17577 #define IA_SERVER 1
17583 ENABLE_SERVER_TRUE=
17584 ENABLE_SERVER_FALSE='#'
17586 ENABLE_SERVER_TRUE='#'
17587 ENABLE_SERVER_FALSE=
17590 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17592 for ac_header in sys/soundcard.h
17594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17596 echo "$as_me:$LINENO: checking for $ac_header" >&5
17597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17604 # Is the header compilable?
17605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17607 cat >conftest.$ac_ext <<_ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17613 $ac_includes_default
17614 #include <$ac_header>
17616 rm -f conftest.$ac_objext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618 (eval $ac_compile) 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest.$ac_objext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_header_compiler=yes
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ac_header_compiler=no
17645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17647 echo "${ECHO_T}$ac_header_compiler" >&6
17649 # Is the header present?
17650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 #include <$ac_header>
17660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17663 grep -v '^ *+' conftest.er1 >conftest.err
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } >/dev/null; then
17668 if test -s conftest.err; then
17669 ac_cpp_err=$ac_c_preproc_warn_flag
17670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17677 if test -z "$ac_cpp_err"; then
17678 ac_header_preproc=yes
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 ac_header_preproc=no
17685 rm -f conftest.err conftest.$ac_ext
17686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17687 echo "${ECHO_T}$ac_header_preproc" >&6
17689 # So? What about this header?
17690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17696 ac_header_preproc=yes
17699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17713 ## ------------------------------- ##
17714 ## Report this to root@mput.dip.jp ##
17715 ## ------------------------------- ##
17718 sed "s/^/$as_me: WARNING: /" >&2
17721 echo "$as_me:$LINENO: checking for $ac_header" >&5
17722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 eval "$as_ac_Header=\$ac_header_preproc"
17728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17733 cat >>confdefs.h <<_ACEOF
17734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17744 dynamic_targets="$dynamic_targets if_server.\$(so)"
17757 ENABLE_ALSASEQ_TRUE=
17758 ENABLE_ALSASEQ_FALSE='#'
17760 ENABLE_ALSASEQ_TRUE='#'
17761 ENABLE_ALSASEQ_FALSE=
17764 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17765 if test "${enable_alsaseq+set}" = set; then
17766 enableval="$enable_alsaseq"
17767 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
17769 case "x$enable_alsaseq" in
17771 cat >> confdefs.h <<EOF
17772 #define IA_ALSASEQ 1
17778 ENABLE_ALSASEQ_TRUE=
17779 ENABLE_ALSASEQ_FALSE='#'
17781 ENABLE_ALSASEQ_TRUE='#'
17782 ENABLE_ALSASEQ_FALSE=
17785 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17786 alsa_save_CFLAGS="$CFLAGS"
17787 alsa_save_LDFLAGS="$LDFLAGS"
17788 alsa_save_LIBS="$LIBS"
17792 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17793 if test "${with_alsa_prefix+set}" = set; then
17794 withval="$with_alsa_prefix"
17795 alsa_prefix="$withval"
17801 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17802 if test "${with_alsa_inc_prefix+set}" = set; then
17803 withval="$with_alsa_inc_prefix"
17804 alsa_inc_prefix="$withval"
17809 # Check whether --enable-alsatest or --disable-alsatest was given.
17810 if test "${enable_alsatest+set}" = set; then
17811 enableval="$enable_alsatest"
17814 enable_alsatest=yes
17817 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17818 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17819 if test "$alsa_inc_prefix" != "" ; then
17820 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17821 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17823 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17824 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17826 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17827 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17828 if test "$alsa_prefix" != "" ; then
17829 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17830 LDFLAGS="$LDFLAGS $ALSA_LIBS"
17833 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17834 LIBS=`echo $LIBS | sed 's/-lm//'`
17835 LIBS=`echo $LIBS | sed 's/-ldl//'`
17836 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17837 LIBS=`echo $LIBS | sed 's/ //'`
17838 LIBS="$ALSA_LIBS $LIBS"
17839 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17840 echo "${ECHO_T}$ALSA_LIBS" >&6
17842 min_alsa_version=0.1.1
17843 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17844 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17846 alsa_min_major_version=`echo $min_alsa_version | \
17847 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17848 alsa_min_minor_version=`echo $min_alsa_version | \
17849 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17850 alsa_min_micro_version=`echo $min_alsa_version | \
17851 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17857 ac_cpp='$CPP $CPPFLAGS'
17858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17862 cat >conftest.$ac_ext <<_ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17869 #include <alsa/asoundlib.h>
17875 /* ensure backward compatibility */
17876 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17877 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17879 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17880 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17882 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17883 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17886 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17889 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17890 # error not present
17893 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17896 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17897 # error not present
17900 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17901 # error not present
17911 rm -f conftest.$ac_objext
17912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17913 (eval $ac_compile) 2>conftest.er1
17915 grep -v '^ *+' conftest.er1 >conftest.err
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try='test -z "$ac_c_werror_flag"
17921 || test ! -s conftest.err'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } &&
17927 { ac_try='test -s conftest.$ac_objext'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; }; then
17933 echo "$as_me:$LINENO: result: found." >&5
17934 echo "${ECHO_T}found." >&6
17936 echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17939 cat >conftest.$ac_ext <<_ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17946 #include <sys/asoundlib.h>
17952 /* ensure backward compatibility */
17953 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17954 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17956 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17957 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17959 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17960 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17963 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17966 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17967 # error not present
17970 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17973 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17974 # error not present
17977 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17978 # error not present
17988 rm -f conftest.$ac_objext
17989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17990 (eval $ac_compile) 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_c_werror_flag"
17998 || test ! -s conftest.err'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try='test -s conftest.$ac_objext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 echo "$as_me:$LINENO: result: found." >&5
18011 echo "${ECHO_T}found." >&6
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 echo "$as_me:$LINENO: result: not present." >&5
18017 echo "${ECHO_T}not present." >&6
18018 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18019 echo "${ECHO_T}libasound was not found anywhere." >&6
18022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18023 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18024 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18029 ac_cpp='$CPP $CPPFLAGS'
18030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18036 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18037 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18038 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 ac_check_lib_save_LIBS=$LIBS
18042 LIBS="-lasound $LIBS"
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18050 /* Override any gcc2 internal prototype to avoid an error. */
18054 /* We use char because int might match the return type of a gcc2
18055 builtin and then its argument prototype would still apply. */
18056 char snd_ctl_open ();
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067 (eval $ac_link) 2>conftest.er1
18069 grep -v '^ *+' conftest.er1 >conftest.err
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag"
18075 || test ! -s conftest.err'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest$ac_exeext'
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; }; then
18087 ac_cv_lib_asound_snd_ctl_open=yes
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18092 ac_cv_lib_asound_snd_ctl_open=no
18094 rm -f conftest.err conftest.$ac_objext \
18095 conftest$ac_exeext conftest.$ac_ext
18096 LIBS=$ac_check_lib_save_LIBS
18098 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18099 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18100 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18101 cat >>confdefs.h <<_ACEOF
18102 #define HAVE_LIBASOUND 1
18105 LIBS="-lasound $LIBS"
18108 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18109 echo "${ECHO_T}No linkable libasound was found." >&6
18115 if test "x$alsa_found" = "xyes" ; then
18117 LIBS=`echo $LIBS | sed 's/-lasound//g'`
18118 LIBS=`echo $LIBS | sed 's/ //'`
18119 LIBS="-lasound $LIBS"
18122 CFLAGS="$alsa_save_CFLAGS"
18123 LDFLAGS="$alsa_save_LDFLAGS"
18124 LIBS="$alsa_save_LIBS"
18135 dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
18148 ENABLE_WINSYN_TRUE=
18149 ENABLE_WINSYN_FALSE='#'
18151 ENABLE_WINSYN_TRUE='#'
18152 ENABLE_WINSYN_FALSE=
18155 # Check whether --enable-winsyn or --disable-winsyn was given.
18156 if test "${enable_winsyn+set}" = set; then
18157 enableval="$enable_winsyn"
18158 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
18160 case "x$enable_winsyn" in
18162 cat >> confdefs.h <<EOF
18163 #define IA_WINSYN 1
18169 ENABLE_WINSYN_TRUE=
18170 ENABLE_WINSYN_FALSE='#'
18172 ENABLE_WINSYN_TRUE='#'
18173 ENABLE_WINSYN_FALSE=
18176 WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18179 dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
18192 ENABLE_PORTMIDISYN_TRUE=
18193 ENABLE_PORTMIDISYN_FALSE='#'
18195 ENABLE_PORTMIDISYN_TRUE='#'
18196 ENABLE_PORTMIDISYN_FALSE=
18199 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18200 if test "${enable_portmidisyn+set}" = set; then
18201 enableval="$enable_portmidisyn"
18202 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
18204 case "x$enable_portmidisyn" in
18206 cat >> confdefs.h <<EOF
18207 #define IA_PORTMIDISYN 1
18213 ENABLE_PORTMIDISYN_TRUE=
18214 ENABLE_PORTMIDISYN_FALSE='#'
18216 ENABLE_PORTMIDISYN_TRUE='#'
18217 ENABLE_PORTMIDISYN_FALSE=
18220 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18223 dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
18236 ENABLE_W32G_SYN_TRUE=
18237 ENABLE_W32G_SYN_FALSE='#'
18239 ENABLE_W32G_SYN_TRUE='#'
18240 ENABLE_W32G_SYN_FALSE=
18243 # Check whether --enable-winsyng or --disable-winsyng was given.
18244 if test "${enable_winsyng+set}" = set; then
18245 enableval="$enable_winsyng"
18246 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
18248 case "x$enable_winsyng" in
18250 cat >> confdefs.h <<EOF
18251 #define IA_W32G_SYN 1
18257 ENABLE_W32G_SYN_TRUE=
18258 ENABLE_W32G_SYN_FALSE='#'
18260 ENABLE_W32G_SYN_TRUE='#'
18261 ENABLE_W32G_SYN_FALSE=
18266 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
18267 INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18268 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18269 lib_user32_opt='user32.lib'
18270 if test "x$VCPP" = xyes; then
18271 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18273 if test "x$BORLANDC" = xyes; then
18274 BORLANDC_START='C0W32.OBJ'
18275 CFLAGS="$CFLAGS -tW"
18276 lib_w32gui_opt="-aa $lib_w32gui_opt"
18278 if test "x$WATCOM_C" = xyes; then
18279 CFLAGS="$CFLAGS -bw"
18280 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18282 if test "x$DMC" = xyes; then
18284 lib_w32gui_opt="$lib_w32gui_opt -L/exet:nt/su:windows:4.0"
18287 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18288 lib_user32_opt='-luser32'
18289 LDFLAGS="-mwindows $LDFLAGS"
18290 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"
18295 dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
18309 ENABLE_W32GUI_TRUE=
18310 ENABLE_W32GUI_FALSE='#'
18312 ENABLE_W32GUI_TRUE='#'
18313 ENABLE_W32GUI_FALSE=
18316 # Check whether --enable-w32gui or --disable-w32gui was given.
18317 if test "${enable_w32gui+set}" = set; then
18318 enableval="$enable_w32gui"
18319 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
18321 case "x$enable_w32gui" in
18323 cat >> confdefs.h <<EOF
18324 #define IA_W32GUI 1
18330 ENABLE_W32GUI_TRUE=
18331 ENABLE_W32GUI_FALSE='#'
18333 ENABLE_W32GUI_TRUE='#'
18334 ENABLE_W32GUI_FALSE=
18339 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
18340 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c wrdt_w32g.c w32g_mag.c"
18341 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18342 lib_user32_opt='user32.lib'
18343 if test "x$VCPP" = xyes; then
18344 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18346 if test "x$BORLANDC" = xyes; then
18347 BORLANDC_START='C0W32.OBJ'
18348 CFLAGS="$CFLAGS -tW"
18349 lib_w32gui_opt="-aa $lib_w32gui_opt"
18351 if test "x$WATCOM_C" = xyes; then
18352 CFLAGS="$CFLAGS -bw"
18353 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18355 if test "x$DMC" = xyes; then
18356 lib_w32gui_opt="$lib_w32gui_opt -L/SU:window"
18360 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18361 lib_user32_opt='-luser32'
18362 LDFLAGS="-mwindows $LDFLAGS"
18363 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"
18368 dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
18381 ENABLE_PLUGIN_TRUE=
18382 ENABLE_PLUGIN_FALSE='#'
18384 ENABLE_PLUGIN_TRUE='#'
18385 ENABLE_PLUGIN_FALSE=
18388 # Check whether --enable-ump or --disable-ump was given.
18389 if test "${enable_ump+set}" = set; then
18390 enableval="$enable_ump"
18391 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
18392 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
18393 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
18394 { (exit 1); exit 1; }; }
18396 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18397 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18398 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18399 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18402 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18403 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18405 # Is the header compilable?
18406 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18407 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 $ac_includes_default
18415 #include <X11/xpm.h>
18417 rm -f conftest.$ac_objext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419 (eval $ac_compile) 2>conftest.er1
18421 grep -v '^ *+' conftest.er1 >conftest.err
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } &&
18426 { ac_try='test -z "$ac_c_werror_flag"
18427 || test ! -s conftest.err'
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest.$ac_objext'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_header_compiler=yes
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ac_header_compiler=no
18446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18448 echo "${ECHO_T}$ac_header_compiler" >&6
18450 # Is the header present?
18451 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18452 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18453 cat >conftest.$ac_ext <<_ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 #include <X11/xpm.h>
18461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18464 grep -v '^ *+' conftest.er1 >conftest.err
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } >/dev/null; then
18469 if test -s conftest.err; then
18470 ac_cpp_err=$ac_c_preproc_warn_flag
18471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18478 if test -z "$ac_cpp_err"; then
18479 ac_header_preproc=yes
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 ac_header_preproc=no
18486 rm -f conftest.err conftest.$ac_ext
18487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18488 echo "${ECHO_T}$ac_header_preproc" >&6
18490 # So? What about this header?
18491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18493 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18494 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18495 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18496 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18497 ac_header_preproc=yes
18500 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18501 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
18503 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18505 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
18507 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18508 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18509 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18510 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18511 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18514 ## ------------------------------- ##
18515 ## Report this to root@mput.dip.jp ##
18516 ## ------------------------------- ##
18519 sed "s/^/$as_me: WARNING: /" >&2
18522 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18523 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18524 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18527 ac_cv_header_X11_xpm_h=$ac_header_preproc
18529 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18530 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18533 if test $ac_cv_header_X11_xpm_h = yes; then
18536 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18537 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18538 { (exit 1); exit 1; }; }
18542 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18543 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18544 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 ac_check_lib_save_LIBS=$LIBS
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18556 /* Override any gcc2 internal prototype to avoid an error. */
18560 /* We use char because int might match the return type of a gcc2
18561 builtin and then its argument prototype would still apply. */
18562 char XpmCreatePixmapFromData ();
18566 XpmCreatePixmapFromData ();
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573 (eval $ac_link) 2>conftest.er1
18575 grep -v '^ *+' conftest.er1 >conftest.err
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } &&
18580 { ac_try='test -z "$ac_c_werror_flag"
18581 || test ! -s conftest.err'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; } &&
18587 { ac_try='test -s conftest$ac_exeext'
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
18593 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18600 rm -f conftest.err conftest.$ac_objext \
18601 conftest$ac_exeext conftest.$ac_ext
18602 LIBS=$ac_check_lib_save_LIBS
18604 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18605 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18606 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18609 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18610 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18611 { (exit 1); exit 1; }; }
18614 if test "x$have_xext" = xyes; then
18615 lib_xext_opt=-lXext
18617 if test "x$have_xprelibs" = xyes; then
18618 lib_xprelibs_opt='-lSM -lICE'
18624 case "x$enable_ump" in
18626 cat >> confdefs.h <<EOF
18627 #define IA_PLUGIN 1
18633 ENABLE_PLUGIN_TRUE=
18634 ENABLE_PLUGIN_FALSE='#'
18636 ENABLE_PLUGIN_TRUE='#'
18637 ENABLE_PLUGIN_FALSE=
18643 dynamic_targets="$dynamic_targets if_ump.\$(so)"
18653 # Check whether --enable-windrv or --disable-windrv was given.
18654 if test "${enable_windrv+set}" = set; then
18655 enableval="$enable_windrv"
18656 if test "$enableval" = "yes"; then
18657 if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$DMC" != "xyes"; then
18658 { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom and Digital Mars" >&5
18659 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom and Digital Mars" >&2;}
18660 { (exit 1); exit 1; }; }
18661 elif test "x$WINSYN" != "xyes"; then
18662 { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
18663 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
18664 { (exit 1); exit 1; }; }
18667 cat >>confdefs.h <<\_ACEOF
18672 if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
18673 if test "x$DMC" = "xyes"; then DLLFLAG="-WD" ;fi
18674 CFLAGS="$CFLAGS -DANOTHER_MAIN "
18678 CFLAGS="$CFLAGS $DLLFLAG "
18680 # Check whether --enable-offix or --disable-offix was given.
18681 if test "${enable_offix+set}" = set; then
18682 enableval="$enable_offix"
18683 if test "$enableval" = "yes"; then
18684 KEEPCPPFLAGS=$CPPFLAGS
18686 KEEPLDFLAGS=$LDFLAGS
18687 CPPFLAGS="$CPPFLAGS $offix_include_dir"
18688 LDFLAGS="$LDFLAGS $offix_lib_dir"
18689 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18690 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18691 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18692 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18695 ac_check_lib_save_LIBS=$LIBS
18697 cat >conftest.$ac_ext <<_ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h. */
18704 /* Override any gcc2 internal prototype to avoid an error. */
18708 /* We use char because int might match the return type of a gcc2
18709 builtin and then its argument prototype would still apply. */
18710 char DndInitialize ();
18719 rm -f conftest.$ac_objext conftest$ac_exeext
18720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18721 (eval $ac_link) 2>conftest.er1
18723 grep -v '^ *+' conftest.er1 >conftest.err
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -z "$ac_c_werror_flag"
18729 || test ! -s conftest.err'
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; } &&
18735 { ac_try='test -s conftest$ac_exeext'
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; }; then
18741 ac_cv_lib_Dnd_DndInitialize=yes
18743 echo "$as_me: failed program was:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18746 ac_cv_lib_Dnd_DndInitialize=no
18748 rm -f conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
18750 LIBS=$ac_check_lib_save_LIBS
18752 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18753 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18754 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18757 lib_offix_opt="-lDnd"
18759 cat >>confdefs.h <<\_ACEOF
18765 LDFLAGS=$KEEPLDFLAGS
18766 CPPFLAGS=$KEEPCPPFLAGS
18775 # Check whether --enable-network or --disable-network was given.
18776 if test "${enable_network+set}" = set; then
18777 enableval="$enable_network"
18778 if test "$enableval" = "yes"; then
18780 cat >>confdefs.h <<\_ACEOF
18781 #define SUPPORT_SOCKET 1
18788 if test "x$enable_network" = "xyes"; then
18789 ENABLE_NETWORK_TRUE=
18790 ENABLE_NETWORK_FALSE='#'
18792 ENABLE_NETWORK_TRUE='#'
18793 ENABLE_NETWORK_FALSE=
18797 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18798 if test "${enable_spectrogram+set}" = set; then
18799 enableval="$enable_spectrogram"
18800 if test "$enableval" = "yes"; then
18801 if test "x$with_x" != xyes; then
18802 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18803 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18804 { (exit 1); exit 1; }; }
18807 cat >>confdefs.h <<\_ACEOF
18808 #define SUPPORT_SOUNDSPEC 1
18815 if test "x$enable_spectrogram" = "xyes"; then
18816 ENABLE_SOUND_SPEC_TRUE=
18817 ENABLE_SOUND_SPEC_FALSE='#'
18819 ENABLE_SOUND_SPEC_TRUE='#'
18820 ENABLE_SOUND_SPEC_FALSE=
18824 # Check whether --enable-spline or --disable-spline was given.
18825 if test "${enable_spline+set}" = set; then
18826 enableval="$enable_spline"
18827 case "x$enableval" in
18830 cat >>confdefs.h <<\_ACEOF
18831 #define DEFAULT_RESAMPLATION resample_linear
18837 cat >>confdefs.h <<\_ACEOF
18838 #define DEFAULT_RESAMPLATION resample_cspline
18844 cat >>confdefs.h <<\_ACEOF
18845 #define DEFAULT_RESAMPLATION resample_lagrange
18851 cat >>confdefs.h <<\_ACEOF
18852 #define DEFAULT_RESAMPLATION resample_newton
18858 cat >>confdefs.h <<\_ACEOF
18859 #define DEFAULT_RESAMPLATION resample_gauss
18865 cat >>confdefs.h <<\_ACEOF
18866 #define DEFAULT_RESAMPLATION resample_none
18871 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18872 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18873 { (exit 1); exit 1; }; }
18878 # Check whether --enable-wrd or --disable-wrd was given.
18879 if test "${enable_wrd+set}" = set; then
18880 enableval="$enable_wrd"
18881 if test "$enableval" = "yes"; then
18882 if test "x$with_x" != xyes; then
18883 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18884 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18885 { (exit 1); exit 1; }; }
18888 cat >>confdefs.h <<\_ACEOF
18892 enable_sherry_wrd=yes
18893 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18894 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18895 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 ac_check_lib_save_LIBS=$LIBS
18900 cat >conftest.$ac_ext <<_ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18907 /* Override any gcc2 internal prototype to avoid an error. */
18911 /* We use char because int might match the return type of a gcc2
18912 builtin and then its argument prototype would still apply. */
18913 char zlibVersion ();
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18924 (eval $ac_link) 2>conftest.er1
18926 grep -v '^ *+' conftest.er1 >conftest.err
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -z "$ac_c_werror_flag"
18932 || test ! -s conftest.err'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest$ac_exeext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 ac_cv_lib_z_zlibVersion=yes
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18949 ac_cv_lib_z_zlibVersion=no
18951 rm -f conftest.err conftest.$ac_objext \
18952 conftest$ac_exeext conftest.$ac_ext
18953 LIBS=$ac_check_lib_save_LIBS
18955 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18956 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18957 if test $ac_cv_lib_z_zlibVersion = yes; then
18960 enable_sherry_wrd=no
18963 if test "${ac_cv_header_png_h+set}" = set; then
18964 echo "$as_me:$LINENO: checking for png.h" >&5
18965 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18966 if test "${ac_cv_header_png_h+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18970 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18972 # Is the header compilable?
18973 echo "$as_me:$LINENO: checking png.h usability" >&5
18974 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18975 cat >conftest.$ac_ext <<_ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 $ac_includes_default
18984 rm -f conftest.$ac_objext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18986 (eval $ac_compile) 2>conftest.er1
18988 grep -v '^ *+' conftest.er1 >conftest.err
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } &&
18993 { ac_try='test -z "$ac_c_werror_flag"
18994 || test ! -s conftest.err'
18995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996 (eval $ac_try) 2>&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; } &&
19000 { ac_try='test -s conftest.$ac_objext'
19001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002 (eval $ac_try) 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; }; then
19006 ac_header_compiler=yes
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 ac_header_compiler=no
19013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19015 echo "${ECHO_T}$ac_header_compiler" >&6
19017 # Is the header present?
19018 echo "$as_me:$LINENO: checking png.h presence" >&5
19019 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19020 cat >conftest.$ac_ext <<_ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19031 grep -v '^ *+' conftest.er1 >conftest.err
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } >/dev/null; then
19036 if test -s conftest.err; then
19037 ac_cpp_err=$ac_c_preproc_warn_flag
19038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19045 if test -z "$ac_cpp_err"; then
19046 ac_header_preproc=yes
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19051 ac_header_preproc=no
19053 rm -f conftest.err conftest.$ac_ext
19054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19055 echo "${ECHO_T}$ac_header_preproc" >&6
19057 # So? What about this header?
19058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19060 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19061 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19062 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19063 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19064 ac_header_preproc=yes
19067 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19068 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19069 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19070 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19071 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19072 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19073 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19074 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
19075 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19076 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19077 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19078 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19081 ## ------------------------------- ##
19082 ## Report this to root@mput.dip.jp ##
19083 ## ------------------------------- ##
19086 sed "s/^/$as_me: WARNING: /" >&2
19089 echo "$as_me:$LINENO: checking for png.h" >&5
19090 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19091 if test "${ac_cv_header_png_h+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 ac_cv_header_png_h=$ac_header_preproc
19096 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19097 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19100 if test $ac_cv_header_png_h = yes; then
19103 enable_sherry_wrd=no
19107 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19108 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19109 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 ac_check_lib_save_LIBS=$LIBS
19113 LIBS="-lpng -lz $LIBS"
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19121 /* Override any gcc2 internal prototype to avoid an error. */
19125 /* We use char because int might match the return type of a gcc2
19126 builtin and then its argument prototype would still apply. */
19127 char png_init_io ();
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19138 (eval $ac_link) 2>conftest.er1
19140 grep -v '^ *+' conftest.er1 >conftest.err
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
19145 { ac_try='test -z "$ac_c_werror_flag"
19146 || test ! -s conftest.err'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest$ac_exeext'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_cv_lib_png_png_init_io=yes
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19163 ac_cv_lib_png_png_init_io=no
19165 rm -f conftest.err conftest.$ac_objext \
19166 conftest$ac_exeext conftest.$ac_ext
19167 LIBS=$ac_check_lib_save_LIBS
19169 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19170 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19171 if test $ac_cv_lib_png_png_init_io = yes; then
19174 enable_sherry_wrd=no
19177 if test "$enable_sherry_wrd" = yes; then
19179 cat >>confdefs.h <<\_ACEOF
19180 #define ENABLE_SHERRY 1
19186 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19187 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19189 if test "x$have_xext" = xyes; then
19190 lib_xext_opt=-lXext
19204 if test "x$enable_wrd" = "xyes"; then
19206 ENABLE_WRD_FALSE='#'
19208 ENABLE_WRD_TRUE='#'
19214 if test "x$W32G_GUI" = xyes; then
19224 if test "x$WINDRV" = xyes; then
19234 if test "x$MSYS" = xyes; then
19244 if test "x$VCPP" = xyes; then
19254 if test "x$BORLANDC" = xyes; then
19264 if test "x$WATCOM_C" = xyes; then
19274 if test "x$DMC" = xyes; then
19284 if test "x$MINGWGCC" = xyes; then
19295 if test "x$W32READDIR" = "xyes"; then
19297 W32READDIR_FALSE='#'
19299 W32READDIR_TRUE='#'
19304 rm -f wordtmp >/dev/null 2>&1
19306 for f in $LDFLAGS; do
19307 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19310 echo $f >>wordtmp; val="$val $f"
19315 rm -f wordtmp >/dev/null 2>&1
19317 rm -f wordtmp >/dev/null 2>&1
19319 for f in $SHLDFLAGS; do
19320 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19323 echo $f >>wordtmp; val="$val $f"
19328 rm -f wordtmp >/dev/null 2>&1
19330 rm -f wordtmp >/dev/null 2>&1
19332 for f in $EXTRACFLAGS $CFLAGS; do
19333 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19336 echo $f >>wordtmp; val="$val $f"
19341 rm -f wordtmp >/dev/null 2>&1
19343 rm -f wordtmp >/dev/null 2>&1
19345 for f in $CPPFLAGS $EXTRADEFS; do
19346 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19349 echo $f >>wordtmp; val="$val $f"
19354 rm -f wordtmp >/dev/null 2>&1
19357 if test "x$oss_device" != x; then
19359 cat >>confdefs.h <<_ACEOF
19360 #define OSS_DEVICE "$oss_device"
19365 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19367 cat >>confdefs.h <<_ACEOF
19368 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19373 if test "x$with_x" = xyes; then
19374 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/"`
19376 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19377 SHLD="$SHLD $SHLDFLAGS"
19402 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile windrv/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
19404 cat >confcache <<\_ACEOF
19405 # This file is a shell script that caches the results of configure
19406 # tests run on this system so they can be shared between configure
19407 # scripts and configure runs, see configure's option --config-cache.
19408 # It is not useful on other systems. If it contains results you don't
19409 # want to keep, you may remove or edit it.
19411 # config.status only pays attention to the cache file if you give it
19412 # the --recheck option to rerun configure.
19414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19416 # following values.
19420 # The following way of writing the cache mishandles newlines in values,
19421 # but we know of no workaround that is simple, portable, and efficient.
19422 # So, don't put newlines in cache variables' values.
19423 # Ultrix sh set writes to stderr and can't be redirected directly,
19424 # and sets the high bit in the cache file unless we assign to the vars.
19427 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19429 # `set' does not quote correctly, so add quotes (double-quote
19430 # substitution turns \\\\ into \\, and sed turns \\ into \).
19433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19436 # `set' quotes correctly as required by POSIX, so do not add quotes.
19438 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19447 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19449 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19450 if test -w $cache_file; then
19451 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19452 cat confcache >$cache_file
19454 echo "not updating unwritable cache $cache_file"
19459 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19460 # Let make expand exec_prefix.
19461 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19463 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19464 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19465 # trailing colons and then remove the whole line if VPATH becomes empty
19466 # (actually we leave an empty line to preserve line numbers).
19467 if test "x$srcdir" = x.; then
19468 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19469 s/:*\$(srcdir):*/:/;
19470 s/:*\${srcdir}:*/:/;
19472 s/^\([^=]*=[ ]*\):*/\1/;
19478 DEFS=-DHAVE_CONFIG_H
19482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19483 # 1. Remove the extension, and $U if already installed.
19484 ac_i=`echo "$ac_i" |
19485 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19487 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19488 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19490 LIBOBJS=$ac_libobjs
19492 LTLIBOBJS=$ac_ltlibobjs
19495 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19496 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19497 Usually this means the macro was only invoked conditionally." >&5
19498 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19499 Usually this means the macro was only invoked conditionally." >&2;}
19500 { (exit 1); exit 1; }; }
19502 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19503 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19504 Usually this means the macro was only invoked conditionally." >&5
19505 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19506 Usually this means the macro was only invoked conditionally." >&2;}
19507 { (exit 1); exit 1; }; }
19509 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19510 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19511 Usually this means the macro was only invoked conditionally." >&5
19512 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19513 Usually this means the macro was only invoked conditionally." >&2;}
19514 { (exit 1); exit 1; }; }
19516 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
19517 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
19518 Usually this means the macro was only invoked conditionally." >&5
19519 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
19520 Usually this means the macro was only invoked conditionally." >&2;}
19521 { (exit 1); exit 1; }; }
19523 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
19524 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
19525 Usually this means the macro was only invoked conditionally." >&5
19526 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
19527 Usually this means the macro was only invoked conditionally." >&2;}
19528 { (exit 1); exit 1; }; }
19530 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19531 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19532 Usually this means the macro was only invoked conditionally." >&5
19533 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19534 Usually this means the macro was only invoked conditionally." >&2;}
19535 { (exit 1); exit 1; }; }
19537 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19538 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19539 Usually this means the macro was only invoked conditionally." >&5
19540 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19541 Usually this means the macro was only invoked conditionally." >&2;}
19542 { (exit 1); exit 1; }; }
19544 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19545 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19546 Usually this means the macro was only invoked conditionally." >&5
19547 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19548 Usually this means the macro was only invoked conditionally." >&2;}
19549 { (exit 1); exit 1; }; }
19551 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19552 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19553 Usually this means the macro was only invoked conditionally." >&5
19554 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19555 Usually this means the macro was only invoked conditionally." >&2;}
19556 { (exit 1); exit 1; }; }
19558 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19559 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19560 Usually this means the macro was only invoked conditionally." >&5
19561 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19562 Usually this means the macro was only invoked conditionally." >&2;}
19563 { (exit 1); exit 1; }; }
19565 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19566 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19567 Usually this means the macro was only invoked conditionally." >&5
19568 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19569 Usually this means the macro was only invoked conditionally." >&2;}
19570 { (exit 1); exit 1; }; }
19572 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19573 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19574 Usually this means the macro was only invoked conditionally." >&5
19575 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19576 Usually this means the macro was only invoked conditionally." >&2;}
19577 { (exit 1); exit 1; }; }
19579 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19580 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19581 Usually this means the macro was only invoked conditionally." >&5
19582 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19583 Usually this means the macro was only invoked conditionally." >&2;}
19584 { (exit 1); exit 1; }; }
19586 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19587 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19588 Usually this means the macro was only invoked conditionally." >&5
19589 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19590 Usually this means the macro was only invoked conditionally." >&2;}
19591 { (exit 1); exit 1; }; }
19593 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19594 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19595 Usually this means the macro was only invoked conditionally." >&5
19596 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19597 Usually this means the macro was only invoked conditionally." >&2;}
19598 { (exit 1); exit 1; }; }
19600 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19601 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19602 Usually this means the macro was only invoked conditionally." >&5
19603 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19604 Usually this means the macro was only invoked conditionally." >&2;}
19605 { (exit 1); exit 1; }; }
19607 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19608 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19609 Usually this means the macro was only invoked conditionally." >&5
19610 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19611 Usually this means the macro was only invoked conditionally." >&2;}
19612 { (exit 1); exit 1; }; }
19614 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19615 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19616 Usually this means the macro was only invoked conditionally." >&5
19617 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19618 Usually this means the macro was only invoked conditionally." >&2;}
19619 { (exit 1); exit 1; }; }
19621 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19622 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19623 Usually this means the macro was only invoked conditionally." >&5
19624 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19625 Usually this means the macro was only invoked conditionally." >&2;}
19626 { (exit 1); exit 1; }; }
19628 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19629 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19630 Usually this means the macro was only invoked conditionally." >&5
19631 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19632 Usually this means the macro was only invoked conditionally." >&2;}
19633 { (exit 1); exit 1; }; }
19635 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19636 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19637 Usually this means the macro was only invoked conditionally." >&5
19638 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19639 Usually this means the macro was only invoked conditionally." >&2;}
19640 { (exit 1); exit 1; }; }
19642 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19643 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19644 Usually this means the macro was only invoked conditionally." >&5
19645 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19646 Usually this means the macro was only invoked conditionally." >&2;}
19647 { (exit 1); exit 1; }; }
19649 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19650 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19651 Usually this means the macro was only invoked conditionally." >&5
19652 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19653 Usually this means the macro was only invoked conditionally." >&2;}
19654 { (exit 1); exit 1; }; }
19656 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19657 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19658 Usually this means the macro was only invoked conditionally." >&5
19659 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19660 Usually this means the macro was only invoked conditionally." >&2;}
19661 { (exit 1); exit 1; }; }
19663 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19664 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19665 Usually this means the macro was only invoked conditionally." >&5
19666 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19667 Usually this means the macro was only invoked conditionally." >&2;}
19668 { (exit 1); exit 1; }; }
19670 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19671 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19672 Usually this means the macro was only invoked conditionally." >&5
19673 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19674 Usually this means the macro was only invoked conditionally." >&2;}
19675 { (exit 1); exit 1; }; }
19677 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19678 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19679 Usually this means the macro was only invoked conditionally." >&5
19680 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19681 Usually this means the macro was only invoked conditionally." >&2;}
19682 { (exit 1); exit 1; }; }
19684 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19685 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19686 Usually this means the macro was only invoked conditionally." >&5
19687 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19688 Usually this means the macro was only invoked conditionally." >&2;}
19689 { (exit 1); exit 1; }; }
19691 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19692 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19693 Usually this means the macro was only invoked conditionally." >&5
19694 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19695 Usually this means the macro was only invoked conditionally." >&2;}
19696 { (exit 1); exit 1; }; }
19698 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19699 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19700 Usually this means the macro was only invoked conditionally." >&5
19701 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19702 Usually this means the macro was only invoked conditionally." >&2;}
19703 { (exit 1); exit 1; }; }
19705 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19706 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19707 Usually this means the macro was only invoked conditionally." >&5
19708 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19709 Usually this means the macro was only invoked conditionally." >&2;}
19710 { (exit 1); exit 1; }; }
19712 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19713 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19714 Usually this means the macro was only invoked conditionally." >&5
19715 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19716 Usually this means the macro was only invoked conditionally." >&2;}
19717 { (exit 1); exit 1; }; }
19719 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19720 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19721 Usually this means the macro was only invoked conditionally." >&5
19722 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19723 Usually this means the macro was only invoked conditionally." >&2;}
19724 { (exit 1); exit 1; }; }
19726 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19727 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19728 Usually this means the macro was only invoked conditionally." >&5
19729 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19730 Usually this means the macro was only invoked conditionally." >&2;}
19731 { (exit 1); exit 1; }; }
19733 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19734 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19735 Usually this means the macro was only invoked conditionally." >&5
19736 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19737 Usually this means the macro was only invoked conditionally." >&2;}
19738 { (exit 1); exit 1; }; }
19740 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19741 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19742 Usually this means the macro was only invoked conditionally." >&5
19743 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19744 Usually this means the macro was only invoked conditionally." >&2;}
19745 { (exit 1); exit 1; }; }
19747 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19748 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19749 Usually this means the macro was only invoked conditionally." >&5
19750 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19751 Usually this means the macro was only invoked conditionally." >&2;}
19752 { (exit 1); exit 1; }; }
19754 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19755 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19756 Usually this means the macro was only invoked conditionally." >&5
19757 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19758 Usually this means the macro was only invoked conditionally." >&2;}
19759 { (exit 1); exit 1; }; }
19761 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19762 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19763 Usually this means the macro was only invoked conditionally." >&5
19764 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19765 Usually this means the macro was only invoked conditionally." >&2;}
19766 { (exit 1); exit 1; }; }
19768 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19769 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19770 Usually this means the macro was only invoked conditionally." >&5
19771 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19772 Usually this means the macro was only invoked conditionally." >&2;}
19773 { (exit 1); exit 1; }; }
19775 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19776 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19777 Usually this means the macro was only invoked conditionally." >&5
19778 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19779 Usually this means the macro was only invoked conditionally." >&2;}
19780 { (exit 1); exit 1; }; }
19782 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19783 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19784 Usually this means the macro was only invoked conditionally." >&5
19785 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19786 Usually this means the macro was only invoked conditionally." >&2;}
19787 { (exit 1); exit 1; }; }
19789 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
19790 { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
19791 Usually this means the macro was only invoked conditionally." >&5
19792 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
19793 Usually this means the macro was only invoked conditionally." >&2;}
19794 { (exit 1); exit 1; }; }
19796 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
19797 { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
19798 Usually this means the macro was only invoked conditionally." >&5
19799 echo "$as_me: error: conditional \"WINDRV\" was never defined.
19800 Usually this means the macro was only invoked conditionally." >&2;}
19801 { (exit 1); exit 1; }; }
19803 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
19804 { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
19805 Usually this means the macro was only invoked conditionally." >&5
19806 echo "$as_me: error: conditional \"MSYS\" was never defined.
19807 Usually this means the macro was only invoked conditionally." >&2;}
19808 { (exit 1); exit 1; }; }
19810 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
19811 { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
19812 Usually this means the macro was only invoked conditionally." >&5
19813 echo "$as_me: error: conditional \"VCPP\" was never defined.
19814 Usually this means the macro was only invoked conditionally." >&2;}
19815 { (exit 1); exit 1; }; }
19817 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
19818 { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
19819 Usually this means the macro was only invoked conditionally." >&5
19820 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
19821 Usually this means the macro was only invoked conditionally." >&2;}
19822 { (exit 1); exit 1; }; }
19824 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
19825 { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
19826 Usually this means the macro was only invoked conditionally." >&5
19827 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
19828 Usually this means the macro was only invoked conditionally." >&2;}
19829 { (exit 1); exit 1; }; }
19831 if test -z "${DMC_TRUE}" && test -z "${DMC_FALSE}"; then
19832 { { echo "$as_me:$LINENO: error: conditional \"DMC\" was never defined.
19833 Usually this means the macro was only invoked conditionally." >&5
19834 echo "$as_me: error: conditional \"DMC\" was never defined.
19835 Usually this means the macro was only invoked conditionally." >&2;}
19836 { (exit 1); exit 1; }; }
19838 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
19839 { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
19840 Usually this means the macro was only invoked conditionally." >&5
19841 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
19842 Usually this means the macro was only invoked conditionally." >&2;}
19843 { (exit 1); exit 1; }; }
19845 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19846 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19847 Usually this means the macro was only invoked conditionally." >&5
19848 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19849 Usually this means the macro was only invoked conditionally." >&2;}
19850 { (exit 1); exit 1; }; }
19853 : ${CONFIG_STATUS=./config.status}
19854 ac_clean_files_save=$ac_clean_files
19855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19856 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19857 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19858 cat >$CONFIG_STATUS <<_ACEOF
19860 # Generated by $as_me.
19861 # Run this file to recreate the current configuration.
19862 # Compiler output produced by configure, useful for debugging
19863 # configure, is in config.log if it exists.
19866 ac_cs_recheck=false
19868 SHELL=\${CONFIG_SHELL-$SHELL}
19871 cat >>$CONFIG_STATUS <<\_ACEOF
19872 ## --------------------- ##
19873 ## M4sh Initialization. ##
19874 ## --------------------- ##
19876 # Be Bourne compatible
19877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19880 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19881 # is contrary to our usage. Disable this feature.
19882 alias -g '${1+"$@"}'='"$@"'
19883 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19886 DUALCASE=1; export DUALCASE # for MKS sh
19888 # Support unset when possible.
19889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19896 # Work around bugs in pre-3.0 UWIN ksh.
19897 $as_unset ENV MAIL MAILPATH
19904 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19905 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19906 LC_TELEPHONE LC_TIME
19908 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19909 eval $as_var=C; export $as_var
19915 # Required to use basename.
19916 if expr a : '\(a\)' >/dev/null 2>&1; then
19922 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19923 as_basename=basename
19929 # Name of the executable.
19930 as_me=`$as_basename "$0" ||
19931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19932 X"$0" : 'X\(//\)$' \| \
19933 X"$0" : 'X\(/\)$' \| \
19934 . : '\(.\)' 2>/dev/null ||
19936 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19937 /^X\/\(\/\/\)$/{ s//\1/; q; }
19938 /^X\/\(\/\).*/{ s//\1/; q; }
19942 # PATH needs CR, and LINENO needs CR and PATH.
19943 # Avoid depending upon Character Ranges.
19944 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19945 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19946 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19947 as_cr_digits='0123456789'
19948 as_cr_alnum=$as_cr_Letters$as_cr_digits
19950 # The user is always right.
19951 if test "${PATH_SEPARATOR+set}" != set; then
19952 echo "#! /bin/sh" >conf$$.sh
19953 echo "exit 0" >>conf$$.sh
19955 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19964 as_lineno_1=$LINENO
19965 as_lineno_2=$LINENO
19966 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19967 test "x$as_lineno_1" != "x$as_lineno_2" &&
19968 test "x$as_lineno_3" = "x$as_lineno_2" || {
19969 # Find who we are. Look in the path if we contain no path at all
19972 *[\\/]* ) as_myself=$0 ;;
19973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19974 for as_dir in $PATH
19977 test -z "$as_dir" && as_dir=.
19978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19983 # We did not find ourselves, most probably we were run as `sh COMMAND'
19984 # in which case we are not to be found in the path.
19985 if test "x$as_myself" = x; then
19988 if test ! -f "$as_myself"; then
19989 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19990 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19991 { (exit 1); exit 1; }; }
19993 case $CONFIG_SHELL in
19995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19996 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19999 test -z "$as_dir" && as_dir=.
20000 for as_base in sh bash ksh sh5; do
20003 if ("$as_dir/$as_base" -c '
20004 as_lineno_1=$LINENO
20005 as_lineno_2=$LINENO
20006 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20007 test "x$as_lineno_1" != "x$as_lineno_2" &&
20008 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20009 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20010 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20011 CONFIG_SHELL=$as_dir/$as_base
20012 export CONFIG_SHELL
20013 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20021 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20022 # uniformly replaced by the line number. The first 'sed' inserts a
20023 # line-number line before each line; the second 'sed' does the real
20024 # work. The second script uses 'N' to pair each line-number line
20025 # with the numbered line, and appends trailing '-' during
20026 # substitution so that $LINENO is not a special case at line end.
20027 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20028 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20029 sed '=' <$as_myself |
20034 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20037 s,^['$as_cr_digits']*\n,,
20038 ' >$as_me.lineno &&
20039 chmod +x $as_me.lineno ||
20040 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20041 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20042 { (exit 1); exit 1; }; }
20044 # Don't try to exec as it changes $[0], causing all sort of problems
20045 # (the dirname of $[0] is not the place where we might find the
20046 # original and so on. Autoconf is especially sensible to this).
20048 # Exit status is that of the last command.
20053 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20054 *c*,-n*) ECHO_N= ECHO_C='
20056 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20057 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20060 if expr a : '\(a\)' >/dev/null 2>&1; then
20066 rm -f conf$$ conf$$.exe conf$$.file
20068 if ln -s conf$$.file conf$$ 2>/dev/null; then
20069 # We could just check for DJGPP; but this test a) works b) is more generic
20070 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20071 if test -f conf$$.exe; then
20072 # Don't use ln at all; we don't have any links
20077 elif ln conf$$.file conf$$ 2>/dev/null; then
20082 rm -f conf$$ conf$$.exe conf$$.file
20084 if mkdir -p . 2>/dev/null; then
20087 test -d ./-p && rmdir ./-p
20091 as_executable_p="test -f"
20093 # Sed expression to map a string onto a valid CPP name.
20094 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20096 # Sed expression to map a string onto a valid variable name.
20097 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20101 # We need space, tab and new line, in precisely that order.
20111 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20112 # report actual input values of CONFIG_FILES etc. instead of their
20113 # values after options handling. Logging --version etc. is OK.
20117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20118 ## Running $as_me. ##
20123 This file was extended by TiMidity++ $as_me 2.13.2, which was
20124 generated by GNU Autoconf 2.59. Invocation command line was
20126 CONFIG_FILES = $CONFIG_FILES
20127 CONFIG_HEADERS = $CONFIG_HEADERS
20128 CONFIG_LINKS = $CONFIG_LINKS
20129 CONFIG_COMMANDS = $CONFIG_COMMANDS
20133 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20137 # Files that config.status was made for.
20138 if test -n "$ac_config_files"; then
20139 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20142 if test -n "$ac_config_headers"; then
20143 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20146 if test -n "$ac_config_links"; then
20147 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20150 if test -n "$ac_config_commands"; then
20151 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20154 cat >>$CONFIG_STATUS <<\_ACEOF
20157 \`$as_me' instantiates files from templates according to the
20158 current configuration.
20160 Usage: $0 [OPTIONS] [FILE]...
20162 -h, --help print this help, then exit
20163 -V, --version print version number, then exit
20164 -q, --quiet do not print progress messages
20165 -d, --debug don't remove temporary files
20166 --recheck update $as_me by reconfiguring in the same conditions
20167 --file=FILE[:TEMPLATE]
20168 instantiate the configuration file FILE
20169 --header=FILE[:TEMPLATE]
20170 instantiate the configuration header FILE
20172 Configuration files:
20175 Configuration headers:
20178 Configuration commands:
20181 Report bugs to <bug-autoconf@gnu.org>."
20184 cat >>$CONFIG_STATUS <<_ACEOF
20186 TiMidity++ config.status 2.13.2
20187 configured by $0, generated by GNU Autoconf 2.59,
20188 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20190 Copyright (C) 2003 Free Software Foundation, Inc.
20191 This config.status script is free software; the Free Software Foundation
20192 gives unlimited permission to copy, distribute and modify it."
20197 cat >>$CONFIG_STATUS <<\_ACEOF
20198 # If no file are specified by the user, then we need to provide default
20199 # value. By we need to know if files were specified by the user.
20205 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20206 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20214 *) # This is not an option, so the user has probably given explicit
20217 ac_need_defaults=false;;
20221 # Handling of the options.
20223 cat >>$CONFIG_STATUS <<\_ACEOF
20224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20226 --version | --vers* | -V )
20227 echo "$ac_cs_version"; exit 0 ;;
20229 # Conflict between --help and --header
20230 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20231 Try \`$0 --help' for more information." >&5
20232 echo "$as_me: error: ambiguous option: $1
20233 Try \`$0 --help' for more information." >&2;}
20234 { (exit 1); exit 1; }; };;
20235 --help | --hel | -h )
20236 echo "$ac_cs_usage"; exit 0 ;;
20237 --debug | --d* | -d )
20239 --file | --fil | --fi | --f )
20241 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20242 ac_need_defaults=false;;
20243 --header | --heade | --head | --hea )
20245 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20246 ac_need_defaults=false;;
20247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20248 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20251 # This is an error.
20252 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20253 Try \`$0 --help' for more information." >&5
20254 echo "$as_me: error: unrecognized option: $1
20255 Try \`$0 --help' for more information." >&2;}
20256 { (exit 1); exit 1; }; } ;;
20258 *) ac_config_targets="$ac_config_targets $1" ;;
20264 ac_configure_extra_args=
20266 if $ac_cs_silent; then
20268 ac_configure_extra_args="$ac_configure_extra_args --silent"
20272 cat >>$CONFIG_STATUS <<_ACEOF
20273 if \$ac_cs_recheck; then
20274 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20275 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20280 cat >>$CONFIG_STATUS <<_ACEOF
20282 # INIT-COMMANDS section.
20285 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20291 cat >>$CONFIG_STATUS <<\_ACEOF
20292 for ac_config_target in $ac_config_targets
20294 case "$ac_config_target" in
20295 # Handling of arguments.
20296 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20297 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20298 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20299 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20300 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20301 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20302 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20303 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20304 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20305 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20306 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20307 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20308 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20309 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20310 "windrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
20311 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20312 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20313 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20314 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20315 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20316 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20317 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20318 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20319 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20320 { (exit 1); exit 1; }; };;
20324 # If the user did not use the arguments to specify the items to instantiate,
20325 # then the envvar interface is used. Set only those that are not.
20326 # We use the long form for the default assignment because of an extremely
20327 # bizarre bug on SunOS 4.1.3.
20328 if $ac_need_defaults; then
20329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20334 # Have a temporary directory for convenience. Make it in the build tree
20335 # simply because there is no reason to put it here, and in addition,
20336 # creating and moving files from /tmp can sometimes cause problems.
20337 # Create a temporary directory, and hook for its removal unless debugging.
20340 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20341 trap '{ (exit 1); exit 1; }' 1 2 13 15
20344 # Create a (secure) tmp directory for tmp files.
20347 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20348 test -n "$tmp" && test -d "$tmp"
20351 tmp=./confstat$$-$RANDOM
20352 (umask 077 && mkdir $tmp)
20355 echo "$me: cannot create a temporary directory in ." >&2
20356 { (exit 1); exit 1; }
20361 cat >>$CONFIG_STATUS <<_ACEOF
20364 # CONFIG_FILES section.
20367 # No need to generate the scripts if there are no CONFIG_FILES.
20368 # This happens for instance when ./config.status config.h
20369 if test -n "\$CONFIG_FILES"; then
20370 # Protect against being on the right side of a sed subst in config.status.
20371 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20372 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20373 s,@SHELL@,$SHELL,;t t
20374 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20375 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20376 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20377 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20378 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20379 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20380 s,@exec_prefix@,$exec_prefix,;t t
20381 s,@prefix@,$prefix,;t t
20382 s,@program_transform_name@,$program_transform_name,;t t
20383 s,@bindir@,$bindir,;t t
20384 s,@sbindir@,$sbindir,;t t
20385 s,@libexecdir@,$libexecdir,;t t
20386 s,@datadir@,$datadir,;t t
20387 s,@sysconfdir@,$sysconfdir,;t t
20388 s,@sharedstatedir@,$sharedstatedir,;t t
20389 s,@localstatedir@,$localstatedir,;t t
20390 s,@libdir@,$libdir,;t t
20391 s,@includedir@,$includedir,;t t
20392 s,@oldincludedir@,$oldincludedir,;t t
20393 s,@infodir@,$infodir,;t t
20394 s,@mandir@,$mandir,;t t
20395 s,@build_alias@,$build_alias,;t t
20396 s,@host_alias@,$host_alias,;t t
20397 s,@target_alias@,$target_alias,;t t
20398 s,@DEFS@,$DEFS,;t t
20399 s,@ECHO_C@,$ECHO_C,;t t
20400 s,@ECHO_N@,$ECHO_N,;t t
20401 s,@ECHO_T@,$ECHO_T,;t t
20402 s,@LIBS@,$LIBS,;t t
20403 s,@build@,$build,;t t
20404 s,@build_cpu@,$build_cpu,;t t
20405 s,@build_vendor@,$build_vendor,;t t
20406 s,@build_os@,$build_os,;t t
20407 s,@host@,$host,;t t
20408 s,@host_cpu@,$host_cpu,;t t
20409 s,@host_vendor@,$host_vendor,;t t
20410 s,@host_os@,$host_os,;t t
20411 s,@target@,$target,;t t
20412 s,@target_cpu@,$target_cpu,;t t
20413 s,@target_vendor@,$target_vendor,;t t
20414 s,@target_os@,$target_os,;t t
20415 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20416 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20417 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20418 s,@CYGPATH_W@,$CYGPATH_W,;t t
20419 s,@PACKAGE@,$PACKAGE,;t t
20420 s,@VERSION@,$VERSION,;t t
20421 s,@ACLOCAL@,$ACLOCAL,;t t
20422 s,@AUTOCONF@,$AUTOCONF,;t t
20423 s,@AUTOMAKE@,$AUTOMAKE,;t t
20424 s,@AUTOHEADER@,$AUTOHEADER,;t t
20425 s,@MAKEINFO@,$MAKEINFO,;t t
20426 s,@AMTAR@,$AMTAR,;t t
20427 s,@install_sh@,$install_sh,;t t
20428 s,@STRIP@,$STRIP,;t t
20429 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20430 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20431 s,@mkdir_p@,$mkdir_p,;t t
20433 s,@SET_MAKE@,$SET_MAKE,;t t
20434 s,@am__leading_dot@,$am__leading_dot,;t t
20435 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20436 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20437 s,@MAINT@,$MAINT,;t t
20438 s,@EMACS@,$EMACS,;t t
20439 s,@EMACSLOADPATH@,$EMACSLOADPATH,;t t
20440 s,@lispdir@,$lispdir,;t t
20442 s,@CFLAGS@,$CFLAGS,;t t
20443 s,@LDFLAGS@,$LDFLAGS,;t t
20444 s,@CPPFLAGS@,$CPPFLAGS,;t t
20445 s,@ac_ct_CC@,$ac_ct_CC,;t t
20446 s,@EXEEXT@,$EXEEXT,;t t
20447 s,@OBJEXT@,$OBJEXT,;t t
20448 s,@DEPDIR@,$DEPDIR,;t t
20449 s,@am__include@,$am__include,;t t
20450 s,@am__quote@,$am__quote,;t t
20451 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20452 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20453 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20454 s,@CCDEPMODE@,$CCDEPMODE,;t t
20455 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20456 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20458 s,@EGREP@,$EGREP,;t t
20459 s,@RANLIB@,$RANLIB,;t t
20460 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20461 s,@LN_S@,$LN_S,;t t
20462 s,@X_CFLAGS@,$X_CFLAGS,;t t
20463 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20464 s,@X_LIBS@,$X_LIBS,;t t
20465 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20466 s,@LIBOBJS@,$LIBOBJS,;t t
20467 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20468 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20469 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20470 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20471 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20472 s,@ARTSLIBS@,$ARTSLIBS,;t t
20473 s,@ARTSINCL@,$ARTSINCL,;t t
20474 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20475 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20476 s,@ESD_LIBS@,$ESD_LIBS,;t t
20477 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20478 s,@AO_LIBS@,$AO_LIBS,;t t
20479 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20480 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20481 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20482 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20483 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20484 s,@OGG_LIBS@,$OGG_LIBS,;t t
20485 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20486 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20487 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20488 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20489 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20490 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20491 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20492 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20493 s,@n_so_libs@,$n_so_libs,;t t
20494 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20495 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20496 s,@s_so_libs@,$s_so_libs,;t t
20497 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20498 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20499 s,@m_so_libs@,$m_so_libs,;t t
20500 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
20501 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
20502 s,@k_so_libs@,$k_so_libs,;t t
20503 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
20504 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
20505 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
20506 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
20507 s,@e_so_libs@,$e_so_libs,;t t
20508 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
20509 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
20510 s,@T_so_libs@,$T_so_libs,;t t
20511 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
20512 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
20513 s,@a_so_libs@,$a_so_libs,;t t
20514 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
20515 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
20516 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
20517 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
20518 s,@i_so_libs@,$i_so_libs,;t t
20519 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
20520 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
20521 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20522 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
20523 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20524 s,@GTK_LIBS@,$GTK_LIBS,;t t
20525 s,@g_so_libs@,$g_so_libs,;t t
20526 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
20527 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
20528 s,@r_so_libs@,$r_so_libs,;t t
20529 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
20530 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
20531 s,@A_so_libs@,$A_so_libs,;t t
20532 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
20533 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
20534 s,@W_so_libs@,$W_so_libs,;t t
20535 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
20536 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
20537 s,@P_so_libs@,$P_so_libs,;t t
20538 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
20539 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
20540 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
20541 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
20542 s,@w_so_libs@,$w_so_libs,;t t
20543 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
20544 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
20545 s,@p_so_libs@,$p_so_libs,;t t
20546 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
20547 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
20548 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
20549 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
20550 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
20551 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
20552 s,@W32G_GUI_TRUE@,$W32G_GUI_TRUE,;t t
20553 s,@W32G_GUI_FALSE@,$W32G_GUI_FALSE,;t t
20554 s,@WINDRV_TRUE@,$WINDRV_TRUE,;t t
20555 s,@WINDRV_FALSE@,$WINDRV_FALSE,;t t
20556 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
20557 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
20558 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
20559 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
20560 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
20561 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
20562 s,@WATCOM_C_TRUE@,$WATCOM_C_TRUE,;t t
20563 s,@WATCOM_C_FALSE@,$WATCOM_C_FALSE,;t t
20564 s,@DMC_TRUE@,$DMC_TRUE,;t t
20565 s,@DMC_FALSE@,$DMC_FALSE,;t t
20566 s,@MINGWGCC_TRUE@,$MINGWGCC_TRUE,;t t
20567 s,@MINGWGCC_FALSE@,$MINGWGCC_FALSE,;t t
20568 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
20569 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
20570 s,@BORLANDC_START@,$BORLANDC_START,;t t
20571 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
20572 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
20573 s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t
20574 s,@DMC_LDFLAGS@,$DMC_LDFLAGS,;t t
20575 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
20576 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
20577 s,@EXTRALIBS@,$EXTRALIBS,;t t
20578 s,@NETSRCS@,$NETSRCS,;t t
20579 s,@ELFILES@,$ELFILES,;t t
20580 s,@SHLD@,$SHLD,;t t
20581 s,@SHCFLAGS@,$SHCFLAGS,;t t
20582 s,@dynamic_targets@,$dynamic_targets,;t t
20584 s,@WISH@,$WISH,;t t
20585 s,@tcltk_dep@,$tcltk_dep,;t t
20586 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
20587 s,@pkgdatadir@,$pkgdatadir,;t t
20588 s,@pkglibdir@,$pkglibdir,;t t
20589 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20594 cat >>$CONFIG_STATUS <<\_ACEOF
20595 # Split the substitutions into bite-sized pieces for seds with
20596 # small command number limits, like on Digital OSF/1 and HP-UX.
20597 ac_max_sed_lines=48
20598 ac_sed_frag=1 # Number of current file.
20599 ac_beg=1 # First line for current file.
20600 ac_end=$ac_max_sed_lines # Line after last line for current file.
20603 while $ac_more_lines; do
20604 if test $ac_beg -gt 1; then
20605 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20607 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20609 if test ! -s $tmp/subs.frag; then
20610 ac_more_lines=false
20612 # The purpose of the label and of the branching condition is to
20613 # speed up the sed processing (if there are no `@' at all, there
20614 # is no need to browse any of the substitutions).
20615 # These are the two extra sed commands mentioned above.
20617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20618 if test -z "$ac_sed_cmds"; then
20619 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20621 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20623 ac_sed_frag=`expr $ac_sed_frag + 1`
20625 ac_end=`expr $ac_end + $ac_max_sed_lines`
20628 if test -z "$ac_sed_cmds"; then
20631 fi # test -n "$CONFIG_FILES"
20634 cat >>$CONFIG_STATUS <<\_ACEOF
20635 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20636 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20638 - | *:- | *:-:* ) # input from stdin
20640 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20642 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20644 * ) ac_file_in=$ac_file.in ;;
20647 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20648 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20650 X"$ac_file" : 'X\(//\)[^/]' \| \
20651 X"$ac_file" : 'X\(//\)$' \| \
20652 X"$ac_file" : 'X\(/\)' \| \
20653 . : '\(.\)' 2>/dev/null ||
20655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20657 /^X\(\/\/\)$/{ s//\1/; q; }
20658 /^X\(\/\).*/{ s//\1/; q; }
20660 { if $as_mkdir_p; then
20665 while test ! -d "$as_dir"; do
20666 as_dirs="$as_dir $as_dirs"
20667 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20669 X"$as_dir" : 'X\(//\)[^/]' \| \
20670 X"$as_dir" : 'X\(//\)$' \| \
20671 X"$as_dir" : 'X\(/\)' \| \
20672 . : '\(.\)' 2>/dev/null ||
20674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20676 /^X\(\/\/\)$/{ s//\1/; q; }
20677 /^X\(\/\).*/{ s//\1/; q; }
20680 test ! -n "$as_dirs" || mkdir $as_dirs
20681 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20682 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20683 { (exit 1); exit 1; }; }; }
20687 if test "$ac_dir" != .; then
20688 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20689 # A "../" for each directory in $ac_dir_suffix.
20690 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20692 ac_dir_suffix= ac_top_builddir=
20696 .) # No --srcdir option. We are building in place.
20698 if test -z "$ac_top_builddir"; then
20701 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20703 [\\/]* | ?:[\\/]* ) # Absolute path.
20704 ac_srcdir=$srcdir$ac_dir_suffix;
20705 ac_top_srcdir=$srcdir ;;
20706 *) # Relative path.
20707 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20708 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20711 # Do not use `cd foo && pwd` to compute absolute paths, because
20712 # the directories may not exist.
20714 .) ac_abs_builddir="$ac_dir";;
20717 .) ac_abs_builddir=`pwd`;;
20718 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20719 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20722 case $ac_abs_builddir in
20723 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20725 case ${ac_top_builddir}. in
20726 .) ac_abs_top_builddir=$ac_abs_builddir;;
20727 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20728 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20731 case $ac_abs_builddir in
20732 .) ac_abs_srcdir=$ac_srcdir;;
20735 .) ac_abs_srcdir=$ac_abs_builddir;;
20736 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20737 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20740 case $ac_abs_builddir in
20741 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20743 case $ac_top_srcdir in
20744 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20745 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20746 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20753 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20756 if test x"$ac_file" != x-; then
20757 { echo "$as_me:$LINENO: creating $ac_file" >&5
20758 echo "$as_me: creating $ac_file" >&6;}
20761 # Let's still pretend it is `configure' which instantiates (i.e., don't
20762 # use $as_me), people would be surprised to read:
20763 # /* config.h. Generated by config.status. */
20764 if test x"$ac_file" = x-; then
20767 configure_input="$ac_file. "
20769 configure_input=$configure_input"Generated from `echo $ac_file_in |
20770 sed 's,.*/,,'` by configure."
20772 # First look for the input files in the build tree, otherwise in the
20774 ac_file_inputs=`IFS=:
20775 for f in $ac_file_in; do
20777 -) echo $tmp/stdin ;;
20779 # Absolute (can't be DOS-style, as IFS=:)
20780 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20781 echo "$as_me: error: cannot find input file: $f" >&2;}
20782 { (exit 1); exit 1; }; }
20785 if test -f "$f"; then
20788 elif test -f "$srcdir/$f"; then
20793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20794 echo "$as_me: error: cannot find input file: $f" >&2;}
20795 { (exit 1); exit 1; }; }
20798 done` || { (exit 1); exit 1; }
20800 cat >>$CONFIG_STATUS <<_ACEOF
20804 cat >>$CONFIG_STATUS <<\_ACEOF
20806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20807 s,@configure_input@,$configure_input,;t t
20808 s,@srcdir@,$ac_srcdir,;t t
20809 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20810 s,@top_srcdir@,$ac_top_srcdir,;t t
20811 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20812 s,@builddir@,$ac_builddir,;t t
20813 s,@abs_builddir@,$ac_abs_builddir,;t t
20814 s,@top_builddir@,$ac_top_builddir,;t t
20815 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20816 s,@INSTALL@,$ac_INSTALL,;t t
20817 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20819 if test x"$ac_file" != x-; then
20820 mv $tmp/out $ac_file
20828 cat >>$CONFIG_STATUS <<\_ACEOF
20831 # CONFIG_HEADER section.
20834 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20835 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20837 # ac_d sets the value in "#define NAME VALUE" lines.
20838 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20839 ac_dB='[ ].*$,\1#\2'
20842 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20843 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20844 ac_uB='$,\1#\2define\3'
20848 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20851 - | *:- | *:-:* ) # input from stdin
20853 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20855 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20857 * ) ac_file_in=$ac_file.in ;;
20860 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20861 echo "$as_me: creating $ac_file" >&6;}
20863 # First look for the input files in the build tree, otherwise in the
20865 ac_file_inputs=`IFS=:
20866 for f in $ac_file_in; do
20868 -) echo $tmp/stdin ;;
20870 # Absolute (can't be DOS-style, as IFS=:)
20871 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20872 echo "$as_me: error: cannot find input file: $f" >&2;}
20873 { (exit 1); exit 1; }; }
20874 # Do quote $f, to prevent DOS paths from being IFS'd.
20877 if test -f "$f"; then
20880 elif test -f "$srcdir/$f"; then
20885 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20886 echo "$as_me: error: cannot find input file: $f" >&2;}
20887 { (exit 1); exit 1; }; }
20890 done` || { (exit 1); exit 1; }
20891 # Remove the trailing spaces.
20892 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20896 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20897 # `conftest.undefs', that substitutes the proper values into
20898 # config.h.in to produce config.h. The first handles `#define'
20899 # templates, and the second `#undef' templates.
20900 # And first: Protect against being on the right side of a sed subst in
20901 # config.status. Protect against being in an unquoted here document
20902 # in config.status.
20903 rm -f conftest.defines conftest.undefs
20904 # Using a here document instead of a string reduces the quoting nightmare.
20905 # Putting comments in sed scripts is not portable.
20907 # `end' is used to avoid that the second main sed command (meant for
20908 # 0-ary CPP macros) applies to n-ary macro definitions.
20909 # See the Autoconf documentation for `clear'.
20910 cat >confdef2sed.sed <<\_ACEOF
20915 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20917 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20920 # If some macros were called several times there might be several times
20921 # the same #defines, which is useless. Nevertheless, we may not want to
20922 # sort them, since we want the *last* AC-DEFINE to be honored.
20923 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20924 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20925 rm -f confdef2sed.sed
20927 # This sed command replaces #undef with comments. This is necessary, for
20928 # example, in the case of _POSIX_SOURCE, which is predefined and required
20929 # on some systems where configure will not decide to define it.
20930 cat >>conftest.undefs <<\_ACEOF
20931 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20934 # Break up conftest.defines because some shells have a limit on the size
20935 # of here documents, and old seds have small limits too (100 cmds).
20936 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20937 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20938 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20939 echo ' :' >>$CONFIG_STATUS
20940 rm -f conftest.tail
20941 while grep . conftest.defines >/dev/null
20943 # Write a limited-size here document to $tmp/defines.sed.
20944 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20945 # Speed up: don't consider the non `#define' lines.
20946 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20947 # Work around the forget-to-reset-the-flag bug.
20948 echo 't clr' >>$CONFIG_STATUS
20949 echo ': clr' >>$CONFIG_STATUS
20950 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20952 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20954 mv $tmp/out $tmp/in
20956 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20957 rm -f conftest.defines
20958 mv conftest.tail conftest.defines
20960 rm -f conftest.defines
20961 echo ' fi # grep' >>$CONFIG_STATUS
20962 echo >>$CONFIG_STATUS
20964 # Break up conftest.undefs because some shells have a limit on the size
20965 # of here documents, and old seds have small limits too (100 cmds).
20966 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20967 rm -f conftest.tail
20968 while grep . conftest.undefs >/dev/null
20970 # Write a limited-size here document to $tmp/undefs.sed.
20971 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20972 # Speed up: don't consider the non `#undef'
20973 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20974 # Work around the forget-to-reset-the-flag bug.
20975 echo 't clr' >>$CONFIG_STATUS
20976 echo ': clr' >>$CONFIG_STATUS
20977 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20979 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20981 mv $tmp/out $tmp/in
20983 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20984 rm -f conftest.undefs
20985 mv conftest.tail conftest.undefs
20987 rm -f conftest.undefs
20989 cat >>$CONFIG_STATUS <<\_ACEOF
20990 # Let's still pretend it is `configure' which instantiates (i.e., don't
20991 # use $as_me), people would be surprised to read:
20992 # /* config.h. Generated by config.status. */
20993 if test x"$ac_file" = x-; then
20994 echo "/* Generated by configure. */" >$tmp/config.h
20996 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20998 cat $tmp/in >>$tmp/config.h
21000 if test x"$ac_file" != x-; then
21001 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21002 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21003 echo "$as_me: $ac_file is unchanged" >&6;}
21005 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21007 X"$ac_file" : 'X\(//\)[^/]' \| \
21008 X"$ac_file" : 'X\(//\)$' \| \
21009 X"$ac_file" : 'X\(/\)' \| \
21010 . : '\(.\)' 2>/dev/null ||
21012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21014 /^X\(\/\/\)$/{ s//\1/; q; }
21015 /^X\(\/\).*/{ s//\1/; q; }
21017 { if $as_mkdir_p; then
21022 while test ! -d "$as_dir"; do
21023 as_dirs="$as_dir $as_dirs"
21024 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21026 X"$as_dir" : 'X\(//\)[^/]' \| \
21027 X"$as_dir" : 'X\(//\)$' \| \
21028 X"$as_dir" : 'X\(/\)' \| \
21029 . : '\(.\)' 2>/dev/null ||
21031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21033 /^X\(\/\/\)$/{ s//\1/; q; }
21034 /^X\(\/\).*/{ s//\1/; q; }
21037 test ! -n "$as_dirs" || mkdir $as_dirs
21038 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21039 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21040 { (exit 1); exit 1; }; }; }
21043 mv $tmp/config.h $ac_file
21047 rm -f $tmp/config.h
21049 # Compute $ac_file's index in $config_headers.
21051 for _am_header in $config_headers :; do
21052 case $_am_header in
21053 $ac_file | $ac_file:* )
21056 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21059 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21060 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21061 X$ac_file : 'X\(//\)[^/]' \| \
21062 X$ac_file : 'X\(//\)$' \| \
21063 X$ac_file : 'X\(/\)' \| \
21064 . : '\(.\)' 2>/dev/null ||
21066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21068 /^X\(\/\/\)$/{ s//\1/; q; }
21069 /^X\(\/\).*/{ s//\1/; q; }
21070 s/.*/./; q'`/stamp-h$_am_stamp_count
21073 cat >>$CONFIG_STATUS <<\_ACEOF
21076 # CONFIG_COMMANDS section.
21078 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21079 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21080 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21081 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21082 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21083 X"$ac_dest" : 'X\(//\)[^/]' \| \
21084 X"$ac_dest" : 'X\(//\)$' \| \
21085 X"$ac_dest" : 'X\(/\)' \| \
21086 . : '\(.\)' 2>/dev/null ||
21088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21090 /^X\(\/\/\)$/{ s//\1/; q; }
21091 /^X\(\/\).*/{ s//\1/; q; }
21093 { if $as_mkdir_p; then
21098 while test ! -d "$as_dir"; do
21099 as_dirs="$as_dir $as_dirs"
21100 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21102 X"$as_dir" : 'X\(//\)[^/]' \| \
21103 X"$as_dir" : 'X\(//\)$' \| \
21104 X"$as_dir" : 'X\(/\)' \| \
21105 . : '\(.\)' 2>/dev/null ||
21107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21109 /^X\(\/\/\)$/{ s//\1/; q; }
21110 /^X\(\/\).*/{ s//\1/; q; }
21113 test ! -n "$as_dirs" || mkdir $as_dirs
21114 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21115 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21116 { (exit 1); exit 1; }; }; }
21120 if test "$ac_dir" != .; then
21121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21122 # A "../" for each directory in $ac_dir_suffix.
21123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21125 ac_dir_suffix= ac_top_builddir=
21129 .) # No --srcdir option. We are building in place.
21131 if test -z "$ac_top_builddir"; then
21134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21136 [\\/]* | ?:[\\/]* ) # Absolute path.
21137 ac_srcdir=$srcdir$ac_dir_suffix;
21138 ac_top_srcdir=$srcdir ;;
21139 *) # Relative path.
21140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21144 # Do not use `cd foo && pwd` to compute absolute paths, because
21145 # the directories may not exist.
21147 .) ac_abs_builddir="$ac_dir";;
21150 .) ac_abs_builddir=`pwd`;;
21151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21155 case $ac_abs_builddir in
21156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21158 case ${ac_top_builddir}. in
21159 .) ac_abs_top_builddir=$ac_abs_builddir;;
21160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21164 case $ac_abs_builddir in
21165 .) ac_abs_srcdir=$ac_srcdir;;
21168 .) ac_abs_srcdir=$ac_abs_builddir;;
21169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21173 case $ac_abs_builddir in
21174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21176 case $ac_top_srcdir in
21177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21184 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21185 echo "$as_me: executing $ac_dest commands" >&6;}
21187 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21188 # Strip MF so we end up with the name of the file.
21189 mf=`echo "$mf" | sed -e 's/:.*$//'`
21190 # Check whether this is an Automake generated Makefile or not.
21191 # We used to match only the files named `Makefile.in', but
21192 # some people rename them; so instead we look at the file content.
21193 # Grep'ing the first line is not enough: some people post-process
21194 # each Makefile.in and add a new line on top of each file to say so.
21195 # So let's grep whole file.
21196 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21197 dirpart=`(dirname "$mf") 2>/dev/null ||
21198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21199 X"$mf" : 'X\(//\)[^/]' \| \
21200 X"$mf" : 'X\(//\)$' \| \
21201 X"$mf" : 'X\(/\)' \| \
21202 . : '\(.\)' 2>/dev/null ||
21204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21206 /^X\(\/\/\)$/{ s//\1/; q; }
21207 /^X\(\/\).*/{ s//\1/; q; }
21212 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21213 # Extract the definition of DEP_FILES from the Makefile without
21215 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21216 test -z "$DEPDIR" && continue
21217 # When using ansi2knr, U may be empty or an underscore; expand it
21218 U=`sed -n -e '/^U = / s///p' < "$mf"`
21219 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21220 # We invoke sed twice because it is the simplest approach to
21221 # changing $(DEPDIR) to its actual value in the expansion.
21222 for file in `sed -n -e '
21223 /^DEP_FILES = .*\\\\$/ {
21232 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21233 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21234 # Make sure the directory exists.
21235 test -f "$dirpart/$file" && continue
21236 fdir=`(dirname "$file") 2>/dev/null ||
21237 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21238 X"$file" : 'X\(//\)[^/]' \| \
21239 X"$file" : 'X\(//\)$' \| \
21240 X"$file" : 'X\(/\)' \| \
21241 . : '\(.\)' 2>/dev/null ||
21243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21245 /^X\(\/\/\)$/{ s//\1/; q; }
21246 /^X\(\/\).*/{ s//\1/; q; }
21248 { if $as_mkdir_p; then
21249 mkdir -p $dirpart/$fdir
21251 as_dir=$dirpart/$fdir
21253 while test ! -d "$as_dir"; do
21254 as_dirs="$as_dir $as_dirs"
21255 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21257 X"$as_dir" : 'X\(//\)[^/]' \| \
21258 X"$as_dir" : 'X\(//\)$' \| \
21259 X"$as_dir" : 'X\(/\)' \| \
21260 . : '\(.\)' 2>/dev/null ||
21262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21264 /^X\(\/\/\)$/{ s//\1/; q; }
21265 /^X\(\/\).*/{ s//\1/; q; }
21268 test ! -n "$as_dirs" || mkdir $as_dirs
21269 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21270 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21271 { (exit 1); exit 1; }; }; }
21273 # echo "creating $dirpart/$file"
21274 echo '# dummy' > "$dirpart/$file"
21282 cat >>$CONFIG_STATUS <<\_ACEOF
21284 { (exit 0); exit 0; }
21286 chmod +x $CONFIG_STATUS
21287 ac_clean_files=$ac_clean_files_save
21290 # configure is writing to config.log, and then calls config.status.
21291 # config.status does its own redirection, appending to config.log.
21292 # Unfortunately, on DOS this fails, as config.log is still kept open
21293 # by configure, so config.status won't be able to write to it; its
21294 # output is simply discarded. So we exec the FD to /dev/null,
21295 # effectively closing config.log, so it can be properly (re)opened and
21296 # appended to by config.status. When coming back to configure, we
21297 # need to make the FD available again.
21298 if test "$no_create" != yes; then
21300 ac_config_status_args=
21301 test "$silent" = yes &&
21302 ac_config_status_args="$ac_config_status_args --quiet"
21304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21307 # would make configure fail if this is the last instruction.
21308 $ac_cs_success || { (exit 1); exit 1; }